teamdbapi 3.12.3__tar.gz → 3.13.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.12.3 → teamdbapi-3.13.0}/PKG-INFO +3 -3
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/README.md +2 -2
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/pyproject.toml +1 -1
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/__init__.py +2 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/assembly_api.py +198 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/component_api.py +93 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/tire_set_api.py +93 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/version_api.py +9 -1
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/__init__.py +2 -0
- teamdbapi-3.13.0/teamdbapi/models/assembly_authorization.py +184 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/model_field_authorization.py +1 -30
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/notes_authorization.py +1 -30
- teamdbapi-3.13.0/teamdbapi/models/tire_set_with_tires.py +1009 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/.gitignore +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/.swagger-codegen/VERSION +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/.swagger-codegen-ignore +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/.travis.yml +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/LICENSE +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/git_push.sh +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/requirements.txt +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/setup.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/__init__.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/car_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/config_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/criteria_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/edit_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/event_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/fixed_field_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/group_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/import_export_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/issue_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/lap_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/lap_report_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/model_field_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/mounting_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/notes_authorization_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/overall_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/parameter_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/parameter_binding_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/part_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/report_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/revision_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/revision_editor_selector_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/run_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/script_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/session_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/target_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/team_db_list_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/team_db_view_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/tire_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/track_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/track_layout_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/update_request_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/user_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api/value_field_api.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/api_client.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/configuration.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/add_part_car_parameter_arg.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/assembly.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/bleed_adjustment.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/calibration.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/car.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/car_parameters_context.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/compare_options.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/compare_result.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/compare_result_detail.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/component.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/copy_from_tags_args.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/couple_guid_text.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/criteria.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/criteria_set.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/criteria_value.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/criteria_value_detail.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/event.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/file_revision_info.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/fixed_field.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/group.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/import_parameters_args.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/import_parameters_results.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/import_revisions_args.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/import_revisions_info.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/import_revisions_results.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/issue.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/issue_custom_field_value.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/issue_priority.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/issue_project.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/issue_sector.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/issue_status.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/issue_type.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/issue_workflow.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/item_value.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/item_value_key.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/lap.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/lap_report_options.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/model_field.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/mounting.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/notes_context.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/overall.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/parameter.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/parameter_binding.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/parameter_cross_table.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/part.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/part_car_parameters.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/part_count.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/revision.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/revision_value.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/run.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/script.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/session.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/string_with_font_style.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/target.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/team_db_list.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/team_db_list_item.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/tire.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/tire_set.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/track.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/track_layout.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/user.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/user_group.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/value_field.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/models/version.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/teamdbapi/rest.py +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/test-requirements.txt +0 -0
- {teamdbapi-3.12.3 → teamdbapi-3.13.0}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: teamdbapi
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.13.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.
|
|
23
|
+
- Package version: 3.13.0
|
|
24
24
|
- TeamDB Web API version: 2.0
|
|
25
25
|
|
|
26
26
|
## Requirements.
|
|
27
27
|
|
|
28
28
|
- Python 3.4+
|
|
29
|
-
- TeamDB 3.
|
|
29
|
+
- TeamDB 3.13.0
|
|
30
30
|
|
|
31
31
|
## Installation and usage
|
|
32
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.13.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.13.0
|
|
11
11
|
|
|
12
12
|
## Installation and usage
|
|
13
13
|
### pip install
|
|
@@ -60,6 +60,7 @@ from teamdbapi.configuration import Configuration
|
|
|
60
60
|
# import models into sdk package
|
|
61
61
|
from teamdbapi.models.add_part_car_parameter_arg import AddPartCarParameterArg
|
|
62
62
|
from teamdbapi.models.assembly import Assembly
|
|
63
|
+
from teamdbapi.models.assembly_authorization import AssemblyAuthorization
|
|
63
64
|
from teamdbapi.models.bleed_adjustment import BleedAdjustment
|
|
64
65
|
from teamdbapi.models.calibration import Calibration
|
|
65
66
|
from teamdbapi.models.car import Car
|
|
@@ -118,6 +119,7 @@ from teamdbapi.models.team_db_list import TeamDBList
|
|
|
118
119
|
from teamdbapi.models.team_db_list_item import TeamDBListItem
|
|
119
120
|
from teamdbapi.models.tire import Tire
|
|
120
121
|
from teamdbapi.models.tire_set import TireSet
|
|
122
|
+
from teamdbapi.models.tire_set_with_tires import TireSetWithTires
|
|
121
123
|
from teamdbapi.models.track import Track
|
|
122
124
|
from teamdbapi.models.track_layout import TrackLayout
|
|
123
125
|
from teamdbapi.models.user import User
|
|
@@ -1021,6 +1021,99 @@ class AssemblyApi(object):
|
|
|
1021
1021
|
_request_timeout=params.get('_request_timeout'),
|
|
1022
1022
|
collection_formats=collection_formats)
|
|
1023
1023
|
|
|
1024
|
+
def get_assembly_authorizations(self, assembly_id, **kwargs): # noqa: E501
|
|
1025
|
+
"""Get the list of authorisations for a given Id of an assembly. # noqa: E501
|
|
1026
|
+
|
|
1027
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1028
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1029
|
+
>>> thread = api.get_assembly_authorizations(assembly_id, async_req=True)
|
|
1030
|
+
>>> result = thread.get()
|
|
1031
|
+
|
|
1032
|
+
:param async_req bool
|
|
1033
|
+
:param str assembly_id: Unique Id of an assembly (required)
|
|
1034
|
+
:return: list[AssemblyAuthorization]
|
|
1035
|
+
If the method is called asynchronously,
|
|
1036
|
+
returns the request thread.
|
|
1037
|
+
"""
|
|
1038
|
+
kwargs['_return_http_data_only'] = True
|
|
1039
|
+
if kwargs.get('async_req'):
|
|
1040
|
+
return self.get_assembly_authorizations_with_http_info(assembly_id, **kwargs) # noqa: E501
|
|
1041
|
+
else:
|
|
1042
|
+
(data) = self.get_assembly_authorizations_with_http_info(assembly_id, **kwargs) # noqa: E501
|
|
1043
|
+
return data
|
|
1044
|
+
|
|
1045
|
+
def get_assembly_authorizations_with_http_info(self, assembly_id, **kwargs): # noqa: E501
|
|
1046
|
+
"""Get the list of authorisations for a given Id of an assembly. # noqa: E501
|
|
1047
|
+
|
|
1048
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1049
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1050
|
+
>>> thread = api.get_assembly_authorizations_with_http_info(assembly_id, async_req=True)
|
|
1051
|
+
>>> result = thread.get()
|
|
1052
|
+
|
|
1053
|
+
:param async_req bool
|
|
1054
|
+
:param str assembly_id: Unique Id of an assembly (required)
|
|
1055
|
+
:return: list[AssemblyAuthorization]
|
|
1056
|
+
If the method is called asynchronously,
|
|
1057
|
+
returns the request thread.
|
|
1058
|
+
"""
|
|
1059
|
+
|
|
1060
|
+
all_params = ['assembly_id'] # noqa: E501
|
|
1061
|
+
all_params.append('async_req')
|
|
1062
|
+
all_params.append('_return_http_data_only')
|
|
1063
|
+
all_params.append('_preload_content')
|
|
1064
|
+
all_params.append('_request_timeout')
|
|
1065
|
+
|
|
1066
|
+
params = locals()
|
|
1067
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1068
|
+
if key not in all_params:
|
|
1069
|
+
raise TypeError(
|
|
1070
|
+
"Got an unexpected keyword argument '%s'"
|
|
1071
|
+
" to method get_assembly_authorizations" % key
|
|
1072
|
+
)
|
|
1073
|
+
params[key] = val
|
|
1074
|
+
del params['kwargs']
|
|
1075
|
+
# verify the required parameter 'assembly_id' is set
|
|
1076
|
+
if self.api_client.client_side_validation and ('assembly_id' not in params or
|
|
1077
|
+
params['assembly_id'] is None): # noqa: E501
|
|
1078
|
+
raise ValueError("Missing the required parameter `assembly_id` when calling `get_assembly_authorizations`") # noqa: E501
|
|
1079
|
+
|
|
1080
|
+
collection_formats = {}
|
|
1081
|
+
|
|
1082
|
+
path_params = {}
|
|
1083
|
+
if 'assembly_id' in params:
|
|
1084
|
+
path_params['assemblyId'] = params['assembly_id'] # noqa: E501
|
|
1085
|
+
|
|
1086
|
+
query_params = []
|
|
1087
|
+
|
|
1088
|
+
header_params = {}
|
|
1089
|
+
|
|
1090
|
+
form_params = []
|
|
1091
|
+
local_var_files = {}
|
|
1092
|
+
|
|
1093
|
+
body_params = None
|
|
1094
|
+
# HTTP header `Accept`
|
|
1095
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1096
|
+
['application/json', 'text/json']) # noqa: E501
|
|
1097
|
+
|
|
1098
|
+
# Authentication setting
|
|
1099
|
+
auth_settings = ['TdbApiKey'] # noqa: E501
|
|
1100
|
+
|
|
1101
|
+
return self.api_client.call_api(
|
|
1102
|
+
'/teamdbapi/v2.0/assembly/{assemblyId}/authorizations', 'GET',
|
|
1103
|
+
path_params,
|
|
1104
|
+
query_params,
|
|
1105
|
+
header_params,
|
|
1106
|
+
body=body_params,
|
|
1107
|
+
post_params=form_params,
|
|
1108
|
+
files=local_var_files,
|
|
1109
|
+
response_type='list[AssemblyAuthorization]', # noqa: E501
|
|
1110
|
+
auth_settings=auth_settings,
|
|
1111
|
+
async_req=params.get('async_req'),
|
|
1112
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1113
|
+
_preload_content=params.get('_preload_content', True),
|
|
1114
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1115
|
+
collection_formats=collection_formats)
|
|
1116
|
+
|
|
1024
1117
|
def get_current_assembly(self, **kwargs): # noqa: E501
|
|
1025
1118
|
"""Get the current selected assembly # noqa: E501
|
|
1026
1119
|
|
|
@@ -1902,6 +1995,111 @@ class AssemblyApi(object):
|
|
|
1902
1995
|
_request_timeout=params.get('_request_timeout'),
|
|
1903
1996
|
collection_formats=collection_formats)
|
|
1904
1997
|
|
|
1998
|
+
def set_assembly_authorizations(self, assembly_id, authorization, **kwargs): # noqa: E501
|
|
1999
|
+
"""[Command] Set an authorization to a user group for an assembly. To restrict the writing on an assembly, fill the AssemblyId, the GroupId, and set IsWriteRestriction to true. To remove the writing restriction an assembly, fill the AssemblyId, the GroupId, and set IsWriteRestriction to false. Note : AssemblyAutorization.Id is ignored, it should be set to empty (00000000-0000-0000-0000-000000000000). # noqa: E501
|
|
2000
|
+
|
|
2001
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2002
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2003
|
+
>>> thread = api.set_assembly_authorizations(assembly_id, authorization, async_req=True)
|
|
2004
|
+
>>> result = thread.get()
|
|
2005
|
+
|
|
2006
|
+
:param async_req bool
|
|
2007
|
+
:param str assembly_id: The unique Id of the assembly (required)
|
|
2008
|
+
:param AssemblyAuthorization authorization: The authorization to set (required)
|
|
2009
|
+
:return: None
|
|
2010
|
+
If the method is called asynchronously,
|
|
2011
|
+
returns the request thread.
|
|
2012
|
+
"""
|
|
2013
|
+
kwargs['_return_http_data_only'] = True
|
|
2014
|
+
if kwargs.get('async_req'):
|
|
2015
|
+
return self.set_assembly_authorizations_with_http_info(assembly_id, authorization, **kwargs) # noqa: E501
|
|
2016
|
+
else:
|
|
2017
|
+
(data) = self.set_assembly_authorizations_with_http_info(assembly_id, authorization, **kwargs) # noqa: E501
|
|
2018
|
+
return data
|
|
2019
|
+
|
|
2020
|
+
def set_assembly_authorizations_with_http_info(self, assembly_id, authorization, **kwargs): # noqa: E501
|
|
2021
|
+
"""[Command] Set an authorization to a user group for an assembly. To restrict the writing on an assembly, fill the AssemblyId, the GroupId, and set IsWriteRestriction to true. To remove the writing restriction an assembly, fill the AssemblyId, the GroupId, and set IsWriteRestriction to false. Note : AssemblyAutorization.Id is ignored, it should be set to empty (00000000-0000-0000-0000-000000000000). # noqa: E501
|
|
2022
|
+
|
|
2023
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2024
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2025
|
+
>>> thread = api.set_assembly_authorizations_with_http_info(assembly_id, authorization, async_req=True)
|
|
2026
|
+
>>> result = thread.get()
|
|
2027
|
+
|
|
2028
|
+
:param async_req bool
|
|
2029
|
+
:param str assembly_id: The unique Id of the assembly (required)
|
|
2030
|
+
:param AssemblyAuthorization authorization: The authorization to set (required)
|
|
2031
|
+
:return: None
|
|
2032
|
+
If the method is called asynchronously,
|
|
2033
|
+
returns the request thread.
|
|
2034
|
+
"""
|
|
2035
|
+
|
|
2036
|
+
all_params = ['assembly_id', 'authorization'] # noqa: E501
|
|
2037
|
+
all_params.append('async_req')
|
|
2038
|
+
all_params.append('_return_http_data_only')
|
|
2039
|
+
all_params.append('_preload_content')
|
|
2040
|
+
all_params.append('_request_timeout')
|
|
2041
|
+
|
|
2042
|
+
params = locals()
|
|
2043
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
2044
|
+
if key not in all_params:
|
|
2045
|
+
raise TypeError(
|
|
2046
|
+
"Got an unexpected keyword argument '%s'"
|
|
2047
|
+
" to method set_assembly_authorizations" % key
|
|
2048
|
+
)
|
|
2049
|
+
params[key] = val
|
|
2050
|
+
del params['kwargs']
|
|
2051
|
+
# verify the required parameter 'assembly_id' is set
|
|
2052
|
+
if self.api_client.client_side_validation and ('assembly_id' not in params or
|
|
2053
|
+
params['assembly_id'] is None): # noqa: E501
|
|
2054
|
+
raise ValueError("Missing the required parameter `assembly_id` when calling `set_assembly_authorizations`") # noqa: E501
|
|
2055
|
+
# verify the required parameter 'authorization' is set
|
|
2056
|
+
if self.api_client.client_side_validation and ('authorization' not in params or
|
|
2057
|
+
params['authorization'] is None): # noqa: E501
|
|
2058
|
+
raise ValueError("Missing the required parameter `authorization` when calling `set_assembly_authorizations`") # noqa: E501
|
|
2059
|
+
|
|
2060
|
+
collection_formats = {}
|
|
2061
|
+
|
|
2062
|
+
path_params = {}
|
|
2063
|
+
if 'assembly_id' in params:
|
|
2064
|
+
path_params['assemblyId'] = params['assembly_id'] # noqa: E501
|
|
2065
|
+
|
|
2066
|
+
query_params = []
|
|
2067
|
+
|
|
2068
|
+
header_params = {}
|
|
2069
|
+
|
|
2070
|
+
form_params = []
|
|
2071
|
+
local_var_files = {}
|
|
2072
|
+
|
|
2073
|
+
body_params = None
|
|
2074
|
+
if 'authorization' in params:
|
|
2075
|
+
body_params = params['authorization']
|
|
2076
|
+
# HTTP header `Accept`
|
|
2077
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
2078
|
+
['application/json', 'text/json']) # noqa: E501
|
|
2079
|
+
|
|
2080
|
+
# HTTP header `Content-Type`
|
|
2081
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
2082
|
+
['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501
|
|
2083
|
+
|
|
2084
|
+
# Authentication setting
|
|
2085
|
+
auth_settings = ['TdbApiKey'] # noqa: E501
|
|
2086
|
+
|
|
2087
|
+
return self.api_client.call_api(
|
|
2088
|
+
'/teamdbapi/v2.0/assembly/{assemblyId}/authorizations', 'POST',
|
|
2089
|
+
path_params,
|
|
2090
|
+
query_params,
|
|
2091
|
+
header_params,
|
|
2092
|
+
body=body_params,
|
|
2093
|
+
post_params=form_params,
|
|
2094
|
+
files=local_var_files,
|
|
2095
|
+
response_type=None, # noqa: E501
|
|
2096
|
+
auth_settings=auth_settings,
|
|
2097
|
+
async_req=params.get('async_req'),
|
|
2098
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
2099
|
+
_preload_content=params.get('_preload_content', True),
|
|
2100
|
+
_request_timeout=params.get('_request_timeout'),
|
|
2101
|
+
collection_formats=collection_formats)
|
|
2102
|
+
|
|
1905
2103
|
def unlink_assembly(self, run_id, assembly_id, **kwargs): # noqa: E501
|
|
1906
2104
|
"""[Command] Remove an assembly from a run # noqa: E501
|
|
1907
2105
|
|
|
@@ -833,6 +833,99 @@ class ComponentApi(object):
|
|
|
833
833
|
_request_timeout=params.get('_request_timeout'),
|
|
834
834
|
collection_formats=collection_formats)
|
|
835
835
|
|
|
836
|
+
def get_tire_component(self, tire_id, **kwargs): # noqa: E501
|
|
837
|
+
"""Get the component associated with a tire given from its unique id. # noqa: E501
|
|
838
|
+
|
|
839
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
840
|
+
asynchronous HTTP request, please pass async_req=True
|
|
841
|
+
>>> thread = api.get_tire_component(tire_id, async_req=True)
|
|
842
|
+
>>> result = thread.get()
|
|
843
|
+
|
|
844
|
+
:param async_req bool
|
|
845
|
+
:param str tire_id: The unique tire id for which you want to get the component associated with the tire (required)
|
|
846
|
+
:return: Component
|
|
847
|
+
If the method is called asynchronously,
|
|
848
|
+
returns the request thread.
|
|
849
|
+
"""
|
|
850
|
+
kwargs['_return_http_data_only'] = True
|
|
851
|
+
if kwargs.get('async_req'):
|
|
852
|
+
return self.get_tire_component_with_http_info(tire_id, **kwargs) # noqa: E501
|
|
853
|
+
else:
|
|
854
|
+
(data) = self.get_tire_component_with_http_info(tire_id, **kwargs) # noqa: E501
|
|
855
|
+
return data
|
|
856
|
+
|
|
857
|
+
def get_tire_component_with_http_info(self, tire_id, **kwargs): # noqa: E501
|
|
858
|
+
"""Get the component associated with a tire given from its unique id. # noqa: E501
|
|
859
|
+
|
|
860
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
861
|
+
asynchronous HTTP request, please pass async_req=True
|
|
862
|
+
>>> thread = api.get_tire_component_with_http_info(tire_id, async_req=True)
|
|
863
|
+
>>> result = thread.get()
|
|
864
|
+
|
|
865
|
+
:param async_req bool
|
|
866
|
+
:param str tire_id: The unique tire id for which you want to get the component associated with the tire (required)
|
|
867
|
+
:return: Component
|
|
868
|
+
If the method is called asynchronously,
|
|
869
|
+
returns the request thread.
|
|
870
|
+
"""
|
|
871
|
+
|
|
872
|
+
all_params = ['tire_id'] # noqa: E501
|
|
873
|
+
all_params.append('async_req')
|
|
874
|
+
all_params.append('_return_http_data_only')
|
|
875
|
+
all_params.append('_preload_content')
|
|
876
|
+
all_params.append('_request_timeout')
|
|
877
|
+
|
|
878
|
+
params = locals()
|
|
879
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
880
|
+
if key not in all_params:
|
|
881
|
+
raise TypeError(
|
|
882
|
+
"Got an unexpected keyword argument '%s'"
|
|
883
|
+
" to method get_tire_component" % key
|
|
884
|
+
)
|
|
885
|
+
params[key] = val
|
|
886
|
+
del params['kwargs']
|
|
887
|
+
# verify the required parameter 'tire_id' is set
|
|
888
|
+
if self.api_client.client_side_validation and ('tire_id' not in params or
|
|
889
|
+
params['tire_id'] is None): # noqa: E501
|
|
890
|
+
raise ValueError("Missing the required parameter `tire_id` when calling `get_tire_component`") # noqa: E501
|
|
891
|
+
|
|
892
|
+
collection_formats = {}
|
|
893
|
+
|
|
894
|
+
path_params = {}
|
|
895
|
+
if 'tire_id' in params:
|
|
896
|
+
path_params['tireId'] = params['tire_id'] # noqa: E501
|
|
897
|
+
|
|
898
|
+
query_params = []
|
|
899
|
+
|
|
900
|
+
header_params = {}
|
|
901
|
+
|
|
902
|
+
form_params = []
|
|
903
|
+
local_var_files = {}
|
|
904
|
+
|
|
905
|
+
body_params = None
|
|
906
|
+
# HTTP header `Accept`
|
|
907
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
908
|
+
['application/json', 'text/json']) # noqa: E501
|
|
909
|
+
|
|
910
|
+
# Authentication setting
|
|
911
|
+
auth_settings = ['TdbApiKey'] # noqa: E501
|
|
912
|
+
|
|
913
|
+
return self.api_client.call_api(
|
|
914
|
+
'/teamdbapi/v2.0/tire/{tireId}/component', 'GET',
|
|
915
|
+
path_params,
|
|
916
|
+
query_params,
|
|
917
|
+
header_params,
|
|
918
|
+
body=body_params,
|
|
919
|
+
post_params=form_params,
|
|
920
|
+
files=local_var_files,
|
|
921
|
+
response_type='Component', # noqa: E501
|
|
922
|
+
auth_settings=auth_settings,
|
|
923
|
+
async_req=params.get('async_req'),
|
|
924
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
925
|
+
_preload_content=params.get('_preload_content', True),
|
|
926
|
+
_request_timeout=params.get('_request_timeout'),
|
|
927
|
+
collection_formats=collection_formats)
|
|
928
|
+
|
|
836
929
|
def remove_components_from_component_group_revision_content(self, component_id, revision_id, **kwargs): # noqa: E501
|
|
837
930
|
"""[Command] Remove a list of component from the content of a component group revision from it's unique identifiers. # noqa: E501
|
|
838
931
|
|
|
@@ -409,6 +409,99 @@ class TireSetApi(object):
|
|
|
409
409
|
_request_timeout=params.get('_request_timeout'),
|
|
410
410
|
collection_formats=collection_formats)
|
|
411
411
|
|
|
412
|
+
def get_tire_sets_with_tires_list(self, event_id, **kwargs): # noqa: E501
|
|
413
|
+
"""Get all tiresets for an event, with their associated tires # noqa: E501
|
|
414
|
+
|
|
415
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
416
|
+
asynchronous HTTP request, please pass async_req=True
|
|
417
|
+
>>> thread = api.get_tire_sets_with_tires_list(event_id, async_req=True)
|
|
418
|
+
>>> result = thread.get()
|
|
419
|
+
|
|
420
|
+
:param async_req bool
|
|
421
|
+
:param str event_id: The unique event id for which you want to get the tiresets (required)
|
|
422
|
+
:return: list[TireSetWithTires]
|
|
423
|
+
If the method is called asynchronously,
|
|
424
|
+
returns the request thread.
|
|
425
|
+
"""
|
|
426
|
+
kwargs['_return_http_data_only'] = True
|
|
427
|
+
if kwargs.get('async_req'):
|
|
428
|
+
return self.get_tire_sets_with_tires_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
429
|
+
else:
|
|
430
|
+
(data) = self.get_tire_sets_with_tires_list_with_http_info(event_id, **kwargs) # noqa: E501
|
|
431
|
+
return data
|
|
432
|
+
|
|
433
|
+
def get_tire_sets_with_tires_list_with_http_info(self, event_id, **kwargs): # noqa: E501
|
|
434
|
+
"""Get all tiresets for an event, with their associated tires # noqa: E501
|
|
435
|
+
|
|
436
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
437
|
+
asynchronous HTTP request, please pass async_req=True
|
|
438
|
+
>>> thread = api.get_tire_sets_with_tires_list_with_http_info(event_id, async_req=True)
|
|
439
|
+
>>> result = thread.get()
|
|
440
|
+
|
|
441
|
+
:param async_req bool
|
|
442
|
+
:param str event_id: The unique event id for which you want to get the tiresets (required)
|
|
443
|
+
:return: list[TireSetWithTires]
|
|
444
|
+
If the method is called asynchronously,
|
|
445
|
+
returns the request thread.
|
|
446
|
+
"""
|
|
447
|
+
|
|
448
|
+
all_params = ['event_id'] # noqa: E501
|
|
449
|
+
all_params.append('async_req')
|
|
450
|
+
all_params.append('_return_http_data_only')
|
|
451
|
+
all_params.append('_preload_content')
|
|
452
|
+
all_params.append('_request_timeout')
|
|
453
|
+
|
|
454
|
+
params = locals()
|
|
455
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
456
|
+
if key not in all_params:
|
|
457
|
+
raise TypeError(
|
|
458
|
+
"Got an unexpected keyword argument '%s'"
|
|
459
|
+
" to method get_tire_sets_with_tires_list" % key
|
|
460
|
+
)
|
|
461
|
+
params[key] = val
|
|
462
|
+
del params['kwargs']
|
|
463
|
+
# verify the required parameter 'event_id' is set
|
|
464
|
+
if self.api_client.client_side_validation and ('event_id' not in params or
|
|
465
|
+
params['event_id'] is None): # noqa: E501
|
|
466
|
+
raise ValueError("Missing the required parameter `event_id` when calling `get_tire_sets_with_tires_list`") # noqa: E501
|
|
467
|
+
|
|
468
|
+
collection_formats = {}
|
|
469
|
+
|
|
470
|
+
path_params = {}
|
|
471
|
+
if 'event_id' in params:
|
|
472
|
+
path_params['eventId'] = params['event_id'] # noqa: E501
|
|
473
|
+
|
|
474
|
+
query_params = []
|
|
475
|
+
|
|
476
|
+
header_params = {}
|
|
477
|
+
|
|
478
|
+
form_params = []
|
|
479
|
+
local_var_files = {}
|
|
480
|
+
|
|
481
|
+
body_params = None
|
|
482
|
+
# HTTP header `Accept`
|
|
483
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
484
|
+
['application/json', 'text/json']) # noqa: E501
|
|
485
|
+
|
|
486
|
+
# Authentication setting
|
|
487
|
+
auth_settings = ['TdbApiKey'] # noqa: E501
|
|
488
|
+
|
|
489
|
+
return self.api_client.call_api(
|
|
490
|
+
'/teamdbapi/v2.0/event/{eventId}/tiresetswithtires', 'GET',
|
|
491
|
+
path_params,
|
|
492
|
+
query_params,
|
|
493
|
+
header_params,
|
|
494
|
+
body=body_params,
|
|
495
|
+
post_params=form_params,
|
|
496
|
+
files=local_var_files,
|
|
497
|
+
response_type='list[TireSetWithTires]', # noqa: E501
|
|
498
|
+
auth_settings=auth_settings,
|
|
499
|
+
async_req=params.get('async_req'),
|
|
500
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
501
|
+
_preload_content=params.get('_preload_content', True),
|
|
502
|
+
_request_timeout=params.get('_request_timeout'),
|
|
503
|
+
collection_formats=collection_formats)
|
|
504
|
+
|
|
412
505
|
def update_tire_set(self, tire_set_id, updated_tire_set, **kwargs): # noqa: E501
|
|
413
506
|
"""Update an existing TireSet # noqa: E501
|
|
414
507
|
|
|
@@ -50,6 +50,8 @@ class VersionApi(object):
|
|
|
50
50
|
:param str copy_from_assembly: If not empty, enable the creation of the new assembly by copying another assembly from another version
|
|
51
51
|
:param bool auto_naming_partial_assembly: True to enable the automatic naming of partial assemblies
|
|
52
52
|
:param bool copy_history_log: True to copy logs when copying a version
|
|
53
|
+
:param str application_name: Only used with .M file. Allows to set an explicit application name to the parameters when multiple files are used to create the version. A valid version name is required too.
|
|
54
|
+
:param str version_name: Only used with .M file. Allows to set an explicit version name to the parameters when multiple files are used to create the version. A valid application name is required too.
|
|
53
55
|
:return: Version
|
|
54
56
|
If the method is called asynchronously,
|
|
55
57
|
returns the request thread.
|
|
@@ -78,12 +80,14 @@ class VersionApi(object):
|
|
|
78
80
|
:param str copy_from_assembly: If not empty, enable the creation of the new assembly by copying another assembly from another version
|
|
79
81
|
:param bool auto_naming_partial_assembly: True to enable the automatic naming of partial assemblies
|
|
80
82
|
:param bool copy_history_log: True to copy logs when copying a version
|
|
83
|
+
:param str application_name: Only used with .M file. Allows to set an explicit application name to the parameters when multiple files are used to create the version. A valid version name is required too.
|
|
84
|
+
:param str version_name: Only used with .M file. Allows to set an explicit version name to the parameters when multiple files are used to create the version. A valid application name is required too.
|
|
81
85
|
:return: Version
|
|
82
86
|
If the method is called asynchronously,
|
|
83
87
|
returns the request thread.
|
|
84
88
|
"""
|
|
85
89
|
|
|
86
|
-
all_params = ['created_version', 'default_revision_name', 'assembly_name', 'copy_from_version', 'set_default_assembly', 'copy_from_assembly', 'auto_naming_partial_assembly', 'copy_history_log'] # noqa: E501
|
|
90
|
+
all_params = ['created_version', 'default_revision_name', 'assembly_name', 'copy_from_version', 'set_default_assembly', 'copy_from_assembly', 'auto_naming_partial_assembly', 'copy_history_log', 'application_name', 'version_name'] # noqa: E501
|
|
87
91
|
all_params.append('async_req')
|
|
88
92
|
all_params.append('_return_http_data_only')
|
|
89
93
|
all_params.append('_preload_content')
|
|
@@ -122,6 +126,10 @@ class VersionApi(object):
|
|
|
122
126
|
query_params.append(('autoNamingPartialAssembly', params['auto_naming_partial_assembly'])) # noqa: E501
|
|
123
127
|
if 'copy_history_log' in params:
|
|
124
128
|
query_params.append(('copyHistoryLog', params['copy_history_log'])) # noqa: E501
|
|
129
|
+
if 'application_name' in params:
|
|
130
|
+
query_params.append(('applicationName', params['application_name'])) # noqa: E501
|
|
131
|
+
if 'version_name' in params:
|
|
132
|
+
query_params.append(('versionName', params['version_name'])) # noqa: E501
|
|
125
133
|
|
|
126
134
|
header_params = {}
|
|
127
135
|
|
|
@@ -17,6 +17,7 @@ from __future__ import absolute_import
|
|
|
17
17
|
# import models into model package
|
|
18
18
|
from teamdbapi.models.add_part_car_parameter_arg import AddPartCarParameterArg
|
|
19
19
|
from teamdbapi.models.assembly import Assembly
|
|
20
|
+
from teamdbapi.models.assembly_authorization import AssemblyAuthorization
|
|
20
21
|
from teamdbapi.models.bleed_adjustment import BleedAdjustment
|
|
21
22
|
from teamdbapi.models.calibration import Calibration
|
|
22
23
|
from teamdbapi.models.car import Car
|
|
@@ -75,6 +76,7 @@ from teamdbapi.models.team_db_list import TeamDBList
|
|
|
75
76
|
from teamdbapi.models.team_db_list_item import TeamDBListItem
|
|
76
77
|
from teamdbapi.models.tire import Tire
|
|
77
78
|
from teamdbapi.models.tire_set import TireSet
|
|
79
|
+
from teamdbapi.models.tire_set_with_tires import TireSetWithTires
|
|
78
80
|
from teamdbapi.models.track import Track
|
|
79
81
|
from teamdbapi.models.track_layout import TrackLayout
|
|
80
82
|
from teamdbapi.models.user import User
|