teamdbapi 3.3.0__py3-none-any.whl → 3.5.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 CHANGED
@@ -31,7 +31,9 @@ from teamdbapi.api.lap_report_api import LapReportApi
31
31
  from teamdbapi.api.model_field_api import ModelFieldApi
32
32
  from teamdbapi.api.mounting_api import MountingApi
33
33
  from teamdbapi.api.notes_authorization_api import NotesAuthorizationApi
34
+ from teamdbapi.api.overall_api import OverallApi
34
35
  from teamdbapi.api.parameter_api import ParameterApi
36
+ from teamdbapi.api.parameter_binding_api import ParameterBindingApi
35
37
  from teamdbapi.api.part_api import PartApi
36
38
  from teamdbapi.api.report_api import ReportApi
37
39
  from teamdbapi.api.revision_api import RevisionApi
@@ -68,6 +70,7 @@ from teamdbapi.models.copy_from_tags_args import CopyFromTagsArgs
68
70
  from teamdbapi.models.couple_guid_text import CoupleGuidText
69
71
  from teamdbapi.models.criteria import Criteria
70
72
  from teamdbapi.models.criteria_value import CriteriaValue
73
+ from teamdbapi.models.criteria_value_detail import CriteriaValueDetail
71
74
  from teamdbapi.models.event import Event
72
75
  from teamdbapi.models.file_revision_info import FileRevisionInfo
73
76
  from teamdbapi.models.fixed_field import FixedField
@@ -94,7 +97,9 @@ from teamdbapi.models.model_field_authorization import ModelFieldAuthorization
94
97
  from teamdbapi.models.mounting import Mounting
95
98
  from teamdbapi.models.notes_authorization import NotesAuthorization
96
99
  from teamdbapi.models.notes_context import NotesContext
100
+ from teamdbapi.models.overall import Overall
97
101
  from teamdbapi.models.parameter import Parameter
102
+ from teamdbapi.models.parameter_binding import ParameterBinding
98
103
  from teamdbapi.models.parameter_cross_table import ParameterCrossTable
99
104
  from teamdbapi.models.part import Part
100
105
  from teamdbapi.models.part_car_parameters import PartCarParameters
teamdbapi/api/__init__.py CHANGED
@@ -19,7 +19,9 @@ from teamdbapi.api.lap_report_api import LapReportApi
19
19
  from teamdbapi.api.model_field_api import ModelFieldApi
20
20
  from teamdbapi.api.mounting_api import MountingApi
21
21
  from teamdbapi.api.notes_authorization_api import NotesAuthorizationApi
22
+ from teamdbapi.api.overall_api import OverallApi
22
23
  from teamdbapi.api.parameter_api import ParameterApi
24
+ from teamdbapi.api.parameter_binding_api import ParameterBindingApi
23
25
  from teamdbapi.api.part_api import PartApi
24
26
  from teamdbapi.api.report_api import ReportApi
25
27
  from teamdbapi.api.revision_api import RevisionApi
@@ -545,6 +545,107 @@ class ComponentApi(object):
545
545
  _request_timeout=params.get('_request_timeout'),
546
546
  collection_formats=collection_formats)
547
547
 
