teamdbapi 3.0.0__py3-none-any.whl → 3.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
teamdbapi/api/part_api.py CHANGED
@@ -32,6 +32,204 @@ class PartApi(object):
32
32
  api_client = ApiClient()
33
33
  self.api_client = api_client
34
34
 
35
+ def add_car_parameter_to_part(self, body, **kwargs): # noqa: E501
36
+ """Add a car parameter to a part. This will create an association between a lifing part and car parameter. You can specify a car parameter redirection for a part group. # 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_car_parameter_to_part(body, async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :param AddPartCarParameterArg body: The association beetween a part and a car parameter. (required)
45
+ :return: PartCarParameters
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.add_car_parameter_to_part_with_http_info(body, **kwargs) # noqa: E501
52
+ else:
53
+ (data) = self.add_car_parameter_to_part_with_http_info(body, **kwargs) # noqa: E501
54
+ return data
55
+
56
+ def add_car_parameter_to_part_with_http_info(self, body, **kwargs): # noqa: E501
57
+ """Add a car parameter to a part. This will create an association between a lifing part and car parameter. You can specify a car parameter redirection for a part group. # 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.add_car_parameter_to_part_with_http_info(body, async_req=True)
62
+ >>> result = thread.get()
63
+
64
+ :param async_req bool
65
+ :param AddPartCarParameterArg body: The association beetween a part and a car parameter. (required)
66
+ :return: PartCarParameters
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 add_car_parameter_to_part" % 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 `add_car_parameter_to_part`") # 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/part/carparameter', '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='PartCarParameters', # noqa: E501
125
+ auth_settings=auth_settings,
126
+ async_req=params.get('async_req'),
127
+ _return_http_data_only=params.get('_return_http_data_only'),
128
+ _preload_content=params.get('_preload_content', True),
129
+ _request_timeout=params.get('_request_timeout'),
130
+ collection_formats=collection_formats)
131
+
132
+ def delete_part_car_parameter(self, part_id, parameter_id, **kwargs): # noqa: E501
133
+ """Delete an existing assocation between a part and a car parameter. # noqa: E501
134
+
135
+ This method makes a synchronous HTTP request by default. To make an
136
+ asynchronous HTTP request, please pass async_req=True
137
+ >>> thread = api.delete_part_car_parameter(part_id, parameter_id, async_req=True)
138
+ >>> result = thread.get()
139
+
140
+ :param async_req bool
141
+ :param str part_id: The part unique identifier of the association to delete (required)
142
+ :param str parameter_id: The car parameter unique identifier of the association to delete (required)
143
+ :return: None
144
+ If the method is called asynchronously,
145
+ returns the request thread.
146
+ """
147
+ kwargs['_return_http_data_only'] = True
148
+ if kwargs.get('async_req'):
149
+ return self.delete_part_car_parameter_with_http_info(part_id, parameter_id, **kwargs) # noqa: E501
150
+ else:
151
+ (data) = self.delete_part_car_parameter_with_http_info(part_id, parameter_id, **kwargs) # noqa: E501
152
+ return data
153
+
154
+ def delete_part_car_parameter_with_http_info(self, part_id, parameter_id, **kwargs): # noqa: E501
155
+ """Delete an existing assocation between a part and a car parameter. # noqa: E501
156
+
157
+ This method makes a synchronous HTTP request by default. To make an
158
+ asynchronous HTTP request, please pass async_req=True
159
+ >>> thread = api.delete_part_car_parameter_with_http_info(part_id, parameter_id, async_req=True)
160
+ >>> result = thread.get()
161
+
162
+ :param async_req bool
163
+ :param str part_id: The part unique identifier of the association to delete (required)
164
+ :param str parameter_id: The car parameter unique identifier of the association to delete (required)
165
+ :return: None
166
+ If the method is called asynchronously,
167
+ returns the request thread.
168
+ """
169
+
170
+ all_params = ['part_id', 'parameter_id'] # noqa: E501
171
+ all_params.append('async_req')
172
+ all_params.append('_return_http_data_only')
173
+ all_params.append('_preload_content')
174
+ all_params.append('_request_timeout')
175
+
176
+ params = locals()
177
+ for key, val in six.iteritems(params['kwargs']):
178
+ if key not in all_params:
179
+ raise TypeError(
180
+ "Got an unexpected keyword argument '%s'"
181
+ " to method delete_part_car_parameter" % key
182
+ )
183
+ params[key] = val
184
+ del params['kwargs']
185
+ # verify the required parameter 'part_id' is set
186
+ if ('part_id' not in params or
187
+ params['part_id'] is None):
188
+ raise ValueError("Missing the required parameter `part_id` when calling `delete_part_car_parameter`") # noqa: E501
189
+ # verify the required parameter 'parameter_id' is set
190
+ if ('parameter_id' not in params or
191
+ params['parameter_id'] is None):
192
+ raise ValueError("Missing the required parameter `parameter_id` when calling `delete_part_car_parameter`") # noqa: E501
193
+
194
+ collection_formats = {}
195
+
196
+ path_params = {}
197
+ if 'part_id' in params:
198
+ path_params['partId'] = params['part_id'] # noqa: E501
199
+ if 'parameter_id' in params:
200
+ path_params['parameterId'] = params['parameter_id'] # noqa: E501
201
+
202
+ query_params = []
203
+
204
+ header_params = {}
205
+
206
+ form_params = []
207
+ local_var_files = {}
208
+
209
+ body_params = None
210
+ # HTTP header `Accept`
211
+ header_params['Accept'] = self.api_client.select_header_accept(
212
+ ['application/json', 'text/json']) # noqa: E501
213
+
214
+ # Authentication setting
215
+ auth_settings = [] # noqa: E501
216
+
217
+ return self.api_client.call_api(
218
+ '/teamdbapi/v2.0/part/{partId}/carParameter/{parameterId}', 'DELETE',
219
+ path_params,
220
+ query_params,
221
+ header_params,
222
+ body=body_params,
223
+ post_params=form_params,
224
+ files=local_var_files,
225
+ response_type=None, # noqa: E501
226
+ auth_settings=auth_settings,
227
+ async_req=params.get('async_req'),
228
+ _return_http_data_only=params.get('_return_http_data_only'),
229
+ _preload_content=params.get('_preload_content', True),
230
+ _request_timeout=params.get('_request_timeout'),
231
+ collection_formats=collection_formats)
232
+
35
233
  def get_part(self, part_id, **kwargs): # noqa: E501
