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
@@ -0,0 +1,954 @@
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 ComponentApi(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 add_components_to_component_group_revision_content(self, component_id, revision_id, **kwargs): # noqa: E501
36
+ """[Command] Add a list of component to the content of a component group revision from it's unique identifiers. # 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.add_components_to_component_group_revision_content(component_id, revision_id, async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :param str component_id: The unique identifier of the component group. (required)
45
+ :param str revision_id: The unique identifier of the component group revision. (required)
46
+ :param list[str] body: The revisionId list of components to be added to the content of the component revision group
47
+ :return: None
48
+ If the method is called asynchronously,
49
+ returns the request thread.
50
+ """
51
+ kwargs['_return_http_data_only'] = True
52
+ if kwargs.get('async_req'):
53
+ return self.add_components_to_component_group_revision_content_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
54
+ else:
55
+ (data) = self.add_components_to_component_group_revision_content_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
56
+ return data
57
+
58
+ def add_components_to_component_group_revision_content_with_http_info(self, component_id, revision_id, **kwargs): # noqa: E501
59
+ """[Command] Add a list of component to the content of a component group revision from it's unique identifiers. # noqa: E501
60
+
61
+ This method makes a synchronous HTTP request by default. To make an
62
+ asynchronous HTTP request, please pass async_req=True
63
+ >>> thread = api.add_components_to_component_group_revision_content_with_http_info(component_id, revision_id, async_req=True)
64
+ >>> result = thread.get()
65
+
66
+ :param async_req bool
67
+ :param str component_id: The unique identifier of the component group. (required)
68
+ :param str revision_id: The unique identifier of the component group revision. (required)
69
+ :param list[str] body: The revisionId list of components to be added to the content of the component revision group
70
+ :return: None
71
+ If the method is called asynchronously,
72
+ returns the request thread.
73
+ """
74
+
75
+ all_params = ['component_id', 'revision_id', 'body'] # noqa: E501
76
+ all_params.append('async_req')
77
+ all_params.append('_return_http_data_only')
78
+ all_params.append('_preload_content')
79
+ all_params.append('_request_timeout')
80
+
81
+ params = locals()
82
+ for key, val in six.iteritems(params['kwargs']):
83
+ if key not in all_params:
84
+ raise TypeError(
85
+ "Got an unexpected keyword argument '%s'"
86
+ " to method add_components_to_component_group_revision_content" % key
87
+ )
88
+ params[key] = val
89
+ del params['kwargs']
90
+ # verify the required parameter 'component_id' is set
91
+ if ('component_id' not in params or
92
+ params['component_id'] is None):
93
+ raise ValueError("Missing the required parameter `component_id` when calling `add_components_to_component_group_revision_content`") # noqa: E501
94
+ # verify the required parameter 'revision_id' is set
95
+ if ('revision_id' not in params or
96
+ params['revision_id'] is None):
97
+ raise ValueError("Missing the required parameter `revision_id` when calling `add_components_to_component_group_revision_content`") # noqa: E501
98
+
99
+ collection_formats = {}
100
+
101
+ path_params = {}
102
+ if 'component_id' in params:
103
+ path_params['componentId'] = params['component_id'] # noqa: E501
104
+ if 'revision_id' in params:
105
+ path_params['revisionId'] = params['revision_id'] # noqa: E501
106
+
107
+ query_params = []
108
+
109
+ header_params = {}
110
+
111
+ form_params = []
112
+ local_var_files = {}
113
+
114
+ body_params = None
115
+ if 'body' in params:
116
+ body_params = params['body']
117
+ # HTTP header `Accept`
118
+ header_params['Accept'] = self.api_client.select_header_accept(
119
+ ['application/json', 'text/json']) # noqa: E501
120
+
121
+ # HTTP header `Content-Type`
122
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
123
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
124
+
125
+ # Authentication setting
126
+ auth_settings = [] # noqa: E501
127
+
128
+ return self.api_client.call_api(
129
+ '/teamdbapi/v2.0/component/{componentId}/revision/{revisionId}/addcontent', 'POST',
130
+ path_params,
131
+ query_params,
132
+ header_params,
133
+ body=body_params,
134
+ post_params=form_params,
135
+ files=local_var_files,
136
+ response_type=None, # noqa: E501
137
+ auth_settings=auth_settings,
138
+ async_req=params.get('async_req'),
139
+ _return_http_data_only=params.get('_return_http_data_only'),
140
+ _preload_content=params.get('_preload_content', True),
141
+ _request_timeout=params.get('_request_timeout'),
142
+ collection_formats=collection_formats)
143
+
144
+ def create_component_revision(self, part_id, **kwargs): # noqa: E501
145
+ """Create a new component revision for a part identified by its unique identifier. Set ComponentId to 00000000-0000-0000-0000-000000000000 to create a new component. Fullfil ComponentId with an existing value to create a new component revision. RevisionId must be equal to 00000000-0000-0000-0000-000000000000. # noqa: E501
146
+
147
+ This method makes a synchronous HTTP request by default. To make an
148
+ asynchronous HTTP request, please pass async_req=True
149
+ >>> thread = api.create_component_revision(part_id, async_req=True)
150
+ >>> result = thread.get()
151
+
152
+ :param async_req bool
153
+ :param str part_id: The unique identifier of the part. (required)
154
+ :param Component body: The component revision data to create.
155
+ :return: Component
156
+ If the method is called asynchronously,
157
+ returns the request thread.
158
+ """
159
+ kwargs['_return_http_data_only'] = True
160
+ if kwargs.get('async_req'):
161
+ return self.create_component_revision_with_http_info(part_id, **kwargs) # noqa: E501
162
+ else:
163
+ (data) = self.create_component_revision_with_http_info(part_id, **kwargs) # noqa: E501
164
+ return data
165
+
166
+ def create_component_revision_with_http_info(self, part_id, **kwargs): # noqa: E501
167
+ """Create a new component revision for a part identified by its unique identifier. Set ComponentId to 00000000-0000-0000-0000-000000000000 to create a new component. Fullfil ComponentId with an existing value to create a new component revision. RevisionId must be equal to 00000000-0000-0000-0000-000000000000. # noqa: E501
168
+
169
+ This method makes a synchronous HTTP request by default. To make an
170
+ asynchronous HTTP request, please pass async_req=True
171
+ >>> thread = api.create_component_revision_with_http_info(part_id, async_req=True)
172
+ >>> result = thread.get()
173
+
174
+ :param async_req bool
175
+ :param str part_id: The unique identifier of the part. (required)
176
+ :param Component body: The component revision data to create.
177
+ :return: Component
178
+ If the method is called asynchronously,
179
+ returns the request thread.
180
+ """
181
+
182
+ all_params = ['part_id', 'body'] # noqa: E501
183
+ all_params.append('async_req')
184
+ all_params.append('_return_http_data_only')
185
+ all_params.append('_preload_content')
186
+ all_params.append('_request_timeout')
187
+
188
+ params = locals()
189
+ for key, val in six.iteritems(params['kwargs']):
190
+ if key not in all_params:
191
+ raise TypeError(
192
+ "Got an unexpected keyword argument '%s'"
193
+ " to method create_component_revision" % key
194
+ )
195
+ params[key] = val
196
+ del params['kwargs']
197
+ # verify the required parameter 'part_id' is set
198
+ if ('part_id' not in params or
199
+ params['part_id'] is None):
200
+ raise ValueError("Missing the required parameter `part_id` when calling `create_component_revision`") # noqa: E501
201
+
202
+ collection_formats = {}
203
+
204
+ path_params = {}
205
+ if 'part_id' in params:
206
+ path_params['partId'] = params['part_id'] # noqa: E501
207
+
208
+ query_params = []
209
+
210
+ header_params = {}
211
+
212
+ form_params = []
213
+ local_var_files = {}
214
+
215
+ body_params = None
216
+ if 'body' in params:
217
+ body_params = params['body']
218
+ # HTTP header `Accept`
219
+ header_params['Accept'] = self.api_client.select_header_accept(
220
+ ['application/json', 'text/json']) # noqa: E501
221
+
222
+ # HTTP header `Content-Type`
223
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
224
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
225
+
226
+ # Authentication setting
227
+ auth_settings = [] # noqa: E501
228
+
229
+ return self.api_client.call_api(
230
+ '/teamdbapi/v2.0/part/{partId}/component', 'POST',
231
+ path_params,
232
+ query_params,
233
+ header_params,
234
+ body=body_params,
235
+ post_params=form_params,
236
+ files=local_var_files,
237
+ response_type='Component', # noqa: E501
238
+ auth_settings=auth_settings,
239
+ async_req=params.get('async_req'),
240
+ _return_http_data_only=params.get('_return_http_data_only'),
241
+ _preload_content=params.get('_preload_content', True),
242
+ _request_timeout=params.get('_request_timeout'),
243
+ collection_formats=collection_formats)
244
+
245
+ def get_component_revision(self, component_id, revision_id, **kwargs): # noqa: E501
246
+ """Get a component revision from it's unique identifier. # noqa: E501
247
+
248
+ This method makes a synchronous HTTP request by default. To make an
249
+ asynchronous HTTP request, please pass async_req=True
250
+ >>> thread = api.get_component_revision(component_id, revision_id, async_req=True)
251
+ >>> result = thread.get()
252
+
253
+ :param async_req bool
254
+ :param str component_id: The unique identifier of the component. (required)
255
+ :param str revision_id: The unique identifier of the component revision. (required)
256
+ :return: Component
257
+ If the method is called asynchronously,
258
+ returns the request thread.
259
+ """
260
+ kwargs['_return_http_data_only'] = True
261
+ if kwargs.get('async_req'):
262
+ return self.get_component_revision_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
263
+ else:
264
+ (data) = self.get_component_revision_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
265
+ return data
266
+
267
+ def get_component_revision_with_http_info(self, component_id, revision_id, **kwargs): # noqa: E501
268
+ """Get a component revision from it's unique identifier. # noqa: E501
269
+
270
+ This method makes a synchronous HTTP request by default. To make an
271
+ asynchronous HTTP request, please pass async_req=True
272
+ >>> thread = api.get_component_revision_with_http_info(component_id, revision_id, async_req=True)
273
+ >>> result = thread.get()
274
+
275
+ :param async_req bool
276
+ :param str component_id: The unique identifier of the component. (required)
277
+ :param str revision_id: The unique identifier of the component revision. (required)
278
+ :return: Component
279
+ If the method is called asynchronously,
280
+ returns the request thread.
281
+ """
282
+
283
+ all_params = ['component_id', 'revision_id'] # noqa: E501
284
+ all_params.append('async_req')
285
+ all_params.append('_return_http_data_only')
286
+ all_params.append('_preload_content')
287
+ all_params.append('_request_timeout')
288
+
289
+ params = locals()
290
+ for key, val in six.iteritems(params['kwargs']):
291
+ if key not in all_params:
292
+ raise TypeError(
293
+ "Got an unexpected keyword argument '%s'"
294
+ " to method get_component_revision" % key
295
+ )
296
+ params[key] = val
297
+ del params['kwargs']
298
+ # verify the required parameter 'component_id' is set
299
+ if ('component_id' not in params or
300
+ params['component_id'] is None):
301
+ raise ValueError("Missing the required parameter `component_id` when calling `get_component_revision`") # noqa: E501
302
+ # verify the required parameter 'revision_id' is set
303
+ if ('revision_id' not in params or
304
+ params['revision_id'] is None):
305
+ raise ValueError("Missing the required parameter `revision_id` when calling `get_component_revision`") # noqa: E501
306
+
307
+ collection_formats = {}
308
+
309
+ path_params = {}
310
+ if 'component_id' in params:
311
+ path_params['componentId'] = params['component_id'] # noqa: E501
312
+ if 'revision_id' in params:
313
+ path_params['revisionId'] = params['revision_id'] # noqa: E501
314
+
315
+ query_params = []
316
+
317
+ header_params = {}
318
+
319
+ form_params = []
320
+ local_var_files = {}
321
+
322
+ body_params = None
323
+ # HTTP header `Accept`
324
+ header_params['Accept'] = self.api_client.select_header_accept(
325
+ ['application/json', 'text/json']) # noqa: E501
326
+
327
+ # Authentication setting
328
+ auth_settings = [] # noqa: E501
329
+
330
+ return self.api_client.call_api(
331
+ '/teamdbapi/v2.0/component/{componentId}/revision/{revisionId}', 'GET',
332
+ path_params,
333
+ query_params,
334
+ header_params,
335
+ body=body_params,
336
+ post_params=form_params,
337
+ files=local_var_files,
338
+ response_type='Component', # noqa: E501
339
+ auth_settings=auth_settings,
340
+ async_req=params.get('async_req'),
341
+ _return_http_data_only=params.get('_return_http_data_only'),
342
+ _preload_content=params.get('_preload_content', True),
343
+ _request_timeout=params.get('_request_timeout'),
344
+ collection_formats=collection_formats)
345
+
346
+ def get_component_revision_content(self, component_id, revision_id, **kwargs): # noqa: E501
347
+ """Get the content of a component group revision from it's unique identifier. # noqa: E501
348
+
349
+ This method makes a synchronous HTTP request by default. To make an
350
+ asynchronous HTTP request, please pass async_req=True
351
+ >>> thread = api.get_component_revision_content(component_id, revision_id, async_req=True)
352
+ >>> result = thread.get()
353
+
354
+ :param async_req bool
355
+ :param str component_id: The unique identifier of the component group. (required)
356
+ :param str revision_id: The unique identifier of the component group revision. (required)
357
+ :return: list[Component]
358
+ If the method is called asynchronously,
359
+ returns the request thread.
360
+ """
361
+ kwargs['_return_http_data_only'] = True
362
+ if kwargs.get('async_req'):
363
+ return self.get_component_revision_content_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
364
+ else:
365
+ (data) = self.get_component_revision_content_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
366
+ return data
367
+
368
+ def get_component_revision_content_with_http_info(self, component_id, revision_id, **kwargs): # noqa: E501
369
+ """Get the content of a component group revision from it's unique identifier. # noqa: E501
370
+
371
+ This method makes a synchronous HTTP request by default. To make an
372
+ asynchronous HTTP request, please pass async_req=True
373
+ >>> thread = api.get_component_revision_content_with_http_info(component_id, revision_id, async_req=True)
374
+ >>> result = thread.get()
375
+
376
+ :param async_req bool
377
+ :param str component_id: The unique identifier of the component group. (required)
378
+ :param str revision_id: The unique identifier of the component group revision. (required)
379
+ :return: list[Component]
380
+ If the method is called asynchronously,
381
+ returns the request thread.
382
+ """
383
+
384
+ all_params = ['component_id', 'revision_id'] # noqa: E501
385
+ all_params.append('async_req')
386
+ all_params.append('_return_http_data_only')
387
+ all_params.append('_preload_content')
388
+ all_params.append('_request_timeout')
389
+
390
+ params = locals()
391
+ for key, val in six.iteritems(params['kwargs']):
392
+ if key not in all_params:
393
+ raise TypeError(
394
+ "Got an unexpected keyword argument '%s'"
395
+ " to method get_component_revision_content" % key
396
+ )
397
+ params[key] = val
398
+ del params['kwargs']
399
+ # verify the required parameter 'component_id' is set
400
+ if ('component_id' not in params or
401
+ params['component_id'] is None):
402
+ raise ValueError("Missing the required parameter `component_id` when calling `get_component_revision_content`") # noqa: E501
403
+ # verify the required parameter 'revision_id' is set
404
+ if ('revision_id' not in params or
405
+ params['revision_id'] is None):
406
+ raise ValueError("Missing the required parameter `revision_id` when calling `get_component_revision_content`") # noqa: E501
407
+
408
+ collection_formats = {}
409
+
410
+ path_params = {}
411
+ if 'component_id' in params:
412
+ path_params['componentId'] = params['component_id'] # noqa: E501
413
+ if 'revision_id' in params:
414
+ path_params['revisionId'] = params['revision_id'] # noqa: E501
415
+
416
+ query_params = []
417
+
418
+ header_params = {}
419
+
420
+ form_params = []
421
+ local_var_files = {}
422
+
423
+ body_params = None
424
+ # HTTP header `Accept`
425
+ header_params['Accept'] = self.api_client.select_header_accept(
426
+ ['application/json', 'text/json']) # noqa: E501
427
+
428
+ # Authentication setting
429
+ auth_settings = [] # noqa: E501
430
+
431
+ return self.api_client.call_api(
432
+ '/teamdbapi/v2.0/component/{componentId}/revision/{revisionId}/content', 'GET',
433
+ path_params,
434
+ query_params,
435
+ header_params,
436
+ body=body_params,
437
+ post_params=form_params,
438
+ files=local_var_files,
439
+ response_type='list[Component]', # noqa: E501
440
+ auth_settings=auth_settings,
441
+ async_req=params.get('async_req'),
442
+ _return_http_data_only=params.get('_return_http_data_only'),
443
+ _preload_content=params.get('_preload_content', True),
444
+ _request_timeout=params.get('_request_timeout'),
445
+ collection_formats=collection_formats)
446
+
447
+ def get_component_revision_criteria(self, component_id, revision_id, **kwargs): # noqa: E501
448
+ """Get the criteria of a component revision from it's unique identifier. # noqa: E501
449
+
450
+ This method makes a synchronous HTTP request by default. To make an
451
+ asynchronous HTTP request, please pass async_req=True
452
+ >>> thread = api.get_component_revision_criteria(component_id, revision_id, async_req=True)
453
+ >>> result = thread.get()
454
+
455
+ :param async_req bool
456
+ :param str component_id: The unique identifier of the component. (required)
457
+ :param str revision_id: The unique identifier of the component revision. (required)
458
+ :return: list[CriteriaValue]
459
+ If the method is called asynchronously,
460
+ returns the request thread.
461
+ """
462
+ kwargs['_return_http_data_only'] = True
463
+ if kwargs.get('async_req'):
464
+ return self.get_component_revision_criteria_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
465
+ else:
466
+ (data) = self.get_component_revision_criteria_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
467
+ return data
468
+
469
+ def get_component_revision_criteria_with_http_info(self, component_id, revision_id, **kwargs): # noqa: E501
470
+ """Get the criteria of a component revision from it's unique identifier. # noqa: E501
471
+
472
+ This method makes a synchronous HTTP request by default. To make an
473
+ asynchronous HTTP request, please pass async_req=True
474
+ >>> thread = api.get_component_revision_criteria_with_http_info(component_id, revision_id, async_req=True)
475
+ >>> result = thread.get()
476
+
477
+ :param async_req bool
478
+ :param str component_id: The unique identifier of the component. (required)
479
+ :param str revision_id: The unique identifier of the component revision. (required)
480
+ :return: list[CriteriaValue]
481
+ If the method is called asynchronously,
482
+ returns the request thread.
483
+ """
484
+
485
+ all_params = ['component_id', 'revision_id'] # noqa: E501
486
+ all_params.append('async_req')
487
+ all_params.append('_return_http_data_only')
488
+ all_params.append('_preload_content')
489
+ all_params.append('_request_timeout')
490
+
491
+ params = locals()
492
+ for key, val in six.iteritems(params['kwargs']):
493
+ if key not in all_params:
494
+ raise TypeError(
495
+ "Got an unexpected keyword argument '%s'"
496
+ " to method get_component_revision_criteria" % key
497
+ )
498
+ params[key] = val
499
+ del params['kwargs']
500
+ # verify the required parameter 'component_id' is set
501
+ if ('component_id' not in params or
502
+ params['component_id'] is None):
503
+ raise ValueError("Missing the required parameter `component_id` when calling `get_component_revision_criteria`") # noqa: E501
504
+ # verify the required parameter 'revision_id' is set
505
+ if ('revision_id' not in params or
506
+ params['revision_id'] is None):
507
+ raise ValueError("Missing the required parameter `revision_id` when calling `get_component_revision_criteria`") # noqa: E501
508
+
509
+ collection_formats = {}
510
+
511
+ path_params = {}
512
+ if 'component_id' in params:
513
+ path_params['componentId'] = params['component_id'] # noqa: E501
514
+ if 'revision_id' in params:
515
+ path_params['revisionId'] = params['revision_id'] # noqa: E501
516
+
517
+ query_params = []
518
+
519
+ header_params = {}
520
+
521
+ form_params = []
522
+ local_var_files = {}
523
+
524
+ body_params = None
525
+ # HTTP header `Accept`
526
+ header_params['Accept'] = self.api_client.select_header_accept(
527
+ ['application/json', 'text/json']) # noqa: E501
528
+
529
+ # Authentication setting
530
+ auth_settings = [] # noqa: E501
531
+
532
+ return self.api_client.call_api(
533
+ '/teamdbapi/v2.0/component/{componentId}/revision/{revisionId}/criteria', 'GET',
534
+ path_params,
535
+ query_params,
536
+ header_params,
537
+ body=body_params,
538
+ post_params=form_params,
539
+ files=local_var_files,
540
+ response_type='list[CriteriaValue]', # noqa: E501
541
+ auth_settings=auth_settings,
542
+ async_req=params.get('async_req'),
543
+ _return_http_data_only=params.get('_return_http_data_only'),
544
+ _preload_content=params.get('_preload_content', True),
545
+ _request_timeout=params.get('_request_timeout'),
546
+ collection_formats=collection_formats)
547
+
548
+ def get_component_revisions(self, component_id, **kwargs): # noqa: E501
549
+ """Get all revisions of a component from it's unique identifier. # noqa: E501
550
+
551
+ This method makes a synchronous HTTP request by default. To make an
552
+ asynchronous HTTP request, please pass async_req=True
553
+ >>> thread = api.get_component_revisions(component_id, async_req=True)
554
+ >>> result = thread.get()
555
+
556
+ :param async_req bool
557
+ :param str component_id: The unique identifier of the component. (required)
558
+ :return: list[Component]
559
+ If the method is called asynchronously,
560
+ returns the request thread.
561
+ """
562
+ kwargs['_return_http_data_only'] = True
563
+ if kwargs.get('async_req'):
564
+ return self.get_component_revisions_with_http_info(component_id, **kwargs) # noqa: E501
565
+ else:
566
+ (data) = self.get_component_revisions_with_http_info(component_id, **kwargs) # noqa: E501
567
+ return data
568
+
569
+ def get_component_revisions_with_http_info(self, component_id, **kwargs): # noqa: E501
570
+ """Get all revisions of a component from it's unique identifier. # noqa: E501
571
+
572
+ This method makes a synchronous HTTP request by default. To make an
573
+ asynchronous HTTP request, please pass async_req=True
574
+ >>> thread = api.get_component_revisions_with_http_info(component_id, async_req=True)
575
+ >>> result = thread.get()
576
+
577
+ :param async_req bool
578
+ :param str component_id: The unique identifier of the component. (required)
579
+ :return: list[Component]
580
+ If the method is called asynchronously,
581
+ returns the request thread.
582
+ """
583
+
584
+ all_params = ['component_id'] # noqa: E501
585
+ all_params.append('async_req')
586
+ all_params.append('_return_http_data_only')
587
+ all_params.append('_preload_content')
588
+ all_params.append('_request_timeout')
589
+
590
+ params = locals()
591
+ for key, val in six.iteritems(params['kwargs']):
592
+ if key not in all_params:
593
+ raise TypeError(
594
+ "Got an unexpected keyword argument '%s'"
595
+ " to method get_component_revisions" % key
596
+ )
597
+ params[key] = val
598
+ del params['kwargs']
599
+ # verify the required parameter 'component_id' is set
600
+ if ('component_id' not in params or
601
+ params['component_id'] is None):
602
+ raise ValueError("Missing the required parameter `component_id` when calling `get_component_revisions`") # noqa: E501
603
+
604
+ collection_formats = {}
605
+
606
+ path_params = {}
607
+ if 'component_id' in params:
608
+ path_params['componentId'] = params['component_id'] # noqa: E501
609
+
610
+ query_params = []
611
+
612
+ header_params = {}
613
+
614
+ form_params = []
615
+ local_var_files = {}
616
+
617
+ body_params = None
618
+ # HTTP header `Accept`
619
+ header_params['Accept'] = self.api_client.select_header_accept(
620
+ ['application/json', 'text/json']) # noqa: E501
621
+
622
+ # Authentication setting
623
+ auth_settings = [] # noqa: E501
624
+
625
+ return self.api_client.call_api(
626
+ '/teamdbapi/v2.0/component/{componentId}/revisions', 'GET',
627
+ path_params,
628
+ query_params,
629
+ header_params,
630
+ body=body_params,
631
+ post_params=form_params,
632
+ files=local_var_files,
633
+ response_type='list[Component]', # noqa: E501
634
+ auth_settings=auth_settings,
635
+ async_req=params.get('async_req'),
636
+ _return_http_data_only=params.get('_return_http_data_only'),
637
+ _preload_content=params.get('_preload_content', True),
638
+ _request_timeout=params.get('_request_timeout'),
639
+ collection_formats=collection_formats)
640
+
641
+ def get_components(self, part_id, **kwargs): # noqa: E501
642
+ """Get all component from it's part unique identifier. # noqa: E501
643
+
644
+ This method makes a synchronous HTTP request by default. To make an
645
+ asynchronous HTTP request, please pass async_req=True
646
+ >>> thread = api.get_components(part_id, async_req=True)
647
+ >>> result = thread.get()
648
+
649
+ :param async_req bool
650
+ :param str part_id: The unique identifier of the part. (required)
651
+ :return: list[Component]
652
+ If the method is called asynchronously,
653
+ returns the request thread.
654
+ """
655
+ kwargs['_return_http_data_only'] = True
656
+ if kwargs.get('async_req'):
657
+ return self.get_components_with_http_info(part_id, **kwargs) # noqa: E501
658
+ else:
659
+ (data) = self.get_components_with_http_info(part_id, **kwargs) # noqa: E501
660
+ return data
661
+
662
+ def get_components_with_http_info(self, part_id, **kwargs): # noqa: E501
663
+ """Get all component from it's part unique identifier. # noqa: E501
664
+
665
+ This method makes a synchronous HTTP request by default. To make an
666
+ asynchronous HTTP request, please pass async_req=True
667
+ >>> thread = api.get_components_with_http_info(part_id, async_req=True)
668
+ >>> result = thread.get()
669
+
670
+ :param async_req bool
671
+ :param str part_id: The unique identifier of the part. (required)
672
+ :return: list[Component]
673
+ If the method is called asynchronously,
674
+ returns the request thread.
675
+ """
676
+
677
+ all_params = ['part_id'] # noqa: E501
678
+ all_params.append('async_req')
679
+ all_params.append('_return_http_data_only')
680
+ all_params.append('_preload_content')
681
+ all_params.append('_request_timeout')
682
+
683
+ params = locals()
684
+ for key, val in six.iteritems(params['kwargs']):
685
+ if key not in all_params:
686
+ raise TypeError(
687
+ "Got an unexpected keyword argument '%s'"
688
+ " to method get_components" % key
689
+ )
690
+ params[key] = val
691
+ del params['kwargs']
692
+ # verify the required parameter 'part_id' is set
693
+ if ('part_id' not in params or
694
+ params['part_id'] is None):
695
+ raise ValueError("Missing the required parameter `part_id` when calling `get_components`") # noqa: E501
696
+
697
+ collection_formats = {}
698
+
699
+ path_params = {}
700
+ if 'part_id' in params:
701
+ path_params['partId'] = params['part_id'] # noqa: E501
702
+
703
+ query_params = []
704
+
705
+ header_params = {}
706
+
707
+ form_params = []
708
+ local_var_files = {}
709
+
710
+ body_params = None
711
+ # HTTP header `Accept`
712
+ header_params['Accept'] = self.api_client.select_header_accept(
713
+ ['application/json', 'text/json']) # noqa: E501
714
+
715
+ # Authentication setting
716
+ auth_settings = [] # noqa: E501
717
+
718
+ return self.api_client.call_api(
719
+ '/teamdbapi/v2.0/part/{partId}/components', 'GET',
720
+ path_params,
721
+ query_params,
722
+ header_params,
723
+ body=body_params,
724
+ post_params=form_params,
725
+ files=local_var_files,
726
+ response_type='list[Component]', # noqa: E501
727
+ auth_settings=auth_settings,
728
+ async_req=params.get('async_req'),
729
+ _return_http_data_only=params.get('_return_http_data_only'),
730
+ _preload_content=params.get('_preload_content', True),
731
+ _request_timeout=params.get('_request_timeout'),
732
+ collection_formats=collection_formats)
733
+
734
+ def remove_components_from_component_group_revision_content(self, component_id, revision_id, **kwargs): # noqa: E501
735
+ """[Command] Remove a list of component from the content of a component group revision from it's unique identifiers. # noqa: E501
736
+
737
+ This method makes a synchronous HTTP request by default. To make an
738
+ asynchronous HTTP request, please pass async_req=True
739
+ >>> thread = api.remove_components_from_component_group_revision_content(component_id, revision_id, async_req=True)
740
+ >>> result = thread.get()
741
+
742
+ :param async_req bool
743
+ :param str component_id: The unique identifier of the component group. (required)
744
+ :param str revision_id: The unique identifier of the component group revision. (required)
745
+ :param list[str] body: The revisionId list of components to be removed from the content of the component revision group
746
+ :return: None
747
+ If the method is called asynchronously,
748
+ returns the request thread.
749
+ """
750
+ kwargs['_return_http_data_only'] = True
751
+ if kwargs.get('async_req'):
752
+ return self.remove_components_from_component_group_revision_content_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
753
+ else:
754
+ (data) = self.remove_components_from_component_group_revision_content_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
755
+ return data
756
+
757
+ def remove_components_from_component_group_revision_content_with_http_info(self, component_id, revision_id, **kwargs): # noqa: E501
758
+ """[Command] Remove a list of component from the content of a component group revision from it's unique identifiers. # noqa: E501
759
+
760
+ This method makes a synchronous HTTP request by default. To make an
761
+ asynchronous HTTP request, please pass async_req=True
762
+ >>> thread = api.remove_components_from_component_group_revision_content_with_http_info(component_id, revision_id, async_req=True)
763
+ >>> result = thread.get()
764
+
765
+ :param async_req bool
766
+ :param str component_id: The unique identifier of the component group. (required)
767
+ :param str revision_id: The unique identifier of the component group revision. (required)
768
+ :param list[str] body: The revisionId list of components to be removed from the content of the component revision group
769
+ :return: None
770
+ If the method is called asynchronously,
771
+ returns the request thread.
772
+ """
773
+
774
+ all_params = ['component_id', 'revision_id', 'body'] # noqa: E501
775
+ all_params.append('async_req')
776
+ all_params.append('_return_http_data_only')
777
+ all_params.append('_preload_content')
778
+ all_params.append('_request_timeout')
779
+
780
+ params = locals()
781
+ for key, val in six.iteritems(params['kwargs']):
782
+ if key not in all_params:
783
+ raise TypeError(
784
+ "Got an unexpected keyword argument '%s'"
785
+ " to method remove_components_from_component_group_revision_content" % key
786
+ )
787
+ params[key] = val
788
+ del params['kwargs']
789
+ # verify the required parameter 'component_id' is set
790
+ if ('component_id' not in params or
791
+ params['component_id'] is None):
792
+ raise ValueError("Missing the required parameter `component_id` when calling `remove_components_from_component_group_revision_content`") # noqa: E501
793
+ # verify the required parameter 'revision_id' is set
794
+ if ('revision_id' not in params or
795
+ params['revision_id'] is None):
796
+ raise ValueError("Missing the required parameter `revision_id` when calling `remove_components_from_component_group_revision_content`") # noqa: E501
797
+
798
+ collection_formats = {}
799
+
800
+ path_params = {}
801
+ if 'component_id' in params:
802
+ path_params['componentId'] = params['component_id'] # noqa: E501
803
+ if 'revision_id' in params:
804
+ path_params['revisionId'] = params['revision_id'] # noqa: E501
805
+
806
+ query_params = []
807
+
808
+ header_params = {}
809
+
810
+ form_params = []
811
+ local_var_files = {}
812
+
813
+ body_params = None
814
+ if 'body' in params:
815
+ body_params = params['body']
816
+ # HTTP header `Accept`
817
+ header_params['Accept'] = self.api_client.select_header_accept(
818
+ ['application/json', 'text/json']) # noqa: E501
819
+
820
+ # HTTP header `Content-Type`
821
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
822
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
823
+
824
+ # Authentication setting
825
+ auth_settings = [] # noqa: E501
826
+
827
+ return self.api_client.call_api(
828
+ '/teamdbapi/v2.0/component/{componentId}/revision/{revisionId}/removecontent', 'POST',
829
+ path_params,
830
+ query_params,
831
+ header_params,
832
+ body=body_params,
833
+ post_params=form_params,
834
+ files=local_var_files,
835
+ response_type=None, # noqa: E501
836
+ auth_settings=auth_settings,
837
+ async_req=params.get('async_req'),
838
+ _return_http_data_only=params.get('_return_http_data_only'),
839
+ _preload_content=params.get('_preload_content', True),
840
+ _request_timeout=params.get('_request_timeout'),
841
+ collection_formats=collection_formats)
842
+
843
+ def update_component_revision(self, component_id, revision_id, **kwargs): # noqa: E501
844
+ """Update a component revision from it's unique identifiers. # noqa: E501
845
+
846
+ This method makes a synchronous HTTP request by default. To make an
847
+ asynchronous HTTP request, please pass async_req=True
848
+ >>> thread = api.update_component_revision(component_id, revision_id, async_req=True)
849
+ >>> result = thread.get()
850
+
851
+ :param async_req bool
852
+ :param str component_id: The unique identifier of the component. (required)
853
+ :param str revision_id: The unique identifier of the component revision. (required)
854
+ :param Component body: The component revision data to update.
855
+ :param bool apply_status_changes_to_all_sub_components: Indicates whether to cascade update the component status in subcomponents.
856
+ :return: Component
857
+ If the method is called asynchronously,
858
+ returns the request thread.
859
+ """
860
+ kwargs['_return_http_data_only'] = True
861
+ if kwargs.get('async_req'):
862
+ return self.update_component_revision_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
863
+ else:
864
+ (data) = self.update_component_revision_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
865
+ return data
866
+
867
+ def update_component_revision_with_http_info(self, component_id, revision_id, **kwargs): # noqa: E501
868
+ """Update a component revision from it's unique identifiers. # noqa: E501
869
+
870
+ This method makes a synchronous HTTP request by default. To make an
871
+ asynchronous HTTP request, please pass async_req=True
872
+ >>> thread = api.update_component_revision_with_http_info(component_id, revision_id, async_req=True)
873
+ >>> result = thread.get()
874
+
875
+ :param async_req bool
876
+ :param str component_id: The unique identifier of the component. (required)
877
+ :param str revision_id: The unique identifier of the component revision. (required)
878
+ :param Component body: The component revision data to update.
879
+ :param bool apply_status_changes_to_all_sub_components: Indicates whether to cascade update the component status in subcomponents.
880
+ :return: Component
881
+ If the method is called asynchronously,
882
+ returns the request thread.
883
+ """
884
+
885
+ all_params = ['component_id', 'revision_id', 'body', 'apply_status_changes_to_all_sub_components'] # noqa: E501
886
+ all_params.append('async_req')
887
+ all_params.append('_return_http_data_only')
888
+ all_params.append('_preload_content')
889
+ all_params.append('_request_timeout')
890
+
891
+ params = locals()
892
+ for key, val in six.iteritems(params['kwargs']):
893
+ if key not in all_params:
894
+ raise TypeError(
895
+ "Got an unexpected keyword argument '%s'"
896
+ " to method update_component_revision" % key
897
+ )
898
+ params[key] = val
899
+ del params['kwargs']
900
+ # verify the required parameter 'component_id' is set
901
+ if ('component_id' not in params or
902
+ params['component_id'] is None):
903
+ raise ValueError("Missing the required parameter `component_id` when calling `update_component_revision`") # noqa: E501
904
+ # verify the required parameter 'revision_id' is set
905
+ if ('revision_id' not in params or
906
+ params['revision_id'] is None):
907
+ raise ValueError("Missing the required parameter `revision_id` when calling `update_component_revision`") # noqa: E501
908
+
909
+ collection_formats = {}
910
+
911
+ path_params = {}
912
+ if 'component_id' in params:
913
+ path_params['componentId'] = params['component_id'] # noqa: E501
914
+ if 'revision_id' in params:
915
+ path_params['revisionId'] = params['revision_id'] # noqa: E501
916
+
917
+ query_params = []
918
+ if 'apply_status_changes_to_all_sub_components' in params:
919
+ query_params.append(('applyStatusChangesToAllSubComponents', params['apply_status_changes_to_all_sub_components'])) # noqa: E501
920
+
921
+ header_params = {}
922
+
923
+ form_params = []
924
+ local_var_files = {}
925
+
926
+ body_params = None
927
+ if 'body' in params:
928
+ body_params = params['body']
929
+ # HTTP header `Accept`
930
+ header_params['Accept'] = self.api_client.select_header_accept(
931
+ ['application/json', 'text/json']) # noqa: E501
932
+
933
+ # HTTP header `Content-Type`
934
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
935
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
936
+
937
+ # Authentication setting
938
+ auth_settings = [] # noqa: E501
939
+
940
+ return self.api_client.call_api(
941
+ '/teamdbapi/v2.0/component/{componentId}/revision/{revisionId}', 'PUT',
942
+ path_params,
943
+ query_params,
944
+ header_params,
945
+ body=body_params,
946
+ post_params=form_params,
947
+ files=local_var_files,
948
+ response_type='Component', # noqa: E501
949
+ auth_settings=auth_settings,
950
+ async_req=params.get('async_req'),
951
+ _return_http_data_only=params.get('_return_http_data_only'),
952
+ _preload_content=params.get('_preload_content', True),
953
+ _request_timeout=params.get('_request_timeout'),
954
+ collection_formats=collection_formats)