teamdbapi 2.37.2__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 (68) hide show
  1. teamdbapi/__init__.py +11 -0
  2. teamdbapi/api/__init__.py +5 -0
  3. teamdbapi/api/assembly_api.py +23 -23
  4. teamdbapi/api/component_api.py +954 -0
  5. teamdbapi/api/criteria_api.py +126 -0
  6. teamdbapi/api/import_export_api.py +85 -0
  7. teamdbapi/api/lap_report_api.py +5 -1
  8. teamdbapi/api/mounting_api.py +219 -0
  9. teamdbapi/api/part_api.py +304 -0
  10. teamdbapi/api/update_request_api.py +235 -0
  11. teamdbapi/api_client.py +4 -8
  12. teamdbapi/configuration.py +5 -12
  13. teamdbapi/models/__init__.py +6 -0
  14. teamdbapi/models/assembly.py +1 -0
  15. teamdbapi/models/bleed_adjustment.py +1 -0
  16. teamdbapi/models/calibration.py +1 -0
  17. teamdbapi/models/car.py +1 -0
  18. teamdbapi/models/car_parameters_context.py +1 -0
  19. teamdbapi/models/compare_options.py +1 -0
  20. teamdbapi/models/compare_result.py +1 -0
  21. teamdbapi/models/compare_result_detail.py +2 -0
  22. teamdbapi/models/component.py +1217 -0
  23. teamdbapi/models/copy_from_tags_args.py +2 -0
  24. teamdbapi/models/couple_guid_text.py +1 -0
  25. teamdbapi/models/criteria.py +430 -0
  26. teamdbapi/models/criteria_value.py +197 -0
  27. teamdbapi/models/event.py +1 -0
  28. teamdbapi/models/fixed_field.py +2 -1
  29. teamdbapi/models/group.py +1 -0
  30. teamdbapi/models/import_parameters_args.py +1 -0
  31. teamdbapi/models/import_parameters_results.py +2 -0
  32. teamdbapi/models/item_value.py +1 -0
  33. teamdbapi/models/item_value_key.py +1 -0
  34. teamdbapi/models/lap.py +1 -0
  35. teamdbapi/models/lap_report_options.py +1 -0
  36. teamdbapi/models/model_field.py +3 -1
  37. teamdbapi/models/model_field_authorization.py +1 -0
  38. teamdbapi/models/mounting.py +489 -0
  39. teamdbapi/models/notes_authorization.py +1 -0
  40. teamdbapi/models/notes_context.py +1 -0
  41. teamdbapi/models/parameter.py +2 -0
  42. teamdbapi/models/parameter_cross_table.py +1 -0
  43. teamdbapi/models/part.py +963 -0
  44. teamdbapi/models/part_count.py +228 -0
  45. teamdbapi/models/problem_details.py +2 -6
  46. teamdbapi/models/revision.py +88 -3
  47. teamdbapi/models/revision_value.py +1 -0
  48. teamdbapi/models/run.py +1 -0
  49. teamdbapi/models/script.py +1 -0
  50. teamdbapi/models/session.py +1 -0
  51. teamdbapi/models/string_with_font_style.py +1 -0
  52. teamdbapi/models/target.py +64 -7
  53. teamdbapi/models/team_db_list.py +1 -0
  54. teamdbapi/models/team_db_list_item.py +1 -0
  55. teamdbapi/models/tire.py +2 -0
  56. teamdbapi/models/tire_set.py +2 -0
  57. teamdbapi/models/track.py +1 -0
  58. teamdbapi/models/track_layout.py +1 -0
  59. teamdbapi/models/user.py +1 -0
  60. teamdbapi/models/user_group.py +1 -0
  61. teamdbapi/models/value_field.py +1 -0
  62. teamdbapi/models/version.py +1 -0
  63. teamdbapi/rest.py +6 -1
  64. {teamdbapi-2.37.2.dist-info → teamdbapi-3.0.0.dist-info}/METADATA +3 -3
  65. teamdbapi-3.0.0.dist-info/RECORD +93 -0
  66. teamdbapi-2.37.2.dist-info/RECORD +0 -82
  67. {teamdbapi-2.37.2.dist-info → teamdbapi-3.0.0.dist-info}/LICENSE +0 -0
  68. {teamdbapi-2.37.2.dist-info → teamdbapi-3.0.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,126 @@
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 CriteriaApi(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_criteria(self, criteria_id, **kwargs): # noqa: E501
36
+ """Get a criteria from it's unique identifier. # 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_criteria(criteria_id, async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :param str criteria_id: The unique identifier of the criteria to retrieve. (required)
45
+ :return: Criteria
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.get_criteria_with_http_info(criteria_id, **kwargs) # noqa: E501
52
+ else:
53
+ (data) = self.get_criteria_with_http_info(criteria_id, **kwargs) # noqa: E501
54
+ return data
55
+
56
+ def get_criteria_with_http_info(self, criteria_id, **kwargs): # noqa: E501
57
+ """Get a criteria from it's unique identifier. # 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.get_criteria_with_http_info(criteria_id, async_req=True)
62
+ >>> result = thread.get()
63
+
64
+ :param async_req bool
65
+ :param str criteria_id: The unique identifier of the criteria to retrieve. (required)
66
+ :return: Criteria
67
+ If the method is called asynchronously,
68
+ returns the request thread.
69
+ """
70
+
71
+ all_params = ['criteria_id'] # noqa: E501
72
+ all_params.append('async_req')
73
+ all_params.append('_return_http_data_only')
74
+ all_params.append('_preload_content')
75
+ all_params.append('_request_timeout')
76
+
77
+ params = locals()
78
+ for key, val in six.iteritems(params['kwargs']):
79
+ if key not in all_params:
80
+ raise TypeError(
81
+ "Got an unexpected keyword argument '%s'"
82
+ " to method get_criteria" % key
83
+ )
84
+ params[key] = val
85
+ del params['kwargs']
86
+ # verify the required parameter 'criteria_id' is set
87
+ if ('criteria_id' not in params or
88
+ params['criteria_id'] is None):
89
+ raise ValueError("Missing the required parameter `criteria_id` when calling `get_criteria`") # noqa: E501
90
+
91
+ collection_formats = {}
92
+
93
+ path_params = {}
94
+ if 'criteria_id' in params:
95
+ path_params['criteriaId'] = params['criteria_id'] # noqa: E501
96
+
97
+ query_params = []
98
+
99
+ header_params = {}
100
+
101
+ form_params = []
102
+ local_var_files = {}
103
+
104
+ body_params = None
105
+ # HTTP header `Accept`
106
+ header_params['Accept'] = self.api_client.select_header_accept(
107
+ ['application/json', 'text/json']) # noqa: E501
108
+
109
+ # Authentication setting
110
+ auth_settings = [] # noqa: E501
111
+
112
+ return self.api_client.call_api(
113
+ '/teamdbapi/v2.0/criteria/{criteriaId}', 'GET',
114
+ path_params,
115
+ query_params,
116
+ header_params,
117
+ body=body_params,
118
+ post_params=form_params,
119
+ files=local_var_files,
120
+ response_type='Criteria', # noqa: E501
121
+ auth_settings=auth_settings,
122
+ async_req=params.get('async_req'),
123
+ _return_http_data_only=params.get('_return_http_data_only'),
124
+ _preload_content=params.get('_preload_content', True),
125
+ _request_timeout=params.get('_request_timeout'),
126
+ collection_formats=collection_formats)
@@ -741,3 +741,88 @@ class ImportExportApi(object):
741
741
  _preload_content=params.get('_preload_content', True),
742
742
  _request_timeout=params.get('_request_timeout'),
743
743
  collection_formats=collection_formats)
744
+
745
+ def trigger_lifing_import(self, **kwargs): # noqa: E501
746
+ """[Command] Trigger the lifing import # noqa: E501
747
+
748
+ This method makes a synchronous HTTP request by default. To make an
749
+ asynchronous HTTP request, please pass async_req=True
750
+ >>> thread = api.trigger_lifing_import(async_req=True)
751
+ >>> result = thread.get()
752
+
753
+ :param async_req bool
754
+ :return: None
755
+ If the method is called asynchronously,
756
+ returns the request thread.
757
+ """
758
+ kwargs['_return_http_data_only'] = True
759
+ if kwargs.get('async_req'):
760
+ return self.trigger_lifing_import_with_http_info(**kwargs) # noqa: E501
761
+ else:
762
+ (data) = self.trigger_lifing_import_with_http_info(**kwargs) # noqa: E501
763
+ return data
764
+
765
+ def trigger_lifing_import_with_http_info(self, **kwargs): # noqa: E501
766
+ """[Command] Trigger the lifing import # noqa: E501
767
+
768
+ This method makes a synchronous HTTP request by default. To make an
769
+ asynchronous HTTP request, please pass async_req=True
770
+ >>> thread = api.trigger_lifing_import_with_http_info(async_req=True)
771
+ >>> result = thread.get()
772
+
773
+ :param async_req bool
774
+ :return: None
775
+ If the method is called asynchronously,
776
+ returns the request thread.
777
+ """
778
+
779
+ all_params = [] # noqa: E501
780
+ all_params.append('async_req')
781
+ all_params.append('_return_http_data_only')
782
+ all_params.append('_preload_content')
783
+ all_params.append('_request_timeout')
784
+
785
+ params = locals()
786
+ for key, val in six.iteritems(params['kwargs']):
787
+ if key not in all_params:
788
+ raise TypeError(
789
+ "Got an unexpected keyword argument '%s'"
790
+ " to method trigger_lifing_import" % key
791
+ )
792
+ params[key] = val
793
+ del params['kwargs']
794
+
795
+ collection_formats = {}
796
+
797
+ path_params = {}
798
+
799
+ query_params = []
800
+
801
+ header_params = {}
802
+
803
+ form_params = []
804
+ local_var_files = {}
805
+
806
+ body_params = None
807
+ # HTTP header `Accept`
808
+ header_params['Accept'] = self.api_client.select_header_accept(
809
+ ['application/json', 'text/json']) # noqa: E501
810
+
811
+ # Authentication setting
812
+ auth_settings = [] # noqa: E501
813
+
814
+ return self.api_client.call_api(
815
+ '/teamdbapi/v2.0/importlifing', 'POST',
816
+ path_params,
817
+ query_params,
818
+ header_params,
819
+ body=body_params,
820
+ post_params=form_params,
821
+ files=local_var_files,
822
+ response_type=None, # noqa: E501
823
+ auth_settings=auth_settings,
824
+ async_req=params.get('async_req'),
825
+ _return_http_data_only=params.get('_return_http_data_only'),
826
+ _preload_content=params.get('_preload_content', True),
827
+ _request_timeout=params.get('_request_timeout'),
828
+ collection_formats=collection_formats)
@@ -298,6 +298,7 @@ class LapReportApi(object):
298
298
  :param async_req bool
299
299
  :param str file_path: The lap report path (required)
300
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.
301
302
  :return: None
302
303
  If the method is called asynchronously,
303
304
  returns the request thread.
@@ -320,12 +321,13 @@ class LapReportApi(object):
320
321
  :param async_req bool
321
322
  :param str file_path: The lap report path (required)
322
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.
323
325
  :return: None
324
326
  If the method is called asynchronously,
325
327
  returns the request thread.
326
328
  """
327
329
 
328
- all_params = ['file_path', 'lap_report_file_format'] # noqa: E501
330
+ all_params = ['file_path', 'lap_report_file_format', 'session_id'] # noqa: E501
329
331
  all_params.append('async_req')
330
332
  all_params.append('_return_http_data_only')
331
333
  all_params.append('_preload_content')
@@ -358,6 +360,8 @@ class LapReportApi(object):
358
360
  query_params.append(('filePath', params['file_path'])) # noqa: E501
359
361
  if 'lap_report_file_format' in params:
360
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
361
365
 
362
366
  header_params = {}
363
367
 
@@ -0,0 +1,219 @@
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 MountingApi(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_mounting_revision(self, run_id, **kwargs): # noqa: E501
36
+ """Gets run-related mounting revision. # 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_mounting_revision(run_id, async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :param str run_id: The unique identifier of the run for which you wish to obtain the mounting revision. (required)
45
+ :return: Mounting
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.get_current_mounting_revision_with_http_info(run_id, **kwargs) # noqa: E501
52
+ else:
53
+ (data) = self.get_current_mounting_revision_with_http_info(run_id, **kwargs) # noqa: E501
54
+ return data
55
+
56
+ def get_current_mounting_revision_with_http_info(self, run_id, **kwargs): # noqa: E501
57
+ """Gets run-related mounting revision. # 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.get_current_mounting_revision_with_http_info(run_id, async_req=True)
62
+ >>> result = thread.get()
63
+
64
+ :param async_req bool
65
+ :param str run_id: The unique identifier of the run for which you wish to obtain the mounting revision. (required)
66
+ :return: Mounting
67
+ If the method is called asynchronously,
68
+ returns the request thread.
69
+ """
70
+
71
+ all_params = ['run_id'] # noqa: E501
72
+ all_params.append('async_req')
73
+ all_params.append('_return_http_data_only')
74
+ all_params.append('_preload_content')
75
+ all_params.append('_request_timeout')
76
+
77
+ params = locals()
78
+ for key, val in six.iteritems(params['kwargs']):
79
+ if key not in all_params:
80
+ raise TypeError(
81
+ "Got an unexpected keyword argument '%s'"
82
+ " to method get_current_mounting_revision" % key
83
+ )
84
+ params[key] = val
85
+ del params['kwargs']
86
+ # verify the required parameter 'run_id' is set
87
+ if ('run_id' not in params or
88
+ params['run_id'] is None):
89
+ raise ValueError("Missing the required parameter `run_id` when calling `get_current_mounting_revision`") # noqa: E501
90
+
91
+ collection_formats = {}
92
+
93
+ path_params = {}
94
+ if 'run_id' in params:
95
+ path_params['runId'] = params['run_id'] # noqa: E501
96
+
97
+ query_params = []
98
+
99
+ header_params = {}
100
+
101
+ form_params = []
102
+ local_var_files = {}
103
+
104
+ body_params = None
105
+ # HTTP header `Accept`
106
+ header_params['Accept'] = self.api_client.select_header_accept(
107
+ ['application/json', 'text/json']) # noqa: E501
108
+
109
+ # Authentication setting
110
+ auth_settings = [] # noqa: E501
111
+
112
+ return self.api_client.call_api(
113
+ '/teamdbapi/v2.0/run/{runId}/mounting', 'GET',
114
+ path_params,
115
+ query_params,
116
+ header_params,
117
+ body=body_params,
118
+ post_params=form_params,
119
+ files=local_var_files,
120
+ response_type='Mounting', # noqa: E501
121
+ auth_settings=auth_settings,
122
+ async_req=params.get('async_req'),
123
+ _return_http_data_only=params.get('_return_http_data_only'),
124
+ _preload_content=params.get('_preload_content', True),
125
+ _request_timeout=params.get('_request_timeout'),
126
+ collection_formats=collection_formats)
127
+
128
+ def get_mounting_revision_content(self, revision_id, **kwargs): # noqa: E501
129
+ """Gets the list of first-level components of a mounting revision. # noqa: E501
130
+
131
+ This method makes a synchronous HTTP request by default. To make an
132
+ asynchronous HTTP request, please pass async_req=True
133
+ >>> thread = api.get_mounting_revision_content(revision_id, async_req=True)
134
+ >>> result = thread.get()
135
+
136
+ :param async_req bool
137
+ :param str revision_id: The unique identifier of the mounting revision for which you wish to obtain the list of first-level components. (required)
138
+ :return: list[Component]
139
+ If the method is called asynchronously,
140
+ returns the request thread.
141
+ """
142
+ kwargs['_return_http_data_only'] = True
143
+ if kwargs.get('async_req'):
144
+ return self.get_mounting_revision_content_with_http_info(revision_id, **kwargs) # noqa: E501
145
+ else:
146
+ (data) = self.get_mounting_revision_content_with_http_info(revision_id, **kwargs) # noqa: E501
147
+ return data
148
+
149
+ def get_mounting_revision_content_with_http_info(self, revision_id, **kwargs): # noqa: E501
150
+ """Gets the list of first-level components of a mounting revision. # noqa: E501
151
+
152
+ This method makes a synchronous HTTP request by default. To make an
153
+ asynchronous HTTP request, please pass async_req=True
154
+ >>> thread = api.get_mounting_revision_content_with_http_info(revision_id, async_req=True)
155
+ >>> result = thread.get()
156
+
157
+ :param async_req bool
158
+ :param str revision_id: The unique identifier of the mounting revision for which you wish to obtain the list of first-level components. (required)
159
+ :return: list[Component]
160
+ If the method is called asynchronously,
161
+ returns the request thread.
162
+ """
163
+
164
+ all_params = ['revision_id'] # noqa: E501
165
+ all_params.append('async_req')
166
+ all_params.append('_return_http_data_only')
167
+ all_params.append('_preload_content')
168
+ all_params.append('_request_timeout')
169
+
170
+ params = locals()
171
+ for key, val in six.iteritems(params['kwargs']):
172
+ if key not in all_params:
173
+ raise TypeError(
174
+ "Got an unexpected keyword argument '%s'"
175
+ " to method get_mounting_revision_content" % key
176
+ )
177
+ params[key] = val
178
+ del params['kwargs']
179
+ # verify the required parameter 'revision_id' is set
180
+ if ('revision_id' not in params or
181
+ params['revision_id'] is None):
182
+ raise ValueError("Missing the required parameter `revision_id` when calling `get_mounting_revision_content`") # noqa: E501
183
+
184
+ collection_formats = {}
185
+
186
+ path_params = {}
187
+ if 'revision_id' in params:
188
+ path_params['revisionId'] = params['revision_id'] # noqa: E501
189
+
190
+ query_params = []
191
+
192
+ header_params = {}
193
+
194
+ form_params = []
195
+ local_var_files = {}
196
+
197
+ body_params = None
198
+ # HTTP header `Accept`
199
+ header_params['Accept'] = self.api_client.select_header_accept(
200
+ ['application/json', 'text/json']) # noqa: E501
201
+
202
+ # Authentication setting
203
+ auth_settings = [] # noqa: E501
204
+
205
+ return self.api_client.call_api(
206
+ '/teamdbapi/v2.0/mounting/{revisionId}/content', 'GET',
207
+ path_params,
208
+ query_params,
209
+ header_params,
210
+ body=body_params,
211
+ post_params=form_params,
212
+ files=local_var_files,
213
+ response_type='list[Component]', # noqa: E501
214
+ auth_settings=auth_settings,
215
+ async_req=params.get('async_req'),
216
+ _return_http_data_only=params.get('_return_http_data_only'),
217
+ _preload_content=params.get('_preload_content', True),
218
+ _request_timeout=params.get('_request_timeout'),
219
+ collection_formats=collection_formats)