teamdbapi 2.37.2__py3-none-any.whl → 3.0.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.
Files changed (68) hide show
  1. teamdbapi/__init__.py +11 -0
  2. teamdbapi/api/__init__.py +5 -0
  3. teamdbapi/api/assembly_api.py +23 -23
  4. teamdbapi/api/component_api.py +954 -0
  5. teamdbapi/api/criteria_api.py +126 -0
  6. teamdbapi/api/import_export_api.py +85 -0
  7. teamdbapi/api/lap_report_api.py +5 -1
  8. teamdbapi/api/mounting_api.py +219 -0
  9. teamdbapi/api/part_api.py +304 -0
  10. teamdbapi/api/update_request_api.py +235 -0
  11. teamdbapi/api_client.py +4 -8
  12. teamdbapi/configuration.py +5 -12
  13. teamdbapi/models/__init__.py +6 -0
  14. teamdbapi/models/assembly.py +1 -0
  15. teamdbapi/models/bleed_adjustment.py +1 -0
  16. teamdbapi/models/calibration.py +1 -0
  17. teamdbapi/models/car.py +1 -0
  18. teamdbapi/models/car_parameters_context.py +1 -0
  19. teamdbapi/models/compare_options.py +1 -0
  20. teamdbapi/models/compare_result.py +1 -0
  21. teamdbapi/models/compare_result_detail.py +2 -0
  22. teamdbapi/models/component.py +1217 -0
  23. teamdbapi/models/copy_from_tags_args.py +2 -0
  24. teamdbapi/models/couple_guid_text.py +1 -0
  25. teamdbapi/models/criteria.py +430 -0
  26. teamdbapi/models/criteria_value.py +197 -0
  27. teamdbapi/models/event.py +1 -0
  28. teamdbapi/models/fixed_field.py +2 -1
  29. teamdbapi/models/group.py +1 -0
  30. teamdbapi/models/import_parameters_args.py +1 -0
  31. teamdbapi/models/import_parameters_results.py +2 -0
  32. teamdbapi/models/item_value.py +1 -0
  33. teamdbapi/models/item_value_key.py +1 -0
  34. teamdbapi/models/lap.py +1 -0
  35. teamdbapi/models/lap_report_options.py +1 -0
  36. teamdbapi/models/model_field.py +3 -1
  37. teamdbapi/models/model_field_authorization.py +1 -0
  38. teamdbapi/models/mounting.py +489 -0
  39. teamdbapi/models/notes_authorization.py +1 -0
  40. teamdbapi/models/notes_context.py +1 -0
  41. teamdbapi/models/parameter.py +2 -0
  42. teamdbapi/models/parameter_cross_table.py +1 -0
  43. teamdbapi/models/part.py +963 -0
  44. teamdbapi/models/part_count.py +228 -0
  45. teamdbapi/models/problem_details.py +2 -6
  46. teamdbapi/models/revision.py +88 -3
  47. teamdbapi/models/revision_value.py +1 -0
  48. teamdbapi/models/run.py +1 -0
  49. teamdbapi/models/script.py +1 -0
  50. teamdbapi/models/session.py +1 -0
  51. teamdbapi/models/string_with_font_style.py +1 -0
  52. teamdbapi/models/target.py +64 -7
  53. teamdbapi/models/team_db_list.py +1 -0
  54. teamdbapi/models/team_db_list_item.py +1 -0
  55. teamdbapi/models/tire.py +2 -0
  56. teamdbapi/models/tire_set.py +2 -0
  57. teamdbapi/models/track.py +1 -0
  58. teamdbapi/models/track_layout.py +1 -0
  59. teamdbapi/models/user.py +1 -0
  60. teamdbapi/models/user_group.py +1 -0
  61. teamdbapi/models/value_field.py +1 -0
  62. teamdbapi/models/version.py +1 -0
  63. teamdbapi/rest.py +6 -1
  64. {teamdbapi-2.37.2.dist-info → teamdbapi-3.0.0.dist-info}/METADATA +3 -3
  65. teamdbapi-3.0.0.dist-info/RECORD +93 -0
  66. teamdbapi-2.37.2.dist-info/RECORD +0 -82
  67. {teamdbapi-2.37.2.dist-info → teamdbapi-3.0.0.dist-info}/LICENSE +0 -0
  68. {teamdbapi-2.37.2.dist-info → teamdbapi-3.0.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,963 @@
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 Part(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
+ 'is_lifed': 'bool',
34
+ 'part_name': 'str',
35
+ 'manufacturer_number': 'str',
36
+ 'description': 'str',
37
+ 'tags': 'str',
38
+ 'is_class': 'bool',
39
+ 'has_expiration_date': 'bool',
40
+ 'max_distance': 'float',
41
+ 'min_distance': 'float',
42
+ 'max_time': 'float',
43
+ 'date_creation_utc': 'datetime',
44
+ 'creator': 'str',
45
+ 'last_update_date_utc': 'datetime',
46
+ 'last_update_user': 'str',
47
+ 'part_status': 'str',
48
+ 'part_type': 'str',
49
+ 'manufacturer': 'str',
50
+ 'parent_part_class': 'str',
51
+ 'icon_id': 'str',
52
+ 'department': 'str',
53
+ 'annotation': 'str',
54
+ 'multi_manufacturer': 'bool',
55
+ 'classification_code': 'str',
56
+ 'max_distance_factored': 'float',
57
+ 'factor_id': 'str',
58
+ 'max_energy': 'float',
59
+ 'criteria_set_id': 'str',
60
+ 'inherited_status': 'bool',
61
+ 'min_weight': 'float',
62
+ 'max_weight': 'float'
63
+ }
64
+
65
+ attribute_map = {
66
+ 'part_id': 'PartId',
67
+ 'is_lifed': 'IsLifed',
68
+ 'part_name': 'PartName',
69
+ 'manufacturer_number': 'ManufacturerNumber',
70
+ 'description': 'Description',
71
+ 'tags': 'Tags',
72
+ 'is_class': 'IsClass',
73
+ 'has_expiration_date': 'HasExpirationDate',
74
+ 'max_distance': 'MaxDistance',
75
+ 'min_distance': 'MinDistance',
76
+ 'max_time': 'MaxTime',
77
+ 'date_creation_utc': 'DateCreationUtc',
78
+ 'creator': 'Creator',
79
+ 'last_update_date_utc': 'LastUpdateDateUtc',
80
+ 'last_update_user': 'LastUpdateUser',
81
+ 'part_status': 'PartStatus',
82
+ 'part_type': 'PartType',
83
+ 'manufacturer': 'Manufacturer',
84
+ 'parent_part_class': 'ParentPartClass',
85
+ 'icon_id': 'IconId',
86
+ 'department': 'Department',
87
+ 'annotation': 'Annotation',
88
+ 'multi_manufacturer': 'MultiManufacturer',
89
+ 'classification_code': 'ClassificationCode',
90
+ 'max_distance_factored': 'MaxDistanceFactored',
91
+ 'factor_id': 'FactorId',
92
+ 'max_energy': 'MaxEnergy',
93
+ 'criteria_set_id': 'CriteriaSetId',
94
+ 'inherited_status': 'InheritedStatus',
95
+ 'min_weight': 'MinWeight',
96
+ 'max_weight': 'MaxWeight'
97
+ }
98
+
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
100
+ """Part - a model defined in Swagger""" # noqa: E501
101
+ self._part_id = None
102
+ self._is_lifed = None
103
+ self._part_name = None
104
+ self._manufacturer_number = None
105
+ self._description = None
106
+ self._tags = None
107
+ self._is_class = None
108
+ self._has_expiration_date = None
109
+ self._max_distance = None
110
+ self._min_distance = None
111
+ self._max_time = None
112
+ self._date_creation_utc = None
113
+ self._creator = None
114
+ self._last_update_date_utc = None
115
+ self._last_update_user = None
116
+ self._part_status = None
117
+ self._part_type = None
118
+ self._manufacturer = None
119
+ self._parent_part_class = None
120
+ self._icon_id = None
121
+ self._department = None
122
+ self._annotation = None
123
+ self._multi_manufacturer = None
124
+ self._classification_code = None
125
+ self._max_distance_factored = None
126
+ self._factor_id = None
127
+ self._max_energy = None
128
+ self._criteria_set_id = None
129
+ self._inherited_status = None
130
+ self._min_weight = None
131
+ self._max_weight = None
132
+ self.discriminator = None
133
+ self.part_id = part_id
134
+ if is_lifed is not None:
135
+ self.is_lifed = is_lifed
136
+ if part_name is not None:
137
+ self.part_name = part_name
138
+ if manufacturer_number is not None:
139
+ self.manufacturer_number = manufacturer_number
140
+ if description is not None:
141
+ self.description = description
142
+ if tags is not None:
143
+ self.tags = tags
144
+ if is_class is not None:
145
+ self.is_class = is_class
146
+ if has_expiration_date is not None:
147
+ self.has_expiration_date = has_expiration_date
148
+ if max_distance is not None:
149
+ self.max_distance = max_distance
150
+ if min_distance is not None:
151
+ self.min_distance = min_distance
152
+ if max_time is not None:
153
+ self.max_time = max_time
154
+ if date_creation_utc is not None:
155
+ self.date_creation_utc = date_creation_utc
156
+ if creator is not None:
157
+ self.creator = creator
158
+ if last_update_date_utc is not None:
159
+ self.last_update_date_utc = last_update_date_utc
160
+ if last_update_user is not None:
161
+ self.last_update_user = last_update_user
162
+ self.part_status = part_status
163
+ self.part_type = part_type
164
+ if manufacturer is not None:
165
+ self.manufacturer = manufacturer
166
+ if parent_part_class is not None:
167
+ self.parent_part_class = parent_part_class
168
+ if icon_id is not None:
169
+ self.icon_id = icon_id
170
+ self.department = department
171
+ if annotation is not None:
172
+ self.annotation = annotation
173
+ if multi_manufacturer is not None:
174
+ self.multi_manufacturer = multi_manufacturer
175
+ if classification_code is not None:
176
+ self.classification_code = classification_code
177
+ if max_distance_factored is not None:
178
+ self.max_distance_factored = max_distance_factored
179
+ if factor_id is not None:
180
+ self.factor_id = factor_id
181
+ if max_energy is not None:
182
+ self.max_energy = max_energy
183
+ if criteria_set_id is not None:
184
+ self.criteria_set_id = criteria_set_id
185
+ if inherited_status is not None:
186
+ self.inherited_status = inherited_status
187
+ if min_weight is not None:
188
+ self.min_weight = min_weight
189
+ if max_weight is not None:
190
+ self.max_weight = max_weight
191
+
192
+ @property
193
+ def part_id(self):
194
+ """Gets the part_id of this Part. # noqa: E501
195
+
196
+ Part unique identifier, common to all revisions of the same part Set the PartId to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new part. # noqa: E501
197
+
198
+ :return: The part_id of this Part. # noqa: E501
199
+ :rtype: str
200
+ """
201
+ return self._part_id
202
+
203
+ @part_id.setter
204
+ def part_id(self, part_id):
205
+ """Sets the part_id of this Part.
206
+
207
+ Part unique identifier, common to all revisions of the same part Set the PartId to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new part. # noqa: E501
208
+
209
+ :param part_id: The part_id of this Part. # noqa: E501
210
+ :type: str
211
+ """
212
+ if part_id is None:
213
+ raise ValueError("Invalid value for `part_id`, must not be `None`") # noqa: E501
214
+
215
+ self._part_id = part_id
216
+
217
+ @property
218
+ def is_lifed(self):
219
+ """Gets the is_lifed of this Part. # noqa: E501
220
+
221
+ Indicates whether the part should be monitored because it has is limited lifespan # noqa: E501
222
+
223
+ :return: The is_lifed of this Part. # noqa: E501
224
+ :rtype: bool
225
+ """
226
+ return self._is_lifed
227
+
228
+ @is_lifed.setter
229
+ def is_lifed(self, is_lifed):
230
+ """Sets the is_lifed of this Part.
231
+
232
+ Indicates whether the part should be monitored because it has is limited lifespan # noqa: E501
233
+
234
+ :param is_lifed: The is_lifed of this Part. # noqa: E501
235
+ :type: bool
236
+ """
237
+
238
+ self._is_lifed = is_lifed
239
+
240
+ @property
241
+ def part_name(self):
242
+ """Gets the part_name of this Part. # noqa: E501
243
+
244
+ Part name # noqa: E501
245
+
246
+ :return: The part_name of this Part. # noqa: E501
247
+ :rtype: str
248
+ """
249
+ return self._part_name
250
+
251
+ @part_name.setter
252
+ def part_name(self, part_name):
253
+ """Sets the part_name of this Part.
254
+
255
+ Part name # noqa: E501
256
+
257
+ :param part_name: The part_name of this Part. # noqa: E501
258
+ :type: str
259
+ """
260
+
261
+ self._part_name = part_name
262
+
263
+ @property
264
+ def manufacturer_number(self):
265
+ """Gets the manufacturer_number of this Part. # noqa: E501
266
+
267
+ Part number in the manufacturer's reference system # noqa: E501
268
+
269
+ :return: The manufacturer_number of this Part. # noqa: E501
270
+ :rtype: str
271
+ """
272
+ return self._manufacturer_number
273
+
274
+ @manufacturer_number.setter
275
+ def manufacturer_number(self, manufacturer_number):
276
+ """Sets the manufacturer_number of this Part.
277
+
278
+ Part number in the manufacturer's reference system # noqa: E501
279
+
280
+ :param manufacturer_number: The manufacturer_number of this Part. # noqa: E501
281
+ :type: str
282
+ """
283
+
284
+ self._manufacturer_number = manufacturer_number
285
+
286
+ @property
287
+ def description(self):
288
+ """Gets the description of this Part. # noqa: E501
289
+
290
+ Part description # noqa: E501
291
+
292
+ :return: The description of this Part. # noqa: E501
293
+ :rtype: str
294
+ """
295
+ return self._description
296
+
297
+ @description.setter
298
+ def description(self, description):
299
+ """Sets the description of this Part.
300
+
301
+ Part description # noqa: E501
302
+
303
+ :param description: The description of this Part. # noqa: E501
304
+ :type: str
305
+ """
306
+
307
+ self._description = description
308
+
309
+ @property
310
+ def tags(self):
311
+ """Gets the tags of this Part. # noqa: E501
312
+
313
+ Part tags. Each tag must be separated by a semicolon. # noqa: E501
314
+
315
+ :return: The tags of this Part. # noqa: E501
316
+ :rtype: str
317
+ """
318
+ return self._tags
319
+
320
+ @tags.setter
321
+ def tags(self, tags):
322
+ """Sets the tags of this Part.
323
+
324
+ Part tags. Each tag must be separated by a semicolon. # noqa: E501
325
+
326
+ :param tags: The tags of this Part. # noqa: E501
327
+ :type: str
328
+ """
329
+
330
+ self._tags = tags
331
+
332
+ @property
333
+ def is_class(self):
334
+ """Gets the is_class of this Part. # noqa: E501
335
+
336
+ Indicates whether it is a class part # noqa: E501
337
+
338
+ :return: The is_class of this Part. # noqa: E501
339
+ :rtype: bool
340
+ """
341
+ return self._is_class
342
+
343
+ @is_class.setter
344
+ def is_class(self, is_class):
345
+ """Sets the is_class of this Part.
346
+
347
+ Indicates whether it is a class part # noqa: E501
348
+
349
+ :param is_class: The is_class of this Part. # noqa: E501
350
+ :type: bool
351
+ """
352
+
353
+ self._is_class = is_class
354
+
355
+ @property
356
+ def has_expiration_date(self):
357
+ """Gets the has_expiration_date of this Part. # noqa: E501
358
+
359
+ Indicates whether the part has an expiry date # noqa: E501
360
+
361
+ :return: The has_expiration_date of this Part. # noqa: E501
362
+ :rtype: bool
363
+ """
364
+ return self._has_expiration_date
365
+
366
+ @has_expiration_date.setter
367
+ def has_expiration_date(self, has_expiration_date):
368
+ """Sets the has_expiration_date of this Part.
369
+
370
+ Indicates whether the part has an expiry date # noqa: E501
371
+
372
+ :param has_expiration_date: The has_expiration_date of this Part. # noqa: E501
373
+ :type: bool
374
+ """
375
+
376
+ self._has_expiration_date = has_expiration_date
377
+
378
+ @property
379
+ def max_distance(self):
380
+ """Gets the max_distance of this Part. # noqa: E501
381
+
382
+ Maximum distance that the part can cover # noqa: E501
383
+
384
+ :return: The max_distance of this Part. # noqa: E501
385
+ :rtype: float
386
+ """
387
+ return self._max_distance
388
+
389
+ @max_distance.setter
390
+ def max_distance(self, max_distance):
391
+ """Sets the max_distance of this Part.
392
+
393
+ Maximum distance that the part can cover # noqa: E501
394
+
395
+ :param max_distance: The max_distance of this Part. # noqa: E501
396
+ :type: float
397
+ """
398
+
399
+ self._max_distance = max_distance
400
+
401
+ @property
402
+ def min_distance(self):
403
+ """Gets the min_distance of this Part. # noqa: E501
404
+
405
+ Minimum distance that the part can cover # noqa: E501
406
+
407
+ :return: The min_distance of this Part. # noqa: E501
408
+ :rtype: float
409
+ """
410
+ return self._min_distance
411
+
412
+ @min_distance.setter
413
+ def min_distance(self, min_distance):
414
+ """Sets the min_distance of this Part.
415
+
416
+ Minimum distance that the part can cover # noqa: E501
417
+
418
+ :param min_distance: The min_distance of this Part. # noqa: E501
419
+ :type: float
420
+ """
421
+
422
+ self._min_distance = min_distance
423
+
424
+ @property
425
+ def max_time(self):
426
+ """Gets the max_time of this Part. # noqa: E501
427
+
428
+ Maximum duration of use of the part (in hours) # noqa: E501
429
+
430
+ :return: The max_time of this Part. # noqa: E501
431
+ :rtype: float
432
+ """
433
+ return self._max_time
434
+
435
+ @max_time.setter
436
+ def max_time(self, max_time):
437
+ """Sets the max_time of this Part.
438
+
439
+ Maximum duration of use of the part (in hours) # noqa: E501
440
+
441
+ :param max_time: The max_time of this Part. # noqa: E501
442
+ :type: float
443
+ """
444
+
445
+ self._max_time = max_time
446
+
447
+ @property
448
+ def date_creation_utc(self):
449
+ """Gets the date_creation_utc of this Part. # noqa: E501
450
+
451
+ Part creation utc date # noqa: E501
452
+
453
+ :return: The date_creation_utc of this Part. # noqa: E501
454
+ :rtype: datetime
455
+ """
456
+ return self._date_creation_utc
457
+
458
+ @date_creation_utc.setter
459
+ def date_creation_utc(self, date_creation_utc):
460
+ """Sets the date_creation_utc of this Part.
461
+
462
+ Part creation utc date # noqa: E501
463
+
464
+ :param date_creation_utc: The date_creation_utc of this Part. # noqa: E501
465
+ :type: datetime
466
+ """
467
+
468
+ self._date_creation_utc = date_creation_utc
469
+
470
+ @property
471
+ def creator(self):
472
+ """Gets the creator of this Part. # noqa: E501
473
+
474
+ Part creator username # noqa: E501
475
+
476
+ :return: The creator of this Part. # noqa: E501
477
+ :rtype: str
478
+ """
479
+ return self._creator
480
+
481
+ @creator.setter
482
+ def creator(self, creator):
483
+ """Sets the creator of this Part.
484
+
485
+ Part creator username # noqa: E501
486
+
487
+ :param creator: The creator of this Part. # noqa: E501
488
+ :type: str
489
+ """
490
+
491
+ self._creator = creator
492
+
493
+ @property
494
+ def last_update_date_utc(self):
495
+ """Gets the last_update_date_utc of this Part. # noqa: E501
496
+
497
+ Part last update utc date # noqa: E501
498
+
499
+ :return: The last_update_date_utc of this Part. # noqa: E501
500
+ :rtype: datetime
501
+ """
502
+ return self._last_update_date_utc
503
+
504
+ @last_update_date_utc.setter
505
+ def last_update_date_utc(self, last_update_date_utc):
506
+ """Sets the last_update_date_utc of this Part.
507
+
508
+ Part last update utc date # noqa: E501
509
+
510
+ :param last_update_date_utc: The last_update_date_utc of this Part. # noqa: E501
511
+ :type: datetime
512
+ """
513
+
514
+ self._last_update_date_utc = last_update_date_utc
515
+
516
+ @property
517
+ def last_update_user(self):
518
+ """Gets the last_update_user of this Part. # noqa: E501
519
+
520
+ The name of the user who performed the last update on the part # noqa: E501
521
+
522
+ :return: The last_update_user of this Part. # noqa: E501
523
+ :rtype: str
524
+ """
525
+ return self._last_update_user
526
+
527
+ @last_update_user.setter
528
+ def last_update_user(self, last_update_user):
529
+ """Sets the last_update_user of this Part.
530
+
531
+ The name of the user who performed the last update on the part # noqa: E501
532
+
533
+ :param last_update_user: The last_update_user of this Part. # noqa: E501
534
+ :type: str
535
+ """
536
+
537
+ self._last_update_user = last_update_user
538
+
539
+ @property
540
+ def part_status(self):
541
+ """Gets the part_status of this Part. # noqa: E501
542
+
543
+ Part status name # noqa: E501
544
+
545
+ :return: The part_status of this Part. # noqa: E501
546
+ :rtype: str
547
+ """
548
+ return self._part_status
549
+
550
+ @part_status.setter
551
+ def part_status(self, part_status):
552
+ """Sets the part_status of this Part.
553
+
554
+ Part status name # noqa: E501
555
+
556
+ :param part_status: The part_status of this Part. # noqa: E501
557
+ :type: str
558
+ """
559
+ if part_status is None:
560
+ raise ValueError("Invalid value for `part_status`, must not be `None`") # noqa: E501
561
+
562
+ self._part_status = part_status
563
+
564
+ @property
565
+ def part_type(self):
566
+ """Gets the part_type of this Part. # noqa: E501
567
+
568
+ Part type # noqa: E501
569
+
570
+ :return: The part_type of this Part. # noqa: E501
571
+ :rtype: str
572
+ """
573
+ return self._part_type
574
+
575
+ @part_type.setter
576
+ def part_type(self, part_type):
577
+ """Sets the part_type of this Part.
578
+
579
+ Part type # noqa: E501
580
+
581
+ :param part_type: The part_type of this Part. # noqa: E501
582
+ :type: str
583
+ """
584
+ if part_type is None:
585
+ raise ValueError("Invalid value for `part_type`, must not be `None`") # noqa: E501
586
+ allowed_values = ["Single", "Group"] # noqa: E501
587
+ if part_type not in allowed_values:
588
+ raise ValueError(
589
+ "Invalid value for `part_type` ({0}), must be one of {1}" # noqa: E501
590
+ .format(part_type, allowed_values)
591
+ )
592
+
593
+ self._part_type = part_type
594
+
595
+ @property
596
+ def manufacturer(self):
597
+ """Gets the manufacturer of this Part. # noqa: E501
598
+
599
+ Part manufacturer name # noqa: E501
600
+
601
+ :return: The manufacturer of this Part. # noqa: E501
602
+ :rtype: str
603
+ """
604
+ return self._manufacturer
605
+
606
+ @manufacturer.setter
607
+ def manufacturer(self, manufacturer):
608
+ """Sets the manufacturer of this Part.
609
+
610
+ Part manufacturer name # noqa: E501
611
+
612
+ :param manufacturer: The manufacturer of this Part. # noqa: E501
613
+ :type: str
614
+ """
615
+
616
+ self._manufacturer = manufacturer
617
+
618
+ @property
619
+ def parent_part_class(self):
620
+ """Gets the parent_part_class of this Part. # noqa: E501
621
+
622
+ Parent class part identifier or null # noqa: E501
623
+
624
+ :return: The parent_part_class of this Part. # noqa: E501
625
+ :rtype: str
626
+ """
627
+ return self._parent_part_class
628
+
629
+ @parent_part_class.setter
630
+ def parent_part_class(self, parent_part_class):
631
+ """Sets the parent_part_class of this Part.
632
+
633
+ Parent class part identifier or null # noqa: E501
634
+
635
+ :param parent_part_class: The parent_part_class of this Part. # noqa: E501
636
+ :type: str
637
+ """
638
+
639
+ self._parent_part_class = parent_part_class
640
+
641
+ @property
642
+ def icon_id(self):
643
+ """Gets the icon_id of this Part. # noqa: E501
644
+
645
+ Identifier of the icon associated with the part or null # noqa: E501
646
+
647
+ :return: The icon_id of this Part. # noqa: E501
648
+ :rtype: str
649
+ """
650
+ return self._icon_id
651
+
652
+ @icon_id.setter
653
+ def icon_id(self, icon_id):
654
+ """Sets the icon_id of this Part.
655
+
656
+ Identifier of the icon associated with the part or null # noqa: E501
657
+
658
+ :param icon_id: The icon_id of this Part. # noqa: E501
659
+ :type: str
660
+ """
661
+
662
+ self._icon_id = icon_id
663
+
664
+ @property
665
+ def department(self):
666
+ """Gets the department of this Part. # noqa: E501
667
+
668
+ The department to which the part belongs # noqa: E501
669
+
670
+ :return: The department of this Part. # noqa: E501
671
+ :rtype: str
672
+ """
673
+ return self._department
674
+
675
+ @department.setter
676
+ def department(self, department):
677
+ """Sets the department of this Part.
678
+
679
+ The department to which the part belongs # noqa: E501
680
+
681
+ :param department: The department of this Part. # noqa: E501
682
+ :type: str
683
+ """
684
+ if department is None:
685
+ raise ValueError("Invalid value for `department`, must not be `None`") # noqa: E501
686
+
687
+ self._department = department
688
+
689
+ @property
690
+ def annotation(self):
691
+ """Gets the annotation of this Part. # noqa: E501
692
+
693
+ Comments associated with the part # noqa: E501
694
+
695
+ :return: The annotation of this Part. # noqa: E501
696
+ :rtype: str
697
+ """
698
+ return self._annotation
699
+
700
+ @annotation.setter
701
+ def annotation(self, annotation):
702
+ """Sets the annotation of this Part.
703
+
704
+ Comments associated with the part # noqa: E501
705
+
706
+ :param annotation: The annotation of this Part. # noqa: E501
707
+ :type: str
708
+ """
709
+
710
+ self._annotation = annotation
711
+
712
+ @property
713
+ def multi_manufacturer(self):
714
+ """Gets the multi_manufacturer of this Part. # noqa: E501
715
+
716
+ Indicates whether the part has multiple manufacturers # noqa: E501
717
+
718
+ :return: The multi_manufacturer of this Part. # noqa: E501
719
+ :rtype: bool
720
+ """
721
+ return self._multi_manufacturer
722
+
723
+ @multi_manufacturer.setter
724
+ def multi_manufacturer(self, multi_manufacturer):
725
+ """Sets the multi_manufacturer of this Part.
726
+
727
+ Indicates whether the part has multiple manufacturers # noqa: E501
728
+
729
+ :param multi_manufacturer: The multi_manufacturer of this Part. # noqa: E501
730
+ :type: bool
731
+ """
732
+
733
+ self._multi_manufacturer = multi_manufacturer
734
+
735
+ @property
736
+ def classification_code(self):
737
+ """Gets the classification_code of this Part. # noqa: E501
738
+
739
+ Part classification code # noqa: E501
740
+
741
+ :return: The classification_code of this Part. # noqa: E501
742
+ :rtype: str
743
+ """
744
+ return self._classification_code
745
+
746
+ @classification_code.setter
747
+ def classification_code(self, classification_code):
748
+ """Sets the classification_code of this Part.
749
+
750
+ Part classification code # noqa: E501
751
+
752
+ :param classification_code: The classification_code of this Part. # noqa: E501
753
+ :type: str
754
+ """
755
+
756
+ self._classification_code = classification_code
757
+
758
+ @property
759
+ def max_distance_factored(self):
760
+ """Gets the max_distance_factored of this Part. # noqa: E501
761
+
762
+ Maximum factorized distance for the part # noqa: E501
763
+
764
+ :return: The max_distance_factored of this Part. # noqa: E501
765
+ :rtype: float
766
+ """
767
+ return self._max_distance_factored
768
+
769
+ @max_distance_factored.setter
770
+ def max_distance_factored(self, max_distance_factored):
771
+ """Sets the max_distance_factored of this Part.
772
+
773
+ Maximum factorized distance for the part # noqa: E501
774
+
775
+ :param max_distance_factored: The max_distance_factored of this Part. # noqa: E501
776
+ :type: float
777
+ """
778
+
779
+ self._max_distance_factored = max_distance_factored
780
+
781
+ @property
782
+ def factor_id(self):
783
+ """Gets the factor_id of this Part. # noqa: E501
784
+
785
+ Identifier of the factor associated with the part or null # noqa: E501
786
+
787
+ :return: The factor_id of this Part. # noqa: E501
788
+ :rtype: str
789
+ """
790
+ return self._factor_id
791
+
792
+ @factor_id.setter
793
+ def factor_id(self, factor_id):
794
+ """Sets the factor_id of this Part.
795
+
796
+ Identifier of the factor associated with the part or null # noqa: E501
797
+
798
+ :param factor_id: The factor_id of this Part. # noqa: E501
799
+ :type: str
800
+ """
801
+
802
+ self._factor_id = factor_id
803
+
804
+ @property
805
+ def max_energy(self):
806
+ """Gets the max_energy of this Part. # noqa: E501
807
+
808
+ Maximum energy allowed for the part # noqa: E501
809
+
810
+ :return: The max_energy of this Part. # noqa: E501
811
+ :rtype: float
812
+ """
813
+ return self._max_energy
814
+
815
+ @max_energy.setter
816
+ def max_energy(self, max_energy):
817
+ """Sets the max_energy of this Part.
818
+
819
+ Maximum energy allowed for the part # noqa: E501
820
+
821
+ :param max_energy: The max_energy of this Part. # noqa: E501
822
+ :type: float
823
+ """
824
+
825
+ self._max_energy = max_energy
826
+
827
+ @property
828
+ def criteria_set_id(self):
829
+ """Gets the criteria_set_id of this Part. # noqa: E501
830
+
831
+ Identifier of the criteria set associated with the part or null # noqa: E501
832
+
833
+ :return: The criteria_set_id of this Part. # noqa: E501
834
+ :rtype: str
835
+ """
836
+ return self._criteria_set_id
837
+
838
+ @criteria_set_id.setter
839
+ def criteria_set_id(self, criteria_set_id):
840
+ """Sets the criteria_set_id of this Part.
841
+
842
+ Identifier of the criteria set associated with the part or null # noqa: E501
843
+
844
+ :param criteria_set_id: The criteria_set_id of this Part. # noqa: E501
845
+ :type: str
846
+ """
847
+
848
+ self._criteria_set_id = criteria_set_id
849
+
850
+ @property
851
+ def inherited_status(self):
852
+ """Gets the inherited_status of this Part. # noqa: E501
853
+
854
+ Indicates whether to use the part status when creating a component # noqa: E501
855
+
856
+ :return: The inherited_status of this Part. # noqa: E501
857
+ :rtype: bool
858
+ """
859
+ return self._inherited_status
860
+
861
+ @inherited_status.setter
862
+ def inherited_status(self, inherited_status):
863
+ """Sets the inherited_status of this Part.
864
+
865
+ Indicates whether to use the part status when creating a component # noqa: E501
866
+
867
+ :param inherited_status: The inherited_status of this Part. # noqa: E501
868
+ :type: bool
869
+ """
870
+
871
+ self._inherited_status = inherited_status
872
+
873
+ @property
874
+ def min_weight(self):
875
+ """Gets the min_weight of this Part. # noqa: E501
876
+
877
+ Minimum authorized weight for the part # noqa: E501
878
+
879
+ :return: The min_weight of this Part. # noqa: E501
880
+ :rtype: float
881
+ """
882
+ return self._min_weight
883
+
884
+ @min_weight.setter
885
+ def min_weight(self, min_weight):
886
+ """Sets the min_weight of this Part.
887
+
888
+ Minimum authorized weight for the part # noqa: E501
889
+
890
+ :param min_weight: The min_weight of this Part. # noqa: E501
891
+ :type: float
892
+ """
893
+
894
+ self._min_weight = min_weight
895
+
896
+ @property
897
+ def max_weight(self):
898
+ """Gets the max_weight of this Part. # noqa: E501
899
+
900
+ Maximum authorized weight for the part # noqa: E501
901
+
902
+ :return: The max_weight of this Part. # noqa: E501
903
+ :rtype: float
904
+ """
905
+ return self._max_weight
906
+
907
+ @max_weight.setter
908
+ def max_weight(self, max_weight):
909
+ """Sets the max_weight of this Part.
910
+
911
+ Maximum authorized weight for the part # noqa: E501
912
+
913
+ :param max_weight: The max_weight of this Part. # noqa: E501
914
+ :type: float
915
+ """
916
+
917
+ self._max_weight = max_weight
918
+
919
+ def to_dict(self):
920
+ """Returns the model properties as a dict"""
921
+ result = {}
922
+
923
+ for attr, _ in six.iteritems(self.swagger_types):
924
+ value = getattr(self, attr)
925
+ if isinstance(value, list):
926
+ result[attr] = list(map(
927
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
928
+ value
929
+ ))
930
+ elif hasattr(value, "to_dict"):
931
+ result[attr] = value.to_dict()
932
+ elif isinstance(value, dict):
933
+ result[attr] = dict(map(
934
+ lambda item: (item[0], item[1].to_dict())
935
+ if hasattr(item[1], "to_dict") else item,
936
+ value.items()
937
+ ))
938
+ else:
939
+ result[attr] = value
940
+ if issubclass(Part, dict):
941
+ for key, value in self.items():
942
+ result[key] = value
943
+
944
+ return result
945
+
946
+ def to_str(self):
947
+ """Returns the string representation of the model"""
948
+ return pprint.pformat(self.to_dict())
949
+
950
+ def __repr__(self):
951
+ """For `print` and `pprint`"""
952
+ return self.to_str()
953
+
954
+ def __eq__(self, other):
955
+ """Returns true if both objects are equal"""
956
+ if not isinstance(other, Part):
957
+ return False
958
+
959
+ return self.__dict__ == other.__dict__
960
+
961
+ def __ne__(self, other):
962
+ """Returns true if both objects are not equal"""
963
+ return not self == other