36
234
  """Get a part from it's unique identifier. # noqa: E501
37
235
 
@@ -125,6 +323,192 @@ class PartApi(object):
125
323
  _request_timeout=params.get('_request_timeout'),
126
324
  collection_formats=collection_formats)
127
325
 
326
+ def get_part_by_part_number(self, part_number, **kwargs): # noqa: E501
327
+ """Get a part from it's part number. # noqa: E501
328
+
329
+ This method makes a synchronous HTTP request by default. To make an
330
+ asynchronous HTTP request, please pass async_req=True
331
+ >>> thread = api.get_part_by_part_number(part_number, async_req=True)
332
+ >>> result = thread.get()
333
+
334
+ :param async_req bool
335
+ :param str part_number: The part number of the part to retrieve. (required)
336
+ :return: Part
337
+ If the method is called asynchronously,
338
+ returns the request thread.
339
+ """
340
+ kwargs['_return_http_data_only'] = True
341
+ if kwargs.get('async_req'):
342
+ return self.get_part_by_part_number_with_http_info(part_number, **kwargs) # noqa: E501
343
+ else:
344
+ (data) = self.get_part_by_part_number_with_http_info(part_number, **kwargs) # noqa: E501
345
+ return data
346
+
347
+ def get_part_by_part_number_with_http_info(self, part_number, **kwargs): # noqa: E501
348
+ """Get a part from it's part number. # noqa: E501
349
+
350
+ This method makes a synchronous HTTP request by default. To make an
351
+ asynchronous HTTP request, please pass async_req=True
352
+ >>> thread = api.get_part_by_part_number_with_http_info(part_number, async_req=True)
353
+ >>> result = thread.get()
354
+
355
+ :param async_req bool
356
+ :param str part_number: The part number of the part to retrieve. (required)
357
+ :return: Part
358
+ If the method is called asynchronously,
359
+ returns the request thread.
360
+ """
361
+
362
+ all_params = ['part_number'] # noqa: E501
363
+ all_params.append('async_req')
364
+ all_params.append('_return_http_data_only')
365
+ all_params.append('_preload_content')
366
+ all_params.append('_request_timeout')
367
+
368
+ params = locals()
369
+ for key, val in six.iteritems(params['kwargs']):
370
+ if key not in all_params:
371
+ raise TypeError(
372
+ "Got an unexpected keyword argument '%s'"
373
+ " to method get_part_by_part_number" % key
374
+ )
375
+ params[key] = val
376
+ del params['kwargs']
377
+ # verify the required parameter 'part_number' is set
378
+ if ('part_number' not in params or
379
+ params['part_number'] is None):
380
+ raise ValueError("Missing the required parameter `part_number` when calling `get_part_by_part_number`") # noqa: E501
381
+
382
+ collection_formats = {}
383
+
384
+ path_params = {}
385
+ if 'part_number' in params:
386
+ path_params['partNumber'] = params['part_number'] # noqa: E501
387
+
388
+ query_params = []
389
+
390
+ header_params = {}
391
+
392
+ form_params = []
393
+ local_var_files = {}
394
+
395
+ body_params = None
396
+ # HTTP header `Accept`
397
+ header_params['Accept'] = self.api_client.select_header_accept(
398
+ ['application/json', 'text/json']) # noqa: E501
399
+
400
+ # Authentication setting
401
+ auth_settings = [] # noqa: E501
402
+
403
+ return self.api_client.call_api(
404
+ '/teamdbapi/v2.0/partnumber/{partNumber}/part', 'GET',
405
+ path_params,
406
+ query_params,
407
+ header_params,
408
+ body=body_params,
409
+ post_params=form_params,
410
+ files=local_var_files,
411
+ response_type='Part', # noqa: E501
412
+ auth_settings=auth_settings,
413
+ async_req=params.get('async_req'),
414
+ _return_http_data_only=params.get('_return_http_data_only'),
415
+ _preload_content=params.get('_preload_content', True),
416
+ _request_timeout=params.get('_request_timeout'),
417
+ collection_formats=collection_formats)
418
+
419
+ def get_part_car_parameters(self, part_id, **kwargs): # noqa: E501
420
+ """Get the car parameters associated with the part # noqa: E501
421
+
422
+ This method makes a synchronous HTTP request by default. To make an
423
+ asynchronous HTTP request, please pass async_req=True
424
+ >>> thread = api.get_part_car_parameters(part_id, async_req=True)
425
+ >>> result = thread.get()
426
+
427
+ :param async_req bool
428
+ :param str part_id: The unique identifier of the part. (required)
429
+ :return: list[PartCarParameters]
430
+ If the method is called asynchronously,
431
+ returns the request thread.
432
+ """
433
+ kwargs['_return_http_data_only'] = True
434
+ if kwargs.get('async_req'):
435
+ return self.get_part_car_parameters_with_http_info(part_id, **kwargs) # noqa: E501
436
+ else:
437
+ (data) = self.get_part_car_parameters_with_http_info(part_id, **kwargs) # noqa: E501
438
+ return data
439
+
440
+ def get_part_car_parameters_with_http_info(self, part_id, **kwargs): # noqa: E501
441
+ """Get the car parameters associated with the part # noqa: E501
442
+
443
+ This method makes a synchronous HTTP request by default. To make an
444
+ asynchronous HTTP request, please pass async_req=True
445
+ >>> thread = api.get_part_car_parameters_with_http_info(part_id, async_req=True)
446
+ >>> result = thread.get()
447
+
448
+ :param async_req bool
449
+ :param str part_id: The unique identifier of the part. (required)
450
+ :return: list[PartCarParameters]
451
+ If the method is called asynchronously,
452
+ returns the request thread.
453
+ """
454
+
455
+ all_params = ['part_id'] # noqa: E501
456
+ all_params.append('async_req')
457
+ all_params.append('_return_http_data_only')
458
+ all_params.append('_preload_content')
459
+ all_params.append('_request_timeout')
460
+
461
+ params = locals()
462
+ for key, val in six.iteritems(params['kwargs']):
463
+ if key not in all_params:
464
+ raise TypeError(
465
+ "Got an unexpected keyword argument '%s'"
466
+ " to method get_part_car_parameters" % key
467
+ )
468
+ params[key] = val
469
+ del params['kwargs']
470
+ # verify the required parameter 'part_id' is set
471
+ if ('part_id' not in params or
472
+ params['part_id'] is None):
473
+ raise ValueError("Missing the required parameter `part_id` when calling `get_part_car_parameters`") # noqa: E501
474
+
475
+ collection_formats = {}
476
+
477
+ path_params = {}
478
+ if 'part_id' in params:
479
+ path_params['partId'] = params['part_id'] # noqa: E501
480
+
481
+ query_params = []
482
+
483
+ header_params = {}
484
+
485
+ form_params = []
486
+ local_var_files = {}
487
+
488
+ body_params = None
489
+ # HTTP header `Accept`
490
+ header_params['Accept'] = self.api_client.select_header_accept(
491
+ ['application/json', 'text/json']) # noqa: E501
492
+
493
+ # Authentication setting
494
+ auth_settings = [] # noqa: E501
495
+
496
+ return self.api_client.call_api(
497
+ '/teamdbapi/v2.0/part/{partId}/carparameters', 'GET',
498
+ path_params,
499
+ query_params,
500
+ header_params,
501
+ body=body_params,
502
+ post_params=form_params,
503
+ files=local_var_files,
504
+ response_type='list[PartCarParameters]', # noqa: E501
505
+ auth_settings=auth_settings,
506
+ async_req=params.get('async_req'),
507
+ _return_http_data_only=params.get('_return_http_data_only'),
508
+ _preload_content=params.get('_preload_content', True),
509
+ _request_timeout=params.get('_request_timeout'),
510
+ collection_formats=collection_formats)
511
+
128
512
  def get_part_content(self, part_id, **kwargs): # noqa: E501
129
513
  """Get the content of a part group from it's unique identifier. # noqa: E501
