wds-client 0.7.0__py3-none-any.whl → 0.9.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. wds_client/__init__.py +8 -10
  2. wds_client/api/__init__.py +1 -2
  3. wds_client/api/capabilities_api.py +237 -102
  4. wds_client/api/cloning_api.py +782 -329
  5. wds_client/api/general_wds_information_api.py +463 -191
  6. wds_client/api/import_api.py +288 -127
  7. wds_client/api/instances_api.py +783 -333
  8. wds_client/api/job_api.py +518 -215
  9. wds_client/api/records_api.py +2512 -1089
  10. wds_client/api/schema_api.py +1450 -626
  11. wds_client/api_client.py +414 -310
  12. wds_client/api_response.py +21 -0
  13. wds_client/configuration.py +110 -53
  14. wds_client/exceptions.py +99 -20
  15. wds_client/models/__init__.py +4 -8
  16. wds_client/models/app.py +68 -125
  17. wds_client/models/attribute_data_type.py +31 -94
  18. wds_client/models/attribute_schema.py +71 -157
  19. wds_client/models/attribute_schema_update.py +69 -127
  20. wds_client/models/backup_job.py +96 -298
  21. wds_client/models/backup_response.py +70 -157
  22. wds_client/models/backup_restore_request.py +68 -129
  23. wds_client/models/batch_operation.py +83 -137
  24. wds_client/models/batch_record_request.py +70 -160
  25. wds_client/models/batch_response.py +68 -127
  26. wds_client/models/build.py +79 -207
  27. wds_client/models/capabilities.py +83 -103
  28. wds_client/models/clone_job.py +96 -298
  29. wds_client/models/clone_response.py +68 -129
  30. wds_client/models/commit.py +69 -125
  31. wds_client/models/error_response.py +78 -222
  32. wds_client/models/generic_job.py +102 -334
  33. wds_client/models/git.py +76 -129
  34. wds_client/models/import_request.py +77 -165
  35. wds_client/models/job.py +87 -243
  36. wds_client/models/job_v1.py +97 -277
  37. wds_client/models/record_query_response.py +86 -162
  38. wds_client/models/record_request.py +60 -96
  39. wds_client/models/record_response.py +70 -160
  40. wds_client/models/record_type_schema.py +84 -191
  41. wds_client/models/search_filter.py +60 -95
  42. wds_client/models/search_request.py +84 -220
  43. wds_client/models/search_sort_direction.py +17 -80
  44. wds_client/models/status_response.py +68 -125
  45. wds_client/models/tsv_upload_response.py +68 -127
  46. wds_client/models/version_response.py +86 -155
  47. wds_client/py.typed +0 -0
  48. wds_client/rest.py +136 -170
  49. wds_client-0.9.0.dist-info/METADATA +17 -0
  50. wds_client-0.9.0.dist-info/RECORD +52 -0
  51. {wds_client-0.7.0.dist-info → wds_client-0.9.0.dist-info}/WHEEL +1 -1
  52. wds_client/models/backup_job_all_of.py +0 -148
  53. wds_client/models/clone_job_all_of.py +0 -148
  54. wds_client/models/generic_job_all_of.py +0 -150
  55. wds_client/models/inline_object.py +0 -123
  56. wds_client-0.7.0.dist-info/METADATA +0 -16
  57. wds_client-0.7.0.dist-info/RECORD +0 -54
  58. {wds_client-0.7.0.dist-info → wds_client-0.9.0.dist-info}/top_level.txt +0 -0
