teamdbapi 3.0.0__py3-none-any.whl → 3.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- teamdbapi/__init__.py +15 -0
- teamdbapi/api/__init__.py +1 -0
- teamdbapi/api/component_api.py +117 -0
- teamdbapi/api/issue_api.py +1537 -0
- teamdbapi/api/part_api.py +481 -0
- teamdbapi/api/revision_api.py +109 -4
- teamdbapi/models/__init__.py +14 -0
- teamdbapi/models/add_part_car_parameter_arg.py +396 -0
- teamdbapi/models/component.py +87 -3
- teamdbapi/models/file_revision_info.py +199 -0
- teamdbapi/models/import_revisions_args.py +173 -0
- teamdbapi/models/import_revisions_info.py +197 -0
- teamdbapi/models/import_revisions_results.py +170 -0
- teamdbapi/models/issue.py +674 -0
- teamdbapi/models/issue_custom_field_value.py +319 -0
- teamdbapi/models/issue_priority.py +227 -0
- teamdbapi/models/issue_project.py +229 -0
- teamdbapi/models/issue_sector.py +199 -0
- teamdbapi/models/issue_status.py +284 -0
- teamdbapi/models/issue_type.py +199 -0
- teamdbapi/models/issue_workflow.py +199 -0
- teamdbapi/models/part.py +31 -3
- teamdbapi/models/part_car_parameters.py +561 -0
- teamdbapi/models/revision.py +37 -9
- teamdbapi/models/revision_value.py +31 -3
- {teamdbapi-3.0.0.dist-info → teamdbapi-3.2.0.dist-info}/METADATA +3 -3
- {teamdbapi-3.0.0.dist-info → teamdbapi-3.2.0.dist-info}/RECORD +29 -14
- {teamdbapi-3.0.0.dist-info → teamdbapi-3.2.0.dist-info}/LICENSE +0 -0
- {teamdbapi-3.0.0.dist-info → teamdbapi-3.2.0.dist-info}/WHEEL +0 -0
teamdbapi/__init__.py
CHANGED
|
@@ -25,6 +25,7 @@ from teamdbapi.api.event_api import EventApi
|
|
|
25
25
|
from teamdbapi.api.fixed_field_api import FixedFieldApi
|
|
26
26
|
from teamdbapi.api.group_api import GroupApi
|
|
27
27
|
from teamdbapi.api.import_export_api import ImportExportApi
|
|
28
|
+
from teamdbapi.api.issue_api import IssueApi
|
|
28
29
|
from teamdbapi.api.lap_api import LapApi
|
|
29
30
|
from teamdbapi.api.lap_report_api import LapReportApi
|
|
30
31
|
from teamdbapi.api.model_field_api import ModelFieldApi
|
|
@@ -53,6 +54,7 @@ from teamdbapi.api.version_api import VersionApi
|
|
|
53
54
|
from teamdbapi.api_client import ApiClient
|
|
54
55
|
from teamdbapi.configuration import Configuration
|
|
55
56
|
# import models into sdk package
|
|
57
|
+
from teamdbapi.models.add_part_car_parameter_arg import AddPartCarParameterArg
|
|
56
58
|
from teamdbapi.models.assembly import Assembly
|
|
57
59
|
from teamdbapi.models.bleed_adjustment import BleedAdjustment
|
|
58
60
|
from teamdbapi.models.calibration import Calibration
|
|
@@ -67,10 +69,22 @@ from teamdbapi.models.couple_guid_text import CoupleGuidText
|
|
|
67
69
|
from teamdbapi.models.criteria import Criteria
|
|
68
70
|
from teamdbapi.models.criteria_value import CriteriaValue
|
|
69
71
|
from teamdbapi.models.event import Event
|
|
72
|
+
from teamdbapi.models.file_revision_info import FileRevisionInfo
|
|
70
73
|
from teamdbapi.models.fixed_field import FixedField
|
|
71
74
|
from teamdbapi.models.group import Group
|
|
72
75
|
from teamdbapi.models.import_parameters_args import ImportParametersArgs
|
|
73
76
|
from teamdbapi.models.import_parameters_results import ImportParametersResults
|
|
77
|
+
from teamdbapi.models.import_revisions_args import ImportRevisionsArgs
|
|
78
|
+
from teamdbapi.models.import_revisions_info import ImportRevisionsInfo
|
|
79
|
+
from teamdbapi.models.import_revisions_results import ImportRevisionsResults
|
|
80
|
+
from teamdbapi.models.issue import Issue
|
|
81
|
+
from teamdbapi.models.issue_custom_field_value import IssueCustomFieldValue
|
|
82
|
+
from teamdbapi.models.issue_priority import IssuePriority
|
|
83
|
+
from teamdbapi.models.issue_project import IssueProject
|
|
84
|
+
from teamdbapi.models.issue_sector import IssueSector
|
|
85
|
+
from teamdbapi.models.issue_status import IssueStatus
|
|
86
|
+
from teamdbapi.models.issue_type import IssueType
|
|
87
|
+
from teamdbapi.models.issue_workflow import IssueWorkflow
|
|
74
88
|
from teamdbapi.models.item_value import ItemValue
|
|
75
89
|
from teamdbapi.models.item_value_key import ItemValueKey
|
|
76
90
|
from teamdbapi.models.lap import Lap
|
|
@@ -83,6 +97,7 @@ from teamdbapi.models.notes_context import NotesContext
|
|
|
83
97
|
from teamdbapi.models.parameter import Parameter
|
|
84
98
|
from teamdbapi.models.parameter_cross_table import ParameterCrossTable
|
|
85
99
|
from teamdbapi.models.part import Part
|
|
100
|
+
from teamdbapi.models.part_car_parameters import PartCarParameters
|
|
86
101
|
from teamdbapi.models.part_count import PartCount
|
|
87
102
|
from teamdbapi.models.problem_details import ProblemDetails
|
|
88
103
|
from teamdbapi.models.revision import Revision
|
teamdbapi/api/__init__.py
CHANGED
|
@@ -13,6 +13,7 @@ from teamdbapi.api.event_api import EventApi
|
|
|
13
13
|
from teamdbapi.api.fixed_field_api import FixedFieldApi
|
|
14
14
|
from teamdbapi.api.group_api import GroupApi
|
|
15
15
|
from teamdbapi.api.import_export_api import ImportExportApi
|
|
16
|
+
from teamdbapi.api.issue_api import IssueApi
|
|
16
17
|
from teamdbapi.api.lap_api import LapApi
|
|
17
18
|
from teamdbapi.api.lap_report_api import LapReportApi
|
|
18
19
|
from teamdbapi.api.model_field_api import ModelFieldApi
|
teamdbapi/api/component_api.py
CHANGED
|
@@ -840,6 +840,123 @@ class ComponentApi(object):
|
|
|
840
840
|
_request_timeout=params.get('_request_timeout'),
|
|
841
841
|
collection_formats=collection_formats)
|
|
842
842
|
|
|
843
|
+
def set_parameter_binding_to_component_group_revision_content(self, component_id, revision_id, sub_component_revision_id, parameter_binding, **kwargs): # noqa: E501
|
|
844
|
+
"""[Command] Set the parameter binding to the content of a component group revision for a given sub component unique identifier. # noqa: E501
|
|
845
|
+
|
|
846
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
847
|
+
asynchronous HTTP request, please pass async_req=True
|
|
848
|
+
>>> thread = api.set_parameter_binding_to_component_group_revision_content(component_id, revision_id, sub_component_revision_id, parameter_binding, async_req=True)
|
|
849
|
+
>>> result = thread.get()
|
|
850
|
+
|
|
851
|
+
:param async_req bool
|
|
852
|
+
:param str component_id: The unique identifier of the component group. (required)
|
|
853
|
+
:param str revision_id: The unique identifier of the component group revision. (required)
|
|
854
|
+
:param str sub_component_revision_id: The unique identifier of the sub component to edit the parameter binding (required)
|
|
855
|
+
:param str parameter_binding: The parameter binding value (required)
|
|
856
|
+
:return: None
|
|
857
|
+
If the method is called asynchronously,
|
|
858
|
+
returns the request thread.
|
|
859
|
+
"""
|
|
860
|
+
kwargs['_return_http_data_only'] = True
|
|
861
|
+
if kwargs.get('async_req'):
|
|
862
|
+
return self.set_parameter_binding_to_component_group_revision_content_with_http_info(component_id, revision_id, sub_component_revision_id, parameter_binding, **kwargs) # noqa: E501
|
|
863
|
+
else:
|
|
864
|
+
(data) = self.set_parameter_binding_to_component_group_revision_content_with_http_info(component_id, revision_id, sub_component_revision_id, parameter_binding, **kwargs) # noqa: E501
|
|
865
|
+
return data
|
|
866
|
+
|
|
867
|
+
def set_parameter_binding_to_component_group_revision_content_with_http_info(self, component_id, revision_id, sub_component_revision_id, parameter_binding, **kwargs): # noqa: E501
|
|
868
|
+
"""[Command] Set the parameter binding to the content of a component group revision for a given sub component unique identifier. # noqa: E501
|
|
869
|
+
|
|
870
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
871
|
+
asynchronous HTTP request, please pass async_req=True
|
|
872
|
+
>>> thread = api.set_parameter_binding_to_component_group_revision_content_with_http_info(component_id, revision_id, sub_component_revision_id, parameter_binding, async_req=True)
|
|
873
|
+
>>> result = thread.get()
|
|
874
|
+
|
|
875
|
+
:param async_req bool
|
|
876
|
+
:param str component_id: The unique identifier of the component group. (required)
|
|
877
|
+
:param str revision_id: The unique identifier of the component group revision. (required)
|
|
878
|
+
:param str sub_component_revision_id: The unique identifier of the sub component to edit the parameter binding (required)
|
|
879
|
+
:param str parameter_binding: The parameter binding value (required)
|
|
880
|
+
:return: None
|
|
881
|
+
If the method is called asynchronously,
|
|
882
|
+
returns the request thread.
|
|
883
|
+
"""
|
|
884
|
+
|
|
885
|
+
all_params = ['component_id', 'revision_id', 'sub_component_revision_id', 'parameter_binding'] # noqa: E501
|
|
886
|
+
all_params.append('async_req')
|
|
887
|
+
all_params.append('_return_http_data_only')
|
|
888
|
+
all_params.append('_preload_content')
|
|
889
|
+
all_params.append('_request_timeout')
|
|
890
|
+
|
|
891
|
+
params = locals()
|
|
892
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
893
|
+
if key not in all_params:
|
|
894
|
+
raise TypeError(
|
|
895
|
+
"Got an unexpected keyword argument '%s'"
|
|
896
|
+
" to method set_parameter_binding_to_component_group_revision_content" % key
|
|
897
|
+
)
|
|
898
|
+
params[key] = val
|
|
899
|
+
del params['kwargs']
|
|
900
|
+
# verify the required parameter 'component_id' is set
|
|
901
|
+
if ('component_id' not in params or
|
|
902
|
+
params['component_id'] is None):
|
|
903
|
+
raise ValueError("Missing the required parameter `component_id` when calling `set_parameter_binding_to_component_group_revision_content`") # noqa: E501
|
|
904
|
+
# verify the required parameter 'revision_id' is set
|
|
905
|
+
if ('revision_id' not in params or
|
|
906
|
+
params['revision_id'] is None):
|
|
907
|
+
raise ValueError("Missing the required parameter `revision_id` when calling `set_parameter_binding_to_component_group_revision_content`") # noqa: E501
|
|
908
|
+
# verify the required parameter 'sub_component_revision_id' is set
|
|
909
|
+
if ('sub_component_revision_id' not in params or
|
|
910
|
+
params['sub_component_revision_id'] is None):
|
|
911
|
+
raise ValueError("Missing the required parameter `sub_component_revision_id` when calling `set_parameter_binding_to_component_group_revision_content`") # noqa: E501
|
|
912
|
+
# verify the required parameter 'parameter_binding' is set
|
|
913
|
+
if ('parameter_binding' not in params or
|
|
914
|
+
params['parameter_binding'] is None):
|
|
915
|
+
raise ValueError("Missing the required parameter `parameter_binding` when calling `set_parameter_binding_to_component_group_revision_content`") # noqa: E501
|
|
916
|
+
|
|
917
|
+
collection_formats = {}
|
|
918
|
+
|
|
919
|
+
path_params = {}
|
|
920
|
+
if 'component_id' in params:
|
|
921
|
+
path_params['componentId'] = params['component_id'] # noqa: E501
|
|
922
|
+
if 'revision_id' in params:
|
|
923
|
+
path_params['revisionId'] = params['revision_id'] # noqa: E501
|
|
924
|
+
if 'sub_component_revision_id' in params:
|
|
925
|
+
path_params['subComponentRevisionId'] = params['sub_component_revision_id'] # noqa: E501
|
|
926
|
+
if 'parameter_binding' in params:
|
|
927
|
+
path_params['parameterBinding'] = params['parameter_binding'] # noqa: E501
|
|
928
|
+
|
|
929
|
+
query_params = []
|
|
930
|
+
|
|
931
|
+
header_params = {}
|
|
932
|
+
|
|
933
|
+
form_params = []
|
|
934
|
+
local_var_files = {}
|
|
935
|
+
|
|
936
|
+
body_params = None
|
|
937
|
+
# HTTP header `Accept`
|
|
938
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
939
|
+
['application/json', 'text/json']) # noqa: E501
|
|
940
|
+
|
|
941
|
+
# Authentication setting
|
|
942
|
+
auth_settings = [] # noqa: E501
|
|
943
|
+
|
|
944
|
+
return self.api_client.call_api(
|
|
945
|
+
'/teamdbapi/v2.0/component/{componentId}/revision/{revisionId}/subComponent/{subComponentRevisionId}/parameterBinding/{parameterBinding}', 'PUT',
|
|
946
|
+
path_params,
|
|
947
|
+
query_params,
|
|
948
|
+
header_params,
|
|
949
|
+
body=body_params,
|
|
950
|
+
post_params=form_params,
|
|
951
|
+
files=local_var_files,
|
|
952
|
+
response_type=None, # noqa: E501
|
|
953
|
+
auth_settings=auth_settings,
|
|
954
|
+
async_req=params.get('async_req'),
|
|
955
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
956
|
+
_preload_content=params.get('_preload_content', True),
|
|
957
|
+
_request_timeout=params.get('_request_timeout'),
|
|
958
|
+
collection_formats=collection_formats)
|
|
959
|
+
|
|
843
960
|
def update_component_revision(self, component_id, revision_id, **kwargs): # noqa: E501
|
|
844
961
|
"""Update a component revision from it's unique identifiers. # noqa: E501
|
|
845
962
|
|