130
514
 
@@ -302,3 +686,100 @@ class PartApi(object):
302
686
  _preload_content=params.get('_preload_content', True),
303
687
  _request_timeout=params.get('_request_timeout'),
304
688
  collection_formats=collection_formats)
689
+
690
+ def update_part_car_parameter(self, body, **kwargs): # noqa: E501
691
+ """Update an existing assocation between a part and a car parameter. You can specify a car parameter redirection for a part group. # noqa: E501
692
+
693
+ This method makes a synchronous HTTP request by default. To make an
694
+ asynchronous HTTP request, please pass async_req=True
695
+ >>> thread = api.update_part_car_parameter(body, async_req=True)
696
+ >>> result = thread.get()
697
+
698
+ :param async_req bool
699
+ :param AddPartCarParameterArg body: The association beetween a part and a car parameter. (required)
700
+ :return: PartCarParameters
701
+ If the method is called asynchronously,
702
+ returns the request thread.
703
+ """
704
+ kwargs['_return_http_data_only'] = True
705
+ if kwargs.get('async_req'):
706
+ return self.update_part_car_parameter_with_http_info(body, **kwargs) # noqa: E501
707
+ else:
708
+ (data) = self.update_part_car_parameter_with_http_info(body, **kwargs) # noqa: E501
709
+ return data
710
+
711
+ def update_part_car_parameter_with_http_info(self, body, **kwargs): # noqa: E501
712
+ """Update an existing assocation between a part and a car parameter. You can specify a car parameter redirection for a part group. # noqa: E501
713
+
714
+ This method makes a synchronous HTTP request by default. To make an
715
+ asynchronous HTTP request, please pass async_req=True
716
+ >>> thread = api.update_part_car_parameter_with_http_info(body, async_req=True)
717
+ >>> result = thread.get()
718
+
719
+ :param async_req bool
720
+ :param AddPartCarParameterArg body: The association beetween a part and a car parameter. (required)
721
+ :return: PartCarParameters
722
+ If the method is called asynchronously,
723
+ returns the request thread.
724
+ """
725
+
726
+ all_params = ['body'] # noqa: E501
727
+ all_params.append('async_req')
728
+ all_params.append('_return_http_data_only')
729
+ all_params.append('_preload_content')
730
+ all_params.append('_request_timeout')
731
+
732
+ params = locals()
733
+ for key, val in six.iteritems(params['kwargs']):
734
+ if key not in all_params:
735
+ raise TypeError(
736
+ "Got an unexpected keyword argument '%s'"
737
+ " to method update_part_car_parameter" % key
738
+ )
739
+ params[key] = val
740
+ del params['kwargs']
741
+ # verify the required parameter 'body' is set
742
+ if ('body' not in params or
743
+ params['body'] is None):
744
+ raise ValueError("Missing the required parameter `body` when calling `update_part_car_parameter`") # noqa: E501
745
+
746
+ collection_formats = {}
747
+
748
+ path_params = {}
749
+
750
+ query_params = []
751
+
752
+ header_params = {}
753
+
754
+ form_params = []
755
+ local_var_files = {}
756
+
757
+ body_params = None
758
+ if 'body' in params:
759
+ body_params = params['body']
760
+ # HTTP header `Accept`
761
+ header_params['Accept'] = self.api_client.select_header_accept(
762
+ ['application/json', 'text/json']) # noqa: E501
763
+
764
+ # HTTP header `Content-Type`
765
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
766
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
767
+
768
+ # Authentication setting
769
+ auth_settings = [] # noqa: E501
770
+
771
+ return self.api_client.call_api(
772
+ '/teamdbapi/v2.0/part/carParameter', 'PUT',
773
+ path_params,
774
+ query_params,
775
+ header_params,
776
+ body=body_params,
777
+ post_params=form_params,
778
+ files=local_var_files,
779
+ response_type='PartCarParameters', # noqa: E501
780
+ auth_settings=auth_settings,
781
+ async_req=params.get('async_req'),
782
+ _return_http_data_only=params.get('_return_http_data_only'),
783
+ _preload_content=params.get('_preload_content', True),
784
+ _request_timeout=params.get('_request_timeout'),
785
+ collection_formats=collection_formats)
@@ -151,7 +151,7 @@ class RevisionApi(object):
151
151
  :param RevisionValue body: The revision value you want to create (required)
