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.
Files changed (94) hide show
  1. teamdbapi/__init__.py +11 -0
  2. teamdbapi/api/__init__.py +39 -34
  3. teamdbapi/api/assembly_api.py +2108 -2108
  4. teamdbapi/api/car_api.py +874 -874
  5. teamdbapi/api/component_api.py +954 -0
  6. teamdbapi/api/config_api.py +118 -118
  7. teamdbapi/api/criteria_api.py +126 -0
  8. teamdbapi/api/edit_api.py +433 -433
  9. teamdbapi/api/event_api.py +878 -878
  10. teamdbapi/api/fixed_field_api.py +320 -320
  11. teamdbapi/api/group_api.py +609 -609
  12. teamdbapi/api/import_export_api.py +828 -743
  13. teamdbapi/api/lap_api.py +708 -708
  14. teamdbapi/api/lap_report_api.py +490 -486
  15. teamdbapi/api/model_field_api.py +708 -708
  16. teamdbapi/api/mounting_api.py +219 -0
  17. teamdbapi/api/notes_authorization_api.py +324 -324
  18. teamdbapi/api/parameter_api.py +1176 -1176
  19. teamdbapi/api/part_api.py +304 -0
  20. teamdbapi/api/report_api.py +142 -142
  21. teamdbapi/api/revision_api.py +1420 -1420
  22. teamdbapi/api/revision_editor_selector_api.py +990 -990
  23. teamdbapi/api/run_api.py +603 -603
  24. teamdbapi/api/script_api.py +490 -490
  25. teamdbapi/api/session_api.py +720 -720
  26. teamdbapi/api/target_api.py +415 -415
  27. teamdbapi/api/team_db_list_api.py +987 -987
  28. teamdbapi/api/team_db_view_api.py +482 -482
  29. teamdbapi/api/tire_api.py +599 -599
  30. teamdbapi/api/tire_set_api.py +514 -514
  31. teamdbapi/api/track_api.py +506 -506
  32. teamdbapi/api/track_layout_api.py +514 -514
  33. teamdbapi/api/update_request_api.py +235 -0
  34. teamdbapi/api/user_api.py +474 -474
  35. teamdbapi/api/value_field_api.py +558 -558
  36. teamdbapi/api/version_api.py +449 -449
  37. teamdbapi/api_client.py +4 -8
  38. teamdbapi/configuration.py +6 -13
  39. teamdbapi/models/__init__.py +6 -0
  40. teamdbapi/models/assembly.py +1 -0
  41. teamdbapi/models/bleed_adjustment.py +1 -0
  42. teamdbapi/models/calibration.py +1 -0
  43. teamdbapi/models/car.py +1 -0
  44. teamdbapi/models/car_parameters_context.py +1 -0
  45. teamdbapi/models/compare_options.py +1 -0
  46. teamdbapi/models/compare_result.py +1 -0
  47. teamdbapi/models/compare_result_detail.py +2 -0
  48. teamdbapi/models/component.py +1217 -0
  49. teamdbapi/models/copy_from_tags_args.py +2 -0
  50. teamdbapi/models/couple_guid_text.py +1 -0
  51. teamdbapi/models/criteria.py +430 -0
  52. teamdbapi/models/criteria_value.py +197 -0
  53. teamdbapi/models/event.py +1 -0
  54. teamdbapi/models/fixed_field.py +2 -1
  55. teamdbapi/models/group.py +1 -0
  56. teamdbapi/models/import_parameters_args.py +1 -0
  57. teamdbapi/models/import_parameters_results.py +2 -0
  58. teamdbapi/models/item_value.py +1 -0
  59. teamdbapi/models/item_value_key.py +1 -0
  60. teamdbapi/models/lap.py +1 -0
  61. teamdbapi/models/lap_report_options.py +1 -0
  62. teamdbapi/models/model_field.py +3 -1
  63. teamdbapi/models/model_field_authorization.py +1 -0
  64. teamdbapi/models/mounting.py +489 -0
  65. teamdbapi/models/notes_authorization.py +1 -0
  66. teamdbapi/models/notes_context.py +1 -0
  67. teamdbapi/models/parameter.py +2 -0
  68. teamdbapi/models/parameter_cross_table.py +1 -0
  69. teamdbapi/models/part.py +963 -0
  70. teamdbapi/models/part_count.py +228 -0
  71. teamdbapi/models/problem_details.py +2 -6
  72. teamdbapi/models/revision.py +88 -3
  73. teamdbapi/models/revision_value.py +1 -0
  74. teamdbapi/models/run.py +1 -0
  75. teamdbapi/models/script.py +1 -0
  76. teamdbapi/models/session.py +1 -0
  77. teamdbapi/models/string_with_font_style.py +1 -0
  78. teamdbapi/models/target.py +64 -7
  79. teamdbapi/models/team_db_list.py +1 -0
  80. teamdbapi/models/team_db_list_item.py +1 -0
  81. teamdbapi/models/tire.py +2 -0
  82. teamdbapi/models/tire_set.py +2 -0
  83. teamdbapi/models/track.py +1 -0
  84. teamdbapi/models/track_layout.py +1 -0
  85. teamdbapi/models/user.py +1 -0
  86. teamdbapi/models/user_group.py +1 -0
  87. teamdbapi/models/value_field.py +1 -0
  88. teamdbapi/models/version.py +1 -0
  89. teamdbapi/rest.py +6 -1
  90. {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/METADATA +5 -5
  91. teamdbapi-3.0.0.dist-info/RECORD +93 -0
  92. teamdbapi-2.37.1.dist-info/RECORD +0 -82
  93. {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/LICENSE +0 -0
  94. {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/WHEEL +0 -0
@@ -1,486 +1,490 @@
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 LapReportApi(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 disable_lap_report_reading(self, **kwargs): # noqa: E501
36
- """[Command] Disables the lap report reading # 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.disable_lap_report_reading(async_req=True)
41
- >>> result = thread.get()
42
-
43
- :param async_req bool
44
- :return: None
45
- If the method is called asynchronously,
46
- returns the request thread.
47
- """
48
- kwargs['_return_http_data_only'] = True
49
- if kwargs.get('async_req'):
50
- return self.disable_lap_report_reading_with_http_info(**kwargs) # noqa: E501
51
- else:
52
- (data) = self.disable_lap_report_reading_with_http_info(**kwargs) # noqa: E501
53
- return data
54
-
55
- def disable_lap_report_reading_with_http_info(self, **kwargs): # noqa: E501
56
- """[Command] Disables the lap report reading # noqa: E501
57
-
58
- This method makes a synchronous HTTP request by default. To make an
59
- asynchronous HTTP request, please pass async_req=True
60
- >>> thread = api.disable_lap_report_reading_with_http_info(async_req=True)
61
- >>> result = thread.get()
62
-
63
- :param async_req bool
64
- :return: None
65
- If the method is called asynchronously,
66
- returns the request thread.
67
- """
68
-
69
- all_params = [] # noqa: E501
70
- all_params.append('async_req')
71
- all_params.append('_return_http_data_only')
72
- all_params.append('_preload_content')
73
- all_params.append('_request_timeout')
74
-
75
- params = locals()
76
- for key, val in six.iteritems(params['kwargs']):
77
- if key not in all_params:
78
- raise TypeError(
79
- "Got an unexpected keyword argument '%s'"
80
- " to method disable_lap_report_reading" % key
81
- )
82
- params[key] = val
83
- del params['kwargs']
84
-
85
- collection_formats = {}
86
-
87
- path_params = {}
88
-
89
- query_params = []
90
-
91
- header_params = {}
92
-
93
- form_params = []
94
- local_var_files = {}
95
-
96
- body_params = None
97
- # HTTP header `Accept`
98
- header_params['Accept'] = self.api_client.select_header_accept(
99
- ['application/json', 'text/json']) # noqa: E501
100
-
101
- # Authentication setting
102
- auth_settings = [] # noqa: E501
103
-
104
- return self.api_client.call_api(
105
- '/teamdbapi/v2.0/disablelapreportreading', 'POST',
106
- path_params,
107
- query_params,
108
- header_params,
109
- body=body_params,
110
- post_params=form_params,
111
- files=local_var_files,
112
- response_type=None, # noqa: E501
113
- auth_settings=auth_settings,
114
- async_req=params.get('async_req'),
115
- _return_http_data_only=params.get('_return_http_data_only'),
116
- _preload_content=params.get('_preload_content', True),
117
- _request_timeout=params.get('_request_timeout'),
118
- collection_formats=collection_formats)
119
-
120
- def enable_lap_report_reading(self, **kwargs): # noqa: E501
121
- """[Command] Enables the lap report reading # noqa: E501
122
-
123
- This method makes a synchronous HTTP request by default. To make an
124
- asynchronous HTTP request, please pass async_req=True
125
- >>> thread = api.enable_lap_report_reading(async_req=True)
126
- >>> result = thread.get()
127
-
128
- :param async_req bool
129
- :return: None
130
- If the method is called asynchronously,
131
- returns the request thread.
132
- """
133
- kwargs['_return_http_data_only'] = True
134
- if kwargs.get('async_req'):
135
- return self.enable_lap_report_reading_with_http_info(**kwargs) # noqa: E501
136
- else:
137
- (data) = self.enable_lap_report_reading_with_http_info(**kwargs) # noqa: E501
138
- return data
139
-
140
- def enable_lap_report_reading_with_http_info(self, **kwargs): # noqa: E501
141
- """[Command] Enables the lap report reading # 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.enable_lap_report_reading_with_http_info(async_req=True)
146
- >>> result = thread.get()
147
-
148
- :param async_req bool
149
- :return: None
150
- If the method is called asynchronously,
151
- returns the request thread.
152
- """
153
-
154
- all_params = [] # noqa: E501
155
- all_params.append('async_req')
156
- all_params.append('_return_http_data_only')
157
- all_params.append('_preload_content')
158
- all_params.append('_request_timeout')
159
-
160
- params = locals()
161
- for key, val in six.iteritems(params['kwargs']):
162
- if key not in all_params:
163
- raise TypeError(
164
- "Got an unexpected keyword argument '%s'"
165
- " to method enable_lap_report_reading" % key
166
- )
167
- params[key] = val
168
- del params['kwargs']
169
-
170
- collection_formats = {}
171
-
172
- path_params = {}
173
-
174
- query_params = []
175
-
176
- header_params = {}
177
-
178
- form_params = []
179
- local_var_files = {}
180
-
181
- body_params = None
182
- # HTTP header `Accept`
183
- header_params['Accept'] = self.api_client.select_header_accept(
184
- ['application/json', 'text/json']) # noqa: E501
185
-
186
- # Authentication setting
187
- auth_settings = [] # noqa: E501
188
-
189
- return self.api_client.call_api(
190
- '/teamdbapi/v2.0/enablelapreportreading', 'POST',
191
- path_params,
192
- query_params,
193
- header_params,
194
- body=body_params,
195
- post_params=form_params,
196
- files=local_var_files,
197
- response_type=None, # noqa: E501
198
- auth_settings=auth_settings,
199
- async_req=params.get('async_req'),
200
- _return_http_data_only=params.get('_return_http_data_only'),
201
- _preload_content=params.get('_preload_content', True),
202
- _request_timeout=params.get('_request_timeout'),
203
- collection_formats=collection_formats)
204
-
205
- def get_lap_report_options(self, **kwargs): # noqa: E501
206
- """Get the current lap report options # noqa: E501
207
-
208
- This method makes a synchronous HTTP request by default. To make an
209
- asynchronous HTTP request, please pass async_req=True
210
- >>> thread = api.get_lap_report_options(async_req=True)
211
- >>> result = thread.get()
212
-
213
- :param async_req bool
214
- :return: LapReportOptions
215
- If the method is called asynchronously,
216
- returns the request thread.
217
- """
218
- kwargs['_return_http_data_only'] = True
219
- if kwargs.get('async_req'):
220
- return self.get_lap_report_options_with_http_info(**kwargs) # noqa: E501
221
- else:
222
- (data) = self.get_lap_report_options_with_http_info(**kwargs) # noqa: E501
223
- return data
224
-
225
- def get_lap_report_options_with_http_info(self, **kwargs): # noqa: E501
226
- """Get the current lap report options # 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_lap_report_options_with_http_info(async_req=True)
231
- >>> result = thread.get()
232
-
233
- :param async_req bool
234
- :return: LapReportOptions
235
- If the method is called asynchronously,
236
- returns the request thread.
237
- """
238
-
239
- all_params = [] # noqa: E501
240
- all_params.append('async_req')
241
- all_params.append('_return_http_data_only')
242
- all_params.append('_preload_content')
243
- all_params.append('_request_timeout')
244
-
245
- params = locals()
246
- for key, val in six.iteritems(params['kwargs']):
247
- if key not in all_params:
248
- raise TypeError(
249
- "Got an unexpected keyword argument '%s'"
250
- " to method get_lap_report_options" % key
251
- )
252
- params[key] = val
253
- del params['kwargs']
254
-
255
- collection_formats = {}
256
-
257
- path_params = {}
258
-
259
- query_params = []
260
-
261
- header_params = {}
262
-
263
- form_params = []
264
- local_var_files = {}
265
-
266
- body_params = None
267
- # HTTP header `Accept`
268
- header_params['Accept'] = self.api_client.select_header_accept(
269
- ['application/json', 'text/json']) # noqa: E501
270
-
271
- # Authentication setting
272
- auth_settings = [] # noqa: E501
273
-
274
- return self.api_client.call_api(
275
- '/teamdbapi/v2.0/LapReportOptions', 'GET',
276
- path_params,
277
- query_params,
278
- header_params,
279
- body=body_params,
280
- post_params=form_params,
281
- files=local_var_files,
282
- response_type='LapReportOptions', # noqa: E501
283
- auth_settings=auth_settings,
284
- async_req=params.get('async_req'),
285
- _return_http_data_only=params.get('_return_http_data_only'),
286
- _preload_content=params.get('_preload_content', True),
287
- _request_timeout=params.get('_request_timeout'),
288
- collection_formats=collection_formats)
289
-
290
- def load_lap_report(self, file_path, lap_report_file_format, **kwargs): # noqa: E501
291
- """Load a full lap report # noqa: E501
292
-
293
- This method makes a synchronous HTTP request by default. To make an
294
- asynchronous HTTP request, please pass async_req=True
295
- >>> thread = api.load_lap_report(file_path, lap_report_file_format, async_req=True)
296
- >>> result = thread.get()
297
-
298
- :param async_req bool
299
- :param str file_path: The lap report path (required)
300
- :param str lap_report_file_format: The lap report file format: Wintax or Atlas (required)
301
- :return: None
302
- If the method is called asynchronously,
303
- returns the request thread.
304
- """
305
- kwargs['_return_http_data_only'] = True
306
- if kwargs.get('async_req'):
307
- return self.load_lap_report_with_http_info(file_path, lap_report_file_format, **kwargs) # noqa: E501
308
- else:
309
- (data) = self.load_lap_report_with_http_info(file_path, lap_report_file_format, **kwargs) # noqa: E501
310
- return data
311
-
312
- def load_lap_report_with_http_info(self, file_path, lap_report_file_format, **kwargs): # noqa: E501
313
- """Load a full lap report # noqa: E501
314
-
315
- This method makes a synchronous HTTP request by default. To make an
316
- asynchronous HTTP request, please pass async_req=True
317
- >>> thread = api.load_lap_report_with_http_info(file_path, lap_report_file_format, async_req=True)
318
- >>> result = thread.get()
319
-
320
- :param async_req bool
321
- :param str file_path: The lap report path (required)
322
- :param str lap_report_file_format: The lap report file format: Wintax or Atlas (required)
323
- :return: None
324
- If the method is called asynchronously,
325
- returns the request thread.
326
- """
327
-
328
- all_params = ['file_path', 'lap_report_file_format'] # noqa: E501
329
- all_params.append('async_req')
330
- all_params.append('_return_http_data_only')
331
- all_params.append('_preload_content')
332
- all_params.append('_request_timeout')
333
-
334
- params = locals()
335
- for key, val in six.iteritems(params['kwargs']):
336
- if key not in all_params:
337
- raise TypeError(
338
- "Got an unexpected keyword argument '%s'"
339
- " to method load_lap_report" % key
340
- )
341
- params[key] = val
342
- del params['kwargs']
343
- # verify the required parameter 'file_path' is set
344
- if ('file_path' not in params or
345
- params['file_path'] is None):
346
- raise ValueError("Missing the required parameter `file_path` when calling `load_lap_report`") # noqa: E501
347
- # verify the required parameter 'lap_report_file_format' is set
348
- if ('lap_report_file_format' not in params or
349
- params['lap_report_file_format'] is None):
350
- raise ValueError("Missing the required parameter `lap_report_file_format` when calling `load_lap_report`") # noqa: E501
351
-
352
- collection_formats = {}
353
-
354
- path_params = {}
355
-
356
- query_params = []
357
- if 'file_path' in params:
358
- query_params.append(('filePath', params['file_path'])) # noqa: E501
359
- if 'lap_report_file_format' in params:
360
- query_params.append(('lapReportFileFormat', params['lap_report_file_format'])) # noqa: E501
361
-
362
- header_params = {}
363
-
364
- form_params = []
365
- local_var_files = {}
366
-
367
- body_params = None
368
- # HTTP header `Accept`
369
- header_params['Accept'] = self.api_client.select_header_accept(
370
- ['application/json', 'text/json']) # noqa: E501
371
-
372
- # Authentication setting
373
- auth_settings = [] # noqa: E501
374
-
375
- return self.api_client.call_api(
376
- '/teamdbapi/v2.0/loadlapreport', 'POST',
377
- path_params,
378
- query_params,
379
- header_params,
380
- body=body_params,
381
- post_params=form_params,
382
- files=local_var_files,
383
- response_type=None, # noqa: E501
384
- auth_settings=auth_settings,
385
- async_req=params.get('async_req'),
386
- _return_http_data_only=params.get('_return_http_data_only'),
387
- _preload_content=params.get('_preload_content', True),
388
- _request_timeout=params.get('_request_timeout'),
389
- collection_formats=collection_formats)
390
-
391
- def set_lap_report_options(self, body, **kwargs): # noqa: E501
392
- """[Command] Set the lap report options # noqa: E501
393
-
394
- This method makes a synchronous HTTP request by default. To make an
395
- asynchronous HTTP request, please pass async_req=True
396
- >>> thread = api.set_lap_report_options(body, async_req=True)
397
- >>> result = thread.get()
398
-
399
- :param async_req bool
400
- :param LapReportOptions body: The lap report options (isSingleMode, file format, file path) (required)
401
- :return: None
402
- If the method is called asynchronously,
403
- returns the request thread.
404
- """
405
- kwargs['_return_http_data_only'] = True
406
- if kwargs.get('async_req'):
407
- return self.set_lap_report_options_with_http_info(body, **kwargs) # noqa: E501
408
- else:
409
- (data) = self.set_lap_report_options_with_http_info(body, **kwargs) # noqa: E501
410
- return data
411
-
412
- def set_lap_report_options_with_http_info(self, body, **kwargs): # noqa: E501
413
- """[Command] Set the lap report options # noqa: E501
414
-
415
- This method makes a synchronous HTTP request by default. To make an
416
- asynchronous HTTP request, please pass async_req=True
417
- >>> thread = api.set_lap_report_options_with_http_info(body, async_req=True)
418
- >>> result = thread.get()
419
-
420
- :param async_req bool
421
- :param LapReportOptions body: The lap report options (isSingleMode, file format, file path) (required)
422
- :return: None
423
- If the method is called asynchronously,
424
- returns the request thread.
425
- """
426
-
427
- all_params = ['body'] # noqa: E501
428
- all_params.append('async_req')
429
- all_params.append('_return_http_data_only')
430
- all_params.append('_preload_content')
431
- all_params.append('_request_timeout')
432
-
433
- params = locals()
434
- for key, val in six.iteritems(params['kwargs']):
435
- if key not in all_params:
436
- raise TypeError(
437
- "Got an unexpected keyword argument '%s'"
438
- " to method set_lap_report_options" % key
439
- )
440
- params[key] = val
441
- del params['kwargs']
442
- # verify the required parameter 'body' is set
443
- if ('body' not in params or
444
- params['body'] is None):
445
- raise ValueError("Missing the required parameter `body` when calling `set_lap_report_options`") # noqa: E501
446
-
447
- collection_formats = {}
448
-
449
- path_params = {}
450
-
451
- query_params = []
452
-
453
- header_params = {}
454
-
455
- form_params = []
456
- local_var_files = {}
457
-
458
- body_params = None
459
- if 'body' in params:
460
- body_params = params['body']
461
- # HTTP header `Accept`
462
- header_params['Accept'] = self.api_client.select_header_accept(
463
- ['application/json', 'text/json']) # noqa: E501
464
-
465
- # HTTP header `Content-Type`
466
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
467
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
468
-
469
- # Authentication setting
470
- auth_settings = [] # noqa: E501
471
-
472
- return self.api_client.call_api(
473
- '/teamdbapi/v2.0/lapreportoptions', 'POST',
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=None, # 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)
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 LapReportApi(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 disable_lap_report_reading(self, **kwargs): # noqa: E501
36
+ """[Command] Disables the lap report reading # 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.disable_lap_report_reading(async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :return: None
45
+ If the method is called asynchronously,
46
+ returns the request thread.
47
+ """
48
+ kwargs['_return_http_data_only'] = True
49
+ if kwargs.get('async_req'):
50
+ return self.disable_lap_report_reading_with_http_info(**kwargs) # noqa: E501
51
+ else:
52
+ (data) = self.disable_lap_report_reading_with_http_info(**kwargs) # noqa: E501
53
+ return data
54
+
55
+ def disable_lap_report_reading_with_http_info(self, **kwargs): # noqa: E501
56
+ """[Command] Disables the lap report reading # noqa: E501
57
+
58
+ This method makes a synchronous HTTP request by default. To make an
59
+ asynchronous HTTP request, please pass async_req=True
60
+ >>> thread = api.disable_lap_report_reading_with_http_info(async_req=True)
61
+ >>> result = thread.get()
62
+
63
+ :param async_req bool
64
+ :return: None
65
+ If the method is called asynchronously,
66
+ returns the request thread.
67
+ """
68
+
69
+ all_params = [] # noqa: E501
70
+ all_params.append('async_req')
71
+ all_params.append('_return_http_data_only')
72
+ all_params.append('_preload_content')
73
+ all_params.append('_request_timeout')
74
+
75
+ params = locals()
76
+ for key, val in six.iteritems(params['kwargs']):
77
+ if key not in all_params:
78
+ raise TypeError(
79
+ "Got an unexpected keyword argument '%s'"
80
+ " to method disable_lap_report_reading" % key
81
+ )
82
+ params[key] = val
83
+ del params['kwargs']
84
+
85
+ collection_formats = {}
86
+
87
+ path_params = {}
88
+
89
+ query_params = []
90
+
91
+ header_params = {}
92
+
93
+ form_params = []
94
+ local_var_files = {}
95
+
96
+ body_params = None
97
+ # HTTP header `Accept`
98
+ header_params['Accept'] = self.api_client.select_header_accept(
99
+ ['application/json', 'text/json']) # noqa: E501
100
+
101
+ # Authentication setting
102
+ auth_settings = [] # noqa: E501
103
+
104
+ return self.api_client.call_api(
105
+ '/teamdbapi/v2.0/disablelapreportreading', 'POST',
106
+ path_params,
107
+ query_params,
108
+ header_params,
109
+ body=body_params,
110
+ post_params=form_params,
111
+ files=local_var_files,
112
+ response_type=None, # noqa: E501
113
+ auth_settings=auth_settings,
114
+ async_req=params.get('async_req'),
115
+ _return_http_data_only=params.get('_return_http_data_only'),
116
+ _preload_content=params.get('_preload_content', True),
117
+ _request_timeout=params.get('_request_timeout'),
118
+ collection_formats=collection_formats)
119
+
120
+ def enable_lap_report_reading(self, **kwargs): # noqa: E501
121
+ """[Command] Enables the lap report reading # noqa: E501
122
+
123
+ This method makes a synchronous HTTP request by default. To make an
124
+ asynchronous HTTP request, please pass async_req=True
125
+ >>> thread = api.enable_lap_report_reading(async_req=True)
126
+ >>> result = thread.get()
127
+
128
+ :param async_req bool
129
+ :return: None
130
+ If the method is called asynchronously,
131
+ returns the request thread.
132
+ """
133
+ kwargs['_return_http_data_only'] = True
134
+ if kwargs.get('async_req'):
135
+ return self.enable_lap_report_reading_with_http_info(**kwargs) # noqa: E501
136
+ else:
137
+ (data) = self.enable_lap_report_reading_with_http_info(**kwargs) # noqa: E501
138
+ return data
139
+
140
+ def enable_lap_report_reading_with_http_info(self, **kwargs): # noqa: E501
141
+ """[Command] Enables the lap report reading # 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.enable_lap_report_reading_with_http_info(async_req=True)
146
+ >>> result = thread.get()
147
+
148
+ :param async_req bool
149
+ :return: None
150
+ If the method is called asynchronously,
151
+ returns the request thread.
152
+ """
153
+
154
+ all_params = [] # noqa: E501
155
+ all_params.append('async_req')
156
+ all_params.append('_return_http_data_only')
157
+ all_params.append('_preload_content')
158
+ all_params.append('_request_timeout')
159
+
160
+ params = locals()
161
+ for key, val in six.iteritems(params['kwargs']):
162
+ if key not in all_params:
163
+ raise TypeError(
164
+ "Got an unexpected keyword argument '%s'"
165
+ " to method enable_lap_report_reading" % key
166
+ )
167
+ params[key] = val
168
+ del params['kwargs']
169
+
170
+ collection_formats = {}
171
+
172
+ path_params = {}
173
+
174
+ query_params = []
175
+
176
+ header_params = {}
177
+
178
+ form_params = []
179
+ local_var_files = {}
180
+
181
+ body_params = None
182
+ # HTTP header `Accept`
183
+ header_params['Accept'] = self.api_client.select_header_accept(
184
+ ['application/json', 'text/json']) # noqa: E501
185
+
186
+ # Authentication setting
187
+ auth_settings = [] # noqa: E501
188
+
189
+ return self.api_client.call_api(
190
+ '/teamdbapi/v2.0/enablelapreportreading', 'POST',
191
+ path_params,
192
+ query_params,
193
+ header_params,
194
+ body=body_params,
195
+ post_params=form_params,
196
+ files=local_var_files,
197
+ response_type=None, # noqa: E501
198
+ auth_settings=auth_settings,
199
+ async_req=params.get('async_req'),
200
+ _return_http_data_only=params.get('_return_http_data_only'),
201
+ _preload_content=params.get('_preload_content', True),
202
+ _request_timeout=params.get('_request_timeout'),
203
+ collection_formats=collection_formats)
204
+
205
+ def get_lap_report_options(self, **kwargs): # noqa: E501
206
+ """Get the current lap report options # noqa: E501
207
+
208
+ This method makes a synchronous HTTP request by default. To make an
209
+ asynchronous HTTP request, please pass async_req=True
210
+ >>> thread = api.get_lap_report_options(async_req=True)
211
+ >>> result = thread.get()
212
+
213
+ :param async_req bool
214
+ :return: LapReportOptions
215
+ If the method is called asynchronously,
216
+ returns the request thread.
217
+ """
218
+ kwargs['_return_http_data_only'] = True
219
+ if kwargs.get('async_req'):
220
+ return self.get_lap_report_options_with_http_info(**kwargs) # noqa: E501
221
+ else:
222
+ (data) = self.get_lap_report_options_with_http_info(**kwargs) # noqa: E501
223
+ return data
224
+
225
+ def get_lap_report_options_with_http_info(self, **kwargs): # noqa: E501
226
+ """Get the current lap report options # 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_lap_report_options_with_http_info(async_req=True)
231
+ >>> result = thread.get()
232
+
233
+ :param async_req bool
234
+ :return: LapReportOptions
235
+ If the method is called asynchronously,
236
+ returns the request thread.
237
+ """
238
+
239
+ all_params = [] # noqa: E501
240
+ all_params.append('async_req')
241
+ all_params.append('_return_http_data_only')
242
+ all_params.append('_preload_content')
243
+ all_params.append('_request_timeout')
244
+
245
+ params = locals()
246
+ for key, val in six.iteritems(params['kwargs']):
247
+ if key not in all_params:
248
+ raise TypeError(
249
+ "Got an unexpected keyword argument '%s'"
250
+ " to method get_lap_report_options" % key
251
+ )
252
+ params[key] = val
253
+ del params['kwargs']
254
+
255
+ collection_formats = {}
256
+
257
+ path_params = {}
258
+
259
+ query_params = []
260
+
261
+ header_params = {}
262
+
263
+ form_params = []
264
+ local_var_files = {}
265
+
266
+ body_params = None
267
+ # HTTP header `Accept`
268
+ header_params['Accept'] = self.api_client.select_header_accept(
269
+ ['application/json', 'text/json']) # noqa: E501
270
+
271
+ # Authentication setting
272
+ auth_settings = [] # noqa: E501
273
+
274
+ return self.api_client.call_api(
275
+ '/teamdbapi/v2.0/LapReportOptions', 'GET',
276
+ path_params,
277
+ query_params,
278
+ header_params,
279
+ body=body_params,
280
+ post_params=form_params,
281
+ files=local_var_files,
282
+ response_type='LapReportOptions', # noqa: E501
283
+ auth_settings=auth_settings,
284
+ async_req=params.get('async_req'),
285
+ _return_http_data_only=params.get('_return_http_data_only'),
286
+ _preload_content=params.get('_preload_content', True),
287
+ _request_timeout=params.get('_request_timeout'),
288
+ collection_formats=collection_formats)
289
+
290
+ def load_lap_report(self, file_path, lap_report_file_format, **kwargs): # noqa: E501
291
+ """Load a full lap report # noqa: E501
292
+
293
+ This method makes a synchronous HTTP request by default. To make an
294
+ asynchronous HTTP request, please pass async_req=True
295
+ >>> thread = api.load_lap_report(file_path, lap_report_file_format, async_req=True)
296
+ >>> result = thread.get()
297
+
298
+ :param async_req bool
299
+ :param str file_path: The lap report path (required)
300
+ :param str lap_report_file_format: The lap report file format: Wintax or Atlas (required)
301
+ :param str session_id: The identifier of the session in which the report is to be loaded; if there is none, the report is imported into the current session.
302
+ :return: None
303
+ If the method is called asynchronously,
304
+ returns the request thread.
305
+ """
306
+ kwargs['_return_http_data_only'] = True
307
+ if kwargs.get('async_req'):
308
+ return self.load_lap_report_with_http_info(file_path, lap_report_file_format, **kwargs) # noqa: E501
309
+ else:
310
+ (data) = self.load_lap_report_with_http_info(file_path, lap_report_file_format, **kwargs) # noqa: E501
311
+ return data
312
+
313
+ def load_lap_report_with_http_info(self, file_path, lap_report_file_format, **kwargs): # noqa: E501
314
+ """Load a full lap report # noqa: E501
315
+
316
+ This method makes a synchronous HTTP request by default. To make an
317
+ asynchronous HTTP request, please pass async_req=True
318
+ >>> thread = api.load_lap_report_with_http_info(file_path, lap_report_file_format, async_req=True)
319
+ >>> result = thread.get()
320
+
321
+ :param async_req bool
322
+ :param str file_path: The lap report path (required)
323
+ :param str lap_report_file_format: The lap report file format: Wintax or Atlas (required)
324
+ :param str session_id: The identifier of the session in which the report is to be loaded; if there is none, the report is imported into the current session.
325
+ :return: None
326
+ If the method is called asynchronously,
327
+ returns the request thread.
328
+ """
329
+
330
+ all_params = ['file_path', 'lap_report_file_format', 'session_id'] # noqa: E501
331
+ all_params.append('async_req')
332
+ all_params.append('_return_http_data_only')
333
+ all_params.append('_preload_content')
334
+ all_params.append('_request_timeout')
335
+
336
+ params = locals()
337
+ for key, val in six.iteritems(params['kwargs']):
338
+ if key not in all_params:
339
+ raise TypeError(
340
+ "Got an unexpected keyword argument '%s'"
341
+ " to method load_lap_report" % key
342
+ )
343
+ params[key] = val
344
+ del params['kwargs']
345
+ # verify the required parameter 'file_path' is set
346
+ if ('file_path' not in params or
347
+ params['file_path'] is None):
348
+ raise ValueError("Missing the required parameter `file_path` when calling `load_lap_report`") # noqa: E501
349
+ # verify the required parameter 'lap_report_file_format' is set
350
+ if ('lap_report_file_format' not in params or
351
+ params['lap_report_file_format'] is None):
352
+ raise ValueError("Missing the required parameter `lap_report_file_format` when calling `load_lap_report`") # noqa: E501
353
+
354
+ collection_formats = {}
355
+
356
+ path_params = {}
357
+
358
+ query_params = []
359
+ if 'file_path' in params:
360
+ query_params.append(('filePath', params['file_path'])) # noqa: E501
361
+ if 'lap_report_file_format' in params:
362
+ query_params.append(('lapReportFileFormat', params['lap_report_file_format'])) # noqa: E501
363
+ if 'session_id' in params:
364
+ query_params.append(('sessionId', params['session_id'])) # noqa: E501
365
+
366
+ header_params = {}
367
+
368
+ form_params = []
369
+ local_var_files = {}
370
+
371
+ body_params = None
372
+ # HTTP header `Accept`
373
+ header_params['Accept'] = self.api_client.select_header_accept(
374
+ ['application/json', 'text/json']) # noqa: E501
375
+
376
+ # Authentication setting
377
+ auth_settings = [] # noqa: E501
378
+
379
+ return self.api_client.call_api(
380
+ '/teamdbapi/v2.0/loadlapreport', 'POST',
381
+ path_params,
382
+ query_params,
383
+ header_params,
384
+ body=body_params,
385
+ post_params=form_params,
386
+ files=local_var_files,
387
+ response_type=None, # noqa: E501
388
+ auth_settings=auth_settings,
389
+ async_req=params.get('async_req'),
390
+ _return_http_data_only=params.get('_return_http_data_only'),
391
+ _preload_content=params.get('_preload_content', True),
392
+ _request_timeout=params.get('_request_timeout'),
393
+ collection_formats=collection_formats)
394
+
395
+ def set_lap_report_options(self, body, **kwargs): # noqa: E501
396
+ """[Command] Set the lap report options # noqa: E501
397
+
398
+ This method makes a synchronous HTTP request by default. To make an
399
+ asynchronous HTTP request, please pass async_req=True
400
+ >>> thread = api.set_lap_report_options(body, async_req=True)
401
+ >>> result = thread.get()
402
+
403
+ :param async_req bool
404
+ :param LapReportOptions body: The lap report options (isSingleMode, file format, file path) (required)
405
+ :return: None
406
+ If the method is called asynchronously,
407
+ returns the request thread.
408
+ """
409
+ kwargs['_return_http_data_only'] = True
410
+ if kwargs.get('async_req'):
411
+ return self.set_lap_report_options_with_http_info(body, **kwargs) # noqa: E501
412
+ else:
413
+ (data) = self.set_lap_report_options_with_http_info(body, **kwargs) # noqa: E501
414
+ return data
415
+
416
+ def set_lap_report_options_with_http_info(self, body, **kwargs): # noqa: E501
417
+ """[Command] Set the lap report options # noqa: E501
418
+
419
+ This method makes a synchronous HTTP request by default. To make an
420
+ asynchronous HTTP request, please pass async_req=True
421
+ >>> thread = api.set_lap_report_options_with_http_info(body, async_req=True)
422
+ >>> result = thread.get()
423
+
424
+ :param async_req bool
425
+ :param LapReportOptions body: The lap report options (isSingleMode, file format, file path) (required)
426
+ :return: None
427
+ If the method is called asynchronously,
428
+ returns the request thread.
429
+ """
430
+
431
+ all_params = ['body'] # noqa: E501
432
+ all_params.append('async_req')
433
+ all_params.append('_return_http_data_only')
434
+ all_params.append('_preload_content')
435
+ all_params.append('_request_timeout')
436
+
437
+ params = locals()
438
+ for key, val in six.iteritems(params['kwargs']):
439
+ if key not in all_params:
440
+ raise TypeError(
441
+ "Got an unexpected keyword argument '%s'"
442
+ " to method set_lap_report_options" % key
443
+ )
444
+ params[key] = val
445
+ del params['kwargs']
446
+ # verify the required parameter 'body' is set
447
+ if ('body' not in params or
448
+ params['body'] is None):
449
+ raise ValueError("Missing the required parameter `body` when calling `set_lap_report_options`") # noqa: E501
450
+
451
+ collection_formats = {}
452
+
453
+ path_params = {}
454
+
455
+ query_params = []
456
+
457
+ header_params = {}
458
+
459
+ form_params = []
460
+ local_var_files = {}
461
+
462
+ body_params = None
463
+ if 'body' in params:
464
+ body_params = params['body']
465
+ # HTTP header `Accept`
466
+ header_params['Accept'] = self.api_client.select_header_accept(
467
+ ['application/json', 'text/json']) # noqa: E501
468
+
469
+ # HTTP header `Content-Type`
470
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
471
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
472
+
473
+ # Authentication setting
474
+ auth_settings = [] # noqa: E501
475
+
476
+ return self.api_client.call_api(
477
+ '/teamdbapi/v2.0/lapreportoptions', 'POST',
478
+ path_params,
479
+ query_params,
480
+ header_params,
481
+ body=body_params,
482
+ post_params=form_params,
483
+ files=local_var_files,
484
+ response_type=None, # noqa: E501
485
+ auth_settings=auth_settings,
486
+ async_req=params.get('async_req'),
487
+ _return_http_data_only=params.get('_return_http_data_only'),
488
+ _preload_content=params.get('_preload_content', True),
489
+ _request_timeout=params.get('_request_timeout'),
490
+ collection_formats=collection_formats)