teamdbapi 3.0.0__py3-none-any.whl → 3.3.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 (43) hide show
  1. teamdbapi/__init__.py +15 -0
  2. teamdbapi/api/__init__.py +1 -0
  3. teamdbapi/api/assembly_api.py +4 -4
  4. teamdbapi/api/component_api.py +117 -0
  5. teamdbapi/api/edit_api.py +89 -0
  6. teamdbapi/api/import_export_api.py +12 -12
  7. teamdbapi/api/issue_api.py +1537 -0
  8. teamdbapi/api/lap_report_api.py +2 -2
  9. teamdbapi/api/part_api.py +481 -0
  10. teamdbapi/api/report_api.py +2 -2
  11. teamdbapi/api/revision_api.py +111 -6
  12. teamdbapi/api/value_field_api.py +2 -2
  13. teamdbapi/models/__init__.py +14 -0
  14. teamdbapi/models/add_part_car_parameter_arg.py +396 -0
  15. teamdbapi/models/car_parameters_context.py +31 -3
  16. teamdbapi/models/compare_options.py +2 -2
  17. teamdbapi/models/component.py +87 -3
  18. teamdbapi/models/file_revision_info.py +199 -0
  19. teamdbapi/models/import_parameters_args.py +2 -2
  20. teamdbapi/models/import_revisions_args.py +173 -0
  21. teamdbapi/models/import_revisions_info.py +197 -0
  22. teamdbapi/models/import_revisions_results.py +170 -0
  23. teamdbapi/models/issue.py +674 -0
  24. teamdbapi/models/issue_custom_field_value.py +319 -0
  25. teamdbapi/models/issue_priority.py +227 -0
  26. teamdbapi/models/issue_project.py +229 -0
  27. teamdbapi/models/issue_sector.py +199 -0
  28. teamdbapi/models/issue_status.py +284 -0
  29. teamdbapi/models/issue_type.py +199 -0
  30. teamdbapi/models/issue_workflow.py +199 -0
  31. teamdbapi/models/lap_report_options.py +2 -2
  32. teamdbapi/models/parameter_cross_table.py +4 -4
  33. teamdbapi/models/part.py +31 -3
  34. teamdbapi/models/part_car_parameters.py +561 -0
  35. teamdbapi/models/revision.py +37 -9
  36. teamdbapi/models/revision_value.py +31 -3
  37. teamdbapi/models/script.py +2 -2
  38. teamdbapi/models/target.py +4 -4
  39. teamdbapi/models/version.py +4 -4
  40. {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/METADATA +3 -3
  41. {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/RECORD +43 -28
  42. {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/LICENSE +0 -0
  43. {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,1537 @@
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 IssueApi(object):
24
+ """NOTE: This class is auto generated by the swagger code generator program.
25
+
26
+ Do not edit the class manually.
27
+ Ref: https://github.com/swagger-api/swagger-codegen
28
+ """
29
+
30
+ def __init__(self, api_client=None):
31
+ if api_client is None:
32
+ api_client = ApiClient()
33
+ self.api_client = api_client
34
+
35
+ def create_issue(self, body, **kwargs): # noqa: E501
36
+ """Create a new Issue. Field \"IssueId\" must be 00000000-0000-0000-0000-000000000000. # noqa: E501
37
+
38
+ This method makes a synchronous HTTP request by default. To make an
39
+ asynchronous HTTP request, please pass async_req=True
40
+ >>> thread = api.create_issue(body, async_req=True)
41
+ >>> result = thread.get()
42
+
43
+ :param async_req bool
44
+ :param Issue body: The Issue to create (required)
45
+ :return: Issue
46
+ If the method is called asynchronously,
47
+ returns the request thread.
48
+ """
49
+ kwargs['_return_http_data_only'] = True
50
+ if kwargs.get('async_req'):
51
+ return self.create_issue_with_http_info(body, **kwargs) # noqa: E501
52
+ else:
53
+ (data) = self.create_issue_with_http_info(body, **kwargs) # noqa: E501
54
+ return data
55
+
56
+ def create_issue_with_http_info(self, body, **kwargs): # noqa: E501
57
+ """Create a new Issue. Field \"IssueId\" must be 00000000-0000-0000-0000-000000000000. # noqa: E501
58
+
59
+ This method makes a synchronous HTTP request by default. To make an
60
+ asynchronous HTTP request, please pass async_req=True
61
+ >>> thread = api.create_issue_with_http_info(body, async_req=True)
62
+ >>> result = thread.get()
63
+
64
+ :param async_req bool
65
+ :param Issue body: The Issue to create (required)
66
+ :return: Issue
67
+ If the method is called asynchronously,
68
+ returns the request thread.
69
+ """
70
+
71
+ all_params = ['body'] # noqa: E501
72
+ all_params.append('async_req')
73
+ all_params.append('_return_http_data_only')
74
+ all_params.append('_preload_content')
75
+ all_params.append('_request_timeout')
76
+
77
+ params = locals()
78
+ for key, val in six.iteritems(params['kwargs']):
79
+ if key not in all_params:
80
+ raise TypeError(
81
+ "Got an unexpected keyword argument '%s'"
82
+ " to method create_issue" % key
83
+ )
84
+ params[key] = val
85
+ del params['kwargs']
86
+ # verify the required parameter 'body' is set
87
+ if ('body' not in params or
88
+ params['body'] is None):
89
+ raise ValueError("Missing the required parameter `body` when calling `create_issue`") # noqa: E501
90
+
91
+ collection_formats = {}
92
+
93
+ path_params = {}
94
+
95
+ query_params = []
96
+
97
+ header_params = {}
98
+
99
+ form_params = []
100
+ local_var_files = {}
101
+
102
+ body_params = None
103
+ if 'body' in params:
104
+ body_params = params['body']
105
+ # HTTP header `Accept`
106
+ header_params['Accept'] = self.api_client.select_header_accept(
107
+ ['application/json', 'text/json']) # noqa: E501
108
+
109
+ # HTTP header `Content-Type`
110
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
111
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
112
+
113
+ # Authentication setting
114
+ auth_settings = [] # noqa: E501
115
+
116
+ return self.api_client.call_api(
117
+ '/teamdbapi/v2.0/issue', 'POST',
118
+ path_params,
119
+ query_params,
120
+ header_params,
121
+ body=body_params,
122
+ post_params=form_params,
123
+ files=local_var_files,
124
+ response_type='Issue', # noqa: E501
125
+ auth_settings=auth_settings,
126
+ async_req=params.get('async_req'),
127
+ _return_http_data_only=params.get('_return_http_data_only'),
128
+ _preload_content=params.get('_preload_content', True),
129
+ _request_timeout=params.get('_request_timeout'),
130
+ collection_formats=collection_formats)
131
+
132
+ def get_all_custom_fields(self, workflow_id, **kwargs): # noqa: E501
133
+ """Get all custom fields avaliable for a specific workflow # noqa: E501
134
+
135
+ This method makes a synchronous HTTP request by default. To make an
136
+ asynchronous HTTP request, please pass async_req=True
137
+ >>> thread = api.get_all_custom_fields(workflow_id, async_req=True)
138
+ >>> result = thread.get()
139
+
140
+ :param async_req bool
141
+ :param str workflow_id: The unique identifier of the workflow from which you wish to retrieve custom fields. (required)
142
+ :return: list[IssueCustomFieldValue]
143
+ If the method is called asynchronously,
144
+ returns the request thread.
145
+ """
146
+ kwargs['_return_http_data_only'] = True
147
+ if kwargs.get('async_req'):
148
+ return self.get_all_custom_fields_with_http_info(workflow_id, **kwargs) # noqa: E501
149
+ else:
150
+ (data) = self.get_all_custom_fields_with_http_info(workflow_id, **kwargs) # noqa: E501
151
+ return data
152
+
153
+ def get_all_custom_fields_with_http_info(self, workflow_id, **kwargs): # noqa: E501
154
+ """Get all custom fields avaliable for a specific workflow # noqa: E501
155
+
156
+ This method makes a synchronous HTTP request by default. To make an
157
+ asynchronous HTTP request, please pass async_req=True
158
+ >>> thread = api.get_all_custom_fields_with_http_info(workflow_id, async_req=True)
159
+ >>> result = thread.get()
160
+
161
+ :param async_req bool
162
+ :param str workflow_id: The unique identifier of the workflow from which you wish to retrieve custom fields. (required)
163
+ :return: list[IssueCustomFieldValue]
164
+ If the method is called asynchronously,
165
+ returns the request thread.
166
+ """
167
+
168
+ all_params = ['workflow_id'] # noqa: E501
169
+ all_params.append('async_req')
170
+ all_params.append('_return_http_data_only')
171
+ all_params.append('_preload_content')
172
+ all_params.append('_request_timeout')
173
+
174
+ params = locals()
175
+ for key, val in six.iteritems(params['kwargs']):
176
+ if key not in all_params:
177
+ raise TypeError(
178
+ "Got an unexpected keyword argument '%s'"
179
+ " to method get_all_custom_fields" % key
180
+ )
181
+ params[key] = val
182
+ del params['kwargs']
183
+ # verify the required parameter 'workflow_id' is set
184
+ if ('workflow_id' not in params or
185
+ params['workflow_id'] is None):
186
+ raise ValueError("Missing the required parameter `workflow_id` when calling `get_all_custom_fields`") # noqa: E501
187
+
188
+ collection_formats = {}
189
+
190
+ path_params = {}
191
+ if 'workflow_id' in params:
192
+ path_params['workflowId'] = params['workflow_id'] # noqa: E501
193
+
194
+ query_params = []
195
+
196
+ header_params = {}
197
+
198
+ form_params = []
199
+ local_var_files = {}
200
+
201
+ body_params = None
202
+ # HTTP header `Accept`
203
+ header_params['Accept'] = self.api_client.select_header_accept(
204
+ ['application/json', 'text/json']) # noqa: E501
205
+
206
+ # Authentication setting
207
+ auth_settings = [] # noqa: E501
208
+
209
+ return self.api_client.call_api(
210
+ '/teamdbapi/v2.0/workflows/{workflowId}/customfields', 'GET',
211
+ path_params,
212
+ query_params,
213
+ header_params,
214
+ body=body_params,
215
+ post_params=form_params,
216
+ files=local_var_files,
217
+ response_type='list[IssueCustomFieldValue]', # noqa: E501
218
+ auth_settings=auth_settings,
219
+ async_req=params.get('async_req'),
220
+ _return_http_data_only=params.get('_return_http_data_only'),
221
+ _preload_content=params.get('_preload_content', True),
222
+ _request_timeout=params.get('_request_timeout'),
223
+ collection_formats=collection_formats)
224
+
225
+ def get_all_issue_priorities(self, workflow_id, **kwargs): # noqa: E501
226
+ """Get a list of all available priorities for a workflow. # noqa: E501
227
+
228
+ This method makes a synchronous HTTP request by default. To make an
229
+ asynchronous HTTP request, please pass async_req=True
230
+ >>> thread = api.get_all_issue_priorities(workflow_id, async_req=True)
231
+ >>> result = thread.get()
232
+
233
+ :param async_req bool
234
+ :param str workflow_id: The unique identifier of the workflow from which you wish to retrieve priorities. (required)
235
+ :return: list[IssuePriority]
236
+ If the method is called asynchronously,
237
+ returns the request thread.
238
+ """
239
+ kwargs['_return_http_data_only'] = True
240
+ if kwargs.get('async_req'):
241
+ return self.get_all_issue_priorities_with_http_info(workflow_id, **kwargs) # noqa: E501
242
+ else:
243
+ (data) = self.get_all_issue_priorities_with_http_info(workflow_id, **kwargs) # noqa: E501
244
+ return data
245
+
246
+ def get_all_issue_priorities_with_http_info(self, workflow_id, **kwargs): # noqa: E501
247
+ """Get a list of all available priorities for a workflow. # noqa: E501
248
+
249
+ This method makes a synchronous HTTP request by default. To make an
250
+ asynchronous HTTP request, please pass async_req=True
251
+ >>> thread = api.get_all_issue_priorities_with_http_info(workflow_id, async_req=True)
252
+ >>> result = thread.get()
253
+
254
+ :param async_req bool
255
+ :param str workflow_id: The unique identifier of the workflow from which you wish to retrieve priorities. (required)
256
+ :return: list[IssuePriority]
257
+ If the method is called asynchronously,
258
+ returns the request thread.
259
+ """
260
+
261
+ all_params = ['workflow_id'] # noqa: E501
262
+ all_params.append('async_req')
263
+ all_params.append('_return_http_data_only')
264
+ all_params.append('_preload_content')
265
+ all_params.append('_request_timeout')
266
+
267
+ params = locals()
268
+ for key, val in six.iteritems(params['kwargs']):
269
+ if key not in all_params:
270
+ raise TypeError(
271
+ "Got an unexpected keyword argument '%s'"
272
+ " to method get_all_issue_priorities" % key
273
+ )
274
+ params[key] = val
275
+ del params['kwargs']
276
+ # verify the required parameter 'workflow_id' is set
277
+ if ('workflow_id' not in params or
278
+ params['workflow_id'] is None):
279
+ raise ValueError("Missing the required parameter `workflow_id` when calling `get_all_issue_priorities`") # noqa: E501
280
+
281
+ collection_formats = {}
282
+
283
+ path_params = {}
284
+ if 'workflow_id' in params:
285
+ path_params['workflowId'] = params['workflow_id'] # noqa: E501
286
+
287
+ query_params = []
288
+
289
+ header_params = {}
290
+
291
+ form_params = []
292
+ local_var_files = {}
293
+
294
+ body_params = None
295
+ # HTTP header `Accept`
296
+ header_params['Accept'] = self.api_client.select_header_accept(
297
+ ['application/json', 'text/json']) # noqa: E501
298
+
299
+ # Authentication setting
300
+ auth_settings = [] # noqa: E501
301
+
302
+ return self.api_client.call_api(
303
+ '/teamdbapi/v2.0/workflows/{workflowId}/priorities', 'GET',
304
+ path_params,
305
+ query_params,
306
+ header_params,
307
+ body=body_params,
308
+ post_params=form_params,
309
+ files=local_var_files,
310
+ response_type='list[IssuePriority]', # noqa: E501
311
+ auth_settings=auth_settings,
312
+ async_req=params.get('async_req'),
313
+ _return_http_data_only=params.get('_return_http_data_only'),
314
+ _preload_content=params.get('_preload_content', True),
315
+ _request_timeout=params.get('_request_timeout'),
316
+ collection_formats=collection_formats)
317
+
318
+ def get_all_issue_projects(self, **kwargs): # noqa: E501
319
+ """Get a list of all Issue projects. # noqa: E501
320
+
321
+ This method makes a synchronous HTTP request by default. To make an
322
+ asynchronous HTTP request, please pass async_req=True
323
+ >>> thread = api.get_all_issue_projects(async_req=True)
324
+ >>> result = thread.get()
325
+
326
+ :param async_req bool
327
+ :return: list[IssueProject]
328
+ If the method is called asynchronously,
329
+ returns the request thread.
330
+ """
331
+ kwargs['_return_http_data_only'] = True
332
+ if kwargs.get('async_req'):
333
+ return self.get_all_issue_projects_with_http_info(**kwargs) # noqa: E501
334
+ else:
335
+ (data) = self.get_all_issue_projects_with_http_info(**kwargs) # noqa: E501
336
+ return data
337
+
338
+ def get_all_issue_projects_with_http_info(self, **kwargs): # noqa: E501
339
+ """Get a list of all Issue projects. # noqa: E501
340
+
341
+ This method makes a synchronous HTTP request by default. To make an
342
+ asynchronous HTTP request, please pass async_req=True
343
+ >>> thread = api.get_all_issue_projects_with_http_info(async_req=True)
344
+ >>> result = thread.get()
345
+
346
+ :param async_req bool
347
+ :return: list[IssueProject]
348
+ If the method is called asynchronously,
349
+ returns the request thread.
350
+ """
351
+
352
+ all_params = [] # noqa: E501
353
+ all_params.append('async_req')
354
+ all_params.append('_return_http_data_only')
355
+ all_params.append('_preload_content')
356
+ all_params.append('_request_timeout')
357
+
358
+ params = locals()
359
+ for key, val in six.iteritems(params['kwargs']):
360
+ if key not in all_params:
361
+ raise TypeError(
362
+ "Got an unexpected keyword argument '%s'"
363
+ " to method get_all_issue_projects" % key
364
+ )
365
+ params[key] = val
366
+ del params['kwargs']
367
+
368
+ collection_formats = {}
369
+
370
+ path_params = {}
371
+
372
+ query_params = []
373
+
374
+ header_params = {}
375
+
376
+ form_params = []
377
+ local_var_files = {}
378
+
379
+ body_params = None
380
+ # HTTP header `Accept`
381
+ header_params['Accept'] = self.api_client.select_header_accept(
382
+ ['application/json', 'text/json']) # noqa: E501
383
+
384
+ # Authentication setting
385
+ auth_settings = [] # noqa: E501
386
+
387
+ return self.api_client.call_api(
388
+ '/teamdbapi/v2.0/projects', 'GET',
389
+ path_params,
390
+ query_params,
391
+ header_params,
392
+ body=body_params,
393
+ post_params=form_params,
394
+ files=local_var_files,
395
+ response_type='list[IssueProject]', # noqa: E501
396
+ auth_settings=auth_settings,
397
+ async_req=params.get('async_req'),
398
+ _return_http_data_only=params.get('_return_http_data_only'),
399
+ _preload_content=params.get('_preload_content', True),
400
+ _request_timeout=params.get('_request_timeout'),
401
+ collection_formats=collection_formats)
402
+
403
+ def get_all_issue_sectors(self, workflow_id, **kwargs): # noqa: E501
404
+ """Get a list of all available sectors for a workflow. # noqa: E501
405
+
406
+ This method makes a synchronous HTTP request by default. To make an
407
+ asynchronous HTTP request, please pass async_req=True
408
+ >>> thread = api.get_all_issue_sectors(workflow_id, async_req=True)
409
+ >>> result = thread.get()
410
+
411
+ :param async_req bool
412
+ :param str workflow_id: The unique identifier of the workflow from which you wish to retrieve sectors. (required)
413
+ :return: list[IssueSector]
414
+ If the method is called asynchronously,
415
+ returns the request thread.
416
+ """
417
+ kwargs['_return_http_data_only'] = True
418
+ if kwargs.get('async_req'):
419
+ return self.get_all_issue_sectors_with_http_info(workflow_id, **kwargs) # noqa: E501
420
+ else:
421
+ (data) = self.get_all_issue_sectors_with_http_info(workflow_id, **kwargs) # noqa: E501
422
+ return data
423
+
424
+ def get_all_issue_sectors_with_http_info(self, workflow_id, **kwargs): # noqa: E501
425
+ """Get a list of all available sectors for a workflow. # noqa: E501
426
+
427
+ This method makes a synchronous HTTP request by default. To make an
428
+ asynchronous HTTP request, please pass async_req=True
429
+ >>> thread = api.get_all_issue_sectors_with_http_info(workflow_id, async_req=True)
430
+ >>> result = thread.get()
431
+
432
+ :param async_req bool
433
+ :param str workflow_id: The unique identifier of the workflow from which you wish to retrieve sectors. (required)
434
+ :return: list[IssueSector]
435
+ If the method is called asynchronously,
436
+ returns the request thread.
437
+ """
438
+
439
+ all_params = ['workflow_id'] # noqa: E501
440
+ all_params.append('async_req')
441
+ all_params.append('_return_http_data_only')
442
+ all_params.append('_preload_content')
443
+ all_params.append('_request_timeout')
444
+
445
+ params = locals()
446
+ for key, val in six.iteritems(params['kwargs']):
447
+ if key not in all_params:
448
+ raise TypeError(
449
+ "Got an unexpected keyword argument '%s'"
450
+ " to method get_all_issue_sectors" % key
451
+ )
452
+ params[key] = val
453
+ del params['kwargs']
454
+ # verify the required parameter 'workflow_id' is set
455
+ if ('workflow_id' not in params or
456
+ params['workflow_id'] is None):
457
+ raise ValueError("Missing the required parameter `workflow_id` when calling `get_all_issue_sectors`") # noqa: E501
458
+
459
+ collection_formats = {}
460
+
461
+ path_params = {}
462
+ if 'workflow_id' in params:
463
+ path_params['workflowId'] = params['workflow_id'] # noqa: E501
464
+
465
+ query_params = []
466
+
467
+ header_params = {}
468
+
469
+ form_params = []
470
+ local_var_files = {}
471
+
472
+ body_params = None
473
+ # HTTP header `Accept`
474
+ header_params['Accept'] = self.api_client.select_header_accept(
475
+ ['application/json', 'text/json']) # noqa: E501
476
+
477
+ # Authentication setting
478
+ auth_settings = [] # noqa: E501
479
+
480
+ return self.api_client.call_api(
481
+ '/teamdbapi/v2.0/workflows/{workflowId}/sectors', 'GET',
482
+ path_params,
483
+ query_params,
484
+ header_params,
485
+ body=body_params,
486
+ post_params=form_params,
487
+ files=local_var_files,
488
+ response_type='list[IssueSector]', # noqa: E501
489
+ auth_settings=auth_settings,
490
+ async_req=params.get('async_req'),
491
+ _return_http_data_only=params.get('_return_http_data_only'),
492
+ _preload_content=params.get('_preload_content', True),
493
+ _request_timeout=params.get('_request_timeout'),
494
+ collection_formats=collection_formats)
495
+
496
+ def get_all_issue_status(self, workflow_id, **kwargs): # noqa: E501
497
+ """Get a list of all available status for a workflow. # noqa: E501
498
+
499
+ This method makes a synchronous HTTP request by default. To make an
500
+ asynchronous HTTP request, please pass async_req=True
501
+ >>> thread = api.get_all_issue_status(workflow_id, async_req=True)
502
+ >>> result = thread.get()
503
+
504
+ :param async_req bool
505
+ :param str workflow_id: The unique identifier of the workflow from which you wish to retrieve status. (required)
506
+ :return: list[IssueStatus]
507
+ If the method is called asynchronously,
508
+ returns the request thread.
509
+ """
510
+ kwargs['_return_http_data_only'] = True
511
+ if kwargs.get('async_req'):
512
+ return self.get_all_issue_status_with_http_info(workflow_id, **kwargs) # noqa: E501
513
+ else:
514
+ (data) = self.get_all_issue_status_with_http_info(workflow_id, **kwargs) # noqa: E501
515
+ return data
516
+
517
+ def get_all_issue_status_with_http_info(self, workflow_id, **kwargs): # noqa: E501
518
+ """Get a list of all available status for a workflow. # noqa: E501
519
+
520
+ This method makes a synchronous HTTP request by default. To make an
521
+ asynchronous HTTP request, please pass async_req=True
522
+ >>> thread = api.get_all_issue_status_with_http_info(workflow_id, async_req=True)
523
+ >>> result = thread.get()
524
+
525
+ :param async_req bool
526
+ :param str workflow_id: The unique identifier of the workflow from which you wish to retrieve status. (required)
527
+ :return: list[IssueStatus]
528
+ If the method is called asynchronously,
529
+ returns the request thread.
530
+ """
531
+
532
+ all_params = ['workflow_id'] # noqa: E501
533
+ all_params.append('async_req')
534
+ all_params.append('_return_http_data_only')
535
+ all_params.append('_preload_content')
536
+ all_params.append('_request_timeout')
537
+
538
+ params = locals()
539
+ for key, val in six.iteritems(params['kwargs']):
540
+ if key not in all_params:
541
+ raise TypeError(
542
+ "Got an unexpected keyword argument '%s'"
543
+ " to method get_all_issue_status" % key
544
+ )
545
+ params[key] = val
546
+ del params['kwargs']
547
+ # verify the required parameter 'workflow_id' is set
548
+ if ('workflow_id' not in params or
549
+ params['workflow_id'] is None):
550
+ raise ValueError("Missing the required parameter `workflow_id` when calling `get_all_issue_status`") # noqa: E501
551
+
552
+ collection_formats = {}
553
+
554
+ path_params = {}
555
+ if 'workflow_id' in params:
556
+ path_params['workflowId'] = params['workflow_id'] # noqa: E501
557
+
558
+ query_params = []
559
+
560
+ header_params = {}
561
+
562
+ form_params = []
563
+ local_var_files = {}
564
+
565
+ body_params = None
566
+ # HTTP header `Accept`
567
+ header_params['Accept'] = self.api_client.select_header_accept(
568
+ ['application/json', 'text/json']) # noqa: E501
569
+
570
+ # Authentication setting
571
+ auth_settings = [] # noqa: E501
572
+
573
+ return self.api_client.call_api(
574
+ '/teamdbapi/v2.0/workflows/{workflowId}/status', 'GET',
575
+ path_params,
576
+ query_params,
577
+ header_params,
578
+ body=body_params,
579
+ post_params=form_params,
580
+ files=local_var_files,
581
+ response_type='list[IssueStatus]', # noqa: E501
582
+ auth_settings=auth_settings,
583
+ async_req=params.get('async_req'),
584
+ _return_http_data_only=params.get('_return_http_data_only'),
585
+ _preload_content=params.get('_preload_content', True),
586
+ _request_timeout=params.get('_request_timeout'),
587
+ collection_formats=collection_formats)
588
+
589
+ def get_all_issue_types(self, workflow_id, **kwargs): # noqa: E501
590
+ """Get a list of all available types for a workflow. # noqa: E501
591
+
592
+ This method makes a synchronous HTTP request by default. To make an
593
+ asynchronous HTTP request, please pass async_req=True
594
+ >>> thread = api.get_all_issue_types(workflow_id, async_req=True)
595
+ >>> result = thread.get()
596
+
597
+ :param async_req bool
598
+ :param str workflow_id: The unique identifier of the workflow from which you wish to retrieve types. (required)
599
+ :return: list[IssueType]
600
+ If the method is called asynchronously,
601
+ returns the request thread.
602
+ """
603
+ kwargs['_return_http_data_only'] = True
604
+ if kwargs.get('async_req'):
605
+ return self.get_all_issue_types_with_http_info(workflow_id, **kwargs) # noqa: E501
606
+ else:
607
+ (data) = self.get_all_issue_types_with_http_info(workflow_id, **kwargs) # noqa: E501
608
+ return data
609
+
610
+ def get_all_issue_types_with_http_info(self, workflow_id, **kwargs): # noqa: E501
611
+ """Get a list of all available types for a workflow. # noqa: E501
612
+
613
+ This method makes a synchronous HTTP request by default. To make an
614
+ asynchronous HTTP request, please pass async_req=True
615
+ >>> thread = api.get_all_issue_types_with_http_info(workflow_id, async_req=True)
616
+ >>> result = thread.get()
617
+
618
+ :param async_req bool
619
+ :param str workflow_id: The unique identifier of the workflow from which you wish to retrieve types. (required)
620
+ :return: list[IssueType]
621
+ If the method is called asynchronously,
622
+ returns the request thread.
623
+ """
624
+
625
+ all_params = ['workflow_id'] # noqa: E501
626
+ all_params.append('async_req')
627
+ all_params.append('_return_http_data_only')
628
+ all_params.append('_preload_content')
629
+ all_params.append('_request_timeout')
630
+
631
+ params = locals()
632
+ for key, val in six.iteritems(params['kwargs']):
633
+ if key not in all_params:
634
+ raise TypeError(
635
+ "Got an unexpected keyword argument '%s'"
636
+ " to method get_all_issue_types" % key
637
+ )
638
+ params[key] = val
639
+ del params['kwargs']
640
+ # verify the required parameter 'workflow_id' is set
641
+ if ('workflow_id' not in params or
642
+ params['workflow_id'] is None):
643
+ raise ValueError("Missing the required parameter `workflow_id` when calling `get_all_issue_types`") # noqa: E501
644
+
645
+ collection_formats = {}
646
+
647
+ path_params = {}
648
+ if 'workflow_id' in params:
649
+ path_params['workflowId'] = params['workflow_id'] # noqa: E501
650
+
651
+ query_params = []
652
+
653
+ header_params = {}
654
+
655
+ form_params = []
656
+ local_var_files = {}
657
+
658
+ body_params = None
659
+ # HTTP header `Accept`
660
+ header_params['Accept'] = self.api_client.select_header_accept(
661
+ ['application/json', 'text/json']) # noqa: E501
662
+
663
+ # Authentication setting
664
+ auth_settings = [] # noqa: E501
665
+
666
+ return self.api_client.call_api(
667
+ '/teamdbapi/v2.0/workflows/{workflowId}/types', 'GET',
668
+ path_params,
669
+ query_params,
670
+ header_params,
671
+ body=body_params,
672
+ post_params=form_params,
673
+ files=local_var_files,
674
+ response_type='list[IssueType]', # noqa: E501
675
+ auth_settings=auth_settings,
676
+ async_req=params.get('async_req'),
677
+ _return_http_data_only=params.get('_return_http_data_only'),
678
+ _preload_content=params.get('_preload_content', True),
679
+ _request_timeout=params.get('_request_timeout'),
680
+ collection_formats=collection_formats)
681
+
682
+ def get_all_issue_workflows(self, **kwargs): # noqa: E501
683
+ """Get a list of all Issue workflows. # noqa: E501
684
+
685
+ This method makes a synchronous HTTP request by default. To make an
686
+ asynchronous HTTP request, please pass async_req=True
687
+ >>> thread = api.get_all_issue_workflows(async_req=True)
688
+ >>> result = thread.get()
689
+
690
+ :param async_req bool
691
+ :return: list[IssueWorkflow]
692
+ If the method is called asynchronously,
693
+ returns the request thread.
694
+ """
695
+ kwargs['_return_http_data_only'] = True
696
+ if kwargs.get('async_req'):
697
+ return self.get_all_issue_workflows_with_http_info(**kwargs) # noqa: E501
698
+ else:
699
+ (data) = self.get_all_issue_workflows_with_http_info(**kwargs) # noqa: E501
700
+ return data
701
+
702
+ def get_all_issue_workflows_with_http_info(self, **kwargs): # noqa: E501
703
+ """Get a list of all Issue workflows. # noqa: E501
704
+
705
+ This method makes a synchronous HTTP request by default. To make an
706
+ asynchronous HTTP request, please pass async_req=True
707
+ >>> thread = api.get_all_issue_workflows_with_http_info(async_req=True)
708
+ >>> result = thread.get()
709
+
710
+ :param async_req bool
711
+ :return: list[IssueWorkflow]
712
+ If the method is called asynchronously,
713
+ returns the request thread.
714
+ """
715
+
716
+ all_params = [] # noqa: E501
717
+ all_params.append('async_req')
718
+ all_params.append('_return_http_data_only')
719
+ all_params.append('_preload_content')
720
+ all_params.append('_request_timeout')
721
+
722
+ params = locals()
723
+ for key, val in six.iteritems(params['kwargs']):
724
+ if key not in all_params:
725
+ raise TypeError(
726
+ "Got an unexpected keyword argument '%s'"
727
+ " to method get_all_issue_workflows" % key
728
+ )
729
+ params[key] = val
730
+ del params['kwargs']
731
+
732
+ collection_formats = {}
733
+
734
+ path_params = {}
735
+
736
+ query_params = []
737
+
738
+ header_params = {}
739
+
740
+ form_params = []
741
+ local_var_files = {}
742
+
743
+ body_params = None
744
+ # HTTP header `Accept`
745
+ header_params['Accept'] = self.api_client.select_header_accept(
746
+ ['application/json', 'text/json']) # noqa: E501
747
+
748
+ # Authentication setting
749
+ auth_settings = [] # noqa: E501
750
+
751
+ return self.api_client.call_api(
752
+ '/teamdbapi/v2.0/workflows', 'GET',
753
+ path_params,
754
+ query_params,
755
+ header_params,
756
+ body=body_params,
757
+ post_params=form_params,
758
+ files=local_var_files,
759
+ response_type='list[IssueWorkflow]', # noqa: E501
760
+ auth_settings=auth_settings,
761
+ async_req=params.get('async_req'),
762
+ _return_http_data_only=params.get('_return_http_data_only'),
763
+ _preload_content=params.get('_preload_content', True),
764
+ _request_timeout=params.get('_request_timeout'),
765
+ collection_formats=collection_formats)
766
+
767
+ def get_all_issues(self, **kwargs): # noqa: E501
768
+ """Get the list of all Issues # noqa: E501
769
+
770
+ This method makes a synchronous HTTP request by default. To make an
771
+ asynchronous HTTP request, please pass async_req=True
772
+ >>> thread = api.get_all_issues(async_req=True)
773
+ >>> result = thread.get()
774
+
775
+ :param async_req bool
776
+ :return: list[Issue]
777
+ If the method is called asynchronously,
778
+ returns the request thread.
779
+ """
780
+ kwargs['_return_http_data_only'] = True
781
+ if kwargs.get('async_req'):
782
+ return self.get_all_issues_with_http_info(**kwargs) # noqa: E501
783
+ else:
784
+ (data) = self.get_all_issues_with_http_info(**kwargs) # noqa: E501
785
+ return data
786
+
787
+ def get_all_issues_with_http_info(self, **kwargs): # noqa: E501
788
+ """Get the list of all Issues # noqa: E501
789
+
790
+ This method makes a synchronous HTTP request by default. To make an
791
+ asynchronous HTTP request, please pass async_req=True
792
+ >>> thread = api.get_all_issues_with_http_info(async_req=True)
793
+ >>> result = thread.get()
794
+
795
+ :param async_req bool
796
+ :return: list[Issue]
797
+ If the method is called asynchronously,
798
+ returns the request thread.
799
+ """
800
+
801
+ all_params = [] # noqa: E501
802
+ all_params.append('async_req')
803
+ all_params.append('_return_http_data_only')
804
+ all_params.append('_preload_content')
805
+ all_params.append('_request_timeout')
806
+
807
+ params = locals()
808
+ for key, val in six.iteritems(params['kwargs']):
809
+ if key not in all_params:
810
+ raise TypeError(
811
+ "Got an unexpected keyword argument '%s'"
812
+ " to method get_all_issues" % key
813
+ )
814
+ params[key] = val
815
+ del params['kwargs']
816
+
817
+ collection_formats = {}
818
+
819
+ path_params = {}
820
+
821
+ query_params = []
822
+
823
+ header_params = {}
824
+
825
+ form_params = []
826
+ local_var_files = {}
827
+
828
+ body_params = None
829
+ # HTTP header `Accept`
830
+ header_params['Accept'] = self.api_client.select_header_accept(
831
+ ['application/json', 'text/json']) # noqa: E501
832
+
833
+ # Authentication setting
834
+ auth_settings = [] # noqa: E501
835
+
836
+ return self.api_client.call_api(
837
+ '/teamdbapi/v2.0/issues', 'GET',
838
+ path_params,
839
+ query_params,
840
+ header_params,
841
+ body=body_params,
842
+ post_params=form_params,
843
+ files=local_var_files,
844
+ response_type='list[Issue]', # noqa: E501
845
+ auth_settings=auth_settings,
846
+ async_req=params.get('async_req'),
847
+ _return_http_data_only=params.get('_return_http_data_only'),
848
+ _preload_content=params.get('_preload_content', True),
849
+ _request_timeout=params.get('_request_timeout'),
850
+ collection_formats=collection_formats)
851
+
852
+ def get_issue(self, issue_id, **kwargs): # noqa: E501
853
+ """Get an Issue via its id. # noqa: E501
854
+
855
+ This method makes a synchronous HTTP request by default. To make an
856
+ asynchronous HTTP request, please pass async_req=True
857
+ >>> thread = api.get_issue(issue_id, async_req=True)
858
+ >>> result = thread.get()
859
+
860
+ :param async_req bool
861
+ :param str issue_id: The IssueId of the Issue you want to retrieve. (required)
862
+ :return: Issue
863
+ If the method is called asynchronously,
864
+ returns the request thread.
865
+ """
866
+ kwargs['_return_http_data_only'] = True
867
+ if kwargs.get('async_req'):
868
+ return self.get_issue_with_http_info(issue_id, **kwargs) # noqa: E501
869
+ else:
870
+ (data) = self.get_issue_with_http_info(issue_id, **kwargs) # noqa: E501
871
+ return data
872
+
873
+ def get_issue_with_http_info(self, issue_id, **kwargs): # noqa: E501
874
+ """Get an Issue via its id. # noqa: E501
875
+
876
+ This method makes a synchronous HTTP request by default. To make an
877
+ asynchronous HTTP request, please pass async_req=True
878
+ >>> thread = api.get_issue_with_http_info(issue_id, async_req=True)
879
+ >>> result = thread.get()
880
+
881
+ :param async_req bool
882
+ :param str issue_id: The IssueId of the Issue you want to retrieve. (required)
883
+ :return: Issue
884
+ If the method is called asynchronously,
885
+ returns the request thread.
886
+ """
887
+
888
+ all_params = ['issue_id'] # noqa: E501
889
+ all_params.append('async_req')
890
+ all_params.append('_return_http_data_only')
891
+ all_params.append('_preload_content')
892
+ all_params.append('_request_timeout')
893
+
894
+ params = locals()
895
+ for key, val in six.iteritems(params['kwargs']):
896
+ if key not in all_params:
897
+ raise TypeError(
898
+ "Got an unexpected keyword argument '%s'"
899
+ " to method get_issue" % key
900
+ )
901
+ params[key] = val
902
+ del params['kwargs']
903
+ # verify the required parameter 'issue_id' is set
904
+ if ('issue_id' not in params or
905
+ params['issue_id'] is None):
906
+ raise ValueError("Missing the required parameter `issue_id` when calling `get_issue`") # noqa: E501
907
+
908
+ collection_formats = {}
909
+
910
+ path_params = {}
911
+ if 'issue_id' in params:
912
+ path_params['issueId'] = params['issue_id'] # noqa: E501
913
+
914
+ query_params = []
915
+
916
+ header_params = {}
917
+
918
+ form_params = []
919
+ local_var_files = {}
920
+
921
+ body_params = None
922
+ # HTTP header `Accept`
923
+ header_params['Accept'] = self.api_client.select_header_accept(
924
+ ['application/json', 'text/json']) # noqa: E501
925
+
926
+ # Authentication setting
927
+ auth_settings = [] # noqa: E501
928
+
929
+ return self.api_client.call_api(
930
+ '/teamdbapi/v2.0/issue/{issueId}', 'GET',
931
+ path_params,
932
+ query_params,
933
+ header_params,
934
+ body=body_params,
935
+ post_params=form_params,
936
+ files=local_var_files,
937
+ response_type='Issue', # noqa: E501
938
+ auth_settings=auth_settings,
939
+ async_req=params.get('async_req'),
940
+ _return_http_data_only=params.get('_return_http_data_only'),
941
+ _preload_content=params.get('_preload_content', True),
942
+ _request_timeout=params.get('_request_timeout'),
943
+ collection_formats=collection_formats)
944
+
945
+ def get_issue_by_human_id(self, human_id, **kwargs): # noqa: E501
946
+ """Get an Issue via its human id. # noqa: E501
947
+
948
+ This method makes a synchronous HTTP request by default. To make an
949
+ asynchronous HTTP request, please pass async_req=True
950
+ >>> thread = api.get_issue_by_human_id(human_id, async_req=True)
951
+ >>> result = thread.get()
952
+
953
+ :param async_req bool
954
+ :param str human_id: The HumanId of the Issue you want to retrieve. (required)
955
+ :return: Issue
956
+ If the method is called asynchronously,
957
+ returns the request thread.
958
+ """
959
+ kwargs['_return_http_data_only'] = True
960
+ if kwargs.get('async_req'):
961
+ return self.get_issue_by_human_id_with_http_info(human_id, **kwargs) # noqa: E501
962
+ else:
963
+ (data) = self.get_issue_by_human_id_with_http_info(human_id, **kwargs) # noqa: E501
964
+ return data
965
+
966
+ def get_issue_by_human_id_with_http_info(self, human_id, **kwargs): # noqa: E501
967
+ """Get an Issue via its human id. # noqa: E501
968
+
969
+ This method makes a synchronous HTTP request by default. To make an
970
+ asynchronous HTTP request, please pass async_req=True
971
+ >>> thread = api.get_issue_by_human_id_with_http_info(human_id, async_req=True)
972
+ >>> result = thread.get()
973
+
974
+ :param async_req bool
975
+ :param str human_id: The HumanId of the Issue you want to retrieve. (required)
976
+ :return: Issue
977
+ If the method is called asynchronously,
978
+ returns the request thread.
979
+ """
980
+
981
+ all_params = ['human_id'] # noqa: E501
982
+ all_params.append('async_req')
983
+ all_params.append('_return_http_data_only')
984
+ all_params.append('_preload_content')
985
+ all_params.append('_request_timeout')
986
+
987
+ params = locals()
988
+ for key, val in six.iteritems(params['kwargs']):
989
+ if key not in all_params:
990
+ raise TypeError(
991
+ "Got an unexpected keyword argument '%s'"
992
+ " to method get_issue_by_human_id" % key
993
+ )
994
+ params[key] = val
995
+ del params['kwargs']
996
+ # verify the required parameter 'human_id' is set
997
+ if ('human_id' not in params or
998
+ params['human_id'] is None):
999
+ raise ValueError("Missing the required parameter `human_id` when calling `get_issue_by_human_id`") # noqa: E501
1000
+
1001
+ collection_formats = {}
1002
+
1003
+ path_params = {}
1004
+ if 'human_id' in params:
1005
+ path_params['humanId'] = params['human_id'] # noqa: E501
1006
+
1007
+ query_params = []
1008
+
1009
+ header_params = {}
1010
+
1011
+ form_params = []
1012
+ local_var_files = {}
1013
+
1014
+ body_params = None
1015
+ # HTTP header `Accept`
1016
+ header_params['Accept'] = self.api_client.select_header_accept(
1017
+ ['application/json', 'text/json']) # noqa: E501
1018
+
1019
+ # Authentication setting
1020
+ auth_settings = [] # noqa: E501
1021
+
1022
+ return self.api_client.call_api(
1023
+ '/teamdbapi/v2.0/issue/humanId/{humanId}', 'GET',
1024
+ path_params,
1025
+ query_params,
1026
+ header_params,
1027
+ body=body_params,
1028
+ post_params=form_params,
1029
+ files=local_var_files,
1030
+ response_type='Issue', # noqa: E501
1031
+ auth_settings=auth_settings,
1032
+ async_req=params.get('async_req'),
1033
+ _return_http_data_only=params.get('_return_http_data_only'),
1034
+ _preload_content=params.get('_preload_content', True),
1035
+ _request_timeout=params.get('_request_timeout'),
1036
+ collection_formats=collection_formats)
1037
+
1038
+ def get_issue_children(self, issue_id, **kwargs): # noqa: E501
1039
+ """Get an Issue children IDs list. # noqa: E501
1040
+
1041
+ This method makes a synchronous HTTP request by default. To make an
1042
+ asynchronous HTTP request, please pass async_req=True
1043
+ >>> thread = api.get_issue_children(issue_id, async_req=True)
1044
+ >>> result = thread.get()
1045
+
1046
+ :param async_req bool
1047
+ :param str issue_id: The IssueId of the Issue you want to retrieve the children from. (required)
1048
+ :return: list[str]
1049
+ If the method is called asynchronously,
1050
+ returns the request thread.
1051
+ """
1052
+ kwargs['_return_http_data_only'] = True
1053
+ if kwargs.get('async_req'):
1054
+ return self.get_issue_children_with_http_info(issue_id, **kwargs) # noqa: E501
1055
+ else:
1056
+ (data) = self.get_issue_children_with_http_info(issue_id, **kwargs) # noqa: E501
1057
+ return data
1058
+
1059
+ def get_issue_children_with_http_info(self, issue_id, **kwargs): # noqa: E501
1060
+ """Get an Issue children IDs list. # noqa: E501
1061
+
1062
+ This method makes a synchronous HTTP request by default. To make an
1063
+ asynchronous HTTP request, please pass async_req=True
1064
+ >>> thread = api.get_issue_children_with_http_info(issue_id, async_req=True)
1065
+ >>> result = thread.get()
1066
+
1067
+ :param async_req bool
1068
+ :param str issue_id: The IssueId of the Issue you want to retrieve the children from. (required)
1069
+ :return: list[str]
1070
+ If the method is called asynchronously,
1071
+ returns the request thread.
1072
+ """
1073
+
1074
+ all_params = ['issue_id'] # noqa: E501
1075
+ all_params.append('async_req')
1076
+ all_params.append('_return_http_data_only')
1077
+ all_params.append('_preload_content')
1078
+ all_params.append('_request_timeout')
1079
+
1080
+ params = locals()
1081
+ for key, val in six.iteritems(params['kwargs']):
1082
+ if key not in all_params:
1083
+ raise TypeError(
1084
+ "Got an unexpected keyword argument '%s'"
1085
+ " to method get_issue_children" % key
1086
+ )
1087
+ params[key] = val
1088
+ del params['kwargs']
1089
+ # verify the required parameter 'issue_id' is set
1090
+ if ('issue_id' not in params or
1091
+ params['issue_id'] is None):
1092
+ raise ValueError("Missing the required parameter `issue_id` when calling `get_issue_children`") # noqa: E501
1093
+
1094
+ collection_formats = {}
1095
+
1096
+ path_params = {}
1097
+ if 'issue_id' in params:
1098
+ path_params['issueId'] = params['issue_id'] # noqa: E501
1099
+
1100
+ query_params = []
1101
+
1102
+ header_params = {}
1103
+
1104
+ form_params = []
1105
+ local_var_files = {}
1106
+
1107
+ body_params = None
1108
+ # HTTP header `Accept`
1109
+ header_params['Accept'] = self.api_client.select_header_accept(
1110
+ ['application/json', 'text/json']) # noqa: E501
1111
+
1112
+ # Authentication setting
1113
+ auth_settings = [] # noqa: E501
1114
+
1115
+ return self.api_client.call_api(
1116
+ '/teamdbapi/v2.0/issue/{issueId}/children', 'GET',
1117
+ path_params,
1118
+ query_params,
1119
+ header_params,
1120
+ body=body_params,
1121
+ post_params=form_params,
1122
+ files=local_var_files,
1123
+ response_type='list[str]', # noqa: E501
1124
+ auth_settings=auth_settings,
1125
+ async_req=params.get('async_req'),
1126
+ _return_http_data_only=params.get('_return_http_data_only'),
1127
+ _preload_content=params.get('_preload_content', True),
1128
+ _request_timeout=params.get('_request_timeout'),
1129
+ collection_formats=collection_formats)
1130
+
1131
+ def get_issue_parents(self, issue_id, **kwargs): # noqa: E501
1132
+ """Get an Issue parents IDs list. # noqa: E501
1133
+
1134
+ This method makes a synchronous HTTP request by default. To make an
1135
+ asynchronous HTTP request, please pass async_req=True
1136
+ >>> thread = api.get_issue_parents(issue_id, async_req=True)
1137
+ >>> result = thread.get()
1138
+
1139
+ :param async_req bool
1140
+ :param str issue_id: The IssueId of the Issue you want to retrieve the parents from. (required)
1141
+ :return: list[str]
1142
+ If the method is called asynchronously,
1143
+ returns the request thread.
1144
+ """
1145
+ kwargs['_return_http_data_only'] = True
1146
+ if kwargs.get('async_req'):
1147
+ return self.get_issue_parents_with_http_info(issue_id, **kwargs) # noqa: E501
1148
+ else:
1149
+ (data) = self.get_issue_parents_with_http_info(issue_id, **kwargs) # noqa: E501
1150
+ return data
1151
+
1152
+ def get_issue_parents_with_http_info(self, issue_id, **kwargs): # noqa: E501
1153
+ """Get an Issue parents IDs list. # noqa: E501
1154
+
1155
+ This method makes a synchronous HTTP request by default. To make an
1156
+ asynchronous HTTP request, please pass async_req=True
1157
+ >>> thread = api.get_issue_parents_with_http_info(issue_id, async_req=True)
1158
+ >>> result = thread.get()
1159
+
1160
+ :param async_req bool
1161
+ :param str issue_id: The IssueId of the Issue you want to retrieve the parents from. (required)
1162
+ :return: list[str]
1163
+ If the method is called asynchronously,
1164
+ returns the request thread.
1165
+ """
1166
+
1167
+ all_params = ['issue_id'] # noqa: E501
1168
+ all_params.append('async_req')
1169
+ all_params.append('_return_http_data_only')
1170
+ all_params.append('_preload_content')
1171
+ all_params.append('_request_timeout')
1172
+
1173
+ params = locals()
1174
+ for key, val in six.iteritems(params['kwargs']):
1175
+ if key not in all_params:
1176
+ raise TypeError(
1177
+ "Got an unexpected keyword argument '%s'"
1178
+ " to method get_issue_parents" % key
1179
+ )
1180
+ params[key] = val
1181
+ del params['kwargs']
1182
+ # verify the required parameter 'issue_id' is set
1183
+ if ('issue_id' not in params or
1184
+ params['issue_id'] is None):
1185
+ raise ValueError("Missing the required parameter `issue_id` when calling `get_issue_parents`") # noqa: E501
1186
+
1187
+ collection_formats = {}
1188
+
1189
+ path_params = {}
1190
+ if 'issue_id' in params:
1191
+ path_params['issueId'] = params['issue_id'] # noqa: E501
1192
+
1193
+ query_params = []
1194
+
1195
+ header_params = {}
1196
+
1197
+ form_params = []
1198
+ local_var_files = {}
1199
+
1200
+ body_params = None
1201
+ # HTTP header `Accept`
1202
+ header_params['Accept'] = self.api_client.select_header_accept(
1203
+ ['application/json', 'text/json']) # noqa: E501
1204
+
1205
+ # Authentication setting
1206
+ auth_settings = [] # noqa: E501
1207
+
1208
+ return self.api_client.call_api(
1209
+ '/teamdbapi/v2.0/issue/{issueId}/parents', 'GET',
1210
+ path_params,
1211
+ query_params,
1212
+ header_params,
1213
+ body=body_params,
1214
+ post_params=form_params,
1215
+ files=local_var_files,
1216
+ response_type='list[str]', # noqa: E501
1217
+ auth_settings=auth_settings,
1218
+ async_req=params.get('async_req'),
1219
+ _return_http_data_only=params.get('_return_http_data_only'),
1220
+ _preload_content=params.get('_preload_content', True),
1221
+ _request_timeout=params.get('_request_timeout'),
1222
+ collection_formats=collection_formats)
1223
+
1224
+ def link_child_issue(self, body, issue_id, **kwargs): # noqa: E501
1225
+ """[Command] Link a child issue # noqa: E501
1226
+
1227
+ This method makes a synchronous HTTP request by default. To make an
1228
+ asynchronous HTTP request, please pass async_req=True
1229
+ >>> thread = api.link_child_issue(body, issue_id, async_req=True)
1230
+ >>> result = thread.get()
1231
+
1232
+ :param async_req bool
1233
+ :param list[str] body: The list of Issues (identified by their IssueId) to link as child Issue (required)
1234
+ :param str issue_id: The IssueId of the parent Issue to link from (required)
1235
+ :return: None
1236
+ If the method is called asynchronously,
1237
+ returns the request thread.
1238
+ """
1239
+ kwargs['_return_http_data_only'] = True
1240
+ if kwargs.get('async_req'):
1241
+ return self.link_child_issue_with_http_info(body, issue_id, **kwargs) # noqa: E501
1242
+ else:
1243
+ (data) = self.link_child_issue_with_http_info(body, issue_id, **kwargs) # noqa: E501
1244
+ return data
1245
+
1246
+ def link_child_issue_with_http_info(self, body, issue_id, **kwargs): # noqa: E501
1247
+ """[Command] Link a child issue # noqa: E501
1248
+
1249
+ This method makes a synchronous HTTP request by default. To make an
1250
+ asynchronous HTTP request, please pass async_req=True
1251
+ >>> thread = api.link_child_issue_with_http_info(body, issue_id, async_req=True)
1252
+ >>> result = thread.get()
1253
+
1254
+ :param async_req bool
1255
+ :param list[str] body: The list of Issues (identified by their IssueId) to link as child Issue (required)
1256
+ :param str issue_id: The IssueId of the parent Issue to link from (required)
1257
+ :return: None
1258
+ If the method is called asynchronously,
1259
+ returns the request thread.
1260
+ """
1261
+
1262
+ all_params = ['body', 'issue_id'] # noqa: E501
1263
+ all_params.append('async_req')
1264
+ all_params.append('_return_http_data_only')
1265
+ all_params.append('_preload_content')
1266
+ all_params.append('_request_timeout')
1267
+
1268
+ params = locals()
1269
+ for key, val in six.iteritems(params['kwargs']):
1270
+ if key not in all_params:
1271
+ raise TypeError(
1272
+ "Got an unexpected keyword argument '%s'"
1273
+ " to method link_child_issue" % key
1274
+ )
1275
+ params[key] = val
1276
+ del params['kwargs']
1277
+ # verify the required parameter 'body' is set
1278
+ if ('body' not in params or
1279
+ params['body'] is None):
1280
+ raise ValueError("Missing the required parameter `body` when calling `link_child_issue`") # noqa: E501
1281
+ # verify the required parameter 'issue_id' is set
1282
+ if ('issue_id' not in params or
1283
+ params['issue_id'] is None):
1284
+ raise ValueError("Missing the required parameter `issue_id` when calling `link_child_issue`") # noqa: E501
1285
+
1286
+ collection_formats = {}
1287
+
1288
+ path_params = {}
1289
+ if 'issue_id' in params:
1290
+ path_params['issueId'] = params['issue_id'] # noqa: E501
1291
+
1292
+ query_params = []
1293
+
1294
+ header_params = {}
1295
+
1296
+ form_params = []
1297
+ local_var_files = {}
1298
+
1299
+ body_params = None
1300
+ if 'body' in params:
1301
+ body_params = params['body']
1302
+ # HTTP header `Accept`
1303
+ header_params['Accept'] = self.api_client.select_header_accept(
1304
+ ['application/json', 'text/json']) # noqa: E501
1305
+
1306
+ # HTTP header `Content-Type`
1307
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1308
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
1309
+
1310
+ # Authentication setting
1311
+ auth_settings = [] # noqa: E501
1312
+
1313
+ return self.api_client.call_api(
1314
+ '/teamdbapi/v2.0/issue/{issueId}/link', 'POST',
1315
+ path_params,
1316
+ query_params,
1317
+ header_params,
1318
+ body=body_params,
1319
+ post_params=form_params,
1320
+ files=local_var_files,
1321
+ response_type=None, # noqa: E501
1322
+ auth_settings=auth_settings,
1323
+ async_req=params.get('async_req'),
1324
+ _return_http_data_only=params.get('_return_http_data_only'),
1325
+ _preload_content=params.get('_preload_content', True),
1326
+ _request_timeout=params.get('_request_timeout'),
1327
+ collection_formats=collection_formats)
1328
+
1329
+ def unlink_child_issue(self, body, issue_id, **kwargs): # noqa: E501
1330
+ """[Command] Unlink a child issue # noqa: E501
1331
+
1332
+ This method makes a synchronous HTTP request by default. To make an
1333
+ asynchronous HTTP request, please pass async_req=True
1334
+ >>> thread = api.unlink_child_issue(body, issue_id, async_req=True)
1335
+ >>> result = thread.get()
1336
+
1337
+ :param async_req bool
1338
+ :param list[str] body: The list of Issues (identified by their IssueId) to unlink from parent Issue (required)
1339
+ :param str issue_id: The IssueId of the parent Issue to unlink from (required)
1340
+ :return: None
1341
+ If the method is called asynchronously,
1342
+ returns the request thread.
1343
+ """
1344
+ kwargs['_return_http_data_only'] = True
1345
+ if kwargs.get('async_req'):
1346
+ return self.unlink_child_issue_with_http_info(body, issue_id, **kwargs) # noqa: E501
1347
+ else:
1348
+ (data) = self.unlink_child_issue_with_http_info(body, issue_id, **kwargs) # noqa: E501
1349
+ return data
1350
+
1351
+ def unlink_child_issue_with_http_info(self, body, issue_id, **kwargs): # noqa: E501
1352
+ """[Command] Unlink a child issue # noqa: E501
1353
+
1354
+ This method makes a synchronous HTTP request by default. To make an
1355
+ asynchronous HTTP request, please pass async_req=True
1356
+ >>> thread = api.unlink_child_issue_with_http_info(body, issue_id, async_req=True)
1357
+ >>> result = thread.get()
1358
+
1359
+ :param async_req bool
1360
+ :param list[str] body: The list of Issues (identified by their IssueId) to unlink from parent Issue (required)
1361
+ :param str issue_id: The IssueId of the parent Issue to unlink from (required)
1362
+ :return: None
1363
+ If the method is called asynchronously,
1364
+ returns the request thread.
1365
+ """
1366
+
1367
+ all_params = ['body', 'issue_id'] # noqa: E501
1368
+ all_params.append('async_req')
1369
+ all_params.append('_return_http_data_only')
1370
+ all_params.append('_preload_content')
1371
+ all_params.append('_request_timeout')
1372
+
1373
+ params = locals()
1374
+ for key, val in six.iteritems(params['kwargs']):
1375
+ if key not in all_params:
1376
+ raise TypeError(
1377
+ "Got an unexpected keyword argument '%s'"
1378
+ " to method unlink_child_issue" % key
1379
+ )
1380
+ params[key] = val
1381
+ del params['kwargs']
1382
+ # verify the required parameter 'body' is set
1383
+ if ('body' not in params or
1384
+ params['body'] is None):
1385
+ raise ValueError("Missing the required parameter `body` when calling `unlink_child_issue`") # noqa: E501
1386
+ # verify the required parameter 'issue_id' is set
1387
+ if ('issue_id' not in params or
1388
+ params['issue_id'] is None):
1389
+ raise ValueError("Missing the required parameter `issue_id` when calling `unlink_child_issue`") # noqa: E501
1390
+
1391
+ collection_formats = {}
1392
+
1393
+ path_params = {}
1394
+ if 'issue_id' in params:
1395
+ path_params['issueId'] = params['issue_id'] # noqa: E501
1396
+
1397
+ query_params = []
1398
+
1399
+ header_params = {}
1400
+
1401
+ form_params = []
1402
+ local_var_files = {}
1403
+
1404
+ body_params = None
1405
+ if 'body' in params:
1406
+ body_params = params['body']
1407
+ # HTTP header `Accept`
1408
+ header_params['Accept'] = self.api_client.select_header_accept(
1409
+ ['application/json', 'text/json']) # noqa: E501
1410
+
1411
+ # HTTP header `Content-Type`
1412
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1413
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
1414
+
1415
+ # Authentication setting
1416
+ auth_settings = [] # noqa: E501
1417
+
1418
+ return self.api_client.call_api(
1419
+ '/teamdbapi/v2.0/issue/{issueId}/unlink', 'POST',
1420
+ path_params,
1421
+ query_params,
1422
+ header_params,
1423
+ body=body_params,
1424
+ post_params=form_params,
1425
+ files=local_var_files,
1426
+ response_type=None, # noqa: E501
1427
+ auth_settings=auth_settings,
1428
+ async_req=params.get('async_req'),
1429
+ _return_http_data_only=params.get('_return_http_data_only'),
1430
+ _preload_content=params.get('_preload_content', True),
1431
+ _request_timeout=params.get('_request_timeout'),
1432
+ collection_formats=collection_formats)
1433
+
1434
+ def update_issue(self, body, issue_id, **kwargs): # noqa: E501
1435
+ """Update an Issue. # noqa: E501
1436
+
1437
+ This method makes a synchronous HTTP request by default. To make an
1438
+ asynchronous HTTP request, please pass async_req=True
1439
+ >>> thread = api.update_issue(body, issue_id, async_req=True)
1440
+ >>> result = thread.get()
1441
+
1442
+ :param async_req bool
1443
+ :param Issue body: The updated Issue (required)
1444
+ :param str issue_id: The IssueId of the Issue you want to update (required)
1445
+ :return: Issue
1446
+ If the method is called asynchronously,
1447
+ returns the request thread.
1448
+ """
1449
+ kwargs['_return_http_data_only'] = True
1450
+ if kwargs.get('async_req'):
1451
+ return self.update_issue_with_http_info(body, issue_id, **kwargs) # noqa: E501
1452
+ else:
1453
+ (data) = self.update_issue_with_http_info(body, issue_id, **kwargs) # noqa: E501
1454
+ return data
1455
+
1456
+ def update_issue_with_http_info(self, body, issue_id, **kwargs): # noqa: E501
1457
+ """Update an Issue. # noqa: E501
1458
+
1459
+ This method makes a synchronous HTTP request by default. To make an
1460
+ asynchronous HTTP request, please pass async_req=True
1461
+ >>> thread = api.update_issue_with_http_info(body, issue_id, async_req=True)
1462
+ >>> result = thread.get()
1463
+
1464
+ :param async_req bool
1465
+ :param Issue body: The updated Issue (required)
1466
+ :param str issue_id: The IssueId of the Issue you want to update (required)
1467
+ :return: Issue
1468
+ If the method is called asynchronously,
1469
+ returns the request thread.
1470
+ """
1471
+
1472
+ all_params = ['body', 'issue_id'] # noqa: E501
1473
+ all_params.append('async_req')
1474
+ all_params.append('_return_http_data_only')
1475
+ all_params.append('_preload_content')
1476
+ all_params.append('_request_timeout')
1477
+
1478
+ params = locals()
1479
+ for key, val in six.iteritems(params['kwargs']):
1480
+ if key not in all_params:
1481
+ raise TypeError(
1482
+ "Got an unexpected keyword argument '%s'"
1483
+ " to method update_issue" % key
1484
+ )
1485
+ params[key] = val
1486
+ del params['kwargs']
1487
+ # verify the required parameter 'body' is set
1488
+ if ('body' not in params or
1489
+ params['body'] is None):
1490
+ raise ValueError("Missing the required parameter `body` when calling `update_issue`") # noqa: E501
1491
+ # verify the required parameter 'issue_id' is set
1492
+ if ('issue_id' not in params or
1493
+ params['issue_id'] is None):
1494
+ raise ValueError("Missing the required parameter `issue_id` when calling `update_issue`") # noqa: E501
1495
+
1496
+ collection_formats = {}
1497
+
1498
+ path_params = {}
1499
+ if 'issue_id' in params:
1500
+ path_params['issueId'] = params['issue_id'] # noqa: E501
1501
+
1502
+ query_params = []
1503
+
1504
+ header_params = {}
1505
+
1506
+ form_params = []
1507
+ local_var_files = {}
1508
+
1509
+ body_params = None
1510
+ if 'body' in params:
1511
+ body_params = params['body']
1512
+ # HTTP header `Accept`
1513
+ header_params['Accept'] = self.api_client.select_header_accept(
1514
+ ['application/json', 'text/json']) # noqa: E501
1515
+
1516
+ # HTTP header `Content-Type`
1517
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1518
+ ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
1519
+
1520
+ # Authentication setting
1521
+ auth_settings = [] # noqa: E501
1522
+
1523
+ return self.api_client.call_api(
1524
+ '/teamdbapi/v2.0/issue/{issueId}', 'PUT',
1525
+ path_params,
1526
+ query_params,
1527
+ header_params,
1528
+ body=body_params,
1529
+ post_params=form_params,
1530
+ files=local_var_files,
1531
+ response_type='Issue', # noqa: E501
1532
+ auth_settings=auth_settings,
1533
+ async_req=params.get('async_req'),
1534
+ _return_http_data_only=params.get('_return_http_data_only'),
1535
+ _preload_content=params.get('_preload_content', True),
1536
+ _request_timeout=params.get('_request_timeout'),
1537
+ collection_formats=collection_formats)