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
|
@@ -0,0 +1,396 @@
|
|
|
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 AddPartCarParameterArg(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
|
+
'part_id': 'str',
|
|
33
|
+
'parameter_id': 'str',
|
|
34
|
+
'target_id': 'str',
|
|
35
|
+
'parameter_binding': 'str',
|
|
36
|
+
'redirect_part_id': 'str',
|
|
37
|
+
'redirect_parameter_id': 'str',
|
|
38
|
+
'redirect_target_id': 'str',
|
|
39
|
+
'redirect_coeff_a': 'float',
|
|
40
|
+
'redirect_coeff_b': 'float',
|
|
41
|
+
'redirect_coeff_c': 'float',
|
|
42
|
+
'redirect_coeff_d': 'float'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
attribute_map = {
|
|
46
|
+
'part_id': 'PartId',
|
|
47
|
+
'parameter_id': 'ParameterId',
|
|
48
|
+
'target_id': 'TargetId',
|
|
49
|
+
'parameter_binding': 'ParameterBinding',
|
|
50
|
+
'redirect_part_id': 'RedirectPartId',
|
|
51
|
+
'redirect_parameter_id': 'RedirectParameterId',
|
|
52
|
+
'redirect_target_id': 'RedirectTargetId',
|
|
53
|
+
'redirect_coeff_a': 'RedirectCoeffA',
|
|
54
|
+
'redirect_coeff_b': 'RedirectCoeffB',
|
|
55
|
+
'redirect_coeff_c': 'RedirectCoeffC',
|
|
56
|
+
'redirect_coeff_d': 'RedirectCoeffD'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, part_id=None, parameter_id=None, target_id=None, parameter_binding=None, redirect_part_id=None, redirect_parameter_id=None, redirect_target_id=None, redirect_coeff_a=None, redirect_coeff_b=None, redirect_coeff_c=None, redirect_coeff_d=None): # noqa: E501
|
|
60
|
+
"""AddPartCarParameterArg - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._part_id = None
|
|
62
|
+
self._parameter_id = None
|
|
63
|
+
self._target_id = None
|
|
64
|
+
self._parameter_binding = None
|
|
65
|
+
self._redirect_part_id = None
|
|
66
|
+
self._redirect_parameter_id = None
|
|
67
|
+
self._redirect_target_id = None
|
|
68
|
+
self._redirect_coeff_a = None
|
|
69
|
+
self._redirect_coeff_b = None
|
|
70
|
+
self._redirect_coeff_c = None
|
|
71
|
+
self._redirect_coeff_d = None
|
|
72
|
+
self.discriminator = None
|
|
73
|
+
self.part_id = part_id
|
|
74
|
+
self.parameter_id = parameter_id
|
|
75
|
+
self.target_id = target_id
|
|
76
|
+
if parameter_binding is not None:
|
|
77
|
+
self.parameter_binding = parameter_binding
|
|
78
|
+
if redirect_part_id is not None:
|
|
79
|
+
self.redirect_part_id = redirect_part_id
|
|
80
|
+
if redirect_parameter_id is not None:
|
|
81
|
+
self.redirect_parameter_id = redirect_parameter_id
|
|
82
|
+
if redirect_target_id is not None:
|
|
83
|
+
self.redirect_target_id = redirect_target_id
|
|
84
|
+
if redirect_coeff_a is not None:
|
|
85
|
+
self.redirect_coeff_a = redirect_coeff_a
|
|
86
|
+
if redirect_coeff_b is not None:
|
|
87
|
+
self.redirect_coeff_b = redirect_coeff_b
|
|
88
|
+
if redirect_coeff_c is not None:
|
|
89
|
+
self.redirect_coeff_c = redirect_coeff_c
|
|
90
|
+
if redirect_coeff_d is not None:
|
|
91
|
+
self.redirect_coeff_d = redirect_coeff_d
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def part_id(self):
|
|
95
|
+
"""Gets the part_id of this AddPartCarParameterArg. # noqa: E501
|
|
96
|
+
|
|
97
|
+
The part unique identifier # noqa: E501
|
|
98
|
+
|
|
99
|
+
:return: The part_id of this AddPartCarParameterArg. # noqa: E501
|
|
100
|
+
:rtype: str
|
|
101
|
+
"""
|
|
102
|
+
return self._part_id
|
|
103
|
+
|
|
104
|
+
@part_id.setter
|
|
105
|
+
def part_id(self, part_id):
|
|
106
|
+
"""Sets the part_id of this AddPartCarParameterArg.
|
|
107
|
+
|
|
108
|
+
The part unique identifier # noqa: E501
|
|
109
|
+
|
|
110
|
+
:param part_id: The part_id of this AddPartCarParameterArg. # noqa: E501
|
|
111
|
+
:type: str
|
|
112
|
+
"""
|
|
113
|
+
if part_id is None:
|
|
114
|
+
raise ValueError("Invalid value for `part_id`, must not be `None`") # noqa: E501
|
|
115
|
+
|
|
116
|
+
self._part_id = part_id
|
|
117
|
+
|
|
118
|
+
@property
|
|
119
|
+
def parameter_id(self):
|
|
120
|
+
"""Gets the parameter_id of this AddPartCarParameterArg. # noqa: E501
|
|
121
|
+
|
|
122
|
+
The car parameters unique identifier # noqa: E501
|
|
123
|
+
|
|
124
|
+
:return: The parameter_id of this AddPartCarParameterArg. # noqa: E501
|
|
125
|
+
:rtype: str
|
|
126
|
+
"""
|
|
127
|
+
return self._parameter_id
|
|
128
|
+
|
|
129
|
+
@parameter_id.setter
|
|
130
|
+
def parameter_id(self, parameter_id):
|
|
131
|
+
"""Sets the parameter_id of this AddPartCarParameterArg.
|
|
132
|
+
|
|
133
|
+
The car parameters unique identifier # noqa: E501
|
|
134
|
+
|
|
135
|
+
:param parameter_id: The parameter_id of this AddPartCarParameterArg. # noqa: E501
|
|
136
|
+
:type: str
|
|
137
|
+
"""
|
|
138
|
+
if parameter_id is None:
|
|
139
|
+
raise ValueError("Invalid value for `parameter_id`, must not be `None`") # noqa: E501
|
|
140
|
+
|
|
141
|
+
self._parameter_id = parameter_id
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
def target_id(self):
|
|
145
|
+
"""Gets the target_id of this AddPartCarParameterArg. # noqa: E501
|
|
146
|
+
|
|
147
|
+
The car parameters target unique identifier # noqa: E501
|
|
148
|
+
|
|
149
|
+
:return: The target_id of this AddPartCarParameterArg. # noqa: E501
|
|
150
|
+
:rtype: str
|
|
151
|
+
"""
|
|
152
|
+
return self._target_id
|
|
153
|
+
|
|
154
|
+
@target_id.setter
|
|
155
|
+
def target_id(self, target_id):
|
|
156
|
+
"""Sets the target_id of this AddPartCarParameterArg.
|
|
157
|
+
|
|
158
|
+
The car parameters target unique identifier # noqa: E501
|
|
159
|
+
|
|
160
|
+
:param target_id: The target_id of this AddPartCarParameterArg. # noqa: E501
|
|
161
|
+
:type: str
|
|
162
|
+
"""
|
|
163
|
+
if target_id is None:
|
|
164
|
+
raise ValueError("Invalid value for `target_id`, must not be `None`") # noqa: E501
|
|
165
|
+
|
|
166
|
+
self._target_id = target_id
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
def parameter_binding(self):
|
|
170
|
+
"""Gets the parameter_binding of this AddPartCarParameterArg. # noqa: E501
|
|
171
|
+
|
|
172
|
+
The parameter binfing used to identify the component to import from a mounting to a car parameter assembly # noqa: E501
|
|
173
|
+
|
|
174
|
+
:return: The parameter_binding of this AddPartCarParameterArg. # noqa: E501
|
|
175
|
+
:rtype: str
|
|
176
|
+
"""
|
|
177
|
+
return self._parameter_binding
|
|
178
|
+
|
|
179
|
+
@parameter_binding.setter
|
|
180
|
+
def parameter_binding(self, parameter_binding):
|
|
181
|
+
"""Sets the parameter_binding of this AddPartCarParameterArg.
|
|
182
|
+
|
|
183
|
+
The parameter binfing used to identify the component to import from a mounting to a car parameter assembly # noqa: E501
|
|
184
|
+
|
|
185
|
+
:param parameter_binding: The parameter_binding of this AddPartCarParameterArg. # noqa: E501
|
|
186
|
+
:type: str
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
self._parameter_binding = parameter_binding
|
|
190
|
+
|
|
191
|
+
@property
|
|
192
|
+
def redirect_part_id(self):
|
|
193
|
+
"""Gets the redirect_part_id of this AddPartCarParameterArg. # noqa: E501
|
|
194
|
+
|
|
195
|
+
The redirect part name. Optional field. Only valid with a group part. # noqa: E501
|
|
196
|
+
|
|
197
|
+
:return: The redirect_part_id of this AddPartCarParameterArg. # noqa: E501
|
|
198
|
+
:rtype: str
|
|
199
|
+
"""
|
|
200
|
+
return self._redirect_part_id
|
|
201
|
+
|
|
202
|
+
@redirect_part_id.setter
|
|
203
|
+
def redirect_part_id(self, redirect_part_id):
|
|
204
|
+
"""Sets the redirect_part_id of this AddPartCarParameterArg.
|
|
205
|
+
|
|
206
|
+
The redirect part name. Optional field. Only valid with a group part. # noqa: E501
|
|
207
|
+
|
|
208
|
+
:param redirect_part_id: The redirect_part_id of this AddPartCarParameterArg. # noqa: E501
|
|
209
|
+
:type: str
|
|
210
|
+
"""
|
|
211
|
+
|
|
212
|
+
self._redirect_part_id = redirect_part_id
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
def redirect_parameter_id(self):
|
|
216
|
+
"""Gets the redirect_parameter_id of this AddPartCarParameterArg. # noqa: E501
|
|
217
|
+
|
|
218
|
+
The redirected car parameters unique id Optional field. Only valid with a group part. # noqa: E501
|
|
219
|
+
|
|
220
|
+
:return: The redirect_parameter_id of this AddPartCarParameterArg. # noqa: E501
|
|
221
|
+
:rtype: str
|
|
222
|
+
"""
|
|
223
|
+
return self._redirect_parameter_id
|
|
224
|
+
|
|
225
|
+
@redirect_parameter_id.setter
|
|
226
|
+
def redirect_parameter_id(self, redirect_parameter_id):
|
|
227
|
+
"""Sets the redirect_parameter_id of this AddPartCarParameterArg.
|
|
228
|
+
|
|
229
|
+
The redirected car parameters unique id Optional field. Only valid with a group part. # noqa: E501
|
|
230
|
+
|
|
231
|
+
:param redirect_parameter_id: The redirect_parameter_id of this AddPartCarParameterArg. # noqa: E501
|
|
232
|
+
:type: str
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
self._redirect_parameter_id = redirect_parameter_id
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
def redirect_target_id(self):
|
|
239
|
+
"""Gets the redirect_target_id of this AddPartCarParameterArg. # noqa: E501
|
|
240
|
+
|
|
241
|
+
The redirected car parameters target unique id Optional field. Only valid with a group part. # noqa: E501
|
|
242
|
+
|
|
243
|
+
:return: The redirect_target_id of this AddPartCarParameterArg. # noqa: E501
|
|
244
|
+
:rtype: str
|
|
245
|
+
"""
|
|
246
|
+
return self._redirect_target_id
|
|
247
|
+
|
|
248
|
+
@redirect_target_id.setter
|
|
249
|
+
def redirect_target_id(self, redirect_target_id):
|
|
250
|
+
"""Sets the redirect_target_id of this AddPartCarParameterArg.
|
|
251
|
+
|
|
252
|
+
The redirected car parameters target unique id Optional field. Only valid with a group part. # noqa: E501
|
|
253
|
+
|
|
254
|
+
:param redirect_target_id: The redirect_target_id of this AddPartCarParameterArg. # noqa: E501
|
|
255
|
+
:type: str
|
|
256
|
+
"""
|
|
257
|
+
|
|
258
|
+
self._redirect_target_id = redirect_target_id
|
|
259
|
+
|
|
260
|
+
@property
|
|
261
|
+
def redirect_coeff_a(self):
|
|
262
|
+
"""Gets the redirect_coeff_a of this AddPartCarParameterArg. # noqa: E501
|
|
263
|
+
|
|
264
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
265
|
+
|
|
266
|
+
:return: The redirect_coeff_a of this AddPartCarParameterArg. # noqa: E501
|
|
267
|
+
:rtype: float
|
|
268
|
+
"""
|
|
269
|
+
return self._redirect_coeff_a
|
|
270
|
+
|
|
271
|
+
@redirect_coeff_a.setter
|
|
272
|
+
def redirect_coeff_a(self, redirect_coeff_a):
|
|
273
|
+
"""Sets the redirect_coeff_a of this AddPartCarParameterArg.
|
|
274
|
+
|
|
275
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
276
|
+
|
|
277
|
+
:param redirect_coeff_a: The redirect_coeff_a of this AddPartCarParameterArg. # noqa: E501
|
|
278
|
+
:type: float
|
|
279
|
+
"""
|
|
280
|
+
|
|
281
|
+
self._redirect_coeff_a = redirect_coeff_a
|
|
282
|
+
|
|
283
|
+
@property
|
|
284
|
+
def redirect_coeff_b(self):
|
|
285
|
+
"""Gets the redirect_coeff_b of this AddPartCarParameterArg. # noqa: E501
|
|
286
|
+
|
|
287
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
288
|
+
|
|
289
|
+
:return: The redirect_coeff_b of this AddPartCarParameterArg. # noqa: E501
|
|
290
|
+
:rtype: float
|
|
291
|
+
"""
|
|
292
|
+
return self._redirect_coeff_b
|
|
293
|
+
|
|
294
|
+
@redirect_coeff_b.setter
|
|
295
|
+
def redirect_coeff_b(self, redirect_coeff_b):
|
|
296
|
+
"""Sets the redirect_coeff_b of this AddPartCarParameterArg.
|
|
297
|
+
|
|
298
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
299
|
+
|
|
300
|
+
:param redirect_coeff_b: The redirect_coeff_b of this AddPartCarParameterArg. # noqa: E501
|
|
301
|
+
:type: float
|
|
302
|
+
"""
|
|
303
|
+
|
|
304
|
+
self._redirect_coeff_b = redirect_coeff_b
|
|
305
|
+
|
|
306
|
+
@property
|
|
307
|
+
def redirect_coeff_c(self):
|
|
308
|
+
"""Gets the redirect_coeff_c of this AddPartCarParameterArg. # noqa: E501
|
|
309
|
+
|
|
310
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
311
|
+
|
|
312
|
+
:return: The redirect_coeff_c of this AddPartCarParameterArg. # noqa: E501
|
|
313
|
+
:rtype: float
|
|
314
|
+
"""
|
|
315
|
+
return self._redirect_coeff_c
|
|
316
|
+
|
|
317
|
+
@redirect_coeff_c.setter
|
|
318
|
+
def redirect_coeff_c(self, redirect_coeff_c):
|
|
319
|
+
"""Sets the redirect_coeff_c of this AddPartCarParameterArg.
|
|
320
|
+
|
|
321
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
322
|
+
|
|
323
|
+
:param redirect_coeff_c: The redirect_coeff_c of this AddPartCarParameterArg. # noqa: E501
|
|
324
|
+
:type: float
|
|
325
|
+
"""
|
|
326
|
+
|
|
327
|
+
self._redirect_coeff_c = redirect_coeff_c
|
|
328
|
+
|
|
329
|
+
@property
|
|
330
|
+
def redirect_coeff_d(self):
|
|
331
|
+
"""Gets the redirect_coeff_d of this AddPartCarParameterArg. # noqa: E501
|
|
332
|
+
|
|
333
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
334
|
+
|
|
335
|
+
:return: The redirect_coeff_d of this AddPartCarParameterArg. # noqa: E501
|
|
336
|
+
:rtype: float
|
|
337
|
+
"""
|
|
338
|
+
return self._redirect_coeff_d
|
|
339
|
+
|
|
340
|
+
@redirect_coeff_d.setter
|
|
341
|
+
def redirect_coeff_d(self, redirect_coeff_d):
|
|
342
|
+
"""Sets the redirect_coeff_d of this AddPartCarParameterArg.
|
|
343
|
+
|
|
344
|
+
Coeff A applied to convert a car parameters revision when a redirection is specified. Optional field. Only valid with a group part. # noqa: E501
|
|
345
|
+
|
|
346
|
+
:param redirect_coeff_d: The redirect_coeff_d of this AddPartCarParameterArg. # noqa: E501
|
|
347
|
+
:type: float
|
|
348
|
+
"""
|
|
349
|
+
|
|
350
|
+
self._redirect_coeff_d = redirect_coeff_d
|
|
351
|
+
|
|
352
|
+
def to_dict(self):
|
|
353
|
+
"""Returns the model properties as a dict"""
|
|
354
|
+
result = {}
|
|
355
|
+
|
|
356
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
357
|
+
value = getattr(self, attr)
|
|
358
|
+
if isinstance(value, list):
|
|
359
|
+
result[attr] = list(map(
|
|
360
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
361
|
+
value
|
|
362
|
+
))
|
|
363
|
+
elif hasattr(value, "to_dict"):
|
|
364
|
+
result[attr] = value.to_dict()
|
|
365
|
+
elif isinstance(value, dict):
|
|
366
|
+
result[attr] = dict(map(
|
|
367
|
+
lambda item: (item[0], item[1].to_dict())
|
|
368
|
+
if hasattr(item[1], "to_dict") else item,
|
|
369
|
+
value.items()
|
|
370
|
+
))
|
|
371
|
+
else:
|
|
372
|
+
result[attr] = value
|
|
373
|
+
if issubclass(AddPartCarParameterArg, dict):
|
|
374
|
+
for key, value in self.items():
|
|
375
|
+
result[key] = value
|
|
376
|
+
|
|
377
|
+
return result
|
|
378
|
+
|
|
379
|
+
def to_str(self):
|
|
380
|
+
"""Returns the string representation of the model"""
|
|
381
|
+
return pprint.pformat(self.to_dict())
|
|
382
|
+
|
|
383
|
+
def __repr__(self):
|
|
384
|
+
"""For `print` and `pprint`"""
|
|
385
|
+
return self.to_str()
|
|
386
|
+
|
|
387
|
+
def __eq__(self, other):
|
|
388
|
+
"""Returns true if both objects are equal"""
|
|
389
|
+
if not isinstance(other, AddPartCarParameterArg):
|
|
390
|
+
return False
|
|
391
|
+
|
|
392
|
+
return self.__dict__ == other.__dict__
|
|
393
|
+
|
|
394
|
+
def __ne__(self, other):
|
|
395
|
+
"""Returns true if both objects are not equal"""
|
|
396
|
+
return not self == other
|
teamdbapi/models/component.py
CHANGED
|
@@ -68,7 +68,10 @@ class Component(object):
|
|
|
68
68
|
'distance_factored_total': 'float',
|
|
69
69
|
'has_check_rule_alert': 'bool',
|
|
70
70
|
'energy_run': 'float',
|
|
71
|
-
'energy_total': 'float'
|
|
71
|
+
'energy_total': 'float',
|
|
72
|
+
'intended_purpose': 'str',
|
|
73
|
+
'is_special_equipment': 'bool',
|
|
74
|
+
'sub_component_parameter_binding': 'str'
|
|
72
75
|
}
|
|
73
76
|
|
|
74
77
|
attribute_map = {
|
|
@@ -111,10 +114,13 @@ class Component(object):
|
|
|
111
114
|
'distance_factored_total': 'DistanceFactoredTotal',
|
|
112
115
|
'has_check_rule_alert': 'HasCheckRuleAlert',
|
|
113
116
|
'energy_run': 'EnergyRun',
|
|
114
|
-
'energy_total': 'EnergyTotal'
|
|
117
|
+
'energy_total': 'EnergyTotal',
|
|
118
|
+
'intended_purpose': 'IntendedPurpose',
|
|
119
|
+
'is_special_equipment': 'IsSpecialEquipment',
|
|
120
|
+
'sub_component_parameter_binding': 'SubComponentParameterBinding'
|
|
115
121
|
}
|
|
116
122
|
|
|
117
|
-
def __init__(self, revision_id=None, component_id=None, part_id=None, type_component=None, name=None, batch_number=None, expiration_date_utc=None, initial_distance=None, initial_time=None, accident_damaged=None, status=None, issues_human_id=None, distance_run=None, time_run=None, creation_date_utc=None, creator=None, department=None, last_update_date_utc=None, last_update_user=None, production_date_utc=None, weight=None, revision_date_utc=None, revision_name=None, tags=None, annotation=None, manufacturer=None, manufacturer_number=None, user_update_date_utc=None, user_update_name=None, distance_run_factored=None, distance_run_pwr=None, time_run_pwr=None, distance_total=None, time_total=None, distance_pwr_total=None, time_pwr_total=None, distance_factored_total=None, has_check_rule_alert=None, energy_run=None, energy_total=None): # noqa: E501
|
|
123
|
+
def __init__(self, revision_id=None, component_id=None, part_id=None, type_component=None, name=None, batch_number=None, expiration_date_utc=None, initial_distance=None, initial_time=None, accident_damaged=None, status=None, issues_human_id=None, distance_run=None, time_run=None, creation_date_utc=None, creator=None, department=None, last_update_date_utc=None, last_update_user=None, production_date_utc=None, weight=None, revision_date_utc=None, revision_name=None, tags=None, annotation=None, manufacturer=None, manufacturer_number=None, user_update_date_utc=None, user_update_name=None, distance_run_factored=None, distance_run_pwr=None, time_run_pwr=None, distance_total=None, time_total=None, distance_pwr_total=None, time_pwr_total=None, distance_factored_total=None, has_check_rule_alert=None, energy_run=None, energy_total=None, intended_purpose=None, is_special_equipment=None, sub_component_parameter_binding=None): # noqa: E501
|
|
118
124
|
"""Component - a model defined in Swagger""" # noqa: E501
|
|
119
125
|
self._revision_id = None
|
|
120
126
|
self._component_id = None
|
|
@@ -156,6 +162,9 @@ class Component(object):
|
|
|
156
162
|
self._has_check_rule_alert = None
|
|
157
163
|
self._energy_run = None
|
|
158
164
|
self._energy_total = None
|
|
165
|
+
self._intended_purpose = None
|
|
166
|
+
self._is_special_equipment = None
|
|
167
|
+
self._sub_component_parameter_binding = None
|
|
159
168
|
self.discriminator = None
|
|
160
169
|
self.revision_id = revision_id
|
|
161
170
|
self.component_id = component_id
|
|
@@ -231,6 +240,12 @@ class Component(object):
|
|
|
231
240
|
self.energy_run = energy_run
|
|
232
241
|
if energy_total is not None:
|
|
233
242
|
self.energy_total = energy_total
|
|
243
|
+
if intended_purpose is not None:
|
|
244
|
+
self.intended_purpose = intended_purpose
|
|
245
|
+
if is_special_equipment is not None:
|
|
246
|
+
self.is_special_equipment = is_special_equipment
|
|
247
|
+
if sub_component_parameter_binding is not None:
|
|
248
|
+
self.sub_component_parameter_binding = sub_component_parameter_binding
|
|
234
249
|
|
|
235
250
|
@property
|
|
236
251
|
def revision_id(self):
|
|
@@ -1170,6 +1185,75 @@ class Component(object):
|
|
|
1170
1185
|
|
|
1171
1186
|
self._energy_total = energy_total
|
|
1172
1187
|
|
|
1188
|
+
@property
|
|
1189
|
+
def intended_purpose(self):
|
|
1190
|
+
"""Gets the intended_purpose of this Component. # noqa: E501
|
|
1191
|
+
|
|
1192
|
+
Sensor database Intended Purpose # noqa: E501
|
|
1193
|
+
|
|
1194
|
+
:return: The intended_purpose of this Component. # noqa: E501
|
|
1195
|
+
:rtype: str
|
|
1196
|
+
"""
|
|
1197
|
+
return self._intended_purpose
|
|
1198
|
+
|
|
1199
|
+
@intended_purpose.setter
|
|
1200
|
+
def intended_purpose(self, intended_purpose):
|
|
1201
|
+
"""Sets the intended_purpose of this Component.
|
|
1202
|
+
|
|
1203
|
+
Sensor database Intended Purpose # noqa: E501
|
|
1204
|
+
|
|
1205
|
+
:param intended_purpose: The intended_purpose of this Component. # noqa: E501
|
|
1206
|
+
:type: str
|
|
1207
|
+
"""
|
|
1208
|
+
|
|
1209
|
+
self._intended_purpose = intended_purpose
|
|
1210
|
+
|
|
1211
|
+
@property
|
|
1212
|
+
def is_special_equipment(self):
|
|
1213
|
+
"""Gets the is_special_equipment of this Component. # noqa: E501
|
|
1214
|
+
|
|
1215
|
+
Sensor database Is Special Equipment # noqa: E501
|
|
1216
|
+
|
|
1217
|
+
:return: The is_special_equipment of this Component. # noqa: E501
|
|
1218
|
+
:rtype: bool
|
|
1219
|
+
"""
|
|
1220
|
+
return self._is_special_equipment
|
|
1221
|
+
|
|
1222
|
+
@is_special_equipment.setter
|
|
1223
|
+
def is_special_equipment(self, is_special_equipment):
|
|
1224
|
+
"""Sets the is_special_equipment of this Component.
|
|
1225
|
+
|
|
1226
|
+
Sensor database Is Special Equipment # noqa: E501
|
|
1227
|
+
|
|
1228
|
+
:param is_special_equipment: The is_special_equipment of this Component. # noqa: E501
|
|
1229
|
+
:type: bool
|
|
1230
|
+
"""
|
|
1231
|
+
|
|
1232
|
+
self._is_special_equipment = is_special_equipment
|
|
1233
|
+
|
|
1234
|
+
@property
|
|
1235
|
+
def sub_component_parameter_binding(self):
|
|
1236
|
+
"""Gets the sub_component_parameter_binding of this Component. # noqa: E501
|
|
1237
|
+
|
|
1238
|
+
The sensor parameter binding specified on the sub component. This field is only filled when calling the route: component/{componentId}/revision/{revisionId}/content # noqa: E501
|
|
1239
|
+
|
|
1240
|
+
:return: The sub_component_parameter_binding of this Component. # noqa: E501
|
|
1241
|
+
:rtype: str
|
|
1242
|
+
"""
|
|
1243
|
+
return self._sub_component_parameter_binding
|
|
1244
|
+
|
|
1245
|
+
@sub_component_parameter_binding.setter
|
|
1246
|
+
def sub_component_parameter_binding(self, sub_component_parameter_binding):
|
|
1247
|
+
"""Sets the sub_component_parameter_binding of this Component.
|
|
1248
|
+
|
|
1249
|
+
The sensor parameter binding specified on the sub component. This field is only filled when calling the route: component/{componentId}/revision/{revisionId}/content # noqa: E501
|
|
1250
|
+
|
|
1251
|
+
:param sub_component_parameter_binding: The sub_component_parameter_binding of this Component. # noqa: E501
|
|
1252
|
+
:type: str
|
|
1253
|
+
"""
|
|
1254
|
+
|
|
1255
|
+
self._sub_component_parameter_binding = sub_component_parameter_binding
|
|
1256
|
+
|
|
1173
1257
|
def to_dict(self):
|
|
1174
1258
|
"""Returns the model properties as a dict"""
|
|
1175
1259
|
result = {}
|