548
+ def get_component_revision_criteria_details(self, component_id, revision_id, **kwargs): # noqa: E501
549
+ """Get the component's revision criteria values for each run # noqa: E501
550
+
551
+ This method makes a synchronous HTTP request by default. To make an
552
+ asynchronous HTTP request, please pass async_req=True
553
+ >>> thread = api.get_component_revision_criteria_details(component_id, revision_id, async_req=True)
554
+ >>> result = thread.get()
555
+
556
+ :param async_req bool
557
+ :param str component_id: The unique identifier of the component. (required)
558
+ :param str revision_id: The unique identifier of the component revision. (required)
559
+ :return: list[CriteriaValueDetail]
560
+ If the method is called asynchronously,
561
+ returns the request thread.
562
+ """
563
+ kwargs['_return_http_data_only'] = True
564
+ if kwargs.get('async_req'):
565
+ return self.get_component_revision_criteria_details_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
566
+ else:
567
+ (data) = self.get_component_revision_criteria_details_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
568
+ return data
569
+
570
+ def get_component_revision_criteria_details_with_http_info(self, component_id, revision_id, **kwargs): # noqa: E501
571
+ """Get the component's revision criteria values for each run # noqa: E501
572
+
573
+ This method makes a synchronous HTTP request by default. To make an
574
+ asynchronous HTTP request, please pass async_req=True
575
+ >>> thread = api.get_component_revision_criteria_details_with_http_info(component_id, revision_id, async_req=True)
576
+ >>> result = thread.get()
577
+
578
+ :param async_req bool
579
+ :param str component_id: The unique identifier of the component. (required)
580
+ :param str revision_id: The unique identifier of the component revision. (required)
581
+ :return: list[CriteriaValueDetail]
582
+ If the method is called asynchronously,
583
+ returns the request thread.
584
+ """
585
+
586
+ all_params = ['component_id', 'revision_id'] # noqa: E501
587
+ all_params.append('async_req')
588
+ all_params.append('_return_http_data_only')
589
+ all_params.append('_preload_content')
590
+ all_params.append('_request_timeout')
591
+
592
+ params = locals()
593
+ for key, val in six.iteritems(params['kwargs']):
594
+ if key not in all_params:
595
+ raise TypeError(
596
+ "Got an unexpected keyword argument '%s'"
597
+ " to method get_component_revision_criteria_details" % key
598
+ )
599
+ params[key] = val
600
+ del params['kwargs']
601
+ # verify the required parameter 'component_id' is set
602
+ if ('component_id' not in params or
603
+ params['component_id'] is None):
604
+ raise ValueError("Missing the required parameter `component_id` when calling `get_component_revision_criteria_details`") # noqa: E501
605
+ # verify the required parameter 'revision_id' is set
606
+ if ('revision_id' not in params or
607
+ params['revision_id'] is None):
608
+ raise ValueError("Missing the required parameter `revision_id` when calling `get_component_revision_criteria_details`") # noqa: E501
609
+
610
+ collection_formats = {}
611
+
612
+ path_params = {}
613
+ if 'component_id' in params:
614
+ path_params['componentId'] = params['component_id'] # noqa: E501
615
+ if 'revision_id' in params:
616
+ path_params['revisionId'] = params['revision_id'] # noqa: E501
617
+
618
+ query_params = []
619
+
620
+ header_params = {}
621
+
622
+ form_params = []
623
+ local_var_files = {}
624
+
625
+ body_params = None
626
+ # HTTP header `Accept`
627
+ header_params['Accept'] = self.api_client.select_header_accept(
628
+ ['application/json', 'text/json']) # noqa: E501
629
+
630
+ # Authentication setting
631
+ auth_settings = [] # noqa: E501
632
+
633
+ return self.api_client.call_api(
634
+ '/teamdbapi/v2.0/component/{componentId}/revision/{revisionId}/criteriadetails', 'GET',
635
+ path_params,
636
+ query_params,
637
+ header_params,
638
+ body=body_params,
639
+ post_params=form_params,
640
+ files=local_var_files,
641
+ response_type='list[CriteriaValueDetail]', # noqa: E501
642
+ auth_settings=auth_settings,
643
+ async_req=params.get('async_req'),
644
+ _return_http_data_only=params.get('_return_http_data_only'),
645
+ _preload_content=params.get('_preload_content', True),
646
+ _request_timeout=params.get('_request_timeout'),
647
+ collection_formats=collection_formats)
648
+
548
649
  def get_component_revisions(self, component_id, **kwargs): # noqa: E501
