teamdbapi 3.9.0__py3-none-any.whl → 3.10.1__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.
@@ -336,17 +336,17 @@ class AssemblyApi(object):
336
336
  _request_timeout=params.get('_request_timeout'),
337
337
  collection_formats=collection_formats)
338
338
 
339
- def compare_assemblies(self, assembly_aid, assembly_bid, **kwargs): # noqa: E501
339
+ def compare_assemblies(self, assembly_a_id, assembly_b_id, **kwargs): # noqa: E501
340
340
  """[Command] Compare 2 assemblies # noqa: E501
341
341
 
342
342
  This method makes a synchronous HTTP request by default. To make an
343
343
  asynchronous HTTP request, please pass async_req=True
344
- >>> thread = api.compare_assemblies(assembly_aid, assembly_bid, async_req=True)
344
+ >>> thread = api.compare_assemblies(assembly_a_id, assembly_b_id, async_req=True)
345
345
  >>> result = thread.get()
346
346
 
347
347
  :param async_req bool
348
- :param str assembly_aid: Assembly A unique Id (required)
349
- :param str assembly_bid: Assembly B unique Id (required)
348
+ :param str assembly_a_id: Assembly A unique Id (required)
349
+ :param str assembly_b_id: Assembly B unique Id (required)
350
350
  :param CompareOptions compare_options: The import options. You can leave options empty. By defaut, there will be no filter and no file export. To apply a filter you have to fill ParametersSelectionFilters and ExcludeParametersInSelection. To export a file you must fill OutPathFilePath. The file extension will be automatically replaced by the good one. DiffGroup allows you to select the content of the diff file generated. You can choose A or B. By default B is selected.
351
351
  :return: list[CompareResultDetail]
352
352
  If the method is called asynchronously,
@@ -354,29 +354,29 @@ class AssemblyApi(object):
354
354
  """
355
355
  kwargs['_return_http_data_only'] = True
356
356
  if kwargs.get('async_req'):
357
- return self.compare_assemblies_with_http_info(assembly_aid, assembly_bid, **kwargs) # noqa: E501
357
+ return self.compare_assemblies_with_http_info(assembly_a_id, assembly_b_id, **kwargs) # noqa: E501
358
358
  else:
359
- (data) = self.compare_assemblies_with_http_info(assembly_aid, assembly_bid, **kwargs) # noqa: E501
359
+ (data) = self.compare_assemblies_with_http_info(assembly_a_id, assembly_b_id, **kwargs) # noqa: E501
360
360
  return data
361
361
 
362
- def compare_assemblies_with_http_info(self, assembly_aid, assembly_bid, **kwargs): # noqa: E501
362
+ def compare_assemblies_with_http_info(self, assembly_a_id, assembly_b_id, **kwargs): # noqa: E501
363
363
  """[Command] Compare 2 assemblies # noqa: E501
364
364
 
365
365
  This method makes a synchronous HTTP request by default. To make an
366
366
  asynchronous HTTP request, please pass async_req=True
367
- >>> thread = api.compare_assemblies_with_http_info(assembly_aid, assembly_bid, async_req=True)
367
+ >>> thread = api.compare_assemblies_with_http_info(assembly_a_id, assembly_b_id, async_req=True)
368
368
  >>> result = thread.get()
369
369
 
370
370
  :param async_req bool
371
- :param str assembly_aid: Assembly A unique Id (required)
372
- :param str assembly_bid: Assembly B unique Id (required)
371
+ :param str assembly_a_id: Assembly A unique Id (required)
372
+ :param str assembly_b_id: Assembly B unique Id (required)
373
373
  :param CompareOptions compare_options: The import options. You can leave options empty. By defaut, there will be no filter and no file export. To apply a filter you have to fill ParametersSelectionFilters and ExcludeParametersInSelection. To export a file you must fill OutPathFilePath. The file extension will be automatically replaced by the good one. DiffGroup allows you to select the content of the diff file generated. You can choose A or B. By default B is selected.
374
374
  :return: list[CompareResultDetail]
375
375
  If the method is called asynchronously,
376
376
  returns the request thread.
377
377
  """
