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_api.py
CHANGED
|
@@ -1,599 +1,599 @@
|
|
|
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 TireApi(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(self, body, **kwargs): # noqa: E501
|
|
36
|
-
"""Create a new tire # 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(body, async_req=True)
|
|
41
|
-
>>> result = thread.get()
|
|
42
|
-
|
|
43
|
-
:param async_req bool
|
|
44
|
-
:param Tire body: The tire to create. (required)
|
|
45
|
-
:return: Tire
|
|
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_with_http_info(body, **kwargs) # noqa: E501
|
|
52
|
-
else:
|
|
53
|
-
(data) = self.create_tire_with_http_info(body, **kwargs) # noqa: E501
|
|
54
|
-
return data
|
|
55
|
-
|
|
56
|
-
def create_tire_with_http_info(self, body, **kwargs): # noqa: E501
|
|
57
|
-
"""Create a new tire # 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_with_http_info(body, async_req=True)
|
|
62
|
-
>>> result = thread.get()
|
|
63
|
-
|
|
64
|
-
:param async_req bool
|
|
65
|
-
:param Tire body: The tire to create. (required)
|
|
66
|
-
:return: Tire
|
|
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" % 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`") # 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/tire', '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='Tire', # 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(self, tire_id, **kwargs): # noqa: E501
|
|
133
|
-
"""Delete an existing tire # 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(tire_id, async_req=True)
|
|
138
|
-
>>> result = thread.get()
|
|
139
|
-
|
|
140
|
-
:param async_req bool
|
|
141
|
-
:param str tire_id: The unique tire id for which you want to delete the tire (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_with_http_info(tire_id, **kwargs) # noqa: E501
|
|
149
|
-
else:
|
|
150
|
-
(data) = self.delete_tire_with_http_info(tire_id, **kwargs) # noqa: E501
|
|
151
|
-
return data
|
|
152
|
-
|
|
153
|
-
def delete_tire_with_http_info(self, tire_id, **kwargs): # noqa: E501
|
|
154
|
-
"""Delete an existing tire # 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_with_http_info(tire_id, async_req=True)
|
|
159
|
-
>>> result = thread.get()
|
|
160
|
-
|
|
161
|
-
:param async_req bool
|
|
162
|
-
:param str tire_id: The unique tire id for which you want to delete the tire (required)
|
|
163
|
-
:return: None
|
|
164
|
-
If the method is called asynchronously,
|
|
165
|
-
returns the request thread.
|
|
166
|
-
"""
|
|
167
|
-
|
|
168
|
-
all_params = ['tire_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" % key
|
|
180
|
-
)
|
|
181
|
-
params[key] = val
|
|
182
|
-
del params['kwargs']
|
|
183
|
-
# verify the required parameter 'tire_id' is set
|
|
184
|
-
if ('tire_id' not in params or
|
|
185
|
-
params['tire_id'] is None):
|
|
186
|
-
raise ValueError("Missing the required parameter `tire_id` when calling `delete_tire`") # noqa: E501
|
|
187
|
-
|
|
188
|
-
collection_formats = {}
|
|
189
|
-
|
|
190
|
-
path_params = {}
|
|
191
|
-
if 'tire_id' in params:
|
|
192
|
-
path_params['tireId'] = params['tire_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/tire/{tireId}', '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(self, tire_id, **kwargs): # noqa: E501
|
|
226
|
-
"""Get a tire 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(tire_id, async_req=True)
|
|
231
|
-
>>> result = thread.get()
|
|
232
|
-
|
|
233
|
-
:param async_req bool
|
|
234
|
-
:param str tire_id: The unique tire id for which you want to get the tire (required)
|
|
235
|
-
:return: Tire
|
|
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_with_http_info(tire_id, **kwargs) # noqa: E501
|
|
242
|
-
else:
|
|
243
|
-
(data) = self.get_tire_with_http_info(tire_id, **kwargs) # noqa: E501
|
|
244
|
-
return data
|
|
245
|
-
|
|
246
|
-
def get_tire_with_http_info(self, tire_id, **kwargs): # noqa: E501
|
|
247
|
-
"""Get a tire 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_with_http_info(tire_id, async_req=True)
|
|
252
|
-
>>> result = thread.get()
|
|
253
|
-
|
|
254
|
-
:param async_req bool
|
|
255
|
-
:param str tire_id: The unique tire id for which you want to get the tire (required)
|
|
256
|
-
:return: Tire
|
|
257
|
-
If the method is called asynchronously,
|
|
258
|
-
returns the request thread.
|
|
259
|
-
"""
|
|
260
|
-
|
|
261
|
-
all_params = ['tire_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" % key
|
|
273
|
-
)
|
|
274
|
-
params[key] = val
|
|
275
|
-
del params['kwargs']
|
|
276
|
-
# verify the required parameter 'tire_id' is set
|
|
277
|
-
if ('tire_id' not in params or
|
|
278
|
-
params['tire_id'] is None):
|
|
279
|
-
raise ValueError("Missing the required parameter `tire_id` when calling `get_tire`") # noqa: E501
|
|
280
|
-
|
|
281
|
-
collection_formats = {}
|
|
282
|
-
|
|
283
|
-
path_params = {}
|
|
284
|
-
if 'tire_id' in params:
|
|
285
|
-
path_params['tireId'] = params['tire_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/tire/{tireId}', '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='Tire', # 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_list(self, event_id, **kwargs): # noqa: E501
|
|
319
|
-
"""Get the list of all tires 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_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 tire 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_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
335
|
-
else:
|
|
336
|
-
(data) = self.get_tire_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
337
|
-
return data
|
|
338
|
-
|
|
339
|
-
def get_tire_list_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
340
|
-
"""Get the list of all tires 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_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 tire 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_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_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}/tires', '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 get_tire_type_rubbers(self, **kwargs): # noqa: E501
|
|
412
|
-
"""Get the list of all tire rubber types # 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.get_tire_type_rubbers(async_req=True)
|
|
417
|
-
>>> result = thread.get()
|
|
418
|
-
|
|
419
|
-
:param async_req bool
|
|
420
|
-
:return: list[CoupleGuidText]
|
|
421
|
-
If the method is called asynchronously,
|
|
422
|
-
returns the request thread.
|
|
423
|
-
"""
|
|
424
|
-
kwargs['_return_http_data_only'] = True
|
|
425
|
-
if kwargs.get('async_req'):
|
|
426
|
-
return self.get_tire_type_rubbers_with_http_info(**kwargs) # noqa: E501
|
|
427
|
-
else:
|
|
428
|
-
(data) = self.get_tire_type_rubbers_with_http_info(**kwargs) # noqa: E501
|
|
429
|
-
return data
|
|
430
|
-
|
|
431
|
-
def get_tire_type_rubbers_with_http_info(self, **kwargs): # noqa: E501
|
|
432
|
-
"""Get the list of all tire rubber types # noqa: E501
|
|
433
|
-
|
|
434
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
435
|
-
asynchronous HTTP request, please pass async_req=True
|
|
436
|
-
>>> thread = api.get_tire_type_rubbers_with_http_info(async_req=True)
|
|
437
|
-
>>> result = thread.get()
|
|
438
|
-
|
|
439
|
-
:param async_req bool
|
|
440
|
-
:return: list[CoupleGuidText]
|
|
441
|
-
If the method is called asynchronously,
|
|
442
|
-
returns the request thread.
|
|
443
|
-
"""
|
|
444
|
-
|
|
445
|
-
all_params = [] # noqa: E501
|
|
446
|
-
all_params.append('async_req')
|
|
447
|
-
all_params.append('_return_http_data_only')
|
|
448
|
-
all_params.append('_preload_content')
|
|
449
|
-
all_params.append('_request_timeout')
|
|
450
|
-
|
|
451
|
-
params = locals()
|
|
452
|
-
for key, val in six.iteritems(params['kwargs']):
|
|
453
|
-
if key not in all_params:
|
|
454
|
-
raise TypeError(
|
|
455
|
-
"Got an unexpected keyword argument '%s'"
|
|
456
|
-
" to method get_tire_type_rubbers" % key
|
|
457
|
-
)
|
|
458
|
-
params[key] = val
|
|
459
|
-
del params['kwargs']
|
|
460
|
-
|
|
461
|
-
collection_formats = {}
|
|
462
|
-
|
|
463
|
-
path_params = {}
|
|
464
|
-
|
|
465
|
-
query_params = []
|
|
466
|
-
|
|
467
|
-
header_params = {}
|
|
468
|
-
|
|
469
|
-
form_params = []
|
|
470
|
-
local_var_files = {}
|
|
471
|
-
|
|
472
|
-
body_params = None
|
|
473
|
-
# HTTP header `Accept`
|
|
474
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
475
|
-
['application/json', 'text/json']) # noqa: E501
|
|
476
|
-
|
|
477
|
-
# Authentication setting
|
|
478
|
-
auth_settings = [] # noqa: E501
|
|
479
|
-
|
|
480
|
-
return self.api_client.call_api(
|
|
481
|
-
'/teamdbapi/v2.0/typeTireRubbers', 'GET',
|
|
482
|
-
path_params,
|
|
483
|
-
query_params,
|
|
484
|
-
header_params,
|
|
485
|
-
body=body_params,
|
|
486
|
-
post_params=form_params,
|
|
487
|
-
files=local_var_files,
|
|
488
|
-
response_type='list[CoupleGuidText]', # noqa: E501
|
|
489
|
-
auth_settings=auth_settings,
|
|
490
|
-
async_req=params.get('async_req'),
|
|
491
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
492
|
-
_preload_content=params.get('_preload_content', True),
|
|
493
|
-
_request_timeout=params.get('_request_timeout'),
|
|
494
|
-
collection_formats=collection_formats)
|
|
495
|
-
|
|
496
|
-
def update_tire(self, body, tire_id, **kwargs): # noqa: E501
|
|
497
|
-
"""Update an existing Tire # noqa: E501
|
|
498
|
-
|
|
499
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
500
|
-
asynchronous HTTP request, please pass async_req=True
|
|
501
|
-
>>> thread = api.update_tire(body, tire_id, async_req=True)
|
|
502
|
-
>>> result = thread.get()
|
|
503
|
-
|
|
504
|
-
:param async_req bool
|
|
505
|
-
:param Tire body: The tire to update. (required)
|
|
506
|
-
:param str tire_id: The unique tire id for which you want to update the tire (required)
|
|
507
|
-
:return: Tire
|
|
508
|
-
If the method is called asynchronously,
|
|
509
|
-
returns the request thread.
|
|
510
|
-
"""
|
|
511
|
-
kwargs['_return_http_data_only'] = True
|
|
512
|
-
if kwargs.get('async_req'):
|
|
513
|
-
return self.update_tire_with_http_info(body, tire_id, **kwargs) # noqa: E501
|
|
514
|
-
else:
|
|
515
|
-
(data) = self.update_tire_with_http_info(body, tire_id, **kwargs) # noqa: E501
|
|
516
|
-
return data
|
|
517
|
-
|
|
518
|
-
def update_tire_with_http_info(self, body, tire_id, **kwargs): # noqa: E501
|
|
519
|
-
"""Update an existing Tire # noqa: E501
|
|
520
|
-
|
|
521
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
522
|
-
asynchronous HTTP request, please pass async_req=True
|
|
523
|
-
>>> thread = api.update_tire_with_http_info(body, tire_id, async_req=True)
|
|
524
|
-
>>> result = thread.get()
|
|
525
|
-
|
|
526
|
-
:param async_req bool
|
|
527
|
-
:param Tire body: The tire to update. (required)
|
|
528
|
-
:param str tire_id: The unique tire id for which you want to update the tire (required)
|
|
529
|
-
:return: Tire
|
|
530
|
-
If the method is called asynchronously,
|
|
531
|
-
returns the request thread.
|
|
532
|
-
"""
|
|
533
|
-
|
|
534
|
-
all_params = ['body', 'tire_id'] # 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_tire" % 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_tire`") # noqa: E501
|
|
553
|
-
# verify the required parameter 'tire_id' is set
|
|
554
|
-
if ('tire_id' not in params or
|
|
555
|
-
params['tire_id'] is None):
|
|
556
|
-
raise ValueError("Missing the required parameter `tire_id` when calling `update_tire`") # noqa: E501
|
|
557
|
-
|
|
558
|
-
collection_formats = {}
|
|
559
|
-
|
|
560
|
-
path_params = {}
|
|
561
|
-
if 'tire_id' in params:
|
|
562
|
-
path_params['tireId'] = params['tire_id'] # noqa: E501
|
|
563
|
-
|
|
564
|
-
query_params = []
|
|
565
|
-
|
|
566
|
-
header_params = {}
|
|
567
|
-
|
|
568
|
-
form_params = []
|
|
569
|
-
local_var_files = {}
|
|
570
|
-
|
|
571
|
-
body_params = None
|
|
572
|
-
if 'body' in params:
|
|
573
|
-
body_params = params['body']
|
|
574
|
-
# HTTP header `Accept`
|
|
575
|
-
header_params['Accept'] = self.api_client.select_header_accept(
|
|
576
|
-
['application/json', 'text/json']) # noqa: E501
|
|
577
|
-
|
|
578
|
-
# HTTP header `Content-Type`
|
|
579
|
-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
580
|
-
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
581
|
-
|
|
582
|
-
# Authentication setting
|
|
583
|
-
auth_settings = [] # noqa: E501
|
|
584
|
-
|
|
585
|
-
return self.api_client.call_api(
|
|
586
|
-
'/teamdbapi/v2.0/tire/{tireId}', 'PUT',
|
|
587
|
-
path_params,
|
|
588
|
-
query_params,
|
|
589
|
-
header_params,
|
|
590
|
-
body=body_params,
|
|
591
|
-
post_params=form_params,
|
|
592
|
-
files=local_var_files,
|
|
593
|
-
response_type='Tire', # noqa: E501
|
|
594
|
-
auth_settings=auth_settings,
|
|
595
|
-
async_req=params.get('async_req'),
|
|
596
|
-
_return_http_data_only=params.get('_return_http_data_only'),
|
|
597
|
-
_preload_content=params.get('_preload_content', True),
|
|
598
|
-
_request_timeout=params.get('_request_timeout'),
|
|
599
|
-
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 TireApi(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(self, body, **kwargs): # noqa: E501
|
|
36
|
+
"""Create a new tire # 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(body, async_req=True)
|
|
41
|
+
>>> result = thread.get()
|
|
42
|
+
|
|
43
|
+
:param async_req bool
|
|
44
|
+
:param Tire body: The tire to create. (required)
|
|
45
|
+
:return: Tire
|
|
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_with_http_info(body, **kwargs) # noqa: E501
|
|
52
|
+
else:
|
|
53
|
+
(data) = self.create_tire_with_http_info(body, **kwargs) # noqa: E501
|
|
54
|
+
return data
|
|
55
|
+
|
|
56
|
+
def create_tire_with_http_info(self, body, **kwargs): # noqa: E501
|
|
57
|
+
"""Create a new tire # 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_with_http_info(body, async_req=True)
|
|
62
|
+
>>> result = thread.get()
|
|
63
|
+
|
|
64
|
+
:param async_req bool
|
|
65
|
+
:param Tire body: The tire to create. (required)
|
|
66
|
+
:return: Tire
|
|
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" % 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`") # 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/tire', '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='Tire', # 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(self, tire_id, **kwargs): # noqa: E501
|
|
133
|
+
"""Delete an existing tire # 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(tire_id, async_req=True)
|
|
138
|
+
>>> result = thread.get()
|
|
139
|
+
|
|
140
|
+
:param async_req bool
|
|
141
|
+
:param str tire_id: The unique tire id for which you want to delete the tire (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_with_http_info(tire_id, **kwargs) # noqa: E501
|
|
149
|
+
else:
|
|
150
|
+
(data) = self.delete_tire_with_http_info(tire_id, **kwargs) # noqa: E501
|
|
151
|
+
return data
|
|
152
|
+
|
|
153
|
+
def delete_tire_with_http_info(self, tire_id, **kwargs): # noqa: E501
|
|
154
|
+
"""Delete an existing tire # 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_with_http_info(tire_id, async_req=True)
|
|
159
|
+
>>> result = thread.get()
|
|
160
|
+
|
|
161
|
+
:param async_req bool
|
|
162
|
+
:param str tire_id: The unique tire id for which you want to delete the tire (required)
|
|
163
|
+
:return: None
|
|
164
|
+
If the method is called asynchronously,
|
|
165
|
+
returns the request thread.
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
all_params = ['tire_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" % key
|
|
180
|
+
)
|
|
181
|
+
params[key] = val
|
|
182
|
+
del params['kwargs']
|
|
183
|
+
# verify the required parameter 'tire_id' is set
|
|
184
|
+
if ('tire_id' not in params or
|
|
185
|
+
params['tire_id'] is None):
|
|
186
|
+
raise ValueError("Missing the required parameter `tire_id` when calling `delete_tire`") # noqa: E501
|
|
187
|
+
|
|
188
|
+
collection_formats = {}
|
|
189
|
+
|
|
190
|
+
path_params = {}
|
|
191
|
+
if 'tire_id' in params:
|
|
192
|
+
path_params['tireId'] = params['tire_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/tire/{tireId}', '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(self, tire_id, **kwargs): # noqa: E501
|
|
226
|
+
"""Get a tire 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(tire_id, async_req=True)
|
|
231
|
+
>>> result = thread.get()
|
|
232
|
+
|
|
233
|
+
:param async_req bool
|
|
234
|
+
:param str tire_id: The unique tire id for which you want to get the tire (required)
|
|
235
|
+
:return: Tire
|
|
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_with_http_info(tire_id, **kwargs) # noqa: E501
|
|
242
|
+
else:
|
|
243
|
+
(data) = self.get_tire_with_http_info(tire_id, **kwargs) # noqa: E501
|
|
244
|
+
return data
|
|
245
|
+
|
|
246
|
+
def get_tire_with_http_info(self, tire_id, **kwargs): # noqa: E501
|
|
247
|
+
"""Get a tire 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_with_http_info(tire_id, async_req=True)
|
|
252
|
+
>>> result = thread.get()
|
|
253
|
+
|
|
254
|
+
:param async_req bool
|
|
255
|
+
:param str tire_id: The unique tire id for which you want to get the tire (required)
|
|
256
|
+
:return: Tire
|
|
257
|
+
If the method is called asynchronously,
|
|
258
|
+
returns the request thread.
|
|
259
|
+
"""
|
|
260
|
+
|
|
261
|
+
all_params = ['tire_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" % key
|
|
273
|
+
)
|
|
274
|
+
params[key] = val
|
|
275
|
+
del params['kwargs']
|
|
276
|
+
# verify the required parameter 'tire_id' is set
|
|
277
|
+
if ('tire_id' not in params or
|
|
278
|
+
params['tire_id'] is None):
|
|
279
|
+
raise ValueError("Missing the required parameter `tire_id` when calling `get_tire`") # noqa: E501
|
|
280
|
+
|
|
281
|
+
collection_formats = {}
|
|
282
|
+
|
|
283
|
+
path_params = {}
|
|
284
|
+
if 'tire_id' in params:
|
|
285
|
+
path_params['tireId'] = params['tire_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/tire/{tireId}', '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='Tire', # 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_list(self, event_id, **kwargs): # noqa: E501
|
|
319
|
+
"""Get the list of all tires 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_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 tire 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_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
335
|
+
else:
|
|
336
|
+
(data) = self.get_tire_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
337
|
+
return data
|
|
338
|
+
|
|
339
|
+
def get_tire_list_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
340
|
+
"""Get the list of all tires 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_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 tire 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_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_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}/tires', '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 get_tire_type_rubbers(self, **kwargs): # noqa: E501
|
|
412
|
+
"""Get the list of all tire rubber types # 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.get_tire_type_rubbers(async_req=True)
|
|
417
|
+
>>> result = thread.get()
|
|
418
|
+
|
|
419
|
+
:param async_req bool
|
|
420
|
+
:return: list[CoupleGuidText]
|
|
421
|
+
If the method is called asynchronously,
|
|
422
|
+
returns the request thread.
|
|
423
|
+
"""
|
|
424
|
+
kwargs['_return_http_data_only'] = True
|
|
425
|
+
if kwargs.get('async_req'):
|
|
426
|
+
return self.get_tire_type_rubbers_with_http_info(**kwargs) # noqa: E501
|
|
427
|
+
else:
|
|
428
|
+
(data) = self.get_tire_type_rubbers_with_http_info(**kwargs) # noqa: E501
|
|
429
|
+
return data
|
|
430
|
+
|
|
431
|
+
def get_tire_type_rubbers_with_http_info(self, **kwargs): # noqa: E501
|
|
432
|
+
"""Get the list of all tire rubber types # noqa: E501
|
|
433
|
+
|
|
434
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
435
|
+
asynchronous HTTP request, please pass async_req=True
|
|
436
|
+
>>> thread = api.get_tire_type_rubbers_with_http_info(async_req=True)
|
|
437
|
+
>>> result = thread.get()
|
|
438
|
+
|
|
439
|
+
:param async_req bool
|
|
440
|
+
:return: list[CoupleGuidText]
|
|
441
|
+
If the method is called asynchronously,
|
|
442
|
+
returns the request thread.
|
|
443
|
+
"""
|
|
444
|
+
|
|
445
|
+
all_params = [] # noqa: E501
|
|
446
|
+
all_params.append('async_req')
|
|
447
|
+
all_params.append('_return_http_data_only')
|
|
448
|
+
all_params.append('_preload_content')
|
|
449
|
+
all_params.append('_request_timeout')
|
|
450
|
+
|
|
451
|
+
params = locals()
|
|
452
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
453
|
+
if key not in all_params:
|
|
454
|
+
raise TypeError(
|
|
455
|
+
"Got an unexpected keyword argument '%s'"
|
|
456
|
+
" to method get_tire_type_rubbers" % key
|
|
457
|
+
)
|
|
458
|
+
params[key] = val
|
|
459
|
+
del params['kwargs']
|
|
460
|
+
|
|
461
|
+
collection_formats = {}
|
|
462
|
+
|
|
463
|
+
path_params = {}
|
|
464
|
+
|
|
465
|
+
query_params = []
|
|
466
|
+
|
|
467
|
+
header_params = {}
|
|
468
|
+
|
|
469
|
+
form_params = []
|
|
470
|
+
local_var_files = {}
|
|
471
|
+
|
|
472
|
+
body_params = None
|
|
473
|
+
# HTTP header `Accept`
|
|
474
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
475
|
+
['application/json', 'text/json']) # noqa: E501
|
|
476
|
+
|
|
477
|
+
# Authentication setting
|
|
478
|
+
auth_settings = [] # noqa: E501
|
|
479
|
+
|
|
480
|
+
return self.api_client.call_api(
|
|
481
|
+
'/teamdbapi/v2.0/typeTireRubbers', 'GET',
|
|
482
|
+
path_params,
|
|
483
|
+
query_params,
|
|
484
|
+
header_params,
|
|
485
|
+
body=body_params,
|
|
486
|
+
post_params=form_params,
|
|
487
|
+
files=local_var_files,
|
|
488
|
+
response_type='list[CoupleGuidText]', # noqa: E501
|
|
489
|
+
auth_settings=auth_settings,
|
|
490
|
+
async_req=params.get('async_req'),
|
|
491
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
492
|
+
_preload_content=params.get('_preload_content', True),
|
|
493
|
+
_request_timeout=params.get('_request_timeout'),
|
|
494
|
+
collection_formats=collection_formats)
|
|
495
|
+
|
|
496
|
+
def update_tire(self, body, tire_id, **kwargs): # noqa: E501
|
|
497
|
+
"""Update an existing Tire # noqa: E501
|
|
498
|
+
|
|
499
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
500
|
+
asynchronous HTTP request, please pass async_req=True
|
|
501
|
+
>>> thread = api.update_tire(body, tire_id, async_req=True)
|
|
502
|
+
>>> result = thread.get()
|
|
503
|
+
|
|
504
|
+
:param async_req bool
|
|
505
|
+
:param Tire body: The tire to update. (required)
|
|
506
|
+
:param str tire_id: The unique tire id for which you want to update the tire (required)
|
|
507
|
+
:return: Tire
|
|
508
|
+
If the method is called asynchronously,
|
|
509
|
+
returns the request thread.
|
|
510
|
+
"""
|
|
511
|
+
kwargs['_return_http_data_only'] = True
|
|
512
|
+
if kwargs.get('async_req'):
|
|
513
|
+
return self.update_tire_with_http_info(body, tire_id, **kwargs) # noqa: E501
|
|
514
|
+
else:
|
|
515
|
+
(data) = self.update_tire_with_http_info(body, tire_id, **kwargs) # noqa: E501
|
|
516
|
+
return data
|
|
517
|
+
|
|
518
|
+
def update_tire_with_http_info(self, body, tire_id, **kwargs): # noqa: E501
|
|
519
|
+
"""Update an existing Tire # noqa: E501
|
|
520
|
+
|
|
521
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
522
|
+
asynchronous HTTP request, please pass async_req=True
|
|
523
|
+
>>> thread = api.update_tire_with_http_info(body, tire_id, async_req=True)
|
|
524
|
+
>>> result = thread.get()
|
|
525
|
+
|
|
526
|
+
:param async_req bool
|
|
527
|
+
:param Tire body: The tire to update. (required)
|
|
528
|
+
:param str tire_id: The unique tire id for which you want to update the tire (required)
|
|
529
|
+
:return: Tire
|
|
530
|
+
If the method is called asynchronously,
|
|
531
|
+
returns the request thread.
|
|
532
|
+
"""
|
|
533
|
+
|
|
534
|
+
all_params = ['body', 'tire_id'] # 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_tire" % 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_tire`") # noqa: E501
|
|
553
|
+
# verify the required parameter 'tire_id' is set
|
|
554
|
+
if ('tire_id' not in params or
|
|
555
|
+
params['tire_id'] is None):
|
|
556
|
+
raise ValueError("Missing the required parameter `tire_id` when calling `update_tire`") # noqa: E501
|
|
557
|
+
|
|
558
|
+
collection_formats = {}
|
|
559
|
+
|
|
560
|
+
path_params = {}
|
|
561
|
+
if 'tire_id' in params:
|
|
562
|
+
path_params['tireId'] = params['tire_id'] # noqa: E501
|
|
563
|
+
|
|
564
|
+
query_params = []
|
|
565
|
+
|
|
566
|
+
header_params = {}
|
|
567
|
+
|
|
568
|
+
form_params = []
|
|
569
|
+
local_var_files = {}
|
|
570
|
+
|
|
571
|
+
body_params = None
|
|
572
|
+
if 'body' in params:
|
|
573
|
+
body_params = params['body']
|
|
574
|
+
# HTTP header `Accept`
|
|
575
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
576
|
+
['application/json', 'text/json']) # noqa: E501
|
|
577
|
+
|
|
578
|
+
# HTTP header `Content-Type`
|
|
579
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
580
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
581
|
+
|
|
582
|
+
# Authentication setting
|
|
583
|
+
auth_settings = [] # noqa: E501
|
|
584
|
+
|
|
585
|
+
return self.api_client.call_api(
|
|
586
|
+
'/teamdbapi/v2.0/tire/{tireId}', 'PUT',
|
|
587
|
+
path_params,
|
|
588
|
+
query_params,
|
|
589
|
+
header_params,
|
|
590
|
+
body=body_params,
|
|
591
|
+
post_params=form_params,
|
|
592
|
+
files=local_var_files,
|
|
593
|
+
response_type='Tire', # noqa: E501
|
|
594
|
+
auth_settings=auth_settings,
|
|
595
|
+
async_req=params.get('async_req'),
|
|
596
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
597
|
+
_preload_content=params.get('_preload_content', True),
|
|
598
|
+
_request_timeout=params.get('_request_timeout'),
|
|
599
|
+
collection_formats=collection_formats)
|