549
650
  """Get all revisions of a component from it's unique identifier. # noqa: E501
550
651
 
@@ -957,6 +1058,91 @@ class ComponentApi(object):
957
1058
  _request_timeout=params.get('_request_timeout'),
958
1059
  collection_formats=collection_formats)
959
1060
 
1061
+ def trigger_lifing_export_components(self, **kwargs): # noqa: E501
1062
+ """[Command] Trigger the lifing export components. The export concerns the components lifed linked to a mountinng and updated during the N last days (depending on the server configuration option: Export lifing component period) # noqa: E501
1063
+
1064
+ This method makes a synchronous HTTP request by default. To make an
1065
+ asynchronous HTTP request, please pass async_req=True
1066
+ >>> thread = api.trigger_lifing_export_components(async_req=True)
1067
+ >>> result = thread.get()
1068
+
1069
+ :param async_req bool
1070
+ :return: None
1071
+ If the method is called asynchronously,
1072
+ returns the request thread.
1073
+ """
1074
+ kwargs['_return_http_data_only'] = True
1075
+ if kwargs.get('async_req'):
1076
+ return self.trigger_lifing_export_components_with_http_info(**kwargs) # noqa: E501
1077
+ else:
1078
+ (data) = self.trigger_lifing_export_components_with_http_info(**kwargs) # noqa: E501
1079
+ return data
1080
+
1081
+ def trigger_lifing_export_components_with_http_info(self, **kwargs): # noqa: E501
1082
+ """[Command] Trigger the lifing export components. The export concerns the components lifed linked to a mountinng and updated during the N last days (depending on the server configuration option: Export lifing component period) # noqa: E501
1083
+
1084
+ This method makes a synchronous HTTP request by default. To make an
1085
+ asynchronous HTTP request, please pass async_req=True
1086
+ >>> thread = api.trigger_lifing_export_components_with_http_info(async_req=True)
1087
+ >>> result = thread.get()
1088
+
1089
+ :param async_req bool
1090
+ :return: None
1091
+ If the method is called asynchronously,
1092
+ returns the request thread.
1093
+ """
1094
+
1095
+ all_params = [] # noqa: E501
1096
+ all_params.append('async_req')
1097
+ all_params.append('_return_http_data_only')
1098
+ all_params.append('_preload_content')
1099
+ all_params.append('_request_timeout')
1100
+
1101
+ params = locals()
1102
+ for key, val in six.iteritems(params['kwargs']):
1103
+ if key not in all_params:
1104
+ raise TypeError(
1105
+ "Got an unexpected keyword argument '%s'"
1106
+ " to method trigger_lifing_export_components" % key
1107
+ )
1108
+ params[key] = val
1109
+ del params['kwargs']
1110
+
1111
+ collection_formats = {}
1112
+
1113
+ path_params = {}
1114
+
1115
+ query_params = []
1116
+
1117
+ header_params = {}
1118
+
1119
+ form_params = []
1120
+ local_var_files = {}
1121
+
1122
+ body_params = None
1123
+ # HTTP header `Accept`
1124
+ header_params['Accept'] = self.api_client.select_header_accept(
1125
+ ['application/json', 'text/json']) # noqa: E501
1126
+
1127
+ # Authentication setting
1128
+ auth_settings = [] # noqa: E501
1129
+
1130
+ return self.api_client.call_api(
1131
+ '/teamdbapi/v2.0/component/export', 'POST',
1132
+ path_params,
1133
+ query_params,
1134
+ header_params,
1135
+ body=body_params,
1136
+ post_params=form_params,
1137
+ files=local_var_files,
1138
+ response_type=None, # noqa: E501
1139
+ auth_settings=auth_settings,
1140
+ async_req=params.get('async_req'),
1141
+ _return_http_data_only=params.get('_return_http_data_only'),
1142
+ _preload_content=params.get('_preload_content', True),
1143
+ _request_timeout=params.get('_request_timeout'),
1144
+ collection_formats=collection_formats)
1145
+
960
1146
  def update_component_revision(self, component_id, revision_id, **kwargs): # noqa: E501
961
1147
  """Update a component revision from it's unique identifiers. # noqa: E501
962
1148
 
teamdbapi/api/edit_api.py CHANGED
@@ -396,6 +396,103 @@ class EditApi(object):
396
396
  _request_timeout=params.get('_request_timeout'),
397
397
  collection_formats=collection_formats)
398
398
 
