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/edit_api.py
CHANGED
|
@@ -1,433 +1,433 @@
|
|
|
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 EditApi(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 copy_from_tag(self, body, tag, **kwargs): # noqa: E501
|
|
36
|
-
"""[Command] Copy values corresponding to the given Tag from a context to another # 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.copy_from_tag(body, tag, async_req=True)
|
|
41
|
-
>>> result = thread.get()
|
|
42
|
-
|
|
43
|
-
:param async_req bool
|
|
44
|
-
:param CopyFromTagsArgs body: The source and target context (event, car, session, run, lap) from which you want to copy the values (required)
|
|
45
|
-
:param str tag: The tag corresponding to the values you want to copy (required)
|
|
46
|
-
:return: None
|
|
47
|
-
If the method is called asynchronously,
|
|
48
|
-
returns the request thread.
|
|
49
|
-
"""
|
|
50
|
-
kwargs['_return_http_data_only'] = True
|
|
51
|
-
if kwargs.get('async_req'):
|
|
52
|
-
return self.copy_from_tag_with_http_info(body, tag, **kwargs) # noqa: E501
|
|
53
|
-
else:
|
|
54
|
-
(data) = self.copy_from_tag_with_http_info(body, tag, **kwargs) # noqa: E501
|
|
55
|
-
return data
|
|
56
|
-
|
|
57
|
-
def copy_from_tag_with_http_info(self, body, tag, **kwargs): # noqa: E501
|
|
58
|
-
"""[Command] Copy values corresponding to the given Tag from a context to another # noqa: E501
|
|
59
|
-
|
|
60
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
61
|
-
asynchronous HTTP request, please pass async_req=True
|
|
62
|
-
>>> thread = api.copy_from_tag_with_http_info(body, tag, async_req=True)
|
|
63
|
-
>>> result = thread.get()
|
|
64
|
-
|
|
65
|
-
:param async_req bool
|
|
66
|
-
:param CopyFromTagsArgs body: The source and target context (event, car, session, run, lap) from which you want to copy the values (required)
|
|
67
|
-
:param str tag: The tag corresponding to the values you want to copy (required)
|
|
68
|
-
:return: None
|
|
69
|
-
If the method is called asynchronously,
|
|
70
|
-
returns the request thread.
|
|
71
|
-
"""
|
|
72
|
-
|
|
73
|
-
all_params = ['body', 'tag'] # noqa: E501
|
|
74
|
-
all_params.append('async_req')
|
|
75
|
-
all_params.append('_return_http_data_only')
|
|
76
|
-
all_params.append('_preload_content')
|
|
77
|
-
all_params.append('_request_timeout')
|
|
78
|
-
|
|
79
|
-
params = locals()
|
|
80
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
81
|
-
if key not in all_params:
|
|
82
|
-
raise TypeError(
|
|
83
|
-
"Got an unexpected keyword argument '%s'"
|
|
84
|
-
" to method copy_from_tag" % key
|
|
85
|
-
)
|
|
86
|
-
params[key] = val
|
|
87
|
-
del params['kwargs']
|
|
88
|
-
# verify the required parameter 'body' is set
|
|
89
|
-
if ('body' not in params or
|
|
90
|
-
params['body'] is None):
|
|
91
|
-
raise ValueError("Missing the required parameter `body` when calling `copy_from_tag`") # noqa: E501
|
|
92
|
-
# verify the required parameter 'tag' is set
|
|
93
|
-
if ('tag' not in params or
|
|
94
|
-
params['tag'] is None):
|
|
95
|
-
raise ValueError("Missing the required parameter `tag` when calling `copy_from_tag`") # noqa: E501
|
|
96
|
-
|
|
97
|
-
collection_formats = {}
|
|
98
|
-
|
|
99
|
-
path_params = {}
|
|
100
|
-
if 'tag' in params:
|
|
101
|
-
path_params['tag'] = params['tag'] # noqa: E501
|
|
102
|
-
|
|
103
|
-
query_params = []
|
|
104
|
-
|
|
105
|
-
header_params = {}
|
|
106
|
-
|
|
107
|
-
form_params = []
|
|
108
|
-
local_var_files = {}
|
|
109
|
-
|
|
110
|
-
body_params = None
|
|
111
|
-
if 'body' in params:
|
|
112
|
-
body_params = params['body']
|
|
113
|
-
# HTTP header `Accept`
|
|
114
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
115
|
-
['application/json', 'text/json']) # noqa: E501
|
|
116
|
-
|
|
117
|
-
# HTTP header `Content-Type`
|
|
118
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
119
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
120
|
-
|
|
121
|
-
# Authentication setting
|
|
122
|
-
auth_settings = [] # noqa: E501
|
|
123
|
-
|
|
124
|
-
return self.api_client.call_api(
|
|
125
|
-
'/teamdbapi/v2.0/tag/{tag}/copy', 'POST',
|
|
126
|
-
path_params,
|
|
127
|
-
query_params,
|
|
128
|
-
header_params,
|
|
129
|
-
body=body_params,
|
|
130
|
-
post_params=form_params,
|
|
131
|
-
files=local_var_files,
|
|
132
|
-
response_type=None, # noqa: E501
|
|
133
|
-
auth_settings=auth_settings,
|
|
134
|
-
async_req=params.get('async_req'),
|
|
135
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
136
|
-
_preload_content=params.get('_preload_content', True),
|
|
137
|
-
_request_timeout=params.get('_request_timeout'),
|
|
138
|
-
collection_formats=collection_formats)
|
|
139
|
-
|
|
140
|
-
def get_current_car_parameters_selected_context(self, **kwargs): # noqa: E501
|
|
141
|
-
"""Get the current Car Parameters selected context in Parameters Editor view # noqa: E501
|
|
142
|
-
|
|
143
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
144
|
-
asynchronous HTTP request, please pass async_req=True
|
|
145
|
-
>>> thread = api.get_current_car_parameters_selected_context(async_req=True)
|
|
146
|
-
>>> result = thread.get()
|
|
147
|
-
|
|
148
|
-
:param async_req bool
|
|
149
|
-
:return: CarParametersContext
|
|
150
|
-
If the method is called asynchronously,
|
|
151
|
-
returns the request thread.
|
|
152
|
-
"""
|
|
153
|
-
kwargs['_return_http_data_only'] = True
|
|
154
|
-
if kwargs.get('async_req'):
|
|
155
|
-
return self.get_current_car_parameters_selected_context_with_http_info(**kwargs) # noqa: E501
|
|
156
|
-
else:
|
|
157
|
-
(data) = self.get_current_car_parameters_selected_context_with_http_info(**kwargs) # noqa: E501
|
|
158
|
-
return data
|
|
159
|
-
|
|
160
|
-
def get_current_car_parameters_selected_context_with_http_info(self, **kwargs): # noqa: E501
|
|
161
|
-
"""Get the current Car Parameters selected context in Parameters Editor view # noqa: E501
|
|
162
|
-
|
|
163
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
164
|
-
asynchronous HTTP request, please pass async_req=True
|
|
165
|
-
>>> thread = api.get_current_car_parameters_selected_context_with_http_info(async_req=True)
|
|
166
|
-
>>> result = thread.get()
|
|
167
|
-
|
|
168
|
-
:param async_req bool
|
|
169
|
-
:return: CarParametersContext
|
|
170
|
-
If the method is called asynchronously,
|
|
171
|
-
returns the request thread.
|
|
172
|
-
"""
|
|
173
|
-
|
|
174
|
-
all_params = [] # noqa: E501
|
|
175
|
-
all_params.append('async_req')
|
|
176
|
-
all_params.append('_return_http_data_only')
|
|
177
|
-
all_params.append('_preload_content')
|
|
178
|
-
all_params.append('_request_timeout')
|
|
179
|
-
|
|
180
|
-
params = locals()
|
|
181
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
182
|
-
if key not in all_params:
|
|
183
|
-
raise TypeError(
|
|
184
|
-
"Got an unexpected keyword argument '%s'"
|
|
185
|
-
" to method get_current_car_parameters_selected_context" % key
|
|
186
|
-
)
|
|
187
|
-
params[key] = val
|
|
188
|
-
del params['kwargs']
|
|
189
|
-
|
|
190
|
-
collection_formats = {}
|
|
191
|
-
|
|
192
|
-
path_params = {}
|
|
193
|
-
|
|
194
|
-
query_params = []
|
|
195
|
-
|
|
196
|
-
header_params = {}
|
|
197
|
-
|
|
198
|
-
form_params = []
|
|
199
|
-
local_var_files = {}
|
|
200
|
-
|
|
201
|
-
body_params = None
|
|
202
|
-
# HTTP header `Accept`
|
|
203
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
204
|
-
['application/json', 'text/json']) # noqa: E501
|
|
205
|
-
|
|
206
|
-
# Authentication setting
|
|
207
|
-
auth_settings = [] # noqa: E501
|
|
208
|
-
|
|
209
|
-
return self.api_client.call_api(
|
|
210
|
-
'/teamdbapi/v2.0/currentCarParametersContext', 'GET',
|
|
211
|
-
path_params,
|
|
212
|
-
query_params,
|
|
213
|
-
header_params,
|
|
214
|
-
body=body_params,
|
|
215
|
-
post_params=form_params,
|
|
216
|
-
files=local_var_files,
|
|
217
|
-
response_type='CarParametersContext', # noqa: E501
|
|
218
|
-
auth_settings=auth_settings,
|
|
219
|
-
async_req=params.get('async_req'),
|
|
220
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
221
|
-
_preload_content=params.get('_preload_content', True),
|
|
222
|
-
_request_timeout=params.get('_request_timeout'),
|
|
223
|
-
collection_formats=collection_formats)
|
|
224
|
-
|
|
225
|
-
def get_current_selected_context(self, **kwargs): # noqa: E501
|
|
226
|
-
"""Get the current selected notes context # noqa: E501
|
|
227
|
-
|
|
228
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
229
|
-
asynchronous HTTP request, please pass async_req=True
|
|
230
|
-
>>> thread = api.get_current_selected_context(async_req=True)
|
|
231
|
-
>>> result = thread.get()
|
|
232
|
-
|
|
233
|
-
:param async_req bool
|
|
234
|
-
:return: NotesContext
|
|
235
|
-
If the method is called asynchronously,
|
|
236
|
-
returns the request thread.
|
|
237
|
-
"""
|
|
238
|
-
kwargs['_return_http_data_only'] = True
|
|
239
|
-
if kwargs.get('async_req'):
|
|
240
|
-
return self.get_current_selected_context_with_http_info(**kwargs) # noqa: E501
|
|
241
|
-
else:
|
|
242
|
-
(data) = self.get_current_selected_context_with_http_info(**kwargs) # noqa: E501
|
|
243
|
-
return data
|
|
244
|
-
|
|
245
|
-
def get_current_selected_context_with_http_info(self, **kwargs): # noqa: E501
|
|
246
|
-
"""Get the current selected notes context # noqa: E501
|
|
247
|
-
|
|
248
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
249
|
-
asynchronous HTTP request, please pass async_req=True
|
|
250
|
-
>>> thread = api.get_current_selected_context_with_http_info(async_req=True)
|
|
251
|
-
>>> result = thread.get()
|
|
252
|
-
|
|
253
|
-
:param async_req bool
|
|
254
|
-
:return: NotesContext
|
|
255
|
-
If the method is called asynchronously,
|
|
256
|
-
returns the request thread.
|
|
257
|
-
"""
|
|
258
|
-
|
|
259
|
-
all_params = [] # noqa: E501
|
|
260
|
-
all_params.append('async_req')
|
|
261
|
-
all_params.append('_return_http_data_only')
|
|
262
|
-
all_params.append('_preload_content')
|
|
263
|
-
all_params.append('_request_timeout')
|
|
264
|
-
|
|
265
|
-
params = locals()
|
|
266
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
267
|
-
if key not in all_params:
|
|
268
|
-
raise TypeError(
|
|
269
|
-
"Got an unexpected keyword argument '%s'"
|
|
270
|
-
" to method get_current_selected_context" % key
|
|
271
|
-
)
|
|
272
|
-
params[key] = val
|
|
273
|
-
del params['kwargs']
|
|
274
|
-
|
|
275
|
-
collection_formats = {}
|
|
276
|
-
|
|
277
|
-
path_params = {}
|
|
278
|
-
|
|
279
|
-
query_params = []
|
|
280
|
-
|
|
281
|
-
header_params = {}
|
|
282
|
-
|
|
283
|
-
form_params = []
|
|
284
|
-
local_var_files = {}
|
|
285
|
-
|
|
286
|
-
body_params = None
|
|
287
|
-
# HTTP header `Accept`
|
|
288
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
289
|
-
['application/json', 'text/json']) # noqa: E501
|
|
290
|
-
|
|
291
|
-
# Authentication setting
|
|
292
|
-
auth_settings = [] # noqa: E501
|
|
293
|
-
|
|
294
|
-
return self.api_client.call_api(
|
|
295
|
-
'/teamdbapi/v2.0/currentcontext', 'GET',
|
|
296
|
-
path_params,
|
|
297
|
-
query_params,
|
|
298
|
-
header_params,
|
|
299
|
-
body=body_params,
|
|
300
|
-
post_params=form_params,
|
|
301
|
-
files=local_var_files,
|
|
302
|
-
response_type='NotesContext', # noqa: E501
|
|
303
|
-
auth_settings=auth_settings,
|
|
304
|
-
async_req=params.get('async_req'),
|
|
305
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
306
|
-
_preload_content=params.get('_preload_content', True),
|
|
307
|
-
_request_timeout=params.get('_request_timeout'),
|
|
308
|
-
collection_formats=collection_formats)
|
|
309
|
-
|
|
310
|
-
def set_current_context(self, event_id, car_id, session_id, run_id, lap_id, **kwargs): # noqa: E501
|
|
311
|
-
"""[Command] Set the current Event, Car, Session, Run, Lap selected. Enter the empty unique identifier value 00000000-0000-0000-0000-000000000000 to select the default value. # noqa: E501
|
|
312
|
-
|
|
313
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
314
|
-
asynchronous HTTP request, please pass async_req=True
|
|
315
|
-
>>> thread = api.set_current_context(event_id, car_id, session_id, run_id, lap_id, async_req=True)
|
|
316
|
-
>>> result = thread.get()
|
|
317
|
-
|
|
318
|
-
:param async_req bool
|
|
319
|
-
:param str event_id: The event unique id to select (required)
|
|
320
|
-
:param str car_id: The car unique id to select (required)
|
|
321
|
-
:param str session_id: The session unique id to select (required)
|
|
322
|
-
:param str run_id: The run unique id to select (required)
|
|
323
|
-
:param str lap_id: The lap unique id to select (required)
|
|
324
|
-
:return: None
|
|
325
|
-
If the method is called asynchronously,
|
|
326
|
-
returns the request thread.
|
|
327
|
-
"""
|
|
328
|
-
kwargs['_return_http_data_only'] = True
|
|
329
|
-
if kwargs.get('async_req'):
|
|
330
|
-
return self.set_current_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, **kwargs) # noqa: E501
|
|
331
|
-
else:
|
|
332
|
-
(data) = self.set_current_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, **kwargs) # noqa: E501
|
|
333
|
-
return data
|
|
334
|
-
|
|
335
|
-
def set_current_context_with_http_info(self, event_id, car_id, session_id, run_id, lap_id, **kwargs): # noqa: E501
|
|
336
|
-
"""[Command] Set the current Event, Car, Session, Run, Lap selected. Enter the empty unique identifier value 00000000-0000-0000-0000-000000000000 to select the default value. # noqa: E501
|
|
337
|
-
|
|
338
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
339
|
-
asynchronous HTTP request, please pass async_req=True
|
|
340
|
-
>>> thread = api.set_current_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, async_req=True)
|
|
341
|
-
>>> result = thread.get()
|
|
342
|
-
|
|
343
|
-
:param async_req bool
|
|
344
|
-
:param str event_id: The event unique id to select (required)
|
|
345
|
-
:param str car_id: The car unique id to select (required)
|
|
346
|
-
:param str session_id: The session unique id to select (required)
|
|
347
|
-
:param str run_id: The run unique id to select (required)
|
|
348
|
-
:param str lap_id: The lap unique id to select (required)
|
|
349
|
-
:return: None
|
|
350
|
-
If the method is called asynchronously,
|
|
351
|
-
returns the request thread.
|
|
352
|
-
"""
|
|
353
|
-
|
|
354
|
-
all_params = ['event_id', 'car_id', 'session_id', 'run_id', 'lap_id'] # noqa: E501
|
|
355
|
-
all_params.append('async_req')
|
|
356
|
-
all_params.append('_return_http_data_only')
|
|
357
|
-
all_params.append('_preload_content')
|
|
358
|
-
all_params.append('_request_timeout')
|
|
359
|
-
|
|
360
|
-
params = locals()
|
|
361
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
362
|
-
if key not in all_params:
|
|
363
|
-
raise TypeError(
|
|
364
|
-
"Got an unexpected keyword argument '%s'"
|
|
365
|
-
" to method set_current_context" % key
|
|
366
|
-
)
|
|
367
|
-
params[key] = val
|
|
368
|
-
del params['kwargs']
|
|
369
|
-
# verify the required parameter 'event_id' is set
|
|
370
|
-
if ('event_id' not in params or
|
|
371
|
-
params['event_id'] is None):
|
|
372
|
-
raise ValueError("Missing the required parameter `event_id` when calling `set_current_context`") # noqa: E501
|
|
373
|
-
# verify the required parameter 'car_id' is set
|
|
374
|
-
if ('car_id' not in params or
|
|
375
|
-
params['car_id'] is None):
|
|
376
|
-
raise ValueError("Missing the required parameter `car_id` when calling `set_current_context`") # noqa: E501
|
|
377
|
-
# verify the required parameter 'session_id' is set
|
|
378
|
-
if ('session_id' not in params or
|
|
379
|
-
params['session_id'] is None):
|
|
380
|
-
raise ValueError("Missing the required parameter `session_id` when calling `set_current_context`") # noqa: E501
|
|
381
|
-
# verify the required parameter 'run_id' is set
|
|
382
|
-
if ('run_id' not in params or
|
|
383
|
-
params['run_id'] is None):
|
|
384
|
-
raise ValueError("Missing the required parameter `run_id` when calling `set_current_context`") # noqa: E501
|
|
385
|
-
# verify the required parameter 'lap_id' is set
|
|
386
|
-
if ('lap_id' not in params or
|
|
387
|
-
params['lap_id'] is None):
|
|
388
|
-
raise ValueError("Missing the required parameter `lap_id` when calling `set_current_context`") # noqa: E501
|
|
389
|
-
|
|
390
|
-
collection_formats = {}
|
|
391
|
-
|
|
392
|
-
path_params = {}
|
|
393
|
-
|
|
394
|
-
query_params = []
|
|
395
|
-
if 'event_id' in params:
|
|
396
|
-
query_params.append(('eventId', params['event_id'])) # noqa: E501
|
|
397
|
-
if 'car_id' in params:
|
|
398
|
-
query_params.append(('carId', params['car_id'])) # noqa: E501
|
|
399
|
-
if 'session_id' in params:
|
|
400
|
-
query_params.append(('sessionId', params['session_id'])) # noqa: E501
|
|
401
|
-
if 'run_id' in params:
|
|
402
|
-
query_params.append(('runId', params['run_id'])) # noqa: E501
|
|
403
|
-
if 'lap_id' in params:
|
|
404
|
-
query_params.append(('lapId', params['lap_id'])) # noqa: E501
|
|
405
|
-
|
|
406
|
-
header_params = {}
|
|
407
|
-
|
|
408
|
-
form_params = []
|
|
409
|
-
local_var_files = {}
|
|
410
|
-
|
|
411
|
-
body_params = None
|
|
412
|
-
# HTTP header `Accept`
|
|
413
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
414
|
-
['application/json', 'text/json']) # noqa: E501
|
|
415
|
-
|
|
416
|
-
# Authentication setting
|
|
417
|
-
auth_settings = [] # noqa: E501
|
|
418
|
-
|
|
419
|
-
return self.api_client.call_api(
|
|
420
|
-
'/teamdbapi/v2.0/currentcontext', 'POST',
|
|
421
|
-
path_params,
|
|
422
|
-
query_params,
|
|
423
|
-
header_params,
|
|
424
|
-
body=body_params,
|
|
425
|
-
post_params=form_params,
|
|
426
|
-
files=local_var_files,
|
|
427
|
-
response_type=None, # noqa: E501
|
|
428
|
-
auth_settings=auth_settings,
|
|
429
|
-
async_req=params.get('async_req'),
|
|
430
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
431
|
-
_preload_content=params.get('_preload_content', True),
|
|
432
|
-
_request_timeout=params.get('_request_timeout'),
|
|
433
|
-
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 EditApi(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 copy_from_tag(self, body, tag, **kwargs): # noqa: E501
|
|
36
|
+
"""[Command] Copy values corresponding to the given Tag from a context to another # 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.copy_from_tag(body, tag, async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:param CopyFromTagsArgs body: The source and target context (event, car, session, run, lap) from which you want to copy the values (required)
|
|
45
|
+
:param str tag: The tag corresponding to the values you want to copy (required)
|
|
46
|
+
:return: None
|
|
47
|
+
If the method is called asynchronously,
|
|
48
|
+
returns the request thread.
|
|
49
|
+
"""
|
|
50
|
+
kwargs['_return_http_data_only'] = True
|
|
51
|
+
if kwargs.get('async_req'):
|
|
52
|
+
return self.copy_from_tag_with_http_info(body, tag, **kwargs) # noqa: E501
|
|
53
|
+
else:
|
|
54
|
+
(data) = self.copy_from_tag_with_http_info(body, tag, **kwargs) # noqa: E501
|
|
55
|
+
return data
|
|
56
|
+
|
|
57
|
+
def copy_from_tag_with_http_info(self, body, tag, **kwargs): # noqa: E501
|
|
58
|
+
"""[Command] Copy values corresponding to the given Tag from a context to another # noqa: E501
|
|
59
|
+
|
|
60
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
61
|
+
asynchronous HTTP request, please pass async_req=True
|
|
62
|
+
>>> thread = api.copy_from_tag_with_http_info(body, tag, async_req=True)
|
|
63
|
+
>>> result = thread.get()
|
|
64
|
+
|
|
65
|
+
:param async_req bool
|
|
66
|
+
:param CopyFromTagsArgs body: The source and target context (event, car, session, run, lap) from which you want to copy the values (required)
|
|
67
|
+
:param str tag: The tag corresponding to the values you want to copy (required)
|
|
68
|
+
:return: None
|
|
69
|
+
If the method is called asynchronously,
|
|
70
|
+
returns the request thread.
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
all_params = ['body', 'tag'] # noqa: E501
|
|
74
|
+
all_params.append('async_req')
|
|
75
|
+
all_params.append('_return_http_data_only')
|
|
76
|
+
all_params.append('_preload_content')
|
|
77
|
+
all_params.append('_request_timeout')
|
|
78
|
+
|
|
79
|
+
params = locals()
|
|
80
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
81
|
+
if key not in all_params:
|
|
82
|
+
raise TypeError(
|
|
83
|
+
"Got an unexpected keyword argument '%s'"
|
|
84
|
+
" to method copy_from_tag" % key
|
|
85
|
+
)
|
|
86
|
+
params[key] = val
|
|
87
|
+
del params['kwargs']
|
|
88
|
+
# verify the required parameter 'body' is set
|
|
89
|
+
if ('body' not in params or
|
|
90
|
+
params['body'] is None):
|
|
91
|
+
raise ValueError("Missing the required parameter `body` when calling `copy_from_tag`") # noqa: E501
|
|
92
|
+
# verify the required parameter 'tag' is set
|
|
93
|
+
if ('tag' not in params or
|
|
94
|
+
params['tag'] is None):
|
|
95
|
+
raise ValueError("Missing the required parameter `tag` when calling `copy_from_tag`") # noqa: E501
|
|
96
|
+
|
|
97
|
+
collection_formats = {}
|
|
98
|
+
|
|
99
|
+
path_params = {}
|
|
100
|
+
if 'tag' in params:
|
|
101
|
+
path_params['tag'] = params['tag'] # noqa: E501
|
|
102
|
+
|
|
103
|
+
query_params = []
|
|
104
|
+
|
|
105
|
+
header_params = {}
|
|
106
|
+
|
|
107
|
+
form_params = []
|
|
108
|
+
local_var_files = {}
|
|
109
|
+
|
|
110
|
+
body_params = None
|
|
111
|
+
if 'body' in params:
|
|
112
|
+
body_params = params['body']
|
|
113
|
+
# HTTP header `Accept`
|
|
114
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
115
|
+
['application/json', 'text/json']) # noqa: E501
|
|
116
|
+
|
|
117
|
+
# HTTP header `Content-Type`
|
|
118
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
119
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
120
|
+
|
|
121
|
+
# Authentication setting
|
|
122
|
+
auth_settings = [] # noqa: E501
|
|
123
|
+
|
|
124
|
+
return self.api_client.call_api(
|
|
125
|
+
'/teamdbapi/v2.0/tag/{tag}/copy', 'POST',
|
|
126
|
+
path_params,
|
|
127
|
+
query_params,
|
|
128
|
+
header_params,
|
|
129
|
+
body=body_params,
|
|
130
|
+
post_params=form_params,
|
|
131
|
+
files=local_var_files,
|
|
132
|
+
response_type=None, # noqa: E501
|
|
133
|
+
auth_settings=auth_settings,
|
|
134
|
+
async_req=params.get('async_req'),
|
|
135
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
136
|
+
_preload_content=params.get('_preload_content', True),
|
|
137
|
+
_request_timeout=params.get('_request_timeout'),
|
|
138
|
+
collection_formats=collection_formats)
|
|
139
|
+
|
|
140
|
+
def get_current_car_parameters_selected_context(self, **kwargs): # noqa: E501
|
|
141
|
+
"""Get the current Car Parameters selected context in Parameters Editor view # noqa: E501
|
|
142
|
+
|
|
143
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
144
|
+
asynchronous HTTP request, please pass async_req=True
|
|
145
|
+
>>> thread = api.get_current_car_parameters_selected_context(async_req=True)
|
|
146
|
+
>>> result = thread.get()
|
|
147
|
+
|
|
148
|
+
:param async_req bool
|
|
149
|
+
:return: CarParametersContext
|
|
150
|
+
If the method is called asynchronously,
|
|
151
|
+
returns the request thread.
|
|
152
|
+
"""
|
|
153
|
+
kwargs['_return_http_data_only'] = True
|
|
154
|
+
if kwargs.get('async_req'):
|
|
155
|
+
return self.get_current_car_parameters_selected_context_with_http_info(**kwargs) # noqa: E501
|
|
156
|
+
else:
|
|
157
|
+
(data) = self.get_current_car_parameters_selected_context_with_http_info(**kwargs) # noqa: E501
|
|
158
|
+
return data
|
|
159
|
+
|
|
160
|
+
def get_current_car_parameters_selected_context_with_http_info(self, **kwargs): # noqa: E501
|
|
161
|
+
"""Get the current Car Parameters selected context in Parameters Editor view # noqa: E501
|
|
162
|
+
|
|
163
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
164
|
+
asynchronous HTTP request, please pass async_req=True
|
|
165
|
+
>>> thread = api.get_current_car_parameters_selected_context_with_http_info(async_req=True)
|
|
166
|
+
>>> result = thread.get()
|
|
167
|
+
|
|
168
|
+
:param async_req bool
|
|
169
|
+
:return: CarParametersContext
|
|
170
|
+
If the method is called asynchronously,
|
|
171
|
+
returns the request thread.
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
all_params = [] # noqa: E501
|
|
175
|
+
all_params.append('async_req')
|
|
176
|
+
all_params.append('_return_http_data_only')
|
|
177
|
+
all_params.append('_preload_content')
|
|
178
|
+
all_params.append('_request_timeout')
|
|
179
|
+
|
|
180
|
+
params = locals()
|
|
181
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
182
|
+
if key not in all_params:
|
|
183
|
+
raise TypeError(
|
|
184
|
+
"Got an unexpected keyword argument '%s'"
|
|
185
|
+
" to method get_current_car_parameters_selected_context" % key
|
|
186
|
+
)
|
|
187
|
+
params[key] = val
|
|
188
|
+
del params['kwargs']
|
|
189
|
+
|
|
190
|
+
collection_formats = {}
|
|
191
|
+
|
|
192
|
+
path_params = {}
|
|
193
|
+
|
|
194
|
+
query_params = []
|
|
195
|
+
|
|
196
|
+
header_params = {}
|
|
197
|
+
|
|
198
|
+
form_params = []
|
|
199
|
+
local_var_files = {}
|
|
200
|
+
|
|
201
|
+
body_params = None
|
|
202
|
+
# HTTP header `Accept`
|
|
203
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
204
|
+
['application/json', 'text/json']) # noqa: E501
|
|
205
|
+
|
|
206
|
+
# Authentication setting
|
|
207
|
+
auth_settings = [] # noqa: E501
|
|
208
|
+
|
|
209
|
+
return self.api_client.call_api(
|
|
210
|
+
'/teamdbapi/v2.0/currentCarParametersContext', 'GET',
|
|
211
|
+
path_params,
|
|
212
|
+
query_params,
|
|
213
|
+
header_params,
|
|
214
|
+
body=body_params,
|
|
215
|
+
post_params=form_params,
|
|
216
|
+
files=local_var_files,
|
|
217
|
+
response_type='CarParametersContext', # noqa: E501
|
|
218
|
+
auth_settings=auth_settings,
|
|
219
|
+
async_req=params.get('async_req'),
|
|
220
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
221
|
+
_preload_content=params.get('_preload_content', True),
|
|
222
|
+
_request_timeout=params.get('_request_timeout'),
|
|
223
|
+
collection_formats=collection_formats)
|
|
224
|
+
|
|
225
|
+
def get_current_selected_context(self, **kwargs): # noqa: E501
|
|
226
|
+
"""Get the current selected notes context # noqa: E501
|
|
227
|
+
|
|
228
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
229
|
+
asynchronous HTTP request, please pass async_req=True
|
|
230
|
+
>>> thread = api.get_current_selected_context(async_req=True)
|
|
231
|
+
>>> result = thread.get()
|
|
232
|
+
|
|
233
|
+
:param async_req bool
|
|
234
|
+
:return: NotesContext
|
|
235
|
+
If the method is called asynchronously,
|
|
236
|
+
returns the request thread.
|
|
237
|
+
"""
|
|
238
|
+
kwargs['_return_http_data_only'] = True
|
|
239
|
+
if kwargs.get('async_req'):
|
|
240
|
+
return self.get_current_selected_context_with_http_info(**kwargs) # noqa: E501
|
|
241
|
+
else:
|
|
242
|
+
(data) = self.get_current_selected_context_with_http_info(**kwargs) # noqa: E501
|
|
243
|
+
return data
|
|
244
|
+
|
|
245
|
+
def get_current_selected_context_with_http_info(self, **kwargs): # noqa: E501
|
|
246
|
+
"""Get the current selected notes context # noqa: E501
|
|
247
|
+
|
|
248
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
249
|
+
asynchronous HTTP request, please pass async_req=True
|
|
250
|
+
>>> thread = api.get_current_selected_context_with_http_info(async_req=True)
|
|
251
|
+
>>> result = thread.get()
|
|
252
|
+
|
|
253
|
+
:param async_req bool
|
|
254
|
+
:return: NotesContext
|
|
255
|
+
If the method is called asynchronously,
|
|
256
|
+
returns the request thread.
|
|
257
|
+
"""
|
|
258
|
+
|
|
259
|
+
all_params = [] # noqa: E501
|
|
260
|
+
all_params.append('async_req')
|
|
261
|
+
all_params.append('_return_http_data_only')
|
|
262
|
+
all_params.append('_preload_content')
|
|
263
|
+
all_params.append('_request_timeout')
|
|
264
|
+
|
|
265
|
+
params = locals()
|
|
266
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
267
|
+
if key not in all_params:
|
|
268
|
+
raise TypeError(
|
|
269
|
+
"Got an unexpected keyword argument '%s'"
|
|
270
|
+
" to method get_current_selected_context" % key
|
|
271
|
+
)
|
|
272
|
+
params[key] = val
|
|
273
|
+
del params['kwargs']
|
|
274
|
+
|
|
275
|
+
collection_formats = {}
|
|
276
|
+
|
|
277
|
+
path_params = {}
|
|
278
|
+
|
|
279
|
+
query_params = []
|
|
280
|
+
|
|
281
|
+
header_params = {}
|
|
282
|
+
|
|
283
|
+
form_params = []
|
|
284
|
+
local_var_files = {}
|
|
285
|
+
|
|
286
|
+
body_params = None
|
|
287
|
+
# HTTP header `Accept`
|
|
288
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
289
|
+
['application/json', 'text/json']) # noqa: E501
|
|
290
|
+
|
|
291
|
+
# Authentication setting
|
|
292
|
+
auth_settings = [] # noqa: E501
|
|
293
|
+
|
|
294
|
+
return self.api_client.call_api(
|
|
295
|
+
'/teamdbapi/v2.0/currentcontext', 'GET',
|
|
296
|
+
path_params,
|
|
297
|
+
query_params,
|
|
298
|
+
header_params,
|
|
299
|
+
body=body_params,
|
|
300
|
+
post_params=form_params,
|
|
301
|
+
files=local_var_files,
|
|
302
|
+
response_type='NotesContext', # noqa: E501
|
|
303
|
+
auth_settings=auth_settings,
|
|
304
|
+
async_req=params.get('async_req'),
|
|
305
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
306
|
+
_preload_content=params.get('_preload_content', True),
|
|
307
|
+
_request_timeout=params.get('_request_timeout'),
|
|
308
|
+
collection_formats=collection_formats)
|
|
309
|
+
|
|
310
|
+
def set_current_context(self, event_id, car_id, session_id, run_id, lap_id, **kwargs): # noqa: E501
|
|
311
|
+
"""[Command] Set the current Event, Car, Session, Run, Lap selected. Enter the empty unique identifier value 00000000-0000-0000-0000-000000000000 to select the default value. # noqa: E501
|
|
312
|
+
|
|
313
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
314
|
+
asynchronous HTTP request, please pass async_req=True
|
|
315
|
+
>>> thread = api.set_current_context(event_id, car_id, session_id, run_id, lap_id, async_req=True)
|
|
316
|
+
>>> result = thread.get()
|
|
317
|
+
|
|
318
|
+
:param async_req bool
|
|
319
|
+
:param str event_id: The event unique id to select (required)
|
|
320
|
+
:param str car_id: The car unique id to select (required)
|
|
321
|
+
:param str session_id: The session unique id to select (required)
|
|
322
|
+
:param str run_id: The run unique id to select (required)
|
|
323
|
+
:param str lap_id: The lap unique id to select (required)
|
|
324
|
+
:return: None
|
|
325
|
+
If the method is called asynchronously,
|
|
326
|
+
returns the request thread.
|
|
327
|
+
"""
|
|
328
|
+
kwargs['_return_http_data_only'] = True
|
|
329
|
+
if kwargs.get('async_req'):
|
|
330
|
+
return self.set_current_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, **kwargs) # noqa: E501
|
|
331
|
+
else:
|
|
332
|
+
(data) = self.set_current_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, **kwargs) # noqa: E501
|
|
333
|
+
return data
|
|
334
|
+
|
|
335
|
+
def set_current_context_with_http_info(self, event_id, car_id, session_id, run_id, lap_id, **kwargs): # noqa: E501
|
|
336
|
+
"""[Command] Set the current Event, Car, Session, Run, Lap selected. Enter the empty unique identifier value 00000000-0000-0000-0000-000000000000 to select the default value. # noqa: E501
|
|
337
|
+
|
|
338
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
339
|
+
asynchronous HTTP request, please pass async_req=True
|
|
340
|
+
>>> thread = api.set_current_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, async_req=True)
|
|
341
|
+
>>> result = thread.get()
|
|
342
|
+
|
|
343
|
+
:param async_req bool
|
|
344
|
+
:param str event_id: The event unique id to select (required)
|
|
345
|
+
:param str car_id: The car unique id to select (required)
|
|
346
|
+
:param str session_id: The session unique id to select (required)
|
|
347
|
+
:param str run_id: The run unique id to select (required)
|
|
348
|
+
:param str lap_id: The lap unique id to select (required)
|
|
349
|
+
:return: None
|
|
350
|
+
If the method is called asynchronously,
|
|
351
|
+
returns the request thread.
|
|
352
|
+
"""
|
|
353
|
+
|
|
354
|
+
all_params = ['event_id', 'car_id', 'session_id', 'run_id', 'lap_id'] # noqa: E501
|
|
355
|
+
all_params.append('async_req')
|
|
356
|
+
all_params.append('_return_http_data_only')
|
|
357
|
+
all_params.append('_preload_content')
|
|
358
|
+
all_params.append('_request_timeout')
|
|
359
|
+
|
|
360
|
+
params = locals()
|
|
361
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
362
|
+
if key not in all_params:
|
|
363
|
+
raise TypeError(
|
|
364
|
+
"Got an unexpected keyword argument '%s'"
|
|
365
|
+
" to method set_current_context" % key
|
|
366
|
+
)
|
|
367
|
+
params[key] = val
|
|
368
|
+
del params['kwargs']
|
|
369
|
+
# verify the required parameter 'event_id' is set
|
|
370
|
+
if ('event_id' not in params or
|
|
371
|
+
params['event_id'] is None):
|
|
372
|
+
raise ValueError("Missing the required parameter `event_id` when calling `set_current_context`") # noqa: E501
|
|
373
|
+
# verify the required parameter 'car_id' is set
|
|
374
|
+
if ('car_id' not in params or
|
|
375
|
+
params['car_id'] is None):
|
|
376
|
+
raise ValueError("Missing the required parameter `car_id` when calling `set_current_context`") # noqa: E501
|
|
377
|
+
# verify the required parameter 'session_id' is set
|
|
378
|
+
if ('session_id' not in params or
|
|
379
|
+
params['session_id'] is None):
|
|
380
|
+
raise ValueError("Missing the required parameter `session_id` when calling `set_current_context`") # noqa: E501
|
|
381
|
+
# verify the required parameter 'run_id' is set
|
|
382
|
+
if ('run_id' not in params or
|
|
383
|
+
params['run_id'] is None):
|
|
384
|
+
raise ValueError("Missing the required parameter `run_id` when calling `set_current_context`") # noqa: E501
|
|
385
|
+
# verify the required parameter 'lap_id' is set
|
|
386
|
+
if ('lap_id' not in params or
|
|
387
|
+
params['lap_id'] is None):
|
|
388
|
+
raise ValueError("Missing the required parameter `lap_id` when calling `set_current_context`") # noqa: E501
|
|
389
|
+
|
|
390
|
+
collection_formats = {}
|
|
391
|
+
|
|
392
|
+
path_params = {}
|
|
393
|
+
|
|
394
|
+
query_params = []
|
|
395
|
+
if 'event_id' in params:
|
|
396
|
+
query_params.append(('eventId', params['event_id'])) # noqa: E501
|
|
397
|
+
if 'car_id' in params:
|
|
398
|
+
query_params.append(('carId', params['car_id'])) # noqa: E501
|
|
399
|
+
if 'session_id' in params:
|
|
400
|
+
query_params.append(('sessionId', params['session_id'])) # noqa: E501
|
|
401
|
+
if 'run_id' in params:
|
|
402
|
+
query_params.append(('runId', params['run_id'])) # noqa: E501
|
|
403
|
+
if 'lap_id' in params:
|
|
404
|
+
query_params.append(('lapId', params['lap_id'])) # noqa: E501
|
|
405
|
+
|
|
406
|
+
header_params = {}
|
|
407
|
+
|
|
408
|
+
form_params = []
|
|
409
|
+
local_var_files = {}
|
|
410
|
+
|
|
411
|
+
body_params = None
|
|
412
|
+
# HTTP header `Accept`
|
|
413
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
414
|
+
['application/json', 'text/json']) # noqa: E501
|
|
415
|
+
|
|
416
|
+
# Authentication setting
|
|
417
|
+
auth_settings = [] # noqa: E501
|
|
418
|
+
|
|
419
|
+
return self.api_client.call_api(
|
|
420
|
+
'/teamdbapi/v2.0/currentcontext', 'POST',
|
|
421
|
+
path_params,
|
|
422
|
+
query_params,
|
|
423
|
+
header_params,
|
|
424
|
+
body=body_params,
|
|
425
|
+
post_params=form_params,
|
|
426
|
+
files=local_var_files,
|
|
427
|
+
response_type=None, # noqa: E501
|
|
428
|
+
auth_settings=auth_settings,
|
|
429
|
+
async_req=params.get('async_req'),
|
|
430
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
431
|
+
_preload_content=params.get('_preload_content', True),
|
|
432
|
+
_request_timeout=params.get('_request_timeout'),
|
|
433
|
+
collection_formats=collection_formats)
|