152
152
  :param str part_number: The lifing component's part number (required)
153
153
  :param str serial_number: The lifing component's serial number (required)
154
- :param str parameter_path: The parameter path identifying the parameter. You have to double de path separator. For instance: system//sensor/Oil (required)
154
+ :param str parameter_path: The parameter path identifying the parameter. (required)
155
155
  :param str target_name: The target to which the parameter is associated (required)
156
156
  :return: Revision
157
157
  If the method is called asynchronously,
@@ -176,7 +176,7 @@ class RevisionApi(object):
176
176
  :param RevisionValue body: The revision value you want to create (required)
177
177
  :param str part_number: The lifing component's part number (required)
178
178
  :param str serial_number: The lifing component's serial number (required)
179
- :param str parameter_path: The parameter path identifying the parameter. You have to double de path separator. For instance: system//sensor/Oil (required)
179
+ :param str parameter_path: The parameter path identifying the parameter. (required)
180
180
  :param str target_name: The target to which the parameter is associated (required)
181
181
  :return: Revision
182
182
  If the method is called asynchronously,
@@ -582,7 +582,7 @@ class RevisionApi(object):
582
582
  :param async_req bool
583
583
  :param str part_number: The lifing component's part number (required)
584
584
  :param str serial_number: The lifing component's serial number (required)