399
+ def set_car_parameters_contexts(self, body, **kwargs): # noqa: E501
400
+ """[Command] Set car parameters contexts in TeamDB client layouts, or the global context only if the Use Global Context option is active. # noqa: E501
401
+
402
+ This method makes a synchronous HTTP request by default. To make an
403
+ asynchronous HTTP request, please pass async_req=True
404
+ >>> thread = api.set_car_parameters_contexts(body, async_req=True)
405
+ >>> result = thread.get()
406
+
407
+ :param async_req bool
408
+ :param list[CarParametersContext] body: The car parameters contexts to set. (required)
409
+ :return: None
410
+ If the method is called asynchronously,
411
+ returns the request thread.
412
+ """
413
+ kwargs['_return_http_data_only'] = True
414
+ if kwargs.get('async_req'):
415
+ return self.set_car_parameters_contexts_with_http_info(body, **kwargs) # noqa: E501
416
+ else:
417
+ (data) = self.set_car_parameters_contexts_with_http_info(body, **kwargs) # noqa: E501
418
+ return data
419
+
420
+ def set_car_parameters_contexts_with_http_info(self, body, **kwargs): # noqa: E501
421
+ """[Command] Set car parameters contexts in TeamDB client layouts, or the global context only if the Use Global Context option is active. # noqa: E501
422
+
423
+ This method makes a synchronous HTTP request by default. To make an
424
+ asynchronous HTTP request, please pass async_req=True
425
+ >>> thread = api.set_car_parameters_contexts_with_http_info(body, async_req=True)
426
+ >>> result = thread.get()
427
+
428
+ :param async_req bool
429
+ :param list[CarParametersContext] body: The car parameters contexts to set. (required)
430
+ :return: None
431
+ If the method is called asynchronously,
432
+ returns the request thread.
433
+ """
434
+
435
+ all_params = ['body'] # noqa: E501
436
+ all_params.append('async_req')
437
+ all_params.append('_return_http_data_only')
438
+ all_params.append('_preload_content')
439
+ all_params.append('_request_timeout')
440
+
441
+ params = locals()
442
+ for key, val in six.iteritems(params['kwargs']):
443
+ if key not in all_params:
444
+ raise TypeError(
445
+ "Got an unexpected keyword argument '%s'"
446
+ " to method set_car_parameters_contexts" % key
447
+ )
448
+ params[key] = val
449
+ del params['kwargs']
450
+ # verify the required parameter 'body' is set
451
+ if ('body' not in params or
452
+ params['body'] is None):
453
+ raise ValueError("Missing the required parameter `body` when calling `set_car_parameters_contexts`") # noqa: E501
454
+
455
+ collection_formats = {}
456
+
457
+ path_params = {}
458
+
459
+ query_params = []
460
+
461
+ header_params = {}
462
+
463
+ form_params = []
464
+ local_var_files = {}
465
+
466
+ body_params = None
467
+ if 'body' in params:
468
+ body_params = params['body']
469
+ # HTTP header `Accept`
470
+ header_params['Accept'] = self.api_client.select_header_accept(
471
+ ['application/json', 'text/json']) # noqa: E501
472
+
473
+ # HTTP header `Content-Type`
474
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
475
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
476
+
477
+ # Authentication setting
478
+ auth_settings = [] # noqa: E501
479
+
480
+ return self.api_client.call_api(
481
+ '/teamdbapi/v2.0/CarParametersContexts', 'POST',
482
+ path_params,
483
+ query_params,
484
+ header_params,
485
+ body=body_params,
486
+ post_params=form_params,
487
+ files=local_var_files,
488
+ response_type=None, # noqa: E501
489
+ auth_settings=auth_settings,
490
+ async_req=params.get('async_req'),
491
+ _return_http_data_only=params.get('_return_http_data_only'),
492
+ _preload_content=params.get('_preload_content', True),
493
+ _request_timeout=params.get('_request_timeout'),
494
+ collection_formats=collection_formats)
495
+
399
496
  def set_current_context(self, event_id, car_id, session_id, run_id, lap_id, **kwargs): # noqa: E501