378
378
 
379
- all_params = ['assembly_aid', 'assembly_bid', 'compare_options'] # noqa: E501
379
+ all_params = ['assembly_a_id', 'assembly_b_id', 'compare_options'] # noqa: E501
380
380
  all_params.append('async_req')
381
381
  all_params.append('_return_http_data_only')
382
382
  all_params.append('_preload_content')
@@ -391,24 +391,24 @@ class AssemblyApi(object):
391
391
  )
392
392
  params[key] = val
393
393
  del params['kwargs']
394
- # verify the required parameter 'assembly_aid' is set
395
- if self.api_client.client_side_validation and ('assembly_aid' not in params or
396
- params['assembly_aid'] is None): # noqa: E501
397
- raise ValueError("Missing the required parameter `assembly_aid` when calling `compare_assemblies`") # noqa: E501
398
- # verify the required parameter 'assembly_bid' is set
399
- if self.api_client.client_side_validation and ('assembly_bid' not in params or
400
- params['assembly_bid'] is None): # noqa: E501
401
- raise ValueError("Missing the required parameter `assembly_bid` when calling `compare_assemblies`") # noqa: E501
394
+ # verify the required parameter 'assembly_a_id' is set
395
+ if self.api_client.client_side_validation and ('assembly_a_id' not in params or
396
+ params['assembly_a_id'] is None): # noqa: E501
397
+ raise ValueError("Missing the required parameter `assembly_a_id` when calling `compare_assemblies`") # noqa: E501
398
+ # verify the required parameter 'assembly_b_id' is set
399
+ if self.api_client.client_side_validation and ('assembly_b_id' not in params or
400
+ params['assembly_b_id'] is None): # noqa: E501
401
+ raise ValueError("Missing the required parameter `assembly_b_id` when calling `compare_assemblies`") # noqa: E501
402
402
 
403
403
  collection_formats = {}
404
404
 
405
405
  path_params = {}
406
406
 
407
407
  query_params = []
408
- if 'assembly_aid' in params:
409
- query_params.append(('assemblyAId', params['assembly_aid'])) # noqa: E501
410
- if 'assembly_bid' in params:
411
- query_params.append(('assemblyBId', params['assembly_bid'])) # noqa: E501
408
+ if 'assembly_a_id' in params:
409
+ query_params.append(('assemblyAId', params['assembly_a_id'])) # noqa: E501
410
+ if 'assembly_b_id' in params:
411
+ query_params.append(('assemblyBId', params['assembly_b_id'])) # noqa: E501
412
412
 
413
413
  header_params = {}
414
414
 
@@ -1412,6 +1412,115 @@ class IssueApi(object):
1412
1412
  _request_timeout=params.get('_request_timeout'),
1413
1413
  collection_formats=collection_formats)
1414
1414
 
