teamdbapi 3.8.0__py3-none-any.whl → 3.10.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.
@@ -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
 
@@ -300,6 +300,7 @@ class LapReportApi(object):
300
300
  :param str file_path: The lap report path. Example: C:/path/myFile.csv (required)
301
301
  :param str lap_report_file_format: The lap report file format: Wintax or Atlas (required)
302
302
  :param str session_id: The identifier of the session in which the report is to be loaded; if there is none, the report is imported into the current session.
303
+ :param bool wait_end_of_processing: (Optional) True to wait for the end of processing of all laps. With False (default), the API can return before the laps are still created/updated.
303
304
  :return: None
304
305
  If the method is called asynchronously,
305
306
  returns the request thread.
@@ -323,12 +324,13 @@ class LapReportApi(object):
323
324
  :param str file_path: The lap report path. Example: C:/path/myFile.csv (required)
324
325
  :param str lap_report_file_format: The lap report file format: Wintax or Atlas (required)
325
326
  :param str session_id: The identifier of the session in which the report is to be loaded; if there is none, the report is imported into the current session.
327
+ :param bool wait_end_of_processing: (Optional) True to wait for the end of processing of all laps. With False (default), the API can return before the laps are still created/updated.
326
328
  :return: None
327
329
  If the method is called asynchronously,
328
330
  returns the request thread.
329
331
  """
330
332
 
331
- all_params = ['file_path', 'lap_report_file_format', 'session_id'] # noqa: E501
333
+ all_params = ['file_path', 'lap_report_file_format', 'session_id', 'wait_end_of_processing'] # noqa: E501
332
334
  all_params.append('async_req')
333
335
  all_params.append('_return_http_data_only')
334
336
  all_params.append('_preload_content')
@@ -363,6 +365,8 @@ class LapReportApi(object):
363
365
  query_params.append(('lapReportFileFormat', params['lap_report_file_format'])) # noqa: E501
364
366
  if 'session_id' in params:
365
367
  query_params.append(('sessionId', params['session_id'])) # noqa: E501
368
+ if 'wait_end_of_processing' in params:
369
+ query_params.append(('waitEndOfProcessing', params['wait_end_of_processing'])) # noqa: E501
366
370
 
367
371
  header_params = {}
368
372
 
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.8.0
3
+ Version: 3.10.0
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>
@@ -20,13 +20,13 @@ Project-URL: Home, https://www.tracksidesoftware.fr/teamdb
20
20
  # teamdbapi
21
21
  This module enables you to easily access the TeamDB Web API.
22
22
 
23
- - Package version: 3.8.0
23
+ - Package version: 3.10.0
24
24
  - TeamDB Web API version: 2.0
25
25
 
26
26
  ## Requirements.
27
27
 
28
28
  - Python 3.4+
29
- - TeamDB 3.8.0
29
+ - TeamDB 3.10.0
30
30
 
31
31
  ## <a name="install">Installation and usage</a>
32
32
  ### pip install
@@ -13,9 +13,9 @@ 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
- teamdbapi/api/lap_report_api.py,sha256=qRs1v1Q8ZFaSt9vVEJ_k_Xx6QzAhO-C4jbZSlkMp3zw,19727
18
+ teamdbapi/api/lap_report_api.py,sha256=sPKd6fFF37r7vNwfuN0zb2rGCr3yv3DIFpgKKdV4OjU,20291
19
19
  teamdbapi/api/model_field_api.py,sha256=bm4_v_xPQpsuM4yzHqc5YEPXi0I3OsmeLPZQr3ZT2b4,30818
20
20
  teamdbapi/api/mounting_api.py,sha256=Nvex9yhVMM8p7BMxI-CZgVCurgxTRLgbHKstaHF9NrY,13630
21
21
  teamdbapi/api/notes_authorization_api.py,sha256=YGNoOwYi0Ih0n2Lk62kZVm2x9m_4ckq_IkuSadtrNyQ,15047
@@ -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.8.0.dist-info/licenses/LICENSE,sha256=5soNqhAedF3QAOB91EBeZJld6GwFOjvR0SWP-nuN5Og,1079
111
- teamdbapi-3.8.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
112
- teamdbapi-3.8.0.dist-info/METADATA,sha256=1UPt_AZ8BsoyOyXTHeH5rk5HLmVZPcdqUNfrc-c0xAA,2408
113
- teamdbapi-3.8.0.dist-info/RECORD,,
110
+ teamdbapi-3.10.0.dist-info/licenses/LICENSE,sha256=5soNqhAedF3QAOB91EBeZJld6GwFOjvR0SWP-nuN5Og,1079
111
+ teamdbapi-3.10.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
112
+ teamdbapi-3.10.0.dist-info/METADATA,sha256=vhGVMRzZcrAqAPq-EZR008xCT9s1yOHYinhh7AArqdo,2411
113
+ teamdbapi-3.10.0.dist-info/RECORD,,