@@ -3,241 +3,513 @@
3
3
  """
4
4
  Workspace Data Service
5
5
 
6
- This page lists current APIs. As of v0.2, all APIs are subject to change without notice. # noqa: E501
6
+ This page lists current APIs. All v0.2 APIs are subject to change without notice. Changelog at [https://github.com/DataBiosphere/terra-workspace-data-service/releases](https://github.com/DataBiosphere/terra-workspace-data-service/releases)
7
7
 
8
8
  The version of the OpenAPI document: v0.2
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
10
 
13
- from __future__ import absolute_import
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
14
13
 
15
- import re # noqa: F401
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
16
18
 
17
- # python 2 and python 3 compatibility library
18
- import six
19
+ from wds_client.models.status_response import StatusResponse
20
+ from wds_client.models.version_response import VersionResponse
19
21
 
20
- from wds_client.api_client import ApiClient
21
- from wds_client.exceptions import ( # noqa: F401
22
- ApiTypeError,
23
- ApiValueError
24
- )
22
+ from wds_client.api_client import ApiClient, RequestSerialized
23
+ from wds_client.api_response import ApiResponse
24
+ from wds_client.rest import RESTResponseType
25
25
 
26
26
 
27
- class GeneralWDSInformationApi(object):
27
+ class GeneralWDSInformationApi:
28
28
  """NOTE: This class is auto generated by OpenAPI Generator
29
29
  Ref: https://openapi-generator.tech
30
30
 
31
31
  Do not edit the class manually.
