teamdbapi 3.13.0__tar.gz → 3.15.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.13.0 → teamdbapi-3.15.0}/PKG-INFO +3 -3
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/README.md +2 -2
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/pyproject.toml +1 -1
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/__init__.py +4 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/__init__.py +1 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/assembly_api.py +111 -2
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/component_api.py +101 -0
- teamdbapi-3.15.0/teamdbapi/api/measure_api.py +531 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/__init__.py +3 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/calibration.py +31 -3
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/compare_options.py +38 -3
- teamdbapi-3.15.0/teamdbapi/models/component_location.py +463 -0
- teamdbapi-3.15.0/teamdbapi/models/measure_field.py +504 -0
- teamdbapi-3.15.0/teamdbapi/models/measure_value.py +294 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/part_count.py +33 -5
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/.gitignore +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/.swagger-codegen/VERSION +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/.swagger-codegen-ignore +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/.travis.yml +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/LICENSE +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/git_push.sh +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/requirements.txt +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/setup.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/car_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/config_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/criteria_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/edit_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/event_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/fixed_field_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/group_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/import_export_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/issue_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/lap_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/lap_report_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/model_field_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/mounting_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/notes_authorization_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/overall_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/parameter_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/parameter_binding_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/part_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/report_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/revision_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/revision_editor_selector_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/run_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/script_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/session_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/target_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/team_db_list_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/team_db_view_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/tire_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/tire_set_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/track_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/track_layout_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/update_request_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/user_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/value_field_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api/version_api.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/api_client.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/configuration.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/add_part_car_parameter_arg.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/assembly.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/assembly_authorization.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/bleed_adjustment.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/car.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/car_parameters_context.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/compare_result.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/compare_result_detail.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/component.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/copy_from_tags_args.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/couple_guid_text.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/criteria.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/criteria_set.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/criteria_value.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/criteria_value_detail.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/event.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/file_revision_info.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/fixed_field.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/group.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/import_parameters_args.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/import_parameters_results.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/import_revisions_args.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/import_revisions_info.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/import_revisions_results.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/issue.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/issue_custom_field_value.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/issue_priority.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/issue_project.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/issue_sector.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/issue_status.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/issue_type.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/issue_workflow.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/item_value.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/item_value_key.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/lap.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/lap_report_options.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/model_field.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/model_field_authorization.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/mounting.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/notes_authorization.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/notes_context.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/overall.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/parameter.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/parameter_binding.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/parameter_cross_table.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/part.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/part_car_parameters.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/revision.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/revision_value.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/run.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/script.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/session.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/string_with_font_style.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/target.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/team_db_list.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/team_db_list_item.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/tire.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/tire_set.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/tire_set_with_tires.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/track.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/track_layout.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/user.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/user_group.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/value_field.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/models/version.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/teamdbapi/rest.py +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.0}/test-requirements.txt +0 -0
- {teamdbapi-3.13.0 → teamdbapi-3.15.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.15.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.15.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.15.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.15.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.15.0
|
|
11
11
|
|
|
12
12
|
## Installation and usage
|
|
13
13
|
### pip install
|
|
@@ -29,6 +29,7 @@ from teamdbapi.api.import_export_api import ImportExportApi
|
|
|
29
29
|
from teamdbapi.api.issue_api import IssueApi
|
|
30
30
|
from teamdbapi.api.lap_api import LapApi
|
|
31
31
|
from teamdbapi.api.lap_report_api import LapReportApi
|
|
32
|
+
from teamdbapi.api.measure_api import MeasureApi
|
|
32
33
|
from teamdbapi.api.model_field_api import ModelFieldApi
|
|
33
34
|
from teamdbapi.api.mounting_api import MountingApi
|
|
34
35
|
from teamdbapi.api.notes_authorization_api import NotesAuthorizationApi
|
|
@@ -69,6 +70,7 @@ from teamdbapi.models.compare_options import CompareOptions
|
|
|
69
70
|
from teamdbapi.models.compare_result import CompareResult
|
|
70
71
|
from teamdbapi.models.compare_result_detail import CompareResultDetail
|
|
71
72
|
from teamdbapi.models.component import Component
|
|
73
|
+
from teamdbapi.models.component_location import ComponentLocation
|
|
72
74
|
from teamdbapi.models.copy_from_tags_args import CopyFromTagsArgs
|
|
73
75
|
from teamdbapi.models.couple_guid_text import CoupleGuidText
|
|
74
76
|
from teamdbapi.models.criteria import Criteria
|
|
@@ -96,6 +98,8 @@ from teamdbapi.models.item_value import ItemValue
|
|
|
96
98
|
from teamdbapi.models.item_value_key import ItemValueKey
|
|
97
99
|
from teamdbapi.models.lap import Lap
|
|
98
100
|
from teamdbapi.models.lap_report_options import LapReportOptions
|
|
101
|
+
from teamdbapi.models.measure_field import MeasureField
|
|
102
|
+
from teamdbapi.models.measure_value import MeasureValue
|
|
99
103
|
from teamdbapi.models.model_field import ModelField
|
|
100
104
|
from teamdbapi.models.model_field_authorization import ModelFieldAuthorization
|
|
101
105
|
from teamdbapi.models.mounting import Mounting
|
|
@@ -16,6 +16,7 @@ from teamdbapi.api.import_export_api import ImportExportApi
|
|
|
16
16
|
from teamdbapi.api.issue_api import IssueApi
|
|
17
17
|
from teamdbapi.api.lap_api import LapApi
|
|
18
18
|
from teamdbapi.api.lap_report_api import LapReportApi
|
|
19
|
+
from teamdbapi.api.measure_api import MeasureApi
|
|
19
20
|
from teamdbapi.api.model_field_api import ModelFieldApi
|
|
20
21
|
from teamdbapi.api.mounting_api import MountingApi
|
|
21
22
|
from teamdbapi.api.notes_authorization_api import NotesAuthorizationApi
|
|
@@ -347,7 +347,7 @@ class AssemblyApi(object):
|
|
|
347
347
|
:param async_req bool
|
|
348
348
|
:param str assembly_a_id: Assembly A unique Id (required)
|
|
349
349
|
:param str assembly_b_id: Assembly B unique Id (required)
|
|
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.
|
|
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 (example: C:/path/myFile.m). 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. DiffFileFormat allows you to specify the format of the diff file generated: calibration file (default) or HTML.
|
|
351
351
|
:return: list[CompareResultDetail]
|
|
352
352
|
If the method is called asynchronously,
|
|
353
353
|
returns the request thread.
|
|
@@ -370,7 +370,7 @@ class AssemblyApi(object):
|
|
|
370
370
|
:param async_req bool
|
|
371
371
|
:param str assembly_a_id: Assembly A unique Id (required)
|
|
372
372
|
:param str assembly_b_id: Assembly B unique Id (required)
|
|
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.
|
|
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 (example: C:/path/myFile.m). 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. DiffFileFormat allows you to specify the format of the diff file generated: calibration file (default) or HTML.
|
|
374
374
|
:return: list[CompareResultDetail]
|
|
375
375
|
If the method is called asynchronously,
|
|
376
376
|
returns the request thread.
|
|
@@ -445,6 +445,115 @@ class AssemblyApi(object):
|
|
|
445
445
|
_request_timeout=params.get('_request_timeout'),
|
|
446
446
|
collection_formats=collection_formats)
|
|
447
447
|
|
|
448
|
+
def compare_assemblies_ui(self, assembly_a_id, assembly_b_id, **kwargs): # noqa: E501
|
|
449
|
+
"""[Command] Set the selected assemblies in the compare view UI and run the compare. # noqa: E501
|
|
450
|
+
|
|
451
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
452
|
+
asynchronous HTTP request, please pass async_req=True
|
|
453
|
+
>>> thread = api.compare_assemblies_ui(assembly_a_id, assembly_b_id, async_req=True)
|
|
454
|
+
>>> result = thread.get()
|
|
455
|
+
|
|
456
|
+
:param async_req bool
|
|
457
|
+
:param str assembly_a_id: The assembly A unique ID (required)
|
|
458
|
+
:param str assembly_b_id: The assembly B unique ID (required)
|
|
459
|
+
:param str assembly_c_id: The assembly C unique ID (optionnal)
|
|
460
|
+
:param bool run_compare: Whether to run the compare after selecting the assemblies (optionnal, true as default)
|
|
461
|
+
:return: None
|
|
462
|
+
If the method is called asynchronously,
|
|
463
|
+
returns the request thread.
|
|
464
|
+
"""
|
|
465
|
+
kwargs['_return_http_data_only'] = True
|
|
466
|
+
if kwargs.get('async_req'):
|
|
467
|
+
return self.compare_assemblies_ui_with_http_info(assembly_a_id, assembly_b_id, **kwargs) # noqa: E501
|
|
468
|
+
else:
|
|
469
|
+
(data) = self.compare_assemblies_ui_with_http_info(assembly_a_id, assembly_b_id, **kwargs) # noqa: E501
|
|
470
|
+
return data
|
|
471
|
+
|
|
472
|
+
def compare_assemblies_ui_with_http_info(self, assembly_a_id, assembly_b_id, **kwargs): # noqa: E501
|
|
473
|
+
"""[Command] Set the selected assemblies in the compare view UI and run the compare. # noqa: E501
|
|
474
|
+
|
|
475
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
476
|
+
asynchronous HTTP request, please pass async_req=True
|
|
477
|
+
>>> thread = api.compare_assemblies_ui_with_http_info(assembly_a_id, assembly_b_id, async_req=True)
|
|
478
|
+
>>> result = thread.get()
|
|
479
|
+
|
|
480
|
+
:param async_req bool
|
|
481
|
+
:param str assembly_a_id: The assembly A unique ID (required)
|
|
482
|
+
:param str assembly_b_id: The assembly B unique ID (required)
|
|
483
|
+
:param str assembly_c_id: The assembly C unique ID (optionnal)
|
|
484
|
+
:param bool run_compare: Whether to run the compare after selecting the assemblies (optionnal, true as default)
|
|
485
|
+
:return: None
|
|
486
|
+
If the method is called asynchronously,
|
|
487
|
+
returns the request thread.
|
|
488
|
+
"""
|
|
489
|
+
|
|
490
|
+
all_params = ['assembly_a_id', 'assembly_b_id', 'assembly_c_id', 'run_compare'] # noqa: E501
|
|
491
|
+
all_params.append('async_req')
|
|
492
|
+
all_params.append('_return_http_data_only')
|
|
493
|
+
all_params.append('_preload_content')
|
|
494
|
+
all_params.append('_request_timeout')
|
|
495
|
+
|
|
496
|
+
params = locals()
|
|
497
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
498
|
+
if key not in all_params:
|
|
499
|
+
raise TypeError(
|
|
500
|
+
"Got an unexpected keyword argument '%s'"
|
|
501
|
+
" to method compare_assemblies_ui" % key
|
|
502
|
+
)
|
|
503
|
+
params[key] = val
|
|
504
|
+
del params['kwargs']
|
|
505
|
+
# verify the required parameter 'assembly_a_id' is set
|
|
506
|
+
if self.api_client.client_side_validation and ('assembly_a_id' not in params or
|
|
507
|
+
params['assembly_a_id'] is None): # noqa: E501
|
|
508
|
+
raise ValueError("Missing the required parameter `assembly_a_id` when calling `compare_assemblies_ui`") # noqa: E501
|
|
509
|
+
# verify the required parameter 'assembly_b_id' is set
|
|
510
|
+
if self.api_client.client_side_validation and ('assembly_b_id' not in params or
|
|
511
|
+
params['assembly_b_id'] is None): # noqa: E501
|
|
512
|
+
raise ValueError("Missing the required parameter `assembly_b_id` when calling `compare_assemblies_ui`") # noqa: E501
|
|
513
|
+
|
|
514
|
+
collection_formats = {}
|
|
515
|
+
|
|
516
|
+
path_params = {}
|
|
517
|
+
|
|
518
|
+
query_params = []
|
|
519
|
+
if 'assembly_a_id' in params:
|
|
520
|
+
query_params.append(('assemblyAId', params['assembly_a_id'])) # noqa: E501
|
|
521
|
+
if 'assembly_b_id' in params:
|
|
522
|
+
query_params.append(('assemblyBId', params['assembly_b_id'])) # noqa: E501
|
|
523
|
+
if 'assembly_c_id' in params:
|
|
524
|
+
query_params.append(('assemblyCId', params['assembly_c_id'])) # noqa: E501
|
|
525
|
+
if 'run_compare' in params:
|
|
526
|
+
query_params.append(('runCompare', params['run_compare'])) # noqa: E501
|
|
527
|
+
|
|
528
|
+
header_params = {}
|
|
529
|
+
|
|
530
|
+
form_params = []
|
|
531
|
+
local_var_files = {}
|
|
532
|
+
|
|
533
|
+
body_params = None
|
|
534
|
+
# HTTP header `Accept`
|
|
535
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
536
|
+
['application/json', 'text/json']) # noqa: E501
|
|
537
|
+
|
|
538
|
+
# Authentication setting
|
|
539
|
+
auth_settings = ['TdbApiKey'] # noqa: E501
|
|
540
|
+
|
|
541
|
+
return self.api_client.call_api(
|
|
542
|
+
'/teamdbapi/v2.0/assembly/compareui', 'POST',
|
|
543
|
+
path_params,
|
|
544
|
+
query_params,
|
|
545
|
+
header_params,
|
|
546
|
+
body=body_params,
|
|
547
|
+
post_params=form_params,
|
|
548
|
+
files=local_var_files,
|
|
549
|
+
response_type=None, # noqa: E501
|
|
550
|
+
auth_settings=auth_settings,
|
|
551
|
+
async_req=params.get('async_req'),
|
|
552
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
553
|
+
_preload_content=params.get('_preload_content', True),
|
|
554
|
+
_request_timeout=params.get('_request_timeout'),
|
|
555
|
+
collection_formats=collection_formats)
|
|
556
|
+
|
|
448
557
|
def create_assembly(self, assembly, **kwargs): # noqa: E501
|
|
449
558
|
"""Create an assembly. The revisions list content will be ignored. You must call AddRevisionsToAssembly to add revisions to an assembly. # noqa: E501
|
|
450
559
|
|
|
@@ -243,6 +243,107 @@ class ComponentApi(object):
|
|
|
243
243
|
_request_timeout=params.get('_request_timeout'),
|
|
244
244
|
collection_formats=collection_formats)
|
|
245
245
|
|
|
246
|
+
def get_component_location(self, component_id, revision_id, **kwargs): # noqa: E501
|
|
247
|
+
"""Get the current location of a component revision. The current location can be a store, or a mounting. # noqa: E501
|
|
248
|
+
|
|
249
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
250
|
+
asynchronous HTTP request, please pass async_req=True
|
|
251
|
+
>>> thread = api.get_component_location(component_id, revision_id, async_req=True)
|
|
252
|
+
>>> result = thread.get()
|
|
253
|
+
|
|
254
|
+
:param async_req bool
|
|
255
|
+
:param str component_id: The unique identifier of the component. (required)
|
|
256
|
+
:param str revision_id: The unique identifier of the component revision. (required)
|
|
257
|
+
:return: ComponentLocation
|
|
258
|
+
If the method is called asynchronously,
|
|
259
|
+
returns the request thread.
|
|
260
|
+
"""
|
|
261
|
+
kwargs['_return_http_data_only'] = True
|
|
262
|
+
if kwargs.get('async_req'):
|
|
263
|
+
return self.get_component_location_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
|
|
264
|
+
else:
|
|
265
|
+
(data) = self.get_component_location_with_http_info(component_id, revision_id, **kwargs) # noqa: E501
|
|
266
|
+
return data
|
|
267
|
+
|
|
268
|
+
def get_component_location_with_http_info(self, component_id, revision_id, **kwargs): # noqa: E501
|
|
269
|
+
"""Get the current location of a component revision. The current location can be a store, or a mounting. # noqa: E501
|
|
270
|
+
|
|
271
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
272
|
+
asynchronous HTTP request, please pass async_req=True
|
|
273
|
+
>>> thread = api.get_component_location_with_http_info(component_id, revision_id, async_req=True)
|
|
274
|
+
>>> result = thread.get()
|
|
275
|
+
|
|
276
|
+
:param async_req bool
|
|
277
|
+
:param str component_id: The unique identifier of the component. (required)
|
|
278
|
+
:param str revision_id: The unique identifier of the component revision. (required)
|
|
279
|
+
:return: ComponentLocation
|
|
280
|
+
If the method is called asynchronously,
|
|
281
|
+
returns the request thread.
|
|
282
|
+
"""
|
|
283
|
+
|
|
284
|
+
all_params = ['component_id', 'revision_id'] # noqa: E501
|
|
285
|
+
all_params.append('async_req')
|
|
286
|
+
all_params.append('_return_http_data_only')
|
|
287
|
+
all_params.append('_preload_content')
|
|
288
|
+
all_params.append('_request_timeout')
|
|
289
|
+
|
|
290
|
+
params = locals()
|
|
291
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
292
|
+
if key not in all_params:
|
|
293
|
+
raise TypeError(
|
|
294
|
+
"Got an unexpected keyword argument '%s'"
|
|
295
|
+
" to method get_component_location" % key
|
|
296
|
+
)
|
|
297
|
+
params[key] = val
|
|
298
|
+
del params['kwargs']
|
|
299
|
+
# verify the required parameter 'component_id' is set
|
|
300
|
+
if self.api_client.client_side_validation and ('component_id' not in params or
|
|
301
|
+
params['component_id'] is None): # noqa: E501
|
|
302
|
+
raise ValueError("Missing the required parameter `component_id` when calling `get_component_location`") # noqa: E501
|
|
303
|
+
# verify the required parameter 'revision_id' is set
|
|
304
|
+
if self.api_client.client_side_validation and ('revision_id' not in params or
|
|
305
|
+
params['revision_id'] is None): # noqa: E501
|
|
306
|
+
raise ValueError("Missing the required parameter `revision_id` when calling `get_component_location`") # noqa: E501
|
|
307
|
+
|
|
308
|
+
collection_formats = {}
|
|
309
|
+
|
|
310
|
+
path_params = {}
|
|
311
|
+
if 'component_id' in params:
|
|
312
|
+
path_params['componentId'] = params['component_id'] # noqa: E501
|
|
313
|
+
if 'revision_id' in params:
|
|
314
|
+
path_params['revisionId'] = params['revision_id'] # noqa: E501
|
|
315
|
+
|
|
316
|
+
query_params = []
|
|
317
|
+
|
|
318
|
+
header_params = {}
|
|
319
|
+
|
|
320
|
+
form_params = []
|
|
321
|
+
local_var_files = {}
|
|
322
|
+
|
|
323
|
+
body_params = None
|
|
324
|
+
# HTTP header `Accept`
|
|
325
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
326
|
+
['application/json', 'text/json']) # noqa: E501
|
|
327
|
+
|
|
328
|
+
# Authentication setting
|
|
329
|
+
auth_settings = ['TdbApiKey'] # noqa: E501
|
|
330
|
+
|
|
331
|
+
return self.api_client.call_api(
|
|
332
|
+
'/teamdbapi/v2.0/component/{componentId}/revision/{revisionId}/location', 'GET',
|
|
333
|
+
path_params,
|
|
334
|
+
query_params,
|
|
335
|
+
header_params,
|
|
336
|
+
body=body_params,
|
|
337
|
+
post_params=form_params,
|
|
338
|
+
files=local_var_files,
|
|
339
|
+
response_type='ComponentLocation', # noqa: E501
|
|
340
|
+
auth_settings=auth_settings,
|
|
341
|
+
async_req=params.get('async_req'),
|
|
342
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
343
|
+
_preload_content=params.get('_preload_content', True),
|
|
344
|
+
_request_timeout=params.get('_request_timeout'),
|
|
345
|
+
collection_formats=collection_formats)
|
|
346
|
+
|
|
246
347
|
def get_component_revision(self, component_id, revision_id, **kwargs): # noqa: E501
|
|
247
348
|
"""Get a component revision from it's unique identifier. # noqa: E501
|
|
248
349
|
|