585
- :param str parameter_path: The parameter path identifying the parameter. You have to double de path separator. For instance: system//sensor/Oil (required)
585
+ :param str parameter_path: The parameter path identifying the parameter. (required)
586
586
  :param str target_name: The target to which the parameter is associated (required)
587
587
  :return: list[Revision]
588
588
  If the method is called asynchronously,
@@ -606,7 +606,7 @@ class RevisionApi(object):
606
606
  :param async_req bool
607
607
  :param str part_number: The lifing component's part number (required)
608
608
  :param str serial_number: The lifing component's serial number (required)
609
- :param str parameter_path: The parameter path identifying the parameter. You have to double de path separator. For instance: system//sensor/Oil (required)
609
+ :param str parameter_path: The parameter path identifying the parameter. (required)
610
610
  :param str target_name: The target to which the parameter is associated (required)
611
611
  :return: list[Revision]
612
612
  If the method is called asynchronously,
@@ -1197,6 +1197,111 @@ class RevisionApi(object):
1197
1197
  _request_timeout=params.get('_request_timeout'),
1198
1198
  collection_formats=collection_formats)
1199
1199
 
1200
+ def import_revisions(self, body, version_id, **kwargs): # noqa: E501
1201
+ """Import revisions from files for a given car parameters version # noqa: E501
1202
+
1203
+ This method makes a synchronous HTTP request by default. To make an
1204
+ asynchronous HTTP request, please pass async_req=True
1205
+ >>> thread = api.import_revisions(body, version_id, async_req=True)
1206
+ >>> result = thread.get()
1207
+
1208
+ :param async_req bool
1209
+ :param ImportRevisionsArgs body: The import options (required)
1210
+ :param str version_id: The unique id of the version to which the revisions will be imported. (required)
1211
+ :return: ImportRevisionsResults
1212
+ If the method is called asynchronously,
1213
+ returns the request thread.
1214
+ """
1215
+ kwargs['_return_http_data_only'] = True
1216
+ if kwargs.get('async_req'):
1217
+ return self.import_revisions_with_http_info(body, version_id, **kwargs) # noqa: E501
1218
+ else:
1219
+ (data) = self.import_revisions_with_http_info(body, version_id, **kwargs) # noqa: E501
1220
+ return data
1221
+
1222
+ def import_revisions_with_http_info(self, body, version_id, **kwargs): # noqa: E501
1223
+ """Import revisions from files for a given car parameters version # noqa: E501
1224
+
1225
+ This method makes a synchronous HTTP request by default. To make an
1226
+ asynchronous HTTP request, please pass async_req=True
1227
+ >>> thread = api.import_revisions_with_http_info(body, version_id, async_req=True)
1228
+ >>> result = thread.get()
1229
+
1230
+ :param async_req bool
1231
+ :param ImportRevisionsArgs body: The import options (required)
1232
+ :param str version_id: The unique id of the version to which the revisions will be imported. (required)
1233
+ :return: ImportRevisionsResults
1234
+ If the method is called asynchronously,
1235
+ returns the request thread.
1236
+ """
1237
+
1238
+ all_params = ['body', 'version_id'] # noqa: E501
1239
+ all_params.append('async_req')
1240
+ all_params.append('_return_http_data_only')
1241
+ all_params.append('_preload_content')
1242
+ all_params.append('_request_timeout')
1243
+
1244
+ params = locals()
1245
+ for key, val in six.iteritems(params['kwargs']):
1246
+ if key not in all_params:
1247
+ raise TypeError(
1248
+ "Got an unexpected keyword argument '%s'"
1249
+ " to method import_revisions" % key
1250
+ )
1251
+ params[key] = val
1252
+ del params['kwargs']
1253
+ # verify the required parameter 'body' is set
1254
+ if ('body' not in params or
1255
+ params['body'] is None):
1256
+ raise ValueError("Missing the required parameter `body` when calling `import_revisions`") # noqa: E501
1257
+ # verify the required parameter 'version_id' is set
1258
+ if ('version_id' not in params or
1259
+ params['version_id'] is None):
1260
+ raise ValueError("Missing the required parameter `version_id` when calling `import_revisions`") # noqa: E501
1261
+
1262
+ collection_formats = {}
1263
+
1264
+ path_params = {}
1265
+ if 'version_id' in params:
1266
+ path_params['versionId'] = params['version_id'] # noqa: E501
1267
+
1268
+ query_params = []
1269
+
1270
+ header_params = {}
1271
+
1272
+ form_params = []
1273
+ local_var_files = {}
1274
+
1275
+ body_params = None
1276
+ if 'body' in params:
1277
+ body_params = params['body']
1278
+ # HTTP header `Accept`
1279
+ header_params['Accept'] = self.api_client.select_header_accept(
1280
+ ['application/json', 'text/json']) # noqa: E501
1281
+
1282
+ # HTTP header `Content-Type`
1283
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1284
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
1285
+
1286
+ # Authentication setting
1287
+ auth_settings = [] # noqa: E501
1288
+
1289
+ return self.api_client.call_api(
1290
+ '/teamdbapi/v2.0/version/{versionId}/revisions/import', 'POST',
1291
+ path_params,
1292
+ query_params,
1293
+ header_params,
1294
+ body=body_params,
1295
+ post_params=form_params,
1296
+ files=local_var_files,
1297
+ response_type='ImportRevisionsResults', # noqa: E501
1298
+ auth_settings=auth_settings,
1299
+ async_req=params.get('async_req'),
1300
+ _return_http_data_only=params.get('_return_http_data_only'),
1301
+ _preload_content=params.get('_preload_content', True),
1302
+ _request_timeout=params.get('_request_timeout'),
1303
+ collection_formats=collection_formats)
1304
+
1200
1305
  def try_get_revision(self, body, version_id, **kwargs): # noqa: E501
