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
|
@@ -1,743 +1,828 @@
|
|
|
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 ImportExportApi(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 export_xml_file_current_context(self, xml_data_format, source_id, output_file_path, **kwargs): # noqa: E501
|
|
36
|
-
"""[Command] Export the data to an XML file for the current context. # 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.export_xml_file_current_context(xml_data_format, source_id, output_file_path, async_req=True)
|
|
41
|
-
>>> result = thread.get()
|
|
42
|
-
|
|
43
|
-
:param async_req bool
|
|
44
|
-
:param str xml_data_format: The XML file format (Wintax or TeamDB) (required)
|
|
45
|
-
:param str source_id: The Source ID string for which you want to export the data (required)
|
|
46
|
-
:param str output_file_path: The path to the file to create. You have to provide the file extension for example : C:\\path\\MyFile.xml (required)
|
|
47
|
-
:return: None
|
|
48
|
-
If the method is called asynchronously,
|
|
49
|
-
returns the request thread.
|
|
50
|
-
"""
|
|
51
|
-
kwargs['_return_http_data_only'] = True
|
|
52
|
-
if kwargs.get('async_req'):
|
|
53
|
-
return self.export_xml_file_current_context_with_http_info(xml_data_format, source_id, output_file_path, **kwargs) # noqa: E501
|
|
54
|
-
else:
|
|
55
|
-
(data) = self.export_xml_file_current_context_with_http_info(xml_data_format, source_id, output_file_path, **kwargs) # noqa: E501
|
|
56
|
-
return data
|
|
57
|
-
|
|
58
|
-
def export_xml_file_current_context_with_http_info(self, xml_data_format, source_id, output_file_path, **kwargs): # noqa: E501
|
|
59
|
-
"""[Command] Export the data to an XML file for the current context. # noqa: E501
|
|
60
|
-
|
|
61
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
62
|
-
asynchronous HTTP request, please pass async_req=True
|
|
63
|
-
>>> thread = api.export_xml_file_current_context_with_http_info(xml_data_format, source_id, output_file_path, async_req=True)
|
|
64
|
-
>>> result = thread.get()
|
|
65
|
-
|
|
66
|
-
:param async_req bool
|
|
67
|
-
:param str xml_data_format: The XML file format (Wintax or TeamDB) (required)
|
|
68
|
-
:param str source_id: The Source ID string for which you want to export the data (required)
|
|
69
|
-
:param str output_file_path: The path to the file to create. You have to provide the file extension for example : C:\\path\\MyFile.xml (required)
|
|
70
|
-
:return: None
|
|
71
|
-
If the method is called asynchronously,
|
|
72
|
-
returns the request thread.
|
|
73
|
-
"""
|
|
74
|
-
|
|
75
|
-
all_params = ['xml_data_format', 'source_id', 'output_file_path'] # noqa: E501
|
|
76
|
-
all_params.append('async_req')
|
|
77
|
-
all_params.append('_return_http_data_only')
|
|
78
|
-
all_params.append('_preload_content')
|
|
79
|
-
all_params.append('_request_timeout')
|
|
80
|
-
|
|
81
|
-
params = locals()
|
|
82
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
83
|
-
if key not in all_params:
|
|
84
|
-
raise TypeError(
|
|
85
|
-
"Got an unexpected keyword argument '%s'"
|
|
86
|
-
" to method export_xml_file_current_context" % key
|
|
87
|
-
)
|
|
88
|
-
params[key] = val
|
|
89
|
-
del params['kwargs']
|
|
90
|
-
# verify the required parameter 'xml_data_format' is set
|
|
91
|
-
if ('xml_data_format' not in params or
|
|
92
|
-
params['xml_data_format'] is None):
|
|
93
|
-
raise ValueError("Missing the required parameter `xml_data_format` when calling `export_xml_file_current_context`") # noqa: E501
|
|
94
|
-
# verify the required parameter 'source_id' is set
|
|
95
|
-
if ('source_id' not in params or
|
|
96
|
-
params['source_id'] is None):
|
|
97
|
-
raise ValueError("Missing the required parameter `source_id` when calling `export_xml_file_current_context`") # noqa: E501
|
|
98
|
-
# verify the required parameter 'output_file_path' is set
|
|
99
|
-
if ('output_file_path' not in params or
|
|
100
|
-
params['output_file_path'] is None):
|
|
101
|
-
raise ValueError("Missing the required parameter `output_file_path` when calling `export_xml_file_current_context`") # noqa: E501
|
|
102
|
-
|
|
103
|
-
collection_formats = {}
|
|
104
|
-
|
|
105
|
-
path_params = {}
|
|
106
|
-
|
|
107
|
-
query_params = []
|
|
108
|
-
if 'xml_data_format' in params:
|
|
109
|
-
query_params.append(('xmlDataFormat', params['xml_data_format'])) # noqa: E501
|
|
110
|
-
if 'source_id' in params:
|
|
111
|
-
query_params.append(('sourceId', params['source_id'])) # noqa: E501
|
|
112
|
-
if 'output_file_path' in params:
|
|
113
|
-
query_params.append(('outputFilePath', params['output_file_path'])) # noqa: E501
|
|
114
|
-
|
|
115
|
-
header_params = {}
|
|
116
|
-
|
|
117
|
-
form_params = []
|
|
118
|
-
local_var_files = {}
|
|
119
|
-
|
|
120
|
-
body_params = None
|
|
121
|
-
# HTTP header `Accept`
|
|
122
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
123
|
-
['application/json', 'text/json']) # noqa: E501
|
|
124
|
-
|
|
125
|
-
# Authentication setting
|
|
126
|
-
auth_settings = [] # noqa: E501
|
|
127
|
-
|
|
128
|
-
return self.api_client.call_api(
|
|
129
|
-
'/teamdbapi/v2.0/exportxmlfile', 'POST',
|
|
130
|
-
path_params,
|
|
131
|
-
query_params,
|
|
132
|
-
header_params,
|
|
133
|
-
body=body_params,
|
|
134
|
-
post_params=form_params,
|
|
135
|
-
files=local_var_files,
|
|
136
|
-
response_type=None, # noqa: E501
|
|
137
|
-
auth_settings=auth_settings,
|
|
138
|
-
async_req=params.get('async_req'),
|
|
139
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
140
|
-
_preload_content=params.get('_preload_content', True),
|
|
141
|
-
_request_timeout=params.get('_request_timeout'),
|
|
142
|
-
collection_formats=collection_formats)
|
|
143
|
-
|
|
144
|
-
def export_xml_file_given_context(self, event_id, car_id, session_id, run_id, lap_id, xml_data_format, source_id, output_file_path, **kwargs): # noqa: E501
|
|
145
|
-
"""[Command] Export the data to an XML file for the given context. # noqa: E501
|
|
146
|
-
|
|
147
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
148
|
-
asynchronous HTTP request, please pass async_req=True
|
|
149
|
-
>>> thread = api.export_xml_file_given_context(event_id, car_id, session_id, run_id, lap_id, xml_data_format, source_id, output_file_path, async_req=True)
|
|
150
|
-
>>> result = thread.get()
|
|
151
|
-
|
|
152
|
-
:param async_req bool
|
|
153
|
-
:param str event_id: The event ID from which perform the export (required)
|
|
154
|
-
:param str car_id: The car ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
155
|
-
:param str session_id: The session ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
156
|
-
:param str run_id: The run ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
157
|
-
:param str lap_id: The lap ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
158
|
-
:param str xml_data_format: The XML file format (Wintax or TeamDB) (required)
|
|
159
|
-
:param str source_id: The Source ID string for which you want to export the data (required)
|
|
160
|
-
:param str output_file_path: The path to the file to create. You have to provide the file extension for example : C:\\path\\MyFile.xml (required)
|
|
161
|
-
:return: None
|
|
162
|
-
If the method is called asynchronously,
|
|
163
|
-
returns the request thread.
|
|
164
|
-
"""
|
|
165
|
-
kwargs['_return_http_data_only'] = True
|
|
166
|
-
if kwargs.get('async_req'):
|
|
167
|
-
return self.export_xml_file_given_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, xml_data_format, source_id, output_file_path, **kwargs) # noqa: E501
|
|
168
|
-
else:
|
|
169
|
-
(data) = self.export_xml_file_given_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, xml_data_format, source_id, output_file_path, **kwargs) # noqa: E501
|
|
170
|
-
return data
|
|
171
|
-
|
|
172
|
-
def export_xml_file_given_context_with_http_info(self, event_id, car_id, session_id, run_id, lap_id, xml_data_format, source_id, output_file_path, **kwargs): # noqa: E501
|
|
173
|
-
"""[Command] Export the data to an XML file for the given context. # noqa: E501
|
|
174
|
-
|
|
175
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
176
|
-
asynchronous HTTP request, please pass async_req=True
|
|
177
|
-
>>> thread = api.export_xml_file_given_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, xml_data_format, source_id, output_file_path, async_req=True)
|
|
178
|
-
>>> result = thread.get()
|
|
179
|
-
|
|
180
|
-
:param async_req bool
|
|
181
|
-
:param str event_id: The event ID from which perform the export (required)
|
|
182
|
-
:param str car_id: The car ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
183
|
-
:param str session_id: The session ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
184
|
-
:param str run_id: The run ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
185
|
-
:param str lap_id: The lap ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
186
|
-
:param str xml_data_format: The XML file format (Wintax or TeamDB) (required)
|
|
187
|
-
:param str source_id: The Source ID string for which you want to export the data (required)
|
|
188
|
-
:param str output_file_path: The path to the file to create. You have to provide the file extension for example : C:\\path\\MyFile.xml (required)
|
|
189
|
-
:return: None
|
|
190
|
-
If the method is called asynchronously,
|
|
191
|
-
returns the request thread.
|
|
192
|
-
"""
|
|
193
|
-
|
|
194
|
-
all_params = ['event_id', 'car_id', 'session_id', 'run_id', 'lap_id', 'xml_data_format', 'source_id', 'output_file_path'] # noqa: E501
|
|
195
|
-
all_params.append('async_req')
|
|
196
|
-
all_params.append('_return_http_data_only')
|
|
197
|
-
all_params.append('_preload_content')
|
|
198
|
-
all_params.append('_request_timeout')
|
|
199
|
-
|
|
200
|
-
params = locals()
|
|
201
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
202
|
-
if key not in all_params:
|
|
203
|
-
raise TypeError(
|
|
204
|
-
"Got an unexpected keyword argument '%s'"
|
|
205
|
-
" to method export_xml_file_given_context" % key
|
|
206
|
-
)
|
|
207
|
-
params[key] = val
|
|
208
|
-
del params['kwargs']
|
|
209
|
-
# verify the required parameter 'event_id' is set
|
|
210
|
-
if ('event_id' not in params or
|
|
211
|
-
params['event_id'] is None):
|
|
212
|
-
raise ValueError("Missing the required parameter `event_id` when calling `export_xml_file_given_context`") # noqa: E501
|
|
213
|
-
# verify the required parameter 'car_id' is set
|
|
214
|
-
if ('car_id' not in params or
|
|
215
|
-
params['car_id'] is None):
|
|
216
|
-
raise ValueError("Missing the required parameter `car_id` when calling `export_xml_file_given_context`") # noqa: E501
|
|
217
|
-
# verify the required parameter 'session_id' is set
|
|
218
|
-
if ('session_id' not in params or
|
|
219
|
-
params['session_id'] is None):
|
|
220
|
-
raise ValueError("Missing the required parameter `session_id` when calling `export_xml_file_given_context`") # noqa: E501
|
|
221
|
-
# verify the required parameter 'run_id' is set
|
|
222
|
-
if ('run_id' not in params or
|
|
223
|
-
params['run_id'] is None):
|
|
224
|
-
raise ValueError("Missing the required parameter `run_id` when calling `export_xml_file_given_context`") # noqa: E501
|
|
225
|
-
# verify the required parameter 'lap_id' is set
|
|
226
|
-
if ('lap_id' not in params or
|
|
227
|
-
params['lap_id'] is None):
|
|
228
|
-
raise ValueError("Missing the required parameter `lap_id` when calling `export_xml_file_given_context`") # noqa: E501
|
|
229
|
-
# verify the required parameter 'xml_data_format' is set
|
|
230
|
-
if ('xml_data_format' not in params or
|
|
231
|
-
params['xml_data_format'] is None):
|
|
232
|
-
raise ValueError("Missing the required parameter `xml_data_format` when calling `export_xml_file_given_context`") # noqa: E501
|
|
233
|
-
# verify the required parameter 'source_id' is set
|
|
234
|
-
if ('source_id' not in params or
|
|
235
|
-
params['source_id'] is None):
|
|
236
|
-
raise ValueError("Missing the required parameter `source_id` when calling `export_xml_file_given_context`") # noqa: E501
|
|
237
|
-
# verify the required parameter 'output_file_path' is set
|
|
238
|
-
if ('output_file_path' not in params or
|
|
239
|
-
params['output_file_path'] is None):
|
|
240
|
-
raise ValueError("Missing the required parameter `output_file_path` when calling `export_xml_file_given_context`") # noqa: E501
|
|
241
|
-
|
|
242
|
-
collection_formats = {}
|
|
243
|
-
|
|
244
|
-
path_params = {}
|
|
245
|
-
if 'event_id' in params:
|
|
246
|
-
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
247
|
-
if 'car_id' in params:
|
|
248
|
-
path_params['carId'] = params['car_id'] # noqa: E501
|
|
249
|
-
if 'session_id' in params:
|
|
250
|
-
path_params['sessionId'] = params['session_id'] # noqa: E501
|
|
251
|
-
if 'run_id' in params:
|
|
252
|
-
path_params['runId'] = params['run_id'] # noqa: E501
|
|
253
|
-
if 'lap_id' in params:
|
|
254
|
-
path_params['lapId'] = params['lap_id'] # noqa: E501
|
|
255
|
-
|
|
256
|
-
query_params = []
|
|
257
|
-
if 'xml_data_format' in params:
|
|
258
|
-
query_params.append(('xmlDataFormat', params['xml_data_format'])) # noqa: E501
|
|
259
|
-
if 'source_id' in params:
|
|
260
|
-
query_params.append(('sourceId', params['source_id'])) # noqa: E501
|
|
261
|
-
if 'output_file_path' in params:
|
|
262
|
-
query_params.append(('outputFilePath', params['output_file_path'])) # noqa: E501
|
|
263
|
-
|
|
264
|
-
header_params = {}
|
|
265
|
-
|
|
266
|
-
form_params = []
|
|
267
|
-
local_var_files = {}
|
|
268
|
-
|
|
269
|
-
body_params = None
|
|
270
|
-
# HTTP header `Accept`
|
|
271
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
272
|
-
['application/json', 'text/json']) # noqa: E501
|
|
273
|
-
|
|
274
|
-
# Authentication setting
|
|
275
|
-
auth_settings = [] # noqa: E501
|
|
276
|
-
|
|
277
|
-
return self.api_client.call_api(
|
|
278
|
-
'/teamdbapi/v2.0/eventId/{eventId}/carId/{carId}/sessionId/{sessionId}/runId/{runId}/lapId/{lapId}/exportxmlfile', 'POST',
|
|
279
|
-
path_params,
|
|
280
|
-
query_params,
|
|
281
|
-
header_params,
|
|
282
|
-
body=body_params,
|
|
283
|
-
post_params=form_params,
|
|
284
|
-
files=local_var_files,
|
|
285
|
-
response_type=None, # noqa: E501
|
|
286
|
-
auth_settings=auth_settings,
|
|
287
|
-
async_req=params.get('async_req'),
|
|
288
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
289
|
-
_preload_content=params.get('_preload_content', True),
|
|
290
|
-
_request_timeout=params.get('_request_timeout'),
|
|
291
|
-
collection_formats=collection_formats)
|
|
292
|
-
|
|
293
|
-
def import_excel_file(self, source_path, input_file_path, **kwargs): # noqa: E501
|
|
294
|
-
"""[Command] Import the data from an Excel file and a given source Path # noqa: E501
|
|
295
|
-
|
|
296
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
297
|
-
asynchronous HTTP request, please pass async_req=True
|
|
298
|
-
>>> thread = api.import_excel_file(source_path, input_file_path, async_req=True)
|
|
299
|
-
>>> result = thread.get()
|
|
300
|
-
|
|
301
|
-
:param async_req bool
|
|
302
|
-
:param str source_path: The source path configured in the teamdb fields that you want to import (required)
|
|
303
|
-
:param str input_file_path: The Excel file path you want to import. For example : C:\\path\\MyFile.xlsx (required)
|
|
304
|
-
:return: None
|
|
305
|
-
If the method is called asynchronously,
|
|
306
|
-
returns the request thread.
|
|
307
|
-
"""
|
|
308
|
-
kwargs['_return_http_data_only'] = True
|
|
309
|
-
if kwargs.get('async_req'):
|
|
310
|
-
return self.import_excel_file_with_http_info(source_path, input_file_path, **kwargs) # noqa: E501
|
|
311
|
-
else:
|
|
312
|
-
(data) = self.import_excel_file_with_http_info(source_path, input_file_path, **kwargs) # noqa: E501
|
|
313
|
-
return data
|
|
314
|
-
|
|
315
|
-
def import_excel_file_with_http_info(self, source_path, input_file_path, **kwargs): # noqa: E501
|
|
316
|
-
"""[Command] Import the data from an Excel file and a given source Path # noqa: E501
|
|
317
|
-
|
|
318
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
319
|
-
asynchronous HTTP request, please pass async_req=True
|
|
320
|
-
>>> thread = api.import_excel_file_with_http_info(source_path, input_file_path, async_req=True)
|
|
321
|
-
>>> result = thread.get()
|
|
322
|
-
|
|
323
|
-
:param async_req bool
|
|
324
|
-
:param str source_path: The source path configured in the teamdb fields that you want to import (required)
|
|
325
|
-
:param str input_file_path: The Excel file path you want to import. For example : C:\\path\\MyFile.xlsx (required)
|
|
326
|
-
:return: None
|
|
327
|
-
If the method is called asynchronously,
|
|
328
|
-
returns the request thread.
|
|
329
|
-
"""
|
|
330
|
-
|
|
331
|
-
all_params = ['source_path', 'input_file_path'] # noqa: E501
|
|
332
|
-
all_params.append('async_req')
|
|
333
|
-
all_params.append('_return_http_data_only')
|
|
334
|
-
all_params.append('_preload_content')
|
|
335
|
-
all_params.append('_request_timeout')
|
|
336
|
-
|
|
337
|
-
params = locals()
|
|
338
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
339
|
-
if key not in all_params:
|
|
340
|
-
raise TypeError(
|
|
341
|
-
"Got an unexpected keyword argument '%s'"
|
|
342
|
-
" to method import_excel_file" % key
|
|
343
|
-
)
|
|
344
|
-
params[key] = val
|
|
345
|
-
del params['kwargs']
|
|
346
|
-
# verify the required parameter 'source_path' is set
|
|
347
|
-
if ('source_path' not in params or
|
|
348
|
-
params['source_path'] is None):
|
|
349
|
-
raise ValueError("Missing the required parameter `source_path` when calling `import_excel_file`") # noqa: E501
|
|
350
|
-
# verify the required parameter 'input_file_path' is set
|
|
351
|
-
if ('input_file_path' not in params or
|
|
352
|
-
params['input_file_path'] is None):
|
|
353
|
-
raise ValueError("Missing the required parameter `input_file_path` when calling `import_excel_file`") # noqa: E501
|
|
354
|
-
|
|
355
|
-
collection_formats = {}
|
|
356
|
-
|
|
357
|
-
path_params = {}
|
|
358
|
-
|
|
359
|
-
query_params = []
|
|
360
|
-
if 'source_path' in params:
|
|
361
|
-
query_params.append(('sourcePath', params['source_path'])) # noqa: E501
|
|
362
|
-
if 'input_file_path' in params:
|
|
363
|
-
query_params.append(('inputFilePath', params['input_file_path'])) # noqa: E501
|
|
364
|
-
|
|
365
|
-
header_params = {}
|
|
366
|
-
|
|
367
|
-
form_params = []
|
|
368
|
-
local_var_files = {}
|
|
369
|
-
|
|
370
|
-
body_params = None
|
|
371
|
-
# HTTP header `Accept`
|
|
372
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
373
|
-
['application/json', 'text/json']) # noqa: E501
|
|
374
|
-
|
|
375
|
-
# Authentication setting
|
|
376
|
-
auth_settings = [] # noqa: E501
|
|
377
|
-
|
|
378
|
-
return self.api_client.call_api(
|
|
379
|
-
'/teamdbapi/v2.0/importexcelfile', 'POST',
|
|
380
|
-
path_params,
|
|
381
|
-
query_params,
|
|
382
|
-
header_params,
|
|
383
|
-
body=body_params,
|
|
384
|
-
post_params=form_params,
|
|
385
|
-
files=local_var_files,
|
|
386
|
-
response_type=None, # noqa: E501
|
|
387
|
-
auth_settings=auth_settings,
|
|
388
|
-
async_req=params.get('async_req'),
|
|
389
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
390
|
-
_preload_content=params.get('_preload_content', True),
|
|
391
|
-
_request_timeout=params.get('_request_timeout'),
|
|
392
|
-
collection_formats=collection_formats)
|
|
393
|
-
|
|
394
|
-
def import_excel_sheet(self, source_path, sheetname, input_file_path, **kwargs): # noqa: E501
|
|
395
|
-
"""[Command] Import the data from specific sheet of an Excel file and a given source Path # noqa: E501
|
|
396
|
-
|
|
397
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
398
|
-
asynchronous HTTP request, please pass async_req=True
|
|
399
|
-
>>> thread = api.import_excel_sheet(source_path, sheetname, input_file_path, async_req=True)
|
|
400
|
-
>>> result = thread.get()
|
|
401
|
-
|
|
402
|
-
:param async_req bool
|
|
403
|
-
:param str source_path: The source path configured in the teamdb fields that you want to import (required)
|
|
404
|
-
:param str sheetname: The sheet name in the file (required)
|
|
405
|
-
:param str input_file_path: The Excel file path you want to import. For example : C:\\path\\MyFile.xlsx (required)
|
|
406
|
-
:return: None
|
|
407
|
-
If the method is called asynchronously,
|
|
408
|
-
returns the request thread.
|
|
409
|
-
"""
|
|
410
|
-
kwargs['_return_http_data_only'] = True
|
|
411
|
-
if kwargs.get('async_req'):
|
|
412
|
-
return self.import_excel_sheet_with_http_info(source_path, sheetname, input_file_path, **kwargs) # noqa: E501
|
|
413
|
-
else:
|
|
414
|
-
(data) = self.import_excel_sheet_with_http_info(source_path, sheetname, input_file_path, **kwargs) # noqa: E501
|
|
415
|
-
return data
|
|
416
|
-
|
|
417
|
-
def import_excel_sheet_with_http_info(self, source_path, sheetname, input_file_path, **kwargs): # noqa: E501
|
|
418
|
-
"""[Command] Import the data from specific sheet of an Excel file and a given source Path # noqa: E501
|
|
419
|
-
|
|
420
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
421
|
-
asynchronous HTTP request, please pass async_req=True
|
|
422
|
-
>>> thread = api.import_excel_sheet_with_http_info(source_path, sheetname, input_file_path, async_req=True)
|
|
423
|
-
>>> result = thread.get()
|
|
424
|
-
|
|
425
|
-
:param async_req bool
|
|
426
|
-
:param str source_path: The source path configured in the teamdb fields that you want to import (required)
|
|
427
|
-
:param str sheetname: The sheet name in the file (required)
|
|
428
|
-
:param str input_file_path: The Excel file path you want to import. For example : C:\\path\\MyFile.xlsx (required)
|
|
429
|
-
:return: None
|
|
430
|
-
If the method is called asynchronously,
|
|
431
|
-
returns the request thread.
|
|
432
|
-
"""
|
|
433
|
-
|
|
434
|
-
all_params = ['source_path', 'sheetname', 'input_file_path'] # noqa: E501
|
|
435
|
-
all_params.append('async_req')
|
|
436
|
-
all_params.append('_return_http_data_only')
|
|
437
|
-
all_params.append('_preload_content')
|
|
438
|
-
all_params.append('_request_timeout')
|
|
439
|
-
|
|
440
|
-
params = locals()
|
|
441
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
442
|
-
if key not in all_params:
|
|
443
|
-
raise TypeError(
|
|
444
|
-
"Got an unexpected keyword argument '%s'"
|
|
445
|
-
" to method import_excel_sheet" % key
|
|
446
|
-
)
|
|
447
|
-
params[key] = val
|
|
448
|
-
del params['kwargs']
|
|
449
|
-
# verify the required parameter 'source_path' is set
|
|
450
|
-
if ('source_path' not in params or
|
|
451
|
-
params['source_path'] is None):
|
|
452
|
-
raise ValueError("Missing the required parameter `source_path` when calling `import_excel_sheet`") # noqa: E501
|
|
453
|
-
# verify the required parameter 'sheetname' is set
|
|
454
|
-
if ('sheetname' not in params or
|
|
455
|
-
params['sheetname'] is None):
|
|
456
|
-
raise ValueError("Missing the required parameter `sheetname` when calling `import_excel_sheet`") # noqa: E501
|
|
457
|
-
# verify the required parameter 'input_file_path' is set
|
|
458
|
-
if ('input_file_path' not in params or
|
|
459
|
-
params['input_file_path'] is None):
|
|
460
|
-
raise ValueError("Missing the required parameter `input_file_path` when calling `import_excel_sheet`") # noqa: E501
|
|
461
|
-
|
|
462
|
-
collection_formats = {}
|
|
463
|
-
|
|
464
|
-
path_params = {}
|
|
465
|
-
|
|
466
|
-
query_params = []
|
|
467
|
-
if 'source_path' in params:
|
|
468
|
-
query_params.append(('sourcePath', params['source_path'])) # noqa: E501
|
|
469
|
-
if 'sheetname' in params:
|
|
470
|
-
query_params.append(('sheetname', params['sheetname'])) # noqa: E501
|
|
471
|
-
if 'input_file_path' in params:
|
|
472
|
-
query_params.append(('inputFilePath', params['input_file_path'])) # noqa: E501
|
|
473
|
-
|
|
474
|
-
header_params = {}
|
|
475
|
-
|
|
476
|
-
form_params = []
|
|
477
|
-
local_var_files = {}
|
|
478
|
-
|
|
479
|
-
body_params = None
|
|
480
|
-
# HTTP header `Accept`
|
|
481
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
482
|
-
['application/json', 'text/json']) # noqa: E501
|
|
483
|
-
|
|
484
|
-
# Authentication setting
|
|
485
|
-
auth_settings = [] # noqa: E501
|
|
486
|
-
|
|
487
|
-
return self.api_client.call_api(
|
|
488
|
-
'/teamdbapi/v2.0/importexcelsheet', 'POST',
|
|
489
|
-
path_params,
|
|
490
|
-
query_params,
|
|
491
|
-
header_params,
|
|
492
|
-
body=body_params,
|
|
493
|
-
post_params=form_params,
|
|
494
|
-
files=local_var_files,
|
|
495
|
-
response_type=None, # noqa: E501
|
|
496
|
-
auth_settings=auth_settings,
|
|
497
|
-
async_req=params.get('async_req'),
|
|
498
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
499
|
-
_preload_content=params.get('_preload_content', True),
|
|
500
|
-
_request_timeout=params.get('_request_timeout'),
|
|
501
|
-
collection_formats=collection_formats)
|
|
502
|
-
|
|
503
|
-
def import_xml_file_current_context(self, source_id, input_file_path, **kwargs): # noqa: E501
|
|
504
|
-
"""[Command] Import the data from an XML file for the current context # noqa: E501
|
|
505
|
-
|
|
506
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
507
|
-
asynchronous HTTP request, please pass async_req=True
|
|
508
|
-
>>> thread = api.import_xml_file_current_context(source_id, input_file_path, async_req=True)
|
|
509
|
-
>>> result = thread.get()
|
|
510
|
-
|
|
511
|
-
:param async_req bool
|
|
512
|
-
:param str source_id: The source ID configured in the teamdb fields that you want to import (required)
|
|
513
|
-
:param str input_file_path: The XML file path you want to import. For example : C:\\path\\MyFile.xml (required)
|
|
514
|
-
:return: None
|
|
515
|
-
If the method is called asynchronously,
|
|
516
|
-
returns the request thread.
|
|
517
|
-
"""
|
|
518
|
-
kwargs['_return_http_data_only'] = True
|
|
519
|
-
if kwargs.get('async_req'):
|
|
520
|
-
return self.import_xml_file_current_context_with_http_info(source_id, input_file_path, **kwargs) # noqa: E501
|
|
521
|
-
else:
|
|
522
|
-
(data) = self.import_xml_file_current_context_with_http_info(source_id, input_file_path, **kwargs) # noqa: E501
|
|
523
|
-
return data
|
|
524
|
-
|
|
525
|
-
def import_xml_file_current_context_with_http_info(self, source_id, input_file_path, **kwargs): # noqa: E501
|
|
526
|
-
"""[Command] Import the data from an XML file for the current context # noqa: E501
|
|
527
|
-
|
|
528
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
529
|
-
asynchronous HTTP request, please pass async_req=True
|
|
530
|
-
>>> thread = api.import_xml_file_current_context_with_http_info(source_id, input_file_path, async_req=True)
|
|
531
|
-
>>> result = thread.get()
|
|
532
|
-
|
|
533
|
-
:param async_req bool
|
|
534
|
-
:param str source_id: The source ID configured in the teamdb fields that you want to import (required)
|
|
535
|
-
:param str input_file_path: The XML file path you want to import. For example : C:\\path\\MyFile.xml (required)
|
|
536
|
-
:return: None
|
|
537
|
-
If the method is called asynchronously,
|
|
538
|
-
returns the request thread.
|
|
539
|
-
"""
|
|
540
|
-
|
|
541
|
-
all_params = ['source_id', 'input_file_path'] # noqa: E501
|
|
542
|
-
all_params.append('async_req')
|
|
543
|
-
all_params.append('_return_http_data_only')
|
|
544
|
-
all_params.append('_preload_content')
|
|
545
|
-
all_params.append('_request_timeout')
|
|
546
|
-
|
|
547
|
-
params = locals()
|
|
548
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
549
|
-
if key not in all_params:
|
|
550
|
-
raise TypeError(
|
|
551
|
-
"Got an unexpected keyword argument '%s'"
|
|
552
|
-
" to method import_xml_file_current_context" % key
|
|
553
|
-
)
|
|
554
|
-
params[key] = val
|
|
555
|
-
del params['kwargs']
|
|
556
|
-
# verify the required parameter 'source_id' is set
|
|
557
|
-
if ('source_id' not in params or
|
|
558
|
-
params['source_id'] is None):
|
|
559
|
-
raise ValueError("Missing the required parameter `source_id` when calling `import_xml_file_current_context`") # noqa: E501
|
|
560
|
-
# verify the required parameter 'input_file_path' is set
|
|
561
|
-
if ('input_file_path' not in params or
|
|
562
|
-
params['input_file_path'] is None):
|
|
563
|
-
raise ValueError("Missing the required parameter `input_file_path` when calling `import_xml_file_current_context`") # noqa: E501
|
|
564
|
-
|
|
565
|
-
collection_formats = {}
|
|
566
|
-
|
|
567
|
-
path_params = {}
|
|
568
|
-
|
|
569
|
-
query_params = []
|
|
570
|
-
if 'source_id' in params:
|
|
571
|
-
query_params.append(('sourceId', params['source_id'])) # noqa: E501
|
|
572
|
-
if 'input_file_path' in params:
|
|
573
|
-
query_params.append(('inputFilePath', params['input_file_path'])) # noqa: E501
|
|
574
|
-
|
|
575
|
-
header_params = {}
|
|
576
|
-
|
|
577
|
-
form_params = []
|
|
578
|
-
local_var_files = {}
|
|
579
|
-
|
|
580
|
-
body_params = None
|
|
581
|
-
# HTTP header `Accept`
|
|
582
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
583
|
-
['application/json', 'text/json']) # noqa: E501
|
|
584
|
-
|
|
585
|
-
# Authentication setting
|
|
586
|
-
auth_settings = [] # noqa: E501
|
|
587
|
-
|
|
588
|
-
return self.api_client.call_api(
|
|
589
|
-
'/teamdbapi/v2.0/importxmlfile', 'POST',
|
|
590
|
-
path_params,
|
|
591
|
-
query_params,
|
|
592
|
-
header_params,
|
|
593
|
-
body=body_params,
|
|
594
|
-
post_params=form_params,
|
|
595
|
-
files=local_var_files,
|
|
596
|
-
response_type=None, # noqa: E501
|
|
597
|
-
auth_settings=auth_settings,
|
|
598
|
-
async_req=params.get('async_req'),
|
|
599
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
600
|
-
_preload_content=params.get('_preload_content', True),
|
|
601
|
-
_request_timeout=params.get('_request_timeout'),
|
|
602
|
-
collection_formats=collection_formats)
|
|
603
|
-
|
|
604
|
-
def import_xml_file_given_context(self, event_id, car_id, session_id, run_id, lap_id, source_id, input_file_path, **kwargs): # noqa: E501
|
|
605
|
-
"""[Command] Import the data from an XM Lfile a given source Id and a given context # noqa: E501
|
|
606
|
-
|
|
607
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
608
|
-
asynchronous HTTP request, please pass async_req=True
|
|
609
|
-
>>> thread = api.import_xml_file_given_context(event_id, car_id, session_id, run_id, lap_id, source_id, input_file_path, async_req=True)
|
|
610
|
-
>>> result = thread.get()
|
|
611
|
-
|
|
612
|
-
:param async_req bool
|
|
613
|
-
:param str event_id: The event ID to which perform the import (required)
|
|
614
|
-
:param str car_id: The car ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
615
|
-
:param str session_id: The session ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
616
|
-
:param str run_id: The run ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
617
|
-
:param str lap_id: The lap ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
618
|
-
:param str source_id: The source ID configured in the teamdb fields that you want to import (required)
|
|
619
|
-
:param str input_file_path: The XML file path you want to import. For example : C:\\path\\MyFile.xml (required)
|
|
620
|
-
:return: None
|
|
621
|
-
If the method is called asynchronously,
|
|
622
|
-
returns the request thread.
|
|
623
|
-
"""
|
|
624
|
-
kwargs['_return_http_data_only'] = True
|
|
625
|
-
if kwargs.get('async_req'):
|
|
626
|
-
return self.import_xml_file_given_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, source_id, input_file_path, **kwargs) # noqa: E501
|
|
627
|
-
else:
|
|
628
|
-
(data) = self.import_xml_file_given_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, source_id, input_file_path, **kwargs) # noqa: E501
|
|
629
|
-
return data
|
|
630
|
-
|
|
631
|
-
def import_xml_file_given_context_with_http_info(self, event_id, car_id, session_id, run_id, lap_id, source_id, input_file_path, **kwargs): # noqa: E501
|
|
632
|
-
"""[Command] Import the data from an XM Lfile a given source Id and a given context # noqa: E501
|
|
633
|
-
|
|
634
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
635
|
-
asynchronous HTTP request, please pass async_req=True
|
|
636
|
-
>>> thread = api.import_xml_file_given_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, source_id, input_file_path, async_req=True)
|
|
637
|
-
>>> result = thread.get()
|
|
638
|
-
|
|
639
|
-
:param async_req bool
|
|
640
|
-
:param str event_id: The event ID to which perform the import (required)
|
|
641
|
-
:param str car_id: The car ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
642
|
-
:param str session_id: The session ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
643
|
-
:param str run_id: The run ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
644
|
-
:param str lap_id: The lap ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
645
|
-
:param str source_id: The source ID configured in the teamdb fields that you want to import (required)
|
|
646
|
-
:param str input_file_path: The XML file path you want to import. For example : C:\\path\\MyFile.xml (required)
|
|
647
|
-
:return: None
|
|
648
|
-
If the method is called asynchronously,
|
|
649
|
-
returns the request thread.
|
|
650
|
-
"""
|
|
651
|
-
|
|
652
|
-
all_params = ['event_id', 'car_id', 'session_id', 'run_id', 'lap_id', 'source_id', 'input_file_path'] # noqa: E501
|
|
653
|
-
all_params.append('async_req')
|
|
654
|
-
all_params.append('_return_http_data_only')
|
|
655
|
-
all_params.append('_preload_content')
|
|
656
|
-
all_params.append('_request_timeout')
|
|
657
|
-
|
|
658
|
-
params = locals()
|
|
659
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
660
|
-
if key not in all_params:
|
|
661
|
-
raise TypeError(
|
|
662
|
-
"Got an unexpected keyword argument '%s'"
|
|
663
|
-
" to method import_xml_file_given_context" % key
|
|
664
|
-
)
|
|
665
|
-
params[key] = val
|
|
666
|
-
del params['kwargs']
|
|
667
|
-
# verify the required parameter 'event_id' is set
|
|
668
|
-
if ('event_id' not in params or
|
|
669
|
-
params['event_id'] is None):
|
|
670
|
-
raise ValueError("Missing the required parameter `event_id` when calling `import_xml_file_given_context`") # noqa: E501
|
|
671
|
-
# verify the required parameter 'car_id' is set
|
|
672
|
-
if ('car_id' not in params or
|
|
673
|
-
params['car_id'] is None):
|
|
674
|
-
raise ValueError("Missing the required parameter `car_id` when calling `import_xml_file_given_context`") # noqa: E501
|
|
675
|
-
# verify the required parameter 'session_id' is set
|
|
676
|
-
if ('session_id' not in params or
|
|
677
|
-
params['session_id'] is None):
|
|
678
|
-
raise ValueError("Missing the required parameter `session_id` when calling `import_xml_file_given_context`") # noqa: E501
|
|
679
|
-
# verify the required parameter 'run_id' is set
|
|
680
|
-
if ('run_id' not in params or
|
|
681
|
-
params['run_id'] is None):
|
|
682
|
-
raise ValueError("Missing the required parameter `run_id` when calling `import_xml_file_given_context`") # noqa: E501
|
|
683
|
-
# verify the required parameter 'lap_id' is set
|
|
684
|
-
if ('lap_id' not in params or
|
|
685
|
-
params['lap_id'] is None):
|
|
686
|
-
raise ValueError("Missing the required parameter `lap_id` when calling `import_xml_file_given_context`") # noqa: E501
|
|
687
|
-
# verify the required parameter 'source_id' is set
|
|
688
|
-
if ('source_id' not in params or
|
|
689
|
-
params['source_id'] is None):
|
|
690
|
-
raise ValueError("Missing the required parameter `source_id` when calling `import_xml_file_given_context`") # noqa: E501
|
|
691
|
-
# verify the required parameter 'input_file_path' is set
|
|
692
|
-
if ('input_file_path' not in params or
|
|
693
|
-
params['input_file_path'] is None):
|
|
694
|
-
raise ValueError("Missing the required parameter `input_file_path` when calling `import_xml_file_given_context`") # noqa: E501
|
|
695
|
-
|
|
696
|
-
collection_formats = {}
|
|
697
|
-
|
|
698
|
-
path_params = {}
|
|
699
|
-
if 'event_id' in params:
|
|
700
|
-
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
701
|
-
if 'car_id' in params:
|
|
702
|
-
path_params['carId'] = params['car_id'] # noqa: E501
|
|
703
|
-
if 'session_id' in params:
|
|
704
|
-
path_params['sessionId'] = params['session_id'] # noqa: E501
|
|
705
|
-
if 'run_id' in params:
|
|
706
|
-
path_params['runId'] = params['run_id'] # noqa: E501
|
|
707
|
-
if 'lap_id' in params:
|
|
708
|
-
path_params['lapId'] = params['lap_id'] # noqa: E501
|
|
709
|
-
|
|
710
|
-
query_params = []
|
|
711
|
-
if 'source_id' in params:
|
|
712
|
-
query_params.append(('sourceId', params['source_id'])) # noqa: E501
|
|
713
|
-
if 'input_file_path' in params:
|
|
714
|
-
query_params.append(('inputFilePath', params['input_file_path'])) # noqa: E501
|
|
715
|
-
|
|
716
|
-
header_params = {}
|
|
717
|
-
|
|
718
|
-
form_params = []
|
|
719
|
-
local_var_files = {}
|
|
720
|
-
|
|
721
|
-
body_params = None
|
|
722
|
-
# HTTP header `Accept`
|
|
723
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
724
|
-
['application/json', 'text/json']) # noqa: E501
|
|
725
|
-
|
|
726
|
-
# Authentication setting
|
|
727
|
-
auth_settings = [] # noqa: E501
|
|
728
|
-
|
|
729
|
-
return self.api_client.call_api(
|
|
730
|
-
'/teamdbapi/v2.0/eventId/{eventId}/carId/{carId}/sessionId/{sessionId}/runId/{runId}/lapId/{lapId}/importxmlfiletocontext', 'POST',
|
|
731
|
-
path_params,
|
|
732
|
-
query_params,
|
|
733
|
-
header_params,
|
|
734
|
-
body=body_params,
|
|
735
|
-
post_params=form_params,
|
|
736
|
-
files=local_var_files,
|
|
737
|
-
response_type=None, # noqa: E501
|
|
738
|
-
auth_settings=auth_settings,
|
|
739
|
-
async_req=params.get('async_req'),
|
|
740
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
741
|
-
_preload_content=params.get('_preload_content', True),
|
|
742
|
-
_request_timeout=params.get('_request_timeout'),
|
|
743
|
-
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 ImportExportApi(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 export_xml_file_current_context(self, xml_data_format, source_id, output_file_path, **kwargs): # noqa: E501
|
|
36
|
+
"""[Command] Export the data to an XML file for the current context. # 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.export_xml_file_current_context(xml_data_format, source_id, output_file_path, async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:param str xml_data_format: The XML file format (Wintax or TeamDB) (required)
|
|
45
|
+
:param str source_id: The Source ID string for which you want to export the data (required)
|
|
46
|
+
:param str output_file_path: The path to the file to create. You have to provide the file extension for example : C:\\path\\MyFile.xml (required)
|
|
47
|
+
:return: None
|
|
48
|
+
If the method is called asynchronously,
|
|
49
|
+
returns the request thread.
|
|
50
|
+
"""
|
|
51
|
+
kwargs['_return_http_data_only'] = True
|
|
52
|
+
if kwargs.get('async_req'):
|
|
53
|
+
return self.export_xml_file_current_context_with_http_info(xml_data_format, source_id, output_file_path, **kwargs) # noqa: E501
|
|
54
|
+
else:
|
|
55
|
+
(data) = self.export_xml_file_current_context_with_http_info(xml_data_format, source_id, output_file_path, **kwargs) # noqa: E501
|
|
56
|
+
return data
|
|
57
|
+
|
|
58
|
+
def export_xml_file_current_context_with_http_info(self, xml_data_format, source_id, output_file_path, **kwargs): # noqa: E501
|
|
59
|
+
"""[Command] Export the data to an XML file for the current context. # noqa: E501
|
|
60
|
+
|
|
61
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
62
|
+
asynchronous HTTP request, please pass async_req=True
|
|
63
|
+
>>> thread = api.export_xml_file_current_context_with_http_info(xml_data_format, source_id, output_file_path, async_req=True)
|
|
64
|
+
>>> result = thread.get()
|
|
65
|
+
|
|
66
|
+
:param async_req bool
|
|
67
|
+
:param str xml_data_format: The XML file format (Wintax or TeamDB) (required)
|
|
68
|
+
:param str source_id: The Source ID string for which you want to export the data (required)
|
|
69
|
+
:param str output_file_path: The path to the file to create. You have to provide the file extension for example : C:\\path\\MyFile.xml (required)
|
|
70
|
+
:return: None
|
|
71
|
+
If the method is called asynchronously,
|
|
72
|
+
returns the request thread.
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
all_params = ['xml_data_format', 'source_id', 'output_file_path'] # noqa: E501
|
|
76
|
+
all_params.append('async_req')
|
|
77
|
+
all_params.append('_return_http_data_only')
|
|
78
|
+
all_params.append('_preload_content')
|
|
79
|
+
all_params.append('_request_timeout')
|
|
80
|
+
|
|
81
|
+
params = locals()
|
|
82
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
83
|
+
if key not in all_params:
|
|
84
|
+
raise TypeError(
|
|
85
|
+
"Got an unexpected keyword argument '%s'"
|
|
86
|
+
" to method export_xml_file_current_context" % key
|
|
87
|
+
)
|
|
88
|
+
params[key] = val
|
|
89
|
+
del params['kwargs']
|
|
90
|
+
# verify the required parameter 'xml_data_format' is set
|
|
91
|
+
if ('xml_data_format' not in params or
|
|
92
|
+
params['xml_data_format'] is None):
|
|
93
|
+
raise ValueError("Missing the required parameter `xml_data_format` when calling `export_xml_file_current_context`") # noqa: E501
|
|
94
|
+
# verify the required parameter 'source_id' is set
|
|
95
|
+
if ('source_id' not in params or
|
|
96
|
+
params['source_id'] is None):
|
|
97
|
+
raise ValueError("Missing the required parameter `source_id` when calling `export_xml_file_current_context`") # noqa: E501
|
|
98
|
+
# verify the required parameter 'output_file_path' is set
|
|
99
|
+
if ('output_file_path' not in params or
|
|
100
|
+
params['output_file_path'] is None):
|
|
101
|
+
raise ValueError("Missing the required parameter `output_file_path` when calling `export_xml_file_current_context`") # noqa: E501
|
|
102
|
+
|
|
103
|
+
collection_formats = {}
|
|
104
|
+
|
|
105
|
+
path_params = {}
|
|
106
|
+
|
|
107
|
+
query_params = []
|
|
108
|
+
if 'xml_data_format' in params:
|
|
109
|
+
query_params.append(('xmlDataFormat', params['xml_data_format'])) # noqa: E501
|
|
110
|
+
if 'source_id' in params:
|
|
111
|
+
query_params.append(('sourceId', params['source_id'])) # noqa: E501
|
|
112
|
+
if 'output_file_path' in params:
|
|
113
|
+
query_params.append(('outputFilePath', params['output_file_path'])) # noqa: E501
|
|
114
|
+
|
|
115
|
+
header_params = {}
|
|
116
|
+
|
|
117
|
+
form_params = []
|
|
118
|
+
local_var_files = {}
|
|
119
|
+
|
|
120
|
+
body_params = None
|
|
121
|
+
# HTTP header `Accept`
|
|
122
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
123
|
+
['application/json', 'text/json']) # noqa: E501
|
|
124
|
+
|
|
125
|
+
# Authentication setting
|
|
126
|
+
auth_settings = [] # noqa: E501
|
|
127
|
+
|
|
128
|
+
return self.api_client.call_api(
|
|
129
|
+
'/teamdbapi/v2.0/exportxmlfile', 'POST',
|
|
130
|
+
path_params,
|
|
131
|
+
query_params,
|
|
132
|
+
header_params,
|
|
133
|
+
body=body_params,
|
|
134
|
+
post_params=form_params,
|
|
135
|
+
files=local_var_files,
|
|
136
|
+
response_type=None, # noqa: E501
|
|
137
|
+
auth_settings=auth_settings,
|
|
138
|
+
async_req=params.get('async_req'),
|
|
139
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
140
|
+
_preload_content=params.get('_preload_content', True),
|
|
141
|
+
_request_timeout=params.get('_request_timeout'),
|
|
142
|
+
collection_formats=collection_formats)
|
|
143
|
+
|
|
144
|
+
def export_xml_file_given_context(self, event_id, car_id, session_id, run_id, lap_id, xml_data_format, source_id, output_file_path, **kwargs): # noqa: E501
|
|
145
|
+
"""[Command] Export the data to an XML file for the given context. # noqa: E501
|
|
146
|
+
|
|
147
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
148
|
+
asynchronous HTTP request, please pass async_req=True
|
|
149
|
+
>>> thread = api.export_xml_file_given_context(event_id, car_id, session_id, run_id, lap_id, xml_data_format, source_id, output_file_path, async_req=True)
|
|
150
|
+
>>> result = thread.get()
|
|
151
|
+
|
|
152
|
+
:param async_req bool
|
|
153
|
+
:param str event_id: The event ID from which perform the export (required)
|
|
154
|
+
:param str car_id: The car ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
155
|
+
:param str session_id: The session ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
156
|
+
:param str run_id: The run ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
157
|
+
:param str lap_id: The lap ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
158
|
+
:param str xml_data_format: The XML file format (Wintax or TeamDB) (required)
|
|
159
|
+
:param str source_id: The Source ID string for which you want to export the data (required)
|
|
160
|
+
:param str output_file_path: The path to the file to create. You have to provide the file extension for example : C:\\path\\MyFile.xml (required)
|
|
161
|
+
:return: None
|
|
162
|
+
If the method is called asynchronously,
|
|
163
|
+
returns the request thread.
|
|
164
|
+
"""
|
|
165
|
+
kwargs['_return_http_data_only'] = True
|
|
166
|
+
if kwargs.get('async_req'):
|
|
167
|
+
return self.export_xml_file_given_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, xml_data_format, source_id, output_file_path, **kwargs) # noqa: E501
|
|
168
|
+
else:
|
|
169
|
+
(data) = self.export_xml_file_given_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, xml_data_format, source_id, output_file_path, **kwargs) # noqa: E501
|
|
170
|
+
return data
|
|
171
|
+
|
|
172
|
+
def export_xml_file_given_context_with_http_info(self, event_id, car_id, session_id, run_id, lap_id, xml_data_format, source_id, output_file_path, **kwargs): # noqa: E501
|
|
173
|
+
"""[Command] Export the data to an XML file for the given context. # noqa: E501
|
|
174
|
+
|
|
175
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
176
|
+
asynchronous HTTP request, please pass async_req=True
|
|
177
|
+
>>> thread = api.export_xml_file_given_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, xml_data_format, source_id, output_file_path, async_req=True)
|
|
178
|
+
>>> result = thread.get()
|
|
179
|
+
|
|
180
|
+
:param async_req bool
|
|
181
|
+
:param str event_id: The event ID from which perform the export (required)
|
|
182
|
+
:param str car_id: The car ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
183
|
+
:param str session_id: The session ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
184
|
+
:param str run_id: The run ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
185
|
+
:param str lap_id: The lap ID from which perform the export or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
186
|
+
:param str xml_data_format: The XML file format (Wintax or TeamDB) (required)
|
|
187
|
+
:param str source_id: The Source ID string for which you want to export the data (required)
|
|
188
|
+
:param str output_file_path: The path to the file to create. You have to provide the file extension for example : C:\\path\\MyFile.xml (required)
|
|
189
|
+
:return: None
|
|
190
|
+
If the method is called asynchronously,
|
|
191
|
+
returns the request thread.
|
|
192
|
+
"""
|
|
193
|
+
|
|
194
|
+
all_params = ['event_id', 'car_id', 'session_id', 'run_id', 'lap_id', 'xml_data_format', 'source_id', 'output_file_path'] # noqa: E501
|
|
195
|
+
all_params.append('async_req')
|
|
196
|
+
all_params.append('_return_http_data_only')
|
|
197
|
+
all_params.append('_preload_content')
|
|
198
|
+
all_params.append('_request_timeout')
|
|
199
|
+
|
|
200
|
+
params = locals()
|
|
201
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
202
|
+
if key not in all_params:
|
|
203
|
+
raise TypeError(
|
|
204
|
+
"Got an unexpected keyword argument '%s'"
|
|
205
|
+
" to method export_xml_file_given_context" % key
|
|
206
|
+
)
|
|
207
|
+
params[key] = val
|
|
208
|
+
del params['kwargs']
|
|
209
|
+
# verify the required parameter 'event_id' is set
|
|
210
|
+
if ('event_id' not in params or
|
|
211
|
+
params['event_id'] is None):
|
|
212
|
+
raise ValueError("Missing the required parameter `event_id` when calling `export_xml_file_given_context`") # noqa: E501
|
|
213
|
+
# verify the required parameter 'car_id' is set
|
|
214
|
+
if ('car_id' not in params or
|
|
215
|
+
params['car_id'] is None):
|
|
216
|
+
raise ValueError("Missing the required parameter `car_id` when calling `export_xml_file_given_context`") # noqa: E501
|
|
217
|
+
# verify the required parameter 'session_id' is set
|
|
218
|
+
if ('session_id' not in params or
|
|
219
|
+
params['session_id'] is None):
|
|
220
|
+
raise ValueError("Missing the required parameter `session_id` when calling `export_xml_file_given_context`") # noqa: E501
|
|
221
|
+
# verify the required parameter 'run_id' is set
|
|
222
|
+
if ('run_id' not in params or
|
|
223
|
+
params['run_id'] is None):
|
|
224
|
+
raise ValueError("Missing the required parameter `run_id` when calling `export_xml_file_given_context`") # noqa: E501
|
|
225
|
+
# verify the required parameter 'lap_id' is set
|
|
226
|
+
if ('lap_id' not in params or
|
|
227
|
+
params['lap_id'] is None):
|
|
228
|
+
raise ValueError("Missing the required parameter `lap_id` when calling `export_xml_file_given_context`") # noqa: E501
|
|
229
|
+
# verify the required parameter 'xml_data_format' is set
|
|
230
|
+
if ('xml_data_format' not in params or
|
|
231
|
+
params['xml_data_format'] is None):
|
|
232
|
+
raise ValueError("Missing the required parameter `xml_data_format` when calling `export_xml_file_given_context`") # noqa: E501
|
|
233
|
+
# verify the required parameter 'source_id' is set
|
|
234
|
+
if ('source_id' not in params or
|
|
235
|
+
params['source_id'] is None):
|
|
236
|
+
raise ValueError("Missing the required parameter `source_id` when calling `export_xml_file_given_context`") # noqa: E501
|
|
237
|
+
# verify the required parameter 'output_file_path' is set
|
|
238
|
+
if ('output_file_path' not in params or
|
|
239
|
+
params['output_file_path'] is None):
|
|
240
|
+
raise ValueError("Missing the required parameter `output_file_path` when calling `export_xml_file_given_context`") # noqa: E501
|
|
241
|
+
|
|
242
|
+
collection_formats = {}
|
|
243
|
+
|
|
244
|
+
path_params = {}
|
|
245
|
+
if 'event_id' in params:
|
|
246
|
+
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
247
|
+
if 'car_id' in params:
|
|
248
|
+
path_params['carId'] = params['car_id'] # noqa: E501
|
|
249
|
+
if 'session_id' in params:
|
|
250
|
+
path_params['sessionId'] = params['session_id'] # noqa: E501
|
|
251
|
+
if 'run_id' in params:
|
|
252
|
+
path_params['runId'] = params['run_id'] # noqa: E501
|
|
253
|
+
if 'lap_id' in params:
|
|
254
|
+
path_params['lapId'] = params['lap_id'] # noqa: E501
|
|
255
|
+
|
|
256
|
+
query_params = []
|
|
257
|
+
if 'xml_data_format' in params:
|
|
258
|
+
query_params.append(('xmlDataFormat', params['xml_data_format'])) # noqa: E501
|
|
259
|
+
if 'source_id' in params:
|
|
260
|
+
query_params.append(('sourceId', params['source_id'])) # noqa: E501
|
|
261
|
+
if 'output_file_path' in params:
|
|
262
|
+
query_params.append(('outputFilePath', params['output_file_path'])) # noqa: E501
|
|
263
|
+
|
|
264
|
+
header_params = {}
|
|
265
|
+
|
|
266
|
+
form_params = []
|
|
267
|
+
local_var_files = {}
|
|
268
|
+
|
|
269
|
+
body_params = None
|
|
270
|
+
# HTTP header `Accept`
|
|
271
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
272
|
+
['application/json', 'text/json']) # noqa: E501
|
|
273
|
+
|
|
274
|
+
# Authentication setting
|
|
275
|
+
auth_settings = [] # noqa: E501
|
|
276
|
+
|
|
277
|
+
return self.api_client.call_api(
|
|
278
|
+
'/teamdbapi/v2.0/eventId/{eventId}/carId/{carId}/sessionId/{sessionId}/runId/{runId}/lapId/{lapId}/exportxmlfile', 'POST',
|
|
279
|
+
path_params,
|
|
280
|
+
query_params,
|
|
281
|
+
header_params,
|
|
282
|
+
body=body_params,
|
|
283
|
+
post_params=form_params,
|
|
284
|
+
files=local_var_files,
|
|
285
|
+
response_type=None, # noqa: E501
|
|
286
|
+
auth_settings=auth_settings,
|
|
287
|
+
async_req=params.get('async_req'),
|
|
288
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
289
|
+
_preload_content=params.get('_preload_content', True),
|
|
290
|
+
_request_timeout=params.get('_request_timeout'),
|
|
291
|
+
collection_formats=collection_formats)
|
|
292
|
+
|
|
293
|
+
def import_excel_file(self, source_path, input_file_path, **kwargs): # noqa: E501
|
|
294
|
+
"""[Command] Import the data from an Excel file and a given source Path # noqa: E501
|
|
295
|
+
|
|
296
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
297
|
+
asynchronous HTTP request, please pass async_req=True
|
|
298
|
+
>>> thread = api.import_excel_file(source_path, input_file_path, async_req=True)
|
|
299
|
+
>>> result = thread.get()
|
|
300
|
+
|
|
301
|
+
:param async_req bool
|
|
302
|
+
:param str source_path: The source path configured in the teamdb fields that you want to import (required)
|
|
303
|
+
:param str input_file_path: The Excel file path you want to import. For example : C:\\path\\MyFile.xlsx (required)
|
|
304
|
+
:return: None
|
|
305
|
+
If the method is called asynchronously,
|
|
306
|
+
returns the request thread.
|
|
307
|
+
"""
|
|
308
|
+
kwargs['_return_http_data_only'] = True
|
|
309
|
+
if kwargs.get('async_req'):
|
|
310
|
+
return self.import_excel_file_with_http_info(source_path, input_file_path, **kwargs) # noqa: E501
|
|
311
|
+
else:
|
|
312
|
+
(data) = self.import_excel_file_with_http_info(source_path, input_file_path, **kwargs) # noqa: E501
|
|
313
|
+
return data
|
|
314
|
+
|
|
315
|
+
def import_excel_file_with_http_info(self, source_path, input_file_path, **kwargs): # noqa: E501
|
|
316
|
+
"""[Command] Import the data from an Excel file and a given source Path # noqa: E501
|
|
317
|
+
|
|
318
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
319
|
+
asynchronous HTTP request, please pass async_req=True
|
|
320
|
+
>>> thread = api.import_excel_file_with_http_info(source_path, input_file_path, async_req=True)
|
|
321
|
+
>>> result = thread.get()
|
|
322
|
+
|
|
323
|
+
:param async_req bool
|
|
324
|
+
:param str source_path: The source path configured in the teamdb fields that you want to import (required)
|
|
325
|
+
:param str input_file_path: The Excel file path you want to import. For example : C:\\path\\MyFile.xlsx (required)
|
|
326
|
+
:return: None
|
|
327
|
+
If the method is called asynchronously,
|
|
328
|
+
returns the request thread.
|
|
329
|
+
"""
|
|
330
|
+
|
|
331
|
+
all_params = ['source_path', 'input_file_path'] # noqa: E501
|
|
332
|
+
all_params.append('async_req')
|
|
333
|
+
all_params.append('_return_http_data_only')
|
|
334
|
+
all_params.append('_preload_content')
|
|
335
|
+
all_params.append('_request_timeout')
|
|
336
|
+
|
|
337
|
+
params = locals()
|
|
338
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
339
|
+
if key not in all_params:
|
|
340
|
+
raise TypeError(
|
|
341
|
+
"Got an unexpected keyword argument '%s'"
|
|
342
|
+
" to method import_excel_file" % key
|
|
343
|
+
)
|
|
344
|
+
params[key] = val
|
|
345
|
+
del params['kwargs']
|
|
346
|
+
# verify the required parameter 'source_path' is set
|
|
347
|
+
if ('source_path' not in params or
|
|
348
|
+
params['source_path'] is None):
|
|
349
|
+
raise ValueError("Missing the required parameter `source_path` when calling `import_excel_file`") # noqa: E501
|
|
350
|
+
# verify the required parameter 'input_file_path' is set
|
|
351
|
+
if ('input_file_path' not in params or
|
|
352
|
+
params['input_file_path'] is None):
|
|
353
|
+
raise ValueError("Missing the required parameter `input_file_path` when calling `import_excel_file`") # noqa: E501
|
|
354
|
+
|
|
355
|
+
collection_formats = {}
|
|
356
|
+
|
|
357
|
+
path_params = {}
|
|
358
|
+
|
|
359
|
+
query_params = []
|
|
360
|
+
if 'source_path' in params:
|
|
361
|
+
query_params.append(('sourcePath', params['source_path'])) # noqa: E501
|
|
362
|
+
if 'input_file_path' in params:
|
|
363
|
+
query_params.append(('inputFilePath', params['input_file_path'])) # noqa: E501
|
|
364
|
+
|
|
365
|
+
header_params = {}
|
|
366
|
+
|
|
367
|
+
form_params = []
|
|
368
|
+
local_var_files = {}
|
|
369
|
+
|
|
370
|
+
body_params = None
|
|
371
|
+
# HTTP header `Accept`
|
|
372
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
373
|
+
['application/json', 'text/json']) # noqa: E501
|
|
374
|
+
|
|
375
|
+
# Authentication setting
|
|
376
|
+
auth_settings = [] # noqa: E501
|
|
377
|
+
|
|
378
|
+
return self.api_client.call_api(
|
|
379
|
+
'/teamdbapi/v2.0/importexcelfile', 'POST',
|
|
380
|
+
path_params,
|
|
381
|
+
query_params,
|
|
382
|
+
header_params,
|
|
383
|
+
body=body_params,
|
|
384
|
+
post_params=form_params,
|
|
385
|
+
files=local_var_files,
|
|
386
|
+
response_type=None, # noqa: E501
|
|
387
|
+
auth_settings=auth_settings,
|
|
388
|
+
async_req=params.get('async_req'),
|
|
389
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
390
|
+
_preload_content=params.get('_preload_content', True),
|
|
391
|
+
_request_timeout=params.get('_request_timeout'),
|
|
392
|
+
collection_formats=collection_formats)
|
|
393
|
+
|
|
394
|
+
def import_excel_sheet(self, source_path, sheetname, input_file_path, **kwargs): # noqa: E501
|
|
395
|
+
"""[Command] Import the data from specific sheet of an Excel file and a given source Path # noqa: E501
|
|
396
|
+
|
|
397
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
398
|
+
asynchronous HTTP request, please pass async_req=True
|
|
399
|
+
>>> thread = api.import_excel_sheet(source_path, sheetname, input_file_path, async_req=True)
|
|
400
|
+
>>> result = thread.get()
|
|
401
|
+
|
|
402
|
+
:param async_req bool
|
|
403
|
+
:param str source_path: The source path configured in the teamdb fields that you want to import (required)
|
|
404
|
+
:param str sheetname: The sheet name in the file (required)
|
|
405
|
+
:param str input_file_path: The Excel file path you want to import. For example : C:\\path\\MyFile.xlsx (required)
|
|
406
|
+
:return: None
|
|
407
|
+
If the method is called asynchronously,
|
|
408
|
+
returns the request thread.
|
|
409
|
+
"""
|
|
410
|
+
kwargs['_return_http_data_only'] = True
|
|
411
|
+
if kwargs.get('async_req'):
|
|
412
|
+
return self.import_excel_sheet_with_http_info(source_path, sheetname, input_file_path, **kwargs) # noqa: E501
|
|
413
|
+
else:
|
|
414
|
+
(data) = self.import_excel_sheet_with_http_info(source_path, sheetname, input_file_path, **kwargs) # noqa: E501
|
|
415
|
+
return data
|
|
416
|
+
|
|
417
|
+
def import_excel_sheet_with_http_info(self, source_path, sheetname, input_file_path, **kwargs): # noqa: E501
|
|
418
|
+
"""[Command] Import the data from specific sheet of an Excel file and a given source Path # noqa: E501
|
|
419
|
+
|
|
420
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
421
|
+
asynchronous HTTP request, please pass async_req=True
|
|
422
|
+
>>> thread = api.import_excel_sheet_with_http_info(source_path, sheetname, input_file_path, async_req=True)
|
|
423
|
+
>>> result = thread.get()
|
|
424
|
+
|
|
425
|
+
:param async_req bool
|
|
426
|
+
:param str source_path: The source path configured in the teamdb fields that you want to import (required)
|
|
427
|
+
:param str sheetname: The sheet name in the file (required)
|
|
428
|
+
:param str input_file_path: The Excel file path you want to import. For example : C:\\path\\MyFile.xlsx (required)
|
|
429
|
+
:return: None
|
|
430
|
+
If the method is called asynchronously,
|
|
431
|
+
returns the request thread.
|
|
432
|
+
"""
|
|
433
|
+
|
|
434
|
+
all_params = ['source_path', 'sheetname', 'input_file_path'] # noqa: E501
|
|
435
|
+
all_params.append('async_req')
|
|
436
|
+
all_params.append('_return_http_data_only')
|
|
437
|
+
all_params.append('_preload_content')
|
|
438
|
+
all_params.append('_request_timeout')
|
|
439
|
+
|
|
440
|
+
params = locals()
|
|
441
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
442
|
+
if key not in all_params:
|
|
443
|
+
raise TypeError(
|
|
444
|
+
"Got an unexpected keyword argument '%s'"
|
|
445
|
+
" to method import_excel_sheet" % key
|
|
446
|
+
)
|
|
447
|
+
params[key] = val
|
|
448
|
+
del params['kwargs']
|
|
449
|
+
# verify the required parameter 'source_path' is set
|
|
450
|
+
if ('source_path' not in params or
|
|
451
|
+
params['source_path'] is None):
|
|
452
|
+
raise ValueError("Missing the required parameter `source_path` when calling `import_excel_sheet`") # noqa: E501
|
|
453
|
+
# verify the required parameter 'sheetname' is set
|
|
454
|
+
if ('sheetname' not in params or
|
|
455
|
+
params['sheetname'] is None):
|
|
456
|
+
raise ValueError("Missing the required parameter `sheetname` when calling `import_excel_sheet`") # noqa: E501
|
|
457
|
+
# verify the required parameter 'input_file_path' is set
|
|
458
|
+
if ('input_file_path' not in params or
|
|
459
|
+
params['input_file_path'] is None):
|
|
460
|
+
raise ValueError("Missing the required parameter `input_file_path` when calling `import_excel_sheet`") # noqa: E501
|
|
461
|
+
|
|
462
|
+
collection_formats = {}
|
|
463
|
+
|
|
464
|
+
path_params = {}
|
|
465
|
+
|
|
466
|
+
query_params = []
|
|
467
|
+
if 'source_path' in params:
|
|
468
|
+
query_params.append(('sourcePath', params['source_path'])) # noqa: E501
|
|
469
|
+
if 'sheetname' in params:
|
|
470
|
+
query_params.append(('sheetname', params['sheetname'])) # noqa: E501
|
|
471
|
+
if 'input_file_path' in params:
|
|
472
|
+
query_params.append(('inputFilePath', params['input_file_path'])) # noqa: E501
|
|
473
|
+
|
|
474
|
+
header_params = {}
|
|
475
|
+
|
|
476
|
+
form_params = []
|
|
477
|
+
local_var_files = {}
|
|
478
|
+
|
|
479
|
+
body_params = None
|
|
480
|
+
# HTTP header `Accept`
|
|
481
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
482
|
+
['application/json', 'text/json']) # noqa: E501
|
|
483
|
+
|
|
484
|
+
# Authentication setting
|
|
485
|
+
auth_settings = [] # noqa: E501
|
|
486
|
+
|
|
487
|
+
return self.api_client.call_api(
|
|
488
|
+
'/teamdbapi/v2.0/importexcelsheet', 'POST',
|
|
489
|
+
path_params,
|
|
490
|
+
query_params,
|
|
491
|
+
header_params,
|
|
492
|
+
body=body_params,
|
|
493
|
+
post_params=form_params,
|
|
494
|
+
files=local_var_files,
|
|
495
|
+
response_type=None, # noqa: E501
|
|
496
|
+
auth_settings=auth_settings,
|
|
497
|
+
async_req=params.get('async_req'),
|
|
498
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
499
|
+
_preload_content=params.get('_preload_content', True),
|
|
500
|
+
_request_timeout=params.get('_request_timeout'),
|
|
501
|
+
collection_formats=collection_formats)
|
|
502
|
+
|
|
503
|
+
def import_xml_file_current_context(self, source_id, input_file_path, **kwargs): # noqa: E501
|
|
504
|
+
"""[Command] Import the data from an XML file for the current context # noqa: E501
|
|
505
|
+
|
|
506
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
507
|
+
asynchronous HTTP request, please pass async_req=True
|
|
508
|
+
>>> thread = api.import_xml_file_current_context(source_id, input_file_path, async_req=True)
|
|
509
|
+
>>> result = thread.get()
|
|
510
|
+
|
|
511
|
+
:param async_req bool
|
|
512
|
+
:param str source_id: The source ID configured in the teamdb fields that you want to import (required)
|
|
513
|
+
:param str input_file_path: The XML file path you want to import. For example : C:\\path\\MyFile.xml (required)
|
|
514
|
+
:return: None
|
|
515
|
+
If the method is called asynchronously,
|
|
516
|
+
returns the request thread.
|
|
517
|
+
"""
|
|
518
|
+
kwargs['_return_http_data_only'] = True
|
|
519
|
+
if kwargs.get('async_req'):
|
|
520
|
+
return self.import_xml_file_current_context_with_http_info(source_id, input_file_path, **kwargs) # noqa: E501
|
|
521
|
+
else:
|
|
522
|
+
(data) = self.import_xml_file_current_context_with_http_info(source_id, input_file_path, **kwargs) # noqa: E501
|
|
523
|
+
return data
|
|
524
|
+
|
|
525
|
+
def import_xml_file_current_context_with_http_info(self, source_id, input_file_path, **kwargs): # noqa: E501
|
|
526
|
+
"""[Command] Import the data from an XML file for the current context # noqa: E501
|
|
527
|
+
|
|
528
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
529
|
+
asynchronous HTTP request, please pass async_req=True
|
|
530
|
+
>>> thread = api.import_xml_file_current_context_with_http_info(source_id, input_file_path, async_req=True)
|
|
531
|
+
>>> result = thread.get()
|
|
532
|
+
|
|
533
|
+
:param async_req bool
|
|
534
|
+
:param str source_id: The source ID configured in the teamdb fields that you want to import (required)
|
|
535
|
+
:param str input_file_path: The XML file path you want to import. For example : C:\\path\\MyFile.xml (required)
|
|
536
|
+
:return: None
|
|
537
|
+
If the method is called asynchronously,
|
|
538
|
+
returns the request thread.
|
|
539
|
+
"""
|
|
540
|
+
|
|
541
|
+
all_params = ['source_id', 'input_file_path'] # noqa: E501
|
|
542
|
+
all_params.append('async_req')
|
|
543
|
+
all_params.append('_return_http_data_only')
|
|
544
|
+
all_params.append('_preload_content')
|
|
545
|
+
all_params.append('_request_timeout')
|
|
546
|
+
|
|
547
|
+
params = locals()
|
|
548
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
549
|
+
if key not in all_params:
|
|
550
|
+
raise TypeError(
|
|
551
|
+
"Got an unexpected keyword argument '%s'"
|
|
552
|
+
" to method import_xml_file_current_context" % key
|
|
553
|
+
)
|
|
554
|
+
params[key] = val
|
|
555
|
+
del params['kwargs']
|
|
556
|
+
# verify the required parameter 'source_id' is set
|
|
557
|
+
if ('source_id' not in params or
|
|
558
|
+
params['source_id'] is None):
|
|
559
|
+
raise ValueError("Missing the required parameter `source_id` when calling `import_xml_file_current_context`") # noqa: E501
|
|
560
|
+
# verify the required parameter 'input_file_path' is set
|
|
561
|
+
if ('input_file_path' not in params or
|
|
562
|
+
params['input_file_path'] is None):
|
|
563
|
+
raise ValueError("Missing the required parameter `input_file_path` when calling `import_xml_file_current_context`") # noqa: E501
|
|
564
|
+
|
|
565
|
+
collection_formats = {}
|
|
566
|
+
|
|
567
|
+
path_params = {}
|
|
568
|
+
|
|
569
|
+
query_params = []
|
|
570
|
+
if 'source_id' in params:
|
|
571
|
+
query_params.append(('sourceId', params['source_id'])) # noqa: E501
|
|
572
|
+
if 'input_file_path' in params:
|
|
573
|
+
query_params.append(('inputFilePath', params['input_file_path'])) # noqa: E501
|
|
574
|
+
|
|
575
|
+
header_params = {}
|
|
576
|
+
|
|
577
|
+
form_params = []
|
|
578
|
+
local_var_files = {}
|
|
579
|
+
|
|
580
|
+
body_params = None
|
|
581
|
+
# HTTP header `Accept`
|
|
582
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
583
|
+
['application/json', 'text/json']) # noqa: E501
|
|
584
|
+
|
|
585
|
+
# Authentication setting
|
|
586
|
+
auth_settings = [] # noqa: E501
|
|
587
|
+
|
|
588
|
+
return self.api_client.call_api(
|
|
589
|
+
'/teamdbapi/v2.0/importxmlfile', 'POST',
|
|
590
|
+
path_params,
|
|
591
|
+
query_params,
|
|
592
|
+
header_params,
|
|
593
|
+
body=body_params,
|
|
594
|
+
post_params=form_params,
|
|
595
|
+
files=local_var_files,
|
|
596
|
+
response_type=None, # noqa: E501
|
|
597
|
+
auth_settings=auth_settings,
|
|
598
|
+
async_req=params.get('async_req'),
|
|
599
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
600
|
+
_preload_content=params.get('_preload_content', True),
|
|
601
|
+
_request_timeout=params.get('_request_timeout'),
|
|
602
|
+
collection_formats=collection_formats)
|
|
603
|
+
|
|
604
|
+
def import_xml_file_given_context(self, event_id, car_id, session_id, run_id, lap_id, source_id, input_file_path, **kwargs): # noqa: E501
|
|
605
|
+
"""[Command] Import the data from an XM Lfile a given source Id and a given context # noqa: E501
|
|
606
|
+
|
|
607
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
608
|
+
asynchronous HTTP request, please pass async_req=True
|
|
609
|
+
>>> thread = api.import_xml_file_given_context(event_id, car_id, session_id, run_id, lap_id, source_id, input_file_path, async_req=True)
|
|
610
|
+
>>> result = thread.get()
|
|
611
|
+
|
|
612
|
+
:param async_req bool
|
|
613
|
+
:param str event_id: The event ID to which perform the import (required)
|
|
614
|
+
:param str car_id: The car ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
615
|
+
:param str session_id: The session ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
616
|
+
:param str run_id: The run ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
617
|
+
:param str lap_id: The lap ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
618
|
+
:param str source_id: The source ID configured in the teamdb fields that you want to import (required)
|
|
619
|
+
:param str input_file_path: The XML file path you want to import. For example : C:\\path\\MyFile.xml (required)
|
|
620
|
+
:return: None
|
|
621
|
+
If the method is called asynchronously,
|
|
622
|
+
returns the request thread.
|
|
623
|
+
"""
|
|
624
|
+
kwargs['_return_http_data_only'] = True
|
|
625
|
+
if kwargs.get('async_req'):
|
|
626
|
+
return self.import_xml_file_given_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, source_id, input_file_path, **kwargs) # noqa: E501
|
|
627
|
+
else:
|
|
628
|
+
(data) = self.import_xml_file_given_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, source_id, input_file_path, **kwargs) # noqa: E501
|
|
629
|
+
return data
|
|
630
|
+
|
|
631
|
+
def import_xml_file_given_context_with_http_info(self, event_id, car_id, session_id, run_id, lap_id, source_id, input_file_path, **kwargs): # noqa: E501
|
|
632
|
+
"""[Command] Import the data from an XM Lfile a given source Id and a given context # noqa: E501
|
|
633
|
+
|
|
634
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
635
|
+
asynchronous HTTP request, please pass async_req=True
|
|
636
|
+
>>> thread = api.import_xml_file_given_context_with_http_info(event_id, car_id, session_id, run_id, lap_id, source_id, input_file_path, async_req=True)
|
|
637
|
+
>>> result = thread.get()
|
|
638
|
+
|
|
639
|
+
:param async_req bool
|
|
640
|
+
:param str event_id: The event ID to which perform the import (required)
|
|
641
|
+
:param str car_id: The car ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
642
|
+
:param str session_id: The session ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
643
|
+
:param str run_id: The run ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
644
|
+
:param str lap_id: The lap ID to which perform the import or the empty id 00000000-0000-0000-0000-000000000000 (required)
|
|
645
|
+
:param str source_id: The source ID configured in the teamdb fields that you want to import (required)
|
|
646
|
+
:param str input_file_path: The XML file path you want to import. For example : C:\\path\\MyFile.xml (required)
|
|
647
|
+
:return: None
|
|
648
|
+
If the method is called asynchronously,
|
|
649
|
+
returns the request thread.
|
|
650
|
+
"""
|
|
651
|
+
|
|
652
|
+
all_params = ['event_id', 'car_id', 'session_id', 'run_id', 'lap_id', 'source_id', 'input_file_path'] # noqa: E501
|
|
653
|
+
all_params.append('async_req')
|
|
654
|
+
all_params.append('_return_http_data_only')
|
|
655
|
+
all_params.append('_preload_content')
|
|
656
|
+
all_params.append('_request_timeout')
|
|
657
|
+
|
|
658
|
+
params = locals()
|
|
659
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
660
|
+
if key not in all_params:
|
|
661
|
+
raise TypeError(
|
|
662
|
+
"Got an unexpected keyword argument '%s'"
|
|
663
|
+
" to method import_xml_file_given_context" % key
|
|
664
|
+
)
|
|
665
|
+
params[key] = val
|
|
666
|
+
del params['kwargs']
|
|
667
|
+
# verify the required parameter 'event_id' is set
|
|
668
|
+
if ('event_id' not in params or
|
|
669
|
+
params['event_id'] is None):
|
|
670
|
+
raise ValueError("Missing the required parameter `event_id` when calling `import_xml_file_given_context`") # noqa: E501
|
|
671
|
+
# verify the required parameter 'car_id' is set
|
|
672
|
+
if ('car_id' not in params or
|
|
673
|
+
params['car_id'] is None):
|
|
674
|
+
raise ValueError("Missing the required parameter `car_id` when calling `import_xml_file_given_context`") # noqa: E501
|
|
675
|
+
# verify the required parameter 'session_id' is set
|
|
676
|
+
if ('session_id' not in params or
|
|
677
|
+
params['session_id'] is None):
|
|
678
|
+
raise ValueError("Missing the required parameter `session_id` when calling `import_xml_file_given_context`") # noqa: E501
|
|
679
|
+
# verify the required parameter 'run_id' is set
|
|
680
|
+
if ('run_id' not in params or
|
|
681
|
+
params['run_id'] is None):
|
|
682
|
+
raise ValueError("Missing the required parameter `run_id` when calling `import_xml_file_given_context`") # noqa: E501
|
|
683
|
+
# verify the required parameter 'lap_id' is set
|
|
684
|
+
if ('lap_id' not in params or
|
|
685
|
+
params['lap_id'] is None):
|
|
686
|
+
raise ValueError("Missing the required parameter `lap_id` when calling `import_xml_file_given_context`") # noqa: E501
|
|
687
|
+
# verify the required parameter 'source_id' is set
|
|
688
|
+
if ('source_id' not in params or
|
|
689
|
+
params['source_id'] is None):
|
|
690
|
+
raise ValueError("Missing the required parameter `source_id` when calling `import_xml_file_given_context`") # noqa: E501
|
|
691
|
+
# verify the required parameter 'input_file_path' is set
|
|
692
|
+
if ('input_file_path' not in params or
|
|
693
|
+
params['input_file_path'] is None):
|
|
694
|
+
raise ValueError("Missing the required parameter `input_file_path` when calling `import_xml_file_given_context`") # noqa: E501
|
|
695
|
+
|
|
696
|
+
collection_formats = {}
|
|
697
|
+
|
|
698
|
+
path_params = {}
|
|
699
|
+
if 'event_id' in params:
|
|
700
|
+
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
701
|
+
if 'car_id' in params:
|
|
702
|
+
path_params['carId'] = params['car_id'] # noqa: E501
|
|
703
|
+
if 'session_id' in params:
|
|
704
|
+
path_params['sessionId'] = params['session_id'] # noqa: E501
|
|
705
|
+
if 'run_id' in params:
|
|
706
|
+
path_params['runId'] = params['run_id'] # noqa: E501
|
|
707
|
+
if 'lap_id' in params:
|
|
708
|
+
path_params['lapId'] = params['lap_id'] # noqa: E501
|
|
709
|
+
|
|
710
|
+
query_params = []
|
|
711
|
+
if 'source_id' in params:
|
|
712
|
+
query_params.append(('sourceId', params['source_id'])) # noqa: E501
|
|
713
|
+
if 'input_file_path' in params:
|
|
714
|
+
query_params.append(('inputFilePath', params['input_file_path'])) # noqa: E501
|
|
715
|
+
|
|
716
|
+
header_params = {}
|
|
717
|
+
|
|
718
|
+
form_params = []
|
|
719
|
+
local_var_files = {}
|
|
720
|
+
|
|
721
|
+
body_params = None
|
|
722
|
+
# HTTP header `Accept`
|
|
723
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
724
|
+
['application/json', 'text/json']) # noqa: E501
|
|
725
|
+
|
|
726
|
+
# Authentication setting
|
|
727
|
+
auth_settings = [] # noqa: E501
|
|
728
|
+
|
|
729
|
+
return self.api_client.call_api(
|
|
730
|
+
'/teamdbapi/v2.0/eventId/{eventId}/carId/{carId}/sessionId/{sessionId}/runId/{runId}/lapId/{lapId}/importxmlfiletocontext', 'POST',
|
|
731
|
+
path_params,
|
|
732
|
+
query_params,
|
|
733
|
+
header_params,
|
|
734
|
+
body=body_params,
|
|
735
|
+
post_params=form_params,
|
|
736
|
+
files=local_var_files,
|
|
737
|
+
response_type=None, # noqa: E501
|
|
738
|
+
auth_settings=auth_settings,
|
|
739
|
+
async_req=params.get('async_req'),
|
|
740
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
741
|
+
_preload_content=params.get('_preload_content', True),
|
|
742
|
+
_request_timeout=params.get('_request_timeout'),
|
|
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)
|