teamdbapi 2.37.2__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 +26 -0
- teamdbapi/api/__init__.py +6 -0
- teamdbapi/api/assembly_api.py +23 -23
- teamdbapi/api/component_api.py +1071 -0
- teamdbapi/api/criteria_api.py +126 -0
- teamdbapi/api/import_export_api.py +85 -0
- teamdbapi/api/issue_api.py +1537 -0
- teamdbapi/api/lap_report_api.py +5 -1
- teamdbapi/api/mounting_api.py +219 -0
- teamdbapi/api/part_api.py +785 -0
- teamdbapi/api/revision_api.py +109 -4
- teamdbapi/api/update_request_api.py +235 -0
- teamdbapi/api_client.py +4 -8
- teamdbapi/configuration.py +5 -12
- teamdbapi/models/__init__.py +20 -0
- teamdbapi/models/add_part_car_parameter_arg.py +396 -0
- teamdbapi/models/assembly.py +1 -0
- teamdbapi/models/bleed_adjustment.py +1 -0
- teamdbapi/models/calibration.py +1 -0
- teamdbapi/models/car.py +1 -0
- teamdbapi/models/car_parameters_context.py +1 -0
- teamdbapi/models/compare_options.py +1 -0
- teamdbapi/models/compare_result.py +1 -0
- teamdbapi/models/compare_result_detail.py +2 -0
- teamdbapi/models/component.py +1301 -0
- teamdbapi/models/copy_from_tags_args.py +2 -0
- teamdbapi/models/couple_guid_text.py +1 -0
- teamdbapi/models/criteria.py +430 -0
- teamdbapi/models/criteria_value.py +197 -0
- teamdbapi/models/event.py +1 -0
- teamdbapi/models/file_revision_info.py +199 -0
- teamdbapi/models/fixed_field.py +2 -1
- teamdbapi/models/group.py +1 -0
- teamdbapi/models/import_parameters_args.py +1 -0
- teamdbapi/models/import_parameters_results.py +2 -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/item_value.py +1 -0
- teamdbapi/models/item_value_key.py +1 -0
- teamdbapi/models/lap.py +1 -0
- teamdbapi/models/lap_report_options.py +1 -0
- teamdbapi/models/model_field.py +3 -1
- teamdbapi/models/model_field_authorization.py +1 -0
- teamdbapi/models/mounting.py +489 -0
- teamdbapi/models/notes_authorization.py +1 -0
- teamdbapi/models/notes_context.py +1 -0
- teamdbapi/models/parameter.py +2 -0
- teamdbapi/models/parameter_cross_table.py +1 -0
- teamdbapi/models/part.py +991 -0
- teamdbapi/models/part_car_parameters.py +561 -0
- teamdbapi/models/part_count.py +228 -0
- teamdbapi/models/problem_details.py +2 -6
- teamdbapi/models/revision.py +116 -3
- teamdbapi/models/revision_value.py +32 -3
- teamdbapi/models/run.py +1 -0
- teamdbapi/models/script.py +1 -0
- teamdbapi/models/session.py +1 -0
- teamdbapi/models/string_with_font_style.py +1 -0
- teamdbapi/models/target.py +64 -7
- teamdbapi/models/team_db_list.py +1 -0
- teamdbapi/models/team_db_list_item.py +1 -0
- teamdbapi/models/tire.py +2 -0
- teamdbapi/models/tire_set.py +2 -0
- teamdbapi/models/track.py +1 -0
- teamdbapi/models/track_layout.py +1 -0
- teamdbapi/models/user.py +1 -0
- teamdbapi/models/user_group.py +1 -0
- teamdbapi/models/value_field.py +1 -0
- teamdbapi/models/version.py +1 -0
- teamdbapi/rest.py +6 -1
- {teamdbapi-2.37.2.dist-info → teamdbapi-3.2.0.dist-info}/METADATA +3 -3
- teamdbapi-3.2.0.dist-info/RECORD +108 -0
- teamdbapi-2.37.2.dist-info/RECORD +0 -82
- {teamdbapi-2.37.2.dist-info → teamdbapi-3.2.0.dist-info}/LICENSE +0 -0
- {teamdbapi-2.37.2.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/assembly.py
CHANGED
teamdbapi/models/calibration.py
CHANGED
teamdbapi/models/car.py
CHANGED