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,987 +1,987 @@
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 TeamDBListApi(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_list(self, body, **kwargs): # noqa: E501
36
- """Create a new TeamDB list # 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_list(body, async_req=True)
41
- >>> result = thread.get()
42
-
43
- :param async_req bool
44
- :param TeamDBList body: The TeamDB list to create. (required)
45
- :return: TeamDBList
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_list_with_http_info(body, **kwargs) # noqa: E501
52
- else:
53
- (data) = self.create_list_with_http_info(body, **kwargs) # noqa: E501
54
- return data
55
-
56
- def create_list_with_http_info(self, body, **kwargs): # noqa: E501
57
- """Create a new TeamDB list # 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_list_with_http_info(body, async_req=True)
62
- >>> result = thread.get()
63
-
64
- :param async_req bool
65
- :param TeamDBList body: The TeamDB list to create. (required)
66
- :return: TeamDBList
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_list" % 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_list`") # 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/teamdblist', '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='TeamDBList', # 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 create_list_item(self, body, **kwargs): # noqa: E501
133
- """Create a new TeamDB list item # 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.create_list_item(body, async_req=True)
138
- >>> result = thread.get()
139
-
140
- :param async_req bool
141
- :param TeamDBListItem body: The TeamDB list item to create. (required)
142
- :return: TeamDBListItem
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.create_list_item_with_http_info(body, **kwargs) # noqa: E501
149
- else:
150
- (data) = self.create_list_item_with_http_info(body, **kwargs) # noqa: E501
151
- return data
152
-
153
- def create_list_item_with_http_info(self, body, **kwargs): # noqa: E501
154
- """Create a new TeamDB list item # 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.create_list_item_with_http_info(body, async_req=True)
159
- >>> result = thread.get()
160
-
161
- :param async_req bool
162
- :param TeamDBListItem body: The TeamDB list item to create. (required)
163
- :return: TeamDBListItem
164
- If the method is called asynchronously,
165
- returns the request thread.
166
- """
167
-
168
- all_params = ['body'] # 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 create_list_item" % key
180
- )
181
- params[key] = val
182
- del params['kwargs']
183
- # verify the required parameter 'body' is set
184
- if ('body' not in params or
185
- params['body'] is None):
186
- raise ValueError("Missing the required parameter `body` when calling `create_list_item`") # noqa: E501
187
-
188
- collection_formats = {}
189
-
190
- path_params = {}
191
-
192
- query_params = []
193
-
194
- header_params = {}
195
-
196
- form_params = []
197
- local_var_files = {}
198
-
199
- body_params = None
200
- if 'body' in params:
201
- body_params = params['body']
202
- # HTTP header `Accept`
203
- header_params['Accept'] = self.api_client.select_header_accept(
204
- ['application/json', 'text/json']) # noqa: E501
205
-
206
- # HTTP header `Content-Type`
207
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
208
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
209
-
210
- # Authentication setting
211
- auth_settings = [] # noqa: E501
212
-
213
- return self.api_client.call_api(
214
- '/teamdbapi/v2.0/teamdblistitem', 'POST',
215
- path_params,
216
- query_params,
217
- header_params,
218
- body=body_params,
219
- post_params=form_params,
220
- files=local_var_files,
221
- response_type='TeamDBListItem', # noqa: E501
222
- auth_settings=auth_settings,
223
- async_req=params.get('async_req'),
224
- _return_http_data_only=params.get('_return_http_data_only'),
225
- _preload_content=params.get('_preload_content', True),
226
- _request_timeout=params.get('_request_timeout'),
227
- collection_formats=collection_formats)
228
-
229
- def delete_list(self, list_id, **kwargs): # noqa: E501
230
- """Delete an existing TeamDB list # noqa: E501
231
-
232
- This method makes a synchronous HTTP request by default. To make an
233
- asynchronous HTTP request, please pass async_req=True
234
- >>> thread = api.delete_list(list_id, async_req=True)
235
- >>> result = thread.get()
236
-
237
- :param async_req bool
238
- :param str list_id: The unique TeamDB list id for which you want to delete the list (required)
239
- :return: None
240
- If the method is called asynchronously,
241
- returns the request thread.
242
- """
243
- kwargs['_return_http_data_only'] = True
244
- if kwargs.get('async_req'):
245
- return self.delete_list_with_http_info(list_id, **kwargs) # noqa: E501
246
- else:
247
- (data) = self.delete_list_with_http_info(list_id, **kwargs) # noqa: E501
248
- return data
249
-
250
- def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501
251
- """Delete an existing TeamDB list # noqa: E501
252
-
253
- This method makes a synchronous HTTP request by default. To make an
254
- asynchronous HTTP request, please pass async_req=True
255
- >>> thread = api.delete_list_with_http_info(list_id, async_req=True)
256
- >>> result = thread.get()
257
-
258
- :param async_req bool
259
- :param str list_id: The unique TeamDB list id for which you want to delete the list (required)
260
- :return: None
261
- If the method is called asynchronously,
262
- returns the request thread.
263
- """
264
-
265
- all_params = ['list_id'] # noqa: E501
266
- all_params.append('async_req')
267
- all_params.append('_return_http_data_only')
268
- all_params.append('_preload_content')
269
- all_params.append('_request_timeout')
270
-
271
- params = locals()
272
- for key, val in six.iteritems(params['kwargs']):
273
- if key not in all_params:
274
- raise TypeError(
275
- "Got an unexpected keyword argument '%s'"
276
- " to method delete_list" % key
277
- )
278
- params[key] = val
279
- del params['kwargs']
280
- # verify the required parameter 'list_id' is set
281
- if ('list_id' not in params or
282
- params['list_id'] is None):
283
- raise ValueError("Missing the required parameter `list_id` when calling `delete_list`") # noqa: E501
284
-
285
- collection_formats = {}
286
-
287
- path_params = {}
288
- if 'list_id' in params:
289
- path_params['listId'] = params['list_id'] # noqa: E501
290
-
291
- query_params = []
292
-
293
- header_params = {}
294
-
295
- form_params = []
296
- local_var_files = {}
297
-
298
- body_params = None
299
- # HTTP header `Accept`
300
- header_params['Accept'] = self.api_client.select_header_accept(
301
- ['application/json', 'text/json']) # noqa: E501
302
-
303
- # Authentication setting
304
- auth_settings = [] # noqa: E501
305
-
306
- return self.api_client.call_api(
307
- '/teamdbapi/v2.0/teamdblist/{listId}', 'DELETE',
308
- path_params,
309
- query_params,
310
- header_params,
311
- body=body_params,
312
- post_params=form_params,
313
- files=local_var_files,
314
- response_type=None, # noqa: E501
315
- auth_settings=auth_settings,
316
- async_req=params.get('async_req'),
317
- _return_http_data_only=params.get('_return_http_data_only'),
318
- _preload_content=params.get('_preload_content', True),
319
- _request_timeout=params.get('_request_timeout'),
320
- collection_formats=collection_formats)
321
-
322
- def delete_list_item(self, item_id, **kwargs): # noqa: E501
323
- """Delete an existing TeamDB list item # noqa: E501
324
-
325
- This method makes a synchronous HTTP request by default. To make an
326
- asynchronous HTTP request, please pass async_req=True
327
- >>> thread = api.delete_list_item(item_id, async_req=True)
328
- >>> result = thread.get()
329
-
330
- :param async_req bool
331
- :param str item_id: The unique TeamDB list item id for which you want to delete the item (required)
332
- :return: None
333
- If the method is called asynchronously,
334
- returns the request thread.
335
- """
336
- kwargs['_return_http_data_only'] = True
337
- if kwargs.get('async_req'):
338
- return self.delete_list_item_with_http_info(item_id, **kwargs) # noqa: E501
339
- else:
340
- (data) = self.delete_list_item_with_http_info(item_id, **kwargs) # noqa: E501
341
- return data
342
-
343
- def delete_list_item_with_http_info(self, item_id, **kwargs): # noqa: E501
344
- """Delete an existing TeamDB list item # noqa: E501
345
-
346
- This method makes a synchronous HTTP request by default. To make an
347
- asynchronous HTTP request, please pass async_req=True
348
- >>> thread = api.delete_list_item_with_http_info(item_id, async_req=True)
349
- >>> result = thread.get()
350
-
351
- :param async_req bool
352
- :param str item_id: The unique TeamDB list item id for which you want to delete the item (required)
353
- :return: None
354
- If the method is called asynchronously,
355
- returns the request thread.
356
- """
357
-
358
- all_params = ['item_id'] # noqa: E501
359
- all_params.append('async_req')
360
- all_params.append('_return_http_data_only')
361
- all_params.append('_preload_content')
362
- all_params.append('_request_timeout')
363
-
364
- params = locals()
365
- for key, val in six.iteritems(params['kwargs']):
366
- if key not in all_params:
367
- raise TypeError(
368
- "Got an unexpected keyword argument '%s'"
369
- " to method delete_list_item" % key
370
- )
371
- params[key] = val
372
- del params['kwargs']
373
- # verify the required parameter 'item_id' is set
374
- if ('item_id' not in params or
375
- params['item_id'] is None):
376
- raise ValueError("Missing the required parameter `item_id` when calling `delete_list_item`") # noqa: E501
377
-
378
- collection_formats = {}
379
-
380
- path_params = {}
381
- if 'item_id' in params:
382
- path_params['itemId'] = params['item_id'] # noqa: E501
383
-
384
- query_params = []
385
-
386
- header_params = {}
387
-
388
- form_params = []
389
- local_var_files = {}
390
-
391
- body_params = None
392
- # HTTP header `Accept`
393
- header_params['Accept'] = self.api_client.select_header_accept(
394
- ['application/json', 'text/json']) # noqa: E501
395
-
396
- # Authentication setting
397
- auth_settings = [] # noqa: E501
398
-
399
- return self.api_client.call_api(
400
- '/teamdbapi/v2.0/teamdblistitem/{itemId}', 'DELETE',
401
- path_params,
402
- query_params,
403
- header_params,
404
- body=body_params,
405
- post_params=form_params,
406
- files=local_var_files,
407
- response_type=None, # noqa: E501
408
- auth_settings=auth_settings,
409
- async_req=params.get('async_req'),
410
- _return_http_data_only=params.get('_return_http_data_only'),
411
- _preload_content=params.get('_preload_content', True),
412
- _request_timeout=params.get('_request_timeout'),
413
- collection_formats=collection_formats)
414
-
415
- def get_list(self, list_id, **kwargs): # noqa: E501
416
- """Get a TeamDB list via a unique id. # noqa: E501
417
-
418
- This method makes a synchronous HTTP request by default. To make an
419
- asynchronous HTTP request, please pass async_req=True
420
- >>> thread = api.get_list(list_id, async_req=True)
421
- >>> result = thread.get()
422
-
423
- :param async_req bool
424
- :param str list_id: The unique TeamDB list id for which you want to get the list (required)
425
- :return: TeamDBList
426
- If the method is called asynchronously,
427
- returns the request thread.
428
- """
429
- kwargs['_return_http_data_only'] = True
430
- if kwargs.get('async_req'):
431
- return self.get_list_with_http_info(list_id, **kwargs) # noqa: E501
432
- else:
433
- (data) = self.get_list_with_http_info(list_id, **kwargs) # noqa: E501
434
- return data
435
-
436
- def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501
437
- """Get a TeamDB list via a unique id. # noqa: E501
438
-
439
- This method makes a synchronous HTTP request by default. To make an
440
- asynchronous HTTP request, please pass async_req=True
441
- >>> thread = api.get_list_with_http_info(list_id, async_req=True)
442
- >>> result = thread.get()
443
-
444
- :param async_req bool
445
- :param str list_id: The unique TeamDB list id for which you want to get the list (required)
446
- :return: TeamDBList
447
- If the method is called asynchronously,
448
- returns the request thread.
449
- """
450
-
451
- all_params = ['list_id'] # noqa: E501
452
- all_params.append('async_req')
453
- all_params.append('_return_http_data_only')
454
- all_params.append('_preload_content')
455
- all_params.append('_request_timeout')
456
-
457
- params = locals()
458
- for key, val in six.iteritems(params['kwargs']):
459
- if key not in all_params:
460
- raise TypeError(
461
- "Got an unexpected keyword argument '%s'"
462
- " to method get_list" % key
463
- )
464
- params[key] = val
465
- del params['kwargs']
466
- # verify the required parameter 'list_id' is set
467
- if ('list_id' not in params or
468
- params['list_id'] is None):
469
- raise ValueError("Missing the required parameter `list_id` when calling `get_list`") # noqa: E501
470
-
471
- collection_formats = {}
472
-
473
- path_params = {}
474
- if 'list_id' in params:
475
- path_params['listId'] = params['list_id'] # noqa: E501
476
-
477
- query_params = []
478
-
479
- header_params = {}
480
-
481
- form_params = []
482
- local_var_files = {}
483
-
484
- body_params = None
485
- # HTTP header `Accept`
486
- header_params['Accept'] = self.api_client.select_header_accept(
487
- ['application/json', 'text/json']) # noqa: E501
488
-
489
- # Authentication setting
490
- auth_settings = [] # noqa: E501
491
-
492
- return self.api_client.call_api(
493
- '/teamdbapi/v2.0/teamdblist/{listId}', 'GET',
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='TeamDBList', # 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)
507
-
508
- def get_list_item(self, item_id, **kwargs): # noqa: E501
509
- """Get a TeamDB list item via a unique id. # noqa: E501
510
-
511
- This method makes a synchronous HTTP request by default. To make an
512
- asynchronous HTTP request, please pass async_req=True
513
- >>> thread = api.get_list_item(item_id, async_req=True)
514
- >>> result = thread.get()
515
-
516
- :param async_req bool
517
- :param str item_id: The unique TeamDB list item id for which you want to get the item (required)
518
- :return: TeamDBListItem
519
- If the method is called asynchronously,
520
- returns the request thread.
521
- """
522
- kwargs['_return_http_data_only'] = True
523
- if kwargs.get('async_req'):
524
- return self.get_list_item_with_http_info(item_id, **kwargs) # noqa: E501
525
- else:
526
- (data) = self.get_list_item_with_http_info(item_id, **kwargs) # noqa: E501
527
- return data
528
-
529
- def get_list_item_with_http_info(self, item_id, **kwargs): # noqa: E501
530
- """Get a TeamDB list item via a unique id. # noqa: E501
531
-
532
- This method makes a synchronous HTTP request by default. To make an
533
- asynchronous HTTP request, please pass async_req=True
534
- >>> thread = api.get_list_item_with_http_info(item_id, async_req=True)
535
- >>> result = thread.get()
536
-
537
- :param async_req bool
538
- :param str item_id: The unique TeamDB list item id for which you want to get the item (required)
539
- :return: TeamDBListItem
540
- If the method is called asynchronously,
541
- returns the request thread.
542
- """
543
-
544
- all_params = ['item_id'] # noqa: E501
545
- all_params.append('async_req')
546
- all_params.append('_return_http_data_only')
547
- all_params.append('_preload_content')
548
- all_params.append('_request_timeout')
549
-
550
- params = locals()
551
- for key, val in six.iteritems(params['kwargs']):
552
- if key not in all_params:
553
- raise TypeError(
554
- "Got an unexpected keyword argument '%s'"
555
- " to method get_list_item" % key
556
- )
557
- params[key] = val
558
- del params['kwargs']
559
- # verify the required parameter 'item_id' is set
560
- if ('item_id' not in params or
561
- params['item_id'] is None):
562
- raise ValueError("Missing the required parameter `item_id` when calling `get_list_item`") # noqa: E501
563
-
564
- collection_formats = {}
565
-
566
- path_params = {}
567
- if 'item_id' in params:
568
- path_params['itemId'] = params['item_id'] # noqa: E501
569
-
570
- query_params = []
571
-
572
- header_params = {}
573
-
574
- form_params = []
575
- local_var_files = {}
576
-
577
- body_params = None
578
- # HTTP header `Accept`
579
- header_params['Accept'] = self.api_client.select_header_accept(
580
- ['application/json', 'text/json']) # noqa: E501
581
-
582
- # Authentication setting
583
- auth_settings = [] # noqa: E501
584
-
585
- return self.api_client.call_api(
586
- '/teamdbapi/v2.0/teamdblistitem/{itemId}', 'GET',
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='TeamDBListItem', # 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)
600
-
601
- def get_list_items(self, list_id, **kwargs): # noqa: E501
602
- """Get the list of all items for a TeamDB list # noqa: E501
603
-
604
- This method makes a synchronous HTTP request by default. To make an
605
- asynchronous HTTP request, please pass async_req=True
606
- >>> thread = api.get_list_items(list_id, async_req=True)
607
- >>> result = thread.get()
608
-
609
- :param async_req bool
610
- :param str list_id: The unique TeamDB list id for which you want the items (required)
611
- :return: list[TeamDBListItem]
612
- If the method is called asynchronously,
613
- returns the request thread.
614
- """
615
- kwargs['_return_http_data_only'] = True
616
- if kwargs.get('async_req'):
617
- return self.get_list_items_with_http_info(list_id, **kwargs) # noqa: E501
618
- else:
619
- (data) = self.get_list_items_with_http_info(list_id, **kwargs) # noqa: E501
620
- return data
621
-
622
- def get_list_items_with_http_info(self, list_id, **kwargs): # noqa: E501
623
- """Get the list of all items for a TeamDB list # noqa: E501
624
-
625
- This method makes a synchronous HTTP request by default. To make an
626
- asynchronous HTTP request, please pass async_req=True
627
- >>> thread = api.get_list_items_with_http_info(list_id, async_req=True)
628
- >>> result = thread.get()
629
-
630
- :param async_req bool
631
- :param str list_id: The unique TeamDB list id for which you want the items (required)
632
- :return: list[TeamDBListItem]
633
- If the method is called asynchronously,
634
- returns the request thread.
635
- """
636
-
637
- all_params = ['list_id'] # noqa: E501
638
- all_params.append('async_req')
639
- all_params.append('_return_http_data_only')
640
- all_params.append('_preload_content')
641
- all_params.append('_request_timeout')
642
-
643
- params = locals()
644
- for key, val in six.iteritems(params['kwargs']):
645
- if key not in all_params:
646
- raise TypeError(
647
- "Got an unexpected keyword argument '%s'"
648
- " to method get_list_items" % key
649
- )
650
- params[key] = val
651
- del params['kwargs']
652
- # verify the required parameter 'list_id' is set
653
- if ('list_id' not in params or
654
- params['list_id'] is None):
655
- raise ValueError("Missing the required parameter `list_id` when calling `get_list_items`") # noqa: E501
656
-
657
- collection_formats = {}
658
-
659
- path_params = {}
660
- if 'list_id' in params:
661
- path_params['listId'] = params['list_id'] # noqa: E501
662
-
663
- query_params = []
664
-
665
- header_params = {}
666
-
667
- form_params = []
668
- local_var_files = {}
669
-
670
- body_params = None
671
- # HTTP header `Accept`
672
- header_params['Accept'] = self.api_client.select_header_accept(
673
- ['application/json', 'text/json']) # noqa: E501
674
-
675
- # Authentication setting
676
- auth_settings = [] # noqa: E501
677
-
678
- return self.api_client.call_api(
679
- '/teamdbapi/v2.0/teamdblist/{listId}/items', 'GET',
680
- path_params,
681
- query_params,
682
- header_params,
683
- body=body_params,
684
- post_params=form_params,
685
- files=local_var_files,
686
- response_type='list[TeamDBListItem]', # noqa: E501
687
- auth_settings=auth_settings,
688
- async_req=params.get('async_req'),
689
- _return_http_data_only=params.get('_return_http_data_only'),
690
- _preload_content=params.get('_preload_content', True),
691
- _request_timeout=params.get('_request_timeout'),
692
- collection_formats=collection_formats)
693
-
694
- def get_lists(self, **kwargs): # noqa: E501
695
- """Get the list of all TeamDB lists # noqa: E501
696
-
697
- This method makes a synchronous HTTP request by default. To make an
698
- asynchronous HTTP request, please pass async_req=True
699
- >>> thread = api.get_lists(async_req=True)
700
- >>> result = thread.get()
701
-
702
- :param async_req bool
703
- :return: list[TeamDBList]
704
- If the method is called asynchronously,
705
- returns the request thread.
706
- """
707
- kwargs['_return_http_data_only'] = True
708
- if kwargs.get('async_req'):
709
- return self.get_lists_with_http_info(**kwargs) # noqa: E501
710
- else:
711
- (data) = self.get_lists_with_http_info(**kwargs) # noqa: E501
712
- return data
713
-
714
- def get_lists_with_http_info(self, **kwargs): # noqa: E501
715
- """Get the list of all TeamDB lists # noqa: E501
716
-
717
- This method makes a synchronous HTTP request by default. To make an
718
- asynchronous HTTP request, please pass async_req=True
719
- >>> thread = api.get_lists_with_http_info(async_req=True)
720
- >>> result = thread.get()
721
-
722
- :param async_req bool
723
- :return: list[TeamDBList]
724
- If the method is called asynchronously,
725
- returns the request thread.
726
- """
727
-
728
- all_params = [] # noqa: E501
729
- all_params.append('async_req')
730
- all_params.append('_return_http_data_only')
731
- all_params.append('_preload_content')
732
- all_params.append('_request_timeout')
733
-
734
- params = locals()
735
- for key, val in six.iteritems(params['kwargs']):
736
- if key not in all_params:
737
- raise TypeError(
738
- "Got an unexpected keyword argument '%s'"
739
- " to method get_lists" % key
740
- )
741
- params[key] = val
742
- del params['kwargs']
743
-
744
- collection_formats = {}
745
-
746
- path_params = {}
747
-
748
- query_params = []
749
-
750
- header_params = {}
751
-
752
- form_params = []
753
- local_var_files = {}
754
-
755
- body_params = None
756
- # HTTP header `Accept`
757
- header_params['Accept'] = self.api_client.select_header_accept(
758
- ['application/json', 'text/json']) # noqa: E501
759
-
760
- # Authentication setting
761
- auth_settings = [] # noqa: E501
762
-
763
- return self.api_client.call_api(
764
- '/teamdbapi/v2.0/teamdblists', 'GET',
765
- path_params,
766
- query_params,
767
- header_params,
768
- body=body_params,
769
- post_params=form_params,
770
- files=local_var_files,
771
- response_type='list[TeamDBList]', # noqa: E501
772
- auth_settings=auth_settings,
773
- async_req=params.get('async_req'),
774
- _return_http_data_only=params.get('_return_http_data_only'),
775
- _preload_content=params.get('_preload_content', True),
776
- _request_timeout=params.get('_request_timeout'),
777
- collection_formats=collection_formats)
778
-
779
- def update_list(self, body, list_id, **kwargs): # noqa: E501
780
- """Update an existing TeamDB list # noqa: E501
781
-
782
- This method makes a synchronous HTTP request by default. To make an
783
- asynchronous HTTP request, please pass async_req=True
784
- >>> thread = api.update_list(body, list_id, async_req=True)
785
- >>> result = thread.get()
786
-
787
- :param async_req bool
788
- :param TeamDBList body: The TeamDB list to update. (required)
789
- :param str list_id: The unique TeamDB list id for which you want to update the list (required)
790
- :return: TeamDBList
791
- If the method is called asynchronously,
792
- returns the request thread.
793
- """
794
- kwargs['_return_http_data_only'] = True
795
- if kwargs.get('async_req'):
796
- return self.update_list_with_http_info(body, list_id, **kwargs) # noqa: E501
797
- else:
798
- (data) = self.update_list_with_http_info(body, list_id, **kwargs) # noqa: E501
799
- return data
800
-
801
- def update_list_with_http_info(self, body, list_id, **kwargs): # noqa: E501
802
- """Update an existing TeamDB list # noqa: E501
803
-
804
- This method makes a synchronous HTTP request by default. To make an
805
- asynchronous HTTP request, please pass async_req=True
806
- >>> thread = api.update_list_with_http_info(body, list_id, async_req=True)
807
- >>> result = thread.get()
808
-
809
- :param async_req bool
810
- :param TeamDBList body: The TeamDB list to update. (required)
811
- :param str list_id: The unique TeamDB list id for which you want to update the list (required)
812
- :return: TeamDBList
813
- If the method is called asynchronously,
814
- returns the request thread.
815
- """
816
-
817
- all_params = ['body', 'list_id'] # noqa: E501
818
- all_params.append('async_req')
819
- all_params.append('_return_http_data_only')
820
- all_params.append('_preload_content')
821
- all_params.append('_request_timeout')
822
-
823
- params = locals()
824
- for key, val in six.iteritems(params['kwargs']):
825
- if key not in all_params:
826
- raise TypeError(
827
- "Got an unexpected keyword argument '%s'"
828
- " to method update_list" % key
829
- )
830
- params[key] = val
831
- del params['kwargs']
832
- # verify the required parameter 'body' is set
833
- if ('body' not in params or
834
- params['body'] is None):
835
- raise ValueError("Missing the required parameter `body` when calling `update_list`") # noqa: E501
836
- # verify the required parameter 'list_id' is set
837
- if ('list_id' not in params or
838
- params['list_id'] is None):
839
- raise ValueError("Missing the required parameter `list_id` when calling `update_list`") # noqa: E501
840
-
841
- collection_formats = {}
842
-
843
- path_params = {}
844
- if 'list_id' in params:
845
- path_params['listId'] = params['list_id'] # noqa: E501
846
-
847
- query_params = []
848
-
849
- header_params = {}
850
-
851
- form_params = []
852
- local_var_files = {}
853
-
854
- body_params = None
855
- if 'body' in params:
856
- body_params = params['body']
857
- # HTTP header `Accept`
858
- header_params['Accept'] = self.api_client.select_header_accept(
859
- ['application/json', 'text/json']) # noqa: E501
860
-
861
- # HTTP header `Content-Type`
862
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
863
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
864
-
865
- # Authentication setting
866
- auth_settings = [] # noqa: E501
867
-
868
- return self.api_client.call_api(
869
- '/teamdbapi/v2.0/teamdblist/{listId}', 'PUT',
870
- path_params,
871
- query_params,
872
- header_params,
873
- body=body_params,
874
- post_params=form_params,
875
- files=local_var_files,
876
- response_type='TeamDBList', # noqa: E501
877
- auth_settings=auth_settings,
878
- async_req=params.get('async_req'),
879
- _return_http_data_only=params.get('_return_http_data_only'),
880
- _preload_content=params.get('_preload_content', True),
881
- _request_timeout=params.get('_request_timeout'),
882
- collection_formats=collection_formats)
883
-
884
- def update_list_item(self, body, item_id, **kwargs): # noqa: E501
885
- """Update an existing TeamDB list item # noqa: E501
886
-
887
- This method makes a synchronous HTTP request by default. To make an
888
- asynchronous HTTP request, please pass async_req=True
889
- >>> thread = api.update_list_item(body, item_id, async_req=True)
890
- >>> result = thread.get()
891
-
892
- :param async_req bool
893
- :param TeamDBListItem body: The TeamDB list item to update. (required)
894
- :param str item_id: The unique TeamDB list item id for which you want to update the item (required)
895
- :return: TeamDBListItem
896
- If the method is called asynchronously,
897
- returns the request thread.
898
- """
899
- kwargs['_return_http_data_only'] = True
900
- if kwargs.get('async_req'):
901
- return self.update_list_item_with_http_info(body, item_id, **kwargs) # noqa: E501
902
- else:
903
- (data) = self.update_list_item_with_http_info(body, item_id, **kwargs) # noqa: E501
904
- return data
905
-
906
- def update_list_item_with_http_info(self, body, item_id, **kwargs): # noqa: E501
907
- """Update an existing TeamDB list item # noqa: E501
908
-
909
- This method makes a synchronous HTTP request by default. To make an
910
- asynchronous HTTP request, please pass async_req=True
911
- >>> thread = api.update_list_item_with_http_info(body, item_id, async_req=True)
912
- >>> result = thread.get()
913
-
914
- :param async_req bool
915
- :param TeamDBListItem body: The TeamDB list item to update. (required)
916
- :param str item_id: The unique TeamDB list item id for which you want to update the item (required)
917
- :return: TeamDBListItem
918
- If the method is called asynchronously,
919
- returns the request thread.
920
- """
921
-
922
- all_params = ['body', 'item_id'] # noqa: E501
923
- all_params.append('async_req')
924
- all_params.append('_return_http_data_only')
925
- all_params.append('_preload_content')
926
- all_params.append('_request_timeout')
927
-
928
- params = locals()
929
- for key, val in six.iteritems(params['kwargs']):
930
- if key not in all_params:
931
- raise TypeError(
932
- "Got an unexpected keyword argument '%s'"
933
- " to method update_list_item" % key
934
- )
935
- params[key] = val
936
- del params['kwargs']
937
- # verify the required parameter 'body' is set
938
- if ('body' not in params or
939
- params['body'] is None):
940
- raise ValueError("Missing the required parameter `body` when calling `update_list_item`") # noqa: E501
941
- # verify the required parameter 'item_id' is set
942
- if ('item_id' not in params or
943
- params['item_id'] is None):
944
- raise ValueError("Missing the required parameter `item_id` when calling `update_list_item`") # noqa: E501
945
-
946
- collection_formats = {}
947
-
948
- path_params = {}
949
- if 'item_id' in params:
950
- path_params['itemId'] = params['item_id'] # noqa: E501
951
-
952
- query_params = []
953
-
954
- header_params = {}
955
-
956
- form_params = []
957
- local_var_files = {}
958
-
959
- body_params = None
960
- if 'body' in params:
961
- body_params = params['body']
962
- # HTTP header `Accept`
963
- header_params['Accept'] = self.api_client.select_header_accept(
964
- ['application/json', 'text/json']) # noqa: E501
965
-
966
- # HTTP header `Content-Type`
967
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
968
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
969
-
970
- # Authentication setting
971
- auth_settings = [] # noqa: E501
972
-
973
- return self.api_client.call_api(
974
- '/teamdbapi/v2.0/teamdblistitem/{itemId}', 'PUT',
975
- path_params,
976
- query_params,
977
- header_params,
978
- body=body_params,
979
- post_params=form_params,
980
- files=local_var_files,
981
- response_type='TeamDBListItem', # noqa: E501
982
- auth_settings=auth_settings,
983
- async_req=params.get('async_req'),
984
- _return_http_data_only=params.get('_return_http_data_only'),
985
- _preload_content=params.get('_preload_content', True),
986
- _request_timeout=params.get('_request_timeout'),
987
- 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 TeamDBListApi(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_list(self, body, **kwargs): # noqa: E501
36
+ """Create a new TeamDB list # 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_list(body, async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :param TeamDBList body: The TeamDB list to create. (required)
45
+ :return: TeamDBList
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_list_with_http_info(body, **kwargs) # noqa: E501
52
+ else:
53
+ (data) = self.create_list_with_http_info(body, **kwargs) # noqa: E501
54
+ return data
55
+
56
+ def create_list_with_http_info(self, body, **kwargs): # noqa: E501
57
+ """Create a new TeamDB list # 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_list_with_http_info(body, async_req=True)
62
+ >>> result = thread.get()
63
+
64
+ :param async_req bool
65
+ :param TeamDBList body: The TeamDB list to create. (required)
66
+ :return: TeamDBList
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_list" % 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_list`") # 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/teamdblist', '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='TeamDBList', # 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 create_list_item(self, body, **kwargs): # noqa: E501
133
+ """Create a new TeamDB list item # 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.create_list_item(body, async_req=True)
138
+ >>> result = thread.get()
139
+
140
+ :param async_req bool
141
+ :param TeamDBListItem body: The TeamDB list item to create. (required)
142
+ :return: TeamDBListItem
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.create_list_item_with_http_info(body, **kwargs) # noqa: E501
149
+ else:
150
+ (data) = self.create_list_item_with_http_info(body, **kwargs) # noqa: E501
151
+ return data
152
+
153
+ def create_list_item_with_http_info(self, body, **kwargs): # noqa: E501
154
+ """Create a new TeamDB list item # 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.create_list_item_with_http_info(body, async_req=True)
159
+ >>> result = thread.get()
160
+
161
+ :param async_req bool
162
+ :param TeamDBListItem body: The TeamDB list item to create. (required)
163
+ :return: TeamDBListItem
164
+ If the method is called asynchronously,
165
+ returns the request thread.
166
+ """
167
+
168
+ all_params = ['body'] # 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 create_list_item" % key
180
+ )
181
+ params[key] = val
182
+ del params['kwargs']
183
+ # verify the required parameter 'body' is set
184
+ if ('body' not in params or
185
+ params['body'] is None):
186
+ raise ValueError("Missing the required parameter `body` when calling `create_list_item`") # noqa: E501
187
+
188
+ collection_formats = {}
189
+
190
+ path_params = {}
191
+
192
+ query_params = []
193
+
194
+ header_params = {}
195
+
196
+ form_params = []
197
+ local_var_files = {}
198
+
199
+ body_params = None
200
+ if 'body' in params:
201
+ body_params = params['body']
202
+ # HTTP header `Accept`
203
+ header_params['Accept'] = self.api_client.select_header_accept(
204
+ ['application/json', 'text/json']) # noqa: E501
205
+
206
+ # HTTP header `Content-Type`
207
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
208
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
209
+
210
+ # Authentication setting
211
+ auth_settings = [] # noqa: E501
212
+
213
+ return self.api_client.call_api(
214
+ '/teamdbapi/v2.0/teamdblistitem', 'POST',
215
+ path_params,
216
+ query_params,
217
+ header_params,
218
+ body=body_params,
219
+ post_params=form_params,
220
+ files=local_var_files,
221
+ response_type='TeamDBListItem', # noqa: E501
222
+ auth_settings=auth_settings,
223
+ async_req=params.get('async_req'),
224
+ _return_http_data_only=params.get('_return_http_data_only'),
225
+ _preload_content=params.get('_preload_content', True),
226
+ _request_timeout=params.get('_request_timeout'),
227
+ collection_formats=collection_formats)
228
+
229
+ def delete_list(self, list_id, **kwargs): # noqa: E501
230
+ """Delete an existing TeamDB list # noqa: E501
231
+
232
+ This method makes a synchronous HTTP request by default. To make an
233
+ asynchronous HTTP request, please pass async_req=True
234
+ >>> thread = api.delete_list(list_id, async_req=True)
235
+ >>> result = thread.get()
236
+
237
+ :param async_req bool
238
+ :param str list_id: The unique TeamDB list id for which you want to delete the list (required)
239
+ :return: None
240
+ If the method is called asynchronously,
241
+ returns the request thread.
242
+ """
243
+ kwargs['_return_http_data_only'] = True
244
+ if kwargs.get('async_req'):
245
+ return self.delete_list_with_http_info(list_id, **kwargs) # noqa: E501
246
+ else:
247
+ (data) = self.delete_list_with_http_info(list_id, **kwargs) # noqa: E501
248
+ return data
249
+
250
+ def delete_list_with_http_info(self, list_id, **kwargs): # noqa: E501
251
+ """Delete an existing TeamDB list # noqa: E501
252
+
253
+ This method makes a synchronous HTTP request by default. To make an
254
+ asynchronous HTTP request, please pass async_req=True
255
+ >>> thread = api.delete_list_with_http_info(list_id, async_req=True)
256
+ >>> result = thread.get()
257
+
258
+ :param async_req bool
259
+ :param str list_id: The unique TeamDB list id for which you want to delete the list (required)
260
+ :return: None
261
+ If the method is called asynchronously,
262
+ returns the request thread.
263
+ """
264
+
265
+ all_params = ['list_id'] # noqa: E501
266
+ all_params.append('async_req')
267
+ all_params.append('_return_http_data_only')
268
+ all_params.append('_preload_content')
269
+ all_params.append('_request_timeout')
270
+
271
+ params = locals()
272
+ for key, val in six.iteritems(params['kwargs']):
273
+ if key not in all_params:
274
+ raise TypeError(
275
+ "Got an unexpected keyword argument '%s'"
276
+ " to method delete_list" % key
277
+ )
278
+ params[key] = val
279
+ del params['kwargs']
280
+ # verify the required parameter 'list_id' is set
281
+ if ('list_id' not in params or
282
+ params['list_id'] is None):
283
+ raise ValueError("Missing the required parameter `list_id` when calling `delete_list`") # noqa: E501
284
+
285
+ collection_formats = {}
286
+
287
+ path_params = {}
288
+ if 'list_id' in params:
289
+ path_params['listId'] = params['list_id'] # noqa: E501
290
+
291
+ query_params = []
292
+
293
+ header_params = {}
294
+
295
+ form_params = []
296
+ local_var_files = {}
297
+
298
+ body_params = None
299
+ # HTTP header `Accept`
300
+ header_params['Accept'] = self.api_client.select_header_accept(
301
+ ['application/json', 'text/json']) # noqa: E501
302
+
303
+ # Authentication setting
304
+ auth_settings = [] # noqa: E501
305
+
306
+ return self.api_client.call_api(
307
+ '/teamdbapi/v2.0/teamdblist/{listId}', 'DELETE',
308
+ path_params,
309
+ query_params,
310
+ header_params,
311
+ body=body_params,
312
+ post_params=form_params,
313
+ files=local_var_files,
314
+ response_type=None, # noqa: E501
315
+ auth_settings=auth_settings,
316
+ async_req=params.get('async_req'),
317
+ _return_http_data_only=params.get('_return_http_data_only'),
318
+ _preload_content=params.get('_preload_content', True),
319
+ _request_timeout=params.get('_request_timeout'),
320
+ collection_formats=collection_formats)
321
+
322
+ def delete_list_item(self, item_id, **kwargs): # noqa: E501
323
+ """Delete an existing TeamDB list item # noqa: E501
324
+
325
+ This method makes a synchronous HTTP request by default. To make an
326
+ asynchronous HTTP request, please pass async_req=True
327
+ >>> thread = api.delete_list_item(item_id, async_req=True)
328
+ >>> result = thread.get()
329
+
330
+ :param async_req bool
331
+ :param str item_id: The unique TeamDB list item id for which you want to delete the item (required)
332
+ :return: None
333
+ If the method is called asynchronously,
334
+ returns the request thread.
335
+ """
336
+ kwargs['_return_http_data_only'] = True
337
+ if kwargs.get('async_req'):
338
+ return self.delete_list_item_with_http_info(item_id, **kwargs) # noqa: E501
339
+ else:
340
+ (data) = self.delete_list_item_with_http_info(item_id, **kwargs) # noqa: E501
341
+ return data
342
+
343
+ def delete_list_item_with_http_info(self, item_id, **kwargs): # noqa: E501
344
+ """Delete an existing TeamDB list item # noqa: E501
345
+
346
+ This method makes a synchronous HTTP request by default. To make an
347
+ asynchronous HTTP request, please pass async_req=True
348
+ >>> thread = api.delete_list_item_with_http_info(item_id, async_req=True)
349
+ >>> result = thread.get()
350
+
351
+ :param async_req bool
352
+ :param str item_id: The unique TeamDB list item id for which you want to delete the item (required)
353
+ :return: None
354
+ If the method is called asynchronously,
355
+ returns the request thread.
356
+ """
357
+
358
+ all_params = ['item_id'] # noqa: E501
359
+ all_params.append('async_req')
360
+ all_params.append('_return_http_data_only')
361
+ all_params.append('_preload_content')
362
+ all_params.append('_request_timeout')
363
+
364
+ params = locals()
365
+ for key, val in six.iteritems(params['kwargs']):
366
+ if key not in all_params:
367
+ raise TypeError(
368
+ "Got an unexpected keyword argument '%s'"
369
+ " to method delete_list_item" % key
370
+ )
371
+ params[key] = val
372
+ del params['kwargs']
373
+ # verify the required parameter 'item_id' is set
374
+ if ('item_id' not in params or
375
+ params['item_id'] is None):
376
+ raise ValueError("Missing the required parameter `item_id` when calling `delete_list_item`") # noqa: E501
377
+
378
+ collection_formats = {}
379
+
380
+ path_params = {}
381
+ if 'item_id' in params:
382
+ path_params['itemId'] = params['item_id'] # noqa: E501
383
+
384
+ query_params = []
385
+
386
+ header_params = {}
387
+
388
+ form_params = []
389
+ local_var_files = {}
390
+
391
+ body_params = None
392
+ # HTTP header `Accept`
393
+ header_params['Accept'] = self.api_client.select_header_accept(
394
+ ['application/json', 'text/json']) # noqa: E501
395
+
396
+ # Authentication setting
397
+ auth_settings = [] # noqa: E501
398
+
399
+ return self.api_client.call_api(
400
+ '/teamdbapi/v2.0/teamdblistitem/{itemId}', 'DELETE',
401
+ path_params,
402
+ query_params,
403
+ header_params,
404
+ body=body_params,
405
+ post_params=form_params,
406
+ files=local_var_files,
407
+ response_type=None, # noqa: E501
408
+ auth_settings=auth_settings,
409
+ async_req=params.get('async_req'),
410
+ _return_http_data_only=params.get('_return_http_data_only'),
411
+ _preload_content=params.get('_preload_content', True),
412
+ _request_timeout=params.get('_request_timeout'),
413
+ collection_formats=collection_formats)
414
+
415
+ def get_list(self, list_id, **kwargs): # noqa: E501
416
+ """Get a TeamDB list via a unique id. # noqa: E501
417
+
418
+ This method makes a synchronous HTTP request by default. To make an
419
+ asynchronous HTTP request, please pass async_req=True
420
+ >>> thread = api.get_list(list_id, async_req=True)
421
+ >>> result = thread.get()
422
+
423
+ :param async_req bool
424
+ :param str list_id: The unique TeamDB list id for which you want to get the list (required)
425
+ :return: TeamDBList
426
+ If the method is called asynchronously,
427
+ returns the request thread.
428
+ """
429
+ kwargs['_return_http_data_only'] = True
430
+ if kwargs.get('async_req'):
431
+ return self.get_list_with_http_info(list_id, **kwargs) # noqa: E501
432
+ else:
433
+ (data) = self.get_list_with_http_info(list_id, **kwargs) # noqa: E501
434
+ return data
435
+
436
+ def get_list_with_http_info(self, list_id, **kwargs): # noqa: E501
437
+ """Get a TeamDB list via a unique id. # noqa: E501
438
+
439
+ This method makes a synchronous HTTP request by default. To make an
440
+ asynchronous HTTP request, please pass async_req=True
441
+ >>> thread = api.get_list_with_http_info(list_id, async_req=True)
442
+ >>> result = thread.get()
443
+
444
+ :param async_req bool
445
+ :param str list_id: The unique TeamDB list id for which you want to get the list (required)
446
+ :return: TeamDBList
447
+ If the method is called asynchronously,
448
+ returns the request thread.
449
+ """
450
+
451
+ all_params = ['list_id'] # noqa: E501
452
+ all_params.append('async_req')
453
+ all_params.append('_return_http_data_only')
454
+ all_params.append('_preload_content')
455
+ all_params.append('_request_timeout')
456
+
457
+ params = locals()
458
+ for key, val in six.iteritems(params['kwargs']):
459
+ if key not in all_params:
460
+ raise TypeError(
461
+ "Got an unexpected keyword argument '%s'"
462
+ " to method get_list" % key
463
+ )
464
+ params[key] = val
465
+ del params['kwargs']
466
+ # verify the required parameter 'list_id' is set
467
+ if ('list_id' not in params or
468
+ params['list_id'] is None):
469
+ raise ValueError("Missing the required parameter `list_id` when calling `get_list`") # noqa: E501
470
+
471
+ collection_formats = {}
472
+
473
+ path_params = {}
474
+ if 'list_id' in params:
475
+ path_params['listId'] = params['list_id'] # noqa: E501
476
+
477
+ query_params = []
478
+
479
+ header_params = {}
480
+
481
+ form_params = []
482
+ local_var_files = {}
483
+
484
+ body_params = None
485
+ # HTTP header `Accept`
486
+ header_params['Accept'] = self.api_client.select_header_accept(
487
+ ['application/json', 'text/json']) # noqa: E501
488
+
489
+ # Authentication setting
490
+ auth_settings = [] # noqa: E501
491
+
492
+ return self.api_client.call_api(
493
+ '/teamdbapi/v2.0/teamdblist/{listId}', 'GET',
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='TeamDBList', # 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)
507
+
508
+ def get_list_item(self, item_id, **kwargs): # noqa: E501
509
+ """Get a TeamDB list item via a unique id. # noqa: E501
510
+
511
+ This method makes a synchronous HTTP request by default. To make an
512
+ asynchronous HTTP request, please pass async_req=True
513
+ >>> thread = api.get_list_item(item_id, async_req=True)
514
+ >>> result = thread.get()
515
+
516
+ :param async_req bool
517
+ :param str item_id: The unique TeamDB list item id for which you want to get the item (required)
518
+ :return: TeamDBListItem
519
+ If the method is called asynchronously,
520
+ returns the request thread.
521
+ """
522
+ kwargs['_return_http_data_only'] = True
523
+ if kwargs.get('async_req'):
524
+ return self.get_list_item_with_http_info(item_id, **kwargs) # noqa: E501
525
+ else:
526
+ (data) = self.get_list_item_with_http_info(item_id, **kwargs) # noqa: E501
527
+ return data
528
+
529
+ def get_list_item_with_http_info(self, item_id, **kwargs): # noqa: E501
530
+ """Get a TeamDB list item via a unique id. # noqa: E501
531
+
532
+ This method makes a synchronous HTTP request by default. To make an
533
+ asynchronous HTTP request, please pass async_req=True
534
+ >>> thread = api.get_list_item_with_http_info(item_id, async_req=True)
535
+ >>> result = thread.get()
536
+
537
+ :param async_req bool
538
+ :param str item_id: The unique TeamDB list item id for which you want to get the item (required)
539
+ :return: TeamDBListItem
540
+ If the method is called asynchronously,
541
+ returns the request thread.
542
+ """
543
+
544
+ all_params = ['item_id'] # noqa: E501
545
+ all_params.append('async_req')
546
+ all_params.append('_return_http_data_only')
547
+ all_params.append('_preload_content')
548
+ all_params.append('_request_timeout')
549
+
550
+ params = locals()
551
+ for key, val in six.iteritems(params['kwargs']):
552
+ if key not in all_params:
553
+ raise TypeError(
554
+ "Got an unexpected keyword argument '%s'"
555
+ " to method get_list_item" % key
556
+ )
557
+ params[key] = val
558
+ del params['kwargs']
559
+ # verify the required parameter 'item_id' is set
560
+ if ('item_id' not in params or
561
+ params['item_id'] is None):
562
+ raise ValueError("Missing the required parameter `item_id` when calling `get_list_item`") # noqa: E501
563
+
564
+ collection_formats = {}
565
+
566
+ path_params = {}
567
+ if 'item_id' in params:
568
+ path_params['itemId'] = params['item_id'] # noqa: E501
569
+
570
+ query_params = []
571
+
572
+ header_params = {}
573
+
574
+ form_params = []
575
+ local_var_files = {}
576
+
577
+ body_params = None
578
+ # HTTP header `Accept`
579
+ header_params['Accept'] = self.api_client.select_header_accept(
580
+ ['application/json', 'text/json']) # noqa: E501
581
+
582
+ # Authentication setting
583
+ auth_settings = [] # noqa: E501
584
+
585
+ return self.api_client.call_api(
586
+ '/teamdbapi/v2.0/teamdblistitem/{itemId}', 'GET',
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='TeamDBListItem', # 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)
600
+
601
+ def get_list_items(self, list_id, **kwargs): # noqa: E501
602
+ """Get the list of all items for a TeamDB list # noqa: E501
603
+
604
+ This method makes a synchronous HTTP request by default. To make an
605
+ asynchronous HTTP request, please pass async_req=True
606
+ >>> thread = api.get_list_items(list_id, async_req=True)
607
+ >>> result = thread.get()
608
+
609
+ :param async_req bool
610
+ :param str list_id: The unique TeamDB list id for which you want the items (required)
611
+ :return: list[TeamDBListItem]
612
+ If the method is called asynchronously,
613
+ returns the request thread.
614
+ """
615
+ kwargs['_return_http_data_only'] = True
616
+ if kwargs.get('async_req'):
617
+ return self.get_list_items_with_http_info(list_id, **kwargs) # noqa: E501
618
+ else:
619
+ (data) = self.get_list_items_with_http_info(list_id, **kwargs) # noqa: E501
620
+ return data
621
+
622
+ def get_list_items_with_http_info(self, list_id, **kwargs): # noqa: E501
623
+ """Get the list of all items for a TeamDB list # noqa: E501
624
+
625
+ This method makes a synchronous HTTP request by default. To make an
626
+ asynchronous HTTP request, please pass async_req=True
627
+ >>> thread = api.get_list_items_with_http_info(list_id, async_req=True)
628
+ >>> result = thread.get()
629
+
630
+ :param async_req bool
631
+ :param str list_id: The unique TeamDB list id for which you want the items (required)
632
+ :return: list[TeamDBListItem]
633
+ If the method is called asynchronously,
634
+ returns the request thread.
635
+ """
636
+
637
+ all_params = ['list_id'] # noqa: E501
638
+ all_params.append('async_req')
639
+ all_params.append('_return_http_data_only')
640
+ all_params.append('_preload_content')
641
+ all_params.append('_request_timeout')
642
+
643
+ params = locals()
644
+ for key, val in six.iteritems(params['kwargs']):
645
+ if key not in all_params:
646
+ raise TypeError(
647
+ "Got an unexpected keyword argument '%s'"
648
+ " to method get_list_items" % key
649
+ )
650
+ params[key] = val
651
+ del params['kwargs']
652
+ # verify the required parameter 'list_id' is set
653
+ if ('list_id' not in params or
654
+ params['list_id'] is None):
655
+ raise ValueError("Missing the required parameter `list_id` when calling `get_list_items`") # noqa: E501
656
+
657
+ collection_formats = {}
658
+
659
+ path_params = {}
660
+ if 'list_id' in params:
661
+ path_params['listId'] = params['list_id'] # noqa: E501
662
+
663
+ query_params = []
664
+
665
+ header_params = {}
666
+
667
+ form_params = []
668
+ local_var_files = {}
669
+
670
+ body_params = None
671
+ # HTTP header `Accept`
672
+ header_params['Accept'] = self.api_client.select_header_accept(
673
+ ['application/json', 'text/json']) # noqa: E501
674
+
675
+ # Authentication setting
676
+ auth_settings = [] # noqa: E501
677
+
678
+ return self.api_client.call_api(
679
+ '/teamdbapi/v2.0/teamdblist/{listId}/items', 'GET',
680
+ path_params,
681
+ query_params,
682
+ header_params,
683
+ body=body_params,
684
+ post_params=form_params,
685
+ files=local_var_files,
686
+ response_type='list[TeamDBListItem]', # noqa: E501
687
+ auth_settings=auth_settings,
688
+ async_req=params.get('async_req'),
689
+ _return_http_data_only=params.get('_return_http_data_only'),
690
+ _preload_content=params.get('_preload_content', True),
691
+ _request_timeout=params.get('_request_timeout'),
692
+ collection_formats=collection_formats)
693
+
694
+ def get_lists(self, **kwargs): # noqa: E501
695
+ """Get the list of all TeamDB lists # noqa: E501
696
+
697
+ This method makes a synchronous HTTP request by default. To make an
698
+ asynchronous HTTP request, please pass async_req=True
699
+ >>> thread = api.get_lists(async_req=True)
700
+ >>> result = thread.get()
701
+
702
+ :param async_req bool
703
+ :return: list[TeamDBList]
704
+ If the method is called asynchronously,
705
+ returns the request thread.
706
+ """
707
+ kwargs['_return_http_data_only'] = True
708
+ if kwargs.get('async_req'):
709
+ return self.get_lists_with_http_info(**kwargs) # noqa: E501
710
+ else:
711
+ (data) = self.get_lists_with_http_info(**kwargs) # noqa: E501
712
+ return data
713
+
714
+ def get_lists_with_http_info(self, **kwargs): # noqa: E501
715
+ """Get the list of all TeamDB lists # noqa: E501
716
+
717
+ This method makes a synchronous HTTP request by default. To make an
718
+ asynchronous HTTP request, please pass async_req=True
719
+ >>> thread = api.get_lists_with_http_info(async_req=True)
720
+ >>> result = thread.get()
721
+
722
+ :param async_req bool
723
+ :return: list[TeamDBList]
724
+ If the method is called asynchronously,
725
+ returns the request thread.
726
+ """
727
+
728
+ all_params = [] # noqa: E501
729
+ all_params.append('async_req')
730
+ all_params.append('_return_http_data_only')
731
+ all_params.append('_preload_content')
732
+ all_params.append('_request_timeout')
733
+
734
+ params = locals()
735
+ for key, val in six.iteritems(params['kwargs']):
736
+ if key not in all_params:
737
+ raise TypeError(
738
+ "Got an unexpected keyword argument '%s'"
739
+ " to method get_lists" % key
740
+ )
741
+ params[key] = val
742
+ del params['kwargs']
743
+
744
+ collection_formats = {}
745
+
746
+ path_params = {}
747
+
748
+ query_params = []
749
+
750
+ header_params = {}
751
+
752
+ form_params = []
753
+ local_var_files = {}
754
+
755
+ body_params = None
756
+ # HTTP header `Accept`
757
+ header_params['Accept'] = self.api_client.select_header_accept(
758
+ ['application/json', 'text/json']) # noqa: E501
759
+
760
+ # Authentication setting
761
+ auth_settings = [] # noqa: E501
762
+
763
+ return self.api_client.call_api(
764
+ '/teamdbapi/v2.0/teamdblists', 'GET',
765
+ path_params,
766
+ query_params,
767
+ header_params,
768
+ body=body_params,
769
+ post_params=form_params,
770
+ files=local_var_files,
771
+ response_type='list[TeamDBList]', # noqa: E501
772
+ auth_settings=auth_settings,
773
+ async_req=params.get('async_req'),
774
+ _return_http_data_only=params.get('_return_http_data_only'),
775
+ _preload_content=params.get('_preload_content', True),
776
+ _request_timeout=params.get('_request_timeout'),
777
+ collection_formats=collection_formats)
778
+
779
+ def update_list(self, body, list_id, **kwargs): # noqa: E501
780
+ """Update an existing TeamDB list # noqa: E501
781
+
782
+ This method makes a synchronous HTTP request by default. To make an
783
+ asynchronous HTTP request, please pass async_req=True
784
+ >>> thread = api.update_list(body, list_id, async_req=True)
785
+ >>> result = thread.get()
786
+
787
+ :param async_req bool
788
+ :param TeamDBList body: The TeamDB list to update. (required)
789
+ :param str list_id: The unique TeamDB list id for which you want to update the list (required)
790
+ :return: TeamDBList
791
+ If the method is called asynchronously,
792
+ returns the request thread.
793
+ """
794
+ kwargs['_return_http_data_only'] = True
795
+ if kwargs.get('async_req'):
796
+ return self.update_list_with_http_info(body, list_id, **kwargs) # noqa: E501
797
+ else:
798
+ (data) = self.update_list_with_http_info(body, list_id, **kwargs) # noqa: E501
799
+ return data
800
+
801
+ def update_list_with_http_info(self, body, list_id, **kwargs): # noqa: E501
802
+ """Update an existing TeamDB list # noqa: E501
803
+
804
+ This method makes a synchronous HTTP request by default. To make an
805
+ asynchronous HTTP request, please pass async_req=True
806
+ >>> thread = api.update_list_with_http_info(body, list_id, async_req=True)
807
+ >>> result = thread.get()
808
+
809
+ :param async_req bool
810
+ :param TeamDBList body: The TeamDB list to update. (required)
811
+ :param str list_id: The unique TeamDB list id for which you want to update the list (required)
812
+ :return: TeamDBList
813
+ If the method is called asynchronously,
814
+ returns the request thread.
815
+ """
816
+
817
+ all_params = ['body', 'list_id'] # noqa: E501
818
+ all_params.append('async_req')
819
+ all_params.append('_return_http_data_only')
820
+ all_params.append('_preload_content')
821
+ all_params.append('_request_timeout')
822
+
823
+ params = locals()
824
+ for key, val in six.iteritems(params['kwargs']):
825
+ if key not in all_params:
826
+ raise TypeError(
827
+ "Got an unexpected keyword argument '%s'"
828
+ " to method update_list" % key
829
+ )
830
+ params[key] = val
831
+ del params['kwargs']
832
+ # verify the required parameter 'body' is set
833
+ if ('body' not in params or
834
+ params['body'] is None):
835
+ raise ValueError("Missing the required parameter `body` when calling `update_list`") # noqa: E501
836
+ # verify the required parameter 'list_id' is set
837
+ if ('list_id' not in params or
838
+ params['list_id'] is None):
839
+ raise ValueError("Missing the required parameter `list_id` when calling `update_list`") # noqa: E501
840
+
841
+ collection_formats = {}
842
+
843
+ path_params = {}
844
+ if 'list_id' in params:
845
+ path_params['listId'] = params['list_id'] # noqa: E501
846
+
847
+ query_params = []
848
+
849
+ header_params = {}
850
+
851
+ form_params = []
852
+ local_var_files = {}
853
+
854
+ body_params = None
855
+ if 'body' in params:
856
+ body_params = params['body']
857
+ # HTTP header `Accept`
858
+ header_params['Accept'] = self.api_client.select_header_accept(
859
+ ['application/json', 'text/json']) # noqa: E501
860
+
861
+ # HTTP header `Content-Type`
862
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
863
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
864
+
865
+ # Authentication setting
866
+ auth_settings = [] # noqa: E501
867
+
868
+ return self.api_client.call_api(
869
+ '/teamdbapi/v2.0/teamdblist/{listId}', 'PUT',
870
+ path_params,
871
+ query_params,
872
+ header_params,
873
+ body=body_params,
874
+ post_params=form_params,
875
+ files=local_var_files,
876
+ response_type='TeamDBList', # noqa: E501
877
+ auth_settings=auth_settings,
878
+ async_req=params.get('async_req'),
879
+ _return_http_data_only=params.get('_return_http_data_only'),
880
+ _preload_content=params.get('_preload_content', True),
881
+ _request_timeout=params.get('_request_timeout'),
882
+ collection_formats=collection_formats)
883
+
884
+ def update_list_item(self, body, item_id, **kwargs): # noqa: E501
885
+ """Update an existing TeamDB list item # noqa: E501
886
+
887
+ This method makes a synchronous HTTP request by default. To make an
888
+ asynchronous HTTP request, please pass async_req=True
889
+ >>> thread = api.update_list_item(body, item_id, async_req=True)
890
+ >>> result = thread.get()
891
+
892
+ :param async_req bool
893
+ :param TeamDBListItem body: The TeamDB list item to update. (required)
894
+ :param str item_id: The unique TeamDB list item id for which you want to update the item (required)
895
+ :return: TeamDBListItem
896
+ If the method is called asynchronously,
897
+ returns the request thread.
898
+ """
899
+ kwargs['_return_http_data_only'] = True
900
+ if kwargs.get('async_req'):
901
+ return self.update_list_item_with_http_info(body, item_id, **kwargs) # noqa: E501
902
+ else:
903
+ (data) = self.update_list_item_with_http_info(body, item_id, **kwargs) # noqa: E501
904
+ return data
905
+
906
+ def update_list_item_with_http_info(self, body, item_id, **kwargs): # noqa: E501
907
+ """Update an existing TeamDB list item # noqa: E501
908
+
909
+ This method makes a synchronous HTTP request by default. To make an
910
+ asynchronous HTTP request, please pass async_req=True
911
+ >>> thread = api.update_list_item_with_http_info(body, item_id, async_req=True)
912
+ >>> result = thread.get()
913
+
914
+ :param async_req bool
915
+ :param TeamDBListItem body: The TeamDB list item to update. (required)
916
+ :param str item_id: The unique TeamDB list item id for which you want to update the item (required)
917
+ :return: TeamDBListItem
918
+ If the method is called asynchronously,
919
+ returns the request thread.
920
+ """
921
+
922
+ all_params = ['body', 'item_id'] # noqa: E501
923
+ all_params.append('async_req')
924
+ all_params.append('_return_http_data_only')
925
+ all_params.append('_preload_content')
926
+ all_params.append('_request_timeout')
927
+
928
+ params = locals()
929
+ for key, val in six.iteritems(params['kwargs']):
930
+ if key not in all_params:
931
+ raise TypeError(
932
+ "Got an unexpected keyword argument '%s'"
933
+ " to method update_list_item" % key
934
+ )
935
+ params[key] = val
936
+ del params['kwargs']
937
+ # verify the required parameter 'body' is set
938
+ if ('body' not in params or
939
+ params['body'] is None):
940
+ raise ValueError("Missing the required parameter `body` when calling `update_list_item`") # noqa: E501
941
+ # verify the required parameter 'item_id' is set
942
+ if ('item_id' not in params or
943
+ params['item_id'] is None):
944
+ raise ValueError("Missing the required parameter `item_id` when calling `update_list_item`") # noqa: E501
945
+
946
+ collection_formats = {}
947
+
948
+ path_params = {}
949
+ if 'item_id' in params:
950
+ path_params['itemId'] = params['item_id'] # noqa: E501
951
+
952
+ query_params = []
953
+
954
+ header_params = {}
955
+
956
+ form_params = []
957
+ local_var_files = {}
958
+
959
+ body_params = None
960
+ if 'body' in params:
961
+ body_params = params['body']
962
+ # HTTP header `Accept`
963
+ header_params['Accept'] = self.api_client.select_header_accept(
964
+ ['application/json', 'text/json']) # noqa: E501
965
+
966
+ # HTTP header `Content-Type`
967
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
968
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
969
+
970
+ # Authentication setting
971
+ auth_settings = [] # noqa: E501
972
+
973
+ return self.api_client.call_api(
974
+ '/teamdbapi/v2.0/teamdblistitem/{itemId}', 'PUT',
975
+ path_params,
976
+ query_params,
977
+ header_params,
978
+ body=body_params,
979
+ post_params=form_params,
980
+ files=local_var_files,
981
+ response_type='TeamDBListItem', # noqa: E501
982
+ auth_settings=auth_settings,
983
+ async_req=params.get('async_req'),
984
+ _return_http_data_only=params.get('_return_http_data_only'),
985
+ _preload_content=params.get('_preload_content', True),
986
+ _request_timeout=params.get('_request_timeout'),
987
+ collection_formats=collection_formats)