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.
Files changed (94) hide show
  1. teamdbapi/__init__.py +11 -0
  2. teamdbapi/api/__init__.py +39 -34
  3. teamdbapi/api/assembly_api.py +2108 -2108
  4. teamdbapi/api/car_api.py +874 -874
  5. teamdbapi/api/component_api.py +954 -0
  6. teamdbapi/api/config_api.py +118 -118
  7. teamdbapi/api/criteria_api.py +126 -0
  8. teamdbapi/api/edit_api.py +433 -433
  9. teamdbapi/api/event_api.py +878 -878
  10. teamdbapi/api/fixed_field_api.py +320 -320
  11. teamdbapi/api/group_api.py +609 -609
  12. teamdbapi/api/import_export_api.py +828 -743
  13. teamdbapi/api/lap_api.py +708 -708
  14. teamdbapi/api/lap_report_api.py +490 -486
  15. teamdbapi/api/model_field_api.py +708 -708
  16. teamdbapi/api/mounting_api.py +219 -0
  17. teamdbapi/api/notes_authorization_api.py +324 -324
  18. teamdbapi/api/parameter_api.py +1176 -1176
  19. teamdbapi/api/part_api.py +304 -0
  20. teamdbapi/api/report_api.py +142 -142
  21. teamdbapi/api/revision_api.py +1420 -1420
  22. teamdbapi/api/revision_editor_selector_api.py +990 -990
  23. teamdbapi/api/run_api.py +603 -603
  24. teamdbapi/api/script_api.py +490 -490
  25. teamdbapi/api/session_api.py +720 -720
  26. teamdbapi/api/target_api.py +415 -415
  27. teamdbapi/api/team_db_list_api.py +987 -987
  28. teamdbapi/api/team_db_view_api.py +482 -482
  29. teamdbapi/api/tire_api.py +599 -599
  30. teamdbapi/api/tire_set_api.py +514 -514
  31. teamdbapi/api/track_api.py +506 -506
  32. teamdbapi/api/track_layout_api.py +514 -514
  33. teamdbapi/api/update_request_api.py +235 -0
  34. teamdbapi/api/user_api.py +474 -474
  35. teamdbapi/api/value_field_api.py +558 -558
  36. teamdbapi/api/version_api.py +449 -449
  37. teamdbapi/api_client.py +4 -8
  38. teamdbapi/configuration.py +6 -13
  39. teamdbapi/models/__init__.py +6 -0
  40. teamdbapi/models/assembly.py +1 -0
  41. teamdbapi/models/bleed_adjustment.py +1 -0
  42. teamdbapi/models/calibration.py +1 -0
  43. teamdbapi/models/car.py +1 -0
  44. teamdbapi/models/car_parameters_context.py +1 -0
  45. teamdbapi/models/compare_options.py +1 -0
  46. teamdbapi/models/compare_result.py +1 -0
  47. teamdbapi/models/compare_result_detail.py +2 -0
  48. teamdbapi/models/component.py +1217 -0
  49. teamdbapi/models/copy_from_tags_args.py +2 -0
  50. teamdbapi/models/couple_guid_text.py +1 -0
  51. teamdbapi/models/criteria.py +430 -0
  52. teamdbapi/models/criteria_value.py +197 -0
  53. teamdbapi/models/event.py +1 -0
  54. teamdbapi/models/fixed_field.py +2 -1
  55. teamdbapi/models/group.py +1 -0
  56. teamdbapi/models/import_parameters_args.py +1 -0
  57. teamdbapi/models/import_parameters_results.py +2 -0
  58. teamdbapi/models/item_value.py +1 -0
  59. teamdbapi/models/item_value_key.py +1 -0
  60. teamdbapi/models/lap.py +1 -0
  61. teamdbapi/models/lap_report_options.py +1 -0
  62. teamdbapi/models/model_field.py +3 -1
  63. teamdbapi/models/model_field_authorization.py +1 -0
  64. teamdbapi/models/mounting.py +489 -0
  65. teamdbapi/models/notes_authorization.py +1 -0
  66. teamdbapi/models/notes_context.py +1 -0
  67. teamdbapi/models/parameter.py +2 -0
  68. teamdbapi/models/parameter_cross_table.py +1 -0
  69. teamdbapi/models/part.py +963 -0
  70. teamdbapi/models/part_count.py +228 -0
  71. teamdbapi/models/problem_details.py +2 -6
  72. teamdbapi/models/revision.py +88 -3
  73. teamdbapi/models/revision_value.py +1 -0
  74. teamdbapi/models/run.py +1 -0
  75. teamdbapi/models/script.py +1 -0
  76. teamdbapi/models/session.py +1 -0
  77. teamdbapi/models/string_with_font_style.py +1 -0
  78. teamdbapi/models/target.py +64 -7
  79. teamdbapi/models/team_db_list.py +1 -0
  80. teamdbapi/models/team_db_list_item.py +1 -0
  81. teamdbapi/models/tire.py +2 -0
  82. teamdbapi/models/tire_set.py +2 -0
  83. teamdbapi/models/track.py +1 -0
  84. teamdbapi/models/track_layout.py +1 -0
  85. teamdbapi/models/user.py +1 -0
  86. teamdbapi/models/user_group.py +1 -0
  87. teamdbapi/models/value_field.py +1 -0
  88. teamdbapi/models/version.py +1 -0
  89. teamdbapi/rest.py +6 -1
  90. {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/METADATA +5 -5
  91. teamdbapi-3.0.0.dist-info/RECORD +93 -0
  92. teamdbapi-2.37.1.dist-info/RECORD +0 -82
  93. {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/LICENSE +0 -0
  94. {teamdbapi-2.37.1.dist-info → teamdbapi-3.0.0.dist-info}/WHEEL +0 -0
@@ -1,506 +1,506 @@
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 TrackApi(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_track(self, body, **kwargs): # noqa: E501
36
- """Create a new track # 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_track(body, async_req=True)
41
- >>> result = thread.get()
42
-
43
- :param async_req bool
44
- :param Track body: The track to create. (required)
45
- :return: Track
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_track_with_http_info(body, **kwargs) # noqa: E501
52
- else:
53
- (data) = self.create_track_with_http_info(body, **kwargs) # noqa: E501
54
- return data
55
-
56
- def create_track_with_http_info(self, body, **kwargs): # noqa: E501
57
- """Create a new track # 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_track_with_http_info(body, async_req=True)
62
- >>> result = thread.get()
63
-
64
- :param async_req bool
65
- :param Track body: The track to create. (required)
66
- :return: Track
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_track" % 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_track`") # 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/track', '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='Track', # 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_track(self, track_id, **kwargs): # noqa: E501
133
- """Delete an existing track # 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_track(track_id, async_req=True)
138
- >>> result = thread.get()
139
-
140
- :param async_req bool
141
- :param str track_id: The unique track id for which you want to delete the track (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_track_with_http_info(track_id, **kwargs) # noqa: E501
149
- else:
150
- (data) = self.delete_track_with_http_info(track_id, **kwargs) # noqa: E501
151
- return data
152
-
153
- def delete_track_with_http_info(self, track_id, **kwargs): # noqa: E501
154
- """Delete an existing track # 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_track_with_http_info(track_id, async_req=True)
159
- >>> result = thread.get()
160
-
161
- :param async_req bool
162
- :param str track_id: The unique track id for which you want to delete the track (required)
163
- :return: None
164
- If the method is called asynchronously,
165
- returns the request thread.
166
- """
167
-
168
- all_params = ['track_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_track" % key
180
- )
181
- params[key] = val
182
- del params['kwargs']
183
- # verify the required parameter 'track_id' is set
184
- if ('track_id' not in params or
185
- params['track_id'] is None):
186
- raise ValueError("Missing the required parameter `track_id` when calling `delete_track`") # noqa: E501
187
-
188
- collection_formats = {}
189
-
190
- path_params = {}
191
- if 'track_id' in params:
192
- path_params['trackId'] = params['track_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/track/{trackId}', '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_track(self, track_id, **kwargs): # noqa: E501
226
- """Get an track 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_track(track_id, async_req=True)
231
- >>> result = thread.get()
232
-
233
- :param async_req bool
234
- :param str track_id: The unique track id for which you want to get the track (required)
235
- :return: Track
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_track_with_http_info(track_id, **kwargs) # noqa: E501
242
- else:
243
- (data) = self.get_track_with_http_info(track_id, **kwargs) # noqa: E501
244
- return data
245
-
246
- def get_track_with_http_info(self, track_id, **kwargs): # noqa: E501
247
- """Get an track 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_track_with_http_info(track_id, async_req=True)
252
- >>> result = thread.get()
253
-
254
- :param async_req bool
255
- :param str track_id: The unique track id for which you want to get the track (required)
256
- :return: Track
257
- If the method is called asynchronously,
258
- returns the request thread.
259
- """
260
-
261
- all_params = ['track_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_track" % key
273
- )
274
- params[key] = val
275
- del params['kwargs']
276
- # verify the required parameter 'track_id' is set
277
- if ('track_id' not in params or
278
- params['track_id'] is None):
279
- raise ValueError("Missing the required parameter `track_id` when calling `get_track`") # noqa: E501
280
-
281
- collection_formats = {}
282
-
283
- path_params = {}
284
- if 'track_id' in params:
285
- path_params['trackId'] = params['track_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/track/{trackId}', '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='Track', # 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_tracks(self, **kwargs): # noqa: E501
319
- """Get the list of all tracks # 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_tracks(async_req=True)
324
- >>> result = thread.get()
325
-
326
- :param async_req bool
327
- :return: list[CoupleGuidText]
328
- If the method is called asynchronously,
329
- returns the request thread.
330
- """
331
- kwargs['_return_http_data_only'] = True
332
- if kwargs.get('async_req'):
333
- return self.get_tracks_with_http_info(**kwargs) # noqa: E501
334
- else:
335
- (data) = self.get_tracks_with_http_info(**kwargs) # noqa: E501
336
- return data
337
-
338
- def get_tracks_with_http_info(self, **kwargs): # noqa: E501
339
- """Get the list of all tracks # noqa: E501
340
-
341
- This method makes a synchronous HTTP request by default. To make an
342
- asynchronous HTTP request, please pass async_req=True
343
- >>> thread = api.get_tracks_with_http_info(async_req=True)
344
- >>> result = thread.get()
345
-
346
- :param async_req bool
347
- :return: list[CoupleGuidText]
348
- If the method is called asynchronously,
349
- returns the request thread.
350
- """
351
-
352
- all_params = [] # noqa: E501
353
- all_params.append('async_req')
354
- all_params.append('_return_http_data_only')
355
- all_params.append('_preload_content')
356
- all_params.append('_request_timeout')
357
-
358
- params = locals()
359
- for key, val in six.iteritems(params['kwargs']):
360
- if key not in all_params:
361
- raise TypeError(
362
- "Got an unexpected keyword argument '%s'"
363
- " to method get_tracks" % key
364
- )
365
- params[key] = val
366
- del params['kwargs']
367
-
368
- collection_formats = {}
369
-
370
- path_params = {}
371
-
372
- query_params = []
373
-
374
- header_params = {}
375
-
376
- form_params = []
377
- local_var_files = {}
378
-
379
- body_params = None
380
- # HTTP header `Accept`
381
- header_params['Accept'] = self.api_client.select_header_accept(
382
- ['application/json', 'text/json']) # noqa: E501
383
-
384
- # Authentication setting
385
- auth_settings = [] # noqa: E501
386
-
387
- return self.api_client.call_api(
388
- '/teamdbapi/v2.0/tracks', 'GET',
389
- path_params,
390
- query_params,
391
- header_params,
392
- body=body_params,
393
- post_params=form_params,
394
- files=local_var_files,
395
- response_type='list[CoupleGuidText]', # noqa: E501
396
- auth_settings=auth_settings,
397
- async_req=params.get('async_req'),
398
- _return_http_data_only=params.get('_return_http_data_only'),
399
- _preload_content=params.get('_preload_content', True),
400
- _request_timeout=params.get('_request_timeout'),
401
- collection_formats=collection_formats)
402
-
403
- def update_track(self, body, track_id, **kwargs): # noqa: E501
404
- """Update an existing track # noqa: E501
405
-
406
- This method makes a synchronous HTTP request by default. To make an
407
- asynchronous HTTP request, please pass async_req=True
408
- >>> thread = api.update_track(body, track_id, async_req=True)
409
- >>> result = thread.get()
410
-
411
- :param async_req bool
412
- :param Track body: The track to update. (required)
413
- :param str track_id: The unique track id for which you want to update the track (required)
414
- :return: Track
415
- If the method is called asynchronously,
416
- returns the request thread.
417
- """
418
- kwargs['_return_http_data_only'] = True
419
- if kwargs.get('async_req'):
420
- return self.update_track_with_http_info(body, track_id, **kwargs) # noqa: E501
421
- else:
422
- (data) = self.update_track_with_http_info(body, track_id, **kwargs) # noqa: E501
423
- return data
424
-
425
- def update_track_with_http_info(self, body, track_id, **kwargs): # noqa: E501
426
- """Update an existing track # noqa: E501
427
-
428
- This method makes a synchronous HTTP request by default. To make an
429
- asynchronous HTTP request, please pass async_req=True
430
- >>> thread = api.update_track_with_http_info(body, track_id, async_req=True)
431
- >>> result = thread.get()
432
-
433
- :param async_req bool
434
- :param Track body: The track to update. (required)
435
- :param str track_id: The unique track id for which you want to update the track (required)
436
- :return: Track
437
- If the method is called asynchronously,
438
- returns the request thread.
439
- """
440
-
441
- all_params = ['body', 'track_id'] # noqa: E501
442
- all_params.append('async_req')
443
- all_params.append('_return_http_data_only')
444
- all_params.append('_preload_content')
445
- all_params.append('_request_timeout')
446
-
447
- params = locals()
448
- for key, val in six.iteritems(params['kwargs']):
449
- if key not in all_params:
450
- raise TypeError(
451
- "Got an unexpected keyword argument '%s'"
452
- " to method update_track" % key
453
- )
454
- params[key] = val
455
- del params['kwargs']
456
- # verify the required parameter 'body' is set
457
- if ('body' not in params or
458
- params['body'] is None):
459
- raise ValueError("Missing the required parameter `body` when calling `update_track`") # noqa: E501
460
- # verify the required parameter 'track_id' is set
461
- if ('track_id' not in params or
462
- params['track_id'] is None):
463
- raise ValueError("Missing the required parameter `track_id` when calling `update_track`") # noqa: E501
464
-
465
- collection_formats = {}
466
-
467
- path_params = {}
468
- if 'track_id' in params:
469
- path_params['trackId'] = params['track_id'] # noqa: E501
470
-
471
- query_params = []
472
-
473
- header_params = {}
474
-
475
- form_params = []
476
- local_var_files = {}
477
-
478
- body_params = None
479
- if 'body' in params:
480
- body_params = params['body']
481
- # HTTP header `Accept`
482
- header_params['Accept'] = self.api_client.select_header_accept(
483
- ['application/json', 'text/json']) # noqa: E501
484
-
485
- # HTTP header `Content-Type`
486
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
487
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
488
-
489
- # Authentication setting
490
- auth_settings = [] # noqa: E501
491
-
492
- return self.api_client.call_api(
493
- '/teamdbapi/v2.0/track/{trackId}', 'PUT',
494
- path_params,
495
- query_params,
496
- header_params,
497
- body=body_params,
498
- post_params=form_params,
499
- files=local_var_files,
500
- response_type='Track', # noqa: E501
501
- auth_settings=auth_settings,
502
- async_req=params.get('async_req'),
503
- _return_http_data_only=params.get('_return_http_data_only'),
504
- _preload_content=params.get('_preload_content', True),
505
- _request_timeout=params.get('_request_timeout'),
506
- 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 TrackApi(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_track(self, body, **kwargs): # noqa: E501
36
+ """Create a new track # 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_track(body, async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :param Track body: The track to create. (required)
45
+ :return: Track
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_track_with_http_info(body, **kwargs) # noqa: E501
52
+ else:
53
+ (data) = self.create_track_with_http_info(body, **kwargs) # noqa: E501
54
+ return data
55
+
56
+ def create_track_with_http_info(self, body, **kwargs): # noqa: E501
57
+ """Create a new track # 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_track_with_http_info(body, async_req=True)
62
+ >>> result = thread.get()
63
+
64
+ :param async_req bool
65
+ :param Track body: The track to create. (required)
66
+ :return: Track
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_track" % 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_track`") # 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/track', '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='Track', # 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_track(self, track_id, **kwargs): # noqa: E501
133
+ """Delete an existing track # 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_track(track_id, async_req=True)
138
+ >>> result = thread.get()
139
+
140
+ :param async_req bool
141
+ :param str track_id: The unique track id for which you want to delete the track (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_track_with_http_info(track_id, **kwargs) # noqa: E501
149
+ else:
150
+ (data) = self.delete_track_with_http_info(track_id, **kwargs) # noqa: E501
151
+ return data
152
+
153
+ def delete_track_with_http_info(self, track_id, **kwargs): # noqa: E501
154
+ """Delete an existing track # 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_track_with_http_info(track_id, async_req=True)
159
+ >>> result = thread.get()
160
+
161
+ :param async_req bool
162
+ :param str track_id: The unique track id for which you want to delete the track (required)
163
+ :return: None
164
+ If the method is called asynchronously,
165
+ returns the request thread.
166
+ """
167
+
168
+ all_params = ['track_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_track" % key
180
+ )
181
+ params[key] = val
182
+ del params['kwargs']
183
+ # verify the required parameter 'track_id' is set
184
+ if ('track_id' not in params or
185
+ params['track_id'] is None):
186
+ raise ValueError("Missing the required parameter `track_id` when calling `delete_track`") # noqa: E501
187
+
188
+ collection_formats = {}
189
+
190
+ path_params = {}
191
+ if 'track_id' in params:
192
+ path_params['trackId'] = params['track_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/track/{trackId}', '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_track(self, track_id, **kwargs): # noqa: E501
226
+ """Get an track 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_track(track_id, async_req=True)
231
+ >>> result = thread.get()
232
+
233
+ :param async_req bool
234
+ :param str track_id: The unique track id for which you want to get the track (required)
235
+ :return: Track
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_track_with_http_info(track_id, **kwargs) # noqa: E501
242
+ else:
243
+ (data) = self.get_track_with_http_info(track_id, **kwargs) # noqa: E501
244
+ return data
245
+
246
+ def get_track_with_http_info(self, track_id, **kwargs): # noqa: E501
247
+ """Get an track 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_track_with_http_info(track_id, async_req=True)
252
+ >>> result = thread.get()
253
+
254
+ :param async_req bool
255
+ :param str track_id: The unique track id for which you want to get the track (required)
256
+ :return: Track
257
+ If the method is called asynchronously,
258
+ returns the request thread.
259
+ """
260
+
261
+ all_params = ['track_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_track" % key
273
+ )
274
+ params[key] = val
275
+ del params['kwargs']
276
+ # verify the required parameter 'track_id' is set
277
+ if ('track_id' not in params or
278
+ params['track_id'] is None):
279
+ raise ValueError("Missing the required parameter `track_id` when calling `get_track`") # noqa: E501
280
+
281
+ collection_formats = {}
282
+
283
+ path_params = {}
284
+ if 'track_id' in params:
285
+ path_params['trackId'] = params['track_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/track/{trackId}', '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='Track', # 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_tracks(self, **kwargs): # noqa: E501
319
+ """Get the list of all tracks # 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_tracks(async_req=True)
324
+ >>> result = thread.get()
325
+
326
+ :param async_req bool
327
+ :return: list[CoupleGuidText]
328
+ If the method is called asynchronously,
329
+ returns the request thread.
330
+ """
331
+ kwargs['_return_http_data_only'] = True
332
+ if kwargs.get('async_req'):
333
+ return self.get_tracks_with_http_info(**kwargs) # noqa: E501
334
+ else:
335
+ (data) = self.get_tracks_with_http_info(**kwargs) # noqa: E501
336
+ return data
337
+
338
+ def get_tracks_with_http_info(self, **kwargs): # noqa: E501
339
+ """Get the list of all tracks # noqa: E501
340
+
341
+ This method makes a synchronous HTTP request by default. To make an
342
+ asynchronous HTTP request, please pass async_req=True
343
+ >>> thread = api.get_tracks_with_http_info(async_req=True)
344
+ >>> result = thread.get()
345
+
346
+ :param async_req bool
347
+ :return: list[CoupleGuidText]
348
+ If the method is called asynchronously,
349
+ returns the request thread.
350
+ """
351
+
352
+ all_params = [] # noqa: E501
353
+ all_params.append('async_req')
354
+ all_params.append('_return_http_data_only')
355
+ all_params.append('_preload_content')
356
+ all_params.append('_request_timeout')
357
+
358
+ params = locals()
359
+ for key, val in six.iteritems(params['kwargs']):
360
+ if key not in all_params:
361
+ raise TypeError(
362
+ "Got an unexpected keyword argument '%s'"
363
+ " to method get_tracks" % key
364
+ )
365
+ params[key] = val
366
+ del params['kwargs']
367
+
368
+ collection_formats = {}
369
+
370
+ path_params = {}
371
+
372
+ query_params = []
373
+
374
+ header_params = {}
375
+
376
+ form_params = []
377
+ local_var_files = {}
378
+
379
+ body_params = None
380
+ # HTTP header `Accept`
381
+ header_params['Accept'] = self.api_client.select_header_accept(
382
+ ['application/json', 'text/json']) # noqa: E501
383
+
384
+ # Authentication setting
385
+ auth_settings = [] # noqa: E501
386
+
387
+ return self.api_client.call_api(
388
+ '/teamdbapi/v2.0/tracks', 'GET',
389
+ path_params,
390
+ query_params,
391
+ header_params,
392
+ body=body_params,
393
+ post_params=form_params,
394
+ files=local_var_files,
395
+ response_type='list[CoupleGuidText]', # noqa: E501
396
+ auth_settings=auth_settings,
397
+ async_req=params.get('async_req'),
398
+ _return_http_data_only=params.get('_return_http_data_only'),
399
+ _preload_content=params.get('_preload_content', True),
400
+ _request_timeout=params.get('_request_timeout'),
401
+ collection_formats=collection_formats)
402
+
403
+ def update_track(self, body, track_id, **kwargs): # noqa: E501
404
+ """Update an existing track # noqa: E501
405
+
406
+ This method makes a synchronous HTTP request by default. To make an
407
+ asynchronous HTTP request, please pass async_req=True
408
+ >>> thread = api.update_track(body, track_id, async_req=True)
409
+ >>> result = thread.get()
410
+
411
+ :param async_req bool
412
+ :param Track body: The track to update. (required)
413
+ :param str track_id: The unique track id for which you want to update the track (required)
414
+ :return: Track
415
+ If the method is called asynchronously,
416
+ returns the request thread.
417
+ """
418
+ kwargs['_return_http_data_only'] = True
419
+ if kwargs.get('async_req'):
420
+ return self.update_track_with_http_info(body, track_id, **kwargs) # noqa: E501
421
+ else:
422
+ (data) = self.update_track_with_http_info(body, track_id, **kwargs) # noqa: E501
423
+ return data
424
+
425
+ def update_track_with_http_info(self, body, track_id, **kwargs): # noqa: E501
426
+ """Update an existing track # noqa: E501
427
+
428
+ This method makes a synchronous HTTP request by default. To make an
429
+ asynchronous HTTP request, please pass async_req=True
430
+ >>> thread = api.update_track_with_http_info(body, track_id, async_req=True)
431
+ >>> result = thread.get()
432
+
433
+ :param async_req bool
434
+ :param Track body: The track to update. (required)
435
+ :param str track_id: The unique track id for which you want to update the track (required)
436
+ :return: Track
437
+ If the method is called asynchronously,
438
+ returns the request thread.
439
+ """
440
+
441
+ all_params = ['body', 'track_id'] # noqa: E501
442
+ all_params.append('async_req')
443
+ all_params.append('_return_http_data_only')
444
+ all_params.append('_preload_content')
445
+ all_params.append('_request_timeout')
446
+
447
+ params = locals()
448
+ for key, val in six.iteritems(params['kwargs']):
449
+ if key not in all_params:
450
+ raise TypeError(
451
+ "Got an unexpected keyword argument '%s'"
452
+ " to method update_track" % key
453
+ )
454
+ params[key] = val
455
+ del params['kwargs']
456
+ # verify the required parameter 'body' is set
457
+ if ('body' not in params or
458
+ params['body'] is None):
459
+ raise ValueError("Missing the required parameter `body` when calling `update_track`") # noqa: E501
460
+ # verify the required parameter 'track_id' is set
461
+ if ('track_id' not in params or
462
+ params['track_id'] is None):
463
+ raise ValueError("Missing the required parameter `track_id` when calling `update_track`") # noqa: E501
464
+
465
+ collection_formats = {}
466
+
467
+ path_params = {}
468
+ if 'track_id' in params:
469
+ path_params['trackId'] = params['track_id'] # noqa: E501
470
+
471
+ query_params = []
472
+
473
+ header_params = {}
474
+
475
+ form_params = []
476
+ local_var_files = {}
477
+
478
+ body_params = None
479
+ if 'body' in params:
480
+ body_params = params['body']
481
+ # HTTP header `Accept`
482
+ header_params['Accept'] = self.api_client.select_header_accept(
483
+ ['application/json', 'text/json']) # noqa: E501
484
+
485
+ # HTTP header `Content-Type`
486
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
487
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
488
+
489
+ # Authentication setting
490
+ auth_settings = [] # noqa: E501
491
+
492
+ return self.api_client.call_api(
493
+ '/teamdbapi/v2.0/track/{trackId}', 'PUT',
494
+ path_params,
495
+ query_params,
496
+ header_params,
497
+ body=body_params,
498
+ post_params=form_params,
499
+ files=local_var_files,
500
+ response_type='Track', # noqa: E501
501
+ auth_settings=auth_settings,
502
+ async_req=params.get('async_req'),
503
+ _return_http_data_only=params.get('_return_http_data_only'),
504
+ _preload_content=params.get('_preload_content', True),
505
+ _request_timeout=params.get('_request_timeout'),
506
+ collection_formats=collection_formats)