32
32
  """
33
33
 
34
- def __init__(self, api_client=None):
34
+ def __init__(self, api_client=None) -> None:
35
35
  if api_client is None:
36
- api_client = ApiClient()
36
+ api_client = ApiClient.get_default()
37
37
  self.api_client = api_client
38
38
 
39
- def status_get(self, **kwargs): # noqa: E501
40
- """Gets health status for WDS -- generated via Spring Boot Actuator (see https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#health for details) # noqa: E501
41
39
 
42
- This method makes a synchronous HTTP request by default. To make an
43
- asynchronous HTTP request, please pass async_req=True
44
- >>> thread = api.status_get(async_req=True)
45
- >>> result = thread.get()
40
+ @validate_call
41
+ def status_get(
42
+ self,
43
+ _request_timeout: Union[
44
+ None,
45
+ Annotated[StrictFloat, Field(gt=0)],
46
+ Tuple[
47
+ Annotated[StrictFloat, Field(gt=0)],
48
+ Annotated[StrictFloat, Field(gt=0)]
49
+ ]
50
+ ] = None,
51
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
52
+ _content_type: Optional[StrictStr] = None,
53
+ _headers: Optional[Dict[StrictStr, Any]] = None,
54
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
55
+ ) -> StatusResponse:
56
+ """Gets health status for WDS -- generated via Spring Boot Actuator (see https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#health for details)
57
+
46
58
 
47
- :param async_req bool: execute request asynchronously
48
- :param _preload_content: if False, the urllib3.HTTPResponse object will
49
- be returned without reading/decoding response
50
- data. Default is True.
51
59
  :param _request_timeout: timeout setting for this request. If one
52
60
  number provided, it will be total request
53
61
  timeout. It can also be a pair (tuple) of
54
62
  (connection, read) timeouts.
55
- :return: StatusResponse
56
- If the method is called asynchronously,
57
- returns the request thread.
58
- """
59
- kwargs['_return_http_data_only'] = True
60
- return self.status_get_with_http_info(**kwargs) # noqa: E501
61
-
62
- def status_get_with_http_info(self, **kwargs): # noqa: E501
63
- """Gets health status for WDS -- generated via Spring Boot Actuator (see https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#health for details) # noqa: E501
64
-
65
- This method makes a synchronous HTTP request by default. To make an
66
- asynchronous HTTP request, please pass async_req=True
67
- >>> thread = api.status_get_with_http_info(async_req=True)
68
- >>> result = thread.get()
69
-
70
- :param async_req bool: execute request asynchronously
71
- :param _return_http_data_only: response data without head status code
72
- and headers
73
- :param _preload_content: if False, the urllib3.HTTPResponse object will
74
- be returned without reading/decoding response
75
- data. Default is True.
63
+ :type _request_timeout: int, tuple(int, int), optional
64
+ :param _request_auth: set to override the auth_settings for an a single
65
+ request; this effectively ignores the
66
+ authentication in the spec for a single request.
67
+ :type _request_auth: dict, optional
68
+ :param _content_type: force content-type for the request.
69
+ :type _content_type: str, Optional
70
+ :param _headers: set to override the headers for a single
71
+ request; this effectively ignores the headers
72
+ in the spec for a single request.
73
+ :type _headers: dict, optional
74
+ :param _host_index: set to override the host_index for a single
75
+ request; this effectively ignores the host_index
76
+ in the spec for a single request.
77
+ :type _host_index: int, optional
78
+ :return: Returns the result object.
79
+ """ # noqa: E501
80
+
81
+ _param = self._status_get_serialize(
82
+ _request_auth=_request_auth,
83
+ _content_type=_content_type,
84
+ _headers=_headers,
85
+ _host_index=_host_index
86
+ )
87
+
88
+ _response_types_map: Dict[str, Optional[str]] = {
89
+ '200': "StatusResponse",
90
+ }
91
+ response_data = self.api_client.call_api(
92
+ *_param,
93
+ _request_timeout=_request_timeout
94
+ )
95
+ response_data.read()
96
+ return self.api_client.response_deserialize(
97
+ response_data=response_data,
98
+ response_types_map=_response_types_map,
99
+ ).data
100
+
101
+
102
+ @validate_call
103
+ def status_get_with_http_info(
104
+ self,
105
+ _request_timeout: Union[
106
+ None,
107
+ Annotated[StrictFloat, Field(gt=0)],
108
+ Tuple[
109
+ Annotated[StrictFloat, Field(gt=0)],
110
+ Annotated[StrictFloat, Field(gt=0)]
111
+ ]
112
+ ] = None,
113
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
114
+ _content_type: Optional[StrictStr] = None,
115
+ _headers: Optional[Dict[StrictStr, Any]] = None,
116
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
117
+ ) -> ApiResponse[StatusResponse]:
118
+ """Gets health status for WDS -- generated via Spring Boot Actuator (see https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#health for details)
119
+
120
+
76
121
  :param _request_timeout: timeout setting for this request. If one
77
122
  number provided, it will be total request
78
123
  timeout. It can also be a pair (tuple) of
79
124
  (connection, read) timeouts.
80
- :return: tuple(StatusResponse, status_code(int), headers(HTTPHeaderDict))
81
- If the method is called asynchronously,
82
- returns the request thread.
83
- """
125
+ :type _request_timeout: int, tuple(int, int), optional
126
+ :param _request_auth: set to override the auth_settings for an a single
127
+ request; this effectively ignores the
128
+ authentication in the spec for a single request.
129
+ :type _request_auth: dict, optional
130
+ :param _content_type: force content-type for the request.
131
+ :type _content_type: str, Optional
132
+ :param _headers: set to override the headers for a single
133
+ request; this effectively ignores the headers
134
+ in the spec for a single request.
135
+ :type _headers: dict, optional
136
+ :param _host_index: set to override the host_index for a single
137
+ request; this effectively ignores the host_index
138
+ in the spec for a single request.
139
+ :type _host_index: int, optional
140
+ :return: Returns the result object.
141
+ """ # noqa: E501
142
+
143
+ _param = self._status_get_serialize(
144
+ _request_auth=_request_auth,
145
+ _content_type=_content_type,
146
+ _headers=_headers,
147
+ _host_index=_host_index
148
+ )
84
149
 
85
- local_var_params = locals()
150
+ _response_types_map: Dict[str, Optional[str]] = {
151
+ '200': "StatusResponse",
152
+ }
153
+ response_data = self.api_client.call_api(
154
+ *_param,
155
+ _request_timeout=_request_timeout
156
+ )
157
+ response_data.read()
158
+ return self.api_client.response_deserialize(
159
+ response_data=response_data,
160
+ response_types_map=_response_types_map,
161
+ )
86
162
 
87
- all_params = [
88
- ]
89
- all_params.extend(
163
+
164
+ @validate_call
165
+ def status_get_without_preload_content(
166
+ self,
167
+ _request_timeout: Union[
168
+ None,
169
+ Annotated[StrictFloat, Field(gt=0)],
170
+ Tuple[
171
+ Annotated[StrictFloat, Field(gt=0)],
172
+ Annotated[StrictFloat, Field(gt=0)]
173
+ ]
174
+ ] = None,
175
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
176
+ _content_type: Optional[StrictStr] = None,
177
+ _headers: Optional[Dict[StrictStr, Any]] = None,
178
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
179
+ ) -> RESTResponseType:
180
+ """Gets health status for WDS -- generated via Spring Boot Actuator (see https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#health for details)
181
+
182
+
183
+ :param _request_timeout: timeout setting for this request. If one
184
+ number provided, it will be total request
185
+ timeout. It can also be a pair (tuple) of
186
+ (connection, read) timeouts.
187
+ :type _request_timeout: int, tuple(int, int), optional
188
+ :param _request_auth: set to override the auth_settings for an a single
189
+ request; this effectively ignores the
190
+ authentication in the spec for a single request.
191
+ :type _request_auth: dict, optional
192
+ :param _content_type: force content-type for the request.
193
+ :type _content_type: str, Optional
194
+ :param _headers: set to override the headers for a single
195
+ request; this effectively ignores the headers
196
+ in the spec for a single request.
197
+ :type _headers: dict, optional
198
+ :param _host_index: set to override the host_index for a single
199
+ request; this effectively ignores the host_index
200
+ in the spec for a single request.
201
+ :type _host_index: int, optional
202
+ :return: Returns the result object.
203
+ """ # noqa: E501
204
+
205
+ _param = self._status_get_serialize(
206
+ _request_auth=_request_auth,
207
+ _content_type=_content_type,
208
+ _headers=_headers,
209
+ _host_index=_host_index
210
+ )
211
+
212
+ _response_types_map: Dict[str, Optional[str]] = {
213
+ '200': "StatusResponse",
214
+ }
215
+ response_data = self.api_client.call_api(
216
+ *_param,
217
+ _request_timeout=_request_timeout
218
+ )
219
+ return response_data.response
220
+
221
+
222
+ def _status_get_serialize(
223
+ self,
224
+ _request_auth,
225
+ _content_type,
226
+ _headers,
227
+ _host_index,
228
+ ) -> RequestSerialized:
229
+
230
+ _host = None
231
+
232
+ _collection_formats: Dict[str, str] = {
233
+ }
234
+
235
+ _path_params: Dict[str, str] = {}
236
+ _query_params: List[Tuple[str, str]] = []
237
+ _header_params: Dict[str, Optional[str]] = _headers or {}
238
+ _form_params: List[Tuple[str, str]] = []
239
+ _files: Dict[str, Union[str, bytes]] = {}
240
+ _body_params: Optional[bytes] = None
241
+
242
+ # process the path parameters
243
+ # process the query parameters
244
+ # process the header parameters
245
+ # process the form parameters
246
+ # process the body parameter
247
+
248
+
249
+ # set the HTTP header `Accept`
250
+ _header_params['Accept'] = self.api_client.select_header_accept(
90
251
  [
91
- 'async_req',
92
- '_return_http_data_only',
93
- '_preload_content',
94
- '_request_timeout'
252
+ 'application/json'
253
+ ]
254
+ )
255
+
256
+
257
+ # authentication setting
258
+ _auth_settings: List[str] = [
259
+ ]
260
+
261
+ return self.api_client.param_serialize(
262
+ method='GET',
263
+ resource_path='/status',
264
+ path_params=_path_params,
265
+ query_params=_query_params,
266
+ header_params=_header_params,
267
+ body=_body_params,
268
+ post_params=_form_params,
269
+ files=_files,
270
+ auth_settings=_auth_settings,
271
+ collection_formats=_collection_formats,
272
+ _host=_host,
273
+ _request_auth=_request_auth
274
+ )
275
+
276
+
277
+
278
+
279
+ @validate_call
280
+ def version_get(
281
+ self,
282
+ _request_timeout: Union[
283
+ None,
284
+ Annotated[StrictFloat, Field(gt=0)],
285
+ Tuple[
286
+ Annotated[StrictFloat, Field(gt=0)],
287
+ Annotated[StrictFloat, Field(gt=0)]
95
288
  ]
289
+ ] = None,
290
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
291
+ _content_type: Optional[StrictStr] = None,
292
+ _headers: Optional[Dict[StrictStr, Any]] = None,
293
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
294
+ ) -> VersionResponse:
295
+ """Gets related git and build version info for WDS -- generated via Spring Boot Actuator (see https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#info for details)
296
+
297
+
298
+ :param _request_timeout: timeout setting for this request. If one
299
+ number provided, it will be total request
300
+ timeout. It can also be a pair (tuple) of
301
+ (connection, read) timeouts.
302
+ :type _request_timeout: int, tuple(int, int), optional
303
+ :param _request_auth: set to override the auth_settings for an a single
304
+ request; this effectively ignores the
305
+ authentication in the spec for a single request.
306
+ :type _request_auth: dict, optional
307
+ :param _content_type: force content-type for the request.
308
+ :type _content_type: str, Optional
309
+ :param _headers: set to override the headers for a single
310
+ request; this effectively ignores the headers
311
+ in the spec for a single request.
312
+ :type _headers: dict, optional
313
+ :param _host_index: set to override the host_index for a single
314
+ request; this effectively ignores the host_index
315
+ in the spec for a single request.
316
+ :type _host_index: int, optional
317
+ :return: Returns the result object.
318
+ """ # noqa: E501
319
+
320
+ _param = self._version_get_serialize(
321
+ _request_auth=_request_auth,
322
+ _content_type=_content_type,
323
+ _headers=_headers,
324
+ _host_index=_host_index
325
+ )
326
+
327
+ _response_types_map: Dict[str, Optional[str]] = {
328
+ '200': "VersionResponse",
329
+ }
330
+ response_data = self.api_client.call_api(
331
+ *_param,
332
+ _request_timeout=_request_timeout
96
333
  )
334
+ response_data.read()
335
+ return self.api_client.response_deserialize(
336
+ response_data=response_data,
337
+ response_types_map=_response_types_map,
338
+ ).data
339
+
340
+
341
+ @validate_call
342
+ def version_get_with_http_info(
343
+ self,
344
+ _request_timeout: Union[
345
+ None,
346
+ Annotated[StrictFloat, Field(gt=0)],
347
+ Tuple[
348
+ Annotated[StrictFloat, Field(gt=0)],
349
+ Annotated[StrictFloat, Field(gt=0)]
350
+ ]
351
+ ] = None,
352
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
353
+ _content_type: Optional[StrictStr] = None,
354
+ _headers: Optional[Dict[StrictStr, Any]] = None,
355
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
356
+ ) -> ApiResponse[VersionResponse]:
357
+ """Gets related git and build version info for WDS -- generated via Spring Boot Actuator (see https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#info for details)
358
+
97
359
 
98
- for key, val in six.iteritems(local_var_params['kwargs']):
99
- if key not in all_params:
100
- raise ApiTypeError(
101
- "Got an unexpected keyword argument '%s'"
102
- " to method status_get" % key
103
- )
104
- local_var_params[key] = val
105
- del local_var_params['kwargs']
106
-
107
- collection_formats = {}
108
-
109
- path_params = {}
110
-
111
- query_params = []
112
-
113
- header_params = {}
114
-
115
- form_params = []
116
- local_var_files = {}
117
-
118
- body_params = None
119
- # HTTP header `Accept`
120
- header_params['Accept'] = self.api_client.select_header_accept(
121
- ['application/json']) # noqa: E501
122
-
123
- # Authentication setting
124
- auth_settings = [] # noqa: E501
125
-
126
- return self.api_client.call_api(
127
- '/status', 'GET',
128
- path_params,
129
- query_params,
130
- header_params,
131
- body=body_params,
132
- post_params=form_params,
133
- files=local_var_files,
134
- response_type='StatusResponse', # noqa: E501
135
- auth_settings=auth_settings,
136
- async_req=local_var_params.get('async_req'),
137
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
138
- _preload_content=local_var_params.get('_preload_content', True),
139
- _request_timeout=local_var_params.get('_request_timeout'),
140
- collection_formats=collection_formats)
141
-
142
- def version_get(self, **kwargs): # noqa: E501
143
- """Gets related git and build version info for WDS -- generated via Spring Boot Actuator (see https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#info for details) # noqa: E501
144
-
145
- This method makes a synchronous HTTP request by default. To make an
146
- asynchronous HTTP request, please pass async_req=True
147
- >>> thread = api.version_get(async_req=True)
148
- >>> result = thread.get()
149
-
150
- :param async_req bool: execute request asynchronously
151
- :param _preload_content: if False, the urllib3.HTTPResponse object will
152
- be returned without reading/decoding response
153
- data. Default is True.
154
360
  :param _request_timeout: timeout setting for this request. If one
155
361
  number provided, it will be total request
156
362
  timeout. It can also be a pair (tuple) of
157
363
  (connection, read) timeouts.
158
- :return: VersionResponse
159
- If the method is called asynchronously,
160
- returns the request thread.
161
- """
162
- kwargs['_return_http_data_only'] = True
163
- return self.version_get_with_http_info(**kwargs) # noqa: E501
164
-
165
- def version_get_with_http_info(self, **kwargs): # noqa: E501
166
- """Gets related git and build version info for WDS -- generated via Spring Boot Actuator (see https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#info for details) # noqa: E501
167
-
168
- This method makes a synchronous HTTP request by default. To make an
169
- asynchronous HTTP request, please pass async_req=True
170
- >>> thread = api.version_get_with_http_info(async_req=True)
171
- >>> result = thread.get()
172
-
173
- :param async_req bool: execute request asynchronously
174
- :param _return_http_data_only: response data without head status code
175
- and headers
176
- :param _preload_content: if False, the urllib3.HTTPResponse object will
177
- be returned without reading/decoding response
178
- data. Default is True.
364
+ :type _request_timeout: int, tuple(int, int), optional
365
+ :param _request_auth: set to override the auth_settings for an a single
366
+ request; this effectively ignores the
367
+ authentication in the spec for a single request.
368
+ :type _request_auth: dict, optional
369
+ :param _content_type: force content-type for the request.
370
+ :type _content_type: str, Optional
371
+ :param _headers: set to override the headers for a single
372
+ request; this effectively ignores the headers
373
+ in the spec for a single request.
374
+ :type _headers: dict, optional
375
+ :param _host_index: set to override the host_index for a single
376
+ request; this effectively ignores the host_index
377
+ in the spec for a single request.
378
+ :type _host_index: int, optional
379
+ :return: Returns the result object.
380
+ """ # noqa: E501
381
+
382
+ _param = self._version_get_serialize(
383
+ _request_auth=_request_auth,
384
+ _content_type=_content_type,
385
+ _headers=_headers,
386
+ _host_index=_host_index
387
+ )
388
+
389
+ _response_types_map: Dict[str, Optional[str]] = {
390
+ '200': "VersionResponse",
391
+ }
392
+ response_data = self.api_client.call_api(
393
+ *_param,
394
+ _request_timeout=_request_timeout
395
+ )
396
+ response_data.read()
397
+ return self.api_client.response_deserialize(
398
+ response_data=response_data,
399
+ response_types_map=_response_types_map,
400
+ )
401
+
402
+
403
+ @validate_call
404
+ def version_get_without_preload_content(
405
+ self,
406
+ _request_timeout: Union[
407
+ None,
408
+ Annotated[StrictFloat, Field(gt=0)],
409
+ Tuple[
410
+ Annotated[StrictFloat, Field(gt=0)],
411
+ Annotated[StrictFloat, Field(gt=0)]
412
+ ]
413
+ ] = None,
414
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
415
+ _content_type: Optional[StrictStr] = None,
416
+ _headers: Optional[Dict[StrictStr, Any]] = None,
417
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
418
+ ) -> RESTResponseType:
419
+ """Gets related git and build version info for WDS -- generated via Spring Boot Actuator (see https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#info for details)
420
+
421
+
179
422
  :param _request_timeout: timeout setting for this request. If one
180
423
  number provided, it will be total request
181
424
  timeout. It can also be a pair (tuple) of
182
425
  (connection, read) timeouts.
183
- :return: tuple(VersionResponse, status_code(int), headers(HTTPHeaderDict))
184
- If the method is called asynchronously,
185
- returns the request thread.
186
- """
426
+ :type _request_timeout: int, tuple(int, int), optional
427
+ :param _request_auth: set to override the auth_settings for an a single
428
+ request; this effectively ignores the
429
+ authentication in the spec for a single request.
430
+ :type _request_auth: dict, optional
431
+ :param _content_type: force content-type for the request.
432
+ :type _content_type: str, Optional
433
+ :param _headers: set to override the headers for a single
434
+ request; this effectively ignores the headers
435
+ in the spec for a single request.
436
+ :type _headers: dict, optional
437
+ :param _host_index: set to override the host_index for a single
438
+ request; this effectively ignores the host_index
439
+ in the spec for a single request.
440
+ :type _host_index: int, optional
441
+ :return: Returns the result object.
442
+ """ # noqa: E501
443
+
444
+ _param = self._version_get_serialize(
445
+ _request_auth=_request_auth,
446
+ _content_type=_content_type,
447
+ _headers=_headers,
448
+ _host_index=_host_index
449
+ )
187
450
 
188
- local_var_params = locals()
451
+ _response_types_map: Dict[str, Optional[str]] = {
452
+ '200': "VersionResponse",
453
+ }
454
+ response_data = self.api_client.call_api(
455
+ *_param,
456
+ _request_timeout=_request_timeout
457
+ )
458
+ return response_data.response
189
459
 
190
- all_params = [
191
- ]
192
- all_params.extend(
460
+
461
+ def _version_get_serialize(
462
+ self,
463
+ _request_auth,
464
+ _content_type,
465
+ _headers,
466
+ _host_index,
467
+ ) -> RequestSerialized:
468
+
469
+ _host = None
470
+
471
+ _collection_formats: Dict[str, str] = {
472
+ }
473
+
474
+ _path_params: Dict[str, str] = {}
475
+ _query_params: List[Tuple[str, str]] = []
476
+ _header_params: Dict[str, Optional[str]] = _headers or {}
477
+ _form_params: List[Tuple[str, str]] = []
478
+ _files: Dict[str, Union[str, bytes]] = {}
479
+ _body_params: Optional[bytes] = None
480
+
481
+ # process the path parameters
482
+ # process the query parameters
483
+ # process the header parameters
484
+ # process the form parameters
485
+ # process the body parameter
486
+
487
+
488
+ # set the HTTP header `Accept`
489
+ _header_params['Accept'] = self.api_client.select_header_accept(
193
490
  [
194
- 'async_req',
195
- '_return_http_data_only',
196
- '_preload_content',
197
- '_request_timeout'
491
+ 'application/json'
198
492
  ]
199
493
  )
200
494
 
201
- for key, val in six.iteritems(local_var_params['kwargs']):
202
- if key not in all_params:
203
- raise ApiTypeError(
204
- "Got an unexpected keyword argument '%s'"
205
- " to method version_get" % key
206
- )
207
- local_var_params[key] = val
208
- del local_var_params['kwargs']
209
-
210
- collection_formats = {}
211
-
212
- path_params = {}
213
-
214
- query_params = []
215
-
216
- header_params = {}
217
-
218
- form_params = []
219
- local_var_files = {}
220
-
221
- body_params = None
222
- # HTTP header `Accept`
223
- header_params['Accept'] = self.api_client.select_header_accept(
224
- ['application/json']) # noqa: E501
225
-
226
- # Authentication setting
227
- auth_settings = [] # noqa: E501
228
-
229
- return self.api_client.call_api(
230
- '/version', 'GET',
231
- path_params,
232
- query_params,
233
- header_params,
234
- body=body_params,
235
- post_params=form_params,
236
- files=local_var_files,
237
- response_type='VersionResponse', # noqa: E501
238
- auth_settings=auth_settings,
239
- async_req=local_var_params.get('async_req'),
240
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
241
- _preload_content=local_var_params.get('_preload_content', True),
242
- _request_timeout=local_var_params.get('_request_timeout'),
243
- collection_formats=collection_formats)
495
+
496
+ # authentication setting
497
+ _auth_settings: List[str] = [
498
+ ]
499
+
500
+ return self.api_client.param_serialize(
501
+ method='GET',
502
+ resource_path='/version',
503
+ path_params=_path_params,
504
+ query_params=_query_params,
505
+ header_params=_header_params,
506
+ body=_body_params,
507
+ post_params=_form_params,
508
+ files=_files,
509
+ auth_settings=_auth_settings,
510
+ collection_formats=_collection_formats,
511
+ _host=_host,
512
+ _request_auth=_request_auth
513
+ )
514
+
515
+