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,2116 +1,2116 @@
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 AssemblyApi(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_revisions_to_assembly(self, body, assembly_id, **kwargs): # noqa: E501
36
- """[Command] Add a list of revisions to an assembly. # 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_revisions_to_assembly(body, assembly_id, async_req=True)
41
- >>> result = thread.get()
42
-
43
- :param async_req bool
44
- :param list[str] body: A list of unique revision ids you want to add to the assembly (required)
45
- :param str assembly_id: The assembly id to which you want to add the revisions (required)
46
- :return: Assembly
47
- If the method is called asynchronously,
48
- returns the request thread.
49
- """
50
- kwargs['_return_http_data_only'] = True
51
- if kwargs.get('async_req'):
52
- return self.add_revisions_to_assembly_with_http_info(body, assembly_id, **kwargs) # noqa: E501
53
- else:
54
- (data) = self.add_revisions_to_assembly_with_http_info(body, assembly_id, **kwargs) # noqa: E501
55
- return data
56
-
57
- def add_revisions_to_assembly_with_http_info(self, body, assembly_id, **kwargs): # noqa: E501
58
- """[Command] Add a list of revisions to an assembly. # noqa: E501
59
-
60
- This method makes a synchronous HTTP request by default. To make an
61
- asynchronous HTTP request, please pass async_req=True
62
- >>> thread = api.add_revisions_to_assembly_with_http_info(body, assembly_id, async_req=True)
63
- >>> result = thread.get()
64
-
65
- :param async_req bool
66
- :param list[str] body: A list of unique revision ids you want to add to the assembly (required)
67
- :param str assembly_id: The assembly id to which you want to add the revisions (required)
68
- :return: Assembly
69
- If the method is called asynchronously,
70
- returns the request thread.
71
- """
72
-
73
- all_params = ['body', 'assembly_id'] # noqa: E501
74
- all_params.append('async_req')
75
- all_params.append('_return_http_data_only')
76
- all_params.append('_preload_content')
77
- all_params.append('_request_timeout')
78
-
79
- params = locals()
80
- for key, val in six.iteritems(params['kwargs']):
81
- if key not in all_params:
82
- raise TypeError(
83
- "Got an unexpected keyword argument '%s'"
84
- " to method add_revisions_to_assembly" % key
85
- )
86
- params[key] = val
87
- del params['kwargs']
88
- # verify the required parameter 'body' is set
89
- if ('body' not in params or
90
- params['body'] is None):
91
- raise ValueError("Missing the required parameter `body` when calling `add_revisions_to_assembly`") # noqa: E501
92
- # verify the required parameter 'assembly_id' is set
93
- if ('assembly_id' not in params or
94
- params['assembly_id'] is None):
95
- raise ValueError("Missing the required parameter `assembly_id` when calling `add_revisions_to_assembly`") # noqa: E501
96
-
97
- collection_formats = {}
98
-
99
- path_params = {}
100
- if 'assembly_id' in params:
101
- path_params['assemblyId'] = params['assembly_id'] # noqa: E501
102
-
103
- query_params = []
104
-
105
- header_params = {}
106
-
107
- form_params = []
108
- local_var_files = {}
109
-
110
- body_params = None
111
- if 'body' in params:
112
- body_params = params['body']
113
- # HTTP header `Accept`
114
- header_params['Accept'] = self.api_client.select_header_accept(
115
- ['application/json', 'text/json']) # noqa: E501
116
-
117
- # HTTP header `Content-Type`
118
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
119
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
120
-
121
- # Authentication setting
122
- auth_settings = [] # noqa: E501
123
-
124
- return self.api_client.call_api(
125
- '/teamdbapi/v2.0/assembly/{assemblyId}/addrevisions', 'POST',
126
- path_params,
127
- query_params,
128
- header_params,
129
- body=body_params,
130
- post_params=form_params,
131
- files=local_var_files,
132
- response_type='Assembly', # noqa: E501
133
- auth_settings=auth_settings,
134
- async_req=params.get('async_req'),
135
- _return_http_data_only=params.get('_return_http_data_only'),
136
- _preload_content=params.get('_preload_content', True),
137
- _request_timeout=params.get('_request_timeout'),
138
- collection_formats=collection_formats)
139
-
140
- def add_tag(self, body, assembly_id, **kwargs): # noqa: E501
141
- """[Command] Add a search tag to an existing assembly # noqa: E501
142
-
143
- This method makes a synchronous HTTP request by default. To make an
144
- asynchronous HTTP request, please pass async_req=True
145
- >>> thread = api.add_tag(body, assembly_id, async_req=True)
146
- >>> result = thread.get()
147
-
148
- :param async_req bool
149
- :param str body: The tag to add to the assembly (required)
150
- :param str assembly_id: The assembly unique id (required)
151
- :return: Assembly
152
- If the method is called asynchronously,
153
- returns the request thread.
154
- """
155
- kwargs['_return_http_data_only'] = True
156
- if kwargs.get('async_req'):
157
- return self.add_tag_with_http_info(body, assembly_id, **kwargs) # noqa: E501
158
- else:
159
- (data) = self.add_tag_with_http_info(body, assembly_id, **kwargs) # noqa: E501
160
- return data
161
-
162
- def add_tag_with_http_info(self, body, assembly_id, **kwargs): # noqa: E501
163
- """[Command] Add a search tag to an existing assembly # noqa: E501
164
-
165
- This method makes a synchronous HTTP request by default. To make an
166
- asynchronous HTTP request, please pass async_req=True
167
- >>> thread = api.add_tag_with_http_info(body, assembly_id, async_req=True)
168
- >>> result = thread.get()
169
-
170
- :param async_req bool
171
- :param str body: The tag to add to the assembly (required)
172
- :param str assembly_id: The assembly unique id (required)
173
- :return: Assembly
174
- If the method is called asynchronously,
175
- returns the request thread.
176
- """
177
-
178
- all_params = ['body', 'assembly_id'] # noqa: E501
179
- all_params.append('async_req')
180
- all_params.append('_return_http_data_only')
181
- all_params.append('_preload_content')
182
- all_params.append('_request_timeout')
183
-
184
- params = locals()
185
- for key, val in six.iteritems(params['kwargs']):
186
- if key not in all_params:
187
- raise TypeError(
188
- "Got an unexpected keyword argument '%s'"
189
- " to method add_tag" % key
190
- )
191
- params[key] = val
192
- del params['kwargs']
193
- # verify the required parameter 'body' is set
194
- if ('body' not in params or
195
- params['body'] is None):
196
- raise ValueError("Missing the required parameter `body` when calling `add_tag`") # noqa: E501
197
- # verify the required parameter 'assembly_id' is set
198
- if ('assembly_id' not in params or
199
- params['assembly_id'] is None):
200
- raise ValueError("Missing the required parameter `assembly_id` when calling `add_tag`") # noqa: E501
201
-
202
- collection_formats = {}
203
-
204
- path_params = {}
205
- if 'assembly_id' in params:
206
- path_params['assemblyId'] = params['assembly_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/assembly/{assemblyId}/addtag', '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='Assembly', # 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 assemblies_link_to_run(self, run_id, **kwargs): # noqa: E501
246
- """Get all the assemblies link to a run # 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.assemblies_link_to_run(run_id, async_req=True)
251
- >>> result = thread.get()
252
-
253
- :param async_req bool
254
- :param str run_id: The run id you want the assemblies linked to (required)
255
- :return: list[Assembly]
256
- If the method is called asynchronously,
257
- returns the request thread.
258
- """
259
- kwargs['_return_http_data_only'] = True
260
- if kwargs.get('async_req'):
261
- return self.assemblies_link_to_run_with_http_info(run_id, **kwargs) # noqa: E501
262
- else:
263
- (data) = self.assemblies_link_to_run_with_http_info(run_id, **kwargs) # noqa: E501
264
- return data
265
-
266
- def assemblies_link_to_run_with_http_info(self, run_id, **kwargs): # noqa: E501
267
- """Get all the assemblies link to a run # noqa: E501
268
-
269
- This method makes a synchronous HTTP request by default. To make an
270
- asynchronous HTTP request, please pass async_req=True
271
- >>> thread = api.assemblies_link_to_run_with_http_info(run_id, async_req=True)
272
- >>> result = thread.get()
273
-
274
- :param async_req bool
275
- :param str run_id: The run id you want the assemblies linked to (required)
276
- :return: list[Assembly]
277
- If the method is called asynchronously,
278
- returns the request thread.
279
- """
280
-
281
- all_params = ['run_id'] # noqa: E501
282
- all_params.append('async_req')
283
- all_params.append('_return_http_data_only')
284
- all_params.append('_preload_content')
285
- all_params.append('_request_timeout')
286
-
287
- params = locals()
288
- for key, val in six.iteritems(params['kwargs']):
289
- if key not in all_params:
290
- raise TypeError(
291
- "Got an unexpected keyword argument '%s'"
292
- " to method assemblies_link_to_run" % key
293
- )
294
- params[key] = val
295
- del params['kwargs']
296
- # verify the required parameter 'run_id' is set
297
- if ('run_id' not in params or
298
- params['run_id'] is None):
299
- raise ValueError("Missing the required parameter `run_id` when calling `assemblies_link_to_run`") # noqa: E501
300
-
301
- collection_formats = {}
302
-
303
- path_params = {}
304
- if 'run_id' in params:
305
- path_params['runId'] = params['run_id'] # noqa: E501
306
-
307
- query_params = []
308
-
309
- header_params = {}
310
-
311
- form_params = []
312
- local_var_files = {}
313
-
314
- body_params = None
315
- # HTTP header `Accept`
316
- header_params['Accept'] = self.api_client.select_header_accept(
317
- ['application/json', 'text/json']) # noqa: E501
318
-
319
- # Authentication setting
320
- auth_settings = [] # noqa: E501
321
-
322
- return self.api_client.call_api(
323
- '/teamdbapi/v2.0/run/{runId}/assemblies', 'GET',
324
- path_params,
325
- query_params,
326
- header_params,
327
- body=body_params,
328
- post_params=form_params,
329
- files=local_var_files,
330
- response_type='list[Assembly]', # noqa: E501
331
- auth_settings=auth_settings,
332
- async_req=params.get('async_req'),
333
- _return_http_data_only=params.get('_return_http_data_only'),
334
- _preload_content=params.get('_preload_content', True),
335
- _request_timeout=params.get('_request_timeout'),
336
- collection_formats=collection_formats)
337
-
338
- def compare_assemblies(self, assembly_aid, assembly_bid, **kwargs): # noqa: E501
339
- """[Command] Compare 2 assemblies # noqa: E501
340
-
341
- This method makes a synchronous HTTP request by default. To make an
342
- asynchronous HTTP request, please pass async_req=True
343
- >>> thread = api.compare_assemblies(assembly_aid, assembly_bid, async_req=True)
344
- >>> result = thread.get()
345
-
346
- :param async_req bool
347
- :param str assembly_aid: Assembly A unique Id (required)
348
- :param str assembly_bid: Assembly B unique Id (required)
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 AssemblyApi(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_revisions_to_assembly(self, body, assembly_id, **kwargs): # noqa: E501
36
+ """[Command] Add a list of revisions to an assembly. # 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_revisions_to_assembly(body, assembly_id, async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :param list[str] body: A list of unique revision ids you want to add to the assembly (required)
45
+ :param str assembly_id: The assembly id to which you want to add the revisions (required)
46
+ :return: Assembly
47
+ If the method is called asynchronously,
48
+ returns the request thread.
49
+ """
50
+ kwargs['_return_http_data_only'] = True
51
+ if kwargs.get('async_req'):
52
+ return self.add_revisions_to_assembly_with_http_info(body, assembly_id, **kwargs) # noqa: E501
53
+ else:
54
+ (data) = self.add_revisions_to_assembly_with_http_info(body, assembly_id, **kwargs) # noqa: E501
55
+ return data
56
+
57
+ def add_revisions_to_assembly_with_http_info(self, body, assembly_id, **kwargs): # noqa: E501
58
+ """[Command] Add a list of revisions to an assembly. # noqa: E501
59
+
60
+ This method makes a synchronous HTTP request by default. To make an
61
+ asynchronous HTTP request, please pass async_req=True
62
+ >>> thread = api.add_revisions_to_assembly_with_http_info(body, assembly_id, async_req=True)
63
+ >>> result = thread.get()
64
+
65
+ :param async_req bool
66
+ :param list[str] body: A list of unique revision ids you want to add to the assembly (required)
67
+ :param str assembly_id: The assembly id to which you want to add the revisions (required)
68
+ :return: Assembly
69
+ If the method is called asynchronously,
70
+ returns the request thread.
71
+ """
72
+
73
+ all_params = ['body', 'assembly_id'] # noqa: E501
74
+ all_params.append('async_req')
75
+ all_params.append('_return_http_data_only')
76
+ all_params.append('_preload_content')
77
+ all_params.append('_request_timeout')
78
+
79
+ params = locals()
80
+ for key, val in six.iteritems(params['kwargs']):
81
+ if key not in all_params:
82
+ raise TypeError(
83
+ "Got an unexpected keyword argument '%s'"
84
+ " to method add_revisions_to_assembly" % key
85
+ )
86
+ params[key] = val
87
+ del params['kwargs']
88
+ # verify the required parameter 'body' is set
89
+ if ('body' not in params or
90
+ params['body'] is None):
91
+ raise ValueError("Missing the required parameter `body` when calling `add_revisions_to_assembly`") # noqa: E501
92
+ # verify the required parameter 'assembly_id' is set
93
+ if ('assembly_id' not in params or
94
+ params['assembly_id'] is None):
95
+ raise ValueError("Missing the required parameter `assembly_id` when calling `add_revisions_to_assembly`") # noqa: E501
96
+
97
+ collection_formats = {}
98
+
99
+ path_params = {}
100
+ if 'assembly_id' in params:
101
+ path_params['assemblyId'] = params['assembly_id'] # noqa: E501
102
+
103
+ query_params = []
104
+
105
+ header_params = {}
106
+
107
+ form_params = []
108
+ local_var_files = {}
109
+
110
+ body_params = None
111
+ if 'body' in params:
112
+ body_params = params['body']
113
+ # HTTP header `Accept`
114
+ header_params['Accept'] = self.api_client.select_header_accept(
115
+ ['application/json', 'text/json']) # noqa: E501
116
+
117
+ # HTTP header `Content-Type`
118
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
119
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
120
+
121
+ # Authentication setting
122
+ auth_settings = [] # noqa: E501
123
+
124
+ return self.api_client.call_api(
125
+ '/teamdbapi/v2.0/assembly/{assemblyId}/addrevisions', 'POST',
126
+ path_params,
127
+ query_params,
128
+ header_params,
129
+ body=body_params,
130
+ post_params=form_params,
131
+ files=local_var_files,
132
+ response_type='Assembly', # noqa: E501
133
+ auth_settings=auth_settings,
134
+ async_req=params.get('async_req'),
135
+ _return_http_data_only=params.get('_return_http_data_only'),
136
+ _preload_content=params.get('_preload_content', True),
137
+ _request_timeout=params.get('_request_timeout'),
138
+ collection_formats=collection_formats)
139
+
140
+ def add_tag(self, body, assembly_id, **kwargs): # noqa: E501
141
+ """[Command] Add a search tag to an existing assembly # noqa: E501
142
+
143
+ This method makes a synchronous HTTP request by default. To make an
144
+ asynchronous HTTP request, please pass async_req=True
145
+ >>> thread = api.add_tag(body, assembly_id, async_req=True)
146
+ >>> result = thread.get()
147
+
148
+ :param async_req bool
149
+ :param str body: The tag to add to the assembly (required)
150
+ :param str assembly_id: The assembly unique id (required)
151
+ :return: Assembly
152
+ If the method is called asynchronously,
153
+ returns the request thread.
154
+ """
155
+ kwargs['_return_http_data_only'] = True
156
+ if kwargs.get('async_req'):
157
+ return self.add_tag_with_http_info(body, assembly_id, **kwargs) # noqa: E501
158
+ else:
159
+ (data) = self.add_tag_with_http_info(body, assembly_id, **kwargs) # noqa: E501
160
+ return data
161
+
162
+ def add_tag_with_http_info(self, body, assembly_id, **kwargs): # noqa: E501
163
+ """[Command] Add a search tag to an existing assembly # noqa: E501
164
+
165
+ This method makes a synchronous HTTP request by default. To make an
166
+ asynchronous HTTP request, please pass async_req=True
167
+ >>> thread = api.add_tag_with_http_info(body, assembly_id, async_req=True)
168
+ >>> result = thread.get()
169
+
170
+ :param async_req bool
171
+ :param str body: The tag to add to the assembly (required)
172
+ :param str assembly_id: The assembly unique id (required)
173
+ :return: Assembly
174
+ If the method is called asynchronously,
175
+ returns the request thread.
176
+ """
177
+
178
+ all_params = ['body', 'assembly_id'] # noqa: E501
179
+ all_params.append('async_req')
180
+ all_params.append('_return_http_data_only')
181
+ all_params.append('_preload_content')
182
+ all_params.append('_request_timeout')
183
+
184
+ params = locals()
185
+ for key, val in six.iteritems(params['kwargs']):
186
+ if key not in all_params:
187
+ raise TypeError(
188
+ "Got an unexpected keyword argument '%s'"
189
+ " to method add_tag" % key
190
+ )
191
+ params[key] = val
192
+ del params['kwargs']
193
+ # verify the required parameter 'body' is set
194
+ if ('body' not in params or
195
+ params['body'] is None):
196
+ raise ValueError("Missing the required parameter `body` when calling `add_tag`") # noqa: E501
197
+ # verify the required parameter 'assembly_id' is set
198
+ if ('assembly_id' not in params or
199
+ params['assembly_id'] is None):
200
+ raise ValueError("Missing the required parameter `assembly_id` when calling `add_tag`") # noqa: E501
201
+
202
+ collection_formats = {}
203
+
204
+ path_params = {}
205
+ if 'assembly_id' in params:
206
+ path_params['assemblyId'] = params['assembly_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/assembly/{assemblyId}/addtag', '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='Assembly', # 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 assemblies_link_to_run(self, run_id, **kwargs): # noqa: E501
246
+ """Get all the assemblies link to a run # 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.assemblies_link_to_run(run_id, async_req=True)
251
+ >>> result = thread.get()
252
+
253
+ :param async_req bool
254
+ :param str run_id: The run id you want the assemblies linked to (required)
255
+ :return: list[Assembly]
256
+ If the method is called asynchronously,
257
+ returns the request thread.
258
+ """
259
+ kwargs['_return_http_data_only'] = True
260
+ if kwargs.get('async_req'):
261
+ return self.assemblies_link_to_run_with_http_info(run_id, **kwargs) # noqa: E501
262
+ else:
263
+ (data) = self.assemblies_link_to_run_with_http_info(run_id, **kwargs) # noqa: E501
264
+ return data
265
+
266
+ def assemblies_link_to_run_with_http_info(self, run_id, **kwargs): # noqa: E501
267
+ """Get all the assemblies link to a run # noqa: E501
268
+
269
+ This method makes a synchronous HTTP request by default. To make an
270
+ asynchronous HTTP request, please pass async_req=True
271
+ >>> thread = api.assemblies_link_to_run_with_http_info(run_id, async_req=True)
272
+ >>> result = thread.get()
273
+
274
+ :param async_req bool
275
+ :param str run_id: The run id you want the assemblies linked to (required)
276
+ :return: list[Assembly]
277
+ If the method is called asynchronously,
278
+ returns the request thread.
279
+ """
280
+
281
+ all_params = ['run_id'] # noqa: E501
282
+ all_params.append('async_req')
283
+ all_params.append('_return_http_data_only')
284
+ all_params.append('_preload_content')
285
+ all_params.append('_request_timeout')
286
+
287
+ params = locals()
288
+ for key, val in six.iteritems(params['kwargs']):
289
+ if key not in all_params:
290
+ raise TypeError(
291
+ "Got an unexpected keyword argument '%s'"
292
+ " to method assemblies_link_to_run" % key
293
+ )
294
+ params[key] = val
295
+ del params['kwargs']
296
+ # verify the required parameter 'run_id' is set
297
+ if ('run_id' not in params or
298
+ params['run_id'] is None):
299
+ raise ValueError("Missing the required parameter `run_id` when calling `assemblies_link_to_run`") # noqa: E501
300
+
301
+ collection_formats = {}
302
+
303
+ path_params = {}
304
+ if 'run_id' in params:
305
+ path_params['runId'] = params['run_id'] # noqa: E501
306
+
307
+ query_params = []
308
+
309
+ header_params = {}
310
+
311
+ form_params = []
312
+ local_var_files = {}
313
+
314
+ body_params = None
315
+ # HTTP header `Accept`
316
+ header_params['Accept'] = self.api_client.select_header_accept(
317
+ ['application/json', 'text/json']) # noqa: E501
318
+
319
+ # Authentication setting
320
+ auth_settings = [] # noqa: E501
321
+
322
+ return self.api_client.call_api(
323
+ '/teamdbapi/v2.0/run/{runId}/assemblies', 'GET',
324
+ path_params,
325
+ query_params,
326
+ header_params,
327
+ body=body_params,
328
+ post_params=form_params,
329
+ files=local_var_files,
330
+ response_type='list[Assembly]', # noqa: E501
331
+ auth_settings=auth_settings,
332
+ async_req=params.get('async_req'),
333
+ _return_http_data_only=params.get('_return_http_data_only'),
334
+ _preload_content=params.get('_preload_content', True),
335
+ _request_timeout=params.get('_request_timeout'),
336
+ collection_formats=collection_formats)
337
+
338
+ def compare_assemblies(self, assembly_a_id, assembly_b_id, **kwargs): # noqa: E501
339
+ """[Command] Compare 2 assemblies # noqa: E501
340
+
341
+ This method makes a synchronous HTTP request by default. To make an
342
+ asynchronous HTTP request, please pass async_req=True
343
+ >>> thread = api.compare_assemblies(assembly_a_id, assembly_b_id, async_req=True)
344
+ >>> result = thread.get()
345
+
346
+ :param async_req bool
347
+ :param str assembly_a_id: Assembly A unique Id (required)
348
+ :param str assembly_b_id: Assembly B unique Id (required)
349
349
  :param CompareOptions body: The import options. You can leave options empty.
350
350
  By defaut, there will be no filter and no file export.
351
351
  To apply a filter you have to fill ParametersSelectionFilters and ExcludeParametersInSelection.
352
352
  To export a file you must fill OutPathFilePath. The file extension will be automatically replaced by the good one.
353
- DiffGroup allows you to select the content of the diff file generated. You can choose A or B. By default B is selected.
354
- :return: list[CompareResultDetail]
355
- If the method is called asynchronously,
356
- returns the request thread.
357
- """
358
- kwargs['_return_http_data_only'] = True
359
- if kwargs.get('async_req'):
360
- return self.compare_assemblies_with_http_info(assembly_aid, assembly_bid, **kwargs) # noqa: E501
361
- else:
362
- (data) = self.compare_assemblies_with_http_info(assembly_aid, assembly_bid, **kwargs) # noqa: E501
363
- return data
364
-
365
- def compare_assemblies_with_http_info(self, assembly_aid, assembly_bid, **kwargs): # noqa: E501
366
- """[Command] Compare 2 assemblies # noqa: E501
367
-
368
- This method makes a synchronous HTTP request by default. To make an
369
- asynchronous HTTP request, please pass async_req=True
370
- >>> thread = api.compare_assemblies_with_http_info(assembly_aid, assembly_bid, async_req=True)
371
- >>> result = thread.get()
372
-
373
- :param async_req bool
374
- :param str assembly_aid: Assembly A unique Id (required)
375
- :param str assembly_bid: Assembly B unique Id (required)
353
+ DiffGroup allows you to select the content of the diff file generated. You can choose A or B. By default B is selected.
354
+ :return: list[CompareResultDetail]
355
+ If the method is called asynchronously,
356
+ returns the request thread.
357
+ """
358
+ kwargs['_return_http_data_only'] = True
359
+ if kwargs.get('async_req'):
360
+ return self.compare_assemblies_with_http_info(assembly_a_id, assembly_b_id, **kwargs) # noqa: E501
361
+ else:
362
+ (data) = self.compare_assemblies_with_http_info(assembly_a_id, assembly_b_id, **kwargs) # noqa: E501
363
+ return data
364
+
365
+ def compare_assemblies_with_http_info(self, assembly_a_id, assembly_b_id, **kwargs): # noqa: E501
366
+ """[Command] Compare 2 assemblies # noqa: E501
367
+
368
+ This method makes a synchronous HTTP request by default. To make an
369
+ asynchronous HTTP request, please pass async_req=True
370
+ >>> thread = api.compare_assemblies_with_http_info(assembly_a_id, assembly_b_id, async_req=True)
371
+ >>> result = thread.get()
372
+
373
+ :param async_req bool
374
+ :param str assembly_a_id: Assembly A unique Id (required)
375
+ :param str assembly_b_id: Assembly B unique Id (required)
376
376
  :param CompareOptions body: The import options. You can leave options empty.
377
377
  By defaut, there will be no filter and no file export.
378
378
  To apply a filter you have to fill ParametersSelectionFilters and ExcludeParametersInSelection.
379
379
  To export a file you must fill OutPathFilePath. The file extension will be automatically replaced by the good one.
380
- DiffGroup allows you to select the content of the diff file generated. You can choose A or B. By default B is selected.
381
- :return: list[CompareResultDetail]
382
- If the method is called asynchronously,
383
- returns the request thread.
384
- """
385
-
386
- all_params = ['assembly_aid', 'assembly_bid', 'body'] # noqa: E501
387
- all_params.append('async_req')
388
- all_params.append('_return_http_data_only')
389
- all_params.append('_preload_content')
390
- all_params.append('_request_timeout')
391
-
392
- params = locals()
393
- for key, val in six.iteritems(params['kwargs']):
394
- if key not in all_params:
395
- raise TypeError(
396
- "Got an unexpected keyword argument '%s'"
397
- " to method compare_assemblies" % key
398
- )
399
- params[key] = val
400
- del params['kwargs']
401
- # verify the required parameter 'assembly_aid' is set
402
- if ('assembly_aid' not in params or
403
- params['assembly_aid'] is None):
404
- raise ValueError("Missing the required parameter `assembly_aid` when calling `compare_assemblies`") # noqa: E501
405
- # verify the required parameter 'assembly_bid' is set
406
- if ('assembly_bid' not in params or
407
- params['assembly_bid'] is None):
408
- raise ValueError("Missing the required parameter `assembly_bid` when calling `compare_assemblies`") # noqa: E501
409
-
410
- collection_formats = {}
411
-
412
- path_params = {}
413
-
414
- query_params = []
415
- if 'assembly_aid' in params:
416
- query_params.append(('assemblyAId', params['assembly_aid'])) # noqa: E501
417
- if 'assembly_bid' in params:
418
- query_params.append(('assemblyBId', params['assembly_bid'])) # noqa: E501
419
-
420
- header_params = {}
421
-
422
- form_params = []
423
- local_var_files = {}
424
-
425
- body_params = None
426
- if 'body' in params:
427
- body_params = params['body']
428
- # HTTP header `Accept`
429
- header_params['Accept'] = self.api_client.select_header_accept(
430
- ['application/json', 'text/json']) # noqa: E501
431
-
432
- # HTTP header `Content-Type`
433
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
434
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
435
-
436
- # Authentication setting
437
- auth_settings = [] # noqa: E501
438
-
439
- return self.api_client.call_api(
440
- '/teamdbapi/v2.0/assembly/compare', 'POST',
441
- path_params,
442
- query_params,
443
- header_params,
444
- body=body_params,
445
- post_params=form_params,
446
- files=local_var_files,
447
- response_type='list[CompareResultDetail]', # noqa: E501
448
- auth_settings=auth_settings,
449
- async_req=params.get('async_req'),
450
- _return_http_data_only=params.get('_return_http_data_only'),
451
- _preload_content=params.get('_preload_content', True),
452
- _request_timeout=params.get('_request_timeout'),
453
- collection_formats=collection_formats)
454
-
455
- def create_assembly(self, body, **kwargs): # noqa: E501
456
- """Create an assembly. The revisions list content will be ignored. You have to call AddRevisionsToAssembly to add revisions to an assembly. # noqa: E501
457
-
458
- Set Assembly.Id empty (00000000-0000-0000-0000-000000000000) in order to create a new assembly. # noqa: E501
459
- This method makes a synchronous HTTP request by default. To make an
460
- asynchronous HTTP request, please pass async_req=True
461
- >>> thread = api.create_assembly(body, async_req=True)
462
- >>> result = thread.get()
463
-
464
- :param async_req bool
465
- :param Assembly body: The assembly to create. (required)
466
- :return: Assembly
467
- If the method is called asynchronously,
468
- returns the request thread.
469
- """
470
- kwargs['_return_http_data_only'] = True
471
- if kwargs.get('async_req'):
472
- return self.create_assembly_with_http_info(body, **kwargs) # noqa: E501
473
- else:
474
- (data) = self.create_assembly_with_http_info(body, **kwargs) # noqa: E501
475
- return data
476
-
477
- def create_assembly_with_http_info(self, body, **kwargs): # noqa: E501
478
- """Create an assembly. The revisions list content will be ignored. You have to call AddRevisionsToAssembly to add revisions to an assembly. # noqa: E501
479
-
480
- Set Assembly.Id empty (00000000-0000-0000-0000-000000000000) in order to create a new assembly. # noqa: E501
481
- This method makes a synchronous HTTP request by default. To make an
482
- asynchronous HTTP request, please pass async_req=True
483
- >>> thread = api.create_assembly_with_http_info(body, async_req=True)
484
- >>> result = thread.get()
485
-
486
- :param async_req bool
487
- :param Assembly body: The assembly to create. (required)
488
- :return: Assembly
489
- If the method is called asynchronously,
490
- returns the request thread.
491
- """
492
-
493
- all_params = ['body'] # noqa: E501
494
- all_params.append('async_req')
495
- all_params.append('_return_http_data_only')
496
- all_params.append('_preload_content')
497
- all_params.append('_request_timeout')
498
-
499
- params = locals()
500
- for key, val in six.iteritems(params['kwargs']):
501
- if key not in all_params:
502
- raise TypeError(
503
- "Got an unexpected keyword argument '%s'"
504
- " to method create_assembly" % key
505
- )
506
- params[key] = val
507
- del params['kwargs']
508
- # verify the required parameter 'body' is set
509
- if ('body' not in params or
510
- params['body'] is None):
511
- raise ValueError("Missing the required parameter `body` when calling `create_assembly`") # noqa: E501
512
-
513
- collection_formats = {}
514
-
515
- path_params = {}
516
-
517
- query_params = []
518
-
519
- header_params = {}
520
-
521
- form_params = []
522
- local_var_files = {}
523
-
524
- body_params = None
525
- if 'body' in params:
526
- body_params = params['body']
527
- # HTTP header `Accept`
528
- header_params['Accept'] = self.api_client.select_header_accept(
529
- ['application/json', 'text/json']) # noqa: E501
530
-
531
- # HTTP header `Content-Type`
532
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
533
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
534
-
535
- # Authentication setting
536
- auth_settings = [] # noqa: E501
537
-
538
- return self.api_client.call_api(
539
- '/teamdbapi/v2.0/assembly', 'POST',
540
- path_params,
541
- query_params,
542
- header_params,
543
- body=body_params,
544
- post_params=form_params,
545
- files=local_var_files,
546
- response_type='Assembly', # noqa: E501
547
- auth_settings=auth_settings,
548
- async_req=params.get('async_req'),
549
- _return_http_data_only=params.get('_return_http_data_only'),
550
- _preload_content=params.get('_preload_content', True),
551
- _request_timeout=params.get('_request_timeout'),
552
- collection_formats=collection_formats)
553
-
554
- def delete_assembly(self, assembly_id, **kwargs): # noqa: E501
555
- """Delete an assembly or group revision corresponding to a given id. # noqa: E501
556
-
557
- This method makes a synchronous HTTP request by default. To make an
558
- asynchronous HTTP request, please pass async_req=True
559
- >>> thread = api.delete_assembly(assembly_id, async_req=True)
560
- >>> result = thread.get()
561
-
562
- :param async_req bool
563
- :param str assembly_id: The assembly id or group revision you want to delete (required)
564
- :return: None
565
- If the method is called asynchronously,
566
- returns the request thread.
567
- """
568
- kwargs['_return_http_data_only'] = True
569
- if kwargs.get('async_req'):
570
- return self.delete_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
571
- else:
572
- (data) = self.delete_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
573
- return data
574
-
575
- def delete_assembly_with_http_info(self, assembly_id, **kwargs): # noqa: E501
576
- """Delete an assembly or group revision corresponding to a given id. # noqa: E501
577
-
578
- This method makes a synchronous HTTP request by default. To make an
579
- asynchronous HTTP request, please pass async_req=True
580
- >>> thread = api.delete_assembly_with_http_info(assembly_id, async_req=True)
581
- >>> result = thread.get()
582
-
583
- :param async_req bool
584
- :param str assembly_id: The assembly id or group revision you want to delete (required)
585
- :return: None
586
- If the method is called asynchronously,
587
- returns the request thread.
588
- """
589
-
590
- all_params = ['assembly_id'] # noqa: E501
591
- all_params.append('async_req')
592
- all_params.append('_return_http_data_only')
593
- all_params.append('_preload_content')
594
- all_params.append('_request_timeout')
595
-
596
- params = locals()
597
- for key, val in six.iteritems(params['kwargs']):
598
- if key not in all_params:
599
- raise TypeError(
600
- "Got an unexpected keyword argument '%s'"
601
- " to method delete_assembly" % key
602
- )
603
- params[key] = val
604
- del params['kwargs']
605
- # verify the required parameter 'assembly_id' is set
606
- if ('assembly_id' not in params or
607
- params['assembly_id'] is None):
608
- raise ValueError("Missing the required parameter `assembly_id` when calling `delete_assembly`") # noqa: E501
609
-
610
- collection_formats = {}
611
-
612
- path_params = {}
613
- if 'assembly_id' in params:
614
- path_params['assemblyId'] = params['assembly_id'] # noqa: E501
615
-
616
- query_params = []
617
-
618
- header_params = {}
619
-
620
- form_params = []
621
- local_var_files = {}
622
-
623
- body_params = None
624
- # HTTP header `Accept`
625
- header_params['Accept'] = self.api_client.select_header_accept(
626
- ['application/json', 'text/json']) # noqa: E501
627
-
628
- # Authentication setting
629
- auth_settings = [] # noqa: E501
630
-
631
- return self.api_client.call_api(
632
- '/teamdbapi/v2.0/assembly/{assemblyId}', 'DELETE',
633
- path_params,
634
- query_params,
635
- header_params,
636
- body=body_params,
637
- post_params=form_params,
638
- files=local_var_files,
639
- response_type=None, # noqa: E501
640
- auth_settings=auth_settings,
641
- async_req=params.get('async_req'),
642
- _return_http_data_only=params.get('_return_http_data_only'),
643
- _preload_content=params.get('_preload_content', True),
644
- _request_timeout=params.get('_request_timeout'),
645
- collection_formats=collection_formats)
646
-
647
- def duplicate_assembly(self, assembly_id, **kwargs): # noqa: E501
648
- """Duplicate an existing assembly. Set the flag \"withLogs\" to True to duplicate Logs as well. # noqa: E501
649
-
650
- This method makes a synchronous HTTP request by default. To make an
651
- asynchronous HTTP request, please pass async_req=True
652
- >>> thread = api.duplicate_assembly(assembly_id, async_req=True)
653
- >>> result = thread.get()
654
-
655
- :param async_req bool
656
- :param str assembly_id: The assembly id to copy. (required)
657
- :param bool with_logs: Flag indicating if the logs should also be duplicated.
658
- :return: Assembly
659
- If the method is called asynchronously,
660
- returns the request thread.
661
- """
662
- kwargs['_return_http_data_only'] = True
663
- if kwargs.get('async_req'):
664
- return self.duplicate_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
665
- else:
666
- (data) = self.duplicate_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
667
- return data
668
-
669
- def duplicate_assembly_with_http_info(self, assembly_id, **kwargs): # noqa: E501
670
- """Duplicate an existing assembly. Set the flag \"withLogs\" to True to duplicate Logs as well. # noqa: E501
671
-
672
- This method makes a synchronous HTTP request by default. To make an
673
- asynchronous HTTP request, please pass async_req=True
674
- >>> thread = api.duplicate_assembly_with_http_info(assembly_id, async_req=True)
675
- >>> result = thread.get()
676
-
677
- :param async_req bool
678
- :param str assembly_id: The assembly id to copy. (required)
679
- :param bool with_logs: Flag indicating if the logs should also be duplicated.
680
- :return: Assembly
681
- If the method is called asynchronously,
682
- returns the request thread.
683
- """
684
-
685
- all_params = ['assembly_id', 'with_logs'] # noqa: E501
686
- all_params.append('async_req')
687
- all_params.append('_return_http_data_only')
688
- all_params.append('_preload_content')
689
- all_params.append('_request_timeout')
690
-
691
- params = locals()
692
- for key, val in six.iteritems(params['kwargs']):
693
- if key not in all_params:
694
- raise TypeError(
695
- "Got an unexpected keyword argument '%s'"
696
- " to method duplicate_assembly" % key
697
- )
698
- params[key] = val
699
- del params['kwargs']
700
- # verify the required parameter 'assembly_id' is set
701
- if ('assembly_id' not in params or
702
- params['assembly_id'] is None):
703
- raise ValueError("Missing the required parameter `assembly_id` when calling `duplicate_assembly`") # noqa: E501
704
-
705
- collection_formats = {}
706
-
707
- path_params = {}
708
- if 'assembly_id' in params:
709
- path_params['assemblyId'] = params['assembly_id'] # noqa: E501
710
-
711
- query_params = []
712
- if 'with_logs' in params:
713
- query_params.append(('withLogs', params['with_logs'])) # noqa: E501
714
-
715
- header_params = {}
716
-
717
- form_params = []
718
- local_var_files = {}
719
-
720
- body_params = None
721
- # HTTP header `Accept`
722
- header_params['Accept'] = self.api_client.select_header_accept(
723
- ['application/json', 'text/json']) # noqa: E501
724
-
725
- # Authentication setting
726
- auth_settings = [] # noqa: E501
727
-
728
- return self.api_client.call_api(
729
- '/teamdbapi/v2.0/assembly/{assemblyId}/duplicate', 'POST',
730
- path_params,
731
- query_params,
732
- header_params,
733
- body=body_params,
734
- post_params=form_params,
735
- files=local_var_files,
736
- response_type='Assembly', # noqa: E501
737
- auth_settings=auth_settings,
738
- async_req=params.get('async_req'),
739
- _return_http_data_only=params.get('_return_http_data_only'),
740
- _preload_content=params.get('_preload_content', True),
741
- _request_timeout=params.get('_request_timeout'),
742
- collection_formats=collection_formats)
743
-
744
- def export_assembly(self, assembly_id, output_file_path, **kwargs): # noqa: E501
745
- """[Command] Export an assembly into a file # noqa: E501
746
-
747
- This method makes a synchronous HTTP request by default. To make an
748
- asynchronous HTTP request, please pass async_req=True
749
- >>> thread = api.export_assembly(assembly_id, output_file_path, async_req=True)
750
- >>> result = thread.get()
751
-
752
- :param async_req bool
753
- :param str assembly_id: The unique assembly id corresponding to the assembly to export. (required)
754
- :param str output_file_path: The path to the file to create. You have to provide the file extension for example : MyFile.m (required)
755
- :return: bool
756
- If the method is called asynchronously,
757
- returns the request thread.
758
- """
759
- kwargs['_return_http_data_only'] = True
760
- if kwargs.get('async_req'):
761
- return self.export_assembly_with_http_info(assembly_id, output_file_path, **kwargs) # noqa: E501
762
- else:
763
- (data) = self.export_assembly_with_http_info(assembly_id, output_file_path, **kwargs) # noqa: E501
764
- return data
765
-
766
- def export_assembly_with_http_info(self, assembly_id, output_file_path, **kwargs): # noqa: E501
767
- """[Command] Export an assembly into a file # noqa: E501
768
-
769
- This method makes a synchronous HTTP request by default. To make an
770
- asynchronous HTTP request, please pass async_req=True
771
- >>> thread = api.export_assembly_with_http_info(assembly_id, output_file_path, async_req=True)
772
- >>> result = thread.get()
773
-
774
- :param async_req bool
775
- :param str assembly_id: The unique assembly id corresponding to the assembly to export. (required)
776
- :param str output_file_path: The path to the file to create. You have to provide the file extension for example : MyFile.m (required)
777
- :return: bool
778
- If the method is called asynchronously,
779
- returns the request thread.
780
- """
781
-
782
- all_params = ['assembly_id', 'output_file_path'] # noqa: E501
783
- all_params.append('async_req')
784
- all_params.append('_return_http_data_only')
785
- all_params.append('_preload_content')
786
- all_params.append('_request_timeout')
787
-
788
- params = locals()
789
- for key, val in six.iteritems(params['kwargs']):
790
- if key not in all_params:
791
- raise TypeError(
792
- "Got an unexpected keyword argument '%s'"
793
- " to method export_assembly" % key
794
- )
795
- params[key] = val
796
- del params['kwargs']
797
- # verify the required parameter 'assembly_id' is set
798
- if ('assembly_id' not in params or
799
- params['assembly_id'] is None):
800
- raise ValueError("Missing the required parameter `assembly_id` when calling `export_assembly`") # noqa: E501
801
- # verify the required parameter 'output_file_path' is set
802
- if ('output_file_path' not in params or
803
- params['output_file_path'] is None):
804
- raise ValueError("Missing the required parameter `output_file_path` when calling `export_assembly`") # noqa: E501
805
-
806
- collection_formats = {}
807
-
808
- path_params = {}
809
- if 'assembly_id' in params:
810
- path_params['assemblyId'] = params['assembly_id'] # noqa: E501
811
-
812
- query_params = []
813
- if 'output_file_path' in params:
814
- query_params.append(('outputFilePath', params['output_file_path'])) # noqa: E501
815
-
816
- header_params = {}
817
-
818
- form_params = []
819
- local_var_files = {}
820
-
821
- body_params = None
822
- # HTTP header `Accept`
823
- header_params['Accept'] = self.api_client.select_header_accept(
824
- ['application/json', 'text/json']) # noqa: E501
825
-
826
- # Authentication setting
827
- auth_settings = [] # noqa: E501
828
-
829
- return self.api_client.call_api(
830
- '/teamdbapi/v2.0/assembly/{assemblyId}/export', 'POST',
831
- path_params,
832
- query_params,
833
- header_params,
834
- body=body_params,
835
- post_params=form_params,
836
- files=local_var_files,
837
- response_type='bool', # noqa: E501
838
- auth_settings=auth_settings,
839
- async_req=params.get('async_req'),
840
- _return_http_data_only=params.get('_return_http_data_only'),
841
- _preload_content=params.get('_preload_content', True),
842
- _request_timeout=params.get('_request_timeout'),
843
- collection_formats=collection_formats)
844
-
845
- def get_assemblies(self, version_id, **kwargs): # noqa: E501
846
- """Get all assemblies for a given version # noqa: E501
847
-
848
- This method makes a synchronous HTTP request by default. To make an
849
- asynchronous HTTP request, please pass async_req=True
850
- >>> thread = api.get_assemblies(version_id, async_req=True)
851
- >>> result = thread.get()
852
-
853
- :param async_req bool
854
- :param str version_id: the version id to wich you want the assemblies. (required)
855
- :return: list[Assembly]
856
- If the method is called asynchronously,
857
- returns the request thread.
858
- """
859
- kwargs['_return_http_data_only'] = True
860
- if kwargs.get('async_req'):
861
- return self.get_assemblies_with_http_info(version_id, **kwargs) # noqa: E501
862
- else:
863
- (data) = self.get_assemblies_with_http_info(version_id, **kwargs) # noqa: E501
864
- return data
865
-
866
- def get_assemblies_with_http_info(self, version_id, **kwargs): # noqa: E501
867
- """Get all assemblies for a given version # noqa: E501
868
-
869
- This method makes a synchronous HTTP request by default. To make an
870
- asynchronous HTTP request, please pass async_req=True
871
- >>> thread = api.get_assemblies_with_http_info(version_id, async_req=True)
872
- >>> result = thread.get()
873
-
874
- :param async_req bool
875
- :param str version_id: the version id to wich you want the assemblies. (required)
876
- :return: list[Assembly]
877
- If the method is called asynchronously,
878
- returns the request thread.
879
- """
880
-
881
- all_params = ['version_id'] # noqa: E501
882
- all_params.append('async_req')
883
- all_params.append('_return_http_data_only')
884
- all_params.append('_preload_content')
885
- all_params.append('_request_timeout')
886
-
887
- params = locals()
888
- for key, val in six.iteritems(params['kwargs']):
889
- if key not in all_params:
890
- raise TypeError(
891
- "Got an unexpected keyword argument '%s'"
892
- " to method get_assemblies" % key
893
- )
894
- params[key] = val
895
- del params['kwargs']
896
- # verify the required parameter 'version_id' is set
897
- if ('version_id' not in params or
898
- params['version_id'] is None):
899
- raise ValueError("Missing the required parameter `version_id` when calling `get_assemblies`") # noqa: E501
900
-
901
- collection_formats = {}
902
-
903
- path_params = {}
904
- if 'version_id' in params:
905
- path_params['versionId'] = params['version_id'] # noqa: E501
906
-
907
- query_params = []
908
-
909
- header_params = {}
910
-
911
- form_params = []
912
- local_var_files = {}
913
-
914
- body_params = None
915
- # HTTP header `Accept`
916
- header_params['Accept'] = self.api_client.select_header_accept(
917
- ['application/json', 'text/json']) # noqa: E501
918
-
919
- # Authentication setting
920
- auth_settings = [] # noqa: E501
921
-
922
- return self.api_client.call_api(
923
- '/teamdbapi/v2.0/version/{versionId}/assemblies', 'GET',
924
- path_params,
925
- query_params,
926
- header_params,
927
- body=body_params,
928
- post_params=form_params,
929
- files=local_var_files,
930
- response_type='list[Assembly]', # noqa: E501
931
- auth_settings=auth_settings,
932
- async_req=params.get('async_req'),
933
- _return_http_data_only=params.get('_return_http_data_only'),
934
- _preload_content=params.get('_preload_content', True),
935
- _request_timeout=params.get('_request_timeout'),
936
- collection_formats=collection_formats)
937
-
938
- def get_assembly(self, assembly_id, **kwargs): # noqa: E501
939
- """Get an assembly for a given id # noqa: E501
940
-
941
- This method makes a synchronous HTTP request by default. To make an
942
- asynchronous HTTP request, please pass async_req=True
943
- >>> thread = api.get_assembly(assembly_id, async_req=True)
944
- >>> result = thread.get()
945
-
946
- :param async_req bool
947
- :param str assembly_id: the unique id of the assembly. (required)
948
- :return: Assembly
949
- If the method is called asynchronously,
950
- returns the request thread.
951
- """
952
- kwargs['_return_http_data_only'] = True
953
- if kwargs.get('async_req'):
954
- return self.get_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
955
- else:
956
- (data) = self.get_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
957
- return data
958
-
959
- def get_assembly_with_http_info(self, assembly_id, **kwargs): # noqa: E501
960
- """Get an assembly for a given id # noqa: E501
961
-
962
- This method makes a synchronous HTTP request by default. To make an
963
- asynchronous HTTP request, please pass async_req=True
964
- >>> thread = api.get_assembly_with_http_info(assembly_id, async_req=True)
965
- >>> result = thread.get()
966
-
967
- :param async_req bool
968
- :param str assembly_id: the unique id of the assembly. (required)
969
- :return: Assembly
970
- If the method is called asynchronously,
971
- returns the request thread.
972
- """
973
-
974
- all_params = ['assembly_id'] # noqa: E501
975
- all_params.append('async_req')
976
- all_params.append('_return_http_data_only')
977
- all_params.append('_preload_content')
978
- all_params.append('_request_timeout')
979
-
980
- params = locals()
981
- for key, val in six.iteritems(params['kwargs']):
982
- if key not in all_params:
983
- raise TypeError(
984
- "Got an unexpected keyword argument '%s'"
985
- " to method get_assembly" % key
986
- )
987
- params[key] = val
988
- del params['kwargs']
989
- # verify the required parameter 'assembly_id' is set
990
- if ('assembly_id' not in params or
991
- params['assembly_id'] is None):
992
- raise ValueError("Missing the required parameter `assembly_id` when calling `get_assembly`") # noqa: E501
993
-
994
- collection_formats = {}
995
-
996
- path_params = {}
997
- if 'assembly_id' in params:
998
- path_params['assemblyId'] = params['assembly_id'] # noqa: E501
999
-
1000
- query_params = []
1001
-
1002
- header_params = {}
1003
-
1004
- form_params = []
1005
- local_var_files = {}
1006
-
1007
- body_params = None
1008
- # HTTP header `Accept`
1009
- header_params['Accept'] = self.api_client.select_header_accept(
1010
- ['application/json', 'text/json']) # noqa: E501
1011
-
1012
- # Authentication setting
1013
- auth_settings = [] # noqa: E501
1014
-
1015
- return self.api_client.call_api(
1016
- '/teamdbapi/v2.0/assembly/{assemblyId}', 'GET',
1017
- path_params,
1018
- query_params,
1019
- header_params,
1020
- body=body_params,
1021
- post_params=form_params,
1022
- files=local_var_files,
1023
- response_type='Assembly', # noqa: E501
1024
- auth_settings=auth_settings,
1025
- async_req=params.get('async_req'),
1026
- _return_http_data_only=params.get('_return_http_data_only'),
1027
- _preload_content=params.get('_preload_content', True),
1028
- _request_timeout=params.get('_request_timeout'),
1029
- collection_formats=collection_formats)
1030
-
1031
- def get_current_assembly(self, **kwargs): # noqa: E501
1032
- """Get the current selected assembly # noqa: E501
1033
-
1034
- This method makes a synchronous HTTP request by default. To make an
1035
- asynchronous HTTP request, please pass async_req=True
1036
- >>> thread = api.get_current_assembly(async_req=True)
1037
- >>> result = thread.get()
1038
-
1039
- :param async_req bool
1040
- :return: Assembly
1041
- If the method is called asynchronously,
1042
- returns the request thread.
1043
- """
1044
- kwargs['_return_http_data_only'] = True
1045
- if kwargs.get('async_req'):
1046
- return self.get_current_assembly_with_http_info(**kwargs) # noqa: E501
1047
- else:
1048
- (data) = self.get_current_assembly_with_http_info(**kwargs) # noqa: E501
1049
- return data
1050
-
1051
- def get_current_assembly_with_http_info(self, **kwargs): # noqa: E501
1052
- """Get the current selected assembly # noqa: E501
1053
-
1054
- This method makes a synchronous HTTP request by default. To make an
1055
- asynchronous HTTP request, please pass async_req=True
1056
- >>> thread = api.get_current_assembly_with_http_info(async_req=True)
1057
- >>> result = thread.get()
1058
-
1059
- :param async_req bool
1060
- :return: Assembly
1061
- If the method is called asynchronously,
1062
- returns the request thread.
1063
- """
1064
-
1065
- all_params = [] # noqa: E501
1066
- all_params.append('async_req')
1067
- all_params.append('_return_http_data_only')
1068
- all_params.append('_preload_content')
1069
- all_params.append('_request_timeout')
1070
-
1071
- params = locals()
1072
- for key, val in six.iteritems(params['kwargs']):
1073
- if key not in all_params:
1074
- raise TypeError(
1075
- "Got an unexpected keyword argument '%s'"
1076
- " to method get_current_assembly" % key
1077
- )
1078
- params[key] = val
1079
- del params['kwargs']
1080
-
1081
- collection_formats = {}
1082
-
1083
- path_params = {}
1084
-
1085
- query_params = []
1086
-
1087
- header_params = {}
1088
-
1089
- form_params = []
1090
- local_var_files = {}
1091
-
1092
- body_params = None
1093
- # HTTP header `Accept`
1094
- header_params['Accept'] = self.api_client.select_header_accept(
1095
- ['application/json', 'text/json']) # noqa: E501
1096
-
1097
- # Authentication setting
1098
- auth_settings = [] # noqa: E501
1099
-
1100
- return self.api_client.call_api(
1101
- '/teamdbapi/v2.0/assembly/current', 'GET',
1102
- path_params,
1103
- query_params,
1104
- header_params,
1105
- body=body_params,
1106
- post_params=form_params,
1107
- files=local_var_files,
1108
- response_type='Assembly', # noqa: E501
1109
- auth_settings=auth_settings,
1110
- async_req=params.get('async_req'),
1111
- _return_http_data_only=params.get('_return_http_data_only'),
1112
- _preload_content=params.get('_preload_content', True),
1113
- _request_timeout=params.get('_request_timeout'),
1114
- collection_formats=collection_formats)
1115
-
1116
- def get_group_revisions(self, assembly_id, **kwargs): # noqa: E501
1117
- """Get a list of group revisions (sub assemblies linked to a group) that are setted to a given assembly # noqa: E501
1118
-
1119
- This method makes a synchronous HTTP request by default. To make an
1120
- asynchronous HTTP request, please pass async_req=True
1121
- >>> thread = api.get_group_revisions(assembly_id, async_req=True)
1122
- >>> result = thread.get()
1123
-
1124
- :param async_req bool
1125
- :param str assembly_id: The unique assembly id to which you search the linked group revisions (required)
1126
- :return: list[Assembly]
1127
- If the method is called asynchronously,
1128
- returns the request thread.
1129
- """
1130
- kwargs['_return_http_data_only'] = True
1131
- if kwargs.get('async_req'):
1132
- return self.get_group_revisions_with_http_info(assembly_id, **kwargs) # noqa: E501
1133
- else:
1134
- (data) = self.get_group_revisions_with_http_info(assembly_id, **kwargs) # noqa: E501
1135
- return data
1136
-
1137
- def get_group_revisions_with_http_info(self, assembly_id, **kwargs): # noqa: E501
1138
- """Get a list of group revisions (sub assemblies linked to a group) that are setted to a given assembly # noqa: E501
1139
-
1140
- This method makes a synchronous HTTP request by default. To make an
1141
- asynchronous HTTP request, please pass async_req=True
1142
- >>> thread = api.get_group_revisions_with_http_info(assembly_id, async_req=True)
1143
- >>> result = thread.get()
1144
-
1145
- :param async_req bool
1146
- :param str assembly_id: The unique assembly id to which you search the linked group revisions (required)
1147
- :return: list[Assembly]
1148
- If the method is called asynchronously,
1149
- returns the request thread.
1150
- """
1151
-
1152
- all_params = ['assembly_id'] # noqa: E501
1153
- all_params.append('async_req')
1154
- all_params.append('_return_http_data_only')
1155
- all_params.append('_preload_content')
1156
- all_params.append('_request_timeout')
1157
-
1158
- params = locals()
1159
- for key, val in six.iteritems(params['kwargs']):
1160
- if key not in all_params:
1161
- raise TypeError(
1162
- "Got an unexpected keyword argument '%s'"
1163
- " to method get_group_revisions" % key
1164
- )
1165
- params[key] = val
1166
- del params['kwargs']
1167
- # verify the required parameter 'assembly_id' is set
1168
- if ('assembly_id' not in params or
1169
- params['assembly_id'] is None):
1170
- raise ValueError("Missing the required parameter `assembly_id` when calling `get_group_revisions`") # noqa: E501
1171
-
1172
- collection_formats = {}
1173
-
1174
- path_params = {}
1175
- if 'assembly_id' in params:
1176
- path_params['assemblyId'] = params['assembly_id'] # noqa: E501
1177
-
1178
- query_params = []
1179
-
1180
- header_params = {}
1181
-
1182
- form_params = []
1183
- local_var_files = {}
1184
-
1185
- body_params = None
1186
- # HTTP header `Accept`
1187
- header_params['Accept'] = self.api_client.select_header_accept(
1188
- ['application/json', 'text/json']) # noqa: E501
1189
-
1190
- # Authentication setting
1191
- auth_settings = [] # noqa: E501
1192
-
1193
- return self.api_client.call_api(
1194
- '/teamdbapi/v2.0/assembly/{assemblyId}/grouprevisions', 'GET',
1195
- path_params,
1196
- query_params,
1197
- header_params,
1198
- body=body_params,
1199
- post_params=form_params,
1200
- files=local_var_files,
1201
- response_type='list[Assembly]', # noqa: E501
1202
- auth_settings=auth_settings,
1203
- async_req=params.get('async_req'),
1204
- _return_http_data_only=params.get('_return_http_data_only'),
1205
- _preload_content=params.get('_preload_content', True),
1206
- _request_timeout=params.get('_request_timeout'),
1207
- collection_formats=collection_formats)
1208
-
1209
- def get_group_revisions_in_assembly_and_group(self, assembly_id, group_id, **kwargs): # noqa: E501
1210
- """Get a list of group revisions (sub assemblies linked to a group) setted to a given assembly and group # noqa: E501
1211
-
1212
- This method makes a synchronous HTTP request by default. To make an
1213
- asynchronous HTTP request, please pass async_req=True
1214
- >>> thread = api.get_group_revisions_in_assembly_and_group(assembly_id, group_id, async_req=True)
1215
- >>> result = thread.get()
1216
-
1217
- :param async_req bool
1218
- :param str assembly_id: The unique assembly id to which you search the linked group revisions (required)
1219
- :param str group_id: The unique group id where the group revision are linked (required)
1220
- :return: list[Assembly]
1221
- If the method is called asynchronously,
1222
- returns the request thread.
1223
- """
1224
- kwargs['_return_http_data_only'] = True
1225
- if kwargs.get('async_req'):
1226
- return self.get_group_revisions_in_assembly_and_group_with_http_info(assembly_id, group_id, **kwargs) # noqa: E501
1227
- else:
1228
- (data) = self.get_group_revisions_in_assembly_and_group_with_http_info(assembly_id, group_id, **kwargs) # noqa: E501
1229
- return data
1230
-
1231
- def get_group_revisions_in_assembly_and_group_with_http_info(self, assembly_id, group_id, **kwargs): # noqa: E501
1232
- """Get a list of group revisions (sub assemblies linked to a group) setted to a given assembly and group # noqa: E501
1233
-
1234
- This method makes a synchronous HTTP request by default. To make an
1235
- asynchronous HTTP request, please pass async_req=True
1236
- >>> thread = api.get_group_revisions_in_assembly_and_group_with_http_info(assembly_id, group_id, async_req=True)
1237
- >>> result = thread.get()
1238
-
1239
- :param async_req bool
1240
- :param str assembly_id: The unique assembly id to which you search the linked group revisions (required)
1241
- :param str group_id: The unique group id where the group revision are linked (required)
1242
- :return: list[Assembly]
1243
- If the method is called asynchronously,
1244
- returns the request thread.
1245
- """
1246
-
1247
- all_params = ['assembly_id', 'group_id'] # noqa: E501
1248
- all_params.append('async_req')
1249
- all_params.append('_return_http_data_only')
1250
- all_params.append('_preload_content')
1251
- all_params.append('_request_timeout')
1252
-
1253
- params = locals()
1254
- for key, val in six.iteritems(params['kwargs']):
1255
- if key not in all_params:
1256
- raise TypeError(
1257
- "Got an unexpected keyword argument '%s'"
1258
- " to method get_group_revisions_in_assembly_and_group" % key
1259
- )
1260
- params[key] = val
1261
- del params['kwargs']
1262
- # verify the required parameter 'assembly_id' is set
1263
- if ('assembly_id' not in params or
1264
- params['assembly_id'] is None):
1265
- raise ValueError("Missing the required parameter `assembly_id` when calling `get_group_revisions_in_assembly_and_group`") # noqa: E501
1266
- # verify the required parameter 'group_id' is set
1267
- if ('group_id' not in params or
1268
- params['group_id'] is None):
1269
- raise ValueError("Missing the required parameter `group_id` when calling `get_group_revisions_in_assembly_and_group`") # noqa: E501
1270
-
1271
- collection_formats = {}
1272
-
1273
- path_params = {}
1274
- if 'assembly_id' in params:
1275
- path_params['assemblyId'] = params['assembly_id'] # noqa: E501
1276
- if 'group_id' in params:
1277
- path_params['groupId'] = params['group_id'] # noqa: E501
1278
-
1279
- query_params = []
1280
-
1281
- header_params = {}
1282
-
1283
- form_params = []
1284
- local_var_files = {}
1285
-
1286
- body_params = None
1287
- # HTTP header `Accept`
1288
- header_params['Accept'] = self.api_client.select_header_accept(
1289
- ['application/json', 'text/json']) # noqa: E501
1290
-
1291
- # Authentication setting
1292
- auth_settings = [] # noqa: E501
1293
-
1294
- return self.api_client.call_api(
1295
- '/teamdbapi/v2.0/assembly/{assemblyId}/group/{groupId}/revisions', 'GET',
1296
- path_params,
1297
- query_params,
1298
- header_params,
1299
- body=body_params,
1300
- post_params=form_params,
1301
- files=local_var_files,
1302
- response_type='list[Assembly]', # noqa: E501
1303
- auth_settings=auth_settings,
1304
- async_req=params.get('async_req'),
1305
- _return_http_data_only=params.get('_return_http_data_only'),
1306
- _preload_content=params.get('_preload_content', True),
1307
- _request_timeout=params.get('_request_timeout'),
1308
- collection_formats=collection_formats)
1309
-
1310
- def import_assembly(self, **kwargs): # noqa: E501
1311
- """Create a new assembly by importing a definition file. This will also create the new revisions. # noqa: E501
1312
-
1313
- This method makes a synchronous HTTP request by default. To make an
1314
- asynchronous HTTP request, please pass async_req=True
1315
- >>> thread = api.import_assembly(async_req=True)
1316
- >>> result = thread.get()
1317
-
1318
- :param async_req bool
1319
- :param str version_id: The version id to which the new assembly will belong
1320
- :param str assembly_name: The assembly name to create
1321
- :param str revision_name: The default revision name used to create the new revisions
1322
- :param str file_path: The file path containing the parameters
1323
- :return: Assembly
1324
- If the method is called asynchronously,
1325
- returns the request thread.
1326
- """
1327
- kwargs['_return_http_data_only'] = True
1328
- if kwargs.get('async_req'):
1329
- return self.import_assembly_with_http_info(**kwargs) # noqa: E501
1330
- else:
1331
- (data) = self.import_assembly_with_http_info(**kwargs) # noqa: E501
1332
- return data
1333
-
1334
- def import_assembly_with_http_info(self, **kwargs): # noqa: E501
1335
- """Create a new assembly by importing a definition file. This will also create the new revisions. # noqa: E501
1336
-
1337
- This method makes a synchronous HTTP request by default. To make an
1338
- asynchronous HTTP request, please pass async_req=True
1339
- >>> thread = api.import_assembly_with_http_info(async_req=True)
1340
- >>> result = thread.get()
1341
-
1342
- :param async_req bool
1343
- :param str version_id: The version id to which the new assembly will belong
1344
- :param str assembly_name: The assembly name to create
1345
- :param str revision_name: The default revision name used to create the new revisions
1346
- :param str file_path: The file path containing the parameters
1347
- :return: Assembly
1348
- If the method is called asynchronously,
1349
- returns the request thread.
1350
- """
1351
-
1352
- all_params = ['version_id', 'assembly_name', 'revision_name', 'file_path'] # noqa: E501
1353
- all_params.append('async_req')
1354
- all_params.append('_return_http_data_only')
1355
- all_params.append('_preload_content')
1356
- all_params.append('_request_timeout')
1357
-
1358
- params = locals()
1359
- for key, val in six.iteritems(params['kwargs']):
1360
- if key not in all_params:
1361
- raise TypeError(
1362
- "Got an unexpected keyword argument '%s'"
1363
- " to method import_assembly" % key
1364
- )
1365
- params[key] = val
1366
- del params['kwargs']
1367
-
1368
- collection_formats = {}
1369
-
1370
- path_params = {}
1371
-
1372
- query_params = []
1373
- if 'version_id' in params:
1374
- query_params.append(('versionId', params['version_id'])) # noqa: E501
1375
- if 'assembly_name' in params:
1376
- query_params.append(('assemblyName', params['assembly_name'])) # noqa: E501
1377
- if 'revision_name' in params:
1378
- query_params.append(('revisionName', params['revision_name'])) # noqa: E501
1379
- if 'file_path' in params:
1380
- query_params.append(('filePath', params['file_path'])) # noqa: E501
1381
-
1382
- header_params = {}
1383
-
1384
- form_params = []
1385
- local_var_files = {}
1386
-
1387
- body_params = None
1388
- # HTTP header `Accept`
1389
- header_params['Accept'] = self.api_client.select_header_accept(
1390
- ['application/json', 'text/json']) # noqa: E501
1391
-
1392
- # Authentication setting
1393
- auth_settings = [] # noqa: E501
1394
-
1395
- return self.api_client.call_api(
1396
- '/teamdbapi/v2.0/assembly/import', 'POST',
1397
- path_params,
1398
- query_params,
1399
- header_params,
1400
- body=body_params,
1401
- post_params=form_params,
1402
- files=local_var_files,
1403
- response_type='Assembly', # noqa: E501
1404
- auth_settings=auth_settings,
1405
- async_req=params.get('async_req'),
1406
- _return_http_data_only=params.get('_return_http_data_only'),
1407
- _preload_content=params.get('_preload_content', True),
1408
- _request_timeout=params.get('_request_timeout'),
1409
- collection_formats=collection_formats)
1410
-
1411
- def link_run_to_assembly(self, run_id, assembly_id, **kwargs): # noqa: E501
1412
- """[Command] Link a run to an assembly # noqa: E501
1413
-
1414
- This method makes a synchronous HTTP request by default. To make an
1415
- asynchronous HTTP request, please pass async_req=True
1416
- >>> thread = api.link_run_to_assembly(run_id, assembly_id, async_req=True)
1417
- >>> result = thread.get()
1418
-
1419
- :param async_req bool
1420
- :param str run_id: The Id of the Run to link (required)
1421
- :param str assembly_id: The Id of the Assembly to link (required)
1422
- :return: None
1423
- If the method is called asynchronously,
1424
- returns the request thread.
1425
- """
1426
- kwargs['_return_http_data_only'] = True
1427
- if kwargs.get('async_req'):
1428
- return self.link_run_to_assembly_with_http_info(run_id, assembly_id, **kwargs) # noqa: E501
1429
- else:
1430
- (data) = self.link_run_to_assembly_with_http_info(run_id, assembly_id, **kwargs) # noqa: E501
1431
- return data
1432
-
1433
- def link_run_to_assembly_with_http_info(self, run_id, assembly_id, **kwargs): # noqa: E501
1434
- """[Command] Link a run to an assembly # noqa: E501
1435
-
1436
- This method makes a synchronous HTTP request by default. To make an
1437
- asynchronous HTTP request, please pass async_req=True
1438
- >>> thread = api.link_run_to_assembly_with_http_info(run_id, assembly_id, async_req=True)
1439
- >>> result = thread.get()
1440
-
1441
- :param async_req bool
1442
- :param str run_id: The Id of the Run to link (required)
1443
- :param str assembly_id: The Id of the Assembly to link (required)
1444
- :return: None
1445
- If the method is called asynchronously,
1446
- returns the request thread.
1447
- """
1448
-
1449
- all_params = ['run_id', 'assembly_id'] # noqa: E501
1450
- all_params.append('async_req')
1451
- all_params.append('_return_http_data_only')
1452
- all_params.append('_preload_content')
1453
- all_params.append('_request_timeout')
1454
-
1455
- params = locals()
1456
- for key, val in six.iteritems(params['kwargs']):
1457
- if key not in all_params:
1458
- raise TypeError(
1459
- "Got an unexpected keyword argument '%s'"
1460
- " to method link_run_to_assembly" % key
1461
- )
1462
- params[key] = val
1463
- del params['kwargs']
1464
- # verify the required parameter 'run_id' is set
1465
- if ('run_id' not in params or
1466
- params['run_id'] is None):
1467
- raise ValueError("Missing the required parameter `run_id` when calling `link_run_to_assembly`") # noqa: E501
1468
- # verify the required parameter 'assembly_id' is set
1469
- if ('assembly_id' not in params or
1470
- params['assembly_id'] is None):
1471
- raise ValueError("Missing the required parameter `assembly_id` when calling `link_run_to_assembly`") # noqa: E501
1472
-
1473
- collection_formats = {}
1474
-
1475
- path_params = {}
1476
- if 'run_id' in params:
1477
- path_params['runId'] = params['run_id'] # noqa: E501
1478
-
1479
- query_params = []
1480
- if 'assembly_id' in params:
1481
- query_params.append(('assemblyId', params['assembly_id'])) # noqa: E501
1482
-
1483
- header_params = {}
1484
-
1485
- form_params = []
1486
- local_var_files = {}
1487
-
1488
- body_params = None
1489
- # HTTP header `Accept`
1490
- header_params['Accept'] = self.api_client.select_header_accept(
1491
- ['application/json', 'text/json']) # noqa: E501
1492
-
1493
- # Authentication setting
1494
- auth_settings = [] # noqa: E501
1495
-
1496
- return self.api_client.call_api(
1497
- '/teamdbapi/v2.0/run/{runId}/linkassembly', 'POST',
1498
- path_params,
1499
- query_params,
1500
- header_params,
1501
- body=body_params,
1502
- post_params=form_params,
1503
- files=local_var_files,
1504
- response_type=None, # noqa: E501
1505
- auth_settings=auth_settings,
1506
- async_req=params.get('async_req'),
1507
- _return_http_data_only=params.get('_return_http_data_only'),
1508
- _preload_content=params.get('_preload_content', True),
1509
- _request_timeout=params.get('_request_timeout'),
1510
- collection_formats=collection_formats)
1511
-
1512
- def lock_assembly(self, assembly_id, locked, **kwargs): # noqa: E501
1513
- """[Command] Lock an assembly. # noqa: E501
1514
-
1515
- This method makes a synchronous HTTP request by default. To make an
1516
- asynchronous HTTP request, please pass async_req=True
1517
- >>> thread = api.lock_assembly(assembly_id, locked, async_req=True)
1518
- >>> result = thread.get()
1519
-
1520
- :param async_req bool
1521
- :param str assembly_id: The assembly id to edit. (required)
1522
- :param bool locked: True to lock the assembly, False to unlock (required)
1523
- :return: Assembly
1524
- If the method is called asynchronously,
1525
- returns the request thread.
1526
- """
1527
- kwargs['_return_http_data_only'] = True
1528
- if kwargs.get('async_req'):
1529
- return self.lock_assembly_with_http_info(assembly_id, locked, **kwargs) # noqa: E501
1530
- else:
1531
- (data) = self.lock_assembly_with_http_info(assembly_id, locked, **kwargs) # noqa: E501
1532
- return data
1533
-
1534
- def lock_assembly_with_http_info(self, assembly_id, locked, **kwargs): # noqa: E501
1535
- """[Command] Lock an assembly. # noqa: E501
1536
-
1537
- This method makes a synchronous HTTP request by default. To make an
1538
- asynchronous HTTP request, please pass async_req=True
1539
- >>> thread = api.lock_assembly_with_http_info(assembly_id, locked, async_req=True)
1540
- >>> result = thread.get()
1541
-
1542
- :param async_req bool
1543
- :param str assembly_id: The assembly id to edit. (required)
1544
- :param bool locked: True to lock the assembly, False to unlock (required)
1545
- :return: Assembly
1546
- If the method is called asynchronously,
1547
- returns the request thread.
1548
- """
1549
-
1550
- all_params = ['assembly_id', 'locked'] # noqa: E501
1551
- all_params.append('async_req')
1552
- all_params.append('_return_http_data_only')
1553
- all_params.append('_preload_content')
1554
- all_params.append('_request_timeout')
1555
-
1556
- params = locals()
1557
- for key, val in six.iteritems(params['kwargs']):
1558
- if key not in all_params:
1559
- raise TypeError(
1560
- "Got an unexpected keyword argument '%s'"
1561
- " to method lock_assembly" % key
1562
- )
1563
- params[key] = val
1564
- del params['kwargs']
1565
- # verify the required parameter 'assembly_id' is set
1566
- if ('assembly_id' not in params or
1567
- params['assembly_id'] is None):
1568
- raise ValueError("Missing the required parameter `assembly_id` when calling `lock_assembly`") # noqa: E501
1569
- # verify the required parameter 'locked' is set
1570
- if ('locked' not in params or
1571
- params['locked'] is None):
1572
- raise ValueError("Missing the required parameter `locked` when calling `lock_assembly`") # noqa: E501
1573
-
1574
- collection_formats = {}
1575
-
1576
- path_params = {}
1577
- if 'assembly_id' in params:
1578
- path_params['assemblyId'] = params['assembly_id'] # noqa: E501
1579
-
1580
- query_params = []
1581
- if 'locked' in params:
1582
- query_params.append(('locked', params['locked'])) # noqa: E501
1583
-
1584
- header_params = {}
1585
-
1586
- form_params = []
1587
- local_var_files = {}
1588
-
1589
- body_params = None
1590
- # HTTP header `Accept`
1591
- header_params['Accept'] = self.api_client.select_header_accept(
1592
- ['application/json', 'text/json']) # noqa: E501
1593
-
1594
- # Authentication setting
1595
- auth_settings = [] # noqa: E501
1596
-
1597
- return self.api_client.call_api(
1598
- '/teamdbapi/v2.0/assembly/{assemblyId}/lock', 'POST',
1599
- path_params,
1600
- query_params,
1601
- header_params,
1602
- body=body_params,
1603
- post_params=form_params,
1604
- files=local_var_files,
1605
- response_type='Assembly', # noqa: E501
1606
- auth_settings=auth_settings,
1607
- async_req=params.get('async_req'),
1608
- _return_http_data_only=params.get('_return_http_data_only'),
1609
- _preload_content=params.get('_preload_content', True),
1610
- _request_timeout=params.get('_request_timeout'),
1611
- collection_formats=collection_formats)
1612
-
1613
- def remove_revisions_from_assembly(self, body, assembly_id, **kwargs): # noqa: E501
1614
- """[Command] Remove a list of revisions from an assembly. # noqa: E501
1615
-
1616
- This method makes a synchronous HTTP request by default. To make an
1617
- asynchronous HTTP request, please pass async_req=True
1618
- >>> thread = api.remove_revisions_from_assembly(body, assembly_id, async_req=True)
1619
- >>> result = thread.get()
1620
-
1621
- :param async_req bool
1622
- :param list[str] body: A list of unique revision ids to remove from the assembly (required)
1623
- :param str assembly_id: The assembly id to which you want to remove the revisions (required)
1624
- :return: Assembly
1625
- If the method is called asynchronously,
1626
- returns the request thread.
1627
- """
1628
- kwargs['_return_http_data_only'] = True
1629
- if kwargs.get('async_req'):
1630
- return self.remove_revisions_from_assembly_with_http_info(body, assembly_id, **kwargs) # noqa: E501
1631
- else:
1632
- (data) = self.remove_revisions_from_assembly_with_http_info(body, assembly_id, **kwargs) # noqa: E501
1633
- return data
1634
-
1635
- def remove_revisions_from_assembly_with_http_info(self, body, assembly_id, **kwargs): # noqa: E501
1636
- """[Command] Remove a list of revisions from an assembly. # noqa: E501
1637
-
1638
- This method makes a synchronous HTTP request by default. To make an
1639
- asynchronous HTTP request, please pass async_req=True
1640
- >>> thread = api.remove_revisions_from_assembly_with_http_info(body, assembly_id, async_req=True)
1641
- >>> result = thread.get()
1642
-
1643
- :param async_req bool
1644
- :param list[str] body: A list of unique revision ids to remove from the assembly (required)
1645
- :param str assembly_id: The assembly id to which you want to remove the revisions (required)
1646
- :return: Assembly
1647
- If the method is called asynchronously,
1648
- returns the request thread.
1649
- """
1650
-
1651
- all_params = ['body', 'assembly_id'] # noqa: E501
1652
- all_params.append('async_req')
1653
- all_params.append('_return_http_data_only')
1654
- all_params.append('_preload_content')
1655
- all_params.append('_request_timeout')
1656
-
1657
- params = locals()
1658
- for key, val in six.iteritems(params['kwargs']):
1659
- if key not in all_params:
1660
- raise TypeError(
1661
- "Got an unexpected keyword argument '%s'"
1662
- " to method remove_revisions_from_assembly" % key
1663
- )
1664
- params[key] = val
1665
- del params['kwargs']
1666
- # verify the required parameter 'body' is set
1667
- if ('body' not in params or
1668
- params['body'] is None):
1669
- raise ValueError("Missing the required parameter `body` when calling `remove_revisions_from_assembly`") # noqa: E501
1670
- # verify the required parameter 'assembly_id' is set
1671
- if ('assembly_id' not in params or
1672
- params['assembly_id'] is None):
1673
- raise ValueError("Missing the required parameter `assembly_id` when calling `remove_revisions_from_assembly`") # noqa: E501
1674
-
1675
- collection_formats = {}
1676
-
1677
- path_params = {}
1678
- if 'assembly_id' in params:
1679
- path_params['assemblyId'] = params['assembly_id'] # noqa: E501
1680
-
1681
- query_params = []
1682
-
1683
- header_params = {}
1684
-
1685
- form_params = []
1686
- local_var_files = {}
1687
-
1688
- body_params = None
1689
- if 'body' in params:
1690
- body_params = params['body']
1691
- # HTTP header `Accept`
1692
- header_params['Accept'] = self.api_client.select_header_accept(
1693
- ['application/json', 'text/json']) # noqa: E501
1694
-
1695
- # HTTP header `Content-Type`
1696
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1697
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
1698
-
1699
- # Authentication setting
1700
- auth_settings = [] # noqa: E501
1701
-
1702
- return self.api_client.call_api(
1703
- '/teamdbapi/v2.0/assembly/{assemblyId}/removerevisions', 'POST',
1704
- path_params,
1705
- query_params,
1706
- header_params,
1707
- body=body_params,
1708
- post_params=form_params,
1709
- files=local_var_files,
1710
- response_type='Assembly', # noqa: E501
1711
- auth_settings=auth_settings,
1712
- async_req=params.get('async_req'),
1713
- _return_http_data_only=params.get('_return_http_data_only'),
1714
- _preload_content=params.get('_preload_content', True),
1715
- _request_timeout=params.get('_request_timeout'),
1716
- collection_formats=collection_formats)
1717
-
1718
- def remove_tag(self, assembly_id, tag, **kwargs): # noqa: E501
1719
- """[Command] Remove a search tag from an existing assembly # noqa: E501
1720
-
1721
- This method makes a synchronous HTTP request by default. To make an
1722
- asynchronous HTTP request, please pass async_req=True
1723
- >>> thread = api.remove_tag(assembly_id, tag, async_req=True)
1724
- >>> result = thread.get()
1725
-
1726
- :param async_req bool
1727
- :param str assembly_id: The assembly unique id (required)
1728
- :param str tag: The tag to remove from the assembly (required)
1729
- :return: None
1730
- If the method is called asynchronously,
1731
- returns the request thread.
1732
- """
1733
- kwargs['_return_http_data_only'] = True
1734
- if kwargs.get('async_req'):
1735
- return self.remove_tag_with_http_info(assembly_id, tag, **kwargs) # noqa: E501
1736
- else:
1737
- (data) = self.remove_tag_with_http_info(assembly_id, tag, **kwargs) # noqa: E501
1738
- return data
1739
-
1740
- def remove_tag_with_http_info(self, assembly_id, tag, **kwargs): # noqa: E501
1741
- """[Command] Remove a search tag from an existing assembly # noqa: E501
1742
-
1743
- This method makes a synchronous HTTP request by default. To make an
1744
- asynchronous HTTP request, please pass async_req=True
1745
- >>> thread = api.remove_tag_with_http_info(assembly_id, tag, async_req=True)
1746
- >>> result = thread.get()
1747
-
1748
- :param async_req bool
1749
- :param str assembly_id: The assembly unique id (required)
1750
- :param str tag: The tag to remove from the assembly (required)
1751
- :return: None
1752
- If the method is called asynchronously,
1753
- returns the request thread.
1754
- """
1755
-
1756
- all_params = ['assembly_id', 'tag'] # noqa: E501
1757
- all_params.append('async_req')
1758
- all_params.append('_return_http_data_only')
1759
- all_params.append('_preload_content')
1760
- all_params.append('_request_timeout')
1761
-
1762
- params = locals()
1763
- for key, val in six.iteritems(params['kwargs']):
1764
- if key not in all_params:
1765
- raise TypeError(
1766
- "Got an unexpected keyword argument '%s'"
1767
- " to method remove_tag" % key
1768
- )
1769
- params[key] = val
1770
- del params['kwargs']
1771
- # verify the required parameter 'assembly_id' is set
1772
- if ('assembly_id' not in params or
1773
- params['assembly_id'] is None):
1774
- raise ValueError("Missing the required parameter `assembly_id` when calling `remove_tag`") # noqa: E501
1775
- # verify the required parameter 'tag' is set
1776
- if ('tag' not in params or
1777
- params['tag'] is None):
1778
- raise ValueError("Missing the required parameter `tag` when calling `remove_tag`") # noqa: E501
1779
-
1780
- collection_formats = {}
1781
-
1782
- path_params = {}
1783
- if 'assembly_id' in params:
1784
- path_params['assemblyId'] = params['assembly_id'] # noqa: E501
1785
-
1786
- query_params = []
1787
- if 'tag' in params:
1788
- query_params.append(('tag', params['tag'])) # noqa: E501
1789
-
1790
- header_params = {}
1791
-
1792
- form_params = []
1793
- local_var_files = {}
1794
-
1795
- body_params = None
1796
- # HTTP header `Accept`
1797
- header_params['Accept'] = self.api_client.select_header_accept(
1798
- ['application/json', 'text/json']) # noqa: E501
1799
-
1800
- # Authentication setting
1801
- auth_settings = [] # noqa: E501
1802
-
1803
- return self.api_client.call_api(
1804
- '/teamdbapi/v2.0/assembly/{assemblyId}/removetag', 'POST',
1805
- path_params,
1806
- query_params,
1807
- header_params,
1808
- body=body_params,
1809
- post_params=form_params,
1810
- files=local_var_files,
1811
- response_type=None, # noqa: E501
1812
- auth_settings=auth_settings,
1813
- async_req=params.get('async_req'),
1814
- _return_http_data_only=params.get('_return_http_data_only'),
1815
- _preload_content=params.get('_preload_content', True),
1816
- _request_timeout=params.get('_request_timeout'),
1817
- collection_formats=collection_formats)
1818
-
1819
- def select_current_assembly(self, assembly_id, **kwargs): # noqa: E501
1820
- """[Command] Set the current selected assembly # noqa: E501
1821
-
1822
- This method makes a synchronous HTTP request by default. To make an
1823
- asynchronous HTTP request, please pass async_req=True
1824
- >>> thread = api.select_current_assembly(assembly_id, async_req=True)
1825
- >>> result = thread.get()
1826
-
1827
- :param async_req bool
1828
- :param str assembly_id: The assembly id to select (required)
1829
- :return: None
1830
- If the method is called asynchronously,
1831
- returns the request thread.
1832
- """
1833
- kwargs['_return_http_data_only'] = True
1834
- if kwargs.get('async_req'):
1835
- return self.select_current_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
1836
- else:
1837
- (data) = self.select_current_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
1838
- return data
1839
-
1840
- def select_current_assembly_with_http_info(self, assembly_id, **kwargs): # noqa: E501
1841
- """[Command] Set the current selected assembly # noqa: E501
1842
-
1843
- This method makes a synchronous HTTP request by default. To make an
1844
- asynchronous HTTP request, please pass async_req=True
1845
- >>> thread = api.select_current_assembly_with_http_info(assembly_id, async_req=True)
1846
- >>> result = thread.get()
1847
-
1848
- :param async_req bool
1849
- :param str assembly_id: The assembly id to select (required)
1850
- :return: None
1851
- If the method is called asynchronously,
1852
- returns the request thread.
1853
- """
1854
-
1855
- all_params = ['assembly_id'] # noqa: E501
1856
- all_params.append('async_req')
1857
- all_params.append('_return_http_data_only')
1858
- all_params.append('_preload_content')
1859
- all_params.append('_request_timeout')
1860
-
1861
- params = locals()
1862
- for key, val in six.iteritems(params['kwargs']):
1863
- if key not in all_params:
1864
- raise TypeError(
1865
- "Got an unexpected keyword argument '%s'"
1866
- " to method select_current_assembly" % key
1867
- )
1868
- params[key] = val
1869
- del params['kwargs']
1870
- # verify the required parameter 'assembly_id' is set
1871
- if ('assembly_id' not in params or
1872
- params['assembly_id'] is None):
1873
- raise ValueError("Missing the required parameter `assembly_id` when calling `select_current_assembly`") # noqa: E501
1874
-
1875
- collection_formats = {}
1876
-
1877
- path_params = {}
1878
-
1879
- query_params = []
1880
- if 'assembly_id' in params:
1881
- query_params.append(('assemblyId', params['assembly_id'])) # noqa: E501
1882
-
1883
- header_params = {}
1884
-
1885
- form_params = []
1886
- local_var_files = {}
1887
-
1888
- body_params = None
1889
- # HTTP header `Accept`
1890
- header_params['Accept'] = self.api_client.select_header_accept(
1891
- ['application/json', 'text/json']) # noqa: E501
1892
-
1893
- # Authentication setting
1894
- auth_settings = [] # noqa: E501
1895
-
1896
- return self.api_client.call_api(
1897
- '/teamdbapi/v2.0/assembly/current', 'POST',
1898
- path_params,
1899
- query_params,
1900
- header_params,
1901
- body=body_params,
1902
- post_params=form_params,
1903
- files=local_var_files,
1904
- response_type=None, # noqa: E501
1905
- auth_settings=auth_settings,
1906
- async_req=params.get('async_req'),
1907
- _return_http_data_only=params.get('_return_http_data_only'),
1908
- _preload_content=params.get('_preload_content', True),
1909
- _request_timeout=params.get('_request_timeout'),
1910
- collection_formats=collection_formats)
1911
-
1912
- def unlink_assembly(self, run_id, assembly_id, **kwargs): # noqa: E501
1913
- """[Command] Remove an assembly from a run # noqa: E501
1914
-
1915
- This method makes a synchronous HTTP request by default. To make an
1916
- asynchronous HTTP request, please pass async_req=True
1917
- >>> thread = api.unlink_assembly(run_id, assembly_id, async_req=True)
1918
- >>> result = thread.get()
1919
-
1920
- :param async_req bool
1921
- :param str run_id: The Id of the Run to unlink (required)
1922
- :param str assembly_id: The Id of the Assembly to unlink (required)
1923
- :return: None
1924
- If the method is called asynchronously,
1925
- returns the request thread.
1926
- """
1927
- kwargs['_return_http_data_only'] = True
1928
- if kwargs.get('async_req'):
1929
- return self.unlink_assembly_with_http_info(run_id, assembly_id, **kwargs) # noqa: E501
1930
- else:
1931
- (data) = self.unlink_assembly_with_http_info(run_id, assembly_id, **kwargs) # noqa: E501
1932
- return data
1933
-
1934
- def unlink_assembly_with_http_info(self, run_id, assembly_id, **kwargs): # noqa: E501
1935
- """[Command] Remove an assembly from a run # noqa: E501
1936
-
1937
- This method makes a synchronous HTTP request by default. To make an
1938
- asynchronous HTTP request, please pass async_req=True
1939
- >>> thread = api.unlink_assembly_with_http_info(run_id, assembly_id, async_req=True)
1940
- >>> result = thread.get()
1941
-
1942
- :param async_req bool
1943
- :param str run_id: The Id of the Run to unlink (required)
1944
- :param str assembly_id: The Id of the Assembly to unlink (required)
1945
- :return: None
1946
- If the method is called asynchronously,
1947
- returns the request thread.
1948
- """
1949
-
1950
- all_params = ['run_id', 'assembly_id'] # noqa: E501
1951
- all_params.append('async_req')
1952
- all_params.append('_return_http_data_only')
1953
- all_params.append('_preload_content')
1954
- all_params.append('_request_timeout')
1955
-
1956
- params = locals()
1957
- for key, val in six.iteritems(params['kwargs']):
1958
- if key not in all_params:
1959
- raise TypeError(
1960
- "Got an unexpected keyword argument '%s'"
1961
- " to method unlink_assembly" % key
1962
- )
1963
- params[key] = val
1964
- del params['kwargs']
1965
- # verify the required parameter 'run_id' is set
1966
- if ('run_id' not in params or
1967
- params['run_id'] is None):
1968
- raise ValueError("Missing the required parameter `run_id` when calling `unlink_assembly`") # noqa: E501
1969
- # verify the required parameter 'assembly_id' is set
1970
- if ('assembly_id' not in params or
1971
- params['assembly_id'] is None):
1972
- raise ValueError("Missing the required parameter `assembly_id` when calling `unlink_assembly`") # noqa: E501
1973
-
1974
- collection_formats = {}
1975
-
1976
- path_params = {}
1977
- if 'run_id' in params:
1978
- path_params['runId'] = params['run_id'] # noqa: E501
1979
-
1980
- query_params = []
1981
- if 'assembly_id' in params:
1982
- query_params.append(('assemblyId', params['assembly_id'])) # noqa: E501
1983
-
1984
- header_params = {}
1985
-
1986
- form_params = []
1987
- local_var_files = {}
1988
-
1989
- body_params = None
1990
- # HTTP header `Accept`
1991
- header_params['Accept'] = self.api_client.select_header_accept(
1992
- ['application/json', 'text/json']) # noqa: E501
1993
-
1994
- # Authentication setting
1995
- auth_settings = [] # noqa: E501
1996
-
1997
- return self.api_client.call_api(
1998
- '/teamdbapi/v2.0/run/{runId}/unlinkassembly', 'POST',
1999
- path_params,
2000
- query_params,
2001
- header_params,
2002
- body=body_params,
2003
- post_params=form_params,
2004
- files=local_var_files,
2005
- response_type=None, # noqa: E501
2006
- auth_settings=auth_settings,
2007
- async_req=params.get('async_req'),
2008
- _return_http_data_only=params.get('_return_http_data_only'),
2009
- _preload_content=params.get('_preload_content', True),
2010
- _request_timeout=params.get('_request_timeout'),
2011
- collection_formats=collection_formats)
2012
-
2013
- def update_assembly(self, body, assembly_id, **kwargs): # noqa: E501
2014
- """Update an assembly. The revisions list content will be ignored. You have to call AddRevisionsToAssembly to add revisions to an assembly. # noqa: E501
2015
-
2016
- This method makes a synchronous HTTP request by default. To make an
2017
- asynchronous HTTP request, please pass async_req=True
2018
- >>> thread = api.update_assembly(body, assembly_id, async_req=True)
2019
- >>> result = thread.get()
2020
-
2021
- :param async_req bool
2022
- :param Assembly body: The assembly to update. (required)
2023
- :param str assembly_id: The assembly id corresponding to the assembly you want to update. (required)
2024
- :return: Assembly
2025
- If the method is called asynchronously,
2026
- returns the request thread.
2027
- """
2028
- kwargs['_return_http_data_only'] = True
2029
- if kwargs.get('async_req'):
2030
- return self.update_assembly_with_http_info(body, assembly_id, **kwargs) # noqa: E501
2031
- else:
2032
- (data) = self.update_assembly_with_http_info(body, assembly_id, **kwargs) # noqa: E501
2033
- return data
2034
-
2035
- def update_assembly_with_http_info(self, body, assembly_id, **kwargs): # noqa: E501
2036
- """Update an assembly. The revisions list content will be ignored. You have to call AddRevisionsToAssembly to add revisions to an assembly. # noqa: E501
2037
-
2038
- This method makes a synchronous HTTP request by default. To make an
2039
- asynchronous HTTP request, please pass async_req=True
2040
- >>> thread = api.update_assembly_with_http_info(body, assembly_id, async_req=True)
2041
- >>> result = thread.get()
2042
-
2043
- :param async_req bool
2044
- :param Assembly body: The assembly to update. (required)
2045
- :param str assembly_id: The assembly id corresponding to the assembly you want to update. (required)
2046
- :return: Assembly
2047
- If the method is called asynchronously,
2048
- returns the request thread.
2049
- """
2050
-
2051
- all_params = ['body', 'assembly_id'] # noqa: E501
2052
- all_params.append('async_req')
2053
- all_params.append('_return_http_data_only')
2054
- all_params.append('_preload_content')
2055
- all_params.append('_request_timeout')
2056
-
2057
- params = locals()
2058
- for key, val in six.iteritems(params['kwargs']):
2059
- if key not in all_params:
2060
- raise TypeError(
2061
- "Got an unexpected keyword argument '%s'"
2062
- " to method update_assembly" % key
2063
- )
2064
- params[key] = val
2065
- del params['kwargs']
2066
- # verify the required parameter 'body' is set
2067
- if ('body' not in params or
2068
- params['body'] is None):
2069
- raise ValueError("Missing the required parameter `body` when calling `update_assembly`") # noqa: E501
2070
- # verify the required parameter 'assembly_id' is set
2071
- if ('assembly_id' not in params or
2072
- params['assembly_id'] is None):
2073
- raise ValueError("Missing the required parameter `assembly_id` when calling `update_assembly`") # noqa: E501
2074
-
2075
- collection_formats = {}
2076
-
2077
- path_params = {}
2078
- if 'assembly_id' in params:
2079
- path_params['assemblyId'] = params['assembly_id'] # noqa: E501
2080
-
2081
- query_params = []
2082
-
2083
- header_params = {}
2084
-
2085
- form_params = []
2086
- local_var_files = {}
2087
-
2088
- body_params = None
2089
- if 'body' in params:
2090
- body_params = params['body']
2091
- # HTTP header `Accept`
2092
- header_params['Accept'] = self.api_client.select_header_accept(
2093
- ['application/json', 'text/json']) # noqa: E501
2094
-
2095
- # HTTP header `Content-Type`
2096
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2097
- ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
2098
-
2099
- # Authentication setting
2100
- auth_settings = [] # noqa: E501
2101
-
2102
- return self.api_client.call_api(
2103
- '/teamdbapi/v2.0/assembly/{assemblyId}', 'PUT',
2104
- path_params,
2105
- query_params,
2106
- header_params,
2107
- body=body_params,
2108
- post_params=form_params,
2109
- files=local_var_files,
2110
- response_type='Assembly', # noqa: E501
2111
- auth_settings=auth_settings,
2112
- async_req=params.get('async_req'),
2113
- _return_http_data_only=params.get('_return_http_data_only'),
2114
- _preload_content=params.get('_preload_content', True),
2115
- _request_timeout=params.get('_request_timeout'),
2116
- collection_formats=collection_formats)
380
+ DiffGroup allows you to select the content of the diff file generated. You can choose A or B. By default B is selected.
381
+ :return: list[CompareResultDetail]
382
+ If the method is called asynchronously,
383
+ returns the request thread.
384
+ """
385
+
386
+ all_params = ['assembly_a_id', 'assembly_b_id', 'body'] # noqa: E501
387
+ all_params.append('async_req')
388
+ all_params.append('_return_http_data_only')
389
+ all_params.append('_preload_content')
390
+ all_params.append('_request_timeout')
391
+
392
+ params = locals()
393
+ for key, val in six.iteritems(params['kwargs']):
394
+ if key not in all_params:
395
+ raise TypeError(
396
+ "Got an unexpected keyword argument '%s'"
397
+ " to method compare_assemblies" % key
398
+ )
399
+ params[key] = val
400
+ del params['kwargs']
401
+ # verify the required parameter 'assembly_a_id' is set
402
+ if ('assembly_a_id' not in params or
403
+ params['assembly_a_id'] is None):
404
+ raise ValueError("Missing the required parameter `assembly_a_id` when calling `compare_assemblies`") # noqa: E501
405
+ # verify the required parameter 'assembly_b_id' is set
406
+ if ('assembly_b_id' not in params or
407
+ params['assembly_b_id'] is None):
408
+ raise ValueError("Missing the required parameter `assembly_b_id` when calling `compare_assemblies`") # noqa: E501
409
+
410
+ collection_formats = {}
411
+
412
+ path_params = {}
413
+
414
+ query_params = []
415
+ if 'assembly_a_id' in params:
416
+ query_params.append(('assemblyAId', params['assembly_a_id'])) # noqa: E501
417
+ if 'assembly_b_id' in params:
418
+ query_params.append(('assemblyBId', params['assembly_b_id'])) # noqa: E501
419
+
420
+ header_params = {}
421
+
422
+ form_params = []
423
+ local_var_files = {}
424
+
425
+ body_params = None
426
+ if 'body' in params:
427
+ body_params = params['body']
428
+ # HTTP header `Accept`
429
+ header_params['Accept'] = self.api_client.select_header_accept(
430
+ ['application/json', 'text/json']) # noqa: E501
431
+
432
+ # HTTP header `Content-Type`
433
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
434
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
435
+
436
+ # Authentication setting
437
+ auth_settings = [] # noqa: E501
438
+
439
+ return self.api_client.call_api(
440
+ '/teamdbapi/v2.0/assembly/compare', 'POST',
441
+ path_params,
442
+ query_params,
443
+ header_params,
444
+ body=body_params,
445
+ post_params=form_params,
446
+ files=local_var_files,
447
+ response_type='list[CompareResultDetail]', # noqa: E501
448
+ auth_settings=auth_settings,
449
+ async_req=params.get('async_req'),
450
+ _return_http_data_only=params.get('_return_http_data_only'),
451
+ _preload_content=params.get('_preload_content', True),
452
+ _request_timeout=params.get('_request_timeout'),
453
+ collection_formats=collection_formats)
454
+
455
+ def create_assembly(self, body, **kwargs): # noqa: E501
456
+ """Create an assembly. The revisions list content will be ignored. You have to call AddRevisionsToAssembly to add revisions to an assembly. # noqa: E501
457
+
458
+ Set Assembly.Id empty (00000000-0000-0000-0000-000000000000) in order to create a new assembly. # noqa: E501
459
+ This method makes a synchronous HTTP request by default. To make an
460
+ asynchronous HTTP request, please pass async_req=True
461
+ >>> thread = api.create_assembly(body, async_req=True)
462
+ >>> result = thread.get()
463
+
464
+ :param async_req bool
465
+ :param Assembly body: The assembly to create. (required)
466
+ :return: Assembly
467
+ If the method is called asynchronously,
468
+ returns the request thread.
469
+ """
470
+ kwargs['_return_http_data_only'] = True
471
+ if kwargs.get('async_req'):
472
+ return self.create_assembly_with_http_info(body, **kwargs) # noqa: E501
473
+ else:
474
+ (data) = self.create_assembly_with_http_info(body, **kwargs) # noqa: E501
475
+ return data
476
+
477
+ def create_assembly_with_http_info(self, body, **kwargs): # noqa: E501
478
+ """Create an assembly. The revisions list content will be ignored. You have to call AddRevisionsToAssembly to add revisions to an assembly. # noqa: E501
479
+
480
+ Set Assembly.Id empty (00000000-0000-0000-0000-000000000000) in order to create a new assembly. # noqa: E501
481
+ This method makes a synchronous HTTP request by default. To make an
482
+ asynchronous HTTP request, please pass async_req=True
483
+ >>> thread = api.create_assembly_with_http_info(body, async_req=True)
484
+ >>> result = thread.get()
485
+
486
+ :param async_req bool
487
+ :param Assembly body: The assembly to create. (required)
488
+ :return: Assembly
489
+ If the method is called asynchronously,
490
+ returns the request thread.
491
+ """
492
+
493
+ all_params = ['body'] # noqa: E501
494
+ all_params.append('async_req')
495
+ all_params.append('_return_http_data_only')
496
+ all_params.append('_preload_content')
497
+ all_params.append('_request_timeout')
498
+
499
+ params = locals()
500
+ for key, val in six.iteritems(params['kwargs']):
501
+ if key not in all_params:
502
+ raise TypeError(
503
+ "Got an unexpected keyword argument '%s'"
504
+ " to method create_assembly" % key
505
+ )
506
+ params[key] = val
507
+ del params['kwargs']
508
+ # verify the required parameter 'body' is set
509
+ if ('body' not in params or
510
+ params['body'] is None):
511
+ raise ValueError("Missing the required parameter `body` when calling `create_assembly`") # noqa: E501
512
+
513
+ collection_formats = {}
514
+
515
+ path_params = {}
516
+
517
+ query_params = []
518
+
519
+ header_params = {}
520
+
521
+ form_params = []
522
+ local_var_files = {}
523
+
524
+ body_params = None
525
+ if 'body' in params:
526
+ body_params = params['body']
527
+ # HTTP header `Accept`
528
+ header_params['Accept'] = self.api_client.select_header_accept(
529
+ ['application/json', 'text/json']) # noqa: E501
530
+
531
+ # HTTP header `Content-Type`
532
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
533
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
534
+
535
+ # Authentication setting
536
+ auth_settings = [] # noqa: E501
537
+
538
+ return self.api_client.call_api(
539
+ '/teamdbapi/v2.0/assembly', 'POST',
540
+ path_params,
541
+ query_params,
542
+ header_params,
543
+ body=body_params,
544
+ post_params=form_params,
545
+ files=local_var_files,
546
+ response_type='Assembly', # noqa: E501
547
+ auth_settings=auth_settings,
548
+ async_req=params.get('async_req'),
549
+ _return_http_data_only=params.get('_return_http_data_only'),
550
+ _preload_content=params.get('_preload_content', True),
551
+ _request_timeout=params.get('_request_timeout'),
552
+ collection_formats=collection_formats)
553
+
554
+ def delete_assembly(self, assembly_id, **kwargs): # noqa: E501
555
+ """Delete an assembly or group revision corresponding to a given id. # noqa: E501
556
+
557
+ This method makes a synchronous HTTP request by default. To make an
558
+ asynchronous HTTP request, please pass async_req=True
559
+ >>> thread = api.delete_assembly(assembly_id, async_req=True)
560
+ >>> result = thread.get()
561
+
562
+ :param async_req bool
563
+ :param str assembly_id: The assembly id or group revision you want to delete (required)
564
+ :return: None
565
+ If the method is called asynchronously,
566
+ returns the request thread.
567
+ """
568
+ kwargs['_return_http_data_only'] = True
569
+ if kwargs.get('async_req'):
570
+ return self.delete_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
571
+ else:
572
+ (data) = self.delete_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
573
+ return data
574
+
575
+ def delete_assembly_with_http_info(self, assembly_id, **kwargs): # noqa: E501
576
+ """Delete an assembly or group revision corresponding to a given id. # noqa: E501
577
+
578
+ This method makes a synchronous HTTP request by default. To make an
579
+ asynchronous HTTP request, please pass async_req=True
580
+ >>> thread = api.delete_assembly_with_http_info(assembly_id, async_req=True)
581
+ >>> result = thread.get()
582
+
583
+ :param async_req bool
584
+ :param str assembly_id: The assembly id or group revision you want to delete (required)
585
+ :return: None
586
+ If the method is called asynchronously,
587
+ returns the request thread.
588
+ """
589
+
590
+ all_params = ['assembly_id'] # noqa: E501
591
+ all_params.append('async_req')
592
+ all_params.append('_return_http_data_only')
593
+ all_params.append('_preload_content')
594
+ all_params.append('_request_timeout')
595
+
596
+ params = locals()
597
+ for key, val in six.iteritems(params['kwargs']):
598
+ if key not in all_params:
599
+ raise TypeError(
600
+ "Got an unexpected keyword argument '%s'"
601
+ " to method delete_assembly" % key
602
+ )
603
+ params[key] = val
604
+ del params['kwargs']
605
+ # verify the required parameter 'assembly_id' is set
606
+ if ('assembly_id' not in params or
607
+ params['assembly_id'] is None):
608
+ raise ValueError("Missing the required parameter `assembly_id` when calling `delete_assembly`") # noqa: E501
609
+
610
+ collection_formats = {}
611
+
612
+ path_params = {}
613
+ if 'assembly_id' in params:
614
+ path_params['assemblyId'] = params['assembly_id'] # noqa: E501
615
+
616
+ query_params = []
617
+
618
+ header_params = {}
619
+
620
+ form_params = []
621
+ local_var_files = {}
622
+
623
+ body_params = None
624
+ # HTTP header `Accept`
625
+ header_params['Accept'] = self.api_client.select_header_accept(
626
+ ['application/json', 'text/json']) # noqa: E501
627
+
628
+ # Authentication setting
629
+ auth_settings = [] # noqa: E501
630
+
631
+ return self.api_client.call_api(
632
+ '/teamdbapi/v2.0/assembly/{assemblyId}', 'DELETE',
633
+ path_params,
634
+ query_params,
635
+ header_params,
636
+ body=body_params,
637
+ post_params=form_params,
638
+ files=local_var_files,
639
+ response_type=None, # noqa: E501
640
+ auth_settings=auth_settings,
641
+ async_req=params.get('async_req'),
642
+ _return_http_data_only=params.get('_return_http_data_only'),
643
+ _preload_content=params.get('_preload_content', True),
644
+ _request_timeout=params.get('_request_timeout'),
645
+ collection_formats=collection_formats)
646
+
647
+ def duplicate_assembly(self, assembly_id, **kwargs): # noqa: E501
648
+ """Duplicate an existing assembly. Set the flag \"withLogs\" to True to duplicate Logs as well. # noqa: E501
649
+
650
+ This method makes a synchronous HTTP request by default. To make an
651
+ asynchronous HTTP request, please pass async_req=True
652
+ >>> thread = api.duplicate_assembly(assembly_id, async_req=True)
653
+ >>> result = thread.get()
654
+
655
+ :param async_req bool
656
+ :param str assembly_id: The assembly id to copy. (required)
657
+ :param bool with_logs: Flag indicating if the logs should also be duplicated.
658
+ :return: Assembly
659
+ If the method is called asynchronously,
660
+ returns the request thread.
661
+ """
662
+ kwargs['_return_http_data_only'] = True
663
+ if kwargs.get('async_req'):
664
+ return self.duplicate_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
665
+ else:
666
+ (data) = self.duplicate_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
667
+ return data
668
+
669
+ def duplicate_assembly_with_http_info(self, assembly_id, **kwargs): # noqa: E501
670
+ """Duplicate an existing assembly. Set the flag \"withLogs\" to True to duplicate Logs as well. # noqa: E501
671
+
672
+ This method makes a synchronous HTTP request by default. To make an
673
+ asynchronous HTTP request, please pass async_req=True
674
+ >>> thread = api.duplicate_assembly_with_http_info(assembly_id, async_req=True)
675
+ >>> result = thread.get()
676
+
677
+ :param async_req bool
678
+ :param str assembly_id: The assembly id to copy. (required)
679
+ :param bool with_logs: Flag indicating if the logs should also be duplicated.
680
+ :return: Assembly
681
+ If the method is called asynchronously,
682
+ returns the request thread.
683
+ """
684
+
685
+ all_params = ['assembly_id', 'with_logs'] # noqa: E501
686
+ all_params.append('async_req')
687
+ all_params.append('_return_http_data_only')
688
+ all_params.append('_preload_content')
689
+ all_params.append('_request_timeout')
690
+
691
+ params = locals()
692
+ for key, val in six.iteritems(params['kwargs']):
693
+ if key not in all_params:
694
+ raise TypeError(
695
+ "Got an unexpected keyword argument '%s'"
696
+ " to method duplicate_assembly" % key
697
+ )
698
+ params[key] = val
699
+ del params['kwargs']
700
+ # verify the required parameter 'assembly_id' is set
701
+ if ('assembly_id' not in params or
702
+ params['assembly_id'] is None):
703
+ raise ValueError("Missing the required parameter `assembly_id` when calling `duplicate_assembly`") # noqa: E501
704
+
705
+ collection_formats = {}
706
+
707
+ path_params = {}
708
+ if 'assembly_id' in params:
709
+ path_params['assemblyId'] = params['assembly_id'] # noqa: E501
710
+
711
+ query_params = []
712
+ if 'with_logs' in params:
713
+ query_params.append(('withLogs', params['with_logs'])) # noqa: E501
714
+
715
+ header_params = {}
716
+
717
+ form_params = []
718
+ local_var_files = {}
719
+
720
+ body_params = None
721
+ # HTTP header `Accept`
722
+ header_params['Accept'] = self.api_client.select_header_accept(
723
+ ['application/json', 'text/json']) # noqa: E501
724
+
725
+ # Authentication setting
726
+ auth_settings = [] # noqa: E501
727
+
728
+ return self.api_client.call_api(
729
+ '/teamdbapi/v2.0/assembly/{assemblyId}/duplicate', 'POST',
730
+ path_params,
731
+ query_params,
732
+ header_params,
733
+ body=body_params,
734
+ post_params=form_params,
735
+ files=local_var_files,
736
+ response_type='Assembly', # noqa: E501
737
+ auth_settings=auth_settings,
738
+ async_req=params.get('async_req'),
739
+ _return_http_data_only=params.get('_return_http_data_only'),
740
+ _preload_content=params.get('_preload_content', True),
741
+ _request_timeout=params.get('_request_timeout'),
742
+ collection_formats=collection_formats)
743
+
744
+ def export_assembly(self, assembly_id, output_file_path, **kwargs): # noqa: E501
745
+ """[Command] Export an assembly into a file # noqa: E501
746
+
747
+ This method makes a synchronous HTTP request by default. To make an
748
+ asynchronous HTTP request, please pass async_req=True
749
+ >>> thread = api.export_assembly(assembly_id, output_file_path, async_req=True)
750
+ >>> result = thread.get()
751
+
752
+ :param async_req bool
753
+ :param str assembly_id: The unique assembly id corresponding to the assembly to export. (required)
754
+ :param str output_file_path: The path to the file to create. You have to provide the file extension for example : MyFile.m (required)
755
+ :return: bool
756
+ If the method is called asynchronously,
757
+ returns the request thread.
758
+ """
759
+ kwargs['_return_http_data_only'] = True
760
+ if kwargs.get('async_req'):
761
+ return self.export_assembly_with_http_info(assembly_id, output_file_path, **kwargs) # noqa: E501
762
+ else:
763
+ (data) = self.export_assembly_with_http_info(assembly_id, output_file_path, **kwargs) # noqa: E501
764
+ return data
765
+
766
+ def export_assembly_with_http_info(self, assembly_id, output_file_path, **kwargs): # noqa: E501
767
+ """[Command] Export an assembly into a file # noqa: E501
768
+
769
+ This method makes a synchronous HTTP request by default. To make an
770
+ asynchronous HTTP request, please pass async_req=True
771
+ >>> thread = api.export_assembly_with_http_info(assembly_id, output_file_path, async_req=True)
772
+ >>> result = thread.get()
773
+
774
+ :param async_req bool
775
+ :param str assembly_id: The unique assembly id corresponding to the assembly to export. (required)
776
+ :param str output_file_path: The path to the file to create. You have to provide the file extension for example : MyFile.m (required)
777
+ :return: bool
778
+ If the method is called asynchronously,
779
+ returns the request thread.
780
+ """
781
+
782
+ all_params = ['assembly_id', 'output_file_path'] # noqa: E501
783
+ all_params.append('async_req')
784
+ all_params.append('_return_http_data_only')
785
+ all_params.append('_preload_content')
786
+ all_params.append('_request_timeout')
787
+
788
+ params = locals()
789
+ for key, val in six.iteritems(params['kwargs']):
790
+ if key not in all_params:
791
+ raise TypeError(
792
+ "Got an unexpected keyword argument '%s'"
793
+ " to method export_assembly" % key
794
+ )
795
+ params[key] = val
796
+ del params['kwargs']
797
+ # verify the required parameter 'assembly_id' is set
798
+ if ('assembly_id' not in params or
799
+ params['assembly_id'] is None):
800
+ raise ValueError("Missing the required parameter `assembly_id` when calling `export_assembly`") # noqa: E501
801
+ # verify the required parameter 'output_file_path' is set
802
+ if ('output_file_path' not in params or
803
+ params['output_file_path'] is None):
804
+ raise ValueError("Missing the required parameter `output_file_path` when calling `export_assembly`") # noqa: E501
805
+
806
+ collection_formats = {}
807
+
808
+ path_params = {}
809
+ if 'assembly_id' in params:
810
+ path_params['assemblyId'] = params['assembly_id'] # noqa: E501
811
+
812
+ query_params = []
813
+ if 'output_file_path' in params:
814
+ query_params.append(('outputFilePath', params['output_file_path'])) # noqa: E501
815
+
816
+ header_params = {}
817
+
818
+ form_params = []
819
+ local_var_files = {}
820
+
821
+ body_params = None
822
+ # HTTP header `Accept`
823
+ header_params['Accept'] = self.api_client.select_header_accept(
824
+ ['application/json', 'text/json']) # noqa: E501
825
+
826
+ # Authentication setting
827
+ auth_settings = [] # noqa: E501
828
+
829
+ return self.api_client.call_api(
830
+ '/teamdbapi/v2.0/assembly/{assemblyId}/export', 'POST',
831
+ path_params,
832
+ query_params,
833
+ header_params,
834
+ body=body_params,
835
+ post_params=form_params,
836
+ files=local_var_files,
837
+ response_type='bool', # noqa: E501
838
+ auth_settings=auth_settings,
839
+ async_req=params.get('async_req'),
840
+ _return_http_data_only=params.get('_return_http_data_only'),
841
+ _preload_content=params.get('_preload_content', True),
842
+ _request_timeout=params.get('_request_timeout'),
843
+ collection_formats=collection_formats)
844
+
845
+ def get_assemblies(self, version_id, **kwargs): # noqa: E501
846
+ """Get all assemblies for a given version # noqa: E501
847
+
848
+ This method makes a synchronous HTTP request by default. To make an
849
+ asynchronous HTTP request, please pass async_req=True
850
+ >>> thread = api.get_assemblies(version_id, async_req=True)
851
+ >>> result = thread.get()
852
+
853
+ :param async_req bool
854
+ :param str version_id: the version id to wich you want the assemblies. (required)
855
+ :return: list[Assembly]
856
+ If the method is called asynchronously,
857
+ returns the request thread.
858
+ """
859
+ kwargs['_return_http_data_only'] = True
860
+ if kwargs.get('async_req'):
861
+ return self.get_assemblies_with_http_info(version_id, **kwargs) # noqa: E501
862
+ else:
863
+ (data) = self.get_assemblies_with_http_info(version_id, **kwargs) # noqa: E501
864
+ return data
865
+
866
+ def get_assemblies_with_http_info(self, version_id, **kwargs): # noqa: E501
867
+ """Get all assemblies for a given version # noqa: E501
868
+
869
+ This method makes a synchronous HTTP request by default. To make an
870
+ asynchronous HTTP request, please pass async_req=True
871
+ >>> thread = api.get_assemblies_with_http_info(version_id, async_req=True)
872
+ >>> result = thread.get()
873
+
874
+ :param async_req bool
875
+ :param str version_id: the version id to wich you want the assemblies. (required)
876
+ :return: list[Assembly]
877
+ If the method is called asynchronously,
878
+ returns the request thread.
879
+ """
880
+
881
+ all_params = ['version_id'] # noqa: E501
882
+ all_params.append('async_req')
883
+ all_params.append('_return_http_data_only')
884
+ all_params.append('_preload_content')
885
+ all_params.append('_request_timeout')
886
+
887
+ params = locals()
888
+ for key, val in six.iteritems(params['kwargs']):
889
+ if key not in all_params:
890
+ raise TypeError(
891
+ "Got an unexpected keyword argument '%s'"
892
+ " to method get_assemblies" % key
893
+ )
894
+ params[key] = val
895
+ del params['kwargs']
896
+ # verify the required parameter 'version_id' is set
897
+ if ('version_id' not in params or
898
+ params['version_id'] is None):
899
+ raise ValueError("Missing the required parameter `version_id` when calling `get_assemblies`") # noqa: E501
900
+
901
+ collection_formats = {}
902
+
903
+ path_params = {}
904
+ if 'version_id' in params:
905
+ path_params['versionId'] = params['version_id'] # noqa: E501
906
+
907
+ query_params = []
908
+
909
+ header_params = {}
910
+
911
+ form_params = []
912
+ local_var_files = {}
913
+
914
+ body_params = None
915
+ # HTTP header `Accept`
916
+ header_params['Accept'] = self.api_client.select_header_accept(
917
+ ['application/json', 'text/json']) # noqa: E501
918
+
919
+ # Authentication setting
920
+ auth_settings = [] # noqa: E501
921
+
922
+ return self.api_client.call_api(
923
+ '/teamdbapi/v2.0/version/{versionId}/assemblies', 'GET',
924
+ path_params,
925
+ query_params,
926
+ header_params,
927
+ body=body_params,
928
+ post_params=form_params,
929
+ files=local_var_files,
930
+ response_type='list[Assembly]', # noqa: E501
931
+ auth_settings=auth_settings,
932
+ async_req=params.get('async_req'),
933
+ _return_http_data_only=params.get('_return_http_data_only'),
934
+ _preload_content=params.get('_preload_content', True),
935
+ _request_timeout=params.get('_request_timeout'),
936
+ collection_formats=collection_formats)
937
+
938
+ def get_assembly(self, assembly_id, **kwargs): # noqa: E501
939
+ """Get an assembly for a given id # noqa: E501
940
+
941
+ This method makes a synchronous HTTP request by default. To make an
942
+ asynchronous HTTP request, please pass async_req=True
943
+ >>> thread = api.get_assembly(assembly_id, async_req=True)
944
+ >>> result = thread.get()
945
+
946
+ :param async_req bool
947
+ :param str assembly_id: the unique id of the assembly. (required)
948
+ :return: Assembly
949
+ If the method is called asynchronously,
950
+ returns the request thread.
951
+ """
952
+ kwargs['_return_http_data_only'] = True
953
+ if kwargs.get('async_req'):
954
+ return self.get_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
955
+ else:
956
+ (data) = self.get_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
957
+ return data
958
+
959
+ def get_assembly_with_http_info(self, assembly_id, **kwargs): # noqa: E501
960
+ """Get an assembly for a given id # noqa: E501
961
+
962
+ This method makes a synchronous HTTP request by default. To make an
963
+ asynchronous HTTP request, please pass async_req=True
964
+ >>> thread = api.get_assembly_with_http_info(assembly_id, async_req=True)
965
+ >>> result = thread.get()
966
+
967
+ :param async_req bool
968
+ :param str assembly_id: the unique id of the assembly. (required)
969
+ :return: Assembly
970
+ If the method is called asynchronously,
971
+ returns the request thread.
972
+ """
973
+
974
+ all_params = ['assembly_id'] # noqa: E501
975
+ all_params.append('async_req')
976
+ all_params.append('_return_http_data_only')
977
+ all_params.append('_preload_content')
978
+ all_params.append('_request_timeout')
979
+
980
+ params = locals()
981
+ for key, val in six.iteritems(params['kwargs']):
982
+ if key not in all_params:
983
+ raise TypeError(
984
+ "Got an unexpected keyword argument '%s'"
985
+ " to method get_assembly" % key
986
+ )
987
+ params[key] = val
988
+ del params['kwargs']
989
+ # verify the required parameter 'assembly_id' is set
990
+ if ('assembly_id' not in params or
991
+ params['assembly_id'] is None):
992
+ raise ValueError("Missing the required parameter `assembly_id` when calling `get_assembly`") # noqa: E501
993
+
994
+ collection_formats = {}
995
+
996
+ path_params = {}
997
+ if 'assembly_id' in params:
998
+ path_params['assemblyId'] = params['assembly_id'] # noqa: E501
999
+
1000
+ query_params = []
1001
+
1002
+ header_params = {}
1003
+
1004
+ form_params = []
1005
+ local_var_files = {}
1006
+
1007
+ body_params = None
1008
+ # HTTP header `Accept`
1009
+ header_params['Accept'] = self.api_client.select_header_accept(
1010
+ ['application/json', 'text/json']) # noqa: E501
1011
+
1012
+ # Authentication setting
1013
+ auth_settings = [] # noqa: E501
1014
+
1015
+ return self.api_client.call_api(
1016
+ '/teamdbapi/v2.0/assembly/{assemblyId}', 'GET',
1017
+ path_params,
1018
+ query_params,
1019
+ header_params,
1020
+ body=body_params,
1021
+ post_params=form_params,
1022
+ files=local_var_files,
1023
+ response_type='Assembly', # noqa: E501
1024
+ auth_settings=auth_settings,
1025
+ async_req=params.get('async_req'),
1026
+ _return_http_data_only=params.get('_return_http_data_only'),
1027
+ _preload_content=params.get('_preload_content', True),
1028
+ _request_timeout=params.get('_request_timeout'),
1029
+ collection_formats=collection_formats)
1030
+
1031
+ def get_current_assembly(self, **kwargs): # noqa: E501
1032
+ """Get the current selected assembly # noqa: E501
1033
+
1034
+ This method makes a synchronous HTTP request by default. To make an
1035
+ asynchronous HTTP request, please pass async_req=True
1036
+ >>> thread = api.get_current_assembly(async_req=True)
1037
+ >>> result = thread.get()
1038
+
1039
+ :param async_req bool
1040
+ :return: Assembly
1041
+ If the method is called asynchronously,
1042
+ returns the request thread.
1043
+ """
1044
+ kwargs['_return_http_data_only'] = True
1045
+ if kwargs.get('async_req'):
1046
+ return self.get_current_assembly_with_http_info(**kwargs) # noqa: E501
1047
+ else:
1048
+ (data) = self.get_current_assembly_with_http_info(**kwargs) # noqa: E501
1049
+ return data
1050
+
1051
+ def get_current_assembly_with_http_info(self, **kwargs): # noqa: E501
1052
+ """Get the current selected assembly # noqa: E501
1053
+
1054
+ This method makes a synchronous HTTP request by default. To make an
1055
+ asynchronous HTTP request, please pass async_req=True
1056
+ >>> thread = api.get_current_assembly_with_http_info(async_req=True)
1057
+ >>> result = thread.get()
1058
+
1059
+ :param async_req bool
1060
+ :return: Assembly
1061
+ If the method is called asynchronously,
1062
+ returns the request thread.
1063
+ """
1064
+
1065
+ all_params = [] # noqa: E501
1066
+ all_params.append('async_req')
1067
+ all_params.append('_return_http_data_only')
1068
+ all_params.append('_preload_content')
1069
+ all_params.append('_request_timeout')
1070
+
1071
+ params = locals()
1072
+ for key, val in six.iteritems(params['kwargs']):
1073
+ if key not in all_params:
1074
+ raise TypeError(
1075
+ "Got an unexpected keyword argument '%s'"
1076
+ " to method get_current_assembly" % key
1077
+ )
1078
+ params[key] = val
1079
+ del params['kwargs']
1080
+
1081
+ collection_formats = {}
1082
+
1083
+ path_params = {}
1084
+
1085
+ query_params = []
1086
+
1087
+ header_params = {}
1088
+
1089
+ form_params = []
1090
+ local_var_files = {}
1091
+
1092
+ body_params = None
1093
+ # HTTP header `Accept`
1094
+ header_params['Accept'] = self.api_client.select_header_accept(
1095
+ ['application/json', 'text/json']) # noqa: E501
1096
+
1097
+ # Authentication setting
1098
+ auth_settings = [] # noqa: E501
1099
+
1100
+ return self.api_client.call_api(
1101
+ '/teamdbapi/v2.0/assembly/current', 'GET',
1102
+ path_params,
1103
+ query_params,
1104
+ header_params,
1105
+ body=body_params,
1106
+ post_params=form_params,
1107
+ files=local_var_files,
1108
+ response_type='Assembly', # noqa: E501
1109
+ auth_settings=auth_settings,
1110
+ async_req=params.get('async_req'),
1111
+ _return_http_data_only=params.get('_return_http_data_only'),
1112
+ _preload_content=params.get('_preload_content', True),
1113
+ _request_timeout=params.get('_request_timeout'),
1114
+ collection_formats=collection_formats)
1115
+
1116
+ def get_group_revisions(self, assembly_id, **kwargs): # noqa: E501
1117
+ """Get a list of group revisions (sub assemblies linked to a group) that are setted to a given assembly # noqa: E501
1118
+
1119
+ This method makes a synchronous HTTP request by default. To make an
1120
+ asynchronous HTTP request, please pass async_req=True
1121
+ >>> thread = api.get_group_revisions(assembly_id, async_req=True)
1122
+ >>> result = thread.get()
1123
+
1124
+ :param async_req bool
1125
+ :param str assembly_id: The unique assembly id to which you search the linked group revisions (required)
1126
+ :return: list[Assembly]
1127
+ If the method is called asynchronously,
1128
+ returns the request thread.
1129
+ """
1130
+ kwargs['_return_http_data_only'] = True
1131
+ if kwargs.get('async_req'):
1132
+ return self.get_group_revisions_with_http_info(assembly_id, **kwargs) # noqa: E501
1133
+ else:
1134
+ (data) = self.get_group_revisions_with_http_info(assembly_id, **kwargs) # noqa: E501
1135
+ return data
1136
+
1137
+ def get_group_revisions_with_http_info(self, assembly_id, **kwargs): # noqa: E501
1138
+ """Get a list of group revisions (sub assemblies linked to a group) that are setted to a given assembly # noqa: E501
1139
+
1140
+ This method makes a synchronous HTTP request by default. To make an
1141
+ asynchronous HTTP request, please pass async_req=True
1142
+ >>> thread = api.get_group_revisions_with_http_info(assembly_id, async_req=True)
1143
+ >>> result = thread.get()
1144
+
1145
+ :param async_req bool
1146
+ :param str assembly_id: The unique assembly id to which you search the linked group revisions (required)
1147
+ :return: list[Assembly]
1148
+ If the method is called asynchronously,
1149
+ returns the request thread.
1150
+ """
1151
+
1152
+ all_params = ['assembly_id'] # noqa: E501
1153
+ all_params.append('async_req')
1154
+ all_params.append('_return_http_data_only')
1155
+ all_params.append('_preload_content')
1156
+ all_params.append('_request_timeout')
1157
+
1158
+ params = locals()
1159
+ for key, val in six.iteritems(params['kwargs']):
1160
+ if key not in all_params:
1161
+ raise TypeError(
1162
+ "Got an unexpected keyword argument '%s'"
1163
+ " to method get_group_revisions" % key
1164
+ )
1165
+ params[key] = val
1166
+ del params['kwargs']
1167
+ # verify the required parameter 'assembly_id' is set
1168
+ if ('assembly_id' not in params or
1169
+ params['assembly_id'] is None):
1170
+ raise ValueError("Missing the required parameter `assembly_id` when calling `get_group_revisions`") # noqa: E501
1171
+
1172
+ collection_formats = {}
1173
+
1174
+ path_params = {}
1175
+ if 'assembly_id' in params:
1176
+ path_params['assemblyId'] = params['assembly_id'] # noqa: E501
1177
+
1178
+ query_params = []
1179
+
1180
+ header_params = {}
1181
+
1182
+ form_params = []
1183
+ local_var_files = {}
1184
+
1185
+ body_params = None
1186
+ # HTTP header `Accept`
1187
+ header_params['Accept'] = self.api_client.select_header_accept(
1188
+ ['application/json', 'text/json']) # noqa: E501
1189
+
1190
+ # Authentication setting
1191
+ auth_settings = [] # noqa: E501
1192
+
1193
+ return self.api_client.call_api(
1194
+ '/teamdbapi/v2.0/assembly/{assemblyId}/grouprevisions', 'GET',
1195
+ path_params,
1196
+ query_params,
1197
+ header_params,
1198
+ body=body_params,
1199
+ post_params=form_params,
1200
+ files=local_var_files,
1201
+ response_type='list[Assembly]', # noqa: E501
1202
+ auth_settings=auth_settings,
1203
+ async_req=params.get('async_req'),
1204
+ _return_http_data_only=params.get('_return_http_data_only'),
1205
+ _preload_content=params.get('_preload_content', True),
1206
+ _request_timeout=params.get('_request_timeout'),
1207
+ collection_formats=collection_formats)
1208
+
1209
+ def get_group_revisions_in_assembly_and_group(self, assembly_id, group_id, **kwargs): # noqa: E501
1210
+ """Get a list of group revisions (sub assemblies linked to a group) setted to a given assembly and group # noqa: E501
1211
+
1212
+ This method makes a synchronous HTTP request by default. To make an
1213
+ asynchronous HTTP request, please pass async_req=True
1214
+ >>> thread = api.get_group_revisions_in_assembly_and_group(assembly_id, group_id, async_req=True)
1215
+ >>> result = thread.get()
1216
+
1217
+ :param async_req bool
1218
+ :param str assembly_id: The unique assembly id to which you search the linked group revisions (required)
1219
+ :param str group_id: The unique group id where the group revision are linked (required)
1220
+ :return: list[Assembly]
1221
+ If the method is called asynchronously,
1222
+ returns the request thread.
1223
+ """
1224
+ kwargs['_return_http_data_only'] = True
1225
+ if kwargs.get('async_req'):
1226
+ return self.get_group_revisions_in_assembly_and_group_with_http_info(assembly_id, group_id, **kwargs) # noqa: E501
1227
+ else:
1228
+ (data) = self.get_group_revisions_in_assembly_and_group_with_http_info(assembly_id, group_id, **kwargs) # noqa: E501
1229
+ return data
1230
+
1231
+ def get_group_revisions_in_assembly_and_group_with_http_info(self, assembly_id, group_id, **kwargs): # noqa: E501
1232
+ """Get a list of group revisions (sub assemblies linked to a group) setted to a given assembly and group # noqa: E501
1233
+
1234
+ This method makes a synchronous HTTP request by default. To make an
1235
+ asynchronous HTTP request, please pass async_req=True
1236
+ >>> thread = api.get_group_revisions_in_assembly_and_group_with_http_info(assembly_id, group_id, async_req=True)
1237
+ >>> result = thread.get()
1238
+
1239
+ :param async_req bool
1240
+ :param str assembly_id: The unique assembly id to which you search the linked group revisions (required)
1241
+ :param str group_id: The unique group id where the group revision are linked (required)
1242
+ :return: list[Assembly]
1243
+ If the method is called asynchronously,
1244
+ returns the request thread.
1245
+ """
1246
+
1247
+ all_params = ['assembly_id', 'group_id'] # noqa: E501
1248
+ all_params.append('async_req')
1249
+ all_params.append('_return_http_data_only')
1250
+ all_params.append('_preload_content')
1251
+ all_params.append('_request_timeout')
1252
+
1253
+ params = locals()
1254
+ for key, val in six.iteritems(params['kwargs']):
1255
+ if key not in all_params:
1256
+ raise TypeError(
1257
+ "Got an unexpected keyword argument '%s'"
1258
+ " to method get_group_revisions_in_assembly_and_group" % key
1259
+ )
1260
+ params[key] = val
1261
+ del params['kwargs']
1262
+ # verify the required parameter 'assembly_id' is set
1263
+ if ('assembly_id' not in params or
1264
+ params['assembly_id'] is None):
1265
+ raise ValueError("Missing the required parameter `assembly_id` when calling `get_group_revisions_in_assembly_and_group`") # noqa: E501
1266
+ # verify the required parameter 'group_id' is set
1267
+ if ('group_id' not in params or
1268
+ params['group_id'] is None):
1269
+ raise ValueError("Missing the required parameter `group_id` when calling `get_group_revisions_in_assembly_and_group`") # noqa: E501
1270
+
1271
+ collection_formats = {}
1272
+
1273
+ path_params = {}
1274
+ if 'assembly_id' in params:
1275
+ path_params['assemblyId'] = params['assembly_id'] # noqa: E501
1276
+ if 'group_id' in params:
1277
+ path_params['groupId'] = params['group_id'] # noqa: E501
1278
+
1279
+ query_params = []
1280
+
1281
+ header_params = {}
1282
+
1283
+ form_params = []
1284
+ local_var_files = {}
1285
+
1286
+ body_params = None
1287
+ # HTTP header `Accept`
1288
+ header_params['Accept'] = self.api_client.select_header_accept(
1289
+ ['application/json', 'text/json']) # noqa: E501
1290
+
1291
+ # Authentication setting
1292
+ auth_settings = [] # noqa: E501
1293
+
1294
+ return self.api_client.call_api(
1295
+ '/teamdbapi/v2.0/assembly/{assemblyId}/group/{groupId}/revisions', 'GET',
1296
+ path_params,
1297
+ query_params,
1298
+ header_params,
1299
+ body=body_params,
1300
+ post_params=form_params,
1301
+ files=local_var_files,
1302
+ response_type='list[Assembly]', # noqa: E501
1303
+ auth_settings=auth_settings,
1304
+ async_req=params.get('async_req'),
1305
+ _return_http_data_only=params.get('_return_http_data_only'),
1306
+ _preload_content=params.get('_preload_content', True),
1307
+ _request_timeout=params.get('_request_timeout'),
1308
+ collection_formats=collection_formats)
1309
+
1310
+ def import_assembly(self, **kwargs): # noqa: E501
1311
+ """Create a new assembly by importing a definition file. This will also create the new revisions. # noqa: E501
1312
+
1313
+ This method makes a synchronous HTTP request by default. To make an
1314
+ asynchronous HTTP request, please pass async_req=True
1315
+ >>> thread = api.import_assembly(async_req=True)
1316
+ >>> result = thread.get()
1317
+
1318
+ :param async_req bool
1319
+ :param str version_id: The version id to which the new assembly will belong
1320
+ :param str assembly_name: The assembly name to create
1321
+ :param str revision_name: The default revision name used to create the new revisions
1322
+ :param str file_path: The file path containing the parameters
1323
+ :return: Assembly
1324
+ If the method is called asynchronously,
1325
+ returns the request thread.
1326
+ """
1327
+ kwargs['_return_http_data_only'] = True
1328
+ if kwargs.get('async_req'):
1329
+ return self.import_assembly_with_http_info(**kwargs) # noqa: E501
1330
+ else:
1331
+ (data) = self.import_assembly_with_http_info(**kwargs) # noqa: E501
1332
+ return data
1333
+
1334
+ def import_assembly_with_http_info(self, **kwargs): # noqa: E501
1335
+ """Create a new assembly by importing a definition file. This will also create the new revisions. # noqa: E501
1336
+
1337
+ This method makes a synchronous HTTP request by default. To make an
1338
+ asynchronous HTTP request, please pass async_req=True
1339
+ >>> thread = api.import_assembly_with_http_info(async_req=True)
1340
+ >>> result = thread.get()
1341
+
1342
+ :param async_req bool
1343
+ :param str version_id: The version id to which the new assembly will belong
1344
+ :param str assembly_name: The assembly name to create
1345
+ :param str revision_name: The default revision name used to create the new revisions
1346
+ :param str file_path: The file path containing the parameters
1347
+ :return: Assembly
1348
+ If the method is called asynchronously,
1349
+ returns the request thread.
1350
+ """
1351
+
1352
+ all_params = ['version_id', 'assembly_name', 'revision_name', 'file_path'] # noqa: E501
1353
+ all_params.append('async_req')
1354
+ all_params.append('_return_http_data_only')
1355
+ all_params.append('_preload_content')
1356
+ all_params.append('_request_timeout')
1357
+
1358
+ params = locals()
1359
+ for key, val in six.iteritems(params['kwargs']):
1360
+ if key not in all_params:
1361
+ raise TypeError(
1362
+ "Got an unexpected keyword argument '%s'"
1363
+ " to method import_assembly" % key
1364
+ )
1365
+ params[key] = val
1366
+ del params['kwargs']
1367
+
1368
+ collection_formats = {}
1369
+
1370
+ path_params = {}
1371
+
1372
+ query_params = []
1373
+ if 'version_id' in params:
1374
+ query_params.append(('versionId', params['version_id'])) # noqa: E501
1375
+ if 'assembly_name' in params:
1376
+ query_params.append(('assemblyName', params['assembly_name'])) # noqa: E501
1377
+ if 'revision_name' in params:
1378
+ query_params.append(('revisionName', params['revision_name'])) # noqa: E501
1379
+ if 'file_path' in params:
1380
+ query_params.append(('filePath', params['file_path'])) # noqa: E501
1381
+
1382
+ header_params = {}
1383
+
1384
+ form_params = []
1385
+ local_var_files = {}
1386
+
1387
+ body_params = None
1388
+ # HTTP header `Accept`
1389
+ header_params['Accept'] = self.api_client.select_header_accept(
1390
+ ['application/json', 'text/json']) # noqa: E501
1391
+
1392
+ # Authentication setting
1393
+ auth_settings = [] # noqa: E501
1394
+
1395
+ return self.api_client.call_api(
1396
+ '/teamdbapi/v2.0/assembly/import', 'POST',
1397
+ path_params,
1398
+ query_params,
1399
+ header_params,
1400
+ body=body_params,
1401
+ post_params=form_params,
1402
+ files=local_var_files,
1403
+ response_type='Assembly', # noqa: E501
1404
+ auth_settings=auth_settings,
1405
+ async_req=params.get('async_req'),
1406
+ _return_http_data_only=params.get('_return_http_data_only'),
1407
+ _preload_content=params.get('_preload_content', True),
1408
+ _request_timeout=params.get('_request_timeout'),
1409
+ collection_formats=collection_formats)
1410
+
1411
+ def link_run_to_assembly(self, run_id, assembly_id, **kwargs): # noqa: E501
1412
+ """[Command] Link a run to an assembly # noqa: E501
1413
+
1414
+ This method makes a synchronous HTTP request by default. To make an
1415
+ asynchronous HTTP request, please pass async_req=True
1416
+ >>> thread = api.link_run_to_assembly(run_id, assembly_id, async_req=True)
1417
+ >>> result = thread.get()
1418
+
1419
+ :param async_req bool
1420
+ :param str run_id: The Id of the Run to link (required)
1421
+ :param str assembly_id: The Id of the Assembly to link (required)
1422
+ :return: None
1423
+ If the method is called asynchronously,
1424
+ returns the request thread.
1425
+ """
1426
+ kwargs['_return_http_data_only'] = True
1427
+ if kwargs.get('async_req'):
1428
+ return self.link_run_to_assembly_with_http_info(run_id, assembly_id, **kwargs) # noqa: E501
1429
+ else:
1430
+ (data) = self.link_run_to_assembly_with_http_info(run_id, assembly_id, **kwargs) # noqa: E501
1431
+ return data
1432
+
1433
+ def link_run_to_assembly_with_http_info(self, run_id, assembly_id, **kwargs): # noqa: E501
1434
+ """[Command] Link a run to an assembly # noqa: E501
1435
+
1436
+ This method makes a synchronous HTTP request by default. To make an
1437
+ asynchronous HTTP request, please pass async_req=True
1438
+ >>> thread = api.link_run_to_assembly_with_http_info(run_id, assembly_id, async_req=True)
1439
+ >>> result = thread.get()
1440
+
1441
+ :param async_req bool
1442
+ :param str run_id: The Id of the Run to link (required)
1443
+ :param str assembly_id: The Id of the Assembly to link (required)
1444
+ :return: None
1445
+ If the method is called asynchronously,
1446
+ returns the request thread.
1447
+ """
1448
+
1449
+ all_params = ['run_id', 'assembly_id'] # noqa: E501
1450
+ all_params.append('async_req')
1451
+ all_params.append('_return_http_data_only')
1452
+ all_params.append('_preload_content')
1453
+ all_params.append('_request_timeout')
1454
+
1455
+ params = locals()
1456
+ for key, val in six.iteritems(params['kwargs']):
1457
+ if key not in all_params:
1458
+ raise TypeError(
1459
+ "Got an unexpected keyword argument '%s'"
1460
+ " to method link_run_to_assembly" % key
1461
+ )
1462
+ params[key] = val
1463
+ del params['kwargs']
1464
+ # verify the required parameter 'run_id' is set
1465
+ if ('run_id' not in params or
1466
+ params['run_id'] is None):
1467
+ raise ValueError("Missing the required parameter `run_id` when calling `link_run_to_assembly`") # noqa: E501
1468
+ # verify the required parameter 'assembly_id' is set
1469
+ if ('assembly_id' not in params or
1470
+ params['assembly_id'] is None):
1471
+ raise ValueError("Missing the required parameter `assembly_id` when calling `link_run_to_assembly`") # noqa: E501
1472
+
1473
+ collection_formats = {}
1474
+
1475
+ path_params = {}
1476
+ if 'run_id' in params:
1477
+ path_params['runId'] = params['run_id'] # noqa: E501
1478
+
1479
+ query_params = []
1480
+ if 'assembly_id' in params:
1481
+ query_params.append(('assemblyId', params['assembly_id'])) # noqa: E501
1482
+
1483
+ header_params = {}
1484
+
1485
+ form_params = []
1486
+ local_var_files = {}
1487
+
1488
+ body_params = None
1489
+ # HTTP header `Accept`
1490
+ header_params['Accept'] = self.api_client.select_header_accept(
1491
+ ['application/json', 'text/json']) # noqa: E501
1492
+
1493
+ # Authentication setting
1494
+ auth_settings = [] # noqa: E501
1495
+
1496
+ return self.api_client.call_api(
1497
+ '/teamdbapi/v2.0/run/{runId}/linkassembly', 'POST',
1498
+ path_params,
1499
+ query_params,
1500
+ header_params,
1501
+ body=body_params,
1502
+ post_params=form_params,
1503
+ files=local_var_files,
1504
+ response_type=None, # noqa: E501
1505
+ auth_settings=auth_settings,
1506
+ async_req=params.get('async_req'),
1507
+ _return_http_data_only=params.get('_return_http_data_only'),
1508
+ _preload_content=params.get('_preload_content', True),
1509
+ _request_timeout=params.get('_request_timeout'),
1510
+ collection_formats=collection_formats)
1511
+
1512
+ def lock_assembly(self, assembly_id, locked, **kwargs): # noqa: E501
1513
+ """[Command] Lock an assembly. # noqa: E501
1514
+
1515
+ This method makes a synchronous HTTP request by default. To make an
1516
+ asynchronous HTTP request, please pass async_req=True
1517
+ >>> thread = api.lock_assembly(assembly_id, locked, async_req=True)
1518
+ >>> result = thread.get()
1519
+
1520
+ :param async_req bool
1521
+ :param str assembly_id: The assembly id to edit. (required)
1522
+ :param bool locked: True to lock the assembly, False to unlock (required)
1523
+ :return: Assembly
1524
+ If the method is called asynchronously,
1525
+ returns the request thread.
1526
+ """
1527
+ kwargs['_return_http_data_only'] = True
1528
+ if kwargs.get('async_req'):
1529
+ return self.lock_assembly_with_http_info(assembly_id, locked, **kwargs) # noqa: E501
1530
+ else:
1531
+ (data) = self.lock_assembly_with_http_info(assembly_id, locked, **kwargs) # noqa: E501
1532
+ return data
1533
+
1534
+ def lock_assembly_with_http_info(self, assembly_id, locked, **kwargs): # noqa: E501
1535
+ """[Command] Lock an assembly. # noqa: E501
1536
+
1537
+ This method makes a synchronous HTTP request by default. To make an
1538
+ asynchronous HTTP request, please pass async_req=True
1539
+ >>> thread = api.lock_assembly_with_http_info(assembly_id, locked, async_req=True)
1540
+ >>> result = thread.get()
1541
+
1542
+ :param async_req bool
1543
+ :param str assembly_id: The assembly id to edit. (required)
1544
+ :param bool locked: True to lock the assembly, False to unlock (required)
1545
+ :return: Assembly
1546
+ If the method is called asynchronously,
1547
+ returns the request thread.
1548
+ """
1549
+
1550
+ all_params = ['assembly_id', 'locked'] # noqa: E501
1551
+ all_params.append('async_req')
1552
+ all_params.append('_return_http_data_only')
1553
+ all_params.append('_preload_content')
1554
+ all_params.append('_request_timeout')
1555
+
1556
+ params = locals()
1557
+ for key, val in six.iteritems(params['kwargs']):
1558
+ if key not in all_params:
1559
+ raise TypeError(
1560
+ "Got an unexpected keyword argument '%s'"
1561
+ " to method lock_assembly" % key
1562
+ )
1563
+ params[key] = val
1564
+ del params['kwargs']
1565
+ # verify the required parameter 'assembly_id' is set
1566
+ if ('assembly_id' not in params or
1567
+ params['assembly_id'] is None):
1568
+ raise ValueError("Missing the required parameter `assembly_id` when calling `lock_assembly`") # noqa: E501
1569
+ # verify the required parameter 'locked' is set
1570
+ if ('locked' not in params or
1571
+ params['locked'] is None):
1572
+ raise ValueError("Missing the required parameter `locked` when calling `lock_assembly`") # noqa: E501
1573
+
1574
+ collection_formats = {}
1575
+
1576
+ path_params = {}
1577
+ if 'assembly_id' in params:
1578
+ path_params['assemblyId'] = params['assembly_id'] # noqa: E501
1579
+
1580
+ query_params = []
1581
+ if 'locked' in params:
1582
+ query_params.append(('locked', params['locked'])) # noqa: E501
1583
+
1584
+ header_params = {}
1585
+
1586
+ form_params = []
1587
+ local_var_files = {}
1588
+
1589
+ body_params = None
1590
+ # HTTP header `Accept`
1591
+ header_params['Accept'] = self.api_client.select_header_accept(
1592
+ ['application/json', 'text/json']) # noqa: E501
1593
+
1594
+ # Authentication setting
1595
+ auth_settings = [] # noqa: E501
1596
+
1597
+ return self.api_client.call_api(
1598
+ '/teamdbapi/v2.0/assembly/{assemblyId}/lock', 'POST',
1599
+ path_params,
1600
+ query_params,
1601
+ header_params,
1602
+ body=body_params,
1603
+ post_params=form_params,
1604
+ files=local_var_files,
1605
+ response_type='Assembly', # noqa: E501
1606
+ auth_settings=auth_settings,
1607
+ async_req=params.get('async_req'),
1608
+ _return_http_data_only=params.get('_return_http_data_only'),
1609
+ _preload_content=params.get('_preload_content', True),
1610
+ _request_timeout=params.get('_request_timeout'),
1611
+ collection_formats=collection_formats)
1612
+
1613
+ def remove_revisions_from_assembly(self, body, assembly_id, **kwargs): # noqa: E501
1614
+ """[Command] Remove a list of revisions from an assembly. # noqa: E501
1615
+
1616
+ This method makes a synchronous HTTP request by default. To make an
1617
+ asynchronous HTTP request, please pass async_req=True
1618
+ >>> thread = api.remove_revisions_from_assembly(body, assembly_id, async_req=True)
1619
+ >>> result = thread.get()
1620
+
1621
+ :param async_req bool
1622
+ :param list[str] body: A list of unique revision ids to remove from the assembly (required)
1623
+ :param str assembly_id: The assembly id to which you want to remove the revisions (required)
1624
+ :return: Assembly
1625
+ If the method is called asynchronously,
1626
+ returns the request thread.
1627
+ """
1628
+ kwargs['_return_http_data_only'] = True
1629
+ if kwargs.get('async_req'):
1630
+ return self.remove_revisions_from_assembly_with_http_info(body, assembly_id, **kwargs) # noqa: E501
1631
+ else:
1632
+ (data) = self.remove_revisions_from_assembly_with_http_info(body, assembly_id, **kwargs) # noqa: E501
1633
+ return data
1634
+
1635
+ def remove_revisions_from_assembly_with_http_info(self, body, assembly_id, **kwargs): # noqa: E501
1636
+ """[Command] Remove a list of revisions from an assembly. # noqa: E501
1637
+
1638
+ This method makes a synchronous HTTP request by default. To make an
1639
+ asynchronous HTTP request, please pass async_req=True
1640
+ >>> thread = api.remove_revisions_from_assembly_with_http_info(body, assembly_id, async_req=True)
1641
+ >>> result = thread.get()
1642
+
1643
+ :param async_req bool
1644
+ :param list[str] body: A list of unique revision ids to remove from the assembly (required)
1645
+ :param str assembly_id: The assembly id to which you want to remove the revisions (required)
1646
+ :return: Assembly
1647
+ If the method is called asynchronously,
1648
+ returns the request thread.
1649
+ """
1650
+
1651
+ all_params = ['body', 'assembly_id'] # noqa: E501
1652
+ all_params.append('async_req')
1653
+ all_params.append('_return_http_data_only')
1654
+ all_params.append('_preload_content')
1655
+ all_params.append('_request_timeout')
1656
+
1657
+ params = locals()
1658
+ for key, val in six.iteritems(params['kwargs']):
1659
+ if key not in all_params:
1660
+ raise TypeError(
1661
+ "Got an unexpected keyword argument '%s'"
1662
+ " to method remove_revisions_from_assembly" % key
1663
+ )
1664
+ params[key] = val
1665
+ del params['kwargs']
1666
+ # verify the required parameter 'body' is set
1667
+ if ('body' not in params or
1668
+ params['body'] is None):
1669
+ raise ValueError("Missing the required parameter `body` when calling `remove_revisions_from_assembly`") # noqa: E501
1670
+ # verify the required parameter 'assembly_id' is set
1671
+ if ('assembly_id' not in params or
1672
+ params['assembly_id'] is None):
1673
+ raise ValueError("Missing the required parameter `assembly_id` when calling `remove_revisions_from_assembly`") # noqa: E501
1674
+
1675
+ collection_formats = {}
1676
+
1677
+ path_params = {}
1678
+ if 'assembly_id' in params:
1679
+ path_params['assemblyId'] = params['assembly_id'] # noqa: E501
1680
+
1681
+ query_params = []
1682
+
1683
+ header_params = {}
1684
+
1685
+ form_params = []
1686
+ local_var_files = {}
1687
+
1688
+ body_params = None
1689
+ if 'body' in params:
1690
+ body_params = params['body']
1691
+ # HTTP header `Accept`
1692
+ header_params['Accept'] = self.api_client.select_header_accept(
1693
+ ['application/json', 'text/json']) # noqa: E501
1694
+
1695
+ # HTTP header `Content-Type`
1696
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1697
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
1698
+
1699
+ # Authentication setting
1700
+ auth_settings = [] # noqa: E501
1701
+
1702
+ return self.api_client.call_api(
1703
+ '/teamdbapi/v2.0/assembly/{assemblyId}/removerevisions', 'POST',
1704
+ path_params,
1705
+ query_params,
1706
+ header_params,
1707
+ body=body_params,
1708
+ post_params=form_params,
1709
+ files=local_var_files,
1710
+ response_type='Assembly', # noqa: E501
1711
+ auth_settings=auth_settings,
1712
+ async_req=params.get('async_req'),
1713
+ _return_http_data_only=params.get('_return_http_data_only'),
1714
+ _preload_content=params.get('_preload_content', True),
1715
+ _request_timeout=params.get('_request_timeout'),
1716
+ collection_formats=collection_formats)
1717
+
1718
+ def remove_tag(self, assembly_id, tag, **kwargs): # noqa: E501
1719
+ """[Command] Remove a search tag from an existing assembly # noqa: E501
1720
+
1721
+ This method makes a synchronous HTTP request by default. To make an
1722
+ asynchronous HTTP request, please pass async_req=True
1723
+ >>> thread = api.remove_tag(assembly_id, tag, async_req=True)
1724
+ >>> result = thread.get()
1725
+
1726
+ :param async_req bool
1727
+ :param str assembly_id: The assembly unique id (required)
1728
+ :param str tag: The tag to remove from the assembly (required)
1729
+ :return: None
1730
+ If the method is called asynchronously,
1731
+ returns the request thread.
1732
+ """
1733
+ kwargs['_return_http_data_only'] = True
1734
+ if kwargs.get('async_req'):
1735
+ return self.remove_tag_with_http_info(assembly_id, tag, **kwargs) # noqa: E501
1736
+ else:
1737
+ (data) = self.remove_tag_with_http_info(assembly_id, tag, **kwargs) # noqa: E501
1738
+ return data
1739
+
1740
+ def remove_tag_with_http_info(self, assembly_id, tag, **kwargs): # noqa: E501
1741
+ """[Command] Remove a search tag from an existing assembly # noqa: E501
1742
+
1743
+ This method makes a synchronous HTTP request by default. To make an
1744
+ asynchronous HTTP request, please pass async_req=True
1745
+ >>> thread = api.remove_tag_with_http_info(assembly_id, tag, async_req=True)
1746
+ >>> result = thread.get()
1747
+
1748
+ :param async_req bool
1749
+ :param str assembly_id: The assembly unique id (required)
1750
+ :param str tag: The tag to remove from the assembly (required)
1751
+ :return: None
1752
+ If the method is called asynchronously,
1753
+ returns the request thread.
1754
+ """
1755
+
1756
+ all_params = ['assembly_id', 'tag'] # noqa: E501
1757
+ all_params.append('async_req')
1758
+ all_params.append('_return_http_data_only')
1759
+ all_params.append('_preload_content')
1760
+ all_params.append('_request_timeout')
1761
+
1762
+ params = locals()
1763
+ for key, val in six.iteritems(params['kwargs']):
1764
+ if key not in all_params:
1765
+ raise TypeError(
1766
+ "Got an unexpected keyword argument '%s'"
1767
+ " to method remove_tag" % key
1768
+ )
1769
+ params[key] = val
1770
+ del params['kwargs']
1771
+ # verify the required parameter 'assembly_id' is set
1772
+ if ('assembly_id' not in params or
1773
+ params['assembly_id'] is None):
1774
+ raise ValueError("Missing the required parameter `assembly_id` when calling `remove_tag`") # noqa: E501
1775
+ # verify the required parameter 'tag' is set
1776
+ if ('tag' not in params or
1777
+ params['tag'] is None):
1778
+ raise ValueError("Missing the required parameter `tag` when calling `remove_tag`") # noqa: E501
1779
+
1780
+ collection_formats = {}
1781
+
1782
+ path_params = {}
1783
+ if 'assembly_id' in params:
1784
+ path_params['assemblyId'] = params['assembly_id'] # noqa: E501
1785
+
1786
+ query_params = []
1787
+ if 'tag' in params:
1788
+ query_params.append(('tag', params['tag'])) # noqa: E501
1789
+
1790
+ header_params = {}
1791
+
1792
+ form_params = []
1793
+ local_var_files = {}
1794
+
1795
+ body_params = None
1796
+ # HTTP header `Accept`
1797
+ header_params['Accept'] = self.api_client.select_header_accept(
1798
+ ['application/json', 'text/json']) # noqa: E501
1799
+
1800
+ # Authentication setting
1801
+ auth_settings = [] # noqa: E501
1802
+
1803
+ return self.api_client.call_api(
1804
+ '/teamdbapi/v2.0/assembly/{assemblyId}/removetag', 'POST',
1805
+ path_params,
1806
+ query_params,
1807
+ header_params,
1808
+ body=body_params,
1809
+ post_params=form_params,
1810
+ files=local_var_files,
1811
+ response_type=None, # noqa: E501
1812
+ auth_settings=auth_settings,
1813
+ async_req=params.get('async_req'),
1814
+ _return_http_data_only=params.get('_return_http_data_only'),
1815
+ _preload_content=params.get('_preload_content', True),
1816
+ _request_timeout=params.get('_request_timeout'),
1817
+ collection_formats=collection_formats)
1818
+
1819
+ def select_current_assembly(self, assembly_id, **kwargs): # noqa: E501
1820
+ """[Command] Set the current selected assembly # noqa: E501
1821
+
1822
+ This method makes a synchronous HTTP request by default. To make an
1823
+ asynchronous HTTP request, please pass async_req=True
1824
+ >>> thread = api.select_current_assembly(assembly_id, async_req=True)
1825
+ >>> result = thread.get()
1826
+
1827
+ :param async_req bool
1828
+ :param str assembly_id: The assembly id to select (required)
1829
+ :return: None
1830
+ If the method is called asynchronously,
1831
+ returns the request thread.
1832
+ """
1833
+ kwargs['_return_http_data_only'] = True
1834
+ if kwargs.get('async_req'):
1835
+ return self.select_current_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
1836
+ else:
1837
+ (data) = self.select_current_assembly_with_http_info(assembly_id, **kwargs) # noqa: E501
1838
+ return data
1839
+
1840
+ def select_current_assembly_with_http_info(self, assembly_id, **kwargs): # noqa: E501
1841
+ """[Command] Set the current selected assembly # noqa: E501
1842
+
1843
+ This method makes a synchronous HTTP request by default. To make an
1844
+ asynchronous HTTP request, please pass async_req=True
1845
+ >>> thread = api.select_current_assembly_with_http_info(assembly_id, async_req=True)
1846
+ >>> result = thread.get()
1847
+
1848
+ :param async_req bool
1849
+ :param str assembly_id: The assembly id to select (required)
1850
+ :return: None
1851
+ If the method is called asynchronously,
1852
+ returns the request thread.
1853
+ """
1854
+
1855
+ all_params = ['assembly_id'] # noqa: E501
1856
+ all_params.append('async_req')
1857
+ all_params.append('_return_http_data_only')
1858
+ all_params.append('_preload_content')
1859
+ all_params.append('_request_timeout')
1860
+
1861
+ params = locals()
1862
+ for key, val in six.iteritems(params['kwargs']):
1863
+ if key not in all_params:
1864
+ raise TypeError(
1865
+ "Got an unexpected keyword argument '%s'"
1866
+ " to method select_current_assembly" % key
1867
+ )
1868
+ params[key] = val
1869
+ del params['kwargs']
1870
+ # verify the required parameter 'assembly_id' is set
1871
+ if ('assembly_id' not in params or
1872
+ params['assembly_id'] is None):
1873
+ raise ValueError("Missing the required parameter `assembly_id` when calling `select_current_assembly`") # noqa: E501
1874
+
1875
+ collection_formats = {}
1876
+
1877
+ path_params = {}
1878
+
1879
+ query_params = []
1880
+ if 'assembly_id' in params:
1881
+ query_params.append(('assemblyId', params['assembly_id'])) # noqa: E501
1882
+
1883
+ header_params = {}
1884
+
1885
+ form_params = []
1886
+ local_var_files = {}
1887
+
1888
+ body_params = None
1889
+ # HTTP header `Accept`
1890
+ header_params['Accept'] = self.api_client.select_header_accept(
1891
+ ['application/json', 'text/json']) # noqa: E501
1892
+
1893
+ # Authentication setting
1894
+ auth_settings = [] # noqa: E501
1895
+
1896
+ return self.api_client.call_api(
1897
+ '/teamdbapi/v2.0/assembly/current', 'POST',
1898
+ path_params,
1899
+ query_params,
1900
+ header_params,
1901
+ body=body_params,
1902
+ post_params=form_params,
1903
+ files=local_var_files,
1904
+ response_type=None, # noqa: E501
1905
+ auth_settings=auth_settings,
1906
+ async_req=params.get('async_req'),
1907
+ _return_http_data_only=params.get('_return_http_data_only'),
1908
+ _preload_content=params.get('_preload_content', True),
1909
+ _request_timeout=params.get('_request_timeout'),
1910
+ collection_formats=collection_formats)
1911
+
1912
+ def unlink_assembly(self, run_id, assembly_id, **kwargs): # noqa: E501
1913
+ """[Command] Remove an assembly from a run # noqa: E501
1914
+
1915
+ This method makes a synchronous HTTP request by default. To make an
1916
+ asynchronous HTTP request, please pass async_req=True
1917
+ >>> thread = api.unlink_assembly(run_id, assembly_id, async_req=True)
1918
+ >>> result = thread.get()
1919
+
1920
+ :param async_req bool
1921
+ :param str run_id: The Id of the Run to unlink (required)
1922
+ :param str assembly_id: The Id of the Assembly to unlink (required)
1923
+ :return: None
1924
+ If the method is called asynchronously,
1925
+ returns the request thread.
1926
+ """
1927
+ kwargs['_return_http_data_only'] = True
1928
+ if kwargs.get('async_req'):
1929
+ return self.unlink_assembly_with_http_info(run_id, assembly_id, **kwargs) # noqa: E501
1930
+ else:
1931
+ (data) = self.unlink_assembly_with_http_info(run_id, assembly_id, **kwargs) # noqa: E501
1932
+ return data
1933
+
1934
+ def unlink_assembly_with_http_info(self, run_id, assembly_id, **kwargs): # noqa: E501
1935
+ """[Command] Remove an assembly from a run # noqa: E501
1936
+
1937
+ This method makes a synchronous HTTP request by default. To make an
1938
+ asynchronous HTTP request, please pass async_req=True
1939
+ >>> thread = api.unlink_assembly_with_http_info(run_id, assembly_id, async_req=True)
1940
+ >>> result = thread.get()
1941
+
1942
+ :param async_req bool
1943
+ :param str run_id: The Id of the Run to unlink (required)
1944
+ :param str assembly_id: The Id of the Assembly to unlink (required)
1945
+ :return: None
1946
+ If the method is called asynchronously,
1947
+ returns the request thread.
1948
+ """
1949
+
1950
+ all_params = ['run_id', 'assembly_id'] # noqa: E501
1951
+ all_params.append('async_req')
1952
+ all_params.append('_return_http_data_only')
1953
+ all_params.append('_preload_content')
1954
+ all_params.append('_request_timeout')
1955
+
1956
+ params = locals()
1957
+ for key, val in six.iteritems(params['kwargs']):
1958
+ if key not in all_params:
1959
+ raise TypeError(
1960
+ "Got an unexpected keyword argument '%s'"
1961
+ " to method unlink_assembly" % key
1962
+ )
1963
+ params[key] = val
1964
+ del params['kwargs']
1965
+ # verify the required parameter 'run_id' is set
1966
+ if ('run_id' not in params or
1967
+ params['run_id'] is None):
1968
+ raise ValueError("Missing the required parameter `run_id` when calling `unlink_assembly`") # noqa: E501
1969
+ # verify the required parameter 'assembly_id' is set
1970
+ if ('assembly_id' not in params or
1971
+ params['assembly_id'] is None):
1972
+ raise ValueError("Missing the required parameter `assembly_id` when calling `unlink_assembly`") # noqa: E501
1973
+
1974
+ collection_formats = {}
1975
+
1976
+ path_params = {}
1977
+ if 'run_id' in params:
1978
+ path_params['runId'] = params['run_id'] # noqa: E501
1979
+
1980
+ query_params = []
1981
+ if 'assembly_id' in params:
1982
+ query_params.append(('assemblyId', params['assembly_id'])) # noqa: E501
1983
+
1984
+ header_params = {}
1985
+
1986
+ form_params = []
1987
+ local_var_files = {}
1988
+
1989
+ body_params = None
1990
+ # HTTP header `Accept`
1991
+ header_params['Accept'] = self.api_client.select_header_accept(
1992
+ ['application/json', 'text/json']) # noqa: E501
1993
+
1994
+ # Authentication setting
1995
+ auth_settings = [] # noqa: E501
1996
+
1997
+ return self.api_client.call_api(
1998
+ '/teamdbapi/v2.0/run/{runId}/unlinkassembly', 'POST',
1999
+ path_params,
2000
+ query_params,
2001
+ header_params,
2002
+ body=body_params,
2003
+ post_params=form_params,
2004
+ files=local_var_files,
2005
+ response_type=None, # noqa: E501
2006
+ auth_settings=auth_settings,
2007
+ async_req=params.get('async_req'),
2008
+ _return_http_data_only=params.get('_return_http_data_only'),
2009
+ _preload_content=params.get('_preload_content', True),
2010
+ _request_timeout=params.get('_request_timeout'),
2011
+ collection_formats=collection_formats)
2012
+
2013
+ def update_assembly(self, body, assembly_id, **kwargs): # noqa: E501
2014
+ """Update an assembly. The revisions list content will be ignored. You have to call AddRevisionsToAssembly to add revisions to an assembly. # noqa: E501
2015
+
2016
+ This method makes a synchronous HTTP request by default. To make an
2017
+ asynchronous HTTP request, please pass async_req=True
2018
+ >>> thread = api.update_assembly(body, assembly_id, async_req=True)
2019
+ >>> result = thread.get()
2020
+
2021
+ :param async_req bool
2022
+ :param Assembly body: The assembly to update. (required)
2023
+ :param str assembly_id: The assembly id corresponding to the assembly you want to update. (required)
2024
+ :return: Assembly
2025
+ If the method is called asynchronously,
2026
+ returns the request thread.
2027
+ """
2028
+ kwargs['_return_http_data_only'] = True
2029
+ if kwargs.get('async_req'):
2030
+ return self.update_assembly_with_http_info(body, assembly_id, **kwargs) # noqa: E501
2031
+ else:
2032
+ (data) = self.update_assembly_with_http_info(body, assembly_id, **kwargs) # noqa: E501
2033
+ return data
2034
+
2035
+ def update_assembly_with_http_info(self, body, assembly_id, **kwargs): # noqa: E501
2036
+ """Update an assembly. The revisions list content will be ignored. You have to call AddRevisionsToAssembly to add revisions to an assembly. # noqa: E501
2037
+
2038
+ This method makes a synchronous HTTP request by default. To make an
2039
+ asynchronous HTTP request, please pass async_req=True
2040
+ >>> thread = api.update_assembly_with_http_info(body, assembly_id, async_req=True)
2041
+ >>> result = thread.get()
2042
+
2043
+ :param async_req bool
2044
+ :param Assembly body: The assembly to update. (required)
2045
+ :param str assembly_id: The assembly id corresponding to the assembly you want to update. (required)
2046
+ :return: Assembly
2047
+ If the method is called asynchronously,
2048
+ returns the request thread.
2049
+ """
2050
+
2051
+ all_params = ['body', 'assembly_id'] # noqa: E501
2052
+ all_params.append('async_req')
2053
+ all_params.append('_return_http_data_only')
2054
+ all_params.append('_preload_content')
2055
+ all_params.append('_request_timeout')
2056
+
2057
+ params = locals()
2058
+ for key, val in six.iteritems(params['kwargs']):
2059
+ if key not in all_params:
2060
+ raise TypeError(
2061
+ "Got an unexpected keyword argument '%s'"
2062
+ " to method update_assembly" % key
2063
+ )
2064
+ params[key] = val
2065
+ del params['kwargs']
2066
+ # verify the required parameter 'body' is set
2067
+ if ('body' not in params or
2068
+ params['body'] is None):
2069
+ raise ValueError("Missing the required parameter `body` when calling `update_assembly`") # noqa: E501
2070
+ # verify the required parameter 'assembly_id' is set
2071
+ if ('assembly_id' not in params or
2072
+ params['assembly_id'] is None):
2073
+ raise ValueError("Missing the required parameter `assembly_id` when calling `update_assembly`") # noqa: E501
2074
+
2075
+ collection_formats = {}
2076
+
2077
+ path_params = {}
2078
+ if 'assembly_id' in params:
2079
+ path_params['assemblyId'] = params['assembly_id'] # noqa: E501
2080
+
2081
+ query_params = []
2082
+
2083
+ header_params = {}
2084
+
2085
+ form_params = []
2086
+ local_var_files = {}
2087
+
2088
+ body_params = None
2089
+ if 'body' in params:
2090
+ body_params = params['body']
2091
+ # HTTP header `Accept`
2092
+ header_params['Accept'] = self.api_client.select_header_accept(
2093
+ ['application/json', 'text/json']) # noqa: E501
2094
+
2095
+ # HTTP header `Content-Type`
2096
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2097
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
2098
+
2099
+ # Authentication setting
2100
+ auth_settings = [] # noqa: E501
2101
+
2102
+ return self.api_client.call_api(
2103
+ '/teamdbapi/v2.0/assembly/{assemblyId}', 'PUT',
2104
+ path_params,
2105
+ query_params,
2106
+ header_params,
2107
+ body=body_params,
2108
+ post_params=form_params,
2109
+ files=local_var_files,
2110
+ response_type='Assembly', # noqa: E501
2111
+ auth_settings=auth_settings,
2112
+ async_req=params.get('async_req'),
2113
+ _return_http_data_only=params.get('_return_http_data_only'),
2114
+ _preload_content=params.get('_preload_content', True),
2115
+ _request_timeout=params.get('_request_timeout'),
2116
+ collection_formats=collection_formats)