teamdbapi 3.0.0__py3-none-any.whl → 3.3.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/assembly_api.py +4 -4
- teamdbapi/api/component_api.py +117 -0
- teamdbapi/api/edit_api.py +89 -0
- teamdbapi/api/import_export_api.py +12 -12
- teamdbapi/api/issue_api.py +1537 -0
- teamdbapi/api/lap_report_api.py +2 -2
- teamdbapi/api/part_api.py +481 -0
- teamdbapi/api/report_api.py +2 -2
- teamdbapi/api/revision_api.py +111 -6
- teamdbapi/api/value_field_api.py +2 -2
- teamdbapi/models/__init__.py +14 -0
- teamdbapi/models/add_part_car_parameter_arg.py +396 -0
- teamdbapi/models/car_parameters_context.py +31 -3
- teamdbapi/models/compare_options.py +2 -2
- teamdbapi/models/component.py +87 -3
- teamdbapi/models/file_revision_info.py +199 -0
- teamdbapi/models/import_parameters_args.py +2 -2
- 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/lap_report_options.py +2 -2
- teamdbapi/models/parameter_cross_table.py +4 -4
- 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/models/script.py +2 -2
- teamdbapi/models/target.py +4 -4
- teamdbapi/models/version.py +4 -4
- {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/METADATA +3 -3
- {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/RECORD +43 -28
- {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/LICENSE +0 -0
- {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Trackside Software TeamDB API v2.0
|
|
5
|
+
|
|
6
|
+
This API enables you to access TeamDB data # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 2.0
|
|
9
|
+
Contact: support@trackside.fr
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class IssueType(object):
|
|
20
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
21
|
+
|
|
22
|
+
Do not edit the class manually.
|
|
23
|
+
"""
|
|
24
|
+
"""
|
|
25
|
+
Attributes:
|
|
26
|
+
swagger_types (dict): The key is attribute name
|
|
27
|
+
and the value is attribute type.
|
|
28
|
+
attribute_map (dict): The key is attribute name
|
|
29
|
+
and the value is json key in definition.
|
|
30
|
+
"""
|
|
31
|
+
swagger_types = {
|
|
32
|
+
'id': 'str',
|
|
33
|
+
'name': 'str',
|
|
34
|
+
'default': 'bool',
|
|
35
|
+
'obsolete': 'bool'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
attribute_map = {
|
|
39
|
+
'id': 'Id',
|
|
40
|
+
'name': 'Name',
|
|
41
|
+
'default': 'Default',
|
|
42
|
+
'obsolete': 'Obsolete'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, id=None, name=None, default=None, obsolete=None): # noqa: E501
|
|
46
|
+
"""IssueType - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
self._id = None
|
|
48
|
+
self._name = None
|
|
49
|
+
self._default = None
|
|
50
|
+
self._obsolete = None
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
self.id = id
|
|
53
|
+
self.name = name
|
|
54
|
+
if default is not None:
|
|
55
|
+
self.default = default
|
|
56
|
+
if obsolete is not None:
|
|
57
|
+
self.obsolete = obsolete
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def id(self):
|
|
61
|
+
"""Gets the id of this IssueType. # noqa: E501
|
|
62
|
+
|
|
63
|
+
The Id of the item. Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new issue list item # noqa: E501
|
|
64
|
+
|
|
65
|
+
:return: The id of this IssueType. # noqa: E501
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._id
|
|
69
|
+
|
|
70
|
+
@id.setter
|
|
71
|
+
def id(self, id):
|
|
72
|
+
"""Sets the id of this IssueType.
|
|
73
|
+
|
|
74
|
+
The Id of the item. Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new issue list item # noqa: E501
|
|
75
|
+
|
|
76
|
+
:param id: The id of this IssueType. # noqa: E501
|
|
77
|
+
:type: str
|
|
78
|
+
"""
|
|
79
|
+
if id is None:
|
|
80
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
|
81
|
+
|
|
82
|
+
self._id = id
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def name(self):
|
|
86
|
+
"""Gets the name of this IssueType. # noqa: E501
|
|
87
|
+
|
|
88
|
+
The name of the item. # noqa: E501
|
|
89
|
+
|
|
90
|
+
:return: The name of this IssueType. # noqa: E501
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
93
|
+
return self._name
|
|
94
|
+
|
|
95
|
+
@name.setter
|
|
96
|
+
def name(self, name):
|
|
97
|
+
"""Sets the name of this IssueType.
|
|
98
|
+
|
|
99
|
+
The name of the item. # noqa: E501
|
|
100
|
+
|
|
101
|
+
:param name: The name of this IssueType. # noqa: E501
|
|
102
|
+
:type: str
|
|
103
|
+
"""
|
|
104
|
+
if name is None:
|
|
105
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
106
|
+
|
|
107
|
+
self._name = name
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def default(self):
|
|
111
|
+
"""Gets the default of this IssueType. # noqa: E501
|
|
112
|
+
|
|
113
|
+
Define whether the item is the default one or not. # noqa: E501
|
|
114
|
+
|
|
115
|
+
:return: The default of this IssueType. # noqa: E501
|
|
116
|
+
:rtype: bool
|
|
117
|
+
"""
|
|
118
|
+
return self._default
|
|
119
|
+
|
|
120
|
+
@default.setter
|
|
121
|
+
def default(self, default):
|
|
122
|
+
"""Sets the default of this IssueType.
|
|
123
|
+
|
|
124
|
+
Define whether the item is the default one or not. # noqa: E501
|
|
125
|
+
|
|
126
|
+
:param default: The default of this IssueType. # noqa: E501
|
|
127
|
+
:type: bool
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
self._default = default
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def obsolete(self):
|
|
134
|
+
"""Gets the obsolete of this IssueType. # noqa: E501
|
|
135
|
+
|
|
136
|
+
Define whether the item is obsolete or not. # noqa: E501
|
|
137
|
+
|
|
138
|
+
:return: The obsolete of this IssueType. # noqa: E501
|
|
139
|
+
:rtype: bool
|
|
140
|
+
"""
|
|
141
|
+
return self._obsolete
|
|
142
|
+
|
|
143
|
+
@obsolete.setter
|
|
144
|
+
def obsolete(self, obsolete):
|
|
145
|
+
"""Sets the obsolete of this IssueType.
|
|
146
|
+
|
|
147
|
+
Define whether the item is obsolete or not. # noqa: E501
|
|
148
|
+
|
|
149
|
+
:param obsolete: The obsolete of this IssueType. # noqa: E501
|
|
150
|
+
:type: bool
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
self._obsolete = obsolete
|
|
154
|
+
|
|
155
|
+
def to_dict(self):
|
|
156
|
+
"""Returns the model properties as a dict"""
|
|
157
|
+
result = {}
|
|
158
|
+
|
|
159
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
160
|
+
value = getattr(self, attr)
|
|
161
|
+
if isinstance(value, list):
|
|
162
|
+
result[attr] = list(map(
|
|
163
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
164
|
+
value
|
|
165
|
+
))
|
|
166
|
+
elif hasattr(value, "to_dict"):
|
|
167
|
+
result[attr] = value.to_dict()
|
|
168
|
+
elif isinstance(value, dict):
|
|
169
|
+
result[attr] = dict(map(
|
|
170
|
+
lambda item: (item[0], item[1].to_dict())
|
|
171
|
+
if hasattr(item[1], "to_dict") else item,
|
|
172
|
+
value.items()
|
|
173
|
+
))
|
|
174
|
+
else:
|
|
175
|
+
result[attr] = value
|
|
176
|
+
if issubclass(IssueType, dict):
|
|
177
|
+
for key, value in self.items():
|
|
178
|
+
result[key] = value
|
|
179
|
+
|
|
180
|
+
return result
|
|
181
|
+
|
|
182
|
+
def to_str(self):
|
|
183
|
+
"""Returns the string representation of the model"""
|
|
184
|
+
return pprint.pformat(self.to_dict())
|
|
185
|
+
|
|
186
|
+
def __repr__(self):
|
|
187
|
+
"""For `print` and `pprint`"""
|
|
188
|
+
return self.to_str()
|
|
189
|
+
|
|
190
|
+
def __eq__(self, other):
|
|
191
|
+
"""Returns true if both objects are equal"""
|
|
192
|
+
if not isinstance(other, IssueType):
|
|
193
|
+
return False
|
|
194
|
+
|
|
195
|
+
return self.__dict__ == other.__dict__
|
|
196
|
+
|
|
197
|
+
def __ne__(self, other):
|
|
198
|
+
"""Returns true if both objects are not equal"""
|
|
199
|
+
return not self == other
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Trackside Software TeamDB API v2.0
|
|
5
|
+
|
|
6
|
+
This API enables you to access TeamDB data # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 2.0
|
|
9
|
+
Contact: support@trackside.fr
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class IssueWorkflow(object):
|
|
20
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
21
|
+
|
|
22
|
+
Do not edit the class manually.
|
|
23
|
+
"""
|
|
24
|
+
"""
|
|
25
|
+
Attributes:
|
|
26
|
+
swagger_types (dict): The key is attribute name
|
|
27
|
+
and the value is attribute type.
|
|
28
|
+
attribute_map (dict): The key is attribute name
|
|
29
|
+
and the value is json key in definition.
|
|
30
|
+
"""
|
|
31
|
+
swagger_types = {
|
|
32
|
+
'id': 'str',
|
|
33
|
+
'name': 'str',
|
|
34
|
+
'description': 'str',
|
|
35
|
+
'default_report_id': 'str'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
attribute_map = {
|
|
39
|
+
'id': 'Id',
|
|
40
|
+
'name': 'Name',
|
|
41
|
+
'description': 'Description',
|
|
42
|
+
'default_report_id': 'DefaultReportId'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, id=None, name=None, description=None, default_report_id=None): # noqa: E501
|
|
46
|
+
"""IssueWorkflow - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
self._id = None
|
|
48
|
+
self._name = None
|
|
49
|
+
self._description = None
|
|
50
|
+
self._default_report_id = None
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
self.id = id
|
|
53
|
+
self.name = name
|
|
54
|
+
if description is not None:
|
|
55
|
+
self.description = description
|
|
56
|
+
if default_report_id is not None:
|
|
57
|
+
self.default_report_id = default_report_id
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def id(self):
|
|
61
|
+
"""Gets the id of this IssueWorkflow. # noqa: E501
|
|
62
|
+
|
|
63
|
+
Unique identifier of the workflow Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new workflow # noqa: E501
|
|
64
|
+
|
|
65
|
+
:return: The id of this IssueWorkflow. # noqa: E501
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._id
|
|
69
|
+
|
|
70
|
+
@id.setter
|
|
71
|
+
def id(self, id):
|
|
72
|
+
"""Sets the id of this IssueWorkflow.
|
|
73
|
+
|
|
74
|
+
Unique identifier of the workflow Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new workflow # noqa: E501
|
|
75
|
+
|
|
76
|
+
:param id: The id of this IssueWorkflow. # noqa: E501
|
|
77
|
+
:type: str
|
|
78
|
+
"""
|
|
79
|
+
if id is None:
|
|
80
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
|
81
|
+
|
|
82
|
+
self._id = id
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def name(self):
|
|
86
|
+
"""Gets the name of this IssueWorkflow. # noqa: E501
|
|
87
|
+
|
|
88
|
+
Name of the workflow # noqa: E501
|
|
89
|
+
|
|
90
|
+
:return: The name of this IssueWorkflow. # noqa: E501
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
93
|
+
return self._name
|
|
94
|
+
|
|
95
|
+
@name.setter
|
|
96
|
+
def name(self, name):
|
|
97
|
+
"""Sets the name of this IssueWorkflow.
|
|
98
|
+
|
|
99
|
+
Name of the workflow # noqa: E501
|
|
100
|
+
|
|
101
|
+
:param name: The name of this IssueWorkflow. # noqa: E501
|
|
102
|
+
:type: str
|
|
103
|
+
"""
|
|
104
|
+
if name is None:
|
|
105
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
106
|
+
|
|
107
|
+
self._name = name
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def description(self):
|
|
111
|
+
"""Gets the description of this IssueWorkflow. # noqa: E501
|
|
112
|
+
|
|
113
|
+
Description of the workflow # noqa: E501
|
|
114
|
+
|
|
115
|
+
:return: The description of this IssueWorkflow. # noqa: E501
|
|
116
|
+
:rtype: str
|
|
117
|
+
"""
|
|
118
|
+
return self._description
|
|
119
|
+
|
|
120
|
+
@description.setter
|
|
121
|
+
def description(self, description):
|
|
122
|
+
"""Sets the description of this IssueWorkflow.
|
|
123
|
+
|
|
124
|
+
Description of the workflow # noqa: E501
|
|
125
|
+
|
|
126
|
+
:param description: The description of this IssueWorkflow. # noqa: E501
|
|
127
|
+
:type: str
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
self._description = description
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def default_report_id(self):
|
|
134
|
+
"""Gets the default_report_id of this IssueWorkflow. # noqa: E501
|
|
135
|
+
|
|
136
|
+
Unique identifier of the report associated to the workflow # noqa: E501
|
|
137
|
+
|
|
138
|
+
:return: The default_report_id of this IssueWorkflow. # noqa: E501
|
|
139
|
+
:rtype: str
|
|
140
|
+
"""
|
|
141
|
+
return self._default_report_id
|
|
142
|
+
|
|
143
|
+
@default_report_id.setter
|
|
144
|
+
def default_report_id(self, default_report_id):
|
|
145
|
+
"""Sets the default_report_id of this IssueWorkflow.
|
|
146
|
+
|
|
147
|
+
Unique identifier of the report associated to the workflow # noqa: E501
|
|
148
|
+
|
|
149
|
+
:param default_report_id: The default_report_id of this IssueWorkflow. # noqa: E501
|
|
150
|
+
:type: str
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
self._default_report_id = default_report_id
|
|
154
|
+
|
|
155
|
+
def to_dict(self):
|
|
156
|
+
"""Returns the model properties as a dict"""
|
|
157
|
+
result = {}
|
|
158
|
+
|
|
159
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
160
|
+
value = getattr(self, attr)
|
|
161
|
+
if isinstance(value, list):
|
|
162
|
+
result[attr] = list(map(
|
|
163
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
164
|
+
value
|
|
165
|
+
))
|
|
166
|
+
elif hasattr(value, "to_dict"):
|
|
167
|
+
result[attr] = value.to_dict()
|
|
168
|
+
elif isinstance(value, dict):
|
|
169
|
+
result[attr] = dict(map(
|
|
170
|
+
lambda item: (item[0], item[1].to_dict())
|
|
171
|
+
if hasattr(item[1], "to_dict") else item,
|
|
172
|
+
value.items()
|
|
173
|
+
))
|
|
174
|
+
else:
|
|
175
|
+
result[attr] = value
|
|
176
|
+
if issubclass(IssueWorkflow, dict):
|
|
177
|
+
for key, value in self.items():
|
|
178
|
+
result[key] = value
|
|
179
|
+
|
|
180
|
+
return result
|
|
181
|
+
|
|
182
|
+
def to_str(self):
|
|
183
|
+
"""Returns the string representation of the model"""
|
|
184
|
+
return pprint.pformat(self.to_dict())
|
|
185
|
+
|
|
186
|
+
def __repr__(self):
|
|
187
|
+
"""For `print` and `pprint`"""
|
|
188
|
+
return self.to_str()
|
|
189
|
+
|
|
190
|
+
def __eq__(self, other):
|
|
191
|
+
"""Returns true if both objects are equal"""
|
|
192
|
+
if not isinstance(other, IssueWorkflow):
|
|
193
|
+
return False
|
|
194
|
+
|
|
195
|
+
return self.__dict__ == other.__dict__
|
|
196
|
+
|
|
197
|
+
def __ne__(self, other):
|
|
198
|
+
"""Returns true if both objects are not equal"""
|
|
199
|
+
return not self == other
|
|
@@ -111,7 +111,7 @@ class LapReportOptions(object):
|
|
|
111
111
|
def lap_report_file_path(self):
|
|
112
112
|
"""Gets the lap_report_file_path of this LapReportOptions. # noqa: E501
|
|
113
113
|
|
|
114
|
-
The file path to the lap report.
|
|
114
|
+
The file path to the lap report. You have to provide the file extension for example : C:/path/MyFile.csv. The path must be described only by / or \\\\\\\\. # noqa: E501
|
|
115
115
|
|
|
116
116
|
:return: The lap_report_file_path of this LapReportOptions. # noqa: E501
|
|
117
117
|
:rtype: str
|
|
@@ -122,7 +122,7 @@ class LapReportOptions(object):
|
|
|
122
122
|
def lap_report_file_path(self, lap_report_file_path):
|
|
123
123
|
"""Sets the lap_report_file_path of this LapReportOptions.
|
|
124
124
|
|
|
125
|
-
The file path to the lap report.
|
|
125
|
+
The file path to the lap report. You have to provide the file extension for example : C:/path/MyFile.csv. The path must be described only by / or \\\\\\\\. # noqa: E501
|
|
126
126
|
|
|
127
127
|
:param lap_report_file_path: The lap_report_file_path of this LapReportOptions. # noqa: E501
|
|
128
128
|
:type: str
|
|
@@ -50,7 +50,7 @@ class ParameterCrossTable(object):
|
|
|
50
50
|
def from_parameter_path(self):
|
|
51
51
|
"""Gets the from_parameter_path of this ParameterCrossTable. # noqa: E501
|
|
52
52
|
|
|
53
|
-
The full parameter path which belongs to the From version # noqa: E501
|
|
53
|
+
The full parameter path which belongs to the From version The path must be described only by / or \\\\\\\\. # noqa: E501
|
|
54
54
|
|
|
55
55
|
:return: The from_parameter_path of this ParameterCrossTable. # noqa: E501
|
|
56
56
|
:rtype: str
|
|
@@ -61,7 +61,7 @@ class ParameterCrossTable(object):
|
|
|
61
61
|
def from_parameter_path(self, from_parameter_path):
|
|
62
62
|
"""Sets the from_parameter_path of this ParameterCrossTable.
|
|
63
63
|
|
|
64
|
-
The full parameter path which belongs to the From version # noqa: E501
|
|
64
|
+
The full parameter path which belongs to the From version The path must be described only by / or \\\\\\\\. # noqa: E501
|
|
65
65
|
|
|
66
66
|
:param from_parameter_path: The from_parameter_path of this ParameterCrossTable. # noqa: E501
|
|
67
67
|
:type: str
|
|
@@ -75,7 +75,7 @@ class ParameterCrossTable(object):
|
|
|
75
75
|
def to_parameter_path(self):
|
|
76
76
|
"""Gets the to_parameter_path of this ParameterCrossTable. # noqa: E501
|
|
77
77
|
|
|
78
|
-
The full parameter path which belongs to the To version # noqa: E501
|
|
78
|
+
The full parameter path which belongs to the To version The path must be described only by / or \\\\\\\\. # noqa: E501
|
|
79
79
|
|
|
80
80
|
:return: The to_parameter_path of this ParameterCrossTable. # noqa: E501
|
|
81
81
|
:rtype: str
|
|
@@ -86,7 +86,7 @@ class ParameterCrossTable(object):
|
|
|
86
86
|
def to_parameter_path(self, to_parameter_path):
|
|
87
87
|
"""Sets the to_parameter_path of this ParameterCrossTable.
|
|
88
88
|
|
|
89
|
-
The full parameter path which belongs to the To version # noqa: E501
|
|
89
|
+
The full parameter path which belongs to the To version The path must be described only by / or \\\\\\\\. # noqa: E501
|
|
90
90
|
|
|
91
91
|
:param to_parameter_path: The to_parameter_path of this ParameterCrossTable. # noqa: E501
|
|
92
92
|
:type: str
|
teamdbapi/models/part.py
CHANGED
|
@@ -59,7 +59,8 @@ class Part(object):
|
|
|
59
59
|
'criteria_set_id': 'str',
|
|
60
60
|
'inherited_status': 'bool',
|
|
61
61
|
'min_weight': 'float',
|
|
62
|
-
'max_weight': 'float'
|
|
62
|
+
'max_weight': 'float',
|
|
63
|
+
'is_sensor': 'bool'
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
attribute_map = {
|
|
@@ -93,10 +94,11 @@ class Part(object):
|
|
|
93
94
|
'criteria_set_id': 'CriteriaSetId',
|
|
94
95
|
'inherited_status': 'InheritedStatus',
|
|
95
96
|
'min_weight': 'MinWeight',
|
|
96
|
-
'max_weight': 'MaxWeight'
|
|
97
|
+
'max_weight': 'MaxWeight',
|
|
98
|
+
'is_sensor': 'IsSensor'
|
|
97
99
|
}
|
|
98
100
|
|
|
99
|
-
def __init__(self, part_id=None, is_lifed=None, part_name=None, manufacturer_number=None, description=None, tags=None, is_class=None, has_expiration_date=None, max_distance=None, min_distance=None, max_time=None, date_creation_utc=None, creator=None, last_update_date_utc=None, last_update_user=None, part_status=None, part_type=None, manufacturer=None, parent_part_class=None, icon_id=None, department=None, annotation=None, multi_manufacturer=None, classification_code=None, max_distance_factored=None, factor_id=None, max_energy=None, criteria_set_id=None, inherited_status=None, min_weight=None, max_weight=None): # noqa: E501
|
|
101
|
+
def __init__(self, part_id=None, is_lifed=None, part_name=None, manufacturer_number=None, description=None, tags=None, is_class=None, has_expiration_date=None, max_distance=None, min_distance=None, max_time=None, date_creation_utc=None, creator=None, last_update_date_utc=None, last_update_user=None, part_status=None, part_type=None, manufacturer=None, parent_part_class=None, icon_id=None, department=None, annotation=None, multi_manufacturer=None, classification_code=None, max_distance_factored=None, factor_id=None, max_energy=None, criteria_set_id=None, inherited_status=None, min_weight=None, max_weight=None, is_sensor=None): # noqa: E501
|
|
100
102
|
"""Part - a model defined in Swagger""" # noqa: E501
|
|
101
103
|
self._part_id = None
|
|
102
104
|
self._is_lifed = None
|
|
@@ -129,6 +131,7 @@ class Part(object):
|
|
|
129
131
|
self._inherited_status = None
|
|
130
132
|
self._min_weight = None
|
|
131
133
|
self._max_weight = None
|
|
134
|
+
self._is_sensor = None
|
|
132
135
|
self.discriminator = None
|
|
133
136
|
self.part_id = part_id
|
|
134
137
|
if is_lifed is not None:
|
|
@@ -188,6 +191,8 @@ class Part(object):
|
|
|
188
191
|
self.min_weight = min_weight
|
|
189
192
|
if max_weight is not None:
|
|
190
193
|
self.max_weight = max_weight
|
|
194
|
+
if is_sensor is not None:
|
|
195
|
+
self.is_sensor = is_sensor
|
|
191
196
|
|
|
192
197
|
@property
|
|
193
198
|
def part_id(self):
|
|
@@ -916,6 +921,29 @@ class Part(object):
|
|
|
916
921
|
|
|
917
922
|
self._max_weight = max_weight
|
|
918
923
|
|
|
924
|
+
@property
|
|
925
|
+
def is_sensor(self):
|
|
926
|
+
"""Gets the is_sensor of this Part. # noqa: E501
|
|
927
|
+
|
|
928
|
+
Indicates whether the part is a sensor # noqa: E501
|
|
929
|
+
|
|
930
|
+
:return: The is_sensor of this Part. # noqa: E501
|
|
931
|
+
:rtype: bool
|
|
932
|
+
"""
|
|
933
|
+
return self._is_sensor
|
|
934
|
+
|
|
935
|
+
@is_sensor.setter
|
|
936
|
+
def is_sensor(self, is_sensor):
|
|
937
|
+
"""Sets the is_sensor of this Part.
|
|
938
|
+
|
|
939
|
+
Indicates whether the part is a sensor # noqa: E501
|
|
940
|
+
|
|
941
|
+
:param is_sensor: The is_sensor of this Part. # noqa: E501
|
|
942
|
+
:type: bool
|
|
943
|
+
"""
|
|
944
|
+
|
|
945
|
+
self._is_sensor = is_sensor
|
|
946
|
+
|
|
919
947
|
def to_dict(self):
|
|
920
948
|
"""Returns the model properties as a dict"""
|
|
921
949
|
result = {}
|