teamdbapi 3.4.0__tar.gz → 3.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/PKG-INFO +5 -4
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/README.md +2 -2
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/pyproject.toml +1 -1
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/__init__.py +1 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/component_api.py +101 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/edit_api.py +97 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/mounting_api.py +93 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/script_api.py +6 -6
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/__init__.py +1 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/car_parameters_context.py +2 -2
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/criteria.py +1 -1
- teamdbapi-3.5.0/teamdbapi/models/criteria_value_detail.py +673 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/LICENSE +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/__init__.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/assembly_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/car_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/config_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/criteria_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/event_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/fixed_field_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/group_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/import_export_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/issue_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/lap_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/lap_report_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/model_field_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/notes_authorization_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/overall_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/parameter_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/parameter_binding_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/part_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/report_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/revision_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/revision_editor_selector_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/run_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/session_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/target_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/team_db_list_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/team_db_view_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/tire_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/tire_set_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/track_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/track_layout_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/update_request_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/user_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/value_field_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api/version_api.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/api_client.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/configuration.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/add_part_car_parameter_arg.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/assembly.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/bleed_adjustment.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/calibration.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/car.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/compare_options.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/compare_result.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/compare_result_detail.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/component.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/copy_from_tags_args.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/couple_guid_text.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/criteria_value.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/event.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/file_revision_info.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/fixed_field.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/group.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/import_parameters_args.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/import_parameters_results.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/import_revisions_args.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/import_revisions_info.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/import_revisions_results.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/issue.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/issue_custom_field_value.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/issue_priority.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/issue_project.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/issue_sector.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/issue_status.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/issue_type.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/issue_workflow.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/item_value.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/item_value_key.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/lap.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/lap_report_options.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/model_field.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/model_field_authorization.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/mounting.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/notes_authorization.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/notes_context.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/overall.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/parameter.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/parameter_binding.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/parameter_cross_table.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/part.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/part_car_parameters.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/part_count.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/problem_details.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/revision.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/revision_value.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/run.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/script.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/session.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/string_with_font_style.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/target.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/team_db_list.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/team_db_list_item.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/tire.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/tire_set.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/track.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/track_layout.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/user.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/user_group.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/value_field.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/models/version.py +0 -0
- {teamdbapi-3.4.0 → teamdbapi-3.5.0}/teamdbapi/rest.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: teamdbapi
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.5.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>
|
|
@@ -9,6 +9,7 @@ Description-Content-Type: text/markdown
|
|
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
10
|
Classifier: Programming Language :: Python
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
License-File: LICENSE
|
|
12
13
|
Requires-Dist: certifi >= 14.05.14
|
|
13
14
|
Requires-Dist: six >= 1.10
|
|
14
15
|
Requires-Dist: python_dateutil >= 2.5.3
|
|
@@ -19,13 +20,13 @@ Project-URL: Homepage, https://www.tracksidesoftware.fr/teamdb
|
|
|
19
20
|
# teamdbapi
|
|
20
21
|
This module enables you to easily access the TeamDB Web API.
|
|
21
22
|
|
|
22
|
-
- Package version: 3.
|
|
23
|
+
- Package version: 3.5.0
|
|
23
24
|
- TeamDB Web API version: 2.0
|
|
24
25
|
|
|
25
26
|
## Requirements.
|
|
26
27
|
|
|
27
28
|
- Python 3.4+
|
|
28
|
-
- TeamDB 3.
|
|
29
|
+
- TeamDB 3.5.0
|
|
29
30
|
|
|
30
31
|
## Installation and usage
|
|
31
32
|
### pip install
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# teamdbapi
|
|
2
2
|
This module enables you to easily access the TeamDB Web API.
|
|
3
3
|
|
|
4
|
-
- Package version: 3.
|
|
4
|
+
- Package version: 3.5.0
|
|
5
5
|
- TeamDB Web API version: 2.0
|
|
6
6
|
|
|
7
7
|
## Requirements.
|
|
8
8
|
|
|
9
9
|
- Python 3.4+
|
|
10
|
-
- TeamDB 3.
|
|
10
|
+
- TeamDB 3.5.0
|
|
11
11
|
|
|
12
12
|
## Installation and usage
|
|
13
13
|
### pip install
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "teamdbapi"
|
|
7
|
-
version = "3.
|
|
7
|
+
version = "3.5.0"
|
|
8
8
|
description = "Easily access the TeamDB Web API."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "Trackside Software", email = "support@trackside.fr" }]
|
|
@@ -70,6 +70,7 @@ from teamdbapi.models.copy_from_tags_args import CopyFromTagsArgs
|
|
|
70
70
|
from teamdbapi.models.couple_guid_text import CoupleGuidText
|
|
71
71
|
from teamdbapi.models.criteria import Criteria
|
|
72
72
|
from teamdbapi.models.criteria_value import CriteriaValue
|
|
73
|
+
from teamdbapi.models.criteria_value_detail import CriteriaValueDetail
|
|
73
74
|
from teamdbapi.models.event import Event
|
|
74
75
|
from teamdbapi.models.file_revision_info import FileRevisionInfo
|
|
75
76
|
from teamdbapi.models.fixed_field import FixedField
|
|
@@ -545,6 +545,107 @@ class ComponentApi(object):
|
|
|
545
545
|
_request_timeout=params.get('_request_timeout'),
|
|
546
546
|
collection_formats=collection_formats)
|
|
547
547
|
|
|
548
|
+
def get_component_revision_criteria_details(self, component_id, revision_id, **kwargs): # noqa: E501
|
|
549
|
+
"""Get the component's revision criteria values for each run # noqa: E501
|
|
550
|
+
|
|
551
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
552
|
+
asynchronous HTTP request, please pass async_req=True
|
|
553
|
+
>>> thread = api.get_component_revision_criteria_details(component_id, revision_id, async_req=True)
|
|
554
|
+
>>> result = thread.get()
|
|
555
|
+
|
|
556
|
+
:param async_req bool
|
|
557
|
+
:param str component_id: The unique identifier of the component. (required)
|
|
558
|
+
:param str revision_id: The unique identifier of the component revision. (required)
|
|
559
|
+
:return: list[CriteriaValueDetail]
|
|
560
|
+
If the method is called asynchronously,
|
|
561
|
+
returns the request thread.
|
|
562
|
+
"""
|
|
563
|
+
kwargs['_return_http_data_only'] = True
|
|
564
|
+
if kwargs.get('async_req'):
|
|
565
|
+
return self.get_component_revision_criteria_details_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
|
|
566
|
+
else:
|
|
567
|
+
(data) = self.get_component_revision_criteria_details_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
|
|
568
|
+
return data
|
|
569
|
+
|
|
570
|
+
def get_component_revision_criteria_details_with_http_info(self, component_id, revision_id, **kwargs): # noqa: E501
|
|
571
|
+
"""Get the component's revision criteria values for each run # noqa: E501
|
|
572
|
+
|
|
573
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
574
|
+
asynchronous HTTP request, please pass async_req=True
|
|
575
|
+
>>> thread = api.get_component_revision_criteria_details_with_http_info(component_id, revision_id, async_req=True)
|
|
576
|
+
>>> result = thread.get()
|
|
577
|
+
|
|
578
|
+
:param async_req bool
|
|
579
|
+
:param str component_id: The unique identifier of the component. (required)
|
|
580
|
+
:param str revision_id: The unique identifier of the component revision. (required)
|
|
581
|
+
:return: list[CriteriaValueDetail]
|
|
582
|
+
If the method is called asynchronously,
|
|
583
|
+
returns the request thread.
|
|
584
|
+
"""
|
|
585
|
+
|
|
586
|
+
all_params = ['component_id', 'revision_id'] # noqa: E501
|
|
587
|
+
all_params.append('async_req')
|
|
588
|
+
all_params.append('_return_http_data_only')
|
|
589
|
+
all_params.append('_preload_content')
|
|
590
|
+
all_params.append('_request_timeout')
|
|
591
|
+
|
|
592
|
+
params = locals()
|
|
593
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
594
|
+
if key not in all_params:
|
|
595
|
+
raise TypeError(
|
|
596
|
+
"Got an unexpected keyword argument '%s'"
|
|
597
|
+
" to method get_component_revision_criteria_details" % key
|
|
598
|
+
)
|
|
599
|
+
params[key] = val
|
|
600
|
+
del params['kwargs']
|
|
601
|
+
# verify the required parameter 'component_id' is set
|
|
602
|
+
if ('component_id' not in params or
|
|
603
|
+
params['component_id'] is None):
|
|
604
|
+
raise ValueError("Missing the required parameter `component_id` when calling `get_component_revision_criteria_details`") # noqa: E501
|
|
605
|
+
# verify the required parameter 'revision_id' is set
|
|
606
|
+
if ('revision_id' not in params or
|
|
607
|
+
params['revision_id'] is None):
|
|
608
|
+
raise ValueError("Missing the required parameter `revision_id` when calling `get_component_revision_criteria_details`") # noqa: E501
|
|
609
|
+
|
|
610
|
+
collection_formats = {}
|
|
611
|
+
|
|
612
|
+
path_params = {}
|
|
613
|
+
if 'component_id' in params:
|
|
614
|
+
path_params['componentId'] = params['component_id'] # noqa: E501
|
|
615
|
+
if 'revision_id' in params:
|
|
616
|
+
path_params['revisionId'] = params['revision_id'] # noqa: E501
|
|
617
|
+
|
|
618
|
+
query_params = []
|
|
619
|
+
|
|
620
|
+
header_params = {}
|
|
621
|
+
|
|
622
|
+
form_params = []
|
|
623
|
+
local_var_files = {}
|
|
624
|
+
|
|
625
|
+
body_params = None
|
|
626
|
+
# HTTP header `Accept`
|
|
627
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
628
|
+
['application/json', 'text/json']) # noqa: E501
|
|
629
|
+
|
|
630
|
+
# Authentication setting
|
|
631
|
+
auth_settings = [] # noqa: E501
|
|
632
|
+
|
|
633
|
+
return self.api_client.call_api(
|
|
634
|
+
'/teamdbapi/v2.0/component/{componentId}/revision/{revisionId}/criteriadetails', 'GET',
|
|
635
|
+
path_params,
|
|
636
|
+
query_params,
|
|
637
|
+
header_params,
|
|
638
|
+
body=body_params,
|
|
639
|
+
post_params=form_params,
|
|
640
|
+
files=local_var_files,
|
|
641
|
+
response_type='list[CriteriaValueDetail]', # noqa: E501
|
|
642
|
+
auth_settings=auth_settings,
|
|
643
|
+
async_req=params.get('async_req'),
|
|
644
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
645
|
+
_preload_content=params.get('_preload_content', True),
|
|
646
|
+
_request_timeout=params.get('_request_timeout'),
|
|
647
|
+
collection_formats=collection_formats)
|
|
648
|
+
|
|
548
649
|
def get_component_revisions(self, component_id, **kwargs): # noqa: E501
|
|
549
650
|
"""Get all revisions of a component from it's unique identifier. # noqa: E501
|
|
550
651
|
|
|
@@ -396,6 +396,103 @@ class EditApi(object):
|
|
|
396
396
|
_request_timeout=params.get('_request_timeout'),
|
|
397
397
|
collection_formats=collection_formats)
|
|
398
398
|
|
|
399
|
+
def set_car_parameters_contexts(self, body, **kwargs): # noqa: E501
|
|
400
|
+
"""[Command] Set car parameters contexts in TeamDB client layouts, or the global context only if the Use Global Context option is active. # noqa: E501
|
|
401
|
+
|
|
402
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
403
|
+
asynchronous HTTP request, please pass async_req=True
|
|
404
|
+
>>> thread = api.set_car_parameters_contexts(body, async_req=True)
|
|
405
|
+
>>> result = thread.get()
|
|
406
|
+
|
|
407
|
+
:param async_req bool
|
|
408
|
+
:param list[CarParametersContext] body: The car parameters contexts to set. (required)
|
|
409
|
+
:return: None
|
|
410
|
+
If the method is called asynchronously,
|
|
411
|
+
returns the request thread.
|
|
412
|
+
"""
|
|
413
|
+
kwargs['_return_http_data_only'] = True
|
|
414
|
+
if kwargs.get('async_req'):
|
|
415
|
+
return self.set_car_parameters_contexts_with_http_info(body, **kwargs) # noqa: E501
|
|
416
|
+
else:
|
|
417
|
+
(data) = self.set_car_parameters_contexts_with_http_info(body, **kwargs) # noqa: E501
|
|
418
|
+
return data
|
|
419
|
+
|
|
420
|
+
def set_car_parameters_contexts_with_http_info(self, body, **kwargs): # noqa: E501
|
|
421
|
+
"""[Command] Set car parameters contexts in TeamDB client layouts, or the global context only if the Use Global Context option is active. # noqa: E501
|
|
422
|
+
|
|
423
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
424
|
+
asynchronous HTTP request, please pass async_req=True
|
|
425
|
+
>>> thread = api.set_car_parameters_contexts_with_http_info(body, async_req=True)
|
|
426
|
+
>>> result = thread.get()
|
|
427
|
+
|
|
428
|
+
:param async_req bool
|
|
429
|
+
:param list[CarParametersContext] body: The car parameters contexts to set. (required)
|
|
430
|
+
:return: None
|
|
431
|
+
If the method is called asynchronously,
|
|
432
|
+
returns the request thread.
|
|
433
|
+
"""
|
|
434
|
+
|
|
435
|
+
all_params = ['body'] # noqa: E501
|
|
436
|
+
all_params.append('async_req')
|
|
437
|
+
all_params.append('_return_http_data_only')
|
|
438
|
+
all_params.append('_preload_content')
|
|
439
|
+
all_params.append('_request_timeout')
|
|
440
|
+
|
|
441
|
+
params = locals()
|
|
442
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
443
|
+
if key not in all_params:
|
|
444
|
+
raise TypeError(
|
|
445
|
+
"Got an unexpected keyword argument '%s'"
|
|
446
|
+
" to method set_car_parameters_contexts" % key
|
|
447
|
+
)
|
|
448
|
+
params[key] = val
|
|
449
|
+
del params['kwargs']
|
|
450
|
+
# verify the required parameter 'body' is set
|
|
451
|
+
if ('body' not in params or
|
|
452
|
+
params['body'] is None):
|
|
453
|
+
raise ValueError("Missing the required parameter `body` when calling `set_car_parameters_contexts`") # noqa: E501
|
|
454
|
+
|
|
455
|
+
collection_formats = {}
|
|
456
|
+
|
|
457
|
+
path_params = {}
|
|
458
|
+
|
|
459
|
+
query_params = []
|
|
460
|
+
|
|
461
|
+
header_params = {}
|
|
462
|
+
|
|
463
|
+
form_params = []
|
|
464
|
+
local_var_files = {}
|
|
465
|
+
|
|
466
|
+
body_params = None
|
|
467
|
+
if 'body' in params:
|
|
468
|
+
body_params = params['body']
|
|
469
|
+
# HTTP header `Accept`
|
|
470
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
471
|
+
['application/json', 'text/json']) # noqa: E501
|
|
472
|
+
|
|
473
|
+
# HTTP header `Content-Type`
|
|
474
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
475
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
476
|
+
|
|
477
|
+
# Authentication setting
|
|
478
|
+
auth_settings = [] # noqa: E501
|
|
479
|
+
|
|
480
|
+
return self.api_client.call_api(
|
|
481
|
+
'/teamdbapi/v2.0/CarParametersContexts', 'POST',
|
|
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=None, # 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
|
+
|
|
399
496
|
def set_current_context(self, event_id, car_id, session_id, run_id, lap_id, **kwargs): # noqa: E501
|
|
400
497
|
"""[Command] Set the current Event, Car, Session, Run, Lap selected. Enter the empty unique identifier value 00000000-0000-0000-0000-000000000000 to select the default value. # noqa: E501
|
|
401
498
|
|
|
@@ -217,3 +217,96 @@ class MountingApi(object):
|
|
|
217
217
|
_preload_content=params.get('_preload_content', True),
|
|
218
218
|
_request_timeout=params.get('_request_timeout'),
|
|
219
219
|
collection_formats=collection_formats)
|
|
220
|
+
|
|
221
|
+
def get_mounting_revision_content_with_missing(self, revision_id, **kwargs): # noqa: E501
|
|
222
|
+
"""Gets the list of first-level components of a mounting revision. And includes missing components. Missing component properties will be empty or equal to defaut values. Only the parent part properties will be filled. # noqa: E501
|
|
223
|
+
|
|
224
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
225
|
+
asynchronous HTTP request, please pass async_req=True
|
|
226
|
+
>>> thread = api.get_mounting_revision_content_with_missing(revision_id, async_req=True)
|
|
227
|
+
>>> result = thread.get()
|
|
228
|
+
|
|
229
|
+
:param async_req bool
|
|
230
|
+
:param str revision_id: The unique identifier of the mounting revision for which you wish to obtain the list of first-level components. (required)
|
|
231
|
+
:return: list[Component]
|
|
232
|
+
If the method is called asynchronously,
|
|
233
|
+
returns the request thread.
|
|
234
|
+
"""
|
|
235
|
+
kwargs['_return_http_data_only'] = True
|
|
236
|
+
if kwargs.get('async_req'):
|
|
237
|
+
return self.get_mounting_revision_content_with_missing_with_http_info(revision_id, **kwargs) # noqa: E501
|
|
238
|
+
else:
|
|
239
|
+
(data) = self.get_mounting_revision_content_with_missing_with_http_info(revision_id, **kwargs) # noqa: E501
|
|
240
|
+
return data
|
|
241
|
+
|
|
242
|
+
def get_mounting_revision_content_with_missing_with_http_info(self, revision_id, **kwargs): # noqa: E501
|
|
243
|
+
"""Gets the list of first-level components of a mounting revision. And includes missing components. Missing component properties will be empty or equal to defaut values. Only the parent part properties will be filled. # noqa: E501
|
|
244
|
+
|
|
245
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
246
|
+
asynchronous HTTP request, please pass async_req=True
|
|
247
|
+
>>> thread = api.get_mounting_revision_content_with_missing_with_http_info(revision_id, async_req=True)
|
|
248
|
+
>>> result = thread.get()
|
|
249
|
+
|
|
250
|
+
:param async_req bool
|
|
251
|
+
:param str revision_id: The unique identifier of the mounting revision for which you wish to obtain the list of first-level components. (required)
|
|
252
|
+
:return: list[Component]
|
|
253
|
+
If the method is called asynchronously,
|
|
254
|
+
returns the request thread.
|
|
255
|
+
"""
|
|
256
|
+
|
|
257
|
+
all_params = ['revision_id'] # noqa: E501
|
|
258
|
+
all_params.append('async_req')
|
|
259
|
+
all_params.append('_return_http_data_only')
|
|
260
|
+
all_params.append('_preload_content')
|
|
261
|
+
all_params.append('_request_timeout')
|
|
262
|
+
|
|
263
|
+
params = locals()
|
|
264
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
265
|
+
if key not in all_params:
|
|
266
|
+
raise TypeError(
|
|
267
|
+
"Got an unexpected keyword argument '%s'"
|
|
268
|
+
" to method get_mounting_revision_content_with_missing" % key
|
|
269
|
+
)
|
|
270
|
+
params[key] = val
|
|
271
|
+
del params['kwargs']
|
|
272
|
+
# verify the required parameter 'revision_id' is set
|
|
273
|
+
if ('revision_id' not in params or
|
|
274
|
+
params['revision_id'] is None):
|
|
275
|
+
raise ValueError("Missing the required parameter `revision_id` when calling `get_mounting_revision_content_with_missing`") # noqa: E501
|
|
276
|
+
|
|
277
|
+
collection_formats = {}
|
|
278
|
+
|
|
279
|
+
path_params = {}
|
|
280
|
+
if 'revision_id' in params:
|
|
281
|
+
path_params['revisionId'] = params['revision_id'] # noqa: E501
|
|
282
|
+
|
|
283
|
+
query_params = []
|
|
284
|
+
|
|
285
|
+
header_params = {}
|
|
286
|
+
|
|
287
|
+
form_params = []
|
|
288
|
+
local_var_files = {}
|
|
289
|
+
|
|
290
|
+
body_params = None
|
|
291
|
+
# HTTP header `Accept`
|
|
292
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
293
|
+
['application/json', 'text/json']) # noqa: E501
|
|
294
|
+
|
|
295
|
+
# Authentication setting
|
|
296
|
+
auth_settings = [] # noqa: E501
|
|
297
|
+
|
|
298
|
+
return self.api_client.call_api(
|
|
299
|
+
'/teamdbapi/v2.0/mounting/{revisionId}/includemissings/content', 'GET',
|
|
300
|
+
path_params,
|
|
301
|
+
query_params,
|
|
302
|
+
header_params,
|
|
303
|
+
body=body_params,
|
|
304
|
+
post_params=form_params,
|
|
305
|
+
files=local_var_files,
|
|
306
|
+
response_type='list[Component]', # noqa: E501
|
|
307
|
+
auth_settings=auth_settings,
|
|
308
|
+
async_req=params.get('async_req'),
|
|
309
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
310
|
+
_preload_content=params.get('_preload_content', True),
|
|
311
|
+
_request_timeout=params.get('_request_timeout'),
|
|
312
|
+
collection_formats=collection_formats)
|
|
@@ -42,7 +42,7 @@ class ScriptApi(object):
|
|
|
42
42
|
|
|
43
43
|
:param async_req bool
|
|
44
44
|
:param str id: The unique Python script id that corresponds to the searched script (required)
|
|
45
|
-
:return:
|
|
45
|
+
:return: bool
|
|
46
46
|
If the method is called asynchronously,
|
|
47
47
|
returns the request thread.
|
|
48
48
|
"""
|
|
@@ -63,7 +63,7 @@ class ScriptApi(object):
|
|
|
63
63
|
|
|
64
64
|
:param async_req bool
|
|
65
65
|
:param str id: The unique Python script id that corresponds to the searched script (required)
|
|
66
|
-
:return:
|
|
66
|
+
:return: bool
|
|
67
67
|
If the method is called asynchronously,
|
|
68
68
|
returns the request thread.
|
|
69
69
|
"""
|
|
@@ -117,7 +117,7 @@ class ScriptApi(object):
|
|
|
117
117
|
body=body_params,
|
|
118
118
|
post_params=form_params,
|
|
119
119
|
files=local_var_files,
|
|
120
|
-
response_type='
|
|
120
|
+
response_type='bool', # noqa: E501
|
|
121
121
|
auth_settings=auth_settings,
|
|
122
122
|
async_req=params.get('async_req'),
|
|
123
123
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -135,7 +135,7 @@ class ScriptApi(object):
|
|
|
135
135
|
|
|
136
136
|
:param async_req bool
|
|
137
137
|
:param str name: The Python script unique name that corresponds to the searched script (required)
|
|
138
|
-
:return:
|
|
138
|
+
:return: bool
|
|
139
139
|
If the method is called asynchronously,
|
|
140
140
|
returns the request thread.
|
|
141
141
|
"""
|
|
@@ -156,7 +156,7 @@ class ScriptApi(object):
|
|
|
156
156
|
|
|
157
157
|
:param async_req bool
|
|
158
158
|
:param str name: The Python script unique name that corresponds to the searched script (required)
|
|
159
|
-
:return:
|
|
159
|
+
:return: bool
|
|
160
160
|
If the method is called asynchronously,
|
|
161
161
|
returns the request thread.
|
|
162
162
|
"""
|
|
@@ -210,7 +210,7 @@ class ScriptApi(object):
|
|
|
210
210
|
body=body_params,
|
|
211
211
|
post_params=form_params,
|
|
212
212
|
files=local_var_files,
|
|
213
|
-
response_type='
|
|
213
|
+
response_type='bool', # noqa: E501
|
|
214
214
|
auth_settings=auth_settings,
|
|
215
215
|
async_req=params.get('async_req'),
|
|
216
216
|
_return_http_data_only=params.get('_return_http_data_only'),
|
|
@@ -28,6 +28,7 @@ from teamdbapi.models.copy_from_tags_args import CopyFromTagsArgs
|
|
|
28
28
|
from teamdbapi.models.couple_guid_text import CoupleGuidText
|
|
29
29
|
from teamdbapi.models.criteria import Criteria
|
|
30
30
|
from teamdbapi.models.criteria_value import CriteriaValue
|
|
31
|
+
from teamdbapi.models.criteria_value_detail import CriteriaValueDetail
|
|
31
32
|
from teamdbapi.models.event import Event
|
|
32
33
|
from teamdbapi.models.file_revision_info import FileRevisionInfo
|
|
33
34
|
from teamdbapi.models.fixed_field import FixedField
|
|
@@ -131,7 +131,7 @@ class CarParametersContext(object):
|
|
|
131
131
|
def name(self):
|
|
132
132
|
"""Gets the name of this CarParametersContext. # noqa: E501
|
|
133
133
|
|
|
134
|
-
Context name (ie the layout name) or
|
|
134
|
+
Context name (ie the layout name) or GLOBAL_CONTEXT for the global context # noqa: E501
|
|
135
135
|
|
|
136
136
|
:return: The name of this CarParametersContext. # noqa: E501
|
|
137
137
|
:rtype: str
|
|
@@ -142,7 +142,7 @@ class CarParametersContext(object):
|
|
|
142
142
|
def name(self, name):
|
|
143
143
|
"""Sets the name of this CarParametersContext.
|
|
144
144
|
|
|
145
|
-
Context name (ie the layout name) or
|
|
145
|
+
Context name (ie the layout name) or GLOBAL_CONTEXT for the global context # noqa: E501
|
|
146
146
|
|
|
147
147
|
:param name: The name of this CarParametersContext. # noqa: E501
|
|
148
148
|
:type: str
|
|
@@ -213,7 +213,7 @@ class Criteria(object):
|
|
|
213
213
|
:param aggregation_type: The aggregation_type of this Criteria. # noqa: E501
|
|
214
214
|
:type: str
|
|
215
215
|
"""
|
|
216
|
-
allowed_values = ["None", "Sum", "Min", "Max"] # noqa: E501
|
|
216
|
+
allowed_values = ["None", "Sum", "Min", "Max", "First", "Last"] # noqa: E501
|
|
217
217
|
if aggregation_type not in allowed_values:
|
|
218
218
|
raise ValueError(
|
|
219
219
|
"Invalid value for `aggregation_type` ({0}), must be one of {1}" # noqa: E501
|