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/lap_api.py
CHANGED
|
@@ -1,708 +1,708 @@
|
|
|
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 LapApi(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_new_lap(self, run_id, **kwargs): # noqa: E501
|
|
36
|
-
"""Create a new lap # 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_new_lap(run_id, async_req=True)
|
|
41
|
-
>>> result = thread.get()
|
|
42
|
-
|
|
43
|
-
:param async_req bool
|
|
44
|
-
:param str run_id: The run id to which you want to add a new lap. (required)
|
|
45
|
-
:return: Lap
|
|
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_new_lap_with_http_info(run_id, **kwargs) # noqa: E501
|
|
52
|
-
else:
|
|
53
|
-
(data) = self.create_new_lap_with_http_info(run_id, **kwargs) # noqa: E501
|
|
54
|
-
return data
|
|
55
|
-
|
|
56
|
-
def create_new_lap_with_http_info(self, run_id, **kwargs): # noqa: E501
|
|
57
|
-
"""Create a new lap # 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_new_lap_with_http_info(run_id, async_req=True)
|
|
62
|
-
>>> result = thread.get()
|
|
63
|
-
|
|
64
|
-
:param async_req bool
|
|
65
|
-
:param str run_id: The run id to which you want to add a new lap. (required)
|
|
66
|
-
:return: Lap
|
|
67
|
-
If the method is called asynchronously,
|
|
68
|
-
returns the request thread.
|
|
69
|
-
"""
|
|
70
|
-
|
|
71
|
-
all_params = ['run_id'] # 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_new_lap" % key
|
|
83
|
-
)
|
|
84
|
-
params[key] = val
|
|
85
|
-
del params['kwargs']
|
|
86
|
-
# verify the required parameter 'run_id' is set
|
|
87
|
-
if ('run_id' not in params or
|
|
88
|
-
params['run_id'] is None):
|
|
89
|
-
raise ValueError("Missing the required parameter `run_id` when calling `create_new_lap`") # noqa: E501
|
|
90
|
-
|
|
91
|
-
collection_formats = {}
|
|
92
|
-
|
|
93
|
-
path_params = {}
|
|
94
|
-
if 'run_id' in params:
|
|
95
|
-
path_params['runId'] = params['run_id'] # noqa: E501
|
|
96
|
-
|
|
97
|
-
query_params = []
|
|
98
|
-
|
|
99
|
-
header_params = {}
|
|
100
|
-
|
|
101
|
-
form_params = []
|
|
102
|
-
local_var_files = {}
|
|
103
|
-
|
|
104
|
-
body_params = None
|
|
105
|
-
# HTTP header `Accept`
|
|
106
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
107
|
-
['application/json', 'text/json']) # noqa: E501
|
|
108
|
-
|
|
109
|
-
# Authentication setting
|
|
110
|
-
auth_settings = [] # noqa: E501
|
|
111
|
-
|
|
112
|
-
return self.api_client.call_api(
|
|
113
|
-
'/teamdbapi/v2.0/run/{runId}/addlap', 'POST',
|
|
114
|
-
path_params,
|
|
115
|
-
query_params,
|
|
116
|
-
header_params,
|
|
117
|
-
body=body_params,
|
|
118
|
-
post_params=form_params,
|
|
119
|
-
files=local_var_files,
|
|
120
|
-
response_type='Lap', # noqa: E501
|
|
121
|
-
auth_settings=auth_settings,
|
|
122
|
-
async_req=params.get('async_req'),
|
|
123
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
124
|
-
_preload_content=params.get('_preload_content', True),
|
|
125
|
-
_request_timeout=params.get('_request_timeout'),
|
|
126
|
-
collection_formats=collection_formats)
|
|
127
|
-
|
|
128
|
-
def delete_lap(self, lap_id, **kwargs): # noqa: E501
|
|
129
|
-
"""Delete an existing lap # noqa: E501
|
|
130
|
-
|
|
131
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
132
|
-
asynchronous HTTP request, please pass async_req=True
|
|
133
|
-
>>> thread = api.delete_lap(lap_id, async_req=True)
|
|
134
|
-
>>> result = thread.get()
|
|
135
|
-
|
|
136
|
-
:param async_req bool
|
|
137
|
-
:param str lap_id: The unique lap id for which you want to delete the lap (required)
|
|
138
|
-
:return: None
|
|
139
|
-
If the method is called asynchronously,
|
|
140
|
-
returns the request thread.
|
|
141
|
-
"""
|
|
142
|
-
kwargs['_return_http_data_only'] = True
|
|
143
|
-
if kwargs.get('async_req'):
|
|
144
|
-
return self.delete_lap_with_http_info(lap_id, **kwargs) # noqa: E501
|
|
145
|
-
else:
|
|
146
|
-
(data) = self.delete_lap_with_http_info(lap_id, **kwargs) # noqa: E501
|
|
147
|
-
return data
|
|
148
|
-
|
|
149
|
-
def delete_lap_with_http_info(self, lap_id, **kwargs): # noqa: E501
|
|
150
|
-
"""Delete an existing lap # noqa: E501
|
|
151
|
-
|
|
152
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
153
|
-
asynchronous HTTP request, please pass async_req=True
|
|
154
|
-
>>> thread = api.delete_lap_with_http_info(lap_id, async_req=True)
|
|
155
|
-
>>> result = thread.get()
|
|
156
|
-
|
|
157
|
-
:param async_req bool
|
|
158
|
-
:param str lap_id: The unique lap id for which you want to delete the lap (required)
|
|
159
|
-
:return: None
|
|
160
|
-
If the method is called asynchronously,
|
|
161
|
-
returns the request thread.
|
|
162
|
-
"""
|
|
163
|
-
|
|
164
|
-
all_params = ['lap_id'] # noqa: E501
|
|
165
|
-
all_params.append('async_req')
|
|
166
|
-
all_params.append('_return_http_data_only')
|
|
167
|
-
all_params.append('_preload_content')
|
|
168
|
-
all_params.append('_request_timeout')
|
|
169
|
-
|
|
170
|
-
params = locals()
|
|
171
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
172
|
-
if key not in all_params:
|
|
173
|
-
raise TypeError(
|
|
174
|
-
"Got an unexpected keyword argument '%s'"
|
|
175
|
-
" to method delete_lap" % key
|
|
176
|
-
)
|
|
177
|
-
params[key] = val
|
|
178
|
-
del params['kwargs']
|
|
179
|
-
# verify the required parameter 'lap_id' is set
|
|
180
|
-
if ('lap_id' not in params or
|
|
181
|
-
params['lap_id'] is None):
|
|
182
|
-
raise ValueError("Missing the required parameter `lap_id` when calling `delete_lap`") # noqa: E501
|
|
183
|
-
|
|
184
|
-
collection_formats = {}
|
|
185
|
-
|
|
186
|
-
path_params = {}
|
|
187
|
-
if 'lap_id' in params:
|
|
188
|
-
path_params['lapId'] = params['lap_id'] # noqa: E501
|
|
189
|
-
|
|
190
|
-
query_params = []
|
|
191
|
-
|
|
192
|
-
header_params = {}
|
|
193
|
-
|
|
194
|
-
form_params = []
|
|
195
|
-
local_var_files = {}
|
|
196
|
-
|
|
197
|
-
body_params = None
|
|
198
|
-
# HTTP header `Accept`
|
|
199
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
200
|
-
['application/json', 'text/json']) # noqa: E501
|
|
201
|
-
|
|
202
|
-
# Authentication setting
|
|
203
|
-
auth_settings = [] # noqa: E501
|
|
204
|
-
|
|
205
|
-
return self.api_client.call_api(
|
|
206
|
-
'/teamdbapi/v2.0/lap/{lapId}', 'DELETE',
|
|
207
|
-
path_params,
|
|
208
|
-
query_params,
|
|
209
|
-
header_params,
|
|
210
|
-
body=body_params,
|
|
211
|
-
post_params=form_params,
|
|
212
|
-
files=local_var_files,
|
|
213
|
-
response_type=None, # noqa: E501
|
|
214
|
-
auth_settings=auth_settings,
|
|
215
|
-
async_req=params.get('async_req'),
|
|
216
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
217
|
-
_preload_content=params.get('_preload_content', True),
|
|
218
|
-
_request_timeout=params.get('_request_timeout'),
|
|
219
|
-
collection_formats=collection_formats)
|
|
220
|
-
|
|
221
|
-
def get_current_lap(self, **kwargs): # noqa: E501
|
|
222
|
-
"""Get the current lap. # noqa: E501
|
|
223
|
-
|
|
224
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
225
|
-
asynchronous HTTP request, please pass async_req=True
|
|
226
|
-
>>> thread = api.get_current_lap(async_req=True)
|
|
227
|
-
>>> result = thread.get()
|
|
228
|
-
|
|
229
|
-
:param async_req bool
|
|
230
|
-
:return: Lap
|
|
231
|
-
If the method is called asynchronously,
|
|
232
|
-
returns the request thread.
|
|
233
|
-
"""
|
|
234
|
-
kwargs['_return_http_data_only'] = True
|
|
235
|
-
if kwargs.get('async_req'):
|
|
236
|
-
return self.get_current_lap_with_http_info(**kwargs) # noqa: E501
|
|
237
|
-
else:
|
|
238
|
-
(data) = self.get_current_lap_with_http_info(**kwargs) # noqa: E501
|
|
239
|
-
return data
|
|
240
|
-
|
|
241
|
-
def get_current_lap_with_http_info(self, **kwargs): # noqa: E501
|
|
242
|
-
"""Get the current lap. # noqa: E501
|
|
243
|
-
|
|
244
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
245
|
-
asynchronous HTTP request, please pass async_req=True
|
|
246
|
-
>>> thread = api.get_current_lap_with_http_info(async_req=True)
|
|
247
|
-
>>> result = thread.get()
|
|
248
|
-
|
|
249
|
-
:param async_req bool
|
|
250
|
-
:return: Lap
|
|
251
|
-
If the method is called asynchronously,
|
|
252
|
-
returns the request thread.
|
|
253
|
-
"""
|
|
254
|
-
|
|
255
|
-
all_params = [] # noqa: E501
|
|
256
|
-
all_params.append('async_req')
|
|
257
|
-
all_params.append('_return_http_data_only')
|
|
258
|
-
all_params.append('_preload_content')
|
|
259
|
-
all_params.append('_request_timeout')
|
|
260
|
-
|
|
261
|
-
params = locals()
|
|
262
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
263
|
-
if key not in all_params:
|
|
264
|
-
raise TypeError(
|
|
265
|
-
"Got an unexpected keyword argument '%s'"
|
|
266
|
-
" to method get_current_lap" % key
|
|
267
|
-
)
|
|
268
|
-
params[key] = val
|
|
269
|
-
del params['kwargs']
|
|
270
|
-
|
|
271
|
-
collection_formats = {}
|
|
272
|
-
|
|
273
|
-
path_params = {}
|
|
274
|
-
|
|
275
|
-
query_params = []
|
|
276
|
-
|
|
277
|
-
header_params = {}
|
|
278
|
-
|
|
279
|
-
form_params = []
|
|
280
|
-
local_var_files = {}
|
|
281
|
-
|
|
282
|
-
body_params = None
|
|
283
|
-
# HTTP header `Accept`
|
|
284
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
285
|
-
['application/json', 'text/json']) # noqa: E501
|
|
286
|
-
|
|
287
|
-
# Authentication setting
|
|
288
|
-
auth_settings = [] # noqa: E501
|
|
289
|
-
|
|
290
|
-
return self.api_client.call_api(
|
|
291
|
-
'/teamdbapi/v2.0/lap/current', 'GET',
|
|
292
|
-
path_params,
|
|
293
|
-
query_params,
|
|
294
|
-
header_params,
|
|
295
|
-
body=body_params,
|
|
296
|
-
post_params=form_params,
|
|
297
|
-
files=local_var_files,
|
|
298
|
-
response_type='Lap', # noqa: E501
|
|
299
|
-
auth_settings=auth_settings,
|
|
300
|
-
async_req=params.get('async_req'),
|
|
301
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
302
|
-
_preload_content=params.get('_preload_content', True),
|
|
303
|
-
_request_timeout=params.get('_request_timeout'),
|
|
304
|
-
collection_formats=collection_formats)
|
|
305
|
-
|
|
306
|
-
def get_lap(self, lap_id, **kwargs): # noqa: E501
|
|
307
|
-
"""Get a lap via a unique id. # noqa: E501
|
|
308
|
-
|
|
309
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
310
|
-
asynchronous HTTP request, please pass async_req=True
|
|
311
|
-
>>> thread = api.get_lap(lap_id, async_req=True)
|
|
312
|
-
>>> result = thread.get()
|
|
313
|
-
|
|
314
|
-
:param async_req bool
|
|
315
|
-
:param str lap_id: The unique lap id for which you want to get the lap (required)
|
|
316
|
-
:return: Lap
|
|
317
|
-
If the method is called asynchronously,
|
|
318
|
-
returns the request thread.
|
|
319
|
-
"""
|
|
320
|
-
kwargs['_return_http_data_only'] = True
|
|
321
|
-
if kwargs.get('async_req'):
|
|
322
|
-
return self.get_lap_with_http_info(lap_id, **kwargs) # noqa: E501
|
|
323
|
-
else:
|
|
324
|
-
(data) = self.get_lap_with_http_info(lap_id, **kwargs) # noqa: E501
|
|
325
|
-
return data
|
|
326
|
-
|
|
327
|
-
def get_lap_with_http_info(self, lap_id, **kwargs): # noqa: E501
|
|
328
|
-
"""Get a lap via a unique id. # noqa: E501
|
|
329
|
-
|
|
330
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
331
|
-
asynchronous HTTP request, please pass async_req=True
|
|
332
|
-
>>> thread = api.get_lap_with_http_info(lap_id, async_req=True)
|
|
333
|
-
>>> result = thread.get()
|
|
334
|
-
|
|
335
|
-
:param async_req bool
|
|
336
|
-
:param str lap_id: The unique lap id for which you want to get the lap (required)
|
|
337
|
-
:return: Lap
|
|
338
|
-
If the method is called asynchronously,
|
|
339
|
-
returns the request thread.
|
|
340
|
-
"""
|
|
341
|
-
|
|
342
|
-
all_params = ['lap_id'] # noqa: E501
|
|
343
|
-
all_params.append('async_req')
|
|
344
|
-
all_params.append('_return_http_data_only')
|
|
345
|
-
all_params.append('_preload_content')
|
|
346
|
-
all_params.append('_request_timeout')
|
|
347
|
-
|
|
348
|
-
params = locals()
|
|
349
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
350
|
-
if key not in all_params:
|
|
351
|
-
raise TypeError(
|
|
352
|
-
"Got an unexpected keyword argument '%s'"
|
|
353
|
-
" to method get_lap" % key
|
|
354
|
-
)
|
|
355
|
-
params[key] = val
|
|
356
|
-
del params['kwargs']
|
|
357
|
-
# verify the required parameter 'lap_id' is set
|
|
358
|
-
if ('lap_id' not in params or
|
|
359
|
-
params['lap_id'] is None):
|
|
360
|
-
raise ValueError("Missing the required parameter `lap_id` when calling `get_lap`") # noqa: E501
|
|
361
|
-
|
|
362
|
-
collection_formats = {}
|
|
363
|
-
|
|
364
|
-
path_params = {}
|
|
365
|
-
if 'lap_id' in params:
|
|
366
|
-
path_params['lapId'] = params['lap_id'] # noqa: E501
|
|
367
|
-
|
|
368
|
-
query_params = []
|
|
369
|
-
|
|
370
|
-
header_params = {}
|
|
371
|
-
|
|
372
|
-
form_params = []
|
|
373
|
-
local_var_files = {}
|
|
374
|
-
|
|
375
|
-
body_params = None
|
|
376
|
-
# HTTP header `Accept`
|
|
377
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
378
|
-
['application/json', 'text/json']) # noqa: E501
|
|
379
|
-
|
|
380
|
-
# Authentication setting
|
|
381
|
-
auth_settings = [] # noqa: E501
|
|
382
|
-
|
|
383
|
-
return self.api_client.call_api(
|
|
384
|
-
'/teamdbapi/v2.0/lap/{lapId}', 'GET',
|
|
385
|
-
path_params,
|
|
386
|
-
query_params,
|
|
387
|
-
header_params,
|
|
388
|
-
body=body_params,
|
|
389
|
-
post_params=form_params,
|
|
390
|
-
files=local_var_files,
|
|
391
|
-
response_type='Lap', # noqa: E501
|
|
392
|
-
auth_settings=auth_settings,
|
|
393
|
-
async_req=params.get('async_req'),
|
|
394
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
395
|
-
_preload_content=params.get('_preload_content', True),
|
|
396
|
-
_request_timeout=params.get('_request_timeout'),
|
|
397
|
-
collection_formats=collection_formats)
|
|
398
|
-
|
|
399
|
-
def get_lap_list(self, run_id, **kwargs): # noqa: E501
|
|
400
|
-
"""Get the list of all laps for a run. # noqa: E501
|
|
401
|
-
|
|
402
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
403
|
-
asynchronous HTTP request, please pass async_req=True
|
|
404
|
-
>>> thread = api.get_lap_list(run_id, async_req=True)
|
|
405
|
-
>>> result = thread.get()
|
|
406
|
-
|
|
407
|
-
:param async_req bool
|
|
408
|
-
:param str run_id: The unique run id for which you want to get the lap list (required)
|
|
409
|
-
:return: list[CoupleGuidText]
|
|
410
|
-
If the method is called asynchronously,
|
|
411
|
-
returns the request thread.
|
|
412
|
-
"""
|
|
413
|
-
kwargs['_return_http_data_only'] = True
|
|
414
|
-
if kwargs.get('async_req'):
|
|
415
|
-
return self.get_lap_list_with_http_info(run_id, **kwargs) # noqa: E501
|
|
416
|
-
else:
|
|
417
|
-
(data) = self.get_lap_list_with_http_info(run_id, **kwargs) # noqa: E501
|
|
418
|
-
return data
|
|
419
|
-
|
|
420
|
-
def get_lap_list_with_http_info(self, run_id, **kwargs): # noqa: E501
|
|
421
|
-
"""Get the list of all laps for a run. # noqa: E501
|
|
422
|
-
|
|
423
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
424
|
-
asynchronous HTTP request, please pass async_req=True
|
|
425
|
-
>>> thread = api.get_lap_list_with_http_info(run_id, async_req=True)
|
|
426
|
-
>>> result = thread.get()
|
|
427
|
-
|
|
428
|
-
:param async_req bool
|
|
429
|
-
:param str run_id: The unique run id for which you want to get the lap list (required)
|
|
430
|
-
:return: list[CoupleGuidText]
|
|
431
|
-
If the method is called asynchronously,
|
|
432
|
-
returns the request thread.
|
|
433
|
-
"""
|
|
434
|
-
|
|
435
|
-
all_params = ['run_id'] # noqa: E501
|
|
436
|
-
all_params.append('async_req')
|
|
437
|
-
all_params.append('_return_http_data_only')
|
|
438
|
-
all_params.append('_preload_content')
|
|
439
|
-
all_params.append('_request_timeout')
|
|
440
|
-
|
|
441
|
-
params = locals()
|
|
442
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
443
|
-
if key not in all_params:
|
|
444
|
-
raise TypeError(
|
|
445
|
-
"Got an unexpected keyword argument '%s'"
|
|
446
|
-
" to method get_lap_list" % key
|
|
447
|
-
)
|
|
448
|
-
params[key] = val
|
|
449
|
-
del params['kwargs']
|
|
450
|
-
# verify the required parameter 'run_id' is set
|
|
451
|
-
if ('run_id' not in params or
|
|
452
|
-
params['run_id'] is None):
|
|
453
|
-
raise ValueError("Missing the required parameter `run_id` when calling `get_lap_list`") # noqa: E501
|
|
454
|
-
|
|
455
|
-
collection_formats = {}
|
|
456
|
-
|
|
457
|
-
path_params = {}
|
|
458
|
-
if 'run_id' in params:
|
|
459
|
-
path_params['runId'] = params['run_id'] # noqa: E501
|
|
460
|
-
|
|
461
|
-
query_params = []
|
|
462
|
-
|
|
463
|
-
header_params = {}
|
|
464
|
-
|
|
465
|
-
form_params = []
|
|
466
|
-
local_var_files = {}
|
|
467
|
-
|
|
468
|
-
body_params = None
|
|
469
|
-
# HTTP header `Accept`
|
|
470
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
471
|
-
['application/json', 'text/json']) # noqa: E501
|
|
472
|
-
|
|
473
|
-
# Authentication setting
|
|
474
|
-
auth_settings = [] # noqa: E501
|
|
475
|
-
|
|
476
|
-
return self.api_client.call_api(
|
|
477
|
-
'/teamdbapi/v2.0/run/{runId}/laps', 'GET',
|
|
478
|
-
path_params,
|
|
479
|
-
query_params,
|
|
480
|
-
header_params,
|
|
481
|
-
body=body_params,
|
|
482
|
-
post_params=form_params,
|
|
483
|
-
files=local_var_files,
|
|
484
|
-
response_type='list[CoupleGuidText]', # noqa: E501
|
|
485
|
-
auth_settings=auth_settings,
|
|
486
|
-
async_req=params.get('async_req'),
|
|
487
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
488
|
-
_preload_content=params.get('_preload_content', True),
|
|
489
|
-
_request_timeout=params.get('_request_timeout'),
|
|
490
|
-
collection_formats=collection_formats)
|
|
491
|
-
|
|
492
|
-
def update_lap(self, body, lap_id, **kwargs): # noqa: E501
|
|
493
|
-
"""Update an existing lap # noqa: E501
|
|
494
|
-
|
|
495
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
496
|
-
asynchronous HTTP request, please pass async_req=True
|
|
497
|
-
>>> thread = api.update_lap(body, lap_id, async_req=True)
|
|
498
|
-
>>> result = thread.get()
|
|
499
|
-
|
|
500
|
-
:param async_req bool
|
|
501
|
-
:param Lap body: The lap to update (required)
|
|
502
|
-
:param str lap_id: The Id of the lap to update (required)
|
|
503
|
-
:return: Lap
|
|
504
|
-
If the method is called asynchronously,
|
|
505
|
-
returns the request thread.
|
|
506
|
-
"""
|
|
507
|
-
kwargs['_return_http_data_only'] = True
|
|
508
|
-
if kwargs.get('async_req'):
|
|
509
|
-
return self.update_lap_with_http_info(body, lap_id, **kwargs) # noqa: E501
|
|
510
|
-
else:
|
|
511
|
-
(data) = self.update_lap_with_http_info(body, lap_id, **kwargs) # noqa: E501
|
|
512
|
-
return data
|
|
513
|
-
|
|
514
|
-
def update_lap_with_http_info(self, body, lap_id, **kwargs): # noqa: E501
|
|
515
|
-
"""Update an existing lap # noqa: E501
|
|
516
|
-
|
|
517
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
518
|
-
asynchronous HTTP request, please pass async_req=True
|
|
519
|
-
>>> thread = api.update_lap_with_http_info(body, lap_id, async_req=True)
|
|
520
|
-
>>> result = thread.get()
|
|
521
|
-
|
|
522
|
-
:param async_req bool
|
|
523
|
-
:param Lap body: The lap to update (required)
|
|
524
|
-
:param str lap_id: The Id of the lap to update (required)
|
|
525
|
-
:return: Lap
|
|
526
|
-
If the method is called asynchronously,
|
|
527
|
-
returns the request thread.
|
|
528
|
-
"""
|
|
529
|
-
|
|
530
|
-
all_params = ['body', 'lap_id'] # noqa: E501
|
|
531
|
-
all_params.append('async_req')
|
|
532
|
-
all_params.append('_return_http_data_only')
|
|
533
|
-
all_params.append('_preload_content')
|
|
534
|
-
all_params.append('_request_timeout')
|
|
535
|
-
|
|
536
|
-
params = locals()
|
|
537
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
538
|
-
if key not in all_params:
|
|
539
|
-
raise TypeError(
|
|
540
|
-
"Got an unexpected keyword argument '%s'"
|
|
541
|
-
" to method update_lap" % key
|
|
542
|
-
)
|
|
543
|
-
params[key] = val
|
|
544
|
-
del params['kwargs']
|
|
545
|
-
# verify the required parameter 'body' is set
|
|
546
|
-
if ('body' not in params or
|
|
547
|
-
params['body'] is None):
|
|
548
|
-
raise ValueError("Missing the required parameter `body` when calling `update_lap`") # noqa: E501
|
|
549
|
-
# verify the required parameter 'lap_id' is set
|
|
550
|
-
if ('lap_id' not in params or
|
|
551
|
-
params['lap_id'] is None):
|
|
552
|
-
raise ValueError("Missing the required parameter `lap_id` when calling `update_lap`") # noqa: E501
|
|
553
|
-
|
|
554
|
-
collection_formats = {}
|
|
555
|
-
|
|
556
|
-
path_params = {}
|
|
557
|
-
if 'lap_id' in params:
|
|
558
|
-
path_params['lapId'] = params['lap_id'] # noqa: E501
|
|
559
|
-
|
|
560
|
-
query_params = []
|
|
561
|
-
|
|
562
|
-
header_params = {}
|
|
563
|
-
|
|
564
|
-
form_params = []
|
|
565
|
-
local_var_files = {}
|
|
566
|
-
|
|
567
|
-
body_params = None
|
|
568
|
-
if 'body' in params:
|
|
569
|
-
body_params = params['body']
|
|
570
|
-
# HTTP header `Accept`
|
|
571
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
572
|
-
['application/json', 'text/json']) # noqa: E501
|
|
573
|
-
|
|
574
|
-
# HTTP header `Content-Type`
|
|
575
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
576
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
577
|
-
|
|
578
|
-
# Authentication setting
|
|
579
|
-
auth_settings = [] # noqa: E501
|
|
580
|
-
|
|
581
|
-
return self.api_client.call_api(
|
|
582
|
-
'/teamdbapi/v2.0/lap/{lapId}', 'PUT',
|
|
583
|
-
path_params,
|
|
584
|
-
query_params,
|
|
585
|
-
header_params,
|
|
586
|
-
body=body_params,
|
|
587
|
-
post_params=form_params,
|
|
588
|
-
files=local_var_files,
|
|
589
|
-
response_type='Lap', # noqa: E501
|
|
590
|
-
auth_settings=auth_settings,
|
|
591
|
-
async_req=params.get('async_req'),
|
|
592
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
593
|
-
_preload_content=params.get('_preload_content', True),
|
|
594
|
-
_request_timeout=params.get('_request_timeout'),
|
|
595
|
-
collection_formats=collection_formats)
|
|
596
|
-
|
|
597
|
-
def update_lap_property(self, body, lap_id, property_name, **kwargs): # noqa: E501
|
|
598
|
-
"""Update a property value for an existing lap # noqa: E501
|
|
599
|
-
|
|
600
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
601
|
-
asynchronous HTTP request, please pass async_req=True
|
|
602
|
-
>>> thread = api.update_lap_property(body, lap_id, property_name, async_req=True)
|
|
603
|
-
>>> result = thread.get()
|
|
604
|
-
|
|
605
|
-
:param async_req bool
|
|
606
|
-
:param object body: The new value. For LapDate, you need to wrap the date around " for instance : "2018-12-20T09:31:25.111Z" (required)
|
|
607
|
-
:param str lap_id: The lap unique Id (required)
|
|
608
|
-
:param str property_name: The property name to update. (Case sensitive). (required)
|
|
609
|
-
:return: Lap
|
|
610
|
-
If the method is called asynchronously,
|
|
611
|
-
returns the request thread.
|
|
612
|
-
"""
|
|
613
|
-
kwargs['_return_http_data_only'] = True
|
|
614
|
-
if kwargs.get('async_req'):
|
|
615
|
-
return self.update_lap_property_with_http_info(body, lap_id, property_name, **kwargs) # noqa: E501
|
|
616
|
-
else:
|
|
617
|
-
(data) = self.update_lap_property_with_http_info(body, lap_id, property_name, **kwargs) # noqa: E501
|
|
618
|
-
return data
|
|
619
|
-
|
|
620
|
-
def update_lap_property_with_http_info(self, body, lap_id, property_name, **kwargs): # noqa: E501
|
|
621
|
-
"""Update a property value for an existing lap # noqa: E501
|
|
622
|
-
|
|
623
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
624
|
-
asynchronous HTTP request, please pass async_req=True
|
|
625
|
-
>>> thread = api.update_lap_property_with_http_info(body, lap_id, property_name, async_req=True)
|
|
626
|
-
>>> result = thread.get()
|
|
627
|
-
|
|
628
|
-
:param async_req bool
|
|
629
|
-
:param object body: The new value. For LapDate, you need to wrap the date around " for instance : "2018-12-20T09:31:25.111Z" (required)
|
|
630
|
-
:param str lap_id: The lap unique Id (required)
|
|
631
|
-
:param str property_name: The property name to update. (Case sensitive). (required)
|
|
632
|
-
:return: Lap
|
|
633
|
-
If the method is called asynchronously,
|
|
634
|
-
returns the request thread.
|
|
635
|
-
"""
|
|
636
|
-
|
|
637
|
-
all_params = ['body', 'lap_id', 'property_name'] # noqa: E501
|
|
638
|
-
all_params.append('async_req')
|
|
639
|
-
all_params.append('_return_http_data_only')
|
|
640
|
-
all_params.append('_preload_content')
|
|
641
|
-
all_params.append('_request_timeout')
|
|
642
|
-
|
|
643
|
-
params = locals()
|
|
644
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
645
|
-
if key not in all_params:
|
|
646
|
-
raise TypeError(
|
|
647
|
-
"Got an unexpected keyword argument '%s'"
|
|
648
|
-
" to method update_lap_property" % key
|
|
649
|
-
)
|
|
650
|
-
params[key] = val
|
|
651
|
-
del params['kwargs']
|
|
652
|
-
# verify the required parameter 'body' is set
|
|
653
|
-
if ('body' not in params or
|
|
654
|
-
params['body'] is None):
|
|
655
|
-
raise ValueError("Missing the required parameter `body` when calling `update_lap_property`") # noqa: E501
|
|
656
|
-
# verify the required parameter 'lap_id' is set
|
|
657
|
-
if ('lap_id' not in params or
|
|
658
|
-
params['lap_id'] is None):
|
|
659
|
-
raise ValueError("Missing the required parameter `lap_id` when calling `update_lap_property`") # noqa: E501
|
|
660
|
-
# verify the required parameter 'property_name' is set
|
|
661
|
-
if ('property_name' not in params or
|
|
662
|
-
params['property_name'] is None):
|
|
663
|
-
raise ValueError("Missing the required parameter `property_name` when calling `update_lap_property`") # noqa: E501
|
|
664
|
-
|
|
665
|
-
collection_formats = {}
|
|
666
|
-
|
|
667
|
-
path_params = {}
|
|
668
|
-
if 'lap_id' in params:
|
|
669
|
-
path_params['lapId'] = params['lap_id'] # noqa: E501
|
|
670
|
-
if 'property_name' in params:
|
|
671
|
-
path_params['propertyName'] = params['property_name'] # noqa: E501
|
|
672
|
-
|
|
673
|
-
query_params = []
|
|
674
|
-
|
|
675
|
-
header_params = {}
|
|
676
|
-
|
|
677
|
-
form_params = []
|
|
678
|
-
local_var_files = {}
|
|
679
|
-
|
|
680
|
-
body_params = None
|
|
681
|
-
if 'body' in params:
|
|
682
|
-
body_params = params['body']
|
|
683
|
-
# HTTP header `Accept`
|
|
684
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
685
|
-
['application/json', 'text/json']) # noqa: E501
|
|
686
|
-
|
|
687
|
-
# HTTP header `Content-Type`
|
|
688
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
689
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
690
|
-
|
|
691
|
-
# Authentication setting
|
|
692
|
-
auth_settings = [] # noqa: E501
|
|
693
|
-
|
|
694
|
-
return self.api_client.call_api(
|
|
695
|
-
'/teamdbapi/v2.0/lap/{lapId}/propertyName/{propertyName}', 'PUT',
|
|
696
|
-
path_params,
|
|
697
|
-
query_params,
|
|
698
|
-
header_params,
|
|
699
|
-
body=body_params,
|
|
700
|
-
post_params=form_params,
|
|
701
|
-
files=local_var_files,
|
|
702
|
-
response_type='Lap', # noqa: E501
|
|
703
|
-
auth_settings=auth_settings,
|
|
704
|
-
async_req=params.get('async_req'),
|
|
705
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
706
|
-
_preload_content=params.get('_preload_content', True),
|
|
707
|
-
_request_timeout=params.get('_request_timeout'),
|
|
708
|
-
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 LapApi(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_new_lap(self, run_id, **kwargs): # noqa: E501
|
|
36
|
+
"""Create a new lap # 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_new_lap(run_id, async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:param str run_id: The run id to which you want to add a new lap. (required)
|
|
45
|
+
:return: Lap
|
|
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_new_lap_with_http_info(run_id, **kwargs) # noqa: E501
|
|
52
|
+
else:
|
|
53
|
+
(data) = self.create_new_lap_with_http_info(run_id, **kwargs) # noqa: E501
|
|
54
|
+
return data
|
|
55
|
+
|
|
56
|
+
def create_new_lap_with_http_info(self, run_id, **kwargs): # noqa: E501
|
|
57
|
+
"""Create a new lap # 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_new_lap_with_http_info(run_id, async_req=True)
|
|
62
|
+
>>> result = thread.get()
|
|
63
|
+
|
|
64
|
+
:param async_req bool
|
|
65
|
+
:param str run_id: The run id to which you want to add a new lap. (required)
|
|
66
|
+
:return: Lap
|
|
67
|
+
If the method is called asynchronously,
|
|
68
|
+
returns the request thread.
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
all_params = ['run_id'] # 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_new_lap" % key
|
|
83
|
+
)
|
|
84
|
+
params[key] = val
|
|
85
|
+
del params['kwargs']
|
|
86
|
+
# verify the required parameter 'run_id' is set
|
|
87
|
+
if ('run_id' not in params or
|
|
88
|
+
params['run_id'] is None):
|
|
89
|
+
raise ValueError("Missing the required parameter `run_id` when calling `create_new_lap`") # noqa: E501
|
|
90
|
+
|
|
91
|
+
collection_formats = {}
|
|
92
|
+
|
|
93
|
+
path_params = {}
|
|
94
|
+
if 'run_id' in params:
|
|
95
|
+
path_params['runId'] = params['run_id'] # noqa: E501
|
|
96
|
+
|
|
97
|
+
query_params = []
|
|
98
|
+
|
|
99
|
+
header_params = {}
|
|
100
|
+
|
|
101
|
+
form_params = []
|
|
102
|
+
local_var_files = {}
|
|
103
|
+
|
|
104
|
+
body_params = None
|
|
105
|
+
# HTTP header `Accept`
|
|
106
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
107
|
+
['application/json', 'text/json']) # noqa: E501
|
|
108
|
+
|
|
109
|
+
# Authentication setting
|
|
110
|
+
auth_settings = [] # noqa: E501
|
|
111
|
+
|
|
112
|
+
return self.api_client.call_api(
|
|
113
|
+
'/teamdbapi/v2.0/run/{runId}/addlap', 'POST',
|
|
114
|
+
path_params,
|
|
115
|
+
query_params,
|
|
116
|
+
header_params,
|
|
117
|
+
body=body_params,
|
|
118
|
+
post_params=form_params,
|
|
119
|
+
files=local_var_files,
|
|
120
|
+
response_type='Lap', # noqa: E501
|
|
121
|
+
auth_settings=auth_settings,
|
|
122
|
+
async_req=params.get('async_req'),
|
|
123
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
124
|
+
_preload_content=params.get('_preload_content', True),
|
|
125
|
+
_request_timeout=params.get('_request_timeout'),
|
|
126
|
+
collection_formats=collection_formats)
|
|
127
|
+
|
|
128
|
+
def delete_lap(self, lap_id, **kwargs): # noqa: E501
|
|
129
|
+
"""Delete an existing lap # noqa: E501
|
|
130
|
+
|
|
131
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
132
|
+
asynchronous HTTP request, please pass async_req=True
|
|
133
|
+
>>> thread = api.delete_lap(lap_id, async_req=True)
|
|
134
|
+
>>> result = thread.get()
|
|
135
|
+
|
|
136
|
+
:param async_req bool
|
|
137
|
+
:param str lap_id: The unique lap id for which you want to delete the lap (required)
|
|
138
|
+
:return: None
|
|
139
|
+
If the method is called asynchronously,
|
|
140
|
+
returns the request thread.
|
|
141
|
+
"""
|
|
142
|
+
kwargs['_return_http_data_only'] = True
|
|
143
|
+
if kwargs.get('async_req'):
|
|
144
|
+
return self.delete_lap_with_http_info(lap_id, **kwargs) # noqa: E501
|
|
145
|
+
else:
|
|
146
|
+
(data) = self.delete_lap_with_http_info(lap_id, **kwargs) # noqa: E501
|
|
147
|
+
return data
|
|
148
|
+
|
|
149
|
+
def delete_lap_with_http_info(self, lap_id, **kwargs): # noqa: E501
|
|
150
|
+
"""Delete an existing lap # noqa: E501
|
|
151
|
+
|
|
152
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
153
|
+
asynchronous HTTP request, please pass async_req=True
|
|
154
|
+
>>> thread = api.delete_lap_with_http_info(lap_id, async_req=True)
|
|
155
|
+
>>> result = thread.get()
|
|
156
|
+
|
|
157
|
+
:param async_req bool
|
|
158
|
+
:param str lap_id: The unique lap id for which you want to delete the lap (required)
|
|
159
|
+
:return: None
|
|
160
|
+
If the method is called asynchronously,
|
|
161
|
+
returns the request thread.
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
all_params = ['lap_id'] # noqa: E501
|
|
165
|
+
all_params.append('async_req')
|
|
166
|
+
all_params.append('_return_http_data_only')
|
|
167
|
+
all_params.append('_preload_content')
|
|
168
|
+
all_params.append('_request_timeout')
|
|
169
|
+
|
|
170
|
+
params = locals()
|
|
171
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
172
|
+
if key not in all_params:
|
|
173
|
+
raise TypeError(
|
|
174
|
+
"Got an unexpected keyword argument '%s'"
|
|
175
|
+
" to method delete_lap" % key
|
|
176
|
+
)
|
|
177
|
+
params[key] = val
|
|
178
|
+
del params['kwargs']
|
|
179
|
+
# verify the required parameter 'lap_id' is set
|
|
180
|
+
if ('lap_id' not in params or
|
|
181
|
+
params['lap_id'] is None):
|
|
182
|
+
raise ValueError("Missing the required parameter `lap_id` when calling `delete_lap`") # noqa: E501
|
|
183
|
+
|
|
184
|
+
collection_formats = {}
|
|
185
|
+
|
|
186
|
+
path_params = {}
|
|
187
|
+
if 'lap_id' in params:
|
|
188
|
+
path_params['lapId'] = params['lap_id'] # noqa: E501
|
|
189
|
+
|
|
190
|
+
query_params = []
|
|
191
|
+
|
|
192
|
+
header_params = {}
|
|
193
|
+
|
|
194
|
+
form_params = []
|
|
195
|
+
local_var_files = {}
|
|
196
|
+
|
|
197
|
+
body_params = None
|
|
198
|
+
# HTTP header `Accept`
|
|
199
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
200
|
+
['application/json', 'text/json']) # noqa: E501
|
|
201
|
+
|
|
202
|
+
# Authentication setting
|
|
203
|
+
auth_settings = [] # noqa: E501
|
|
204
|
+
|
|
205
|
+
return self.api_client.call_api(
|
|
206
|
+
'/teamdbapi/v2.0/lap/{lapId}', 'DELETE',
|
|
207
|
+
path_params,
|
|
208
|
+
query_params,
|
|
209
|
+
header_params,
|
|
210
|
+
body=body_params,
|
|
211
|
+
post_params=form_params,
|
|
212
|
+
files=local_var_files,
|
|
213
|
+
response_type=None, # noqa: E501
|
|
214
|
+
auth_settings=auth_settings,
|
|
215
|
+
async_req=params.get('async_req'),
|
|
216
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
217
|
+
_preload_content=params.get('_preload_content', True),
|
|
218
|
+
_request_timeout=params.get('_request_timeout'),
|
|
219
|
+
collection_formats=collection_formats)
|
|
220
|
+
|
|
221
|
+
def get_current_lap(self, **kwargs): # noqa: E501
|
|
222
|
+
"""Get the current lap. # noqa: E501
|
|
223
|
+
|
|
224
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
225
|
+
asynchronous HTTP request, please pass async_req=True
|
|
226
|
+
>>> thread = api.get_current_lap(async_req=True)
|
|
227
|
+
>>> result = thread.get()
|
|
228
|
+
|
|
229
|
+
:param async_req bool
|
|
230
|
+
:return: Lap
|
|
231
|
+
If the method is called asynchronously,
|
|
232
|
+
returns the request thread.
|
|
233
|
+
"""
|
|
234
|
+
kwargs['_return_http_data_only'] = True
|
|
235
|
+
if kwargs.get('async_req'):
|
|
236
|
+
return self.get_current_lap_with_http_info(**kwargs) # noqa: E501
|
|
237
|
+
else:
|
|
238
|
+
(data) = self.get_current_lap_with_http_info(**kwargs) # noqa: E501
|
|
239
|
+
return data
|
|
240
|
+
|
|
241
|
+
def get_current_lap_with_http_info(self, **kwargs): # noqa: E501
|
|
242
|
+
"""Get the current lap. # noqa: E501
|
|
243
|
+
|
|
244
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
245
|
+
asynchronous HTTP request, please pass async_req=True
|
|
246
|
+
>>> thread = api.get_current_lap_with_http_info(async_req=True)
|
|
247
|
+
>>> result = thread.get()
|
|
248
|
+
|
|
249
|
+
:param async_req bool
|
|
250
|
+
:return: Lap
|
|
251
|
+
If the method is called asynchronously,
|
|
252
|
+
returns the request thread.
|
|
253
|
+
"""
|
|
254
|
+
|
|
255
|
+
all_params = [] # noqa: E501
|
|
256
|
+
all_params.append('async_req')
|
|
257
|
+
all_params.append('_return_http_data_only')
|
|
258
|
+
all_params.append('_preload_content')
|
|
259
|
+
all_params.append('_request_timeout')
|
|
260
|
+
|
|
261
|
+
params = locals()
|
|
262
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
263
|
+
if key not in all_params:
|
|
264
|
+
raise TypeError(
|
|
265
|
+
"Got an unexpected keyword argument '%s'"
|
|
266
|
+
" to method get_current_lap" % key
|
|
267
|
+
)
|
|
268
|
+
params[key] = val
|
|
269
|
+
del params['kwargs']
|
|
270
|
+
|
|
271
|
+
collection_formats = {}
|
|
272
|
+
|
|
273
|
+
path_params = {}
|
|
274
|
+
|
|
275
|
+
query_params = []
|
|
276
|
+
|
|
277
|
+
header_params = {}
|
|
278
|
+
|
|
279
|
+
form_params = []
|
|
280
|
+
local_var_files = {}
|
|
281
|
+
|
|
282
|
+
body_params = None
|
|
283
|
+
# HTTP header `Accept`
|
|
284
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
285
|
+
['application/json', 'text/json']) # noqa: E501
|
|
286
|
+
|
|
287
|
+
# Authentication setting
|
|
288
|
+
auth_settings = [] # noqa: E501
|
|
289
|
+
|
|
290
|
+
return self.api_client.call_api(
|
|
291
|
+
'/teamdbapi/v2.0/lap/current', 'GET',
|
|
292
|
+
path_params,
|
|
293
|
+
query_params,
|
|
294
|
+
header_params,
|
|
295
|
+
body=body_params,
|
|
296
|
+
post_params=form_params,
|
|
297
|
+
files=local_var_files,
|
|
298
|
+
response_type='Lap', # noqa: E501
|
|
299
|
+
auth_settings=auth_settings,
|
|
300
|
+
async_req=params.get('async_req'),
|
|
301
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
302
|
+
_preload_content=params.get('_preload_content', True),
|
|
303
|
+
_request_timeout=params.get('_request_timeout'),
|
|
304
|
+
collection_formats=collection_formats)
|
|
305
|
+
|
|
306
|
+
def get_lap(self, lap_id, **kwargs): # noqa: E501
|
|
307
|
+
"""Get a lap via a unique id. # noqa: E501
|
|
308
|
+
|
|
309
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
310
|
+
asynchronous HTTP request, please pass async_req=True
|
|
311
|
+
>>> thread = api.get_lap(lap_id, async_req=True)
|
|
312
|
+
>>> result = thread.get()
|
|
313
|
+
|
|
314
|
+
:param async_req bool
|
|
315
|
+
:param str lap_id: The unique lap id for which you want to get the lap (required)
|
|
316
|
+
:return: Lap
|
|
317
|
+
If the method is called asynchronously,
|
|
318
|
+
returns the request thread.
|
|
319
|
+
"""
|
|
320
|
+
kwargs['_return_http_data_only'] = True
|
|
321
|
+
if kwargs.get('async_req'):
|
|
322
|
+
return self.get_lap_with_http_info(lap_id, **kwargs) # noqa: E501
|
|
323
|
+
else:
|
|
324
|
+
(data) = self.get_lap_with_http_info(lap_id, **kwargs) # noqa: E501
|
|
325
|
+
return data
|
|
326
|
+
|
|
327
|
+
def get_lap_with_http_info(self, lap_id, **kwargs): # noqa: E501
|
|
328
|
+
"""Get a lap via a unique id. # noqa: E501
|
|
329
|
+
|
|
330
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
331
|
+
asynchronous HTTP request, please pass async_req=True
|
|
332
|
+
>>> thread = api.get_lap_with_http_info(lap_id, async_req=True)
|
|
333
|
+
>>> result = thread.get()
|
|
334
|
+
|
|
335
|
+
:param async_req bool
|
|
336
|
+
:param str lap_id: The unique lap id for which you want to get the lap (required)
|
|
337
|
+
:return: Lap
|
|
338
|
+
If the method is called asynchronously,
|
|
339
|
+
returns the request thread.
|
|
340
|
+
"""
|
|
341
|
+
|
|
342
|
+
all_params = ['lap_id'] # noqa: E501
|
|
343
|
+
all_params.append('async_req')
|
|
344
|
+
all_params.append('_return_http_data_only')
|
|
345
|
+
all_params.append('_preload_content')
|
|
346
|
+
all_params.append('_request_timeout')
|
|
347
|
+
|
|
348
|
+
params = locals()
|
|
349
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
350
|
+
if key not in all_params:
|
|
351
|
+
raise TypeError(
|
|
352
|
+
"Got an unexpected keyword argument '%s'"
|
|
353
|
+
" to method get_lap" % key
|
|
354
|
+
)
|
|
355
|
+
params[key] = val
|
|
356
|
+
del params['kwargs']
|
|
357
|
+
# verify the required parameter 'lap_id' is set
|
|
358
|
+
if ('lap_id' not in params or
|
|
359
|
+
params['lap_id'] is None):
|
|
360
|
+
raise ValueError("Missing the required parameter `lap_id` when calling `get_lap`") # noqa: E501
|
|
361
|
+
|
|
362
|
+
collection_formats = {}
|
|
363
|
+
|
|
364
|
+
path_params = {}
|
|
365
|
+
if 'lap_id' in params:
|
|
366
|
+
path_params['lapId'] = params['lap_id'] # noqa: E501
|
|
367
|
+
|
|
368
|
+
query_params = []
|
|
369
|
+
|
|
370
|
+
header_params = {}
|
|
371
|
+
|
|
372
|
+
form_params = []
|
|
373
|
+
local_var_files = {}
|
|
374
|
+
|
|
375
|
+
body_params = None
|
|
376
|
+
# HTTP header `Accept`
|
|
377
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
378
|
+
['application/json', 'text/json']) # noqa: E501
|
|
379
|
+
|
|
380
|
+
# Authentication setting
|
|
381
|
+
auth_settings = [] # noqa: E501
|
|
382
|
+
|
|
383
|
+
return self.api_client.call_api(
|
|
384
|
+
'/teamdbapi/v2.0/lap/{lapId}', 'GET',
|
|
385
|
+
path_params,
|
|
386
|
+
query_params,
|
|
387
|
+
header_params,
|
|
388
|
+
body=body_params,
|
|
389
|
+
post_params=form_params,
|
|
390
|
+
files=local_var_files,
|
|
391
|
+
response_type='Lap', # noqa: E501
|
|
392
|
+
auth_settings=auth_settings,
|
|
393
|
+
async_req=params.get('async_req'),
|
|
394
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
395
|
+
_preload_content=params.get('_preload_content', True),
|
|
396
|
+
_request_timeout=params.get('_request_timeout'),
|
|
397
|
+
collection_formats=collection_formats)
|
|
398
|
+
|
|
399
|
+
def get_lap_list(self, run_id, **kwargs): # noqa: E501
|
|
400
|
+
"""Get the list of all laps for a run. # noqa: E501
|
|
401
|
+
|
|
402
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
403
|
+
asynchronous HTTP request, please pass async_req=True
|
|
404
|
+
>>> thread = api.get_lap_list(run_id, async_req=True)
|
|
405
|
+
>>> result = thread.get()
|
|
406
|
+
|
|
407
|
+
:param async_req bool
|
|
408
|
+
:param str run_id: The unique run id for which you want to get the lap list (required)
|
|
409
|
+
:return: list[CoupleGuidText]
|
|
410
|
+
If the method is called asynchronously,
|
|
411
|
+
returns the request thread.
|
|
412
|
+
"""
|
|
413
|
+
kwargs['_return_http_data_only'] = True
|
|
414
|
+
if kwargs.get('async_req'):
|
|
415
|
+
return self.get_lap_list_with_http_info(run_id, **kwargs) # noqa: E501
|
|
416
|
+
else:
|
|
417
|
+
(data) = self.get_lap_list_with_http_info(run_id, **kwargs) # noqa: E501
|
|
418
|
+
return data
|
|
419
|
+
|
|
420
|
+
def get_lap_list_with_http_info(self, run_id, **kwargs): # noqa: E501
|
|
421
|
+
"""Get the list of all laps for a run. # noqa: E501
|
|
422
|
+
|
|
423
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
424
|
+
asynchronous HTTP request, please pass async_req=True
|
|
425
|
+
>>> thread = api.get_lap_list_with_http_info(run_id, async_req=True)
|
|
426
|
+
>>> result = thread.get()
|
|
427
|
+
|
|
428
|
+
:param async_req bool
|
|
429
|
+
:param str run_id: The unique run id for which you want to get the lap list (required)
|
|
430
|
+
:return: list[CoupleGuidText]
|
|
431
|
+
If the method is called asynchronously,
|
|
432
|
+
returns the request thread.
|
|
433
|
+
"""
|
|
434
|
+
|
|
435
|
+
all_params = ['run_id'] # noqa: E501
|
|
436
|
+
all_params.append('async_req')
|
|
437
|
+
all_params.append('_return_http_data_only')
|
|
438
|
+
all_params.append('_preload_content')
|
|
439
|
+
all_params.append('_request_timeout')
|
|
440
|
+
|
|
441
|
+
params = locals()
|
|
442
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
443
|
+
if key not in all_params:
|
|
444
|
+
raise TypeError(
|
|
445
|
+
"Got an unexpected keyword argument '%s'"
|
|
446
|
+
" to method get_lap_list" % key
|
|
447
|
+
)
|
|
448
|
+
params[key] = val
|
|
449
|
+
del params['kwargs']
|
|
450
|
+
# verify the required parameter 'run_id' is set
|
|
451
|
+
if ('run_id' not in params or
|
|
452
|
+
params['run_id'] is None):
|
|
453
|
+
raise ValueError("Missing the required parameter `run_id` when calling `get_lap_list`") # noqa: E501
|
|
454
|
+
|
|
455
|
+
collection_formats = {}
|
|
456
|
+
|
|
457
|
+
path_params = {}
|
|
458
|
+
if 'run_id' in params:
|
|
459
|
+
path_params['runId'] = params['run_id'] # noqa: E501
|
|
460
|
+
|
|
461
|
+
query_params = []
|
|
462
|
+
|
|
463
|
+
header_params = {}
|
|
464
|
+
|
|
465
|
+
form_params = []
|
|
466
|
+
local_var_files = {}
|
|
467
|
+
|
|
468
|
+
body_params = None
|
|
469
|
+
# HTTP header `Accept`
|
|
470
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
471
|
+
['application/json', 'text/json']) # noqa: E501
|
|
472
|
+
|
|
473
|
+
# Authentication setting
|
|
474
|
+
auth_settings = [] # noqa: E501
|
|
475
|
+
|
|
476
|
+
return self.api_client.call_api(
|
|
477
|
+
'/teamdbapi/v2.0/run/{runId}/laps', 'GET',
|
|
478
|
+
path_params,
|
|
479
|
+
query_params,
|
|
480
|
+
header_params,
|
|
481
|
+
body=body_params,
|
|
482
|
+
post_params=form_params,
|
|
483
|
+
files=local_var_files,
|
|
484
|
+
response_type='list[CoupleGuidText]', # noqa: E501
|
|
485
|
+
auth_settings=auth_settings,
|
|
486
|
+
async_req=params.get('async_req'),
|
|
487
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
488
|
+
_preload_content=params.get('_preload_content', True),
|
|
489
|
+
_request_timeout=params.get('_request_timeout'),
|
|
490
|
+
collection_formats=collection_formats)
|
|
491
|
+
|
|
492
|
+
def update_lap(self, body, lap_id, **kwargs): # noqa: E501
|
|
493
|
+
"""Update an existing lap # noqa: E501
|
|
494
|
+
|
|
495
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
496
|
+
asynchronous HTTP request, please pass async_req=True
|
|
497
|
+
>>> thread = api.update_lap(body, lap_id, async_req=True)
|
|
498
|
+
>>> result = thread.get()
|
|
499
|
+
|
|
500
|
+
:param async_req bool
|
|
501
|
+
:param Lap body: The lap to update (required)
|
|
502
|
+
:param str lap_id: The Id of the lap to update (required)
|
|
503
|
+
:return: Lap
|
|
504
|
+
If the method is called asynchronously,
|
|
505
|
+
returns the request thread.
|
|
506
|
+
"""
|
|
507
|
+
kwargs['_return_http_data_only'] = True
|
|
508
|
+
if kwargs.get('async_req'):
|
|
509
|
+
return self.update_lap_with_http_info(body, lap_id, **kwargs) # noqa: E501
|
|
510
|
+
else:
|
|
511
|
+
(data) = self.update_lap_with_http_info(body, lap_id, **kwargs) # noqa: E501
|
|
512
|
+
return data
|
|
513
|
+
|
|
514
|
+
def update_lap_with_http_info(self, body, lap_id, **kwargs): # noqa: E501
|
|
515
|
+
"""Update an existing lap # noqa: E501
|
|
516
|
+
|
|
517
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
518
|
+
asynchronous HTTP request, please pass async_req=True
|
|
519
|
+
>>> thread = api.update_lap_with_http_info(body, lap_id, async_req=True)
|
|
520
|
+
>>> result = thread.get()
|
|
521
|
+
|
|
522
|
+
:param async_req bool
|
|
523
|
+
:param Lap body: The lap to update (required)
|
|
524
|
+
:param str lap_id: The Id of the lap to update (required)
|
|
525
|
+
:return: Lap
|
|
526
|
+
If the method is called asynchronously,
|
|
527
|
+
returns the request thread.
|
|
528
|
+
"""
|
|
529
|
+
|
|
530
|
+
all_params = ['body', 'lap_id'] # noqa: E501
|
|
531
|
+
all_params.append('async_req')
|
|
532
|
+
all_params.append('_return_http_data_only')
|
|
533
|
+
all_params.append('_preload_content')
|
|
534
|
+
all_params.append('_request_timeout')
|
|
535
|
+
|
|
536
|
+
params = locals()
|
|
537
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
538
|
+
if key not in all_params:
|
|
539
|
+
raise TypeError(
|
|
540
|
+
"Got an unexpected keyword argument '%s'"
|
|
541
|
+
" to method update_lap" % key
|
|
542
|
+
)
|
|
543
|
+
params[key] = val
|
|
544
|
+
del params['kwargs']
|
|
545
|
+
# verify the required parameter 'body' is set
|
|
546
|
+
if ('body' not in params or
|
|
547
|
+
params['body'] is None):
|
|
548
|
+
raise ValueError("Missing the required parameter `body` when calling `update_lap`") # noqa: E501
|
|
549
|
+
# verify the required parameter 'lap_id' is set
|
|
550
|
+
if ('lap_id' not in params or
|
|
551
|
+
params['lap_id'] is None):
|
|
552
|
+
raise ValueError("Missing the required parameter `lap_id` when calling `update_lap`") # noqa: E501
|
|
553
|
+
|
|
554
|
+
collection_formats = {}
|
|
555
|
+
|
|
556
|
+
path_params = {}
|
|
557
|
+
if 'lap_id' in params:
|
|
558
|
+
path_params['lapId'] = params['lap_id'] # noqa: E501
|
|
559
|
+
|
|
560
|
+
query_params = []
|
|
561
|
+
|
|
562
|
+
header_params = {}
|
|
563
|
+
|
|
564
|
+
form_params = []
|
|
565
|
+
local_var_files = {}
|
|
566
|
+
|
|
567
|
+
body_params = None
|
|
568
|
+
if 'body' in params:
|
|
569
|
+
body_params = params['body']
|
|
570
|
+
# HTTP header `Accept`
|
|
571
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
572
|
+
['application/json', 'text/json']) # noqa: E501
|
|
573
|
+
|
|
574
|
+
# HTTP header `Content-Type`
|
|
575
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
576
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
577
|
+
|
|
578
|
+
# Authentication setting
|
|
579
|
+
auth_settings = [] # noqa: E501
|
|
580
|
+
|
|
581
|
+
return self.api_client.call_api(
|
|
582
|
+
'/teamdbapi/v2.0/lap/{lapId}', 'PUT',
|
|
583
|
+
path_params,
|
|
584
|
+
query_params,
|
|
585
|
+
header_params,
|
|
586
|
+
body=body_params,
|
|
587
|
+
post_params=form_params,
|
|
588
|
+
files=local_var_files,
|
|
589
|
+
response_type='Lap', # noqa: E501
|
|
590
|
+
auth_settings=auth_settings,
|
|
591
|
+
async_req=params.get('async_req'),
|
|
592
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
593
|
+
_preload_content=params.get('_preload_content', True),
|
|
594
|
+
_request_timeout=params.get('_request_timeout'),
|
|
595
|
+
collection_formats=collection_formats)
|
|
596
|
+
|
|
597
|
+
def update_lap_property(self, body, lap_id, property_name, **kwargs): # noqa: E501
|
|
598
|
+
"""Update a property value for an existing lap # noqa: E501
|
|
599
|
+
|
|
600
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
601
|
+
asynchronous HTTP request, please pass async_req=True
|
|
602
|
+
>>> thread = api.update_lap_property(body, lap_id, property_name, async_req=True)
|
|
603
|
+
>>> result = thread.get()
|
|
604
|
+
|
|
605
|
+
:param async_req bool
|
|
606
|
+
:param object body: The new value. For LapDate, you need to wrap the date around " for instance : "2018-12-20T09:31:25.111Z" (required)
|
|
607
|
+
:param str lap_id: The lap unique Id (required)
|
|
608
|
+
:param str property_name: The property name to update. (Case sensitive). (required)
|
|
609
|
+
:return: Lap
|
|
610
|
+
If the method is called asynchronously,
|
|
611
|
+
returns the request thread.
|
|
612
|
+
"""
|
|
613
|
+
kwargs['_return_http_data_only'] = True
|
|
614
|
+
if kwargs.get('async_req'):
|
|
615
|
+
return self.update_lap_property_with_http_info(body, lap_id, property_name, **kwargs) # noqa: E501
|
|
616
|
+
else:
|
|
617
|
+
(data) = self.update_lap_property_with_http_info(body, lap_id, property_name, **kwargs) # noqa: E501
|
|
618
|
+
return data
|
|
619
|
+
|
|
620
|
+
def update_lap_property_with_http_info(self, body, lap_id, property_name, **kwargs): # noqa: E501
|
|
621
|
+
"""Update a property value for an existing lap # noqa: E501
|
|
622
|
+
|
|
623
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
624
|
+
asynchronous HTTP request, please pass async_req=True
|
|
625
|
+
>>> thread = api.update_lap_property_with_http_info(body, lap_id, property_name, async_req=True)
|
|
626
|
+
>>> result = thread.get()
|
|
627
|
+
|
|
628
|
+
:param async_req bool
|
|
629
|
+
:param object body: The new value. For LapDate, you need to wrap the date around " for instance : "2018-12-20T09:31:25.111Z" (required)
|
|
630
|
+
:param str lap_id: The lap unique Id (required)
|
|
631
|
+
:param str property_name: The property name to update. (Case sensitive). (required)
|
|
632
|
+
:return: Lap
|
|
633
|
+
If the method is called asynchronously,
|
|
634
|
+
returns the request thread.
|
|
635
|
+
"""
|
|
636
|
+
|
|
637
|
+
all_params = ['body', 'lap_id', 'property_name'] # noqa: E501
|
|
638
|
+
all_params.append('async_req')
|
|
639
|
+
all_params.append('_return_http_data_only')
|
|
640
|
+
all_params.append('_preload_content')
|
|
641
|
+
all_params.append('_request_timeout')
|
|
642
|
+
|
|
643
|
+
params = locals()
|
|
644
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
645
|
+
if key not in all_params:
|
|
646
|
+
raise TypeError(
|
|
647
|
+
"Got an unexpected keyword argument '%s'"
|
|
648
|
+
" to method update_lap_property" % key
|
|
649
|
+
)
|
|
650
|
+
params[key] = val
|
|
651
|
+
del params['kwargs']
|
|
652
|
+
# verify the required parameter 'body' is set
|
|
653
|
+
if ('body' not in params or
|
|
654
|
+
params['body'] is None):
|
|
655
|
+
raise ValueError("Missing the required parameter `body` when calling `update_lap_property`") # noqa: E501
|
|
656
|
+
# verify the required parameter 'lap_id' is set
|
|
657
|
+
if ('lap_id' not in params or
|
|
658
|
+
params['lap_id'] is None):
|
|
659
|
+
raise ValueError("Missing the required parameter `lap_id` when calling `update_lap_property`") # noqa: E501
|
|
660
|
+
# verify the required parameter 'property_name' is set
|
|
661
|
+
if ('property_name' not in params or
|
|
662
|
+
params['property_name'] is None):
|
|
663
|
+
raise ValueError("Missing the required parameter `property_name` when calling `update_lap_property`") # noqa: E501
|
|
664
|
+
|
|
665
|
+
collection_formats = {}
|
|
666
|
+
|
|
667
|
+
path_params = {}
|
|
668
|
+
if 'lap_id' in params:
|
|
669
|
+
path_params['lapId'] = params['lap_id'] # noqa: E501
|
|
670
|
+
if 'property_name' in params:
|
|
671
|
+
path_params['propertyName'] = params['property_name'] # noqa: E501
|
|
672
|
+
|
|
673
|
+
query_params = []
|
|
674
|
+
|
|
675
|
+
header_params = {}
|
|
676
|
+
|
|
677
|
+
form_params = []
|
|
678
|
+
local_var_files = {}
|
|
679
|
+
|
|
680
|
+
body_params = None
|
|
681
|
+
if 'body' in params:
|
|
682
|
+
body_params = params['body']
|
|
683
|
+
# HTTP header `Accept`
|
|
684
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
685
|
+
['application/json', 'text/json']) # noqa: E501
|
|
686
|
+
|
|
687
|
+
# HTTP header `Content-Type`
|
|
688
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
689
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
690
|
+
|
|
691
|
+
# Authentication setting
|
|
692
|
+
auth_settings = [] # noqa: E501
|
|
693
|
+
|
|
694
|
+
return self.api_client.call_api(
|
|
695
|
+
'/teamdbapi/v2.0/lap/{lapId}/propertyName/{propertyName}', 'PUT',
|
|
696
|
+
path_params,
|
|
697
|
+
query_params,
|
|
698
|
+
header_params,
|
|
699
|
+
body=body_params,
|
|
700
|
+
post_params=form_params,
|
|
701
|
+
files=local_var_files,
|
|
702
|
+
response_type='Lap', # noqa: E501
|
|
703
|
+
auth_settings=auth_settings,
|
|
704
|
+
async_req=params.get('async_req'),
|
|
705
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
706
|
+
_preload_content=params.get('_preload_content', True),
|
|
707
|
+
_request_timeout=params.get('_request_timeout'),
|
|
708
|
+
collection_formats=collection_formats)
|