1415
+ def link_issue_value_field(self, issue_id, model_field_id, parent_item_id, **kwargs): # noqa: E501
1416
+ """[Command] Link an issue to a value field # noqa: E501
1417
+
1418
+ This method makes a synchronous HTTP request by default. To make an
1419
+ asynchronous HTTP request, please pass async_req=True
1420
+ >>> thread = api.link_issue_value_field(issue_id, model_field_id, parent_item_id, async_req=True)
1421
+ >>> result = thread.get()
1422
+
1423
+ :param async_req bool
1424
+ :param str issue_id: The IssueId of the Issue to link (required)
1425
+ :param str model_field_id: The model field id for the value field you want to get linked to the issue (required)
1426
+ :param str parent_item_id: The parent item id for the value field you want to get linked to the issue (required)
1427
+ :return: None
1428
+ If the method is called asynchronously,
1429
+ returns the request thread.
1430
+ """
1431
+ kwargs['_return_http_data_only'] = True
1432
+ if kwargs.get('async_req'):
1433
+ return self.link_issue_value_field_with_http_info(issue_id, model_field_id, parent_item_id, **kwargs) # noqa: E501
1434
+ else:
1435
+ (data) = self.link_issue_value_field_with_http_info(issue_id, model_field_id, parent_item_id, **kwargs) # noqa: E501
1436
+ return data
1437
+
1438
+ def link_issue_value_field_with_http_info(self, issue_id, model_field_id, parent_item_id, **kwargs): # noqa: E501
1439
+ """[Command] Link an issue to a value field # noqa: E501
1440
+
1441
+ This method makes a synchronous HTTP request by default. To make an
1442
+ asynchronous HTTP request, please pass async_req=True
1443
+ >>> thread = api.link_issue_value_field_with_http_info(issue_id, model_field_id, parent_item_id, async_req=True)
1444
+ >>> result = thread.get()
1445
+
1446
+ :param async_req bool
1447
+ :param str issue_id: The IssueId of the Issue to link (required)
1448
+ :param str model_field_id: The model field id for the value field you want to get linked to the issue (required)
1449
+ :param str parent_item_id: The parent item id for the value field you want to get linked to the issue (required)
1450
+ :return: None
1451
+ If the method is called asynchronously,
1452
+ returns the request thread.
1453
+ """
1454
+
1455
+ all_params = ['issue_id', 'model_field_id', 'parent_item_id'] # noqa: E501
1456
+ all_params.append('async_req')
1457
+ all_params.append('_return_http_data_only')
1458
+ all_params.append('_preload_content')
1459
+ all_params.append('_request_timeout')
1460
+
1461
+ params = locals()
1462
+ for key, val in six.iteritems(params['kwargs']):
1463
+ if key not in all_params:
1464
+ raise TypeError(
1465
+ "Got an unexpected keyword argument '%s'"
1466
+ " to method link_issue_value_field" % key
1467
+ )
1468
+ params[key] = val
1469
+ del params['kwargs']
1470
+ # verify the required parameter 'issue_id' is set
1471
+ if self.api_client.client_side_validation and ('issue_id' not in params or
1472
+ params['issue_id'] is None): # noqa: E501
1473
+ raise ValueError("Missing the required parameter `issue_id` when calling `link_issue_value_field`") # noqa: E501
1474
+ # verify the required parameter 'model_field_id' is set
1475
+ if self.api_client.client_side_validation and ('model_field_id' not in params or
1476
+ params['model_field_id'] is None): # noqa: E501
1477
+ raise ValueError("Missing the required parameter `model_field_id` when calling `link_issue_value_field`") # noqa: E501
1478
+ # verify the required parameter 'parent_item_id' is set
1479
+ if self.api_client.client_side_validation and ('parent_item_id' not in params or
1480
+ params['parent_item_id'] is None): # noqa: E501
1481
+ raise ValueError("Missing the required parameter `parent_item_id` when calling `link_issue_value_field`") # noqa: E501
1482
+
1483
+ collection_formats = {}
1484
+
1485
+ path_params = {}
1486
+ if 'issue_id' in params:
1487
+ path_params['issueId'] = params['issue_id'] # noqa: E501
1488
+
1489
+ query_params = []
1490
+ if 'model_field_id' in params:
1491
+ query_params.append(('modelFieldId', params['model_field_id'])) # noqa: E501
1492
+ if 'parent_item_id' in params:
1493
+ query_params.append(('parentItemId', params['parent_item_id'])) # noqa: E501
1494
+
1495
+ header_params = {}
1496
+
1497
+ form_params = []
1498
+ local_var_files = {}
1499
+
1500
+ body_params = None
1501
+ # HTTP header `Accept`
1502
+ header_params['Accept'] = self.api_client.select_header_accept(
1503
+ ['application/json', 'text/json']) # noqa: E501
1504
+
1505
+ # Authentication setting
1506
+ auth_settings = [] # noqa: E501
1507
+
1508
+ return self.api_client.call_api(
1509
+ '/teamdbapi/v2.0/issue/{issueId}/linkValueField', 'POST',
1510
+ path_params,
1511
+ query_params,
1512
+ header_params,
1513
+ body=body_params,
1514
+ post_params=form_params,
1515
+ files=local_var_files,
1516
+ response_type=None, # noqa: E501
1517
+ auth_settings=auth_settings,
1518
+ async_req=params.get('async_req'),
1519
+ _return_http_data_only=params.get('_return_http_data_only'),
1520
+ _preload_content=params.get('_preload_content', True),
1521
+ _request_timeout=params.get('_request_timeout'),
1522
+ collection_formats=collection_formats)
1523
+
1415
1524
  def unlink_child_issue(self, issue_id, child_issues_to_unlink, **kwargs): # noqa: E501