400
497
  """[Command] Set the current Event, Car, Session, Run, Lap selected. Enter the empty unique identifier value 00000000-0000-0000-0000-000000000000 to select the default value. # noqa: E501
401
498
 
@@ -217,3 +217,96 @@ class MountingApi(object):
217
217
  _preload_content=params.get('_preload_content', True),
218
218
  _request_timeout=params.get('_request_timeout'),
219
219
  collection_formats=collection_formats)
220
+
221
+ def get_mounting_revision_content_with_missing(self, revision_id, **kwargs): # noqa: E501
222
+ """Gets the list of first-level components of a mounting revision. And includes missing components. Missing component properties will be empty or equal to defaut values. Only the parent part properties will be filled. # noqa: E501
223
+
224
+ This method makes a synchronous HTTP request by default. To make an
225
+ asynchronous HTTP request, please pass async_req=True
226
+ >>> thread = api.get_mounting_revision_content_with_missing(revision_id, async_req=True)
227
+ >>> result = thread.get()
228
+
229
+ :param async_req bool
230
+ :param str revision_id: The unique identifier of the mounting revision for which you wish to obtain the list of first-level components. (required)
231
+ :return: list[Component]
232
+ If the method is called asynchronously,
233
+ returns the request thread.
234
+ """
235
+ kwargs['_return_http_data_only'] = True
236
+ if kwargs.get('async_req'):
237
+ return self.get_mounting_revision_content_with_missing_with_http_info(revision_id, **kwargs) # noqa: E501
238
+ else:
239
+ (data) = self.get_mounting_revision_content_with_missing_with_http_info(revision_id, **kwargs) # noqa: E501
240
+ return data
241
+
242
+ def get_mounting_revision_content_with_missing_with_http_info(self, revision_id, **kwargs): # noqa: E501
243
+ """Gets the list of first-level components of a mounting revision. And includes missing components. Missing component properties will be empty or equal to defaut values. Only the parent part properties will be filled. # noqa: E501
244
+
245
+ This method makes a synchronous HTTP request by default. To make an
246
+ asynchronous HTTP request, please pass async_req=True
247
+ >>> thread = api.get_mounting_revision_content_with_missing_with_http_info(revision_id, async_req=True)
248
+ >>> result = thread.get()
249
+
250
+ :param async_req bool
251
+ :param str revision_id: The unique identifier of the mounting revision for which you wish to obtain the list of first-level components. (required)
252
+ :return: list[Component]
253
+ If the method is called asynchronously,
254
+ returns the request thread.
255
+ """
256
+
257
+ all_params = ['revision_id'] # noqa: E501
258
+ all_params.append('async_req')
259
+ all_params.append('_return_http_data_only')
260
+ all_params.append('_preload_content')
261
+ all_params.append('_request_timeout')
262
+
263
+ params = locals()
264
+ for key, val in six.iteritems(params['kwargs']):
265
+ if key not in all_params:
266
+ raise TypeError(
267
+ "Got an unexpected keyword argument '%s'"
268
+ " to method get_mounting_revision_content_with_missing" % key
269
+ )
270
+ params[key] = val
271
+ del params['kwargs']
272
+ # verify the required parameter 'revision_id' is set
273
+ if ('revision_id' not in params or
274
+ params['revision_id'] is None):
275
+ raise ValueError("Missing the required parameter `revision_id` when calling `get_mounting_revision_content_with_missing`") # noqa: E501
276
+
277
+ collection_formats = {}
278
+
279
+ path_params = {}
280
+ if 'revision_id' in params:
281
+ path_params['revisionId'] = params['revision_id'] # noqa: E501
282
+
283
+ query_params = []
284
+
285
+ header_params = {}
286
+
287
+ form_params = []
288
+ local_var_files = {}
289
+
290
+ body_params = None
291
+ # HTTP header `Accept`
292
+ header_params['Accept'] = self.api_client.select_header_accept(
293
+ ['application/json', 'text/json']) # noqa: E501
294
+
295
+ # Authentication setting
296
+ auth_settings = [] # noqa: E501
297
+
298
+ return self.api_client.call_api(
299
+ '/teamdbapi/v2.0/mounting/{revisionId}/includemissings/content', 'GET',
300
+ path_params,
301
+ query_params,
302
+ header_params,
303
+ body=body_params,
304
+ post_params=form_params,
305
+ files=local_var_files,
306
+ response_type='list[Component]', # noqa: E501
307
+ auth_settings=auth_settings,
308
+ async_req=params.get('async_req'),
309
+ _return_http_data_only=params.get('_return_http_data_only'),
310
+ _preload_content=params.get('_preload_content', True),
311
+ _request_timeout=params.get('_request_timeout'),
312
+ collection_formats=collection_formats)
@@ -0,0 +1,118 @@
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 OverallApi(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 get_current_overall(self, **kwargs): # noqa: E501
36
+ """Get the current Overall. # 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.get_current_overall(async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :return: Overall
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.get_current_overall_with_http_info(**kwargs) # noqa: E501
51
+ else:
52
+ (data) = self.get_current_overall_with_http_info(**kwargs) # noqa: E501
53
+ return data
54
+
55
+ def get_current_overall_with_http_info(self, **kwargs): # noqa: E501
56
+ """Get the current Overall. # 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.get_current_overall_with_http_info(async_req=True)
61
+ >>> result = thread.get()
62
+
63
+ :param async_req bool
64
+ :return: Overall
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 get_current_overall" % 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/overall/current', 'GET',
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='Overall', # 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)