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/event_api.py
CHANGED
|
@@ -1,878 +1,878 @@
|
|
|
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 EventApi(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_event(self, body, **kwargs): # noqa: E501
|
|
36
|
-
"""Create a new event # 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_event(body, async_req=True)
|
|
41
|
-
>>> result = thread.get()
|
|
42
|
-
|
|
43
|
-
:param async_req bool
|
|
44
|
-
:param Event body: The event to create. (required)
|
|
45
|
-
:return: Event
|
|
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_event_with_http_info(body, **kwargs) # noqa: E501
|
|
52
|
-
else:
|
|
53
|
-
(data) = self.create_event_with_http_info(body, **kwargs) # noqa: E501
|
|
54
|
-
return data
|
|
55
|
-
|
|
56
|
-
def create_event_with_http_info(self, body, **kwargs): # noqa: E501
|
|
57
|
-
"""Create a new event # 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_event_with_http_info(body, async_req=True)
|
|
62
|
-
>>> result = thread.get()
|
|
63
|
-
|
|
64
|
-
:param async_req bool
|
|
65
|
-
:param Event body: The event to create. (required)
|
|
66
|
-
:return: Event
|
|
67
|
-
If the method is called asynchronously,
|
|
68
|
-
returns the request thread.
|
|
69
|
-
"""
|
|
70
|
-
|
|
71
|
-
all_params = ['body'] # noqa: E501
|
|
72
|
-
all_params.append('async_req')
|
|
73
|
-
all_params.append('_return_http_data_only')
|
|
74
|
-
all_params.append('_preload_content')
|
|
75
|
-
all_params.append('_request_timeout')
|
|
76
|
-
|
|
77
|
-
params = locals()
|
|
78
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
79
|
-
if key not in all_params:
|
|
80
|
-
raise TypeError(
|
|
81
|
-
"Got an unexpected keyword argument '%s'"
|
|
82
|
-
" to method create_event" % key
|
|
83
|
-
)
|
|
84
|
-
params[key] = val
|
|
85
|
-
del params['kwargs']
|
|
86
|
-
# verify the required parameter 'body' is set
|
|
87
|
-
if ('body' not in params or
|
|
88
|
-
params['body'] is None):
|
|
89
|
-
raise ValueError("Missing the required parameter `body` when calling `create_event`") # noqa: E501
|
|
90
|
-
|
|
91
|
-
collection_formats = {}
|
|
92
|
-
|
|
93
|
-
path_params = {}
|
|
94
|
-
|
|
95
|
-
query_params = []
|
|
96
|
-
|
|
97
|
-
header_params = {}
|
|
98
|
-
|
|
99
|
-
form_params = []
|
|
100
|
-
local_var_files = {}
|
|
101
|
-
|
|
102
|
-
body_params = None
|
|
103
|
-
if 'body' in params:
|
|
104
|
-
body_params = params['body']
|
|
105
|
-
# HTTP header `Accept`
|
|
106
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
107
|
-
['application/json', 'text/json']) # noqa: E501
|
|
108
|
-
|
|
109
|
-
# HTTP header `Content-Type`
|
|
110
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
111
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
112
|
-
|
|
113
|
-
# Authentication setting
|
|
114
|
-
auth_settings = [] # noqa: E501
|
|
115
|
-
|
|
116
|
-
return self.api_client.call_api(
|
|
117
|
-
'/teamdbapi/v2.0/event', 'POST',
|
|
118
|
-
path_params,
|
|
119
|
-
query_params,
|
|
120
|
-
header_params,
|
|
121
|
-
body=body_params,
|
|
122
|
-
post_params=form_params,
|
|
123
|
-
files=local_var_files,
|
|
124
|
-
response_type='Event', # noqa: E501
|
|
125
|
-
auth_settings=auth_settings,
|
|
126
|
-
async_req=params.get('async_req'),
|
|
127
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
128
|
-
_preload_content=params.get('_preload_content', True),
|
|
129
|
-
_request_timeout=params.get('_request_timeout'),
|
|
130
|
-
collection_formats=collection_formats)
|
|
131
|
-
|
|
132
|
-
def delete_event(self, event_id, **kwargs): # noqa: E501
|
|
133
|
-
"""Delete an existing event # noqa: E501
|
|
134
|
-
|
|
135
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
136
|
-
asynchronous HTTP request, please pass async_req=True
|
|
137
|
-
>>> thread = api.delete_event(event_id, async_req=True)
|
|
138
|
-
>>> result = thread.get()
|
|
139
|
-
|
|
140
|
-
:param async_req bool
|
|
141
|
-
:param str event_id: The unique event id for which you want to delete the event (required)
|
|
142
|
-
:return: None
|
|
143
|
-
If the method is called asynchronously,
|
|
144
|
-
returns the request thread.
|
|
145
|
-
"""
|
|
146
|
-
kwargs['_return_http_data_only'] = True
|
|
147
|
-
if kwargs.get('async_req'):
|
|
148
|
-
return self.delete_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
149
|
-
else:
|
|
150
|
-
(data) = self.delete_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
151
|
-
return data
|
|
152
|
-
|
|
153
|
-
def delete_event_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
154
|
-
"""Delete an existing event # noqa: E501
|
|
155
|
-
|
|
156
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
157
|
-
asynchronous HTTP request, please pass async_req=True
|
|
158
|
-
>>> thread = api.delete_event_with_http_info(event_id, async_req=True)
|
|
159
|
-
>>> result = thread.get()
|
|
160
|
-
|
|
161
|
-
:param async_req bool
|
|
162
|
-
:param str event_id: The unique event id for which you want to delete the event (required)
|
|
163
|
-
:return: None
|
|
164
|
-
If the method is called asynchronously,
|
|
165
|
-
returns the request thread.
|
|
166
|
-
"""
|
|
167
|
-
|
|
168
|
-
all_params = ['event_id'] # noqa: E501
|
|
169
|
-
all_params.append('async_req')
|
|
170
|
-
all_params.append('_return_http_data_only')
|
|
171
|
-
all_params.append('_preload_content')
|
|
172
|
-
all_params.append('_request_timeout')
|
|
173
|
-
|
|
174
|
-
params = locals()
|
|
175
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
176
|
-
if key not in all_params:
|
|
177
|
-
raise TypeError(
|
|
178
|
-
"Got an unexpected keyword argument '%s'"
|
|
179
|
-
" to method delete_event" % key
|
|
180
|
-
)
|
|
181
|
-
params[key] = val
|
|
182
|
-
del params['kwargs']
|
|
183
|
-
# verify the required parameter 'event_id' is set
|
|
184
|
-
if ('event_id' not in params or
|
|
185
|
-
params['event_id'] is None):
|
|
186
|
-
raise ValueError("Missing the required parameter `event_id` when calling `delete_event`") # noqa: E501
|
|
187
|
-
|
|
188
|
-
collection_formats = {}
|
|
189
|
-
|
|
190
|
-
path_params = {}
|
|
191
|
-
if 'event_id' in params:
|
|
192
|
-
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
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/event/{eventId}', 'DELETE',
|
|
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=None, # 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_event(self, **kwargs): # noqa: E501
|
|
226
|
-
"""Get the current event. # 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_event(async_req=True)
|
|
231
|
-
>>> result = thread.get()
|
|
232
|
-
|
|
233
|
-
:param async_req bool
|
|
234
|
-
:return: Event
|
|
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_event_with_http_info(**kwargs) # noqa: E501
|
|
241
|
-
else:
|
|
242
|
-
(data) = self.get_current_event_with_http_info(**kwargs) # noqa: E501
|
|
243
|
-
return data
|
|
244
|
-
|
|
245
|
-
def get_current_event_with_http_info(self, **kwargs): # noqa: E501
|
|
246
|
-
"""Get the current event. # 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_event_with_http_info(async_req=True)
|
|
251
|
-
>>> result = thread.get()
|
|
252
|
-
|
|
253
|
-
:param async_req bool
|
|
254
|
-
:return: Event
|
|
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_event" % 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/event/current', '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='Event', # 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 get_event(self, event_id, **kwargs): # noqa: E501
|
|
311
|
-
"""Get an event via a unique id. # 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.get_event(event_id, async_req=True)
|
|
316
|
-
>>> result = thread.get()
|
|
317
|
-
|
|
318
|
-
:param async_req bool
|
|
319
|
-
:param str event_id: The unique event id for which you want to get the event (required)
|
|
320
|
-
:return: Event
|
|
321
|
-
If the method is called asynchronously,
|
|
322
|
-
returns the request thread.
|
|
323
|
-
"""
|
|
324
|
-
kwargs['_return_http_data_only'] = True
|
|
325
|
-
if kwargs.get('async_req'):
|
|
326
|
-
return self.get_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
327
|
-
else:
|
|
328
|
-
(data) = self.get_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
329
|
-
return data
|
|
330
|
-
|
|
331
|
-
def get_event_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
332
|
-
"""Get an event via a unique id. # noqa: E501
|
|
333
|
-
|
|
334
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
335
|
-
asynchronous HTTP request, please pass async_req=True
|
|
336
|
-
>>> thread = api.get_event_with_http_info(event_id, async_req=True)
|
|
337
|
-
>>> result = thread.get()
|
|
338
|
-
|
|
339
|
-
:param async_req bool
|
|
340
|
-
:param str event_id: The unique event id for which you want to get the event (required)
|
|
341
|
-
:return: Event
|
|
342
|
-
If the method is called asynchronously,
|
|
343
|
-
returns the request thread.
|
|
344
|
-
"""
|
|
345
|
-
|
|
346
|
-
all_params = ['event_id'] # noqa: E501
|
|
347
|
-
all_params.append('async_req')
|
|
348
|
-
all_params.append('_return_http_data_only')
|
|
349
|
-
all_params.append('_preload_content')
|
|
350
|
-
all_params.append('_request_timeout')
|
|
351
|
-
|
|
352
|
-
params = locals()
|
|
353
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
354
|
-
if key not in all_params:
|
|
355
|
-
raise TypeError(
|
|
356
|
-
"Got an unexpected keyword argument '%s'"
|
|
357
|
-
" to method get_event" % key
|
|
358
|
-
)
|
|
359
|
-
params[key] = val
|
|
360
|
-
del params['kwargs']
|
|
361
|
-
# verify the required parameter 'event_id' is set
|
|
362
|
-
if ('event_id' not in params or
|
|
363
|
-
params['event_id'] is None):
|
|
364
|
-
raise ValueError("Missing the required parameter `event_id` when calling `get_event`") # noqa: E501
|
|
365
|
-
|
|
366
|
-
collection_formats = {}
|
|
367
|
-
|
|
368
|
-
path_params = {}
|
|
369
|
-
if 'event_id' in params:
|
|
370
|
-
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
371
|
-
|
|
372
|
-
query_params = []
|
|
373
|
-
|
|
374
|
-
header_params = {}
|
|
375
|
-
|
|
376
|
-
form_params = []
|
|
377
|
-
local_var_files = {}
|
|
378
|
-
|
|
379
|
-
body_params = None
|
|
380
|
-
# HTTP header `Accept`
|
|
381
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
382
|
-
['application/json', 'text/json']) # noqa: E501
|
|
383
|
-
|
|
384
|
-
# Authentication setting
|
|
385
|
-
auth_settings = [] # noqa: E501
|
|
386
|
-
|
|
387
|
-
return self.api_client.call_api(
|
|
388
|
-
'/teamdbapi/v2.0/event/{eventId}', 'GET',
|
|
389
|
-
path_params,
|
|
390
|
-
query_params,
|
|
391
|
-
header_params,
|
|
392
|
-
body=body_params,
|
|
393
|
-
post_params=form_params,
|
|
394
|
-
files=local_var_files,
|
|
395
|
-
response_type='Event', # noqa: E501
|
|
396
|
-
auth_settings=auth_settings,
|
|
397
|
-
async_req=params.get('async_req'),
|
|
398
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
399
|
-
_preload_content=params.get('_preload_content', True),
|
|
400
|
-
_request_timeout=params.get('_request_timeout'),
|
|
401
|
-
collection_formats=collection_formats)
|
|
402
|
-
|
|
403
|
-
def get_events(self, **kwargs): # noqa: E501
|
|
404
|
-
"""Get the list of all events # noqa: E501
|
|
405
|
-
|
|
406
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
407
|
-
asynchronous HTTP request, please pass async_req=True
|
|
408
|
-
>>> thread = api.get_events(async_req=True)
|
|
409
|
-
>>> result = thread.get()
|
|
410
|
-
|
|
411
|
-
:param async_req bool
|
|
412
|
-
:return: list[CoupleGuidText]
|
|
413
|
-
If the method is called asynchronously,
|
|
414
|
-
returns the request thread.
|
|
415
|
-
"""
|
|
416
|
-
kwargs['_return_http_data_only'] = True
|
|
417
|
-
if kwargs.get('async_req'):
|
|
418
|
-
return self.get_events_with_http_info(**kwargs) # noqa: E501
|
|
419
|
-
else:
|
|
420
|
-
(data) = self.get_events_with_http_info(**kwargs) # noqa: E501
|
|
421
|
-
return data
|
|
422
|
-
|
|
423
|
-
def get_events_with_http_info(self, **kwargs): # noqa: E501
|
|
424
|
-
"""Get the list of all events # noqa: E501
|
|
425
|
-
|
|
426
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
427
|
-
asynchronous HTTP request, please pass async_req=True
|
|
428
|
-
>>> thread = api.get_events_with_http_info(async_req=True)
|
|
429
|
-
>>> result = thread.get()
|
|
430
|
-
|
|
431
|
-
:param async_req bool
|
|
432
|
-
:return: list[CoupleGuidText]
|
|
433
|
-
If the method is called asynchronously,
|
|
434
|
-
returns the request thread.
|
|
435
|
-
"""
|
|
436
|
-
|
|
437
|
-
all_params = [] # noqa: E501
|
|
438
|
-
all_params.append('async_req')
|
|
439
|
-
all_params.append('_return_http_data_only')
|
|
440
|
-
all_params.append('_preload_content')
|
|
441
|
-
all_params.append('_request_timeout')
|
|
442
|
-
|
|
443
|
-
params = locals()
|
|
444
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
445
|
-
if key not in all_params:
|
|
446
|
-
raise TypeError(
|
|
447
|
-
"Got an unexpected keyword argument '%s'"
|
|
448
|
-
" to method get_events" % key
|
|
449
|
-
)
|
|
450
|
-
params[key] = val
|
|
451
|
-
del params['kwargs']
|
|
452
|
-
|
|
453
|
-
collection_formats = {}
|
|
454
|
-
|
|
455
|
-
path_params = {}
|
|
456
|
-
|
|
457
|
-
query_params = []
|
|
458
|
-
|
|
459
|
-
header_params = {}
|
|
460
|
-
|
|
461
|
-
form_params = []
|
|
462
|
-
local_var_files = {}
|
|
463
|
-
|
|
464
|
-
body_params = None
|
|
465
|
-
# HTTP header `Accept`
|
|
466
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
467
|
-
['application/json', 'text/json']) # noqa: E501
|
|
468
|
-
|
|
469
|
-
# Authentication setting
|
|
470
|
-
auth_settings = [] # noqa: E501
|
|
471
|
-
|
|
472
|
-
return self.api_client.call_api(
|
|
473
|
-
'/teamdbapi/v2.0/events', 'GET',
|
|
474
|
-
path_params,
|
|
475
|
-
query_params,
|
|
476
|
-
header_params,
|
|
477
|
-
body=body_params,
|
|
478
|
-
post_params=form_params,
|
|
479
|
-
files=local_var_files,
|
|
480
|
-
response_type='list[CoupleGuidText]', # noqa: E501
|
|
481
|
-
auth_settings=auth_settings,
|
|
482
|
-
async_req=params.get('async_req'),
|
|
483
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
484
|
-
_preload_content=params.get('_preload_content', True),
|
|
485
|
-
_request_timeout=params.get('_request_timeout'),
|
|
486
|
-
collection_formats=collection_formats)
|
|
487
|
-
|
|
488
|
-
def load_all_data_event(self, event_id, **kwargs): # noqa: E501
|
|
489
|
-
"""[Command] Load all data (cars, sessions, runs, laps) for an event # noqa: E501
|
|
490
|
-
|
|
491
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
492
|
-
asynchronous HTTP request, please pass async_req=True
|
|
493
|
-
>>> thread = api.load_all_data_event(event_id, async_req=True)
|
|
494
|
-
>>> result = thread.get()
|
|
495
|
-
|
|
496
|
-
:param async_req bool
|
|
497
|
-
:param str event_id: The event id for which you want to load data. (required)
|
|
498
|
-
:param bool reset_cache: Set to \"true\" to reset the cache and force to reload all data.
|
|
499
|
-
:return: bool
|
|
500
|
-
If the method is called asynchronously,
|
|
501
|
-
returns the request thread.
|
|
502
|
-
"""
|
|
503
|
-
kwargs['_return_http_data_only'] = True
|
|
504
|
-
if kwargs.get('async_req'):
|
|
505
|
-
return self.load_all_data_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
506
|
-
else:
|
|
507
|
-
(data) = self.load_all_data_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
508
|
-
return data
|
|
509
|
-
|
|
510
|
-
def load_all_data_event_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
511
|
-
"""[Command] Load all data (cars, sessions, runs, laps) for an event # noqa: E501
|
|
512
|
-
|
|
513
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
514
|
-
asynchronous HTTP request, please pass async_req=True
|
|
515
|
-
>>> thread = api.load_all_data_event_with_http_info(event_id, async_req=True)
|
|
516
|
-
>>> result = thread.get()
|
|
517
|
-
|
|
518
|
-
:param async_req bool
|
|
519
|
-
:param str event_id: The event id for which you want to load data. (required)
|
|
520
|
-
:param bool reset_cache: Set to \"true\" to reset the cache and force to reload all data.
|
|
521
|
-
:return: bool
|
|
522
|
-
If the method is called asynchronously,
|
|
523
|
-
returns the request thread.
|
|
524
|
-
"""
|
|
525
|
-
|
|
526
|
-
all_params = ['event_id', 'reset_cache'] # noqa: E501
|
|
527
|
-
all_params.append('async_req')
|
|
528
|
-
all_params.append('_return_http_data_only')
|
|
529
|
-
all_params.append('_preload_content')
|
|
530
|
-
all_params.append('_request_timeout')
|
|
531
|
-
|
|
532
|
-
params = locals()
|
|
533
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
534
|
-
if key not in all_params:
|
|
535
|
-
raise TypeError(
|
|
536
|
-
"Got an unexpected keyword argument '%s'"
|
|
537
|
-
" to method load_all_data_event" % key
|
|
538
|
-
)
|
|
539
|
-
params[key] = val
|
|
540
|
-
del params['kwargs']
|
|
541
|
-
# verify the required parameter 'event_id' is set
|
|
542
|
-
if ('event_id' not in params or
|
|
543
|
-
params['event_id'] is None):
|
|
544
|
-
raise ValueError("Missing the required parameter `event_id` when calling `load_all_data_event`") # noqa: E501
|
|
545
|
-
|
|
546
|
-
collection_formats = {}
|
|
547
|
-
|
|
548
|
-
path_params = {}
|
|
549
|
-
if 'event_id' in params:
|
|
550
|
-
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
551
|
-
|
|
552
|
-
query_params = []
|
|
553
|
-
if 'reset_cache' in params:
|
|
554
|
-
query_params.append(('resetCache', params['reset_cache'])) # noqa: E501
|
|
555
|
-
|
|
556
|
-
header_params = {}
|
|
557
|
-
|
|
558
|
-
form_params = []
|
|
559
|
-
local_var_files = {}
|
|
560
|
-
|
|
561
|
-
body_params = None
|
|
562
|
-
# HTTP header `Accept`
|
|
563
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
564
|
-
['application/json', 'text/json']) # noqa: E501
|
|
565
|
-
|
|
566
|
-
# Authentication setting
|
|
567
|
-
auth_settings = [] # noqa: E501
|
|
568
|
-
|
|
569
|
-
return self.api_client.call_api(
|
|
570
|
-
'/teamdbapi/v2.0/event/{eventId}/loadalldata', 'POST',
|
|
571
|
-
path_params,
|
|
572
|
-
query_params,
|
|
573
|
-
header_params,
|
|
574
|
-
body=body_params,
|
|
575
|
-
post_params=form_params,
|
|
576
|
-
files=local_var_files,
|
|
577
|
-
response_type='bool', # noqa: E501
|
|
578
|
-
auth_settings=auth_settings,
|
|
579
|
-
async_req=params.get('async_req'),
|
|
580
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
581
|
-
_preload_content=params.get('_preload_content', True),
|
|
582
|
-
_request_timeout=params.get('_request_timeout'),
|
|
583
|
-
collection_formats=collection_formats)
|
|
584
|
-
|
|
585
|
-
def lock_event(self, event_id, **kwargs): # noqa: E501
|
|
586
|
-
"""[Command] Lock an event # noqa: E501
|
|
587
|
-
|
|
588
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
589
|
-
asynchronous HTTP request, please pass async_req=True
|
|
590
|
-
>>> thread = api.lock_event(event_id, async_req=True)
|
|
591
|
-
>>> result = thread.get()
|
|
592
|
-
|
|
593
|
-
:param async_req bool
|
|
594
|
-
:param str event_id: The unique event id for which you want to lock the event (required)
|
|
595
|
-
:param bool force_on_my_server: If true force the lock on your server even if it exists a lock on another server. If you force the lock on this server, this may cause conflicts durring the next replication of the databases and corrupt them.
|
|
596
|
-
:return: Event
|
|
597
|
-
If the method is called asynchronously,
|
|
598
|
-
returns the request thread.
|
|
599
|
-
"""
|
|
600
|
-
kwargs['_return_http_data_only'] = True
|
|
601
|
-
if kwargs.get('async_req'):
|
|
602
|
-
return self.lock_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
603
|
-
else:
|
|
604
|
-
(data) = self.lock_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
605
|
-
return data
|
|
606
|
-
|
|
607
|
-
def lock_event_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
608
|
-
"""[Command] Lock an event # noqa: E501
|
|
609
|
-
|
|
610
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
611
|
-
asynchronous HTTP request, please pass async_req=True
|
|
612
|
-
>>> thread = api.lock_event_with_http_info(event_id, async_req=True)
|
|
613
|
-
>>> result = thread.get()
|
|
614
|
-
|
|
615
|
-
:param async_req bool
|
|
616
|
-
:param str event_id: The unique event id for which you want to lock the event (required)
|
|
617
|
-
:param bool force_on_my_server: If true force the lock on your server even if it exists a lock on another server. If you force the lock on this server, this may cause conflicts durring the next replication of the databases and corrupt them.
|
|
618
|
-
:return: Event
|
|
619
|
-
If the method is called asynchronously,
|
|
620
|
-
returns the request thread.
|
|
621
|
-
"""
|
|
622
|
-
|
|
623
|
-
all_params = ['event_id', 'force_on_my_server'] # noqa: E501
|
|
624
|
-
all_params.append('async_req')
|
|
625
|
-
all_params.append('_return_http_data_only')
|
|
626
|
-
all_params.append('_preload_content')
|
|
627
|
-
all_params.append('_request_timeout')
|
|
628
|
-
|
|
629
|
-
params = locals()
|
|
630
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
631
|
-
if key not in all_params:
|
|
632
|
-
raise TypeError(
|
|
633
|
-
"Got an unexpected keyword argument '%s'"
|
|
634
|
-
" to method lock_event" % key
|
|
635
|
-
)
|
|
636
|
-
params[key] = val
|
|
637
|
-
del params['kwargs']
|
|
638
|
-
# verify the required parameter 'event_id' is set
|
|
639
|
-
if ('event_id' not in params or
|
|
640
|
-
params['event_id'] is None):
|
|
641
|
-
raise ValueError("Missing the required parameter `event_id` when calling `lock_event`") # noqa: E501
|
|
642
|
-
|
|
643
|
-
collection_formats = {}
|
|
644
|
-
|
|
645
|
-
path_params = {}
|
|
646
|
-
if 'event_id' in params:
|
|
647
|
-
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
648
|
-
|
|
649
|
-
query_params = []
|
|
650
|
-
if 'force_on_my_server' in params:
|
|
651
|
-
query_params.append(('forceOnMyServer', params['force_on_my_server'])) # noqa: E501
|
|
652
|
-
|
|
653
|
-
header_params = {}
|
|
654
|
-
|
|
655
|
-
form_params = []
|
|
656
|
-
local_var_files = {}
|
|
657
|
-
|
|
658
|
-
body_params = None
|
|
659
|
-
# HTTP header `Accept`
|
|
660
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
661
|
-
['application/json', 'text/json']) # noqa: E501
|
|
662
|
-
|
|
663
|
-
# Authentication setting
|
|
664
|
-
auth_settings = [] # noqa: E501
|
|
665
|
-
|
|
666
|
-
return self.api_client.call_api(
|
|
667
|
-
'/teamdbapi/v2.0/event/{eventId}/lock', 'POST',
|
|
668
|
-
path_params,
|
|
669
|
-
query_params,
|
|
670
|
-
header_params,
|
|
671
|
-
body=body_params,
|
|
672
|
-
post_params=form_params,
|
|
673
|
-
files=local_var_files,
|
|
674
|
-
response_type='Event', # noqa: E501
|
|
675
|
-
auth_settings=auth_settings,
|
|
676
|
-
async_req=params.get('async_req'),
|
|
677
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
678
|
-
_preload_content=params.get('_preload_content', True),
|
|
679
|
-
_request_timeout=params.get('_request_timeout'),
|
|
680
|
-
collection_formats=collection_formats)
|
|
681
|
-
|
|
682
|
-
def release_event(self, event_id, **kwargs): # noqa: E501
|
|
683
|
-
"""[Command] Release an event # noqa: E501
|
|
684
|
-
|
|
685
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
686
|
-
asynchronous HTTP request, please pass async_req=True
|
|
687
|
-
>>> thread = api.release_event(event_id, async_req=True)
|
|
688
|
-
>>> result = thread.get()
|
|
689
|
-
|
|
690
|
-
:param async_req bool
|
|
691
|
-
:param str event_id: The unique event id for which you want to release the event (required)
|
|
692
|
-
:return: Event
|
|
693
|
-
If the method is called asynchronously,
|
|
694
|
-
returns the request thread.
|
|
695
|
-
"""
|
|
696
|
-
kwargs['_return_http_data_only'] = True
|
|
697
|
-
if kwargs.get('async_req'):
|
|
698
|
-
return self.release_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
699
|
-
else:
|
|
700
|
-
(data) = self.release_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
701
|
-
return data
|
|
702
|
-
|
|
703
|
-
def release_event_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
704
|
-
"""[Command] Release an event # noqa: E501
|
|
705
|
-
|
|
706
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
707
|
-
asynchronous HTTP request, please pass async_req=True
|
|
708
|
-
>>> thread = api.release_event_with_http_info(event_id, async_req=True)
|
|
709
|
-
>>> result = thread.get()
|
|
710
|
-
|
|
711
|
-
:param async_req bool
|
|
712
|
-
:param str event_id: The unique event id for which you want to release the event (required)
|
|
713
|
-
:return: Event
|
|
714
|
-
If the method is called asynchronously,
|
|
715
|
-
returns the request thread.
|
|
716
|
-
"""
|
|
717
|
-
|
|
718
|
-
all_params = ['event_id'] # noqa: E501
|
|
719
|
-
all_params.append('async_req')
|
|
720
|
-
all_params.append('_return_http_data_only')
|
|
721
|
-
all_params.append('_preload_content')
|
|
722
|
-
all_params.append('_request_timeout')
|
|
723
|
-
|
|
724
|
-
params = locals()
|
|
725
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
726
|
-
if key not in all_params:
|
|
727
|
-
raise TypeError(
|
|
728
|
-
"Got an unexpected keyword argument '%s'"
|
|
729
|
-
" to method release_event" % key
|
|
730
|
-
)
|
|
731
|
-
params[key] = val
|
|
732
|
-
del params['kwargs']
|
|
733
|
-
# verify the required parameter 'event_id' is set
|
|
734
|
-
if ('event_id' not in params or
|
|
735
|
-
params['event_id'] is None):
|
|
736
|
-
raise ValueError("Missing the required parameter `event_id` when calling `release_event`") # noqa: E501
|
|
737
|
-
|
|
738
|
-
collection_formats = {}
|
|
739
|
-
|
|
740
|
-
path_params = {}
|
|
741
|
-
if 'event_id' in params:
|
|
742
|
-
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
743
|
-
|
|
744
|
-
query_params = []
|
|
745
|
-
|
|
746
|
-
header_params = {}
|
|
747
|
-
|
|
748
|
-
form_params = []
|
|
749
|
-
local_var_files = {}
|
|
750
|
-
|
|
751
|
-
body_params = None
|
|
752
|
-
# HTTP header `Accept`
|
|
753
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
754
|
-
['application/json', 'text/json']) # noqa: E501
|
|
755
|
-
|
|
756
|
-
# Authentication setting
|
|
757
|
-
auth_settings = [] # noqa: E501
|
|
758
|
-
|
|
759
|
-
return self.api_client.call_api(
|
|
760
|
-
'/teamdbapi/v2.0/event/{eventId}/release', 'POST',
|
|
761
|
-
path_params,
|
|
762
|
-
query_params,
|
|
763
|
-
header_params,
|
|
764
|
-
body=body_params,
|
|
765
|
-
post_params=form_params,
|
|
766
|
-
files=local_var_files,
|
|
767
|
-
response_type='Event', # noqa: E501
|
|
768
|
-
auth_settings=auth_settings,
|
|
769
|
-
async_req=params.get('async_req'),
|
|
770
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
771
|
-
_preload_content=params.get('_preload_content', True),
|
|
772
|
-
_request_timeout=params.get('_request_timeout'),
|
|
773
|
-
collection_formats=collection_formats)
|
|
774
|
-
|
|
775
|
-
def update_event(self, body, event_id, **kwargs): # noqa: E501
|
|
776
|
-
"""Update an existing event # noqa: E501
|
|
777
|
-
|
|
778
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
779
|
-
asynchronous HTTP request, please pass async_req=True
|
|
780
|
-
>>> thread = api.update_event(body, event_id, async_req=True)
|
|
781
|
-
>>> result = thread.get()
|
|
782
|
-
|
|
783
|
-
:param async_req bool
|
|
784
|
-
:param Event body: The event to update. (required)
|
|
785
|
-
:param str event_id: The unique event id for which you want to update the event (required)
|
|
786
|
-
:return: Event
|
|
787
|
-
If the method is called asynchronously,
|
|
788
|
-
returns the request thread.
|
|
789
|
-
"""
|
|
790
|
-
kwargs['_return_http_data_only'] = True
|
|
791
|
-
if kwargs.get('async_req'):
|
|
792
|
-
return self.update_event_with_http_info(body, event_id, **kwargs) # noqa: E501
|
|
793
|
-
else:
|
|
794
|
-
(data) = self.update_event_with_http_info(body, event_id, **kwargs) # noqa: E501
|
|
795
|
-
return data
|
|
796
|
-
|
|
797
|
-
def update_event_with_http_info(self, body, event_id, **kwargs): # noqa: E501
|
|
798
|
-
"""Update an existing event # noqa: E501
|
|
799
|
-
|
|
800
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
801
|
-
asynchronous HTTP request, please pass async_req=True
|
|
802
|
-
>>> thread = api.update_event_with_http_info(body, event_id, async_req=True)
|
|
803
|
-
>>> result = thread.get()
|
|
804
|
-
|
|
805
|
-
:param async_req bool
|
|
806
|
-
:param Event body: The event to update. (required)
|
|
807
|
-
:param str event_id: The unique event id for which you want to update the event (required)
|
|
808
|
-
:return: Event
|
|
809
|
-
If the method is called asynchronously,
|
|
810
|
-
returns the request thread.
|
|
811
|
-
"""
|
|
812
|
-
|
|
813
|
-
all_params = ['body', 'event_id'] # noqa: E501
|
|
814
|
-
all_params.append('async_req')
|
|
815
|
-
all_params.append('_return_http_data_only')
|
|
816
|
-
all_params.append('_preload_content')
|
|
817
|
-
all_params.append('_request_timeout')
|
|
818
|
-
|
|
819
|
-
params = locals()
|
|
820
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
821
|
-
if key not in all_params:
|
|
822
|
-
raise TypeError(
|
|
823
|
-
"Got an unexpected keyword argument '%s'"
|
|
824
|
-
" to method update_event" % key
|
|
825
|
-
)
|
|
826
|
-
params[key] = val
|
|
827
|
-
del params['kwargs']
|
|
828
|
-
# verify the required parameter 'body' is set
|
|
829
|
-
if ('body' not in params or
|
|
830
|
-
params['body'] is None):
|
|
831
|
-
raise ValueError("Missing the required parameter `body` when calling `update_event`") # noqa: E501
|
|
832
|
-
# verify the required parameter 'event_id' is set
|
|
833
|
-
if ('event_id' not in params or
|
|
834
|
-
params['event_id'] is None):
|
|
835
|
-
raise ValueError("Missing the required parameter `event_id` when calling `update_event`") # noqa: E501
|
|
836
|
-
|
|
837
|
-
collection_formats = {}
|
|
838
|
-
|
|
839
|
-
path_params = {}
|
|
840
|
-
if 'event_id' in params:
|
|
841
|
-
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
842
|
-
|
|
843
|
-
query_params = []
|
|
844
|
-
|
|
845
|
-
header_params = {}
|
|
846
|
-
|
|
847
|
-
form_params = []
|
|
848
|
-
local_var_files = {}
|
|
849
|
-
|
|
850
|
-
body_params = None
|
|
851
|
-
if 'body' in params:
|
|
852
|
-
body_params = params['body']
|
|
853
|
-
# HTTP header `Accept`
|
|
854
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
855
|
-
['application/json', 'text/json']) # noqa: E501
|
|
856
|
-
|
|
857
|
-
# HTTP header `Content-Type`
|
|
858
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
859
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
860
|
-
|
|
861
|
-
# Authentication setting
|
|
862
|
-
auth_settings = [] # noqa: E501
|
|
863
|
-
|
|
864
|
-
return self.api_client.call_api(
|
|
865
|
-
'/teamdbapi/v2.0/event/{eventId}', 'PUT',
|
|
866
|
-
path_params,
|
|
867
|
-
query_params,
|
|
868
|
-
header_params,
|
|
869
|
-
body=body_params,
|
|
870
|
-
post_params=form_params,
|
|
871
|
-
files=local_var_files,
|
|
872
|
-
response_type='Event', # noqa: E501
|
|
873
|
-
auth_settings=auth_settings,
|
|
874
|
-
async_req=params.get('async_req'),
|
|
875
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
876
|
-
_preload_content=params.get('_preload_content', True),
|
|
877
|
-
_request_timeout=params.get('_request_timeout'),
|
|
878
|
-
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 EventApi(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_event(self, body, **kwargs): # noqa: E501
|
|
36
|
+
"""Create a new event # 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_event(body, async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:param Event body: The event to create. (required)
|
|
45
|
+
:return: Event
|
|
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_event_with_http_info(body, **kwargs) # noqa: E501
|
|
52
|
+
else:
|
|
53
|
+
(data) = self.create_event_with_http_info(body, **kwargs) # noqa: E501
|
|
54
|
+
return data
|
|
55
|
+
|
|
56
|
+
def create_event_with_http_info(self, body, **kwargs): # noqa: E501
|
|
57
|
+
"""Create a new event # 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_event_with_http_info(body, async_req=True)
|
|
62
|
+
>>> result = thread.get()
|
|
63
|
+
|
|
64
|
+
:param async_req bool
|
|
65
|
+
:param Event body: The event to create. (required)
|
|
66
|
+
:return: Event
|
|
67
|
+
If the method is called asynchronously,
|
|
68
|
+
returns the request thread.
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
all_params = ['body'] # noqa: E501
|
|
72
|
+
all_params.append('async_req')
|
|
73
|
+
all_params.append('_return_http_data_only')
|
|
74
|
+
all_params.append('_preload_content')
|
|
75
|
+
all_params.append('_request_timeout')
|
|
76
|
+
|
|
77
|
+
params = locals()
|
|
78
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
79
|
+
if key not in all_params:
|
|
80
|
+
raise TypeError(
|
|
81
|
+
"Got an unexpected keyword argument '%s'"
|
|
82
|
+
" to method create_event" % key
|
|
83
|
+
)
|
|
84
|
+
params[key] = val
|
|
85
|
+
del params['kwargs']
|
|
86
|
+
# verify the required parameter 'body' is set
|
|
87
|
+
if ('body' not in params or
|
|
88
|
+
params['body'] is None):
|
|
89
|
+
raise ValueError("Missing the required parameter `body` when calling `create_event`") # noqa: E501
|
|
90
|
+
|
|
91
|
+
collection_formats = {}
|
|
92
|
+
|
|
93
|
+
path_params = {}
|
|
94
|
+
|
|
95
|
+
query_params = []
|
|
96
|
+
|
|
97
|
+
header_params = {}
|
|
98
|
+
|
|
99
|
+
form_params = []
|
|
100
|
+
local_var_files = {}
|
|
101
|
+
|
|
102
|
+
body_params = None
|
|
103
|
+
if 'body' in params:
|
|
104
|
+
body_params = params['body']
|
|
105
|
+
# HTTP header `Accept`
|
|
106
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
107
|
+
['application/json', 'text/json']) # noqa: E501
|
|
108
|
+
|
|
109
|
+
# HTTP header `Content-Type`
|
|
110
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
111
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
112
|
+
|
|
113
|
+
# Authentication setting
|
|
114
|
+
auth_settings = [] # noqa: E501
|
|
115
|
+
|
|
116
|
+
return self.api_client.call_api(
|
|
117
|
+
'/teamdbapi/v2.0/event', 'POST',
|
|
118
|
+
path_params,
|
|
119
|
+
query_params,
|
|
120
|
+
header_params,
|
|
121
|
+
body=body_params,
|
|
122
|
+
post_params=form_params,
|
|
123
|
+
files=local_var_files,
|
|
124
|
+
response_type='Event', # noqa: E501
|
|
125
|
+
auth_settings=auth_settings,
|
|
126
|
+
async_req=params.get('async_req'),
|
|
127
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
128
|
+
_preload_content=params.get('_preload_content', True),
|
|
129
|
+
_request_timeout=params.get('_request_timeout'),
|
|
130
|
+
collection_formats=collection_formats)
|
|
131
|
+
|
|
132
|
+
def delete_event(self, event_id, **kwargs): # noqa: E501
|
|
133
|
+
"""Delete an existing event # noqa: E501
|
|
134
|
+
|
|
135
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
136
|
+
asynchronous HTTP request, please pass async_req=True
|
|
137
|
+
>>> thread = api.delete_event(event_id, async_req=True)
|
|
138
|
+
>>> result = thread.get()
|
|
139
|
+
|
|
140
|
+
:param async_req bool
|
|
141
|
+
:param str event_id: The unique event id for which you want to delete the event (required)
|
|
142
|
+
:return: None
|
|
143
|
+
If the method is called asynchronously,
|
|
144
|
+
returns the request thread.
|
|
145
|
+
"""
|
|
146
|
+
kwargs['_return_http_data_only'] = True
|
|
147
|
+
if kwargs.get('async_req'):
|
|
148
|
+
return self.delete_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
149
|
+
else:
|
|
150
|
+
(data) = self.delete_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
151
|
+
return data
|
|
152
|
+
|
|
153
|
+
def delete_event_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
154
|
+
"""Delete an existing event # noqa: E501
|
|
155
|
+
|
|
156
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
157
|
+
asynchronous HTTP request, please pass async_req=True
|
|
158
|
+
>>> thread = api.delete_event_with_http_info(event_id, async_req=True)
|
|
159
|
+
>>> result = thread.get()
|
|
160
|
+
|
|
161
|
+
:param async_req bool
|
|
162
|
+
:param str event_id: The unique event id for which you want to delete the event (required)
|
|
163
|
+
:return: None
|
|
164
|
+
If the method is called asynchronously,
|
|
165
|
+
returns the request thread.
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
all_params = ['event_id'] # noqa: E501
|
|
169
|
+
all_params.append('async_req')
|
|
170
|
+
all_params.append('_return_http_data_only')
|
|
171
|
+
all_params.append('_preload_content')
|
|
172
|
+
all_params.append('_request_timeout')
|
|
173
|
+
|
|
174
|
+
params = locals()
|
|
175
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
176
|
+
if key not in all_params:
|
|
177
|
+
raise TypeError(
|
|
178
|
+
"Got an unexpected keyword argument '%s'"
|
|
179
|
+
" to method delete_event" % key
|
|
180
|
+
)
|
|
181
|
+
params[key] = val
|
|
182
|
+
del params['kwargs']
|
|
183
|
+
# verify the required parameter 'event_id' is set
|
|
184
|
+
if ('event_id' not in params or
|
|
185
|
+
params['event_id'] is None):
|
|
186
|
+
raise ValueError("Missing the required parameter `event_id` when calling `delete_event`") # noqa: E501
|
|
187
|
+
|
|
188
|
+
collection_formats = {}
|
|
189
|
+
|
|
190
|
+
path_params = {}
|
|
191
|
+
if 'event_id' in params:
|
|
192
|
+
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
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/event/{eventId}', 'DELETE',
|
|
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=None, # 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_event(self, **kwargs): # noqa: E501
|
|
226
|
+
"""Get the current event. # 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_event(async_req=True)
|
|
231
|
+
>>> result = thread.get()
|
|
232
|
+
|
|
233
|
+
:param async_req bool
|
|
234
|
+
:return: Event
|
|
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_event_with_http_info(**kwargs) # noqa: E501
|
|
241
|
+
else:
|
|
242
|
+
(data) = self.get_current_event_with_http_info(**kwargs) # noqa: E501
|
|
243
|
+
return data
|
|
244
|
+
|
|
245
|
+
def get_current_event_with_http_info(self, **kwargs): # noqa: E501
|
|
246
|
+
"""Get the current event. # 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_event_with_http_info(async_req=True)
|
|
251
|
+
>>> result = thread.get()
|
|
252
|
+
|
|
253
|
+
:param async_req bool
|
|
254
|
+
:return: Event
|
|
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_event" % 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/event/current', '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='Event', # 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 get_event(self, event_id, **kwargs): # noqa: E501
|
|
311
|
+
"""Get an event via a unique id. # 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.get_event(event_id, async_req=True)
|
|
316
|
+
>>> result = thread.get()
|
|
317
|
+
|
|
318
|
+
:param async_req bool
|
|
319
|
+
:param str event_id: The unique event id for which you want to get the event (required)
|
|
320
|
+
:return: Event
|
|
321
|
+
If the method is called asynchronously,
|
|
322
|
+
returns the request thread.
|
|
323
|
+
"""
|
|
324
|
+
kwargs['_return_http_data_only'] = True
|
|
325
|
+
if kwargs.get('async_req'):
|
|
326
|
+
return self.get_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
327
|
+
else:
|
|
328
|
+
(data) = self.get_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
329
|
+
return data
|
|
330
|
+
|
|
331
|
+
def get_event_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
332
|
+
"""Get an event via a unique id. # noqa: E501
|
|
333
|
+
|
|
334
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
335
|
+
asynchronous HTTP request, please pass async_req=True
|
|
336
|
+
>>> thread = api.get_event_with_http_info(event_id, async_req=True)
|
|
337
|
+
>>> result = thread.get()
|
|
338
|
+
|
|
339
|
+
:param async_req bool
|
|
340
|
+
:param str event_id: The unique event id for which you want to get the event (required)
|
|
341
|
+
:return: Event
|
|
342
|
+
If the method is called asynchronously,
|
|
343
|
+
returns the request thread.
|
|
344
|
+
"""
|
|
345
|
+
|
|
346
|
+
all_params = ['event_id'] # noqa: E501
|
|
347
|
+
all_params.append('async_req')
|
|
348
|
+
all_params.append('_return_http_data_only')
|
|
349
|
+
all_params.append('_preload_content')
|
|
350
|
+
all_params.append('_request_timeout')
|
|
351
|
+
|
|
352
|
+
params = locals()
|
|
353
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
354
|
+
if key not in all_params:
|
|
355
|
+
raise TypeError(
|
|
356
|
+
"Got an unexpected keyword argument '%s'"
|
|
357
|
+
" to method get_event" % key
|
|
358
|
+
)
|
|
359
|
+
params[key] = val
|
|
360
|
+
del params['kwargs']
|
|
361
|
+
# verify the required parameter 'event_id' is set
|
|
362
|
+
if ('event_id' not in params or
|
|
363
|
+
params['event_id'] is None):
|
|
364
|
+
raise ValueError("Missing the required parameter `event_id` when calling `get_event`") # noqa: E501
|
|
365
|
+
|
|
366
|
+
collection_formats = {}
|
|
367
|
+
|
|
368
|
+
path_params = {}
|
|
369
|
+
if 'event_id' in params:
|
|
370
|
+
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
371
|
+
|
|
372
|
+
query_params = []
|
|
373
|
+
|
|
374
|
+
header_params = {}
|
|
375
|
+
|
|
376
|
+
form_params = []
|
|
377
|
+
local_var_files = {}
|
|
378
|
+
|
|
379
|
+
body_params = None
|
|
380
|
+
# HTTP header `Accept`
|
|
381
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
382
|
+
['application/json', 'text/json']) # noqa: E501
|
|
383
|
+
|
|
384
|
+
# Authentication setting
|
|
385
|
+
auth_settings = [] # noqa: E501
|
|
386
|
+
|
|
387
|
+
return self.api_client.call_api(
|
|
388
|
+
'/teamdbapi/v2.0/event/{eventId}', 'GET',
|
|
389
|
+
path_params,
|
|
390
|
+
query_params,
|
|
391
|
+
header_params,
|
|
392
|
+
body=body_params,
|
|
393
|
+
post_params=form_params,
|
|
394
|
+
files=local_var_files,
|
|
395
|
+
response_type='Event', # noqa: E501
|
|
396
|
+
auth_settings=auth_settings,
|
|
397
|
+
async_req=params.get('async_req'),
|
|
398
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
399
|
+
_preload_content=params.get('_preload_content', True),
|
|
400
|
+
_request_timeout=params.get('_request_timeout'),
|
|
401
|
+
collection_formats=collection_formats)
|
|
402
|
+
|
|
403
|
+
def get_events(self, **kwargs): # noqa: E501
|
|
404
|
+
"""Get the list of all events # noqa: E501
|
|
405
|
+
|
|
406
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
407
|
+
asynchronous HTTP request, please pass async_req=True
|
|
408
|
+
>>> thread = api.get_events(async_req=True)
|
|
409
|
+
>>> result = thread.get()
|
|
410
|
+
|
|
411
|
+
:param async_req bool
|
|
412
|
+
:return: list[CoupleGuidText]
|
|
413
|
+
If the method is called asynchronously,
|
|
414
|
+
returns the request thread.
|
|
415
|
+
"""
|
|
416
|
+
kwargs['_return_http_data_only'] = True
|
|
417
|
+
if kwargs.get('async_req'):
|
|
418
|
+
return self.get_events_with_http_info(**kwargs) # noqa: E501
|
|
419
|
+
else:
|
|
420
|
+
(data) = self.get_events_with_http_info(**kwargs) # noqa: E501
|
|
421
|
+
return data
|
|
422
|
+
|
|
423
|
+
def get_events_with_http_info(self, **kwargs): # noqa: E501
|
|
424
|
+
"""Get the list of all events # noqa: E501
|
|
425
|
+
|
|
426
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
427
|
+
asynchronous HTTP request, please pass async_req=True
|
|
428
|
+
>>> thread = api.get_events_with_http_info(async_req=True)
|
|
429
|
+
>>> result = thread.get()
|
|
430
|
+
|
|
431
|
+
:param async_req bool
|
|
432
|
+
:return: list[CoupleGuidText]
|
|
433
|
+
If the method is called asynchronously,
|
|
434
|
+
returns the request thread.
|
|
435
|
+
"""
|
|
436
|
+
|
|
437
|
+
all_params = [] # noqa: E501
|
|
438
|
+
all_params.append('async_req')
|
|
439
|
+
all_params.append('_return_http_data_only')
|
|
440
|
+
all_params.append('_preload_content')
|
|
441
|
+
all_params.append('_request_timeout')
|
|
442
|
+
|
|
443
|
+
params = locals()
|
|
444
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
445
|
+
if key not in all_params:
|
|
446
|
+
raise TypeError(
|
|
447
|
+
"Got an unexpected keyword argument '%s'"
|
|
448
|
+
" to method get_events" % key
|
|
449
|
+
)
|
|
450
|
+
params[key] = val
|
|
451
|
+
del params['kwargs']
|
|
452
|
+
|
|
453
|
+
collection_formats = {}
|
|
454
|
+
|
|
455
|
+
path_params = {}
|
|
456
|
+
|
|
457
|
+
query_params = []
|
|
458
|
+
|
|
459
|
+
header_params = {}
|
|
460
|
+
|
|
461
|
+
form_params = []
|
|
462
|
+
local_var_files = {}
|
|
463
|
+
|
|
464
|
+
body_params = None
|
|
465
|
+
# HTTP header `Accept`
|
|
466
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
467
|
+
['application/json', 'text/json']) # noqa: E501
|
|
468
|
+
|
|
469
|
+
# Authentication setting
|
|
470
|
+
auth_settings = [] # noqa: E501
|
|
471
|
+
|
|
472
|
+
return self.api_client.call_api(
|
|
473
|
+
'/teamdbapi/v2.0/events', 'GET',
|
|
474
|
+
path_params,
|
|
475
|
+
query_params,
|
|
476
|
+
header_params,
|
|
477
|
+
body=body_params,
|
|
478
|
+
post_params=form_params,
|
|
479
|
+
files=local_var_files,
|
|
480
|
+
response_type='list[CoupleGuidText]', # noqa: E501
|
|
481
|
+
auth_settings=auth_settings,
|
|
482
|
+
async_req=params.get('async_req'),
|
|
483
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
484
|
+
_preload_content=params.get('_preload_content', True),
|
|
485
|
+
_request_timeout=params.get('_request_timeout'),
|
|
486
|
+
collection_formats=collection_formats)
|
|
487
|
+
|
|
488
|
+
def load_all_data_event(self, event_id, **kwargs): # noqa: E501
|
|
489
|
+
"""[Command] Load all data (cars, sessions, runs, laps) for an event # noqa: E501
|
|
490
|
+
|
|
491
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
492
|
+
asynchronous HTTP request, please pass async_req=True
|
|
493
|
+
>>> thread = api.load_all_data_event(event_id, async_req=True)
|
|
494
|
+
>>> result = thread.get()
|
|
495
|
+
|
|
496
|
+
:param async_req bool
|
|
497
|
+
:param str event_id: The event id for which you want to load data. (required)
|
|
498
|
+
:param bool reset_cache: Set to \"true\" to reset the cache and force to reload all data.
|
|
499
|
+
:return: bool
|
|
500
|
+
If the method is called asynchronously,
|
|
501
|
+
returns the request thread.
|
|
502
|
+
"""
|
|
503
|
+
kwargs['_return_http_data_only'] = True
|
|
504
|
+
if kwargs.get('async_req'):
|
|
505
|
+
return self.load_all_data_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
506
|
+
else:
|
|
507
|
+
(data) = self.load_all_data_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
508
|
+
return data
|
|
509
|
+
|
|
510
|
+
def load_all_data_event_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
511
|
+
"""[Command] Load all data (cars, sessions, runs, laps) for an event # noqa: E501
|
|
512
|
+
|
|
513
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
514
|
+
asynchronous HTTP request, please pass async_req=True
|
|
515
|
+
>>> thread = api.load_all_data_event_with_http_info(event_id, async_req=True)
|
|
516
|
+
>>> result = thread.get()
|
|
517
|
+
|
|
518
|
+
:param async_req bool
|
|
519
|
+
:param str event_id: The event id for which you want to load data. (required)
|
|
520
|
+
:param bool reset_cache: Set to \"true\" to reset the cache and force to reload all data.
|
|
521
|
+
:return: bool
|
|
522
|
+
If the method is called asynchronously,
|
|
523
|
+
returns the request thread.
|
|
524
|
+
"""
|
|
525
|
+
|
|
526
|
+
all_params = ['event_id', 'reset_cache'] # noqa: E501
|
|
527
|
+
all_params.append('async_req')
|
|
528
|
+
all_params.append('_return_http_data_only')
|
|
529
|
+
all_params.append('_preload_content')
|
|
530
|
+
all_params.append('_request_timeout')
|
|
531
|
+
|
|
532
|
+
params = locals()
|
|
533
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
534
|
+
if key not in all_params:
|
|
535
|
+
raise TypeError(
|
|
536
|
+
"Got an unexpected keyword argument '%s'"
|
|
537
|
+
" to method load_all_data_event" % key
|
|
538
|
+
)
|
|
539
|
+
params[key] = val
|
|
540
|
+
del params['kwargs']
|
|
541
|
+
# verify the required parameter 'event_id' is set
|
|
542
|
+
if ('event_id' not in params or
|
|
543
|
+
params['event_id'] is None):
|
|
544
|
+
raise ValueError("Missing the required parameter `event_id` when calling `load_all_data_event`") # noqa: E501
|
|
545
|
+
|
|
546
|
+
collection_formats = {}
|
|
547
|
+
|
|
548
|
+
path_params = {}
|
|
549
|
+
if 'event_id' in params:
|
|
550
|
+
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
551
|
+
|
|
552
|
+
query_params = []
|
|
553
|
+
if 'reset_cache' in params:
|
|
554
|
+
query_params.append(('resetCache', params['reset_cache'])) # noqa: E501
|
|
555
|
+
|
|
556
|
+
header_params = {}
|
|
557
|
+
|
|
558
|
+
form_params = []
|
|
559
|
+
local_var_files = {}
|
|
560
|
+
|
|
561
|
+
body_params = None
|
|
562
|
+
# HTTP header `Accept`
|
|
563
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
564
|
+
['application/json', 'text/json']) # noqa: E501
|
|
565
|
+
|
|
566
|
+
# Authentication setting
|
|
567
|
+
auth_settings = [] # noqa: E501
|
|
568
|
+
|
|
569
|
+
return self.api_client.call_api(
|
|
570
|
+
'/teamdbapi/v2.0/event/{eventId}/loadalldata', 'POST',
|
|
571
|
+
path_params,
|
|
572
|
+
query_params,
|
|
573
|
+
header_params,
|
|
574
|
+
body=body_params,
|
|
575
|
+
post_params=form_params,
|
|
576
|
+
files=local_var_files,
|
|
577
|
+
response_type='bool', # noqa: E501
|
|
578
|
+
auth_settings=auth_settings,
|
|
579
|
+
async_req=params.get('async_req'),
|
|
580
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
581
|
+
_preload_content=params.get('_preload_content', True),
|
|
582
|
+
_request_timeout=params.get('_request_timeout'),
|
|
583
|
+
collection_formats=collection_formats)
|
|
584
|
+
|
|
585
|
+
def lock_event(self, event_id, **kwargs): # noqa: E501
|
|
586
|
+
"""[Command] Lock an event # noqa: E501
|
|
587
|
+
|
|
588
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
589
|
+
asynchronous HTTP request, please pass async_req=True
|
|
590
|
+
>>> thread = api.lock_event(event_id, async_req=True)
|
|
591
|
+
>>> result = thread.get()
|
|
592
|
+
|
|
593
|
+
:param async_req bool
|
|
594
|
+
:param str event_id: The unique event id for which you want to lock the event (required)
|
|
595
|
+
:param bool force_on_my_server: If true force the lock on your server even if it exists a lock on another server. If you force the lock on this server, this may cause conflicts durring the next replication of the databases and corrupt them.
|
|
596
|
+
:return: Event
|
|
597
|
+
If the method is called asynchronously,
|
|
598
|
+
returns the request thread.
|
|
599
|
+
"""
|
|
600
|
+
kwargs['_return_http_data_only'] = True
|
|
601
|
+
if kwargs.get('async_req'):
|
|
602
|
+
return self.lock_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
603
|
+
else:
|
|
604
|
+
(data) = self.lock_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
605
|
+
return data
|
|
606
|
+
|
|
607
|
+
def lock_event_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
608
|
+
"""[Command] Lock an event # noqa: E501
|
|
609
|
+
|
|
610
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
611
|
+
asynchronous HTTP request, please pass async_req=True
|
|
612
|
+
>>> thread = api.lock_event_with_http_info(event_id, async_req=True)
|
|
613
|
+
>>> result = thread.get()
|
|
614
|
+
|
|
615
|
+
:param async_req bool
|
|
616
|
+
:param str event_id: The unique event id for which you want to lock the event (required)
|
|
617
|
+
:param bool force_on_my_server: If true force the lock on your server even if it exists a lock on another server. If you force the lock on this server, this may cause conflicts durring the next replication of the databases and corrupt them.
|
|
618
|
+
:return: Event
|
|
619
|
+
If the method is called asynchronously,
|
|
620
|
+
returns the request thread.
|
|
621
|
+
"""
|
|
622
|
+
|
|
623
|
+
all_params = ['event_id', 'force_on_my_server'] # noqa: E501
|
|
624
|
+
all_params.append('async_req')
|
|
625
|
+
all_params.append('_return_http_data_only')
|
|
626
|
+
all_params.append('_preload_content')
|
|
627
|
+
all_params.append('_request_timeout')
|
|
628
|
+
|
|
629
|
+
params = locals()
|
|
630
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
631
|
+
if key not in all_params:
|
|
632
|
+
raise TypeError(
|
|
633
|
+
"Got an unexpected keyword argument '%s'"
|
|
634
|
+
" to method lock_event" % key
|
|
635
|
+
)
|
|
636
|
+
params[key] = val
|
|
637
|
+
del params['kwargs']
|
|
638
|
+
# verify the required parameter 'event_id' is set
|
|
639
|
+
if ('event_id' not in params or
|
|
640
|
+
params['event_id'] is None):
|
|
641
|
+
raise ValueError("Missing the required parameter `event_id` when calling `lock_event`") # noqa: E501
|
|
642
|
+
|
|
643
|
+
collection_formats = {}
|
|
644
|
+
|
|
645
|
+
path_params = {}
|
|
646
|
+
if 'event_id' in params:
|
|
647
|
+
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
648
|
+
|
|
649
|
+
query_params = []
|
|
650
|
+
if 'force_on_my_server' in params:
|
|
651
|
+
query_params.append(('forceOnMyServer', params['force_on_my_server'])) # noqa: E501
|
|
652
|
+
|
|
653
|
+
header_params = {}
|
|
654
|
+
|
|
655
|
+
form_params = []
|
|
656
|
+
local_var_files = {}
|
|
657
|
+
|
|
658
|
+
body_params = None
|
|
659
|
+
# HTTP header `Accept`
|
|
660
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
661
|
+
['application/json', 'text/json']) # noqa: E501
|
|
662
|
+
|
|
663
|
+
# Authentication setting
|
|
664
|
+
auth_settings = [] # noqa: E501
|
|
665
|
+
|
|
666
|
+
return self.api_client.call_api(
|
|
667
|
+
'/teamdbapi/v2.0/event/{eventId}/lock', 'POST',
|
|
668
|
+
path_params,
|
|
669
|
+
query_params,
|
|
670
|
+
header_params,
|
|
671
|
+
body=body_params,
|
|
672
|
+
post_params=form_params,
|
|
673
|
+
files=local_var_files,
|
|
674
|
+
response_type='Event', # noqa: E501
|
|
675
|
+
auth_settings=auth_settings,
|
|
676
|
+
async_req=params.get('async_req'),
|
|
677
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
678
|
+
_preload_content=params.get('_preload_content', True),
|
|
679
|
+
_request_timeout=params.get('_request_timeout'),
|
|
680
|
+
collection_formats=collection_formats)
|
|
681
|
+
|
|
682
|
+
def release_event(self, event_id, **kwargs): # noqa: E501
|
|
683
|
+
"""[Command] Release an event # noqa: E501
|
|
684
|
+
|
|
685
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
686
|
+
asynchronous HTTP request, please pass async_req=True
|
|
687
|
+
>>> thread = api.release_event(event_id, async_req=True)
|
|
688
|
+
>>> result = thread.get()
|
|
689
|
+
|
|
690
|
+
:param async_req bool
|
|
691
|
+
:param str event_id: The unique event id for which you want to release the event (required)
|
|
692
|
+
:return: Event
|
|
693
|
+
If the method is called asynchronously,
|
|
694
|
+
returns the request thread.
|
|
695
|
+
"""
|
|
696
|
+
kwargs['_return_http_data_only'] = True
|
|
697
|
+
if kwargs.get('async_req'):
|
|
698
|
+
return self.release_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
699
|
+
else:
|
|
700
|
+
(data) = self.release_event_with_http_info(event_id, **kwargs) # noqa: E501
|
|
701
|
+
return data
|
|
702
|
+
|
|
703
|
+
def release_event_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
704
|
+
"""[Command] Release an event # noqa: E501
|
|
705
|
+
|
|
706
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
707
|
+
asynchronous HTTP request, please pass async_req=True
|
|
708
|
+
>>> thread = api.release_event_with_http_info(event_id, async_req=True)
|
|
709
|
+
>>> result = thread.get()
|
|
710
|
+
|
|
711
|
+
:param async_req bool
|
|
712
|
+
:param str event_id: The unique event id for which you want to release the event (required)
|
|
713
|
+
:return: Event
|
|
714
|
+
If the method is called asynchronously,
|
|
715
|
+
returns the request thread.
|
|
716
|
+
"""
|
|
717
|
+
|
|
718
|
+
all_params = ['event_id'] # noqa: E501
|
|
719
|
+
all_params.append('async_req')
|
|
720
|
+
all_params.append('_return_http_data_only')
|
|
721
|
+
all_params.append('_preload_content')
|
|
722
|
+
all_params.append('_request_timeout')
|
|
723
|
+
|
|
724
|
+
params = locals()
|
|
725
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
726
|
+
if key not in all_params:
|
|
727
|
+
raise TypeError(
|
|
728
|
+
"Got an unexpected keyword argument '%s'"
|
|
729
|
+
" to method release_event" % key
|
|
730
|
+
)
|
|
731
|
+
params[key] = val
|
|
732
|
+
del params['kwargs']
|
|
733
|
+
# verify the required parameter 'event_id' is set
|
|
734
|
+
if ('event_id' not in params or
|
|
735
|
+
params['event_id'] is None):
|
|
736
|
+
raise ValueError("Missing the required parameter `event_id` when calling `release_event`") # noqa: E501
|
|
737
|
+
|
|
738
|
+
collection_formats = {}
|
|
739
|
+
|
|
740
|
+
path_params = {}
|
|
741
|
+
if 'event_id' in params:
|
|
742
|
+
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
743
|
+
|
|
744
|
+
query_params = []
|
|
745
|
+
|
|
746
|
+
header_params = {}
|
|
747
|
+
|
|
748
|
+
form_params = []
|
|
749
|
+
local_var_files = {}
|
|
750
|
+
|
|
751
|
+
body_params = None
|
|
752
|
+
# HTTP header `Accept`
|
|
753
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
754
|
+
['application/json', 'text/json']) # noqa: E501
|
|
755
|
+
|
|
756
|
+
# Authentication setting
|
|
757
|
+
auth_settings = [] # noqa: E501
|
|
758
|
+
|
|
759
|
+
return self.api_client.call_api(
|
|
760
|
+
'/teamdbapi/v2.0/event/{eventId}/release', 'POST',
|
|
761
|
+
path_params,
|
|
762
|
+
query_params,
|
|
763
|
+
header_params,
|
|
764
|
+
body=body_params,
|
|
765
|
+
post_params=form_params,
|
|
766
|
+
files=local_var_files,
|
|
767
|
+
response_type='Event', # noqa: E501
|
|
768
|
+
auth_settings=auth_settings,
|
|
769
|
+
async_req=params.get('async_req'),
|
|
770
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
771
|
+
_preload_content=params.get('_preload_content', True),
|
|
772
|
+
_request_timeout=params.get('_request_timeout'),
|
|
773
|
+
collection_formats=collection_formats)
|
|
774
|
+
|
|
775
|
+
def update_event(self, body, event_id, **kwargs): # noqa: E501
|
|
776
|
+
"""Update an existing event # noqa: E501
|
|
777
|
+
|
|
778
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
779
|
+
asynchronous HTTP request, please pass async_req=True
|
|
780
|
+
>>> thread = api.update_event(body, event_id, async_req=True)
|
|
781
|
+
>>> result = thread.get()
|
|
782
|
+
|
|
783
|
+
:param async_req bool
|
|
784
|
+
:param Event body: The event to update. (required)
|
|
785
|
+
:param str event_id: The unique event id for which you want to update the event (required)
|
|
786
|
+
:return: Event
|
|
787
|
+
If the method is called asynchronously,
|
|
788
|
+
returns the request thread.
|
|
789
|
+
"""
|
|
790
|
+
kwargs['_return_http_data_only'] = True
|
|
791
|
+
if kwargs.get('async_req'):
|
|
792
|
+
return self.update_event_with_http_info(body, event_id, **kwargs) # noqa: E501
|
|
793
|
+
else:
|
|
794
|
+
(data) = self.update_event_with_http_info(body, event_id, **kwargs) # noqa: E501
|
|
795
|
+
return data
|
|
796
|
+
|
|
797
|
+
def update_event_with_http_info(self, body, event_id, **kwargs): # noqa: E501
|
|
798
|
+
"""Update an existing event # noqa: E501
|
|
799
|
+
|
|
800
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
801
|
+
asynchronous HTTP request, please pass async_req=True
|
|
802
|
+
>>> thread = api.update_event_with_http_info(body, event_id, async_req=True)
|
|
803
|
+
>>> result = thread.get()
|
|
804
|
+
|
|
805
|
+
:param async_req bool
|
|
806
|
+
:param Event body: The event to update. (required)
|
|
807
|
+
:param str event_id: The unique event id for which you want to update the event (required)
|
|
808
|
+
:return: Event
|
|
809
|
+
If the method is called asynchronously,
|
|
810
|
+
returns the request thread.
|
|
811
|
+
"""
|
|
812
|
+
|
|
813
|
+
all_params = ['body', 'event_id'] # noqa: E501
|
|
814
|
+
all_params.append('async_req')
|
|
815
|
+
all_params.append('_return_http_data_only')
|
|
816
|
+
all_params.append('_preload_content')
|
|
817
|
+
all_params.append('_request_timeout')
|
|
818
|
+
|
|
819
|
+
params = locals()
|
|
820
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
821
|
+
if key not in all_params:
|
|
822
|
+
raise TypeError(
|
|
823
|
+
"Got an unexpected keyword argument '%s'"
|
|
824
|
+
" to method update_event" % key
|
|
825
|
+
)
|
|
826
|
+
params[key] = val
|
|
827
|
+
del params['kwargs']
|
|
828
|
+
# verify the required parameter 'body' is set
|
|
829
|
+
if ('body' not in params or
|
|
830
|
+
params['body'] is None):
|
|
831
|
+
raise ValueError("Missing the required parameter `body` when calling `update_event`") # noqa: E501
|
|
832
|
+
# verify the required parameter 'event_id' is set
|
|
833
|
+
if ('event_id' not in params or
|
|
834
|
+
params['event_id'] is None):
|
|
835
|
+
raise ValueError("Missing the required parameter `event_id` when calling `update_event`") # noqa: E501
|
|
836
|
+
|
|
837
|
+
collection_formats = {}
|
|
838
|
+
|
|
839
|
+
path_params = {}
|
|
840
|
+
if 'event_id' in params:
|
|
841
|
+
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
842
|
+
|
|
843
|
+
query_params = []
|
|
844
|
+
|
|
845
|
+
header_params = {}
|
|
846
|
+
|
|
847
|
+
form_params = []
|
|
848
|
+
local_var_files = {}
|
|
849
|
+
|
|
850
|
+
body_params = None
|
|
851
|
+
if 'body' in params:
|
|
852
|
+
body_params = params['body']
|
|
853
|
+
# HTTP header `Accept`
|
|
854
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
855
|
+
['application/json', 'text/json']) # noqa: E501
|
|
856
|
+
|
|
857
|
+
# HTTP header `Content-Type`
|
|
858
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
859
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
860
|
+
|
|
861
|
+
# Authentication setting
|
|
862
|
+
auth_settings = [] # noqa: E501
|
|
863
|
+
|
|
864
|
+
return self.api_client.call_api(
|
|
865
|
+
'/teamdbapi/v2.0/event/{eventId}', 'PUT',
|
|
866
|
+
path_params,
|
|
867
|
+
query_params,
|
|
868
|
+
header_params,
|
|
869
|
+
body=body_params,
|
|
870
|
+
post_params=form_params,
|
|
871
|
+
files=local_var_files,
|
|
872
|
+
response_type='Event', # noqa: E501
|
|
873
|
+
auth_settings=auth_settings,
|
|
874
|
+
async_req=params.get('async_req'),
|
|
875
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
876
|
+
_preload_content=params.get('_preload_content', True),
|
|
877
|
+
_request_timeout=params.get('_request_timeout'),
|
|
878
|
+
collection_formats=collection_formats)
|