1416
1525
  """[Command] Unlink a child issue # noqa: E501
1417
1526
 
teamdbapi/models/issue.py CHANGED
@@ -53,7 +53,8 @@ class Issue(object):
53
53
  'OwnerName': 'str',
54
54
  'Sector': 'IssueSector',
55
55
  'Occurrence': 'int',
56
- 'CustomFields': 'list[IssueCustomFieldValue]'
56
+ 'CustomFields': 'list[IssueCustomFieldValue]',
57
+ 'Watchers': 'list[str]'
57
58
  }
58
59
 
59
60
  attribute_map = {
@@ -77,10 +78,11 @@ class Issue(object):
77
78
  'OwnerName': 'OwnerName',
78
79
  'Sector': 'Sector',
79
80
  'Occurrence': 'Occurrence',
80
- 'CustomFields': 'CustomFields'
81
+ 'CustomFields': 'CustomFields',
82
+ 'Watchers': 'Watchers'
81
83
  }
82
84
 
83
- def __init__(self, IssueId=None, HumanId=None, Priority=None, Summary=None, RichDescription=None, CreatorName=None, UpdatorName=None, Type=None, CreationDate=None, UpdatedDate=None, EventId=None, CarId=None, SessionId=None, RunId=None, LapId=None, Project=None, Status=None, OwnerName=None, Sector=None, Occurrence=None, CustomFields=None, _configuration=None): # noqa: E501
85
+ def __init__(self, IssueId=None, HumanId=None, Priority=None, Summary=None, RichDescription=None, CreatorName=None, UpdatorName=None, Type=None, CreationDate=None, UpdatedDate=None, EventId=None, CarId=None, SessionId=None, RunId=None, LapId=None, Project=None, Status=None, OwnerName=None, Sector=None, Occurrence=None, CustomFields=None, Watchers=None, _configuration=None): # noqa: E501
84
86
  """Issue - a model defined in Swagger""" # noqa: E501
85
87
  if _configuration is None:
86
88
  _configuration = Configuration()
@@ -107,6 +109,7 @@ class Issue(object):
107
109
  self._Sector = None
108
110
  self._Occurrence = None
109
111
  self._CustomFields = None
112
+ self._Watchers = None
110
113
  self.discriminator = None
111
114
 
112
115
  self.IssueId = IssueId
@@ -146,6 +149,8 @@ class Issue(object):
146
149
  self.Occurrence = Occurrence
147
150
  if CustomFields is not None:
148
151
  self.CustomFields = CustomFields
152
+ if Watchers is not None:
153
+ self.Watchers = Watchers
149
154
 
150
155
  @property
151
156
  def IssueId(self):
@@ -630,6 +635,29 @@ class Issue(object):
630
635
 
631
636
  self._CustomFields = CustomFields
632
637
 
638
+ @property
639
+ def Watchers(self):
640
+ """Gets the Watchers of this Issue. # noqa: E501
641
+
642
+ List of users that can watch the issue # noqa: E501
643
+
644
+ :return: The Watchers of this Issue. # noqa: E501
645
+ :rtype: list[str]
646
+ """
647
+ return self._Watchers
648
+
649
+ @Watchers.setter
650
+ def Watchers(self, Watchers):
651
+ """Sets the Watchers of this Issue.
652
+
653
+ List of users that can watch the issue # noqa: E501
654
+
655
+ :param Watchers: The Watchers of this Issue. # noqa: E501
656
+ :type: list[str]
657
+ """
658
+
659
+ self._Watchers = Watchers
660
+
633
661
  def to_dict(self):
634
662
  """Returns the model properties as a dict"""
635
663
  result = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: teamdbapi
3
- Version: 3.9.0
3
+ Version: 3.10.1
4
4
  Summary: Easily access the TeamDB Web API.
5
5
  Keywords: teamdbapi,Trackside,Trackside Software,TeamDB
6
6
  Author-email: Trackside Software <support@trackside.fr>
@@ -17,16 +17,16 @@ Requires-Dist: setuptools >= 21.0.0
17
17
  Requires-Dist: urllib3 >= 1.15.1
18
18
  Project-URL: Home, https://www.tracksidesoftware.fr/teamdb
19
19
 
20
- # teamdbapi
20
+ # teamdbapi
21
21
  This module enables you to easily access the TeamDB Web API.
22
22
 
23
- - Package version: 3.9.0
23
+ - Package version: 3.10.1
24
24
  - TeamDB Web API version: 2.0
25
25
 
26
26
  ## Requirements.
27
27
 
28
28
  - Python 3.4+
29
- - TeamDB 3.9.0
29
+ - TeamDB 3.10.1
30
30
 
31
31
  ## <a name="install">Installation and usage</a>
32
32
  ### pip install
@@ -3,7 +3,7 @@ teamdbapi/api_client.py,sha256=HSi8G_KA7_rkkGEsy6BHtSPdDj1SDRoq7Em_XEf0N44,25710
3
3
  teamdbapi/configuration.py,sha256=Iu-eGFu5KhblY3n23mYHMY-iBkKFqoDYlxDukSEMlxk,8269
4
4
  teamdbapi/rest.py,sha256=AeH3u0A94ZziOpUJCzWooYawxc2m7V-b6kKeXwnQMh0,13510
5
5
  teamdbapi/api/__init__.py,sha256=bzTXDK-Z0iDBDPlq8nikwo5vW3e5qslWv3b84qdP_7Y,2036
6
- teamdbapi/api/assembly_api.py,sha256=eZo-t50a-VnMng_oVW_sFysZn3R92kVhJS5lSM4LbSQ,94505
6
+ teamdbapi/api/assembly_api.py,sha256=WmVLwvzgSzW3CJwb0uvDgGDd0_GX5r5li1eGXrkbvkY,94535
7
7
  teamdbapi/api/car_api.py,sha256=XTG3ZAaXcZC81eeZ5Jmn1XqpVrOwWajNGJHHjJBe4c0,34737
8
8
  teamdbapi/api/component_api.py,sha256=nNx3i-AN7YCx1Vayxuj83a91v31II7_ryTrwpPAlv9w,61722
9
9
  teamdbapi/api/config_api.py,sha256=g46ycY4_0C0esOwWNZaieXZVOwXgOSlnj7ntHYw-Vps,3961
@@ -13,7 +13,7 @@ teamdbapi/api/event_api.py,sha256=K65sQUKsru2eVQE581XEKw7IgzN4-nvsJ8I-O-EfWJw,35
13
13
  teamdbapi/api/fixed_field_api.py,sha256=Lt1s94C7meJxZRjgzCPm6QVw92CsR_KByxEZpy_ia2I,13682
14
14
  teamdbapi/api/group_api.py,sha256=TS8DhS4FNWLukyslG4rx7M6qVa0LNJvCYmsDreHHa-M,24906
15
15
  teamdbapi/api/import_export_api.py,sha256=tUOJDYX5R_IDTD-1KOBuK_SL-f14rezM6_W5KbdMInw,44187
16
- teamdbapi/api/issue_api.py,sha256=z9L_xhgJhK13sJ50p_tZFZsOQTNyXCPLTBYqGyCtFT8,67980
16
+ teamdbapi/api/issue_api.py,sha256=e-0Rhble0gXBeEWFKa3gaUwXahcCPJPDUUUzE_mg7CA,73605
17
17
  teamdbapi/api/lap_api.py,sha256=dMRsSxX8qx5jfyVZ3RFmmiYkHtS0KX_i8m1BPoW6F8g,29090
18
18
  teamdbapi/api/lap_report_api.py,sha256=sPKd6fFF37r7vNwfuN0zb2rGCr3yv3DIFpgKKdV4OjU,20291
19
19
  teamdbapi/api/model_field_api.py,sha256=bm4_v_xPQpsuM4yzHqc5YEPXi0I3OsmeLPZQr3ZT2b4,30818
@@ -66,7 +66,7 @@ teamdbapi/models/import_parameters_results.py,sha256=745wdYMbdUk990waY_xiyJkUSpE
66
66
  teamdbapi/models/import_revisions_args.py,sha256=7WYL-XUR0beBXwwXAcunF-dtqJBTXJkV-NGT5s6pcdc,6596
67
67
  teamdbapi/models/import_revisions_info.py,sha256=3ZW5XAWcLdhLIwp14V5RU-neh7u260M-fQw2qA4Q3GQ,6526
68
68
  teamdbapi/models/import_revisions_results.py,sha256=hcCYjKSKwesdfuynMEaG88v9Lqju1OQpLDhoPbBGrOI,5873
69
- teamdbapi/models/issue.py,sha256=4KMdKknp7Xm2KNosJe3UkD-LLjxD6d99bkXKcQiR4tA,19304
69
+ teamdbapi/models/issue.py,sha256=PORbgflVzKzLbE2PL3bfbGG1fsTFowYrUegdSU_HFcw,20101
70
70
  teamdbapi/models/issue_custom_field_value.py,sha256=bLV2rnrNZx3JQAn3C7ZBDgIGVBwMvPmveJqw_2kMCj4,11017
71
71
  teamdbapi/models/issue_priority.py,sha256=QnUQ7IaGDIHNMoPISJ2y6Qqi6KxFnftBNcoBg71dtSQ,7359
72
72
  teamdbapi/models/issue_project.py,sha256=hRN_FnlzORi8PL5F5S68qVI-EZU4OCpzJXlzqvCjv3o,7989
@@ -107,7 +107,7 @@ teamdbapi/models/user.py,sha256=fRgeDO-Nx_fJfZOMasAX8y_iXS_j8G5hUiQofmOwny8,4535
107
107
  teamdbapi/models/user_group.py,sha256=qHkFO_ueJlag0lZFxPZr9GV9hrzYxHrsEGu4T5S4kD8,4624
108
108
  teamdbapi/models/value_field.py,sha256=LHRDgcI9hPBd1Lo4vBhY2gjVva9cSeWFQ6Q55a5Z25k,9833
109
109
  teamdbapi/models/version.py,sha256=nMBNdx60aMgU7Oh84LkVhz1mxGD_Eu20q-xNGNNeO5w,15538
110
- teamdbapi-3.9.0.dist-info/licenses/LICENSE,sha256=5soNqhAedF3QAOB91EBeZJld6GwFOjvR0SWP-nuN5Og,1079
111
- teamdbapi-3.9.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
112
- teamdbapi-3.9.0.dist-info/METADATA,sha256=W00RnfSIhrf2mSg7TKXTklouX-tjGGwSQhj_kFg4g_c,2408
113
- teamdbapi-3.9.0.dist-info/RECORD,,
110
+ teamdbapi-3.10.1.dist-info/licenses/LICENSE,sha256=NhfqkFFZV-aeuwoqj6QChb9paFPk948GLYaPB6aWeXc,1076
111
+ teamdbapi-3.10.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
112
+ teamdbapi-3.10.1.dist-info/METADATA,sha256=DWNW7pG0YmPgduNQB7AR7zjSGD4I9KwSjnvsIpIsL2g,2408
113
+ teamdbapi-3.10.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
- Copyright © 2025 Trackside Software
1
+ Copyright © 2025 Trackside Software
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4