teamdbapi 2.37.1__py3-none-any.whl → 3.0.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.
- teamdbapi/__init__.py +11 -0
- teamdbapi/api/__init__.py +39 -34
- teamdbapi/api/assembly_api.py +2108 -2108
- teamdbapi/api/car_api.py +874 -874
- teamdbapi/api/component_api.py +954 -0
- teamdbapi/api/config_api.py +118 -118
- teamdbapi/api/criteria_api.py +126 -0
- teamdbapi/api/edit_api.py +433 -433
- teamdbapi/api/event_api.py +878 -878
- teamdbapi/api/fixed_field_api.py +320 -320
- teamdbapi/api/group_api.py +609 -609
- teamdbapi/api/import_export_api.py +828 -743
- teamdbapi/api/lap_api.py +708 -708
- teamdbapi/api/lap_report_api.py +490 -486
- teamdbapi/api/model_field_api.py +708 -708
- teamdbapi/api/mounting_api.py +219 -0
- teamdbapi/api/notes_authorization_api.py +324 -324
- teamdbapi/api/parameter_api.py +1176 -1176
- teamdbapi/api/part_api.py +304 -0
- teamdbapi/api/report_api.py +142 -142
- teamdbapi/api/revision_api.py +1420 -1420
- teamdbapi/api/revision_editor_selector_api.py +990 -990
- teamdbapi/api/run_api.py +603 -603
- teamdbapi/api/script_api.py +490 -490
- teamdbapi/api/session_api.py +720 -720
- teamdbapi/api/target_api.py +415 -415
- teamdbapi/api/team_db_list_api.py +987 -987
- teamdbapi/api/team_db_view_api.py +482 -482
- teamdbapi/api/tire_api.py +599 -599
- teamdbapi/api/tire_set_api.py +514 -514
- teamdbapi/api/track_api.py +506 -506
- teamdbapi/api/track_layout_api.py +514 -514
- teamdbapi/api/update_request_api.py +235 -0
- teamdbapi/api/user_api.py +474 -474
- teamdbapi/api/value_field_api.py +558 -558
- teamdbapi/api/version_api.py +449 -449
- teamdbapi/api_client.py +4 -8
- teamdbapi/configuration.py +6 -13
- teamdbapi/models/__init__.py +6 -0
- teamdbapi/models/assembly.py +1 -0
- teamdbapi/models/bleed_adjustment.py +1 -0
- teamdbapi/models/calibration.py +1 -0
- teamdbapi/models/car.py +1 -0
- teamdbapi/models/car_parameters_context.py +1 -0
- teamdbapi/models/compare_options.py +1 -0
- teamdbapi/models/compare_result.py +1 -0
- teamdbapi/models/compare_result_detail.py +2 -0
- teamdbapi/models/component.py +1217 -0
- teamdbapi/models/copy_from_tags_args.py +2 -0
- teamdbapi/models/couple_guid_text.py +1 -0
- teamdbapi/models/criteria.py +430 -0
- teamdbapi/models/criteria_value.py +197 -0
- teamdbapi/models/event.py +1 -0
- teamdbapi/models/fixed_field.py +2 -1
- teamdbapi/models/group.py +1 -0
- teamdbapi/models/import_parameters_args.py +1 -0
- teamdbapi/models/import_parameters_results.py +2 -0
- teamdbapi/models/item_value.py +1 -0
- teamdbapi/models/item_value_key.py +1 -0
- teamdbapi/models/lap.py +1 -0
- teamdbapi/models/lap_report_options.py +1 -0
- teamdbapi/models/model_field.py +3 -1
- teamdbapi/models/model_field_authorization.py +1 -0
- teamdbapi/models/mounting.py +489 -0
- teamdbapi/models/notes_authorization.py +1 -0
- teamdbapi/models/notes_context.py +1 -0
- teamdbapi/models/parameter.py +2 -0
- teamdbapi/models/parameter_cross_table.py +1 -0
- teamdbapi/models/part.py +963 -0
- teamdbapi/models/part_count.py +228 -0
- teamdbapi/models/problem_details.py +2 -6
- teamdbapi/models/revision.py +88 -3
- teamdbapi/models/revision_value.py +1 -0
- teamdbapi/models/run.py +1 -0
- teamdbapi/models/script.py +1 -0
- teamdbapi/models/session.py +1 -0
- teamdbapi/models/string_with_font_style.py +1 -0
- teamdbapi/models/target.py +64 -7
- teamdbapi/models/team_db_list.py +1 -0
- teamdbapi/models/team_db_list_item.py +1 -0
- teamdbapi/models/tire.py +2 -0
- teamdbapi/models/tire_set.py +2 -0
- teamdbapi/models/track.py +1 -0
- teamdbapi/models/track_layout.py +1 -0
- teamdbapi/models/user.py +1 -0
- teamdbapi/models/user_group.py +1 -0
- teamdbapi/models/value_field.py +1 -0
- teamdbapi/models/version.py +1 -0
- teamdbapi/rest.py +6 -1
- {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/METADATA +5 -5
- teamdbapi-3.0.0.dist-info/RECORD +93 -0
- teamdbapi-2.37.1.dist-info/RECORD +0 -82
- {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/LICENSE +0 -0
- {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/WHEEL +0 -0
teamdbapi/api/car_api.py
CHANGED
|
@@ -1,874 +1,874 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Trackside Software TeamDB API v2.0
|
|
5
|
-
|
|
6
|
-
This API enables you to access TeamDB data # noqa: E501
|
|
7
|
-
|
|
8
|
-
OpenAPI spec version: 2.0
|
|
9
|
-
Contact: support@trackside.fr
|
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
from __future__ import absolute_import
|
|
14
|
-
|
|
15
|
-
import re # noqa: F401
|
|
16
|
-
|
|
17
|
-
# python 2 and python 3 compatibility library
|
|
18
|
-
import six
|
|
19
|
-
|
|
20
|
-
from teamdbapi.api_client import ApiClient
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class CarApi(object):
|
|
24
|
-
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
-
|
|
26
|
-
Do not edit the class manually.
|
|
27
|
-
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
def __init__(self, api_client=None):
|
|
31
|
-
if api_client is None:
|
|
32
|
-
api_client = ApiClient()
|
|
33
|
-
self.api_client = api_client
|
|
34
|
-
|
|
35
|
-
def create_car(self, body, **kwargs): # noqa: E501
|
|
36
|
-
"""Create a new car # noqa: E501
|
|
37
|
-
|
|
38
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
39
|
-
asynchronous HTTP request, please pass async_req=True
|
|
40
|
-
>>> thread = api.create_car(body, async_req=True)
|
|
41
|
-
>>> result = thread.get()
|
|
42
|
-
|
|
43
|
-
:param async_req bool
|
|
44
|
-
:param Car body: The car to create. (required)
|
|
45
|
-
:return: Car
|
|
46
|
-
If the method is called asynchronously,
|
|
47
|
-
returns the request thread.
|
|
48
|
-
"""
|
|
49
|
-
kwargs['_return_http_data_only'] = True
|
|
50
|
-
if kwargs.get('async_req'):
|
|
51
|
-
return self.create_car_with_http_info(body, **kwargs) # noqa: E501
|
|
52
|
-
else:
|
|
53
|
-
(data) = self.create_car_with_http_info(body, **kwargs) # noqa: E501
|
|
54
|
-
return data
|
|
55
|
-
|
|
56
|
-
def create_car_with_http_info(self, body, **kwargs): # noqa: E501
|
|
57
|
-
"""Create a new car # noqa: E501
|
|
58
|
-
|
|
59
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
60
|
-
asynchronous HTTP request, please pass async_req=True
|
|
61
|
-
>>> thread = api.create_car_with_http_info(body, async_req=True)
|
|
62
|
-
>>> result = thread.get()
|
|
63
|
-
|
|
64
|
-
:param async_req bool
|
|
65
|
-
:param Car body: The car to create. (required)
|
|
66
|
-
:return: Car
|
|
67
|
-
If the method is called asynchronously,
|
|
68
|
-
returns the request thread.
|
|
69
|
-
"""
|
|
70
|
-
|
|
71
|
-
all_params = ['body'] # noqa: E501
|
|
72
|
-
all_params.append('async_req')
|
|
73
|
-
all_params.append('_return_http_data_only')
|
|
74
|
-
all_params.append('_preload_content')
|
|
75
|
-
all_params.append('_request_timeout')
|
|
76
|
-
|
|
77
|
-
params = locals()
|
|
78
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
79
|
-
if key not in all_params:
|
|
80
|
-
raise TypeError(
|
|
81
|
-
"Got an unexpected keyword argument '%s'"
|
|
82
|
-
" to method create_car" % key
|
|
83
|
-
)
|
|
84
|
-
params[key] = val
|
|
85
|
-
del params['kwargs']
|
|
86
|
-
# verify the required parameter 'body' is set
|
|
87
|
-
if ('body' not in params or
|
|
88
|
-
params['body'] is None):
|
|
89
|
-
raise ValueError("Missing the required parameter `body` when calling `create_car`") # noqa: E501
|
|
90
|
-
|
|
91
|
-
collection_formats = {}
|
|
92
|
-
|
|
93
|
-
path_params = {}
|
|
94
|
-
|
|
95
|
-
query_params = []
|
|
96
|
-
|
|
97
|
-
header_params = {}
|
|
98
|
-
|
|
99
|
-
form_params = []
|
|
100
|
-
local_var_files = {}
|
|
101
|
-
|
|
102
|
-
body_params = None
|
|
103
|
-
if 'body' in params:
|
|
104
|
-
body_params = params['body']
|
|
105
|
-
# HTTP header `Accept`
|
|
106
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
107
|
-
['application/json', 'text/json']) # noqa: E501
|
|
108
|
-
|
|
109
|
-
# HTTP header `Content-Type`
|
|
110
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
111
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
112
|
-
|
|
113
|
-
# Authentication setting
|
|
114
|
-
auth_settings = [] # noqa: E501
|
|
115
|
-
|
|
116
|
-
return self.api_client.call_api(
|
|
117
|
-
'/teamdbapi/v2.0/car', 'POST',
|
|
118
|
-
path_params,
|
|
119
|
-
query_params,
|
|
120
|
-
header_params,
|
|
121
|
-
body=body_params,
|
|
122
|
-
post_params=form_params,
|
|
123
|
-
files=local_var_files,
|
|
124
|
-
response_type='Car', # noqa: E501
|
|
125
|
-
auth_settings=auth_settings,
|
|
126
|
-
async_req=params.get('async_req'),
|
|
127
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
128
|
-
_preload_content=params.get('_preload_content', True),
|
|
129
|
-
_request_timeout=params.get('_request_timeout'),
|
|
130
|
-
collection_formats=collection_formats)
|
|
131
|
-
|
|
132
|
-
def create_car_type(self, body, **kwargs): # noqa: E501
|
|
133
|
-
"""Create a new car type # noqa: E501
|
|
134
|
-
|
|
135
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
136
|
-
asynchronous HTTP request, please pass async_req=True
|
|
137
|
-
>>> thread = api.create_car_type(body, async_req=True)
|
|
138
|
-
>>> result = thread.get()
|
|
139
|
-
|
|
140
|
-
:param async_req bool
|
|
141
|
-
:param str body: The new car type name. (required)
|
|
142
|
-
:return: CoupleGuidText
|
|
143
|
-
If the method is called asynchronously,
|
|
144
|
-
returns the request thread.
|
|
145
|
-
"""
|
|
146
|
-
kwargs['_return_http_data_only'] = True
|
|
147
|
-
if kwargs.get('async_req'):
|
|
148
|
-
return self.create_car_type_with_http_info(body, **kwargs) # noqa: E501
|
|
149
|
-
else:
|
|
150
|
-
(data) = self.create_car_type_with_http_info(body, **kwargs) # noqa: E501
|
|
151
|
-
return data
|
|
152
|
-
|
|
153
|
-
def create_car_type_with_http_info(self, body, **kwargs): # noqa: E501
|
|
154
|
-
"""Create a new car type # noqa: E501
|
|
155
|
-
|
|
156
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
157
|
-
asynchronous HTTP request, please pass async_req=True
|
|
158
|
-
>>> thread = api.create_car_type_with_http_info(body, async_req=True)
|
|
159
|
-
>>> result = thread.get()
|
|
160
|
-
|
|
161
|
-
:param async_req bool
|
|
162
|
-
:param str body: The new car type name. (required)
|
|
163
|
-
:return: CoupleGuidText
|
|
164
|
-
If the method is called asynchronously,
|
|
165
|
-
returns the request thread.
|
|
166
|
-
"""
|
|
167
|
-
|
|
168
|
-
all_params = ['body'] # noqa: E501
|
|
169
|
-
all_params.append('async_req')
|
|
170
|
-
all_params.append('_return_http_data_only')
|
|
171
|
-
all_params.append('_preload_content')
|
|
172
|
-
all_params.append('_request_timeout')
|
|
173
|
-
|
|
174
|
-
params = locals()
|
|
175
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
176
|
-
if key not in all_params:
|
|
177
|
-
raise TypeError(
|
|
178
|
-
"Got an unexpected keyword argument '%s'"
|
|
179
|
-
" to method create_car_type" % key
|
|
180
|
-
)
|
|
181
|
-
params[key] = val
|
|
182
|
-
del params['kwargs']
|
|
183
|
-
# verify the required parameter 'body' is set
|
|
184
|
-
if ('body' not in params or
|
|
185
|
-
params['body'] is None):
|
|
186
|
-
raise ValueError("Missing the required parameter `body` when calling `create_car_type`") # noqa: E501
|
|
187
|
-
|
|
188
|
-
collection_formats = {}
|
|
189
|
-
|
|
190
|
-
path_params = {}
|
|
191
|
-
|
|
192
|
-
query_params = []
|
|
193
|
-
|
|
194
|
-
header_params = {}
|
|
195
|
-
|
|
196
|
-
form_params = []
|
|
197
|
-
local_var_files = {}
|
|
198
|
-
|
|
199
|
-
body_params = None
|
|
200
|
-
if 'body' in params:
|
|
201
|
-
body_params = params['body']
|
|
202
|
-
# HTTP header `Accept`
|
|
203
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
204
|
-
['application/json', 'text/json']) # noqa: E501
|
|
205
|
-
|
|
206
|
-
# HTTP header `Content-Type`
|
|
207
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
208
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
209
|
-
|
|
210
|
-
# Authentication setting
|
|
211
|
-
auth_settings = [] # noqa: E501
|
|
212
|
-
|
|
213
|
-
return self.api_client.call_api(
|
|
214
|
-
'/teamdbapi/v2.0/cartype', 'POST',
|
|
215
|
-
path_params,
|
|
216
|
-
query_params,
|
|
217
|
-
header_params,
|
|
218
|
-
body=body_params,
|
|
219
|
-
post_params=form_params,
|
|
220
|
-
files=local_var_files,
|
|
221
|
-
response_type='CoupleGuidText', # noqa: E501
|
|
222
|
-
auth_settings=auth_settings,
|
|
223
|
-
async_req=params.get('async_req'),
|
|
224
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
225
|
-
_preload_content=params.get('_preload_content', True),
|
|
226
|
-
_request_timeout=params.get('_request_timeout'),
|
|
227
|
-
collection_formats=collection_formats)
|
|
228
|
-
|
|
229
|
-
def delete_car(self, car_id, **kwargs): # noqa: E501
|
|
230
|
-
"""Delete an existing car # noqa: E501
|
|
231
|
-
|
|
232
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
233
|
-
asynchronous HTTP request, please pass async_req=True
|
|
234
|
-
>>> thread = api.delete_car(car_id, async_req=True)
|
|
235
|
-
>>> result = thread.get()
|
|
236
|
-
|
|
237
|
-
:param async_req bool
|
|
238
|
-
:param str car_id: The unique car id for which you want to delete the car (required)
|
|
239
|
-
:return: None
|
|
240
|
-
If the method is called asynchronously,
|
|
241
|
-
returns the request thread.
|
|
242
|
-
"""
|
|
243
|
-
kwargs['_return_http_data_only'] = True
|
|
244
|
-
if kwargs.get('async_req'):
|
|
245
|
-
return self.delete_car_with_http_info(car_id, **kwargs) # noqa: E501
|
|
246
|
-
else:
|
|
247
|
-
(data) = self.delete_car_with_http_info(car_id, **kwargs) # noqa: E501
|
|
248
|
-
return data
|
|
249
|
-
|
|
250
|
-
def delete_car_with_http_info(self, car_id, **kwargs): # noqa: E501
|
|
251
|
-
"""Delete an existing car # noqa: E501
|
|
252
|
-
|
|
253
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
254
|
-
asynchronous HTTP request, please pass async_req=True
|
|
255
|
-
>>> thread = api.delete_car_with_http_info(car_id, async_req=True)
|
|
256
|
-
>>> result = thread.get()
|
|
257
|
-
|
|
258
|
-
:param async_req bool
|
|
259
|
-
:param str car_id: The unique car id for which you want to delete the car (required)
|
|
260
|
-
:return: None
|
|
261
|
-
If the method is called asynchronously,
|
|
262
|
-
returns the request thread.
|
|
263
|
-
"""
|
|
264
|
-
|
|
265
|
-
all_params = ['car_id'] # noqa: E501
|
|
266
|
-
all_params.append('async_req')
|
|
267
|
-
all_params.append('_return_http_data_only')
|
|
268
|
-
all_params.append('_preload_content')
|
|
269
|
-
all_params.append('_request_timeout')
|
|
270
|
-
|
|
271
|
-
params = locals()
|
|
272
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
273
|
-
if key not in all_params:
|
|
274
|
-
raise TypeError(
|
|
275
|
-
"Got an unexpected keyword argument '%s'"
|
|
276
|
-
" to method delete_car" % key
|
|
277
|
-
)
|
|
278
|
-
params[key] = val
|
|
279
|
-
del params['kwargs']
|
|
280
|
-
# verify the required parameter 'car_id' is set
|
|
281
|
-
if ('car_id' not in params or
|
|
282
|
-
params['car_id'] is None):
|
|
283
|
-
raise ValueError("Missing the required parameter `car_id` when calling `delete_car`") # noqa: E501
|
|
284
|
-
|
|
285
|
-
collection_formats = {}
|
|
286
|
-
|
|
287
|
-
path_params = {}
|
|
288
|
-
if 'car_id' in params:
|
|
289
|
-
path_params['carId'] = params['car_id'] # noqa: E501
|
|
290
|
-
|
|
291
|
-
query_params = []
|
|
292
|
-
|
|
293
|
-
header_params = {}
|
|
294
|
-
|
|
295
|
-
form_params = []
|
|
296
|
-
local_var_files = {}
|
|
297
|
-
|
|
298
|
-
body_params = None
|
|
299
|
-
# HTTP header `Accept`
|
|
300
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
301
|
-
['application/json', 'text/json']) # noqa: E501
|
|
302
|
-
|
|
303
|
-
# Authentication setting
|
|
304
|
-
auth_settings = [] # noqa: E501
|
|
305
|
-
|
|
306
|
-
return self.api_client.call_api(
|
|
307
|
-
'/teamdbapi/v2.0/car/{carId}', 'DELETE',
|
|
308
|
-
path_params,
|
|
309
|
-
query_params,
|
|
310
|
-
header_params,
|
|
311
|
-
body=body_params,
|
|
312
|
-
post_params=form_params,
|
|
313
|
-
files=local_var_files,
|
|
314
|
-
response_type=None, # noqa: E501
|
|
315
|
-
auth_settings=auth_settings,
|
|
316
|
-
async_req=params.get('async_req'),
|
|
317
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
318
|
-
_preload_content=params.get('_preload_content', True),
|
|
319
|
-
_request_timeout=params.get('_request_timeout'),
|
|
320
|
-
collection_formats=collection_formats)
|
|
321
|
-
|
|
322
|
-
def delete_car_type(self, car_type_id, **kwargs): # noqa: E501
|
|
323
|
-
"""Delete an existing car type # noqa: E501
|
|
324
|
-
|
|
325
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
326
|
-
asynchronous HTTP request, please pass async_req=True
|
|
327
|
-
>>> thread = api.delete_car_type(car_type_id, async_req=True)
|
|
328
|
-
>>> result = thread.get()
|
|
329
|
-
|
|
330
|
-
:param async_req bool
|
|
331
|
-
:param str car_type_id: The unique car type id for which you want to delete the car type (required)
|
|
332
|
-
:return: None
|
|
333
|
-
If the method is called asynchronously,
|
|
334
|
-
returns the request thread.
|
|
335
|
-
"""
|
|
336
|
-
kwargs['_return_http_data_only'] = True
|
|
337
|
-
if kwargs.get('async_req'):
|
|
338
|
-
return self.delete_car_type_with_http_info(car_type_id, **kwargs) # noqa: E501
|
|
339
|
-
else:
|
|
340
|
-
(data) = self.delete_car_type_with_http_info(car_type_id, **kwargs) # noqa: E501
|
|
341
|
-
return data
|
|
342
|
-
|
|
343
|
-
def delete_car_type_with_http_info(self, car_type_id, **kwargs): # noqa: E501
|
|
344
|
-
"""Delete an existing car type # noqa: E501
|
|
345
|
-
|
|
346
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
347
|
-
asynchronous HTTP request, please pass async_req=True
|
|
348
|
-
>>> thread = api.delete_car_type_with_http_info(car_type_id, async_req=True)
|
|
349
|
-
>>> result = thread.get()
|
|
350
|
-
|
|
351
|
-
:param async_req bool
|
|
352
|
-
:param str car_type_id: The unique car type id for which you want to delete the car type (required)
|
|
353
|
-
:return: None
|
|
354
|
-
If the method is called asynchronously,
|
|
355
|
-
returns the request thread.
|
|
356
|
-
"""
|
|
357
|
-
|
|
358
|
-
all_params = ['car_type_id'] # noqa: E501
|
|
359
|
-
all_params.append('async_req')
|
|
360
|
-
all_params.append('_return_http_data_only')
|
|
361
|
-
all_params.append('_preload_content')
|
|
362
|
-
all_params.append('_request_timeout')
|
|
363
|
-
|
|
364
|
-
params = locals()
|
|
365
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
366
|
-
if key not in all_params:
|
|
367
|
-
raise TypeError(
|
|
368
|
-
"Got an unexpected keyword argument '%s'"
|
|
369
|
-
" to method delete_car_type" % key
|
|
370
|
-
)
|
|
371
|
-
params[key] = val
|
|
372
|
-
del params['kwargs']
|
|
373
|
-
# verify the required parameter 'car_type_id' is set
|
|
374
|
-
if ('car_type_id' not in params or
|
|
375
|
-
params['car_type_id'] is None):
|
|
376
|
-
raise ValueError("Missing the required parameter `car_type_id` when calling `delete_car_type`") # noqa: E501
|
|
377
|
-
|
|
378
|
-
collection_formats = {}
|
|
379
|
-
|
|
380
|
-
path_params = {}
|
|
381
|
-
if 'car_type_id' in params:
|
|
382
|
-
path_params['carTypeId'] = params['car_type_id'] # noqa: E501
|
|
383
|
-
|
|
384
|
-
query_params = []
|
|
385
|
-
|
|
386
|
-
header_params = {}
|
|
387
|
-
|
|
388
|
-
form_params = []
|
|
389
|
-
local_var_files = {}
|
|
390
|
-
|
|
391
|
-
body_params = None
|
|
392
|
-
# HTTP header `Accept`
|
|
393
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
394
|
-
['application/json', 'text/json']) # noqa: E501
|
|
395
|
-
|
|
396
|
-
# Authentication setting
|
|
397
|
-
auth_settings = [] # noqa: E501
|
|
398
|
-
|
|
399
|
-
return self.api_client.call_api(
|
|
400
|
-
'/teamdbapi/v2.0/cartype/{carTypeId}', 'DELETE',
|
|
401
|
-
path_params,
|
|
402
|
-
query_params,
|
|
403
|
-
header_params,
|
|
404
|
-
body=body_params,
|
|
405
|
-
post_params=form_params,
|
|
406
|
-
files=local_var_files,
|
|
407
|
-
response_type=None, # noqa: E501
|
|
408
|
-
auth_settings=auth_settings,
|
|
409
|
-
async_req=params.get('async_req'),
|
|
410
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
411
|
-
_preload_content=params.get('_preload_content', True),
|
|
412
|
-
_request_timeout=params.get('_request_timeout'),
|
|
413
|
-
collection_formats=collection_formats)
|
|
414
|
-
|
|
415
|
-
def get_car(self, car_id, **kwargs): # noqa: E501
|
|
416
|
-
"""Get a car via a unique id. # noqa: E501
|
|
417
|
-
|
|
418
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
419
|
-
asynchronous HTTP request, please pass async_req=True
|
|
420
|
-
>>> thread = api.get_car(car_id, async_req=True)
|
|
421
|
-
>>> result = thread.get()
|
|
422
|
-
|
|
423
|
-
:param async_req bool
|
|
424
|
-
:param str car_id: The unique car id for which you want to get the car (required)
|
|
425
|
-
:return: Car
|
|
426
|
-
If the method is called asynchronously,
|
|
427
|
-
returns the request thread.
|
|
428
|
-
"""
|
|
429
|
-
kwargs['_return_http_data_only'] = True
|
|
430
|
-
if kwargs.get('async_req'):
|
|
431
|
-
return self.get_car_with_http_info(car_id, **kwargs) # noqa: E501
|
|
432
|
-
else:
|
|
433
|
-
(data) = self.get_car_with_http_info(car_id, **kwargs) # noqa: E501
|
|
434
|
-
return data
|
|
435
|
-
|
|
436
|
-
def get_car_with_http_info(self, car_id, **kwargs): # noqa: E501
|
|
437
|
-
"""Get a car via a unique id. # noqa: E501
|
|
438
|
-
|
|
439
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
440
|
-
asynchronous HTTP request, please pass async_req=True
|
|
441
|
-
>>> thread = api.get_car_with_http_info(car_id, async_req=True)
|
|
442
|
-
>>> result = thread.get()
|
|
443
|
-
|
|
444
|
-
:param async_req bool
|
|
445
|
-
:param str car_id: The unique car id for which you want to get the car (required)
|
|
446
|
-
:return: Car
|
|
447
|
-
If the method is called asynchronously,
|
|
448
|
-
returns the request thread.
|
|
449
|
-
"""
|
|
450
|
-
|
|
451
|
-
all_params = ['car_id'] # noqa: E501
|
|
452
|
-
all_params.append('async_req')
|
|
453
|
-
all_params.append('_return_http_data_only')
|
|
454
|
-
all_params.append('_preload_content')
|
|
455
|
-
all_params.append('_request_timeout')
|
|
456
|
-
|
|
457
|
-
params = locals()
|
|
458
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
459
|
-
if key not in all_params:
|
|
460
|
-
raise TypeError(
|
|
461
|
-
"Got an unexpected keyword argument '%s'"
|
|
462
|
-
" to method get_car" % key
|
|
463
|
-
)
|
|
464
|
-
params[key] = val
|
|
465
|
-
del params['kwargs']
|
|
466
|
-
# verify the required parameter 'car_id' is set
|
|
467
|
-
if ('car_id' not in params or
|
|
468
|
-
params['car_id'] is None):
|
|
469
|
-
raise ValueError("Missing the required parameter `car_id` when calling `get_car`") # noqa: E501
|
|
470
|
-
|
|
471
|
-
collection_formats = {}
|
|
472
|
-
|
|
473
|
-
path_params = {}
|
|
474
|
-
if 'car_id' in params:
|
|
475
|
-
path_params['carId'] = params['car_id'] # noqa: E501
|
|
476
|
-
|
|
477
|
-
query_params = []
|
|
478
|
-
|
|
479
|
-
header_params = {}
|
|
480
|
-
|
|
481
|
-
form_params = []
|
|
482
|
-
local_var_files = {}
|
|
483
|
-
|
|
484
|
-
body_params = None
|
|
485
|
-
# HTTP header `Accept`
|
|
486
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
487
|
-
['application/json', 'text/json']) # noqa: E501
|
|
488
|
-
|
|
489
|
-
# Authentication setting
|
|
490
|
-
auth_settings = [] # noqa: E501
|
|
491
|
-
|
|
492
|
-
return self.api_client.call_api(
|
|
493
|
-
'/teamdbapi/v2.0/car/{carId}', 'GET',
|
|
494
|
-
path_params,
|
|
495
|
-
query_params,
|
|
496
|
-
header_params,
|
|
497
|
-
body=body_params,
|
|
498
|
-
post_params=form_params,
|
|
499
|
-
files=local_var_files,
|
|
500
|
-
response_type='Car', # noqa: E501
|
|
501
|
-
auth_settings=auth_settings,
|
|
502
|
-
async_req=params.get('async_req'),
|
|
503
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
504
|
-
_preload_content=params.get('_preload_content', True),
|
|
505
|
-
_request_timeout=params.get('_request_timeout'),
|
|
506
|
-
collection_formats=collection_formats)
|
|
507
|
-
|
|
508
|
-
def get_car_list(self, event_id, **kwargs): # noqa: E501
|
|
509
|
-
"""Get the list of all cars for an event # noqa: E501
|
|
510
|
-
|
|
511
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
512
|
-
asynchronous HTTP request, please pass async_req=True
|
|
513
|
-
>>> thread = api.get_car_list(event_id, async_req=True)
|
|
514
|
-
>>> result = thread.get()
|
|
515
|
-
|
|
516
|
-
:param async_req bool
|
|
517
|
-
:param str event_id: The unique event id for which you want to get the car list (required)
|
|
518
|
-
:return: list[CoupleGuidText]
|
|
519
|
-
If the method is called asynchronously,
|
|
520
|
-
returns the request thread.
|
|
521
|
-
"""
|
|
522
|
-
kwargs['_return_http_data_only'] = True
|
|
523
|
-
if kwargs.get('async_req'):
|
|
524
|
-
return self.get_car_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
525
|
-
else:
|
|
526
|
-
(data) = self.get_car_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
527
|
-
return data
|
|
528
|
-
|
|
529
|
-
def get_car_list_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
530
|
-
"""Get the list of all cars for an event # noqa: E501
|
|
531
|
-
|
|
532
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
533
|
-
asynchronous HTTP request, please pass async_req=True
|
|
534
|
-
>>> thread = api.get_car_list_with_http_info(event_id, async_req=True)
|
|
535
|
-
>>> result = thread.get()
|
|
536
|
-
|
|
537
|
-
:param async_req bool
|
|
538
|
-
:param str event_id: The unique event id for which you want to get the car list (required)
|
|
539
|
-
:return: list[CoupleGuidText]
|
|
540
|
-
If the method is called asynchronously,
|
|
541
|
-
returns the request thread.
|
|
542
|
-
"""
|
|
543
|
-
|
|
544
|
-
all_params = ['event_id'] # noqa: E501
|
|
545
|
-
all_params.append('async_req')
|
|
546
|
-
all_params.append('_return_http_data_only')
|
|
547
|
-
all_params.append('_preload_content')
|
|
548
|
-
all_params.append('_request_timeout')
|
|
549
|
-
|
|
550
|
-
params = locals()
|
|
551
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
552
|
-
if key not in all_params:
|
|
553
|
-
raise TypeError(
|
|
554
|
-
"Got an unexpected keyword argument '%s'"
|
|
555
|
-
" to method get_car_list" % key
|
|
556
|
-
)
|
|
557
|
-
params[key] = val
|
|
558
|
-
del params['kwargs']
|
|
559
|
-
# verify the required parameter 'event_id' is set
|
|
560
|
-
if ('event_id' not in params or
|
|
561
|
-
params['event_id'] is None):
|
|
562
|
-
raise ValueError("Missing the required parameter `event_id` when calling `get_car_list`") # noqa: E501
|
|
563
|
-
|
|
564
|
-
collection_formats = {}
|
|
565
|
-
|
|
566
|
-
path_params = {}
|
|
567
|
-
if 'event_id' in params:
|
|
568
|
-
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
569
|
-
|
|
570
|
-
query_params = []
|
|
571
|
-
|
|
572
|
-
header_params = {}
|
|
573
|
-
|
|
574
|
-
form_params = []
|
|
575
|
-
local_var_files = {}
|
|
576
|
-
|
|
577
|
-
body_params = None
|
|
578
|
-
# HTTP header `Accept`
|
|
579
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
580
|
-
['application/json', 'text/json']) # noqa: E501
|
|
581
|
-
|
|
582
|
-
# Authentication setting
|
|
583
|
-
auth_settings = [] # noqa: E501
|
|
584
|
-
|
|
585
|
-
return self.api_client.call_api(
|
|
586
|
-
'/teamdbapi/v2.0/event/{eventId}/cars', 'GET',
|
|
587
|
-
path_params,
|
|
588
|
-
query_params,
|
|
589
|
-
header_params,
|
|
590
|
-
body=body_params,
|
|
591
|
-
post_params=form_params,
|
|
592
|
-
files=local_var_files,
|
|
593
|
-
response_type='list[CoupleGuidText]', # noqa: E501
|
|
594
|
-
auth_settings=auth_settings,
|
|
595
|
-
async_req=params.get('async_req'),
|
|
596
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
597
|
-
_preload_content=params.get('_preload_content', True),
|
|
598
|
-
_request_timeout=params.get('_request_timeout'),
|
|
599
|
-
collection_formats=collection_formats)
|
|
600
|
-
|
|
601
|
-
def get_car_types(self, **kwargs): # noqa: E501
|
|
602
|
-
"""Get the list of all car types # noqa: E501
|
|
603
|
-
|
|
604
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
605
|
-
asynchronous HTTP request, please pass async_req=True
|
|
606
|
-
>>> thread = api.get_car_types(async_req=True)
|
|
607
|
-
>>> result = thread.get()
|
|
608
|
-
|
|
609
|
-
:param async_req bool
|
|
610
|
-
:return: list[CoupleGuidText]
|
|
611
|
-
If the method is called asynchronously,
|
|
612
|
-
returns the request thread.
|
|
613
|
-
"""
|
|
614
|
-
kwargs['_return_http_data_only'] = True
|
|
615
|
-
if kwargs.get('async_req'):
|
|
616
|
-
return self.get_car_types_with_http_info(**kwargs) # noqa: E501
|
|
617
|
-
else:
|
|
618
|
-
(data) = self.get_car_types_with_http_info(**kwargs) # noqa: E501
|
|
619
|
-
return data
|
|
620
|
-
|
|
621
|
-
def get_car_types_with_http_info(self, **kwargs): # noqa: E501
|
|
622
|
-
"""Get the list of all car types # noqa: E501
|
|
623
|
-
|
|
624
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
625
|
-
asynchronous HTTP request, please pass async_req=True
|
|
626
|
-
>>> thread = api.get_car_types_with_http_info(async_req=True)
|
|
627
|
-
>>> result = thread.get()
|
|
628
|
-
|
|
629
|
-
:param async_req bool
|
|
630
|
-
:return: list[CoupleGuidText]
|
|
631
|
-
If the method is called asynchronously,
|
|
632
|
-
returns the request thread.
|
|
633
|
-
"""
|
|
634
|
-
|
|
635
|
-
all_params = [] # noqa: E501
|
|
636
|
-
all_params.append('async_req')
|
|
637
|
-
all_params.append('_return_http_data_only')
|
|
638
|
-
all_params.append('_preload_content')
|
|
639
|
-
all_params.append('_request_timeout')
|
|
640
|
-
|
|
641
|
-
params = locals()
|
|
642
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
643
|
-
if key not in all_params:
|
|
644
|
-
raise TypeError(
|
|
645
|
-
"Got an unexpected keyword argument '%s'"
|
|
646
|
-
" to method get_car_types" % key
|
|
647
|
-
)
|
|
648
|
-
params[key] = val
|
|
649
|
-
del params['kwargs']
|
|
650
|
-
|
|
651
|
-
collection_formats = {}
|
|
652
|
-
|
|
653
|
-
path_params = {}
|
|
654
|
-
|
|
655
|
-
query_params = []
|
|
656
|
-
|
|
657
|
-
header_params = {}
|
|
658
|
-
|
|
659
|
-
form_params = []
|
|
660
|
-
local_var_files = {}
|
|
661
|
-
|
|
662
|
-
body_params = None
|
|
663
|
-
# HTTP header `Accept`
|
|
664
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
665
|
-
['application/json', 'text/json']) # noqa: E501
|
|
666
|
-
|
|
667
|
-
# Authentication setting
|
|
668
|
-
auth_settings = [] # noqa: E501
|
|
669
|
-
|
|
670
|
-
return self.api_client.call_api(
|
|
671
|
-
'/teamdbapi/v2.0/cartypes', 'GET',
|
|
672
|
-
path_params,
|
|
673
|
-
query_params,
|
|
674
|
-
header_params,
|
|
675
|
-
body=body_params,
|
|
676
|
-
post_params=form_params,
|
|
677
|
-
files=local_var_files,
|
|
678
|
-
response_type='list[CoupleGuidText]', # noqa: E501
|
|
679
|
-
auth_settings=auth_settings,
|
|
680
|
-
async_req=params.get('async_req'),
|
|
681
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
682
|
-
_preload_content=params.get('_preload_content', True),
|
|
683
|
-
_request_timeout=params.get('_request_timeout'),
|
|
684
|
-
collection_formats=collection_formats)
|
|
685
|
-
|
|
686
|
-
def get_current_car(self, **kwargs): # noqa: E501
|
|
687
|
-
"""Get the current car. # noqa: E501
|
|
688
|
-
|
|
689
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
690
|
-
asynchronous HTTP request, please pass async_req=True
|
|
691
|
-
>>> thread = api.get_current_car(async_req=True)
|
|
692
|
-
>>> result = thread.get()
|
|
693
|
-
|
|
694
|
-
:param async_req bool
|
|
695
|
-
:return: Car
|
|
696
|
-
If the method is called asynchronously,
|
|
697
|
-
returns the request thread.
|
|
698
|
-
"""
|
|
699
|
-
kwargs['_return_http_data_only'] = True
|
|
700
|
-
if kwargs.get('async_req'):
|
|
701
|
-
return self.get_current_car_with_http_info(**kwargs) # noqa: E501
|
|
702
|
-
else:
|
|
703
|
-
(data) = self.get_current_car_with_http_info(**kwargs) # noqa: E501
|
|
704
|
-
return data
|
|
705
|
-
|
|
706
|
-
def get_current_car_with_http_info(self, **kwargs): # noqa: E501
|
|
707
|
-
"""Get the current car. # noqa: E501
|
|
708
|
-
|
|
709
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
710
|
-
asynchronous HTTP request, please pass async_req=True
|
|
711
|
-
>>> thread = api.get_current_car_with_http_info(async_req=True)
|
|
712
|
-
>>> result = thread.get()
|
|
713
|
-
|
|
714
|
-
:param async_req bool
|
|
715
|
-
:return: Car
|
|
716
|
-
If the method is called asynchronously,
|
|
717
|
-
returns the request thread.
|
|
718
|
-
"""
|
|
719
|
-
|
|
720
|
-
all_params = [] # noqa: E501
|
|
721
|
-
all_params.append('async_req')
|
|
722
|
-
all_params.append('_return_http_data_only')
|
|
723
|
-
all_params.append('_preload_content')
|
|
724
|
-
all_params.append('_request_timeout')
|
|
725
|
-
|
|
726
|
-
params = locals()
|
|
727
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
728
|
-
if key not in all_params:
|
|
729
|
-
raise TypeError(
|
|
730
|
-
"Got an unexpected keyword argument '%s'"
|
|
731
|
-
" to method get_current_car" % key
|
|
732
|
-
)
|
|
733
|
-
params[key] = val
|
|
734
|
-
del params['kwargs']
|
|
735
|
-
|
|
736
|
-
collection_formats = {}
|
|
737
|
-
|
|
738
|
-
path_params = {}
|
|
739
|
-
|
|
740
|
-
query_params = []
|
|
741
|
-
|
|
742
|
-
header_params = {}
|
|
743
|
-
|
|
744
|
-
form_params = []
|
|
745
|
-
local_var_files = {}
|
|
746
|
-
|
|
747
|
-
body_params = None
|
|
748
|
-
# HTTP header `Accept`
|
|
749
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
750
|
-
['application/json', 'text/json']) # noqa: E501
|
|
751
|
-
|
|
752
|
-
# Authentication setting
|
|
753
|
-
auth_settings = [] # noqa: E501
|
|
754
|
-
|
|
755
|
-
return self.api_client.call_api(
|
|
756
|
-
'/teamdbapi/v2.0/car/current', 'GET',
|
|
757
|
-
path_params,
|
|
758
|
-
query_params,
|
|
759
|
-
header_params,
|
|
760
|
-
body=body_params,
|
|
761
|
-
post_params=form_params,
|
|
762
|
-
files=local_var_files,
|
|
763
|
-
response_type='Car', # noqa: E501
|
|
764
|
-
auth_settings=auth_settings,
|
|
765
|
-
async_req=params.get('async_req'),
|
|
766
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
767
|
-
_preload_content=params.get('_preload_content', True),
|
|
768
|
-
_request_timeout=params.get('_request_timeout'),
|
|
769
|
-
collection_formats=collection_formats)
|
|
770
|
-
|
|
771
|
-
def update_car(self, body, car_id, **kwargs): # noqa: E501
|
|
772
|
-
"""Update an existing car # noqa: E501
|
|
773
|
-
|
|
774
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
775
|
-
asynchronous HTTP request, please pass async_req=True
|
|
776
|
-
>>> thread = api.update_car(body, car_id, async_req=True)
|
|
777
|
-
>>> result = thread.get()
|
|
778
|
-
|
|
779
|
-
:param async_req bool
|
|
780
|
-
:param Car body: The car to update. (required)
|
|
781
|
-
:param str car_id: The unique car id for which you want to update the car (required)
|
|
782
|
-
:return: Car
|
|
783
|
-
If the method is called asynchronously,
|
|
784
|
-
returns the request thread.
|
|
785
|
-
"""
|
|
786
|
-
kwargs['_return_http_data_only'] = True
|
|
787
|
-
if kwargs.get('async_req'):
|
|
788
|
-
return self.update_car_with_http_info(body, car_id, **kwargs) # noqa: E501
|
|
789
|
-
else:
|
|
790
|
-
(data) = self.update_car_with_http_info(body, car_id, **kwargs) # noqa: E501
|
|
791
|
-
return data
|
|
792
|
-
|
|
793
|
-
def update_car_with_http_info(self, body, car_id, **kwargs): # noqa: E501
|
|
794
|
-
"""Update an existing car # noqa: E501
|
|
795
|
-
|
|
796
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
797
|
-
asynchronous HTTP request, please pass async_req=True
|
|
798
|
-
>>> thread = api.update_car_with_http_info(body, car_id, async_req=True)
|
|
799
|
-
>>> result = thread.get()
|
|
800
|
-
|
|
801
|
-
:param async_req bool
|
|
802
|
-
:param Car body: The car to update. (required)
|
|
803
|
-
:param str car_id: The unique car id for which you want to update the car (required)
|
|
804
|
-
:return: Car
|
|
805
|
-
If the method is called asynchronously,
|
|
806
|
-
returns the request thread.
|
|
807
|
-
"""
|
|
808
|
-
|
|
809
|
-
all_params = ['body', 'car_id'] # noqa: E501
|
|
810
|
-
all_params.append('async_req')
|
|
811
|
-
all_params.append('_return_http_data_only')
|
|
812
|
-
all_params.append('_preload_content')
|
|
813
|
-
all_params.append('_request_timeout')
|
|
814
|
-
|
|
815
|
-
params = locals()
|
|
816
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
817
|
-
if key not in all_params:
|
|
818
|
-
raise TypeError(
|
|
819
|
-
"Got an unexpected keyword argument '%s'"
|
|
820
|
-
" to method update_car" % key
|
|
821
|
-
)
|
|
822
|
-
params[key] = val
|
|
823
|
-
del params['kwargs']
|
|
824
|
-
# verify the required parameter 'body' is set
|
|
825
|
-
if ('body' not in params or
|
|
826
|
-
params['body'] is None):
|
|
827
|
-
raise ValueError("Missing the required parameter `body` when calling `update_car`") # noqa: E501
|
|
828
|
-
# verify the required parameter 'car_id' is set
|
|
829
|
-
if ('car_id' not in params or
|
|
830
|
-
params['car_id'] is None):
|
|
831
|
-
raise ValueError("Missing the required parameter `car_id` when calling `update_car`") # noqa: E501
|
|
832
|
-
|
|
833
|
-
collection_formats = {}
|
|
834
|
-
|
|
835
|
-
path_params = {}
|
|
836
|
-
if 'car_id' in params:
|
|
837
|
-
path_params['carId'] = params['car_id'] # noqa: E501
|
|
838
|
-
|
|
839
|
-
query_params = []
|
|
840
|
-
|
|
841
|
-
header_params = {}
|
|
842
|
-
|
|
843
|
-
form_params = []
|
|
844
|
-
local_var_files = {}
|
|
845
|
-
|
|
846
|
-
body_params = None
|
|
847
|
-
if 'body' in params:
|
|
848
|
-
body_params = params['body']
|
|
849
|
-
# HTTP header `Accept`
|
|
850
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
851
|
-
['application/json', 'text/json']) # noqa: E501
|
|
852
|
-
|
|
853
|
-
# HTTP header `Content-Type`
|
|
854
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
855
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
856
|
-
|
|
857
|
-
# Authentication setting
|
|
858
|
-
auth_settings = [] # noqa: E501
|
|
859
|
-
|
|
860
|
-
return self.api_client.call_api(
|
|
861
|
-
'/teamdbapi/v2.0/car/{carId}', 'PUT',
|
|
862
|
-
path_params,
|
|
863
|
-
query_params,
|
|
864
|
-
header_params,
|
|
865
|
-
body=body_params,
|
|
866
|
-
post_params=form_params,
|
|
867
|
-
files=local_var_files,
|
|
868
|
-
response_type='Car', # noqa: E501
|
|
869
|
-
auth_settings=auth_settings,
|
|
870
|
-
async_req=params.get('async_req'),
|
|
871
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
872
|
-
_preload_content=params.get('_preload_content', True),
|
|
873
|
-
_request_timeout=params.get('_request_timeout'),
|
|
874
|
-
collection_formats=collection_formats)
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Trackside Software TeamDB API v2.0
|
|
5
|
+
|
|
6
|
+
This API enables you to access TeamDB data # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 2.0
|
|
9
|
+
Contact: support@trackside.fr
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import absolute_import
|
|
14
|
+
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
# python 2 and python 3 compatibility library
|
|
18
|
+
import six
|
|
19
|
+
|
|
20
|
+
from teamdbapi.api_client import ApiClient
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CarApi(object):
|
|
24
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
+
|
|
26
|
+
Do not edit the class manually.
|
|
27
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
def __init__(self, api_client=None):
|
|
31
|
+
if api_client is None:
|
|
32
|
+
api_client = ApiClient()
|
|
33
|
+
self.api_client = api_client
|
|
34
|
+
|
|
35
|
+
def create_car(self, body, **kwargs): # noqa: E501
|
|
36
|
+
"""Create a new car # noqa: E501
|
|
37
|
+
|
|
38
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
39
|
+
asynchronous HTTP request, please pass async_req=True
|
|
40
|
+
>>> thread = api.create_car(body, async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:param Car body: The car to create. (required)
|
|
45
|
+
:return: Car
|
|
46
|
+
If the method is called asynchronously,
|
|
47
|
+
returns the request thread.
|
|
48
|
+
"""
|
|
49
|
+
kwargs['_return_http_data_only'] = True
|
|
50
|
+
if kwargs.get('async_req'):
|
|
51
|
+
return self.create_car_with_http_info(body, **kwargs) # noqa: E501
|
|
52
|
+
else:
|
|
53
|
+
(data) = self.create_car_with_http_info(body, **kwargs) # noqa: E501
|
|
54
|
+
return data
|
|
55
|
+
|
|
56
|
+
def create_car_with_http_info(self, body, **kwargs): # noqa: E501
|
|
57
|
+
"""Create a new car # noqa: E501
|
|
58
|
+
|
|
59
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
60
|
+
asynchronous HTTP request, please pass async_req=True
|
|
61
|
+
>>> thread = api.create_car_with_http_info(body, async_req=True)
|
|
62
|
+
>>> result = thread.get()
|
|
63
|
+
|
|
64
|
+
:param async_req bool
|
|
65
|
+
:param Car body: The car to create. (required)
|
|
66
|
+
:return: Car
|
|
67
|
+
If the method is called asynchronously,
|
|
68
|
+
returns the request thread.
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
all_params = ['body'] # noqa: E501
|
|
72
|
+
all_params.append('async_req')
|
|
73
|
+
all_params.append('_return_http_data_only')
|
|
74
|
+
all_params.append('_preload_content')
|
|
75
|
+
all_params.append('_request_timeout')
|
|
76
|
+
|
|
77
|
+
params = locals()
|
|
78
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
79
|
+
if key not in all_params:
|
|
80
|
+
raise TypeError(
|
|
81
|
+
"Got an unexpected keyword argument '%s'"
|
|
82
|
+
" to method create_car" % key
|
|
83
|
+
)
|
|
84
|
+
params[key] = val
|
|
85
|
+
del params['kwargs']
|
|
86
|
+
# verify the required parameter 'body' is set
|
|
87
|
+
if ('body' not in params or
|
|
88
|
+
params['body'] is None):
|
|
89
|
+
raise ValueError("Missing the required parameter `body` when calling `create_car`") # noqa: E501
|
|
90
|
+
|
|
91
|
+
collection_formats = {}
|
|
92
|
+
|
|
93
|
+
path_params = {}
|
|
94
|
+
|
|
95
|
+
query_params = []
|
|
96
|
+
|
|
97
|
+
header_params = {}
|
|
98
|
+
|
|
99
|
+
form_params = []
|
|
100
|
+
local_var_files = {}
|
|
101
|
+
|
|
102
|
+
body_params = None
|
|
103
|
+
if 'body' in params:
|
|
104
|
+
body_params = params['body']
|
|
105
|
+
# HTTP header `Accept`
|
|
106
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
107
|
+
['application/json', 'text/json']) # noqa: E501
|
|
108
|
+
|
|
109
|
+
# HTTP header `Content-Type`
|
|
110
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
111
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
112
|
+
|
|
113
|
+
# Authentication setting
|
|
114
|
+
auth_settings = [] # noqa: E501
|
|
115
|
+
|
|
116
|
+
return self.api_client.call_api(
|
|
117
|
+
'/teamdbapi/v2.0/car', 'POST',
|
|
118
|
+
path_params,
|
|
119
|
+
query_params,
|
|
120
|
+
header_params,
|
|
121
|
+
body=body_params,
|
|
122
|
+
post_params=form_params,
|
|
123
|
+
files=local_var_files,
|
|
124
|
+
response_type='Car', # noqa: E501
|
|
125
|
+
auth_settings=auth_settings,
|
|
126
|
+
async_req=params.get('async_req'),
|
|
127
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
128
|
+
_preload_content=params.get('_preload_content', True),
|
|
129
|
+
_request_timeout=params.get('_request_timeout'),
|
|
130
|
+
collection_formats=collection_formats)
|
|
131
|
+
|
|
132
|
+
def create_car_type(self, body, **kwargs): # noqa: E501
|
|
133
|
+
"""Create a new car type # noqa: E501
|
|
134
|
+
|
|
135
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
136
|
+
asynchronous HTTP request, please pass async_req=True
|
|
137
|
+
>>> thread = api.create_car_type(body, async_req=True)
|
|
138
|
+
>>> result = thread.get()
|
|
139
|
+
|
|
140
|
+
:param async_req bool
|
|
141
|
+
:param str body: The new car type name. (required)
|
|
142
|
+
:return: CoupleGuidText
|
|
143
|
+
If the method is called asynchronously,
|
|
144
|
+
returns the request thread.
|
|
145
|
+
"""
|
|
146
|
+
kwargs['_return_http_data_only'] = True
|
|
147
|
+
if kwargs.get('async_req'):
|
|
148
|
+
return self.create_car_type_with_http_info(body, **kwargs) # noqa: E501
|
|
149
|
+
else:
|
|
150
|
+
(data) = self.create_car_type_with_http_info(body, **kwargs) # noqa: E501
|
|
151
|
+
return data
|
|
152
|
+
|
|
153
|
+
def create_car_type_with_http_info(self, body, **kwargs): # noqa: E501
|
|
154
|
+
"""Create a new car type # noqa: E501
|
|
155
|
+
|
|
156
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
157
|
+
asynchronous HTTP request, please pass async_req=True
|
|
158
|
+
>>> thread = api.create_car_type_with_http_info(body, async_req=True)
|
|
159
|
+
>>> result = thread.get()
|
|
160
|
+
|
|
161
|
+
:param async_req bool
|
|
162
|
+
:param str body: The new car type name. (required)
|
|
163
|
+
:return: CoupleGuidText
|
|
164
|
+
If the method is called asynchronously,
|
|
165
|
+
returns the request thread.
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
all_params = ['body'] # noqa: E501
|
|
169
|
+
all_params.append('async_req')
|
|
170
|
+
all_params.append('_return_http_data_only')
|
|
171
|
+
all_params.append('_preload_content')
|
|
172
|
+
all_params.append('_request_timeout')
|
|
173
|
+
|
|
174
|
+
params = locals()
|
|
175
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
176
|
+
if key not in all_params:
|
|
177
|
+
raise TypeError(
|
|
178
|
+
"Got an unexpected keyword argument '%s'"
|
|
179
|
+
" to method create_car_type" % key
|
|
180
|
+
)
|
|
181
|
+
params[key] = val
|
|
182
|
+
del params['kwargs']
|
|
183
|
+
# verify the required parameter 'body' is set
|
|
184
|
+
if ('body' not in params or
|
|
185
|
+
params['body'] is None):
|
|
186
|
+
raise ValueError("Missing the required parameter `body` when calling `create_car_type`") # noqa: E501
|
|
187
|
+
|
|
188
|
+
collection_formats = {}
|
|
189
|
+
|
|
190
|
+
path_params = {}
|
|
191
|
+
|
|
192
|
+
query_params = []
|
|
193
|
+
|
|
194
|
+
header_params = {}
|
|
195
|
+
|
|
196
|
+
form_params = []
|
|
197
|
+
local_var_files = {}
|
|
198
|
+
|
|
199
|
+
body_params = None
|
|
200
|
+
if 'body' in params:
|
|
201
|
+
body_params = params['body']
|
|
202
|
+
# HTTP header `Accept`
|
|
203
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
204
|
+
['application/json', 'text/json']) # noqa: E501
|
|
205
|
+
|
|
206
|
+
# HTTP header `Content-Type`
|
|
207
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
208
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
209
|
+
|
|
210
|
+
# Authentication setting
|
|
211
|
+
auth_settings = [] # noqa: E501
|
|
212
|
+
|
|
213
|
+
return self.api_client.call_api(
|
|
214
|
+
'/teamdbapi/v2.0/cartype', 'POST',
|
|
215
|
+
path_params,
|
|
216
|
+
query_params,
|
|
217
|
+
header_params,
|
|
218
|
+
body=body_params,
|
|
219
|
+
post_params=form_params,
|
|
220
|
+
files=local_var_files,
|
|
221
|
+
response_type='CoupleGuidText', # noqa: E501
|
|
222
|
+
auth_settings=auth_settings,
|
|
223
|
+
async_req=params.get('async_req'),
|
|
224
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
225
|
+
_preload_content=params.get('_preload_content', True),
|
|
226
|
+
_request_timeout=params.get('_request_timeout'),
|
|
227
|
+
collection_formats=collection_formats)
|
|
228
|
+
|
|
229
|
+
def delete_car(self, car_id, **kwargs): # noqa: E501
|
|
230
|
+
"""Delete an existing car # noqa: E501
|
|
231
|
+
|
|
232
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
233
|
+
asynchronous HTTP request, please pass async_req=True
|
|
234
|
+
>>> thread = api.delete_car(car_id, async_req=True)
|
|
235
|
+
>>> result = thread.get()
|
|
236
|
+
|
|
237
|
+
:param async_req bool
|
|
238
|
+
:param str car_id: The unique car id for which you want to delete the car (required)
|
|
239
|
+
:return: None
|
|
240
|
+
If the method is called asynchronously,
|
|
241
|
+
returns the request thread.
|
|
242
|
+
"""
|
|
243
|
+
kwargs['_return_http_data_only'] = True
|
|
244
|
+
if kwargs.get('async_req'):
|
|
245
|
+
return self.delete_car_with_http_info(car_id, **kwargs) # noqa: E501
|
|
246
|
+
else:
|
|
247
|
+
(data) = self.delete_car_with_http_info(car_id, **kwargs) # noqa: E501
|
|
248
|
+
return data
|
|
249
|
+
|
|
250
|
+
def delete_car_with_http_info(self, car_id, **kwargs): # noqa: E501
|
|
251
|
+
"""Delete an existing car # noqa: E501
|
|
252
|
+
|
|
253
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
254
|
+
asynchronous HTTP request, please pass async_req=True
|
|
255
|
+
>>> thread = api.delete_car_with_http_info(car_id, async_req=True)
|
|
256
|
+
>>> result = thread.get()
|
|
257
|
+
|
|
258
|
+
:param async_req bool
|
|
259
|
+
:param str car_id: The unique car id for which you want to delete the car (required)
|
|
260
|
+
:return: None
|
|
261
|
+
If the method is called asynchronously,
|
|
262
|
+
returns the request thread.
|
|
263
|
+
"""
|
|
264
|
+
|
|
265
|
+
all_params = ['car_id'] # noqa: E501
|
|
266
|
+
all_params.append('async_req')
|
|
267
|
+
all_params.append('_return_http_data_only')
|
|
268
|
+
all_params.append('_preload_content')
|
|
269
|
+
all_params.append('_request_timeout')
|
|
270
|
+
|
|
271
|
+
params = locals()
|
|
272
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
273
|
+
if key not in all_params:
|
|
274
|
+
raise TypeError(
|
|
275
|
+
"Got an unexpected keyword argument '%s'"
|
|
276
|
+
" to method delete_car" % key
|
|
277
|
+
)
|
|
278
|
+
params[key] = val
|
|
279
|
+
del params['kwargs']
|
|
280
|
+
# verify the required parameter 'car_id' is set
|
|
281
|
+
if ('car_id' not in params or
|
|
282
|
+
params['car_id'] is None):
|
|
283
|
+
raise ValueError("Missing the required parameter `car_id` when calling `delete_car`") # noqa: E501
|
|
284
|
+
|
|
285
|
+
collection_formats = {}
|
|
286
|
+
|
|
287
|
+
path_params = {}
|
|
288
|
+
if 'car_id' in params:
|
|
289
|
+
path_params['carId'] = params['car_id'] # noqa: E501
|
|
290
|
+
|
|
291
|
+
query_params = []
|
|
292
|
+
|
|
293
|
+
header_params = {}
|
|
294
|
+
|
|
295
|
+
form_params = []
|
|
296
|
+
local_var_files = {}
|
|
297
|
+
|
|
298
|
+
body_params = None
|
|
299
|
+
# HTTP header `Accept`
|
|
300
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
301
|
+
['application/json', 'text/json']) # noqa: E501
|
|
302
|
+
|
|
303
|
+
# Authentication setting
|
|
304
|
+
auth_settings = [] # noqa: E501
|
|
305
|
+
|
|
306
|
+
return self.api_client.call_api(
|
|
307
|
+
'/teamdbapi/v2.0/car/{carId}', 'DELETE',
|
|
308
|
+
path_params,
|
|
309
|
+
query_params,
|
|
310
|
+
header_params,
|
|
311
|
+
body=body_params,
|
|
312
|
+
post_params=form_params,
|
|
313
|
+
files=local_var_files,
|
|
314
|
+
response_type=None, # noqa: E501
|
|
315
|
+
auth_settings=auth_settings,
|
|
316
|
+
async_req=params.get('async_req'),
|
|
317
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
318
|
+
_preload_content=params.get('_preload_content', True),
|
|
319
|
+
_request_timeout=params.get('_request_timeout'),
|
|
320
|
+
collection_formats=collection_formats)
|
|
321
|
+
|
|
322
|
+
def delete_car_type(self, car_type_id, **kwargs): # noqa: E501
|
|
323
|
+
"""Delete an existing car type # noqa: E501
|
|
324
|
+
|
|
325
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
326
|
+
asynchronous HTTP request, please pass async_req=True
|
|
327
|
+
>>> thread = api.delete_car_type(car_type_id, async_req=True)
|
|
328
|
+
>>> result = thread.get()
|
|
329
|
+
|
|
330
|
+
:param async_req bool
|
|
331
|
+
:param str car_type_id: The unique car type id for which you want to delete the car type (required)
|
|
332
|
+
:return: None
|
|
333
|
+
If the method is called asynchronously,
|
|
334
|
+
returns the request thread.
|
|
335
|
+
"""
|
|
336
|
+
kwargs['_return_http_data_only'] = True
|
|
337
|
+
if kwargs.get('async_req'):
|
|
338
|
+
return self.delete_car_type_with_http_info(car_type_id, **kwargs) # noqa: E501
|
|
339
|
+
else:
|
|
340
|
+
(data) = self.delete_car_type_with_http_info(car_type_id, **kwargs) # noqa: E501
|
|
341
|
+
return data
|
|
342
|
+
|
|
343
|
+
def delete_car_type_with_http_info(self, car_type_id, **kwargs): # noqa: E501
|
|
344
|
+
"""Delete an existing car type # noqa: E501
|
|
345
|
+
|
|
346
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
347
|
+
asynchronous HTTP request, please pass async_req=True
|
|
348
|
+
>>> thread = api.delete_car_type_with_http_info(car_type_id, async_req=True)
|
|
349
|
+
>>> result = thread.get()
|
|
350
|
+
|
|
351
|
+
:param async_req bool
|
|
352
|
+
:param str car_type_id: The unique car type id for which you want to delete the car type (required)
|
|
353
|
+
:return: None
|
|
354
|
+
If the method is called asynchronously,
|
|
355
|
+
returns the request thread.
|
|
356
|
+
"""
|
|
357
|
+
|
|
358
|
+
all_params = ['car_type_id'] # noqa: E501
|
|
359
|
+
all_params.append('async_req')
|
|
360
|
+
all_params.append('_return_http_data_only')
|
|
361
|
+
all_params.append('_preload_content')
|
|
362
|
+
all_params.append('_request_timeout')
|
|
363
|
+
|
|
364
|
+
params = locals()
|
|
365
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
366
|
+
if key not in all_params:
|
|
367
|
+
raise TypeError(
|
|
368
|
+
"Got an unexpected keyword argument '%s'"
|
|
369
|
+
" to method delete_car_type" % key
|
|
370
|
+
)
|
|
371
|
+
params[key] = val
|
|
372
|
+
del params['kwargs']
|
|
373
|
+
# verify the required parameter 'car_type_id' is set
|
|
374
|
+
if ('car_type_id' not in params or
|
|
375
|
+
params['car_type_id'] is None):
|
|
376
|
+
raise ValueError("Missing the required parameter `car_type_id` when calling `delete_car_type`") # noqa: E501
|
|
377
|
+
|
|
378
|
+
collection_formats = {}
|
|
379
|
+
|
|
380
|
+
path_params = {}
|
|
381
|
+
if 'car_type_id' in params:
|
|
382
|
+
path_params['carTypeId'] = params['car_type_id'] # noqa: E501
|
|
383
|
+
|
|
384
|
+
query_params = []
|
|
385
|
+
|
|
386
|
+
header_params = {}
|
|
387
|
+
|
|
388
|
+
form_params = []
|
|
389
|
+
local_var_files = {}
|
|
390
|
+
|
|
391
|
+
body_params = None
|
|
392
|
+
# HTTP header `Accept`
|
|
393
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
394
|
+
['application/json', 'text/json']) # noqa: E501
|
|
395
|
+
|
|
396
|
+
# Authentication setting
|
|
397
|
+
auth_settings = [] # noqa: E501
|
|
398
|
+
|
|
399
|
+
return self.api_client.call_api(
|
|
400
|
+
'/teamdbapi/v2.0/cartype/{carTypeId}', 'DELETE',
|
|
401
|
+
path_params,
|
|
402
|
+
query_params,
|
|
403
|
+
header_params,
|
|
404
|
+
body=body_params,
|
|
405
|
+
post_params=form_params,
|
|
406
|
+
files=local_var_files,
|
|
407
|
+
response_type=None, # noqa: E501
|
|
408
|
+
auth_settings=auth_settings,
|
|
409
|
+
async_req=params.get('async_req'),
|
|
410
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
411
|
+
_preload_content=params.get('_preload_content', True),
|
|
412
|
+
_request_timeout=params.get('_request_timeout'),
|
|
413
|
+
collection_formats=collection_formats)
|
|
414
|
+
|
|
415
|
+
def get_car(self, car_id, **kwargs): # noqa: E501
|
|
416
|
+
"""Get a car via a unique id. # noqa: E501
|
|
417
|
+
|
|
418
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
419
|
+
asynchronous HTTP request, please pass async_req=True
|
|
420
|
+
>>> thread = api.get_car(car_id, async_req=True)
|
|
421
|
+
>>> result = thread.get()
|
|
422
|
+
|
|
423
|
+
:param async_req bool
|
|
424
|
+
:param str car_id: The unique car id for which you want to get the car (required)
|
|
425
|
+
:return: Car
|
|
426
|
+
If the method is called asynchronously,
|
|
427
|
+
returns the request thread.
|
|
428
|
+
"""
|
|
429
|
+
kwargs['_return_http_data_only'] = True
|
|
430
|
+
if kwargs.get('async_req'):
|
|
431
|
+
return self.get_car_with_http_info(car_id, **kwargs) # noqa: E501
|
|
432
|
+
else:
|
|
433
|
+
(data) = self.get_car_with_http_info(car_id, **kwargs) # noqa: E501
|
|
434
|
+
return data
|
|
435
|
+
|
|
436
|
+
def get_car_with_http_info(self, car_id, **kwargs): # noqa: E501
|
|
437
|
+
"""Get a car via a unique id. # noqa: E501
|
|
438
|
+
|
|
439
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
440
|
+
asynchronous HTTP request, please pass async_req=True
|
|
441
|
+
>>> thread = api.get_car_with_http_info(car_id, async_req=True)
|
|
442
|
+
>>> result = thread.get()
|
|
443
|
+
|
|
444
|
+
:param async_req bool
|
|
445
|
+
:param str car_id: The unique car id for which you want to get the car (required)
|
|
446
|
+
:return: Car
|
|
447
|
+
If the method is called asynchronously,
|
|
448
|
+
returns the request thread.
|
|
449
|
+
"""
|
|
450
|
+
|
|
451
|
+
all_params = ['car_id'] # noqa: E501
|
|
452
|
+
all_params.append('async_req')
|
|
453
|
+
all_params.append('_return_http_data_only')
|
|
454
|
+
all_params.append('_preload_content')
|
|
455
|
+
all_params.append('_request_timeout')
|
|
456
|
+
|
|
457
|
+
params = locals()
|
|
458
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
459
|
+
if key not in all_params:
|
|
460
|
+
raise TypeError(
|
|
461
|
+
"Got an unexpected keyword argument '%s'"
|
|
462
|
+
" to method get_car" % key
|
|
463
|
+
)
|
|
464
|
+
params[key] = val
|
|
465
|
+
del params['kwargs']
|
|
466
|
+
# verify the required parameter 'car_id' is set
|
|
467
|
+
if ('car_id' not in params or
|
|
468
|
+
params['car_id'] is None):
|
|
469
|
+
raise ValueError("Missing the required parameter `car_id` when calling `get_car`") # noqa: E501
|
|
470
|
+
|
|
471
|
+
collection_formats = {}
|
|
472
|
+
|
|
473
|
+
path_params = {}
|
|
474
|
+
if 'car_id' in params:
|
|
475
|
+
path_params['carId'] = params['car_id'] # noqa: E501
|
|
476
|
+
|
|
477
|
+
query_params = []
|
|
478
|
+
|
|
479
|
+
header_params = {}
|
|
480
|
+
|
|
481
|
+
form_params = []
|
|
482
|
+
local_var_files = {}
|
|
483
|
+
|
|
484
|
+
body_params = None
|
|
485
|
+
# HTTP header `Accept`
|
|
486
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
487
|
+
['application/json', 'text/json']) # noqa: E501
|
|
488
|
+
|
|
489
|
+
# Authentication setting
|
|
490
|
+
auth_settings = [] # noqa: E501
|
|
491
|
+
|
|
492
|
+
return self.api_client.call_api(
|
|
493
|
+
'/teamdbapi/v2.0/car/{carId}', 'GET',
|
|
494
|
+
path_params,
|
|
495
|
+
query_params,
|
|
496
|
+
header_params,
|
|
497
|
+
body=body_params,
|
|
498
|
+
post_params=form_params,
|
|
499
|
+
files=local_var_files,
|
|
500
|
+
response_type='Car', # noqa: E501
|
|
501
|
+
auth_settings=auth_settings,
|
|
502
|
+
async_req=params.get('async_req'),
|
|
503
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
504
|
+
_preload_content=params.get('_preload_content', True),
|
|
505
|
+
_request_timeout=params.get('_request_timeout'),
|
|
506
|
+
collection_formats=collection_formats)
|
|
507
|
+
|
|
508
|
+
def get_car_list(self, event_id, **kwargs): # noqa: E501
|
|
509
|
+
"""Get the list of all cars for an event # noqa: E501
|
|
510
|
+
|
|
511
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
512
|
+
asynchronous HTTP request, please pass async_req=True
|
|
513
|
+
>>> thread = api.get_car_list(event_id, async_req=True)
|
|
514
|
+
>>> result = thread.get()
|
|
515
|
+
|
|
516
|
+
:param async_req bool
|
|
517
|
+
:param str event_id: The unique event id for which you want to get the car list (required)
|
|
518
|
+
:return: list[CoupleGuidText]
|
|
519
|
+
If the method is called asynchronously,
|
|
520
|
+
returns the request thread.
|
|
521
|
+
"""
|
|
522
|
+
kwargs['_return_http_data_only'] = True
|
|
523
|
+
if kwargs.get('async_req'):
|
|
524
|
+
return self.get_car_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
525
|
+
else:
|
|
526
|
+
(data) = self.get_car_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
527
|
+
return data
|
|
528
|
+
|
|
529
|
+
def get_car_list_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
530
|
+
"""Get the list of all cars for an event # noqa: E501
|
|
531
|
+
|
|
532
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
533
|
+
asynchronous HTTP request, please pass async_req=True
|
|
534
|
+
>>> thread = api.get_car_list_with_http_info(event_id, async_req=True)
|
|
535
|
+
>>> result = thread.get()
|
|
536
|
+
|
|
537
|
+
:param async_req bool
|
|
538
|
+
:param str event_id: The unique event id for which you want to get the car list (required)
|
|
539
|
+
:return: list[CoupleGuidText]
|
|
540
|
+
If the method is called asynchronously,
|
|
541
|
+
returns the request thread.
|
|
542
|
+
"""
|
|
543
|
+
|
|
544
|
+
all_params = ['event_id'] # noqa: E501
|
|
545
|
+
all_params.append('async_req')
|
|
546
|
+
all_params.append('_return_http_data_only')
|
|
547
|
+
all_params.append('_preload_content')
|
|
548
|
+
all_params.append('_request_timeout')
|
|
549
|
+
|
|
550
|
+
params = locals()
|
|
551
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
552
|
+
if key not in all_params:
|
|
553
|
+
raise TypeError(
|
|
554
|
+
"Got an unexpected keyword argument '%s'"
|
|
555
|
+
" to method get_car_list" % key
|
|
556
|
+
)
|
|
557
|
+
params[key] = val
|
|
558
|
+
del params['kwargs']
|
|
559
|
+
# verify the required parameter 'event_id' is set
|
|
560
|
+
if ('event_id' not in params or
|
|
561
|
+
params['event_id'] is None):
|
|
562
|
+
raise ValueError("Missing the required parameter `event_id` when calling `get_car_list`") # noqa: E501
|
|
563
|
+
|
|
564
|
+
collection_formats = {}
|
|
565
|
+
|
|
566
|
+
path_params = {}
|
|
567
|
+
if 'event_id' in params:
|
|
568
|
+
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
569
|
+
|
|
570
|
+
query_params = []
|
|
571
|
+
|
|
572
|
+
header_params = {}
|
|
573
|
+
|
|
574
|
+
form_params = []
|
|
575
|
+
local_var_files = {}
|
|
576
|
+
|
|
577
|
+
body_params = None
|
|
578
|
+
# HTTP header `Accept`
|
|
579
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
580
|
+
['application/json', 'text/json']) # noqa: E501
|
|
581
|
+
|
|
582
|
+
# Authentication setting
|
|
583
|
+
auth_settings = [] # noqa: E501
|
|
584
|
+
|
|
585
|
+
return self.api_client.call_api(
|
|
586
|
+
'/teamdbapi/v2.0/event/{eventId}/cars', 'GET',
|
|
587
|
+
path_params,
|
|
588
|
+
query_params,
|
|
589
|
+
header_params,
|
|
590
|
+
body=body_params,
|
|
591
|
+
post_params=form_params,
|
|
592
|
+
files=local_var_files,
|
|
593
|
+
response_type='list[CoupleGuidText]', # noqa: E501
|
|
594
|
+
auth_settings=auth_settings,
|
|
595
|
+
async_req=params.get('async_req'),
|
|
596
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
597
|
+
_preload_content=params.get('_preload_content', True),
|
|
598
|
+
_request_timeout=params.get('_request_timeout'),
|
|
599
|
+
collection_formats=collection_formats)
|
|
600
|
+
|
|
601
|
+
def get_car_types(self, **kwargs): # noqa: E501
|
|
602
|
+
"""Get the list of all car types # noqa: E501
|
|
603
|
+
|
|
604
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
605
|
+
asynchronous HTTP request, please pass async_req=True
|
|
606
|
+
>>> thread = api.get_car_types(async_req=True)
|
|
607
|
+
>>> result = thread.get()
|
|
608
|
+
|
|
609
|
+
:param async_req bool
|
|
610
|
+
:return: list[CoupleGuidText]
|
|
611
|
+
If the method is called asynchronously,
|
|
612
|
+
returns the request thread.
|
|
613
|
+
"""
|
|
614
|
+
kwargs['_return_http_data_only'] = True
|
|
615
|
+
if kwargs.get('async_req'):
|
|
616
|
+
return self.get_car_types_with_http_info(**kwargs) # noqa: E501
|
|
617
|
+
else:
|
|
618
|
+
(data) = self.get_car_types_with_http_info(**kwargs) # noqa: E501
|
|
619
|
+
return data
|
|
620
|
+
|
|
621
|
+
def get_car_types_with_http_info(self, **kwargs): # noqa: E501
|
|
622
|
+
"""Get the list of all car types # noqa: E501
|
|
623
|
+
|
|
624
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
625
|
+
asynchronous HTTP request, please pass async_req=True
|
|
626
|
+
>>> thread = api.get_car_types_with_http_info(async_req=True)
|
|
627
|
+
>>> result = thread.get()
|
|
628
|
+
|
|
629
|
+
:param async_req bool
|
|
630
|
+
:return: list[CoupleGuidText]
|
|
631
|
+
If the method is called asynchronously,
|
|
632
|
+
returns the request thread.
|
|
633
|
+
"""
|
|
634
|
+
|
|
635
|
+
all_params = [] # noqa: E501
|
|
636
|
+
all_params.append('async_req')
|
|
637
|
+
all_params.append('_return_http_data_only')
|
|
638
|
+
all_params.append('_preload_content')
|
|
639
|
+
all_params.append('_request_timeout')
|
|
640
|
+
|
|
641
|
+
params = locals()
|
|
642
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
643
|
+
if key not in all_params:
|
|
644
|
+
raise TypeError(
|
|
645
|
+
"Got an unexpected keyword argument '%s'"
|
|
646
|
+
" to method get_car_types" % key
|
|
647
|
+
)
|
|
648
|
+
params[key] = val
|
|
649
|
+
del params['kwargs']
|
|
650
|
+
|
|
651
|
+
collection_formats = {}
|
|
652
|
+
|
|
653
|
+
path_params = {}
|
|
654
|
+
|
|
655
|
+
query_params = []
|
|
656
|
+
|
|
657
|
+
header_params = {}
|
|
658
|
+
|
|
659
|
+
form_params = []
|
|
660
|
+
local_var_files = {}
|
|
661
|
+
|
|
662
|
+
body_params = None
|
|
663
|
+
# HTTP header `Accept`
|
|
664
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
665
|
+
['application/json', 'text/json']) # noqa: E501
|
|
666
|
+
|
|
667
|
+
# Authentication setting
|
|
668
|
+
auth_settings = [] # noqa: E501
|
|
669
|
+
|
|
670
|
+
return self.api_client.call_api(
|
|
671
|
+
'/teamdbapi/v2.0/cartypes', 'GET',
|
|
672
|
+
path_params,
|
|
673
|
+
query_params,
|
|
674
|
+
header_params,
|
|
675
|
+
body=body_params,
|
|
676
|
+
post_params=form_params,
|
|
677
|
+
files=local_var_files,
|
|
678
|
+
response_type='list[CoupleGuidText]', # noqa: E501
|
|
679
|
+
auth_settings=auth_settings,
|
|
680
|
+
async_req=params.get('async_req'),
|
|
681
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
682
|
+
_preload_content=params.get('_preload_content', True),
|
|
683
|
+
_request_timeout=params.get('_request_timeout'),
|
|
684
|
+
collection_formats=collection_formats)
|
|
685
|
+
|
|
686
|
+
def get_current_car(self, **kwargs): # noqa: E501
|
|
687
|
+
"""Get the current car. # noqa: E501
|
|
688
|
+
|
|
689
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
690
|
+
asynchronous HTTP request, please pass async_req=True
|
|
691
|
+
>>> thread = api.get_current_car(async_req=True)
|
|
692
|
+
>>> result = thread.get()
|
|
693
|
+
|
|
694
|
+
:param async_req bool
|
|
695
|
+
:return: Car
|
|
696
|
+
If the method is called asynchronously,
|
|
697
|
+
returns the request thread.
|
|
698
|
+
"""
|
|
699
|
+
kwargs['_return_http_data_only'] = True
|
|
700
|
+
if kwargs.get('async_req'):
|
|
701
|
+
return self.get_current_car_with_http_info(**kwargs) # noqa: E501
|
|
702
|
+
else:
|
|
703
|
+
(data) = self.get_current_car_with_http_info(**kwargs) # noqa: E501
|
|
704
|
+
return data
|
|
705
|
+
|
|
706
|
+
def get_current_car_with_http_info(self, **kwargs): # noqa: E501
|
|
707
|
+
"""Get the current car. # noqa: E501
|
|
708
|
+
|
|
709
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
710
|
+
asynchronous HTTP request, please pass async_req=True
|
|
711
|
+
>>> thread = api.get_current_car_with_http_info(async_req=True)
|
|
712
|
+
>>> result = thread.get()
|
|
713
|
+
|
|
714
|
+
:param async_req bool
|
|
715
|
+
:return: Car
|
|
716
|
+
If the method is called asynchronously,
|
|
717
|
+
returns the request thread.
|
|
718
|
+
"""
|
|
719
|
+
|
|
720
|
+
all_params = [] # noqa: E501
|
|
721
|
+
all_params.append('async_req')
|
|
722
|
+
all_params.append('_return_http_data_only')
|
|
723
|
+
all_params.append('_preload_content')
|
|
724
|
+
all_params.append('_request_timeout')
|
|
725
|
+
|
|
726
|
+
params = locals()
|
|
727
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
728
|
+
if key not in all_params:
|
|
729
|
+
raise TypeError(
|
|
730
|
+
"Got an unexpected keyword argument '%s'"
|
|
731
|
+
" to method get_current_car" % key
|
|
732
|
+
)
|
|
733
|
+
params[key] = val
|
|
734
|
+
del params['kwargs']
|
|
735
|
+
|
|
736
|
+
collection_formats = {}
|
|
737
|
+
|
|
738
|
+
path_params = {}
|
|
739
|
+
|
|
740
|
+
query_params = []
|
|
741
|
+
|
|
742
|
+
header_params = {}
|
|
743
|
+
|
|
744
|
+
form_params = []
|
|
745
|
+
local_var_files = {}
|
|
746
|
+
|
|
747
|
+
body_params = None
|
|
748
|
+
# HTTP header `Accept`
|
|
749
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
750
|
+
['application/json', 'text/json']) # noqa: E501
|
|
751
|
+
|
|
752
|
+
# Authentication setting
|
|
753
|
+
auth_settings = [] # noqa: E501
|
|
754
|
+
|
|
755
|
+
return self.api_client.call_api(
|
|
756
|
+
'/teamdbapi/v2.0/car/current', 'GET',
|
|
757
|
+
path_params,
|
|
758
|
+
query_params,
|
|
759
|
+
header_params,
|
|
760
|
+
body=body_params,
|
|
761
|
+
post_params=form_params,
|
|
762
|
+
files=local_var_files,
|
|
763
|
+
response_type='Car', # noqa: E501
|
|
764
|
+
auth_settings=auth_settings,
|
|
765
|
+
async_req=params.get('async_req'),
|
|
766
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
767
|
+
_preload_content=params.get('_preload_content', True),
|
|
768
|
+
_request_timeout=params.get('_request_timeout'),
|
|
769
|
+
collection_formats=collection_formats)
|
|
770
|
+
|
|
771
|
+
def update_car(self, body, car_id, **kwargs): # noqa: E501
|
|
772
|
+
"""Update an existing car # noqa: E501
|
|
773
|
+
|
|
774
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
775
|
+
asynchronous HTTP request, please pass async_req=True
|
|
776
|
+
>>> thread = api.update_car(body, car_id, async_req=True)
|
|
777
|
+
>>> result = thread.get()
|
|
778
|
+
|
|
779
|
+
:param async_req bool
|
|
780
|
+
:param Car body: The car to update. (required)
|
|
781
|
+
:param str car_id: The unique car id for which you want to update the car (required)
|
|
782
|
+
:return: Car
|
|
783
|
+
If the method is called asynchronously,
|
|
784
|
+
returns the request thread.
|
|
785
|
+
"""
|
|
786
|
+
kwargs['_return_http_data_only'] = True
|
|
787
|
+
if kwargs.get('async_req'):
|
|
788
|
+
return self.update_car_with_http_info(body, car_id, **kwargs) # noqa: E501
|
|
789
|
+
else:
|
|
790
|
+
(data) = self.update_car_with_http_info(body, car_id, **kwargs) # noqa: E501
|
|
791
|
+
return data
|
|
792
|
+
|
|
793
|
+
def update_car_with_http_info(self, body, car_id, **kwargs): # noqa: E501
|
|
794
|
+
"""Update an existing car # noqa: E501
|
|
795
|
+
|
|
796
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
797
|
+
asynchronous HTTP request, please pass async_req=True
|
|
798
|
+
>>> thread = api.update_car_with_http_info(body, car_id, async_req=True)
|
|
799
|
+
>>> result = thread.get()
|
|
800
|
+
|
|
801
|
+
:param async_req bool
|
|
802
|
+
:param Car body: The car to update. (required)
|
|
803
|
+
:param str car_id: The unique car id for which you want to update the car (required)
|
|
804
|
+
:return: Car
|
|
805
|
+
If the method is called asynchronously,
|
|
806
|
+
returns the request thread.
|
|
807
|
+
"""
|
|
808
|
+
|
|
809
|
+
all_params = ['body', 'car_id'] # noqa: E501
|
|
810
|
+
all_params.append('async_req')
|
|
811
|
+
all_params.append('_return_http_data_only')
|
|
812
|
+
all_params.append('_preload_content')
|
|
813
|
+
all_params.append('_request_timeout')
|
|
814
|
+
|
|
815
|
+
params = locals()
|
|
816
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
817
|
+
if key not in all_params:
|
|
818
|
+
raise TypeError(
|
|
819
|
+
"Got an unexpected keyword argument '%s'"
|
|
820
|
+
" to method update_car" % key
|
|
821
|
+
)
|
|
822
|
+
params[key] = val
|
|
823
|
+
del params['kwargs']
|
|
824
|
+
# verify the required parameter 'body' is set
|
|
825
|
+
if ('body' not in params or
|
|
826
|
+
params['body'] is None):
|
|
827
|
+
raise ValueError("Missing the required parameter `body` when calling `update_car`") # noqa: E501
|
|
828
|
+
# verify the required parameter 'car_id' is set
|
|
829
|
+
if ('car_id' not in params or
|
|
830
|
+
params['car_id'] is None):
|
|
831
|
+
raise ValueError("Missing the required parameter `car_id` when calling `update_car`") # noqa: E501
|
|
832
|
+
|
|
833
|
+
collection_formats = {}
|
|
834
|
+
|
|
835
|
+
path_params = {}
|
|
836
|
+
if 'car_id' in params:
|
|
837
|
+
path_params['carId'] = params['car_id'] # noqa: E501
|
|
838
|
+
|
|
839
|
+
query_params = []
|
|
840
|
+
|
|
841
|
+
header_params = {}
|
|
842
|
+
|
|
843
|
+
form_params = []
|
|
844
|
+
local_var_files = {}
|
|
845
|
+
|
|
846
|
+
body_params = None
|
|
847
|
+
if 'body' in params:
|
|
848
|
+
body_params = params['body']
|
|
849
|
+
# HTTP header `Accept`
|
|
850
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
851
|
+
['application/json', 'text/json']) # noqa: E501
|
|
852
|
+
|
|
853
|
+
# HTTP header `Content-Type`
|
|
854
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
855
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
856
|
+
|
|
857
|
+
# Authentication setting
|
|
858
|
+
auth_settings = [] # noqa: E501
|
|
859
|
+
|
|
860
|
+
return self.api_client.call_api(
|
|
861
|
+
'/teamdbapi/v2.0/car/{carId}', 'PUT',
|
|
862
|
+
path_params,
|
|
863
|
+
query_params,
|
|
864
|
+
header_params,
|
|
865
|
+
body=body_params,
|
|
866
|
+
post_params=form_params,
|
|
867
|
+
files=local_var_files,
|
|
868
|
+
response_type='Car', # noqa: E501
|
|
869
|
+
auth_settings=auth_settings,
|
|
870
|
+
async_req=params.get('async_req'),
|
|
871
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
872
|
+
_preload_content=params.get('_preload_content', True),
|
|
873
|
+
_request_timeout=params.get('_request_timeout'),
|
|
874
|
+
collection_formats=collection_formats)
|