1201
1306
  """Check whether the revision with the same data already exists for a given version. Returns the revision unique ID already existing or empty (00000000-0000-0000-0000-000000000000) if not found. # noqa: E501
1202
1307
 
@@ -14,6 +14,7 @@
14
14
  from __future__ import absolute_import
15
15
 
16
16
  # import models into model package
17
+ from teamdbapi.models.add_part_car_parameter_arg import AddPartCarParameterArg
17
18
  from teamdbapi.models.assembly import Assembly
18
19
  from teamdbapi.models.bleed_adjustment import BleedAdjustment
19
20
  from teamdbapi.models.calibration import Calibration
@@ -28,10 +29,22 @@ from teamdbapi.models.couple_guid_text import CoupleGuidText
28
29
  from teamdbapi.models.criteria import Criteria
29
30
  from teamdbapi.models.criteria_value import CriteriaValue
30
31
  from teamdbapi.models.event import Event
32
+ from teamdbapi.models.file_revision_info import FileRevisionInfo
31
33
  from teamdbapi.models.fixed_field import FixedField
32
34
  from teamdbapi.models.group import Group
33
35
  from teamdbapi.models.import_parameters_args import ImportParametersArgs
34
36
  from teamdbapi.models.import_parameters_results import ImportParametersResults
37
+ from teamdbapi.models.import_revisions_args import ImportRevisionsArgs
38
+ from teamdbapi.models.import_revisions_info import ImportRevisionsInfo
39
+ from teamdbapi.models.import_revisions_results import ImportRevisionsResults
40
+ from teamdbapi.models.issue import Issue
41
+ from teamdbapi.models.issue_custom_field_value import IssueCustomFieldValue
42
+ from teamdbapi.models.issue_priority import IssuePriority
43
+ from teamdbapi.models.issue_project import IssueProject
44
+ from teamdbapi.models.issue_sector import IssueSector
45
+ from teamdbapi.models.issue_status import IssueStatus
46
+ from teamdbapi.models.issue_type import IssueType
47
+ from teamdbapi.models.issue_workflow import IssueWorkflow
35
48
  from teamdbapi.models.item_value import ItemValue
36
49
  from teamdbapi.models.item_value_key import ItemValueKey
37
50
  from teamdbapi.models.lap import Lap
@@ -44,6 +57,7 @@ from teamdbapi.models.notes_context import NotesContext
44
57
  from teamdbapi.models.parameter import Parameter
45
58
  from teamdbapi.models.parameter_cross_table import ParameterCrossTable
46
59
  from teamdbapi.models.part import Part
60
+ from teamdbapi.models.part_car_parameters import PartCarParameters
47
61
  from teamdbapi.models.part_count import PartCount
48
62
  from teamdbapi.models.problem_details import ProblemDetails
49
63
  from teamdbapi.models.revision import Revision