teamdbapi 2.37.1__py3-none-any.whl → 3.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- teamdbapi/__init__.py +11 -0
- teamdbapi/api/__init__.py +39 -34
- teamdbapi/api/assembly_api.py +2108 -2108
- teamdbapi/api/car_api.py +874 -874
- teamdbapi/api/component_api.py +954 -0
- teamdbapi/api/config_api.py +118 -118
- teamdbapi/api/criteria_api.py +126 -0
- teamdbapi/api/edit_api.py +433 -433
- teamdbapi/api/event_api.py +878 -878
- teamdbapi/api/fixed_field_api.py +320 -320
- teamdbapi/api/group_api.py +609 -609
- teamdbapi/api/import_export_api.py +828 -743
- teamdbapi/api/lap_api.py +708 -708
- teamdbapi/api/lap_report_api.py +490 -486
- teamdbapi/api/model_field_api.py +708 -708
- teamdbapi/api/mounting_api.py +219 -0
- teamdbapi/api/notes_authorization_api.py +324 -324
- teamdbapi/api/parameter_api.py +1176 -1176
- teamdbapi/api/part_api.py +304 -0
- teamdbapi/api/report_api.py +142 -142
- teamdbapi/api/revision_api.py +1420 -1420
- teamdbapi/api/revision_editor_selector_api.py +990 -990
- teamdbapi/api/run_api.py +603 -603
- teamdbapi/api/script_api.py +490 -490
- teamdbapi/api/session_api.py +720 -720
- teamdbapi/api/target_api.py +415 -415
- teamdbapi/api/team_db_list_api.py +987 -987
- teamdbapi/api/team_db_view_api.py +482 -482
- teamdbapi/api/tire_api.py +599 -599
- teamdbapi/api/tire_set_api.py +514 -514
- teamdbapi/api/track_api.py +506 -506
- teamdbapi/api/track_layout_api.py +514 -514
- teamdbapi/api/update_request_api.py +235 -0
- teamdbapi/api/user_api.py +474 -474
- teamdbapi/api/value_field_api.py +558 -558
- teamdbapi/api/version_api.py +449 -449
- teamdbapi/api_client.py +4 -8
- teamdbapi/configuration.py +6 -13
- teamdbapi/models/__init__.py +6 -0
- teamdbapi/models/assembly.py +1 -0
- teamdbapi/models/bleed_adjustment.py +1 -0
- teamdbapi/models/calibration.py +1 -0
- teamdbapi/models/car.py +1 -0
- teamdbapi/models/car_parameters_context.py +1 -0
- teamdbapi/models/compare_options.py +1 -0
- teamdbapi/models/compare_result.py +1 -0
- teamdbapi/models/compare_result_detail.py +2 -0
- teamdbapi/models/component.py +1217 -0
- teamdbapi/models/copy_from_tags_args.py +2 -0
- teamdbapi/models/couple_guid_text.py +1 -0
- teamdbapi/models/criteria.py +430 -0
- teamdbapi/models/criteria_value.py +197 -0
- teamdbapi/models/event.py +1 -0
- teamdbapi/models/fixed_field.py +2 -1
- teamdbapi/models/group.py +1 -0
- teamdbapi/models/import_parameters_args.py +1 -0
- teamdbapi/models/import_parameters_results.py +2 -0
- teamdbapi/models/item_value.py +1 -0
- teamdbapi/models/item_value_key.py +1 -0
- teamdbapi/models/lap.py +1 -0
- teamdbapi/models/lap_report_options.py +1 -0
- teamdbapi/models/model_field.py +3 -1
- teamdbapi/models/model_field_authorization.py +1 -0
- teamdbapi/models/mounting.py +489 -0
- teamdbapi/models/notes_authorization.py +1 -0
- teamdbapi/models/notes_context.py +1 -0
- teamdbapi/models/parameter.py +2 -0
- teamdbapi/models/parameter_cross_table.py +1 -0
- teamdbapi/models/part.py +963 -0
- teamdbapi/models/part_count.py +228 -0
- teamdbapi/models/problem_details.py +2 -6
- teamdbapi/models/revision.py +88 -3
- teamdbapi/models/revision_value.py +1 -0
- teamdbapi/models/run.py +1 -0
- teamdbapi/models/script.py +1 -0
- teamdbapi/models/session.py +1 -0
- teamdbapi/models/string_with_font_style.py +1 -0
- teamdbapi/models/target.py +64 -7
- teamdbapi/models/team_db_list.py +1 -0
- teamdbapi/models/team_db_list_item.py +1 -0
- teamdbapi/models/tire.py +2 -0
- teamdbapi/models/tire_set.py +2 -0
- teamdbapi/models/track.py +1 -0
- teamdbapi/models/track_layout.py +1 -0
- teamdbapi/models/user.py +1 -0
- teamdbapi/models/user_group.py +1 -0
- teamdbapi/models/value_field.py +1 -0
- teamdbapi/models/version.py +1 -0
- teamdbapi/rest.py +6 -1
- {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/METADATA +5 -5
- teamdbapi-3.0.0.dist-info/RECORD +93 -0
- teamdbapi-2.37.1.dist-info/RECORD +0 -82
- {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/LICENSE +0 -0
- {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/WHEEL +0 -0
teamdbapi/api/run_api.py
CHANGED
|
@@ -1,605 +1,605 @@
|
|
|
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 RunApi(object):
|
|
24
|
-
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
-
|
|
26
|
-
Do not edit the class manually.
|
|
27
|
-
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
-
"""
|
|
29
|
-
|
|
30
|
-
def __init__(self, api_client=None):
|
|
31
|
-
if api_client is None:
|
|
32
|
-
api_client = ApiClient()
|
|
33
|
-
self.api_client = api_client
|
|
34
|
-
|
|
35
|
-
def create_new_run(self, session_id, **kwargs): # noqa: E501
|
|
36
|
-
"""Create a new run # noqa: E501
|
|
37
|
-
|
|
38
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
39
|
-
asynchronous HTTP request, please pass async_req=True
|
|
40
|
-
>>> thread = api.create_new_run(session_id, async_req=True)
|
|
41
|
-
>>> result = thread.get()
|
|
42
|
-
|
|
43
|
-
:param async_req bool
|
|
44
|
-
:param str session_id: The session id to which you want to add a new run. (required)
|
|
45
|
-
:return: Run
|
|
46
|
-
If the method is called asynchronously,
|
|
47
|
-
returns the request thread.
|
|
48
|
-
"""
|
|
49
|
-
kwargs['_return_http_data_only'] = True
|
|
50
|
-
if kwargs.get('async_req'):
|
|
51
|
-
return self.create_new_run_with_http_info(session_id, **kwargs) # noqa: E501
|
|
52
|
-
else:
|
|
53
|
-
(data) = self.create_new_run_with_http_info(session_id, **kwargs) # noqa: E501
|
|
54
|
-
return data
|
|
55
|
-
|
|
56
|
-
def create_new_run_with_http_info(self, session_id, **kwargs): # noqa: E501
|
|
57
|
-
"""Create a new run # noqa: E501
|
|
58
|
-
|
|
59
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
60
|
-
asynchronous HTTP request, please pass async_req=True
|
|
61
|
-
>>> thread = api.create_new_run_with_http_info(session_id, async_req=True)
|
|
62
|
-
>>> result = thread.get()
|
|
63
|
-
|
|
64
|
-
:param async_req bool
|
|
65
|
-
:param str session_id: The session id to which you want to add a new run. (required)
|
|
66
|
-
:return: Run
|
|
67
|
-
If the method is called asynchronously,
|
|
68
|
-
returns the request thread.
|
|
69
|
-
"""
|
|
70
|
-
|
|
71
|
-
all_params = ['session_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 create_new_run" % key
|
|
83
|
-
)
|
|
84
|
-
params[key] = val
|
|
85
|
-
del params['kwargs']
|
|
86
|
-
# verify the required parameter 'session_id' is set
|
|
87
|
-
if ('session_id' not in params or
|
|
88
|
-
params['session_id'] is None):
|
|
89
|
-
raise ValueError("Missing the required parameter `session_id` when calling `create_new_run`") # noqa: E501
|
|
90
|
-
|
|
91
|
-
collection_formats = {}
|
|
92
|
-
|
|
93
|
-
path_params = {}
|
|
94
|
-
if 'session_id' in params:
|
|
95
|
-
path_params['sessionId'] = params['session_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/session/{sessionId}/run', 'POST',
|
|
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='Run', # 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 delete_run(self, run_id, **kwargs): # noqa: E501
|
|
129
|
-
"""Delete an existing run # 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.delete_run(run_id, async_req=True)
|
|
134
|
-
>>> result = thread.get()
|
|
135
|
-
|
|
136
|
-
:param async_req bool
|
|
137
|
-
:param str run_id: The unique run id for which you want to delete the run (required)
|
|
138
|
-
:return: None
|
|
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.delete_run_with_http_info(run_id, **kwargs) # noqa: E501
|
|
145
|
-
else:
|
|
146
|
-
(data) = self.delete_run_with_http_info(run_id, **kwargs) # noqa: E501
|
|
147
|
-
return data
|
|
148
|
-
|
|
149
|
-
def delete_run_with_http_info(self, run_id, **kwargs): # noqa: E501
|
|
150
|
-
"""Delete an existing run # 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.delete_run_with_http_info(run_id, async_req=True)
|
|
155
|
-
>>> result = thread.get()
|
|
156
|
-
|
|
157
|
-
:param async_req bool
|
|
158
|
-
:param str run_id: The unique run id for which you want to delete the run (required)
|
|
159
|
-
:return: None
|
|
160
|
-
If the method is called asynchronously,
|
|
161
|
-
returns the request thread.
|
|
162
|
-
"""
|
|
163
|
-
|
|
164
|
-
all_params = ['run_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 delete_run" % key
|
|
176
|
-
)
|
|
177
|
-
params[key] = val
|
|
178
|
-
del params['kwargs']
|
|
179
|
-
# verify the required parameter 'run_id' is set
|
|
180
|
-
if ('run_id' not in params or
|
|
181
|
-
params['run_id'] is None):
|
|
182
|
-
raise ValueError("Missing the required parameter `run_id` when calling `delete_run`") # noqa: E501
|
|
183
|
-
|
|
184
|
-
collection_formats = {}
|
|
185
|
-
|
|
186
|
-
path_params = {}
|
|
187
|
-
if 'run_id' in params:
|
|
188
|
-
path_params['runId'] = params['run_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/run/{runId}', 'DELETE',
|
|
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=None, # 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)
|
|
220
|
-
|
|
221
|
-
def get_current_run(self, **kwargs): # noqa: E501
|
|
222
|
-
"""Get the current run. # noqa: E501
|
|
223
|
-
|
|
224
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
225
|
-
asynchronous HTTP request, please pass async_req=True
|
|
226
|
-
>>> thread = api.get_current_run(async_req=True)
|
|
227
|
-
>>> result = thread.get()
|
|
228
|
-
|
|
229
|
-
:param async_req bool
|
|
230
|
-
:return: Run
|
|
231
|
-
If the method is called asynchronously,
|
|
232
|
-
returns the request thread.
|
|
233
|
-
"""
|
|
234
|
-
kwargs['_return_http_data_only'] = True
|
|
235
|
-
if kwargs.get('async_req'):
|
|
236
|
-
return self.get_current_run_with_http_info(**kwargs) # noqa: E501
|
|
237
|
-
else:
|
|
238
|
-
(data) = self.get_current_run_with_http_info(**kwargs) # noqa: E501
|
|
239
|
-
return data
|
|
240
|
-
|
|
241
|
-
def get_current_run_with_http_info(self, **kwargs): # noqa: E501
|
|
242
|
-
"""Get the current run. # noqa: E501
|
|
243
|
-
|
|
244
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
245
|
-
asynchronous HTTP request, please pass async_req=True
|
|
246
|
-
>>> thread = api.get_current_run_with_http_info(async_req=True)
|
|
247
|
-
>>> result = thread.get()
|
|
248
|
-
|
|
249
|
-
:param async_req bool
|
|
250
|
-
:return: Run
|
|
251
|
-
If the method is called asynchronously,
|
|
252
|
-
returns the request thread.
|
|
253
|
-
"""
|
|
254
|
-
|
|
255
|
-
all_params = [] # noqa: E501
|
|
256
|
-
all_params.append('async_req')
|
|
257
|
-
all_params.append('_return_http_data_only')
|
|
258
|
-
all_params.append('_preload_content')
|
|
259
|
-
all_params.append('_request_timeout')
|
|
260
|
-
|
|
261
|
-
params = locals()
|
|
262
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
263
|
-
if key not in all_params:
|
|
264
|
-
raise TypeError(
|
|
265
|
-
"Got an unexpected keyword argument '%s'"
|
|
266
|
-
" to method get_current_run" % key
|
|
267
|
-
)
|
|
268
|
-
params[key] = val
|
|
269
|
-
del params['kwargs']
|
|
270
|
-
|
|
271
|
-
collection_formats = {}
|
|
272
|
-
|
|
273
|
-
path_params = {}
|
|
274
|
-
|
|
275
|
-
query_params = []
|
|
276
|
-
|
|
277
|
-
header_params = {}
|
|
278
|
-
|
|
279
|
-
form_params = []
|
|
280
|
-
local_var_files = {}
|
|
281
|
-
|
|
282
|
-
body_params = None
|
|
283
|
-
# HTTP header `Accept`
|
|
284
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
285
|
-
['application/json', 'text/json']) # noqa: E501
|
|
286
|
-
|
|
287
|
-
# Authentication setting
|
|
288
|
-
auth_settings = [] # noqa: E501
|
|
289
|
-
|
|
290
|
-
return self.api_client.call_api(
|
|
291
|
-
'/teamdbapi/v2.0/run/current', 'GET',
|
|
292
|
-
path_params,
|
|
293
|
-
query_params,
|
|
294
|
-
header_params,
|
|
295
|
-
body=body_params,
|
|
296
|
-
post_params=form_params,
|
|
297
|
-
files=local_var_files,
|
|
298
|
-
response_type='Run', # noqa: E501
|
|
299
|
-
auth_settings=auth_settings,
|
|
300
|
-
async_req=params.get('async_req'),
|
|
301
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
302
|
-
_preload_content=params.get('_preload_content', True),
|
|
303
|
-
_request_timeout=params.get('_request_timeout'),
|
|
304
|
-
collection_formats=collection_formats)
|
|
305
|
-
|
|
306
|
-
def get_run(self, run_id, **kwargs): # noqa: E501
|
|
307
|
-
"""Get a run via a unique id. # noqa: E501
|
|
308
|
-
|
|
309
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
310
|
-
asynchronous HTTP request, please pass async_req=True
|
|
311
|
-
>>> thread = api.get_run(run_id, async_req=True)
|
|
312
|
-
>>> result = thread.get()
|
|
313
|
-
|
|
314
|
-
:param async_req bool
|
|
315
|
-
:param str run_id: The unique run id for which you want to get the run (required)
|
|
316
|
-
:return: Run
|
|
317
|
-
If the method is called asynchronously,
|
|
318
|
-
returns the request thread.
|
|
319
|
-
"""
|
|
320
|
-
kwargs['_return_http_data_only'] = True
|
|
321
|
-
if kwargs.get('async_req'):
|
|
322
|
-
return self.get_run_with_http_info(run_id, **kwargs) # noqa: E501
|
|
323
|
-
else:
|
|
324
|
-
(data) = self.get_run_with_http_info(run_id, **kwargs) # noqa: E501
|
|
325
|
-
return data
|
|
326
|
-
|
|
327
|
-
def get_run_with_http_info(self, run_id, **kwargs): # noqa: E501
|
|
328
|
-
"""Get a run via a unique id. # noqa: E501
|
|
329
|
-
|
|
330
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
331
|
-
asynchronous HTTP request, please pass async_req=True
|
|
332
|
-
>>> thread = api.get_run_with_http_info(run_id, async_req=True)
|
|
333
|
-
>>> result = thread.get()
|
|
334
|
-
|
|
335
|
-
:param async_req bool
|
|
336
|
-
:param str run_id: The unique run id for which you want to get the run (required)
|
|
337
|
-
:return: Run
|
|
338
|
-
If the method is called asynchronously,
|
|
339
|
-
returns the request thread.
|
|
340
|
-
"""
|
|
341
|
-
|
|
342
|
-
all_params = ['run_id'] # noqa: E501
|
|
343
|
-
all_params.append('async_req')
|
|
344
|
-
all_params.append('_return_http_data_only')
|
|
345
|
-
all_params.append('_preload_content')
|
|
346
|
-
all_params.append('_request_timeout')
|
|
347
|
-
|
|
348
|
-
params = locals()
|
|
349
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
350
|
-
if key not in all_params:
|
|
351
|
-
raise TypeError(
|
|
352
|
-
"Got an unexpected keyword argument '%s'"
|
|
353
|
-
" to method get_run" % key
|
|
354
|
-
)
|
|
355
|
-
params[key] = val
|
|
356
|
-
del params['kwargs']
|
|
357
|
-
# verify the required parameter 'run_id' is set
|
|
358
|
-
if ('run_id' not in params or
|
|
359
|
-
params['run_id'] is None):
|
|
360
|
-
raise ValueError("Missing the required parameter `run_id` when calling `get_run`") # noqa: E501
|
|
361
|
-
|
|
362
|
-
collection_formats = {}
|
|
363
|
-
|
|
364
|
-
path_params = {}
|
|
365
|
-
if 'run_id' in params:
|
|
366
|
-
path_params['runId'] = params['run_id'] # noqa: E501
|
|
367
|
-
|
|
368
|
-
query_params = []
|
|
369
|
-
|
|
370
|
-
header_params = {}
|
|
371
|
-
|
|
372
|
-
form_params = []
|
|
373
|
-
local_var_files = {}
|
|
374
|
-
|
|
375
|
-
body_params = None
|
|
376
|
-
# HTTP header `Accept`
|
|
377
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
378
|
-
['application/json', 'text/json']) # noqa: E501
|
|
379
|
-
|
|
380
|
-
# Authentication setting
|
|
381
|
-
auth_settings = [] # noqa: E501
|
|
382
|
-
|
|
383
|
-
return self.api_client.call_api(
|
|
384
|
-
'/teamdbapi/v2.0/run/{runId}', 'GET',
|
|
385
|
-
path_params,
|
|
386
|
-
query_params,
|
|
387
|
-
header_params,
|
|
388
|
-
body=body_params,
|
|
389
|
-
post_params=form_params,
|
|
390
|
-
files=local_var_files,
|
|
391
|
-
response_type='Run', # noqa: E501
|
|
392
|
-
auth_settings=auth_settings,
|
|
393
|
-
async_req=params.get('async_req'),
|
|
394
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
395
|
-
_preload_content=params.get('_preload_content', True),
|
|
396
|
-
_request_timeout=params.get('_request_timeout'),
|
|
397
|
-
collection_formats=collection_formats)
|
|
398
|
-
|
|
399
|
-
def get_run_list(self, session_id, **kwargs): # noqa: E501
|
|
400
|
-
"""Get the list of all runs for a session. # noqa: E501
|
|
401
|
-
|
|
402
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
403
|
-
asynchronous HTTP request, please pass async_req=True
|
|
404
|
-
>>> thread = api.get_run_list(session_id, async_req=True)
|
|
405
|
-
>>> result = thread.get()
|
|
406
|
-
|
|
407
|
-
:param async_req bool
|
|
408
|
-
:param str session_id: The unique session id for which you want to get the run list (required)
|
|
409
|
-
:return: list[CoupleGuidText]
|
|
410
|
-
If the method is called asynchronously,
|
|
411
|
-
returns the request thread.
|
|
412
|
-
"""
|
|
413
|
-
kwargs['_return_http_data_only'] = True
|
|
414
|
-
if kwargs.get('async_req'):
|
|
415
|
-
return self.get_run_list_with_http_info(session_id, **kwargs) # noqa: E501
|
|
416
|
-
else:
|
|
417
|
-
(data) = self.get_run_list_with_http_info(session_id, **kwargs) # noqa: E501
|
|
418
|
-
return data
|
|
419
|
-
|
|
420
|
-
def get_run_list_with_http_info(self, session_id, **kwargs): # noqa: E501
|
|
421
|
-
"""Get the list of all runs for a session. # noqa: E501
|
|
422
|
-
|
|
423
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
424
|
-
asynchronous HTTP request, please pass async_req=True
|
|
425
|
-
>>> thread = api.get_run_list_with_http_info(session_id, async_req=True)
|
|
426
|
-
>>> result = thread.get()
|
|
427
|
-
|
|
428
|
-
:param async_req bool
|
|
429
|
-
:param str session_id: The unique session id for which you want to get the run list (required)
|
|
430
|
-
:return: list[CoupleGuidText]
|
|
431
|
-
If the method is called asynchronously,
|
|
432
|
-
returns the request thread.
|
|
433
|
-
"""
|
|
434
|
-
|
|
435
|
-
all_params = ['session_id'] # noqa: E501
|
|
436
|
-
all_params.append('async_req')
|
|
437
|
-
all_params.append('_return_http_data_only')
|
|
438
|
-
all_params.append('_preload_content')
|
|
439
|
-
all_params.append('_request_timeout')
|
|
440
|
-
|
|
441
|
-
params = locals()
|
|
442
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
443
|
-
if key not in all_params:
|
|
444
|
-
raise TypeError(
|
|
445
|
-
"Got an unexpected keyword argument '%s'"
|
|
446
|
-
" to method get_run_list" % key
|
|
447
|
-
)
|
|
448
|
-
params[key] = val
|
|
449
|
-
del params['kwargs']
|
|
450
|
-
# verify the required parameter 'session_id' is set
|
|
451
|
-
if ('session_id' not in params or
|
|
452
|
-
params['session_id'] is None):
|
|
453
|
-
raise ValueError("Missing the required parameter `session_id` when calling `get_run_list`") # noqa: E501
|
|
454
|
-
|
|
455
|
-
collection_formats = {}
|
|
456
|
-
|
|
457
|
-
path_params = {}
|
|
458
|
-
if 'session_id' in params:
|
|
459
|
-
path_params['sessionId'] = params['session_id'] # noqa: E501
|
|
460
|
-
|
|
461
|
-
query_params = []
|
|
462
|
-
|
|
463
|
-
header_params = {}
|
|
464
|
-
|
|
465
|
-
form_params = []
|
|
466
|
-
local_var_files = {}
|
|
467
|
-
|
|
468
|
-
body_params = None
|
|
469
|
-
# HTTP header `Accept`
|
|
470
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
471
|
-
['application/json', 'text/json']) # noqa: E501
|
|
472
|
-
|
|
473
|
-
# Authentication setting
|
|
474
|
-
auth_settings = [] # noqa: E501
|
|
475
|
-
|
|
476
|
-
return self.api_client.call_api(
|
|
477
|
-
'/teamdbapi/v2.0/session/{sessionId}/runs', 'GET',
|
|
478
|
-
path_params,
|
|
479
|
-
query_params,
|
|
480
|
-
header_params,
|
|
481
|
-
body=body_params,
|
|
482
|
-
post_params=form_params,
|
|
483
|
-
files=local_var_files,
|
|
484
|
-
response_type='list[CoupleGuidText]', # noqa: E501
|
|
485
|
-
auth_settings=auth_settings,
|
|
486
|
-
async_req=params.get('async_req'),
|
|
487
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
488
|
-
_preload_content=params.get('_preload_content', True),
|
|
489
|
-
_request_timeout=params.get('_request_timeout'),
|
|
490
|
-
collection_formats=collection_formats)
|
|
491
|
-
|
|
492
|
-
def update_run_property(self, body, run_id, property_name, **kwargs): # noqa: E501
|
|
493
|
-
"""Update a property value for an existing run # noqa: E501
|
|
494
|
-
|
|
495
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
496
|
-
asynchronous HTTP request, please pass async_req=True
|
|
497
|
-
>>> thread = api.update_run_property(body, run_id, property_name, async_req=True)
|
|
498
|
-
>>> result = thread.get()
|
|
499
|
-
|
|
500
|
-
:param async_req bool
|
|
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 RunApi(object):
|
|
24
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
+
|
|
26
|
+
Do not edit the class manually.
|
|
27
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
def __init__(self, api_client=None):
|
|
31
|
+
if api_client is None:
|
|
32
|
+
api_client = ApiClient()
|
|
33
|
+
self.api_client = api_client
|
|
34
|
+
|
|
35
|
+
def create_new_run(self, session_id, **kwargs): # noqa: E501
|
|
36
|
+
"""Create a new run # noqa: E501
|
|
37
|
+
|
|
38
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
39
|
+
asynchronous HTTP request, please pass async_req=True
|
|
40
|
+
>>> thread = api.create_new_run(session_id, async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:param str session_id: The session id to which you want to add a new run. (required)
|
|
45
|
+
:return: Run
|
|
46
|
+
If the method is called asynchronously,
|
|
47
|
+
returns the request thread.
|
|
48
|
+
"""
|
|
49
|
+
kwargs['_return_http_data_only'] = True
|
|
50
|
+
if kwargs.get('async_req'):
|
|
51
|
+
return self.create_new_run_with_http_info(session_id, **kwargs) # noqa: E501
|
|
52
|
+
else:
|
|
53
|
+
(data) = self.create_new_run_with_http_info(session_id, **kwargs) # noqa: E501
|
|
54
|
+
return data
|
|
55
|
+
|
|
56
|
+
def create_new_run_with_http_info(self, session_id, **kwargs): # noqa: E501
|
|
57
|
+
"""Create a new run # noqa: E501
|
|
58
|
+
|
|
59
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
60
|
+
asynchronous HTTP request, please pass async_req=True
|
|
61
|
+
>>> thread = api.create_new_run_with_http_info(session_id, async_req=True)
|
|
62
|
+
>>> result = thread.get()
|
|
63
|
+
|
|
64
|
+
:param async_req bool
|
|
65
|
+
:param str session_id: The session id to which you want to add a new run. (required)
|
|
66
|
+
:return: Run
|
|
67
|
+
If the method is called asynchronously,
|
|
68
|
+
returns the request thread.
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
all_params = ['session_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 create_new_run" % key
|
|
83
|
+
)
|
|
84
|
+
params[key] = val
|
|
85
|
+
del params['kwargs']
|
|
86
|
+
# verify the required parameter 'session_id' is set
|
|
87
|
+
if ('session_id' not in params or
|
|
88
|
+
params['session_id'] is None):
|
|
89
|
+
raise ValueError("Missing the required parameter `session_id` when calling `create_new_run`") # noqa: E501
|
|
90
|
+
|
|
91
|
+
collection_formats = {}
|
|
92
|
+
|
|
93
|
+
path_params = {}
|
|
94
|
+
if 'session_id' in params:
|
|
95
|
+
path_params['sessionId'] = params['session_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/session/{sessionId}/run', 'POST',
|
|
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='Run', # 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 delete_run(self, run_id, **kwargs): # noqa: E501
|
|
129
|
+
"""Delete an existing run # 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.delete_run(run_id, async_req=True)
|
|
134
|
+
>>> result = thread.get()
|
|
135
|
+
|
|
136
|
+
:param async_req bool
|
|
137
|
+
:param str run_id: The unique run id for which you want to delete the run (required)
|
|
138
|
+
:return: None
|
|
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.delete_run_with_http_info(run_id, **kwargs) # noqa: E501
|
|
145
|
+
else:
|
|
146
|
+
(data) = self.delete_run_with_http_info(run_id, **kwargs) # noqa: E501
|
|
147
|
+
return data
|
|
148
|
+
|
|
149
|
+
def delete_run_with_http_info(self, run_id, **kwargs): # noqa: E501
|
|
150
|
+
"""Delete an existing run # 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.delete_run_with_http_info(run_id, async_req=True)
|
|
155
|
+
>>> result = thread.get()
|
|
156
|
+
|
|
157
|
+
:param async_req bool
|
|
158
|
+
:param str run_id: The unique run id for which you want to delete the run (required)
|
|
159
|
+
:return: None
|
|
160
|
+
If the method is called asynchronously,
|
|
161
|
+
returns the request thread.
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
all_params = ['run_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 delete_run" % key
|
|
176
|
+
)
|
|
177
|
+
params[key] = val
|
|
178
|
+
del params['kwargs']
|
|
179
|
+
# verify the required parameter 'run_id' is set
|
|
180
|
+
if ('run_id' not in params or
|
|
181
|
+
params['run_id'] is None):
|
|
182
|
+
raise ValueError("Missing the required parameter `run_id` when calling `delete_run`") # noqa: E501
|
|
183
|
+
|
|
184
|
+
collection_formats = {}
|
|
185
|
+
|
|
186
|
+
path_params = {}
|
|
187
|
+
if 'run_id' in params:
|
|
188
|
+
path_params['runId'] = params['run_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/run/{runId}', 'DELETE',
|
|
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=None, # 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)
|
|
220
|
+
|
|
221
|
+
def get_current_run(self, **kwargs): # noqa: E501
|
|
222
|
+
"""Get the current run. # noqa: E501
|
|
223
|
+
|
|
224
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
225
|
+
asynchronous HTTP request, please pass async_req=True
|
|
226
|
+
>>> thread = api.get_current_run(async_req=True)
|
|
227
|
+
>>> result = thread.get()
|
|
228
|
+
|
|
229
|
+
:param async_req bool
|
|
230
|
+
:return: Run
|
|
231
|
+
If the method is called asynchronously,
|
|
232
|
+
returns the request thread.
|
|
233
|
+
"""
|
|
234
|
+
kwargs['_return_http_data_only'] = True
|
|
235
|
+
if kwargs.get('async_req'):
|
|
236
|
+
return self.get_current_run_with_http_info(**kwargs) # noqa: E501
|
|
237
|
+
else:
|
|
238
|
+
(data) = self.get_current_run_with_http_info(**kwargs) # noqa: E501
|
|
239
|
+
return data
|
|
240
|
+
|
|
241
|
+
def get_current_run_with_http_info(self, **kwargs): # noqa: E501
|
|
242
|
+
"""Get the current run. # noqa: E501
|
|
243
|
+
|
|
244
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
245
|
+
asynchronous HTTP request, please pass async_req=True
|
|
246
|
+
>>> thread = api.get_current_run_with_http_info(async_req=True)
|
|
247
|
+
>>> result = thread.get()
|
|
248
|
+
|
|
249
|
+
:param async_req bool
|
|
250
|
+
:return: Run
|
|
251
|
+
If the method is called asynchronously,
|
|
252
|
+
returns the request thread.
|
|
253
|
+
"""
|
|
254
|
+
|
|
255
|
+
all_params = [] # noqa: E501
|
|
256
|
+
all_params.append('async_req')
|
|
257
|
+
all_params.append('_return_http_data_only')
|
|
258
|
+
all_params.append('_preload_content')
|
|
259
|
+
all_params.append('_request_timeout')
|
|
260
|
+
|
|
261
|
+
params = locals()
|
|
262
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
263
|
+
if key not in all_params:
|
|
264
|
+
raise TypeError(
|
|
265
|
+
"Got an unexpected keyword argument '%s'"
|
|
266
|
+
" to method get_current_run" % key
|
|
267
|
+
)
|
|
268
|
+
params[key] = val
|
|
269
|
+
del params['kwargs']
|
|
270
|
+
|
|
271
|
+
collection_formats = {}
|
|
272
|
+
|
|
273
|
+
path_params = {}
|
|
274
|
+
|
|
275
|
+
query_params = []
|
|
276
|
+
|
|
277
|
+
header_params = {}
|
|
278
|
+
|
|
279
|
+
form_params = []
|
|
280
|
+
local_var_files = {}
|
|
281
|
+
|
|
282
|
+
body_params = None
|
|
283
|
+
# HTTP header `Accept`
|
|
284
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
285
|
+
['application/json', 'text/json']) # noqa: E501
|
|
286
|
+
|
|
287
|
+
# Authentication setting
|
|
288
|
+
auth_settings = [] # noqa: E501
|
|
289
|
+
|
|
290
|
+
return self.api_client.call_api(
|
|
291
|
+
'/teamdbapi/v2.0/run/current', 'GET',
|
|
292
|
+
path_params,
|
|
293
|
+
query_params,
|
|
294
|
+
header_params,
|
|
295
|
+
body=body_params,
|
|
296
|
+
post_params=form_params,
|
|
297
|
+
files=local_var_files,
|
|
298
|
+
response_type='Run', # noqa: E501
|
|
299
|
+
auth_settings=auth_settings,
|
|
300
|
+
async_req=params.get('async_req'),
|
|
301
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
302
|
+
_preload_content=params.get('_preload_content', True),
|
|
303
|
+
_request_timeout=params.get('_request_timeout'),
|
|
304
|
+
collection_formats=collection_formats)
|
|
305
|
+
|
|
306
|
+
def get_run(self, run_id, **kwargs): # noqa: E501
|
|
307
|
+
"""Get a run via a unique id. # noqa: E501
|
|
308
|
+
|
|
309
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
310
|
+
asynchronous HTTP request, please pass async_req=True
|
|
311
|
+
>>> thread = api.get_run(run_id, async_req=True)
|
|
312
|
+
>>> result = thread.get()
|
|
313
|
+
|
|
314
|
+
:param async_req bool
|
|
315
|
+
:param str run_id: The unique run id for which you want to get the run (required)
|
|
316
|
+
:return: Run
|
|
317
|
+
If the method is called asynchronously,
|
|
318
|
+
returns the request thread.
|
|
319
|
+
"""
|
|
320
|
+
kwargs['_return_http_data_only'] = True
|
|
321
|
+
if kwargs.get('async_req'):
|
|
322
|
+
return self.get_run_with_http_info(run_id, **kwargs) # noqa: E501
|
|
323
|
+
else:
|
|
324
|
+
(data) = self.get_run_with_http_info(run_id, **kwargs) # noqa: E501
|
|
325
|
+
return data
|
|
326
|
+
|
|
327
|
+
def get_run_with_http_info(self, run_id, **kwargs): # noqa: E501
|
|
328
|
+
"""Get a run via a unique id. # noqa: E501
|
|
329
|
+
|
|
330
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
331
|
+
asynchronous HTTP request, please pass async_req=True
|
|
332
|
+
>>> thread = api.get_run_with_http_info(run_id, async_req=True)
|
|
333
|
+
>>> result = thread.get()
|
|
334
|
+
|
|
335
|
+
:param async_req bool
|
|
336
|
+
:param str run_id: The unique run id for which you want to get the run (required)
|
|
337
|
+
:return: Run
|
|
338
|
+
If the method is called asynchronously,
|
|
339
|
+
returns the request thread.
|
|
340
|
+
"""
|
|
341
|
+
|
|
342
|
+
all_params = ['run_id'] # noqa: E501
|
|
343
|
+
all_params.append('async_req')
|
|
344
|
+
all_params.append('_return_http_data_only')
|
|
345
|
+
all_params.append('_preload_content')
|
|
346
|
+
all_params.append('_request_timeout')
|
|
347
|
+
|
|
348
|
+
params = locals()
|
|
349
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
350
|
+
if key not in all_params:
|
|
351
|
+
raise TypeError(
|
|
352
|
+
"Got an unexpected keyword argument '%s'"
|
|
353
|
+
" to method get_run" % key
|
|
354
|
+
)
|
|
355
|
+
params[key] = val
|
|
356
|
+
del params['kwargs']
|
|
357
|
+
# verify the required parameter 'run_id' is set
|
|
358
|
+
if ('run_id' not in params or
|
|
359
|
+
params['run_id'] is None):
|
|
360
|
+
raise ValueError("Missing the required parameter `run_id` when calling `get_run`") # noqa: E501
|
|
361
|
+
|
|
362
|
+
collection_formats = {}
|
|
363
|
+
|
|
364
|
+
path_params = {}
|
|
365
|
+
if 'run_id' in params:
|
|
366
|
+
path_params['runId'] = params['run_id'] # noqa: E501
|
|
367
|
+
|
|
368
|
+
query_params = []
|
|
369
|
+
|
|
370
|
+
header_params = {}
|
|
371
|
+
|
|
372
|
+
form_params = []
|
|
373
|
+
local_var_files = {}
|
|
374
|
+
|
|
375
|
+
body_params = None
|
|
376
|
+
# HTTP header `Accept`
|
|
377
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
378
|
+
['application/json', 'text/json']) # noqa: E501
|
|
379
|
+
|
|
380
|
+
# Authentication setting
|
|
381
|
+
auth_settings = [] # noqa: E501
|
|
382
|
+
|
|
383
|
+
return self.api_client.call_api(
|
|
384
|
+
'/teamdbapi/v2.0/run/{runId}', 'GET',
|
|
385
|
+
path_params,
|
|
386
|
+
query_params,
|
|
387
|
+
header_params,
|
|
388
|
+
body=body_params,
|
|
389
|
+
post_params=form_params,
|
|
390
|
+
files=local_var_files,
|
|
391
|
+
response_type='Run', # noqa: E501
|
|
392
|
+
auth_settings=auth_settings,
|
|
393
|
+
async_req=params.get('async_req'),
|
|
394
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
395
|
+
_preload_content=params.get('_preload_content', True),
|
|
396
|
+
_request_timeout=params.get('_request_timeout'),
|
|
397
|
+
collection_formats=collection_formats)
|
|
398
|
+
|
|
399
|
+
def get_run_list(self, session_id, **kwargs): # noqa: E501
|
|
400
|
+
"""Get the list of all runs for a session. # noqa: E501
|
|
401
|
+
|
|
402
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
403
|
+
asynchronous HTTP request, please pass async_req=True
|
|
404
|
+
>>> thread = api.get_run_list(session_id, async_req=True)
|
|
405
|
+
>>> result = thread.get()
|
|
406
|
+
|
|
407
|
+
:param async_req bool
|
|
408
|
+
:param str session_id: The unique session id for which you want to get the run list (required)
|
|
409
|
+
:return: list[CoupleGuidText]
|
|
410
|
+
If the method is called asynchronously,
|
|
411
|
+
returns the request thread.
|
|
412
|
+
"""
|
|
413
|
+
kwargs['_return_http_data_only'] = True
|
|
414
|
+
if kwargs.get('async_req'):
|
|
415
|
+
return self.get_run_list_with_http_info(session_id, **kwargs) # noqa: E501
|
|
416
|
+
else:
|
|
417
|
+
(data) = self.get_run_list_with_http_info(session_id, **kwargs) # noqa: E501
|
|
418
|
+
return data
|
|
419
|
+
|
|
420
|
+
def get_run_list_with_http_info(self, session_id, **kwargs): # noqa: E501
|
|
421
|
+
"""Get the list of all runs for a session. # noqa: E501
|
|
422
|
+
|
|
423
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
424
|
+
asynchronous HTTP request, please pass async_req=True
|
|
425
|
+
>>> thread = api.get_run_list_with_http_info(session_id, async_req=True)
|
|
426
|
+
>>> result = thread.get()
|
|
427
|
+
|
|
428
|
+
:param async_req bool
|
|
429
|
+
:param str session_id: The unique session id for which you want to get the run list (required)
|
|
430
|
+
:return: list[CoupleGuidText]
|
|
431
|
+
If the method is called asynchronously,
|
|
432
|
+
returns the request thread.
|
|
433
|
+
"""
|
|
434
|
+
|
|
435
|
+
all_params = ['session_id'] # noqa: E501
|
|
436
|
+
all_params.append('async_req')
|
|
437
|
+
all_params.append('_return_http_data_only')
|
|
438
|
+
all_params.append('_preload_content')
|
|
439
|
+
all_params.append('_request_timeout')
|
|
440
|
+
|
|
441
|
+
params = locals()
|
|
442
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
443
|
+
if key not in all_params:
|
|
444
|
+
raise TypeError(
|
|
445
|
+
"Got an unexpected keyword argument '%s'"
|
|
446
|
+
" to method get_run_list" % key
|
|
447
|
+
)
|
|
448
|
+
params[key] = val
|
|
449
|
+
del params['kwargs']
|
|
450
|
+
# verify the required parameter 'session_id' is set
|
|
451
|
+
if ('session_id' not in params or
|
|
452
|
+
params['session_id'] is None):
|
|
453
|
+
raise ValueError("Missing the required parameter `session_id` when calling `get_run_list`") # noqa: E501
|
|
454
|
+
|
|
455
|
+
collection_formats = {}
|
|
456
|
+
|
|
457
|
+
path_params = {}
|
|
458
|
+
if 'session_id' in params:
|
|
459
|
+
path_params['sessionId'] = params['session_id'] # noqa: E501
|
|
460
|
+
|
|
461
|
+
query_params = []
|
|
462
|
+
|
|
463
|
+
header_params = {}
|
|
464
|
+
|
|
465
|
+
form_params = []
|
|
466
|
+
local_var_files = {}
|
|
467
|
+
|
|
468
|
+
body_params = None
|
|
469
|
+
# HTTP header `Accept`
|
|
470
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
471
|
+
['application/json', 'text/json']) # noqa: E501
|
|
472
|
+
|
|
473
|
+
# Authentication setting
|
|
474
|
+
auth_settings = [] # noqa: E501
|
|
475
|
+
|
|
476
|
+
return self.api_client.call_api(
|
|
477
|
+
'/teamdbapi/v2.0/session/{sessionId}/runs', 'GET',
|
|
478
|
+
path_params,
|
|
479
|
+
query_params,
|
|
480
|
+
header_params,
|
|
481
|
+
body=body_params,
|
|
482
|
+
post_params=form_params,
|
|
483
|
+
files=local_var_files,
|
|
484
|
+
response_type='list[CoupleGuidText]', # noqa: E501
|
|
485
|
+
auth_settings=auth_settings,
|
|
486
|
+
async_req=params.get('async_req'),
|
|
487
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
488
|
+
_preload_content=params.get('_preload_content', True),
|
|
489
|
+
_request_timeout=params.get('_request_timeout'),
|
|
490
|
+
collection_formats=collection_formats)
|
|
491
|
+
|
|
492
|
+
def update_run_property(self, body, run_id, property_name, **kwargs): # noqa: E501
|
|
493
|
+
"""Update a property value for an existing run # noqa: E501
|
|
494
|
+
|
|
495
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
496
|
+
asynchronous HTTP request, please pass async_req=True
|
|
497
|
+
>>> thread = api.update_run_property(body, run_id, property_name, async_req=True)
|
|
498
|
+
>>> result = thread.get()
|
|
499
|
+
|
|
500
|
+
:param async_req bool
|
|
501
501
|
:param object body: The new value. In order to update the TireSetId property you have to enter a string that matches a valid uniquer identifier (ex : "68F468D0-5268-4B42-9DBE-9DCFE034642C").
|
|
502
|
-
For RunDate, you need to wrap the date around " for instance : "2018-12-20T09:31:25.111Z" (required)
|
|
503
|
-
:param str run_id: The run unique id. (required)
|
|
504
|
-
:param str property_name: The property name.(Case sensitive) (required)
|
|
505
|
-
:return: Run
|
|
506
|
-
If the method is called asynchronously,
|
|
507
|
-
returns the request thread.
|
|
508
|
-
"""
|
|
509
|
-
kwargs['_return_http_data_only'] = True
|
|
510
|
-
if kwargs.get('async_req'):
|
|
511
|
-
return self.update_run_property_with_http_info(body, run_id, property_name, **kwargs) # noqa: E501
|
|
512
|
-
else:
|
|
513
|
-
(data) = self.update_run_property_with_http_info(body, run_id, property_name, **kwargs) # noqa: E501
|
|
514
|
-
return data
|
|
515
|
-
|
|
516
|
-
def update_run_property_with_http_info(self, body, run_id, property_name, **kwargs): # noqa: E501
|
|
517
|
-
"""Update a property value for an existing run # noqa: E501
|
|
518
|
-
|
|
519
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
520
|
-
asynchronous HTTP request, please pass async_req=True
|
|
521
|
-
>>> thread = api.update_run_property_with_http_info(body, run_id, property_name, async_req=True)
|
|
522
|
-
>>> result = thread.get()
|
|
523
|
-
|
|
524
|
-
:param async_req bool
|
|
502
|
+
For RunDate, you need to wrap the date around " for instance : "2018-12-20T09:31:25.111Z" (required)
|
|
503
|
+
:param str run_id: The run unique id. (required)
|
|
504
|
+
:param str property_name: The property name.(Case sensitive) (required)
|
|
505
|
+
:return: Run
|
|
506
|
+
If the method is called asynchronously,
|
|
507
|
+
returns the request thread.
|
|
508
|
+
"""
|
|
509
|
+
kwargs['_return_http_data_only'] = True
|
|
510
|
+
if kwargs.get('async_req'):
|
|
511
|
+
return self.update_run_property_with_http_info(body, run_id, property_name, **kwargs) # noqa: E501
|
|
512
|
+
else:
|
|
513
|
+
(data) = self.update_run_property_with_http_info(body, run_id, property_name, **kwargs) # noqa: E501
|
|
514
|
+
return data
|
|
515
|
+
|
|
516
|
+
def update_run_property_with_http_info(self, body, run_id, property_name, **kwargs): # noqa: E501
|
|
517
|
+
"""Update a property value for an existing run # noqa: E501
|
|
518
|
+
|
|
519
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
520
|
+
asynchronous HTTP request, please pass async_req=True
|
|
521
|
+
>>> thread = api.update_run_property_with_http_info(body, run_id, property_name, async_req=True)
|
|
522
|
+
>>> result = thread.get()
|
|
523
|
+
|
|
524
|
+
:param async_req bool
|
|
525
525
|
:param object body: The new value. In order to update the TireSetId property you have to enter a string that matches a valid uniquer identifier (ex : "68F468D0-5268-4B42-9DBE-9DCFE034642C").
|
|
526
|
-
For RunDate, you need to wrap the date around " for instance : "2018-12-20T09:31:25.111Z" (required)
|
|
527
|
-
:param str run_id: The run unique id. (required)
|
|
528
|
-
:param str property_name: The property name.(Case sensitive) (required)
|
|
529
|
-
:return: Run
|
|
530
|
-
If the method is called asynchronously,
|
|
531
|
-
returns the request thread.
|
|
532
|
-
"""
|
|
533
|
-
|
|
534
|
-
all_params = ['body', 'run_id', 'property_name'] # noqa: E501
|
|
535
|
-
all_params.append('async_req')
|
|
536
|
-
all_params.append('_return_http_data_only')
|
|
537
|
-
all_params.append('_preload_content')
|
|
538
|
-
all_params.append('_request_timeout')
|
|
539
|
-
|
|
540
|
-
params = locals()
|
|
541
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
542
|
-
if key not in all_params:
|
|
543
|
-
raise TypeError(
|
|
544
|
-
"Got an unexpected keyword argument '%s'"
|
|
545
|
-
" to method update_run_property" % key
|
|
546
|
-
)
|
|
547
|
-
params[key] = val
|
|
548
|
-
del params['kwargs']
|
|
549
|
-
# verify the required parameter 'body' is set
|
|
550
|
-
if ('body' not in params or
|
|
551
|
-
params['body'] is None):
|
|
552
|
-
raise ValueError("Missing the required parameter `body` when calling `update_run_property`") # noqa: E501
|
|
553
|
-
# verify the required parameter 'run_id' is set
|
|
554
|
-
if ('run_id' not in params or
|
|
555
|
-
params['run_id'] is None):
|
|
556
|
-
raise ValueError("Missing the required parameter `run_id` when calling `update_run_property`") # noqa: E501
|
|
557
|
-
# verify the required parameter 'property_name' is set
|
|
558
|
-
if ('property_name' not in params or
|
|
559
|
-
params['property_name'] is None):
|
|
560
|
-
raise ValueError("Missing the required parameter `property_name` when calling `update_run_property`") # noqa: E501
|
|
561
|
-
|
|
562
|
-
collection_formats = {}
|
|
563
|
-
|
|
564
|
-
path_params = {}
|
|
565
|
-
if 'run_id' in params:
|
|
566
|
-
path_params['runId'] = params['run_id'] # noqa: E501
|
|
567
|
-
if 'property_name' in params:
|
|
568
|
-
path_params['propertyName'] = params['property_name'] # noqa: E501
|
|
569
|
-
|
|
570
|
-
query_params = []
|
|
571
|
-
|
|
572
|
-
header_params = {}
|
|
573
|
-
|
|
574
|
-
form_params = []
|
|
575
|
-
local_var_files = {}
|
|
576
|
-
|
|
577
|
-
body_params = None
|
|
578
|
-
if 'body' in params:
|
|
579
|
-
body_params = params['body']
|
|
580
|
-
# HTTP header `Accept`
|
|
581
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
582
|
-
['application/json', 'text/json']) # noqa: E501
|
|
583
|
-
|
|
584
|
-
# HTTP header `Content-Type`
|
|
585
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
586
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
587
|
-
|
|
588
|
-
# Authentication setting
|
|
589
|
-
auth_settings = [] # noqa: E501
|
|
590
|
-
|
|
591
|
-
return self.api_client.call_api(
|
|
592
|
-
'/teamdbapi/v2.0/run/{runId}/propertyName/{propertyName}', 'PUT',
|
|
593
|
-
path_params,
|
|
594
|
-
query_params,
|
|
595
|
-
header_params,
|
|
596
|
-
body=body_params,
|
|
597
|
-
post_params=form_params,
|
|
598
|
-
files=local_var_files,
|
|
599
|
-
response_type='Run', # noqa: E501
|
|
600
|
-
auth_settings=auth_settings,
|
|
601
|
-
async_req=params.get('async_req'),
|
|
602
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
603
|
-
_preload_content=params.get('_preload_content', True),
|
|
604
|
-
_request_timeout=params.get('_request_timeout'),
|
|
605
|
-
collection_formats=collection_formats)
|
|
526
|
+
For RunDate, you need to wrap the date around " for instance : "2018-12-20T09:31:25.111Z" (required)
|
|
527
|
+
:param str run_id: The run unique id. (required)
|
|
528
|
+
:param str property_name: The property name.(Case sensitive) (required)
|
|
529
|
+
:return: Run
|
|
530
|
+
If the method is called asynchronously,
|
|
531
|
+
returns the request thread.
|
|
532
|
+
"""
|
|
533
|
+
|
|
534
|
+
all_params = ['body', 'run_id', 'property_name'] # noqa: E501
|
|
535
|
+
all_params.append('async_req')
|
|
536
|
+
all_params.append('_return_http_data_only')
|
|
537
|
+
all_params.append('_preload_content')
|
|
538
|
+
all_params.append('_request_timeout')
|
|
539
|
+
|
|
540
|
+
params = locals()
|
|
541
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
542
|
+
if key not in all_params:
|
|
543
|
+
raise TypeError(
|
|
544
|
+
"Got an unexpected keyword argument '%s'"
|
|
545
|
+
" to method update_run_property" % key
|
|
546
|
+
)
|
|
547
|
+
params[key] = val
|
|
548
|
+
del params['kwargs']
|
|
549
|
+
# verify the required parameter 'body' is set
|
|
550
|
+
if ('body' not in params or
|
|
551
|
+
params['body'] is None):
|
|
552
|
+
raise ValueError("Missing the required parameter `body` when calling `update_run_property`") # noqa: E501
|
|
553
|
+
# verify the required parameter 'run_id' is set
|
|
554
|
+
if ('run_id' not in params or
|
|
555
|
+
params['run_id'] is None):
|
|
556
|
+
raise ValueError("Missing the required parameter `run_id` when calling `update_run_property`") # noqa: E501
|
|
557
|
+
# verify the required parameter 'property_name' is set
|
|
558
|
+
if ('property_name' not in params or
|
|
559
|
+
params['property_name'] is None):
|
|
560
|
+
raise ValueError("Missing the required parameter `property_name` when calling `update_run_property`") # noqa: E501
|
|
561
|
+
|
|
562
|
+
collection_formats = {}
|
|
563
|
+
|
|
564
|
+
path_params = {}
|
|
565
|
+
if 'run_id' in params:
|
|
566
|
+
path_params['runId'] = params['run_id'] # noqa: E501
|
|
567
|
+
if 'property_name' in params:
|
|
568
|
+
path_params['propertyName'] = params['property_name'] # noqa: E501
|
|
569
|
+
|
|
570
|
+
query_params = []
|
|
571
|
+
|
|
572
|
+
header_params = {}
|
|
573
|
+
|
|
574
|
+
form_params = []
|
|
575
|
+
local_var_files = {}
|
|
576
|
+
|
|
577
|
+
body_params = None
|
|
578
|
+
if 'body' in params:
|
|
579
|
+
body_params = params['body']
|
|
580
|
+
# HTTP header `Accept`
|
|
581
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
582
|
+
['application/json', 'text/json']) # noqa: E501
|
|
583
|
+
|
|
584
|
+
# HTTP header `Content-Type`
|
|
585
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
586
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
587
|
+
|
|
588
|
+
# Authentication setting
|
|
589
|
+
auth_settings = [] # noqa: E501
|
|
590
|
+
|
|
591
|
+
return self.api_client.call_api(
|
|
592
|
+
'/teamdbapi/v2.0/run/{runId}/propertyName/{propertyName}', 'PUT',
|
|
593
|
+
path_params,
|
|
594
|
+
query_params,
|
|
595
|
+
header_params,
|
|
596
|
+
body=body_params,
|
|
597
|
+
post_params=form_params,
|
|
598
|
+
files=local_var_files,
|
|
599
|
+
response_type='Run', # noqa: E501
|
|
600
|
+
auth_settings=auth_settings,
|
|
601
|
+
async_req=params.get('async_req'),
|
|
602
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
603
|
+
_preload_content=params.get('_preload_content', True),
|
|
604
|
+
_request_timeout=params.get('_request_timeout'),
|
|
605
|
+
collection_formats=collection_formats)
|