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