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/tire_set_api.py
CHANGED
|
@@ -1,514 +1,514 @@
|
|
|
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 TireSetApi(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_tire_set(self, body, **kwargs): # noqa: E501
|
|
36
|
-
"""Create a new tireset # 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_tire_set(body, async_req=True)
|
|
41
|
-
>>> result = thread.get()
|
|
42
|
-
|
|
43
|
-
:param async_req bool
|
|
44
|
-
:param TireSet body: The tireset to create. (required)
|
|
45
|
-
:return: TireSet
|
|
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_tire_set_with_http_info(body, **kwargs) # noqa: E501
|
|
52
|
-
else:
|
|
53
|
-
(data) = self.create_tire_set_with_http_info(body, **kwargs) # noqa: E501
|
|
54
|
-
return data
|
|
55
|
-
|
|
56
|
-
def create_tire_set_with_http_info(self, body, **kwargs): # noqa: E501
|
|
57
|
-
"""Create a new tireset # 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_tire_set_with_http_info(body, async_req=True)
|
|
62
|
-
>>> result = thread.get()
|
|
63
|
-
|
|
64
|
-
:param async_req bool
|
|
65
|
-
:param TireSet body: The tireset to create. (required)
|
|
66
|
-
:return: TireSet
|
|
67
|
-
If the method is called asynchronously,
|
|
68
|
-
returns the request thread.
|
|
69
|
-
"""
|
|
70
|
-
|
|
71
|
-
all_params = ['body'] # 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_tire_set" % key
|
|
83
|
-
)
|
|
84
|
-
params[key] = val
|
|
85
|
-
del params['kwargs']
|
|
86
|
-
# verify the required parameter 'body' is set
|
|
87
|
-
if ('body' not in params or
|
|
88
|
-
params['body'] is None):
|
|
89
|
-
raise ValueError("Missing the required parameter `body` when calling `create_tire_set`") # noqa: E501
|
|
90
|
-
|
|
91
|
-
collection_formats = {}
|
|
92
|
-
|
|
93
|
-
path_params = {}
|
|
94
|
-
|
|
95
|
-
query_params = []
|
|
96
|
-
|
|
97
|
-
header_params = {}
|
|
98
|
-
|
|
99
|
-
form_params = []
|
|
100
|
-
local_var_files = {}
|
|
101
|
-
|
|
102
|
-
body_params = None
|
|
103
|
-
if 'body' in params:
|
|
104
|
-
body_params = params['body']
|
|
105
|
-
# HTTP header `Accept`
|
|
106
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
107
|
-
['application/json', 'text/json']) # noqa: E501
|
|
108
|
-
|
|
109
|
-
# HTTP header `Content-Type`
|
|
110
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
111
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
112
|
-
|
|
113
|
-
# Authentication setting
|
|
114
|
-
auth_settings = [] # noqa: E501
|
|
115
|
-
|
|
116
|
-
return self.api_client.call_api(
|
|
117
|
-
'/teamdbapi/v2.0/tireset', 'POST',
|
|
118
|
-
path_params,
|
|
119
|
-
query_params,
|
|
120
|
-
header_params,
|
|
121
|
-
body=body_params,
|
|
122
|
-
post_params=form_params,
|
|
123
|
-
files=local_var_files,
|
|
124
|
-
response_type='TireSet', # noqa: E501
|
|
125
|
-
auth_settings=auth_settings,
|
|
126
|
-
async_req=params.get('async_req'),
|
|
127
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
128
|
-
_preload_content=params.get('_preload_content', True),
|
|
129
|
-
_request_timeout=params.get('_request_timeout'),
|
|
130
|
-
collection_formats=collection_formats)
|
|
131
|
-
|
|
132
|
-
def delete_tire_set(self, tire_set_id, **kwargs): # noqa: E501
|
|
133
|
-
"""Delete an existing tireset # noqa: E501
|
|
134
|
-
|
|
135
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
136
|
-
asynchronous HTTP request, please pass async_req=True
|
|
137
|
-
>>> thread = api.delete_tire_set(tire_set_id, async_req=True)
|
|
138
|
-
>>> result = thread.get()
|
|
139
|
-
|
|
140
|
-
:param async_req bool
|
|
141
|
-
:param str tire_set_id: The unique tireset id for which you want to delete the tireset (required)
|
|
142
|
-
:return: None
|
|
143
|
-
If the method is called asynchronously,
|
|
144
|
-
returns the request thread.
|
|
145
|
-
"""
|
|
146
|
-
kwargs['_return_http_data_only'] = True
|
|
147
|
-
if kwargs.get('async_req'):
|
|
148
|
-
return self.delete_tire_set_with_http_info(tire_set_id, **kwargs) # noqa: E501
|
|
149
|
-
else:
|
|
150
|
-
(data) = self.delete_tire_set_with_http_info(tire_set_id, **kwargs) # noqa: E501
|
|
151
|
-
return data
|
|
152
|
-
|
|
153
|
-
def delete_tire_set_with_http_info(self, tire_set_id, **kwargs): # noqa: E501
|
|
154
|
-
"""Delete an existing tireset # noqa: E501
|
|
155
|
-
|
|
156
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
157
|
-
asynchronous HTTP request, please pass async_req=True
|
|
158
|
-
>>> thread = api.delete_tire_set_with_http_info(tire_set_id, async_req=True)
|
|
159
|
-
>>> result = thread.get()
|
|
160
|
-
|
|
161
|
-
:param async_req bool
|
|
162
|
-
:param str tire_set_id: The unique tireset id for which you want to delete the tireset (required)
|
|
163
|
-
:return: None
|
|
164
|
-
If the method is called asynchronously,
|
|
165
|
-
returns the request thread.
|
|
166
|
-
"""
|
|
167
|
-
|
|
168
|
-
all_params = ['tire_set_id'] # noqa: E501
|
|
169
|
-
all_params.append('async_req')
|
|
170
|
-
all_params.append('_return_http_data_only')
|
|
171
|
-
all_params.append('_preload_content')
|
|
172
|
-
all_params.append('_request_timeout')
|
|
173
|
-
|
|
174
|
-
params = locals()
|
|
175
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
176
|
-
if key not in all_params:
|
|
177
|
-
raise TypeError(
|
|
178
|
-
"Got an unexpected keyword argument '%s'"
|
|
179
|
-
" to method delete_tire_set" % key
|
|
180
|
-
)
|
|
181
|
-
params[key] = val
|
|
182
|
-
del params['kwargs']
|
|
183
|
-
# verify the required parameter 'tire_set_id' is set
|
|
184
|
-
if ('tire_set_id' not in params or
|
|
185
|
-
params['tire_set_id'] is None):
|
|
186
|
-
raise ValueError("Missing the required parameter `tire_set_id` when calling `delete_tire_set`") # noqa: E501
|
|
187
|
-
|
|
188
|
-
collection_formats = {}
|
|
189
|
-
|
|
190
|
-
path_params = {}
|
|
191
|
-
if 'tire_set_id' in params:
|
|
192
|
-
path_params['tireSetId'] = params['tire_set_id'] # noqa: E501
|
|
193
|
-
|
|
194
|
-
query_params = []
|
|
195
|
-
|
|
196
|
-
header_params = {}
|
|
197
|
-
|
|
198
|
-
form_params = []
|
|
199
|
-
local_var_files = {}
|
|
200
|
-
|
|
201
|
-
body_params = None
|
|
202
|
-
# HTTP header `Accept`
|
|
203
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
204
|
-
['application/json', 'text/json']) # noqa: E501
|
|
205
|
-
|
|
206
|
-
# Authentication setting
|
|
207
|
-
auth_settings = [] # noqa: E501
|
|
208
|
-
|
|
209
|
-
return self.api_client.call_api(
|
|
210
|
-
'/teamdbapi/v2.0/tireset/{tireSetId}', 'DELETE',
|
|
211
|
-
path_params,
|
|
212
|
-
query_params,
|
|
213
|
-
header_params,
|
|
214
|
-
body=body_params,
|
|
215
|
-
post_params=form_params,
|
|
216
|
-
files=local_var_files,
|
|
217
|
-
response_type=None, # noqa: E501
|
|
218
|
-
auth_settings=auth_settings,
|
|
219
|
-
async_req=params.get('async_req'),
|
|
220
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
221
|
-
_preload_content=params.get('_preload_content', True),
|
|
222
|
-
_request_timeout=params.get('_request_timeout'),
|
|
223
|
-
collection_formats=collection_formats)
|
|
224
|
-
|
|
225
|
-
def get_tire_set(self, tire_set_id, **kwargs): # noqa: E501
|
|
226
|
-
"""Get a tireset via a unique id. # noqa: E501
|
|
227
|
-
|
|
228
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
229
|
-
asynchronous HTTP request, please pass async_req=True
|
|
230
|
-
>>> thread = api.get_tire_set(tire_set_id, async_req=True)
|
|
231
|
-
>>> result = thread.get()
|
|
232
|
-
|
|
233
|
-
:param async_req bool
|
|
234
|
-
:param str tire_set_id: The unique tireset id for which you want to get the tireset (required)
|
|
235
|
-
:return: TireSet
|
|
236
|
-
If the method is called asynchronously,
|
|
237
|
-
returns the request thread.
|
|
238
|
-
"""
|
|
239
|
-
kwargs['_return_http_data_only'] = True
|
|
240
|
-
if kwargs.get('async_req'):
|
|
241
|
-
return self.get_tire_set_with_http_info(tire_set_id, **kwargs) # noqa: E501
|
|
242
|
-
else:
|
|
243
|
-
(data) = self.get_tire_set_with_http_info(tire_set_id, **kwargs) # noqa: E501
|
|
244
|
-
return data
|
|
245
|
-
|
|
246
|
-
def get_tire_set_with_http_info(self, tire_set_id, **kwargs): # noqa: E501
|
|
247
|
-
"""Get a tireset via a unique id. # noqa: E501
|
|
248
|
-
|
|
249
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
250
|
-
asynchronous HTTP request, please pass async_req=True
|
|
251
|
-
>>> thread = api.get_tire_set_with_http_info(tire_set_id, async_req=True)
|
|
252
|
-
>>> result = thread.get()
|
|
253
|
-
|
|
254
|
-
:param async_req bool
|
|
255
|
-
:param str tire_set_id: The unique tireset id for which you want to get the tireset (required)
|
|
256
|
-
:return: TireSet
|
|
257
|
-
If the method is called asynchronously,
|
|
258
|
-
returns the request thread.
|
|
259
|
-
"""
|
|
260
|
-
|
|
261
|
-
all_params = ['tire_set_id'] # noqa: E501
|
|
262
|
-
all_params.append('async_req')
|
|
263
|
-
all_params.append('_return_http_data_only')
|
|
264
|
-
all_params.append('_preload_content')
|
|
265
|
-
all_params.append('_request_timeout')
|
|
266
|
-
|
|
267
|
-
params = locals()
|
|
268
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
269
|
-
if key not in all_params:
|
|
270
|
-
raise TypeError(
|
|
271
|
-
"Got an unexpected keyword argument '%s'"
|
|
272
|
-
" to method get_tire_set" % key
|
|
273
|
-
)
|
|
274
|
-
params[key] = val
|
|
275
|
-
del params['kwargs']
|
|
276
|
-
# verify the required parameter 'tire_set_id' is set
|
|
277
|
-
if ('tire_set_id' not in params or
|
|
278
|
-
params['tire_set_id'] is None):
|
|
279
|
-
raise ValueError("Missing the required parameter `tire_set_id` when calling `get_tire_set`") # noqa: E501
|
|
280
|
-
|
|
281
|
-
collection_formats = {}
|
|
282
|
-
|
|
283
|
-
path_params = {}
|
|
284
|
-
if 'tire_set_id' in params:
|
|
285
|
-
path_params['tireSetId'] = params['tire_set_id'] # noqa: E501
|
|
286
|
-
|
|
287
|
-
query_params = []
|
|
288
|
-
|
|
289
|
-
header_params = {}
|
|
290
|
-
|
|
291
|
-
form_params = []
|
|
292
|
-
local_var_files = {}
|
|
293
|
-
|
|
294
|
-
body_params = None
|
|
295
|
-
# HTTP header `Accept`
|
|
296
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
297
|
-
['application/json', 'text/json']) # noqa: E501
|
|
298
|
-
|
|
299
|
-
# Authentication setting
|
|
300
|
-
auth_settings = [] # noqa: E501
|
|
301
|
-
|
|
302
|
-
return self.api_client.call_api(
|
|
303
|
-
'/teamdbapi/v2.0/tireset/{tireSetId}', 'GET',
|
|
304
|
-
path_params,
|
|
305
|
-
query_params,
|
|
306
|
-
header_params,
|
|
307
|
-
body=body_params,
|
|
308
|
-
post_params=form_params,
|
|
309
|
-
files=local_var_files,
|
|
310
|
-
response_type='TireSet', # noqa: E501
|
|
311
|
-
auth_settings=auth_settings,
|
|
312
|
-
async_req=params.get('async_req'),
|
|
313
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
314
|
-
_preload_content=params.get('_preload_content', True),
|
|
315
|
-
_request_timeout=params.get('_request_timeout'),
|
|
316
|
-
collection_formats=collection_formats)
|
|
317
|
-
|
|
318
|
-
def get_tire_sets_list(self, event_id, **kwargs): # noqa: E501
|
|
319
|
-
"""Get the list of all tiresets for an event # noqa: E501
|
|
320
|
-
|
|
321
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
322
|
-
asynchronous HTTP request, please pass async_req=True
|
|
323
|
-
>>> thread = api.get_tire_sets_list(event_id, async_req=True)
|
|
324
|
-
>>> result = thread.get()
|
|
325
|
-
|
|
326
|
-
:param async_req bool
|
|
327
|
-
:param str event_id: The unique event id for which you want to get the tireset list (required)
|
|
328
|
-
:return: list[CoupleGuidText]
|
|
329
|
-
If the method is called asynchronously,
|
|
330
|
-
returns the request thread.
|
|
331
|
-
"""
|
|
332
|
-
kwargs['_return_http_data_only'] = True
|
|
333
|
-
if kwargs.get('async_req'):
|
|
334
|
-
return self.get_tire_sets_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
335
|
-
else:
|
|
336
|
-
(data) = self.get_tire_sets_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
337
|
-
return data
|
|
338
|
-
|
|
339
|
-
def get_tire_sets_list_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
340
|
-
"""Get the list of all tiresets for an event # noqa: E501
|
|
341
|
-
|
|
342
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
343
|
-
asynchronous HTTP request, please pass async_req=True
|
|
344
|
-
>>> thread = api.get_tire_sets_list_with_http_info(event_id, async_req=True)
|
|
345
|
-
>>> result = thread.get()
|
|
346
|
-
|
|
347
|
-
:param async_req bool
|
|
348
|
-
:param str event_id: The unique event id for which you want to get the tireset list (required)
|
|
349
|
-
:return: list[CoupleGuidText]
|
|
350
|
-
If the method is called asynchronously,
|
|
351
|
-
returns the request thread.
|
|
352
|
-
"""
|
|
353
|
-
|
|
354
|
-
all_params = ['event_id'] # noqa: E501
|
|
355
|
-
all_params.append('async_req')
|
|
356
|
-
all_params.append('_return_http_data_only')
|
|
357
|
-
all_params.append('_preload_content')
|
|
358
|
-
all_params.append('_request_timeout')
|
|
359
|
-
|
|
360
|
-
params = locals()
|
|
361
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
362
|
-
if key not in all_params:
|
|
363
|
-
raise TypeError(
|
|
364
|
-
"Got an unexpected keyword argument '%s'"
|
|
365
|
-
" to method get_tire_sets_list" % key
|
|
366
|
-
)
|
|
367
|
-
params[key] = val
|
|
368
|
-
del params['kwargs']
|
|
369
|
-
# verify the required parameter 'event_id' is set
|
|
370
|
-
if ('event_id' not in params or
|
|
371
|
-
params['event_id'] is None):
|
|
372
|
-
raise ValueError("Missing the required parameter `event_id` when calling `get_tire_sets_list`") # noqa: E501
|
|
373
|
-
|
|
374
|
-
collection_formats = {}
|
|
375
|
-
|
|
376
|
-
path_params = {}
|
|
377
|
-
if 'event_id' in params:
|
|
378
|
-
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
379
|
-
|
|
380
|
-
query_params = []
|
|
381
|
-
|
|
382
|
-
header_params = {}
|
|
383
|
-
|
|
384
|
-
form_params = []
|
|
385
|
-
local_var_files = {}
|
|
386
|
-
|
|
387
|
-
body_params = None
|
|
388
|
-
# HTTP header `Accept`
|
|
389
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
390
|
-
['application/json', 'text/json']) # noqa: E501
|
|
391
|
-
|
|
392
|
-
# Authentication setting
|
|
393
|
-
auth_settings = [] # noqa: E501
|
|
394
|
-
|
|
395
|
-
return self.api_client.call_api(
|
|
396
|
-
'/teamdbapi/v2.0/event/{eventId}/tiresets', 'GET',
|
|
397
|
-
path_params,
|
|
398
|
-
query_params,
|
|
399
|
-
header_params,
|
|
400
|
-
body=body_params,
|
|
401
|
-
post_params=form_params,
|
|
402
|
-
files=local_var_files,
|
|
403
|
-
response_type='list[CoupleGuidText]', # noqa: E501
|
|
404
|
-
auth_settings=auth_settings,
|
|
405
|
-
async_req=params.get('async_req'),
|
|
406
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
407
|
-
_preload_content=params.get('_preload_content', True),
|
|
408
|
-
_request_timeout=params.get('_request_timeout'),
|
|
409
|
-
collection_formats=collection_formats)
|
|
410
|
-
|
|
411
|
-
def update_tire_set(self, body, tire_set_id, **kwargs): # noqa: E501
|
|
412
|
-
"""Update an existing TireSet # noqa: E501
|
|
413
|
-
|
|
414
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
415
|
-
asynchronous HTTP request, please pass async_req=True
|
|
416
|
-
>>> thread = api.update_tire_set(body, tire_set_id, async_req=True)
|
|
417
|
-
>>> result = thread.get()
|
|
418
|
-
|
|
419
|
-
:param async_req bool
|
|
420
|
-
:param TireSet body: The tireset to update. (required)
|
|
421
|
-
:param str tire_set_id: The unique tireset id for which you want to update the tireset (required)
|
|
422
|
-
:return: TireSet
|
|
423
|
-
If the method is called asynchronously,
|
|
424
|
-
returns the request thread.
|
|
425
|
-
"""
|
|
426
|
-
kwargs['_return_http_data_only'] = True
|
|
427
|
-
if kwargs.get('async_req'):
|
|
428
|
-
return self.update_tire_set_with_http_info(body, tire_set_id, **kwargs) # noqa: E501
|
|
429
|
-
else:
|
|
430
|
-
(data) = self.update_tire_set_with_http_info(body, tire_set_id, **kwargs) # noqa: E501
|
|
431
|
-
return data
|
|
432
|
-
|
|
433
|
-
def update_tire_set_with_http_info(self, body, tire_set_id, **kwargs): # noqa: E501
|
|
434
|
-
"""Update an existing TireSet # noqa: E501
|
|
435
|
-
|
|
436
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
437
|
-
asynchronous HTTP request, please pass async_req=True
|
|
438
|
-
>>> thread = api.update_tire_set_with_http_info(body, tire_set_id, async_req=True)
|
|
439
|
-
>>> result = thread.get()
|
|
440
|
-
|
|
441
|
-
:param async_req bool
|
|
442
|
-
:param TireSet body: The tireset to update. (required)
|
|
443
|
-
:param str tire_set_id: The unique tireset id for which you want to update the tireset (required)
|
|
444
|
-
:return: TireSet
|
|
445
|
-
If the method is called asynchronously,
|
|
446
|
-
returns the request thread.
|
|
447
|
-
"""
|
|
448
|
-
|
|
449
|
-
all_params = ['body', 'tire_set_id'] # noqa: E501
|
|
450
|
-
all_params.append('async_req')
|
|
451
|
-
all_params.append('_return_http_data_only')
|
|
452
|
-
all_params.append('_preload_content')
|
|
453
|
-
all_params.append('_request_timeout')
|
|
454
|
-
|
|
455
|
-
params = locals()
|
|
456
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
457
|
-
if key not in all_params:
|
|
458
|
-
raise TypeError(
|
|
459
|
-
"Got an unexpected keyword argument '%s'"
|
|
460
|
-
" to method update_tire_set" % key
|
|
461
|
-
)
|
|
462
|
-
params[key] = val
|
|
463
|
-
del params['kwargs']
|
|
464
|
-
# verify the required parameter 'body' is set
|
|
465
|
-
if ('body' not in params or
|
|
466
|
-
params['body'] is None):
|
|
467
|
-
raise ValueError("Missing the required parameter `body` when calling `update_tire_set`") # noqa: E501
|
|
468
|
-
# verify the required parameter 'tire_set_id' is set
|
|
469
|
-
if ('tire_set_id' not in params or
|
|
470
|
-
params['tire_set_id'] is None):
|
|
471
|
-
raise ValueError("Missing the required parameter `tire_set_id` when calling `update_tire_set`") # noqa: E501
|
|
472
|
-
|
|
473
|
-
collection_formats = {}
|
|
474
|
-
|
|
475
|
-
path_params = {}
|
|
476
|
-
if 'tire_set_id' in params:
|
|
477
|
-
path_params['tireSetId'] = params['tire_set_id'] # noqa: E501
|
|
478
|
-
|
|
479
|
-
query_params = []
|
|
480
|
-
|
|
481
|
-
header_params = {}
|
|
482
|
-
|
|
483
|
-
form_params = []
|
|
484
|
-
local_var_files = {}
|
|
485
|
-
|
|
486
|
-
body_params = None
|
|
487
|
-
if 'body' in params:
|
|
488
|
-
body_params = params['body']
|
|
489
|
-
# HTTP header `Accept`
|
|
490
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
491
|
-
['application/json', 'text/json']) # noqa: E501
|
|
492
|
-
|
|
493
|
-
# HTTP header `Content-Type`
|
|
494
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
495
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
496
|
-
|
|
497
|
-
# Authentication setting
|
|
498
|
-
auth_settings = [] # noqa: E501
|
|
499
|
-
|
|
500
|
-
return self.api_client.call_api(
|
|
501
|
-
'/teamdbapi/v2.0/tireset/{tireSetId}', 'PUT',
|
|
502
|
-
path_params,
|
|
503
|
-
query_params,
|
|
504
|
-
header_params,
|
|
505
|
-
body=body_params,
|
|
506
|
-
post_params=form_params,
|
|
507
|
-
files=local_var_files,
|
|
508
|
-
response_type='TireSet', # noqa: E501
|
|
509
|
-
auth_settings=auth_settings,
|
|
510
|
-
async_req=params.get('async_req'),
|
|
511
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
512
|
-
_preload_content=params.get('_preload_content', True),
|
|
513
|
-
_request_timeout=params.get('_request_timeout'),
|
|
514
|
-
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 TireSetApi(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_tire_set(self, body, **kwargs): # noqa: E501
|
|
36
|
+
"""Create a new tireset # 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_tire_set(body, async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:param TireSet body: The tireset to create. (required)
|
|
45
|
+
:return: TireSet
|
|
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_tire_set_with_http_info(body, **kwargs) # noqa: E501
|
|
52
|
+
else:
|
|
53
|
+
(data) = self.create_tire_set_with_http_info(body, **kwargs) # noqa: E501
|
|
54
|
+
return data
|
|
55
|
+
|
|
56
|
+
def create_tire_set_with_http_info(self, body, **kwargs): # noqa: E501
|
|
57
|
+
"""Create a new tireset # 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_tire_set_with_http_info(body, async_req=True)
|
|
62
|
+
>>> result = thread.get()
|
|
63
|
+
|
|
64
|
+
:param async_req bool
|
|
65
|
+
:param TireSet body: The tireset to create. (required)
|
|
66
|
+
:return: TireSet
|
|
67
|
+
If the method is called asynchronously,
|
|
68
|
+
returns the request thread.
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
all_params = ['body'] # 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_tire_set" % key
|
|
83
|
+
)
|
|
84
|
+
params[key] = val
|
|
85
|
+
del params['kwargs']
|
|
86
|
+
# verify the required parameter 'body' is set
|
|
87
|
+
if ('body' not in params or
|
|
88
|
+
params['body'] is None):
|
|
89
|
+
raise ValueError("Missing the required parameter `body` when calling `create_tire_set`") # noqa: E501
|
|
90
|
+
|
|
91
|
+
collection_formats = {}
|
|
92
|
+
|
|
93
|
+
path_params = {}
|
|
94
|
+
|
|
95
|
+
query_params = []
|
|
96
|
+
|
|
97
|
+
header_params = {}
|
|
98
|
+
|
|
99
|
+
form_params = []
|
|
100
|
+
local_var_files = {}
|
|
101
|
+
|
|
102
|
+
body_params = None
|
|
103
|
+
if 'body' in params:
|
|
104
|
+
body_params = params['body']
|
|
105
|
+
# HTTP header `Accept`
|
|
106
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
107
|
+
['application/json', 'text/json']) # noqa: E501
|
|
108
|
+
|
|
109
|
+
# HTTP header `Content-Type`
|
|
110
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
111
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
112
|
+
|
|
113
|
+
# Authentication setting
|
|
114
|
+
auth_settings = [] # noqa: E501
|
|
115
|
+
|
|
116
|
+
return self.api_client.call_api(
|
|
117
|
+
'/teamdbapi/v2.0/tireset', 'POST',
|
|
118
|
+
path_params,
|
|
119
|
+
query_params,
|
|
120
|
+
header_params,
|
|
121
|
+
body=body_params,
|
|
122
|
+
post_params=form_params,
|
|
123
|
+
files=local_var_files,
|
|
124
|
+
response_type='TireSet', # noqa: E501
|
|
125
|
+
auth_settings=auth_settings,
|
|
126
|
+
async_req=params.get('async_req'),
|
|
127
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
128
|
+
_preload_content=params.get('_preload_content', True),
|
|
129
|
+
_request_timeout=params.get('_request_timeout'),
|
|
130
|
+
collection_formats=collection_formats)
|
|
131
|
+
|
|
132
|
+
def delete_tire_set(self, tire_set_id, **kwargs): # noqa: E501
|
|
133
|
+
"""Delete an existing tireset # noqa: E501
|
|
134
|
+
|
|
135
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
136
|
+
asynchronous HTTP request, please pass async_req=True
|
|
137
|
+
>>> thread = api.delete_tire_set(tire_set_id, async_req=True)
|
|
138
|
+
>>> result = thread.get()
|
|
139
|
+
|
|
140
|
+
:param async_req bool
|
|
141
|
+
:param str tire_set_id: The unique tireset id for which you want to delete the tireset (required)
|
|
142
|
+
:return: None
|
|
143
|
+
If the method is called asynchronously,
|
|
144
|
+
returns the request thread.
|
|
145
|
+
"""
|
|
146
|
+
kwargs['_return_http_data_only'] = True
|
|
147
|
+
if kwargs.get('async_req'):
|
|
148
|
+
return self.delete_tire_set_with_http_info(tire_set_id, **kwargs) # noqa: E501
|
|
149
|
+
else:
|
|
150
|
+
(data) = self.delete_tire_set_with_http_info(tire_set_id, **kwargs) # noqa: E501
|
|
151
|
+
return data
|
|
152
|
+
|
|
153
|
+
def delete_tire_set_with_http_info(self, tire_set_id, **kwargs): # noqa: E501
|
|
154
|
+
"""Delete an existing tireset # noqa: E501
|
|
155
|
+
|
|
156
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
157
|
+
asynchronous HTTP request, please pass async_req=True
|
|
158
|
+
>>> thread = api.delete_tire_set_with_http_info(tire_set_id, async_req=True)
|
|
159
|
+
>>> result = thread.get()
|
|
160
|
+
|
|
161
|
+
:param async_req bool
|
|
162
|
+
:param str tire_set_id: The unique tireset id for which you want to delete the tireset (required)
|
|
163
|
+
:return: None
|
|
164
|
+
If the method is called asynchronously,
|
|
165
|
+
returns the request thread.
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
all_params = ['tire_set_id'] # noqa: E501
|
|
169
|
+
all_params.append('async_req')
|
|
170
|
+
all_params.append('_return_http_data_only')
|
|
171
|
+
all_params.append('_preload_content')
|
|
172
|
+
all_params.append('_request_timeout')
|
|
173
|
+
|
|
174
|
+
params = locals()
|
|
175
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
176
|
+
if key not in all_params:
|
|
177
|
+
raise TypeError(
|
|
178
|
+
"Got an unexpected keyword argument '%s'"
|
|
179
|
+
" to method delete_tire_set" % key
|
|
180
|
+
)
|
|
181
|
+
params[key] = val
|
|
182
|
+
del params['kwargs']
|
|
183
|
+
# verify the required parameter 'tire_set_id' is set
|
|
184
|
+
if ('tire_set_id' not in params or
|
|
185
|
+
params['tire_set_id'] is None):
|
|
186
|
+
raise ValueError("Missing the required parameter `tire_set_id` when calling `delete_tire_set`") # noqa: E501
|
|
187
|
+
|
|
188
|
+
collection_formats = {}
|
|
189
|
+
|
|
190
|
+
path_params = {}
|
|
191
|
+
if 'tire_set_id' in params:
|
|
192
|
+
path_params['tireSetId'] = params['tire_set_id'] # noqa: E501
|
|
193
|
+
|
|
194
|
+
query_params = []
|
|
195
|
+
|
|
196
|
+
header_params = {}
|
|
197
|
+
|
|
198
|
+
form_params = []
|
|
199
|
+
local_var_files = {}
|
|
200
|
+
|
|
201
|
+
body_params = None
|
|
202
|
+
# HTTP header `Accept`
|
|
203
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
204
|
+
['application/json', 'text/json']) # noqa: E501
|
|
205
|
+
|
|
206
|
+
# Authentication setting
|
|
207
|
+
auth_settings = [] # noqa: E501
|
|
208
|
+
|
|
209
|
+
return self.api_client.call_api(
|
|
210
|
+
'/teamdbapi/v2.0/tireset/{tireSetId}', 'DELETE',
|
|
211
|
+
path_params,
|
|
212
|
+
query_params,
|
|
213
|
+
header_params,
|
|
214
|
+
body=body_params,
|
|
215
|
+
post_params=form_params,
|
|
216
|
+
files=local_var_files,
|
|
217
|
+
response_type=None, # noqa: E501
|
|
218
|
+
auth_settings=auth_settings,
|
|
219
|
+
async_req=params.get('async_req'),
|
|
220
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
221
|
+
_preload_content=params.get('_preload_content', True),
|
|
222
|
+
_request_timeout=params.get('_request_timeout'),
|
|
223
|
+
collection_formats=collection_formats)
|
|
224
|
+
|
|
225
|
+
def get_tire_set(self, tire_set_id, **kwargs): # noqa: E501
|
|
226
|
+
"""Get a tireset via a unique id. # noqa: E501
|
|
227
|
+
|
|
228
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
229
|
+
asynchronous HTTP request, please pass async_req=True
|
|
230
|
+
>>> thread = api.get_tire_set(tire_set_id, async_req=True)
|
|
231
|
+
>>> result = thread.get()
|
|
232
|
+
|
|
233
|
+
:param async_req bool
|
|
234
|
+
:param str tire_set_id: The unique tireset id for which you want to get the tireset (required)
|
|
235
|
+
:return: TireSet
|
|
236
|
+
If the method is called asynchronously,
|
|
237
|
+
returns the request thread.
|
|
238
|
+
"""
|
|
239
|
+
kwargs['_return_http_data_only'] = True
|
|
240
|
+
if kwargs.get('async_req'):
|
|
241
|
+
return self.get_tire_set_with_http_info(tire_set_id, **kwargs) # noqa: E501
|
|
242
|
+
else:
|
|
243
|
+
(data) = self.get_tire_set_with_http_info(tire_set_id, **kwargs) # noqa: E501
|
|
244
|
+
return data
|
|
245
|
+
|
|
246
|
+
def get_tire_set_with_http_info(self, tire_set_id, **kwargs): # noqa: E501
|
|
247
|
+
"""Get a tireset via a unique id. # noqa: E501
|
|
248
|
+
|
|
249
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
250
|
+
asynchronous HTTP request, please pass async_req=True
|
|
251
|
+
>>> thread = api.get_tire_set_with_http_info(tire_set_id, async_req=True)
|
|
252
|
+
>>> result = thread.get()
|
|
253
|
+
|
|
254
|
+
:param async_req bool
|
|
255
|
+
:param str tire_set_id: The unique tireset id for which you want to get the tireset (required)
|
|
256
|
+
:return: TireSet
|
|
257
|
+
If the method is called asynchronously,
|
|
258
|
+
returns the request thread.
|
|
259
|
+
"""
|
|
260
|
+
|
|
261
|
+
all_params = ['tire_set_id'] # noqa: E501
|
|
262
|
+
all_params.append('async_req')
|
|
263
|
+
all_params.append('_return_http_data_only')
|
|
264
|
+
all_params.append('_preload_content')
|
|
265
|
+
all_params.append('_request_timeout')
|
|
266
|
+
|
|
267
|
+
params = locals()
|
|
268
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
269
|
+
if key not in all_params:
|
|
270
|
+
raise TypeError(
|
|
271
|
+
"Got an unexpected keyword argument '%s'"
|
|
272
|
+
" to method get_tire_set" % key
|
|
273
|
+
)
|
|
274
|
+
params[key] = val
|
|
275
|
+
del params['kwargs']
|
|
276
|
+
# verify the required parameter 'tire_set_id' is set
|
|
277
|
+
if ('tire_set_id' not in params or
|
|
278
|
+
params['tire_set_id'] is None):
|
|
279
|
+
raise ValueError("Missing the required parameter `tire_set_id` when calling `get_tire_set`") # noqa: E501
|
|
280
|
+
|
|
281
|
+
collection_formats = {}
|
|
282
|
+
|
|
283
|
+
path_params = {}
|
|
284
|
+
if 'tire_set_id' in params:
|
|
285
|
+
path_params['tireSetId'] = params['tire_set_id'] # noqa: E501
|
|
286
|
+
|
|
287
|
+
query_params = []
|
|
288
|
+
|
|
289
|
+
header_params = {}
|
|
290
|
+
|
|
291
|
+
form_params = []
|
|
292
|
+
local_var_files = {}
|
|
293
|
+
|
|
294
|
+
body_params = None
|
|
295
|
+
# HTTP header `Accept`
|
|
296
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
297
|
+
['application/json', 'text/json']) # noqa: E501
|
|
298
|
+
|
|
299
|
+
# Authentication setting
|
|
300
|
+
auth_settings = [] # noqa: E501
|
|
301
|
+
|
|
302
|
+
return self.api_client.call_api(
|
|
303
|
+
'/teamdbapi/v2.0/tireset/{tireSetId}', 'GET',
|
|
304
|
+
path_params,
|
|
305
|
+
query_params,
|
|
306
|
+
header_params,
|
|
307
|
+
body=body_params,
|
|
308
|
+
post_params=form_params,
|
|
309
|
+
files=local_var_files,
|
|
310
|
+
response_type='TireSet', # noqa: E501
|
|
311
|
+
auth_settings=auth_settings,
|
|
312
|
+
async_req=params.get('async_req'),
|
|
313
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
314
|
+
_preload_content=params.get('_preload_content', True),
|
|
315
|
+
_request_timeout=params.get('_request_timeout'),
|
|
316
|
+
collection_formats=collection_formats)
|
|
317
|
+
|
|
318
|
+
def get_tire_sets_list(self, event_id, **kwargs): # noqa: E501
|
|
319
|
+
"""Get the list of all tiresets for an event # noqa: E501
|
|
320
|
+
|
|
321
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
322
|
+
asynchronous HTTP request, please pass async_req=True
|
|
323
|
+
>>> thread = api.get_tire_sets_list(event_id, async_req=True)
|
|
324
|
+
>>> result = thread.get()
|
|
325
|
+
|
|
326
|
+
:param async_req bool
|
|
327
|
+
:param str event_id: The unique event id for which you want to get the tireset list (required)
|
|
328
|
+
:return: list[CoupleGuidText]
|
|
329
|
+
If the method is called asynchronously,
|
|
330
|
+
returns the request thread.
|
|
331
|
+
"""
|
|
332
|
+
kwargs['_return_http_data_only'] = True
|
|
333
|
+
if kwargs.get('async_req'):
|
|
334
|
+
return self.get_tire_sets_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
335
|
+
else:
|
|
336
|
+
(data) = self.get_tire_sets_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
337
|
+
return data
|
|
338
|
+
|
|
339
|
+
def get_tire_sets_list_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
340
|
+
"""Get the list of all tiresets for an event # noqa: E501
|
|
341
|
+
|
|
342
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
343
|
+
asynchronous HTTP request, please pass async_req=True
|
|
344
|
+
>>> thread = api.get_tire_sets_list_with_http_info(event_id, async_req=True)
|
|
345
|
+
>>> result = thread.get()
|
|
346
|
+
|
|
347
|
+
:param async_req bool
|
|
348
|
+
:param str event_id: The unique event id for which you want to get the tireset list (required)
|
|
349
|
+
:return: list[CoupleGuidText]
|
|
350
|
+
If the method is called asynchronously,
|
|
351
|
+
returns the request thread.
|
|
352
|
+
"""
|
|
353
|
+
|
|
354
|
+
all_params = ['event_id'] # noqa: E501
|
|
355
|
+
all_params.append('async_req')
|
|
356
|
+
all_params.append('_return_http_data_only')
|
|
357
|
+
all_params.append('_preload_content')
|
|
358
|
+
all_params.append('_request_timeout')
|
|
359
|
+
|
|
360
|
+
params = locals()
|
|
361
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
362
|
+
if key not in all_params:
|
|
363
|
+
raise TypeError(
|
|
364
|
+
"Got an unexpected keyword argument '%s'"
|
|
365
|
+
" to method get_tire_sets_list" % key
|
|
366
|
+
)
|
|
367
|
+
params[key] = val
|
|
368
|
+
del params['kwargs']
|
|
369
|
+
# verify the required parameter 'event_id' is set
|
|
370
|
+
if ('event_id' not in params or
|
|
371
|
+
params['event_id'] is None):
|
|
372
|
+
raise ValueError("Missing the required parameter `event_id` when calling `get_tire_sets_list`") # noqa: E501
|
|
373
|
+
|
|
374
|
+
collection_formats = {}
|
|
375
|
+
|
|
376
|
+
path_params = {}
|
|
377
|
+
if 'event_id' in params:
|
|
378
|
+
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
379
|
+
|
|
380
|
+
query_params = []
|
|
381
|
+
|
|
382
|
+
header_params = {}
|
|
383
|
+
|
|
384
|
+
form_params = []
|
|
385
|
+
local_var_files = {}
|
|
386
|
+
|
|
387
|
+
body_params = None
|
|
388
|
+
# HTTP header `Accept`
|
|
389
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
390
|
+
['application/json', 'text/json']) # noqa: E501
|
|
391
|
+
|
|
392
|
+
# Authentication setting
|
|
393
|
+
auth_settings = [] # noqa: E501
|
|
394
|
+
|
|
395
|
+
return self.api_client.call_api(
|
|
396
|
+
'/teamdbapi/v2.0/event/{eventId}/tiresets', 'GET',
|
|
397
|
+
path_params,
|
|
398
|
+
query_params,
|
|
399
|
+
header_params,
|
|
400
|
+
body=body_params,
|
|
401
|
+
post_params=form_params,
|
|
402
|
+
files=local_var_files,
|
|
403
|
+
response_type='list[CoupleGuidText]', # noqa: E501
|
|
404
|
+
auth_settings=auth_settings,
|
|
405
|
+
async_req=params.get('async_req'),
|
|
406
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
407
|
+
_preload_content=params.get('_preload_content', True),
|
|
408
|
+
_request_timeout=params.get('_request_timeout'),
|
|
409
|
+
collection_formats=collection_formats)
|
|
410
|
+
|
|
411
|
+
def update_tire_set(self, body, tire_set_id, **kwargs): # noqa: E501
|
|
412
|
+
"""Update an existing TireSet # noqa: E501
|
|
413
|
+
|
|
414
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
415
|
+
asynchronous HTTP request, please pass async_req=True
|
|
416
|
+
>>> thread = api.update_tire_set(body, tire_set_id, async_req=True)
|
|
417
|
+
>>> result = thread.get()
|
|
418
|
+
|
|
419
|
+
:param async_req bool
|
|
420
|
+
:param TireSet body: The tireset to update. (required)
|
|
421
|
+
:param str tire_set_id: The unique tireset id for which you want to update the tireset (required)
|
|
422
|
+
:return: TireSet
|
|
423
|
+
If the method is called asynchronously,
|
|
424
|
+
returns the request thread.
|
|
425
|
+
"""
|
|
426
|
+
kwargs['_return_http_data_only'] = True
|
|
427
|
+
if kwargs.get('async_req'):
|
|
428
|
+
return self.update_tire_set_with_http_info(body, tire_set_id, **kwargs) # noqa: E501
|
|
429
|
+
else:
|
|
430
|
+
(data) = self.update_tire_set_with_http_info(body, tire_set_id, **kwargs) # noqa: E501
|
|
431
|
+
return data
|
|
432
|
+
|
|
433
|
+
def update_tire_set_with_http_info(self, body, tire_set_id, **kwargs): # noqa: E501
|
|
434
|
+
"""Update an existing TireSet # noqa: E501
|
|
435
|
+
|
|
436
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
437
|
+
asynchronous HTTP request, please pass async_req=True
|
|
438
|
+
>>> thread = api.update_tire_set_with_http_info(body, tire_set_id, async_req=True)
|
|
439
|
+
>>> result = thread.get()
|
|
440
|
+
|
|
441
|
+
:param async_req bool
|
|
442
|
+
:param TireSet body: The tireset to update. (required)
|
|
443
|
+
:param str tire_set_id: The unique tireset id for which you want to update the tireset (required)
|
|
444
|
+
:return: TireSet
|
|
445
|
+
If the method is called asynchronously,
|
|
446
|
+
returns the request thread.
|
|
447
|
+
"""
|
|
448
|
+
|
|
449
|
+
all_params = ['body', 'tire_set_id'] # noqa: E501
|
|
450
|
+
all_params.append('async_req')
|
|
451
|
+
all_params.append('_return_http_data_only')
|
|
452
|
+
all_params.append('_preload_content')
|
|
453
|
+
all_params.append('_request_timeout')
|
|
454
|
+
|
|
455
|
+
params = locals()
|
|
456
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
457
|
+
if key not in all_params:
|
|
458
|
+
raise TypeError(
|
|
459
|
+
"Got an unexpected keyword argument '%s'"
|
|
460
|
+
" to method update_tire_set" % key
|
|
461
|
+
)
|
|
462
|
+
params[key] = val
|
|
463
|
+
del params['kwargs']
|
|
464
|
+
# verify the required parameter 'body' is set
|
|
465
|
+
if ('body' not in params or
|
|
466
|
+
params['body'] is None):
|
|
467
|
+
raise ValueError("Missing the required parameter `body` when calling `update_tire_set`") # noqa: E501
|
|
468
|
+
# verify the required parameter 'tire_set_id' is set
|
|
469
|
+
if ('tire_set_id' not in params or
|
|
470
|
+
params['tire_set_id'] is None):
|
|
471
|
+
raise ValueError("Missing the required parameter `tire_set_id` when calling `update_tire_set`") # noqa: E501
|
|
472
|
+
|
|
473
|
+
collection_formats = {}
|
|
474
|
+
|
|
475
|
+
path_params = {}
|
|
476
|
+
if 'tire_set_id' in params:
|
|
477
|
+
path_params['tireSetId'] = params['tire_set_id'] # noqa: E501
|
|
478
|
+
|
|
479
|
+
query_params = []
|
|
480
|
+
|
|
481
|
+
header_params = {}
|
|
482
|
+
|
|
483
|
+
form_params = []
|
|
484
|
+
local_var_files = {}
|
|
485
|
+
|
|
486
|
+
body_params = None
|
|
487
|
+
if 'body' in params:
|
|
488
|
+
body_params = params['body']
|
|
489
|
+
# HTTP header `Accept`
|
|
490
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
491
|
+
['application/json', 'text/json']) # noqa: E501
|
|
492
|
+
|
|
493
|
+
# HTTP header `Content-Type`
|
|
494
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
495
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
496
|
+
|
|
497
|
+
# Authentication setting
|
|
498
|
+
auth_settings = [] # noqa: E501
|
|
499
|
+
|
|
500
|
+
return self.api_client.call_api(
|
|
501
|
+
'/teamdbapi/v2.0/tireset/{tireSetId}', 'PUT',
|
|
502
|
+
path_params,
|
|
503
|
+
query_params,
|
|
504
|
+
header_params,
|
|
505
|
+
body=body_params,
|
|
506
|
+
post_params=form_params,
|
|
507
|
+
files=local_var_files,
|
|
508
|
+
response_type='TireSet', # noqa: E501
|
|
509
|
+
auth_settings=auth_settings,
|
|
510
|
+
async_req=params.get('async_req'),
|
|
511
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
512
|
+
_preload_content=params.get('_preload_content', True),
|
|
513
|
+
_request_timeout=params.get('_request_timeout'),
|
|
514
|
+
collection_formats=collection_formats)
|