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,1217 @@
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 Component(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
+ 'revision_id': 'str',
33
+ 'component_id': 'str',
34
+ 'part_id': 'str',
35
+ 'type_component': 'str',
36
+ 'name': 'str',
37
+ 'batch_number': 'str',
38
+ 'expiration_date_utc': 'datetime',
39
+ 'initial_distance': 'float',
40
+ 'initial_time': 'int',
41
+ 'accident_damaged': 'bool',
42
+ 'status': 'str',
43
+ 'issues_human_id': 'str',
44
+ 'distance_run': 'float',
45
+ 'time_run': 'int',
46
+ 'creation_date_utc': 'datetime',
47
+ 'creator': 'str',
48
+ 'department': 'str',
49
+ 'last_update_date_utc': 'datetime',
50
+ 'last_update_user': 'str',
51
+ 'production_date_utc': 'datetime',
52
+ 'weight': 'float',
53
+ 'revision_date_utc': 'datetime',
54
+ 'revision_name': 'str',
55
+ 'tags': 'str',
56
+ 'annotation': 'str',
57
+ 'manufacturer': 'str',
58
+ 'manufacturer_number': 'str',
59
+ 'user_update_date_utc': 'datetime',
60
+ 'user_update_name': 'str',
61
+ 'distance_run_factored': 'float',
62
+ 'distance_run_pwr': 'float',
63
+ 'time_run_pwr': 'int',
64
+ 'distance_total': 'float',
65
+ 'time_total': 'int',
66
+ 'distance_pwr_total': 'float',
67
+ 'time_pwr_total': 'int',
68
+ 'distance_factored_total': 'float',
69
+ 'has_check_rule_alert': 'bool',
70
+ 'energy_run': 'float',
71
+ 'energy_total': 'float'
72
+ }
73
+
74
+ attribute_map = {
75
+ 'revision_id': 'RevisionId',
76
+ 'component_id': 'ComponentId',
77
+ 'part_id': 'PartId',
78
+ 'type_component': 'TypeComponent',
79
+ 'name': 'Name',
80
+ 'batch_number': 'BatchNumber',
81
+ 'expiration_date_utc': 'ExpirationDateUtc',
82
+ 'initial_distance': 'InitialDistance',
83
+ 'initial_time': 'InitialTime',
84
+ 'accident_damaged': 'AccidentDamaged',
85
+ 'status': 'Status',
86
+ 'issues_human_id': 'IssuesHumanId',
87
+ 'distance_run': 'DistanceRun',
88
+ 'time_run': 'TimeRun',
89
+ 'creation_date_utc': 'CreationDateUtc',
90
+ 'creator': 'Creator',
91
+ 'department': 'Department',
92
+ 'last_update_date_utc': 'LastUpdateDateUtc',
93
+ 'last_update_user': 'LastUpdateUser',
94
+ 'production_date_utc': 'ProductionDateUtc',
95
+ 'weight': 'Weight',
96
+ 'revision_date_utc': 'RevisionDateUtc',
97
+ 'revision_name': 'RevisionName',
98
+ 'tags': 'Tags',
99
+ 'annotation': 'Annotation',
100
+ 'manufacturer': 'Manufacturer',
101
+ 'manufacturer_number': 'ManufacturerNumber',
102
+ 'user_update_date_utc': 'UserUpdateDateUtc',
103
+ 'user_update_name': 'UserUpdateName',
104
+ 'distance_run_factored': 'DistanceRunFactored',
105
+ 'distance_run_pwr': 'DistanceRunPwr',
106
+ 'time_run_pwr': 'TimeRunPwr',
107
+ 'distance_total': 'DistanceTotal',
108
+ 'time_total': 'TimeTotal',
109
+ 'distance_pwr_total': 'DistancePwrTotal',
110
+ 'time_pwr_total': 'TimePwrTotal',
111
+ 'distance_factored_total': 'DistanceFactoredTotal',
112
+ 'has_check_rule_alert': 'HasCheckRuleAlert',
113
+ 'energy_run': 'EnergyRun',
114
+ 'energy_total': 'EnergyTotal'
115
+ }
116
+
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
118
+ """Component - a model defined in Swagger""" # noqa: E501
119
+ self._revision_id = None
120
+ self._component_id = None
121
+ self._part_id = None
122
+ self._type_component = None
123
+ self._name = None
124
+ self._batch_number = None
125
+ self._expiration_date_utc = None
126
+ self._initial_distance = None
127
+ self._initial_time = None
128
+ self._accident_damaged = None
129
+ self._status = None
130
+ self._issues_human_id = None
131
+ self._distance_run = None
132
+ self._time_run = None
133
+ self._creation_date_utc = None
134
+ self._creator = None
135
+ self._department = None
136
+ self._last_update_date_utc = None
137
+ self._last_update_user = None
138
+ self._production_date_utc = None
139
+ self._weight = None
140
+ self._revision_date_utc = None
141
+ self._revision_name = None
142
+ self._tags = None
143
+ self._annotation = None
144
+ self._manufacturer = None
145
+ self._manufacturer_number = None
146
+ self._user_update_date_utc = None
147
+ self._user_update_name = None
148
+ self._distance_run_factored = None
149
+ self._distance_run_pwr = None
150
+ self._time_run_pwr = None
151
+ self._distance_total = None
152
+ self._time_total = None
153
+ self._distance_pwr_total = None
154
+ self._time_pwr_total = None
155
+ self._distance_factored_total = None
156
+ self._has_check_rule_alert = None
157
+ self._energy_run = None
158
+ self._energy_total = None
159
+ self.discriminator = None
160
+ self.revision_id = revision_id
161
+ self.component_id = component_id
162
+ self.part_id = part_id
163
+ if type_component is not None:
164
+ self.type_component = type_component
165
+ self.name = name
166
+ if batch_number is not None:
167
+ self.batch_number = batch_number
168
+ if expiration_date_utc is not None:
169
+ self.expiration_date_utc = expiration_date_utc
170
+ if initial_distance is not None:
171
+ self.initial_distance = initial_distance
172
+ if initial_time is not None:
173
+ self.initial_time = initial_time
174
+ if accident_damaged is not None:
175
+ self.accident_damaged = accident_damaged
176
+ self.status = status
177
+ if issues_human_id is not None:
178
+ self.issues_human_id = issues_human_id
179
+ if distance_run is not None:
180
+ self.distance_run = distance_run
181
+ if time_run is not None:
182
+ self.time_run = time_run
183
+ if creation_date_utc is not None:
184
+ self.creation_date_utc = creation_date_utc
185
+ if creator is not None:
186
+ self.creator = creator
187
+ self.department = department
188
+ if last_update_date_utc is not None:
189
+ self.last_update_date_utc = last_update_date_utc
190
+ if last_update_user is not None:
191
+ self.last_update_user = last_update_user
192
+ if production_date_utc is not None:
193
+ self.production_date_utc = production_date_utc
194
+ if weight is not None:
195
+ self.weight = weight
196
+ if revision_date_utc is not None:
197
+ self.revision_date_utc = revision_date_utc
198
+ if revision_name is not None:
199
+ self.revision_name = revision_name
200
+ if tags is not None:
201
+ self.tags = tags
202
+ if annotation is not None:
203
+ self.annotation = annotation
204
+ if manufacturer is not None:
205
+ self.manufacturer = manufacturer
206
+ if manufacturer_number is not None:
207
+ self.manufacturer_number = manufacturer_number
208
+ if user_update_date_utc is not None:
209
+ self.user_update_date_utc = user_update_date_utc
210
+ if user_update_name is not None:
211
+ self.user_update_name = user_update_name
212
+ if distance_run_factored is not None:
213
+ self.distance_run_factored = distance_run_factored
214
+ if distance_run_pwr is not None:
215
+ self.distance_run_pwr = distance_run_pwr
216
+ if time_run_pwr is not None:
217
+ self.time_run_pwr = time_run_pwr
218
+ if distance_total is not None:
219
+ self.distance_total = distance_total
220
+ if time_total is not None:
221
+ self.time_total = time_total
222
+ if distance_pwr_total is not None:
223
+ self.distance_pwr_total = distance_pwr_total
224
+ if time_pwr_total is not None:
225
+ self.time_pwr_total = time_pwr_total
226
+ if distance_factored_total is not None:
227
+ self.distance_factored_total = distance_factored_total
228
+ if has_check_rule_alert is not None:
229
+ self.has_check_rule_alert = has_check_rule_alert
230
+ if energy_run is not None:
231
+ self.energy_run = energy_run
232
+ if energy_total is not None:
233
+ self.energy_total = energy_total
234
+
235
+ @property
236
+ def revision_id(self):
237
+ """Gets the revision_id of this Component. # noqa: E501
238
+
239
+ Component revision unique identifier. Set the RevisionId to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new component revision. # noqa: E501
240
+
241
+ :return: The revision_id of this Component. # noqa: E501
242
+ :rtype: str
243
+ """
244
+ return self._revision_id
245
+
246
+ @revision_id.setter
247
+ def revision_id(self, revision_id):
248
+ """Sets the revision_id of this Component.
249
+
250
+ Component revision unique identifier. Set the RevisionId to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new component revision. # noqa: E501
251
+
252
+ :param revision_id: The revision_id of this Component. # noqa: E501
253
+ :type: str
254
+ """
255
+ if revision_id is None:
256
+ raise ValueError("Invalid value for `revision_id`, must not be `None`") # noqa: E501
257
+
258
+ self._revision_id = revision_id
259
+
260
+ @property
261
+ def component_id(self):
262
+ """Gets the component_id of this Component. # noqa: E501
263
+
264
+ Component unique identifier, common to all revisions of the same component Set the ComponentId to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new component. # noqa: E501
265
+
266
+ :return: The component_id of this Component. # noqa: E501
267
+ :rtype: str
268
+ """
269
+ return self._component_id
270
+
271
+ @component_id.setter
272
+ def component_id(self, component_id):
273
+ """Sets the component_id of this Component.
274
+
275
+ Component unique identifier, common to all revisions of the same component Set the ComponentId to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new component. # noqa: E501
276
+
277
+ :param component_id: The component_id of this Component. # noqa: E501
278
+ :type: str
279
+ """
280
+ if component_id is None:
281
+ raise ValueError("Invalid value for `component_id`, must not be `None`") # noqa: E501
282
+
283
+ self._component_id = component_id
284
+
285
+ @property
286
+ def part_id(self):
287
+ """Gets the part_id of this Component. # noqa: E501
288
+
289
+ Part id associated with the Component # noqa: E501
290
+
291
+ :return: The part_id of this Component. # noqa: E501
292
+ :rtype: str
293
+ """
294
+ return self._part_id
295
+
296
+ @part_id.setter
297
+ def part_id(self, part_id):
298
+ """Sets the part_id of this Component.
299
+
300
+ Part id associated with the Component # noqa: E501
301
+
302
+ :param part_id: The part_id of this Component. # noqa: E501
303
+ :type: str
304
+ """
305
+ if part_id is None:
306
+ raise ValueError("Invalid value for `part_id`, must not be `None`") # noqa: E501
307
+
308
+ self._part_id = part_id
309
+
310
+ @property
311
+ def type_component(self):
312
+ """Gets the type_component of this Component. # noqa: E501
313
+
314
+ Component type # noqa: E501
315
+
316
+ :return: The type_component of this Component. # noqa: E501
317
+ :rtype: str
318
+ """
319
+ return self._type_component
320
+
321
+ @type_component.setter
322
+ def type_component(self, type_component):
323
+ """Sets the type_component of this Component.
324
+
325
+ Component type # noqa: E501
326
+
327
+ :param type_component: The type_component of this Component. # noqa: E501
328
+ :type: str
329
+ """
330
+ allowed_values = ["Single", "Group"] # noqa: E501
331
+ if type_component not in allowed_values:
332
+ raise ValueError(
333
+ "Invalid value for `type_component` ({0}), must be one of {1}" # noqa: E501
334
+ .format(type_component, allowed_values)
335
+ )
336
+
337
+ self._type_component = type_component
338
+
339
+ @property
340
+ def name(self):
341
+ """Gets the name of this Component. # noqa: E501
342
+
343
+ Component name # noqa: E501
344
+
345
+ :return: The name of this Component. # noqa: E501
346
+ :rtype: str
347
+ """
348
+ return self._name
349
+
350
+ @name.setter
351
+ def name(self, name):
352
+ """Sets the name of this Component.
353
+
354
+ Component name # noqa: E501
355
+
356
+ :param name: The name of this Component. # noqa: E501
357
+ :type: str
358
+ """
359
+ if name is None:
360
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
361
+
362
+ self._name = name
363
+
364
+ @property
365
+ def batch_number(self):
366
+ """Gets the batch_number of this Component. # noqa: E501
367
+
368
+ Component batch number # noqa: E501
369
+
370
+ :return: The batch_number of this Component. # noqa: E501
371
+ :rtype: str
372
+ """
373
+ return self._batch_number
374
+
375
+ @batch_number.setter
376
+ def batch_number(self, batch_number):
377
+ """Sets the batch_number of this Component.
378
+
379
+ Component batch number # noqa: E501
380
+
381
+ :param batch_number: The batch_number of this Component. # noqa: E501
382
+ :type: str
383
+ """
384
+
385
+ self._batch_number = batch_number
386
+
387
+ @property
388
+ def expiration_date_utc(self):
389
+ """Gets the expiration_date_utc of this Component. # noqa: E501
390
+
391
+ Component expiry utc date # noqa: E501
392
+
393
+ :return: The expiration_date_utc of this Component. # noqa: E501
394
+ :rtype: datetime
395
+ """
396
+ return self._expiration_date_utc
397
+
398
+ @expiration_date_utc.setter
399
+ def expiration_date_utc(self, expiration_date_utc):
400
+ """Sets the expiration_date_utc of this Component.
401
+
402
+ Component expiry utc date # noqa: E501
403
+
404
+ :param expiration_date_utc: The expiration_date_utc of this Component. # noqa: E501
405
+ :type: datetime
406
+ """
407
+
408
+ self._expiration_date_utc = expiration_date_utc
409
+
410
+ @property
411
+ def initial_distance(self):
412
+ """Gets the initial_distance of this Component. # noqa: E501
413
+
414
+ Initial component distance # noqa: E501
415
+
416
+ :return: The initial_distance of this Component. # noqa: E501
417
+ :rtype: float
418
+ """
419
+ return self._initial_distance
420
+
421
+ @initial_distance.setter
422
+ def initial_distance(self, initial_distance):
423
+ """Sets the initial_distance of this Component.
424
+
425
+ Initial component distance # noqa: E501
426
+
427
+ :param initial_distance: The initial_distance of this Component. # noqa: E501
428
+ :type: float
429
+ """
430
+
431
+ self._initial_distance = initial_distance
432
+
433
+ @property
434
+ def initial_time(self):
435
+ """Gets the initial_time of this Component. # noqa: E501
436
+
437
+ Initial component usage time (in ticks : 1 ticks = 0.0000001 seconds) # noqa: E501
438
+
439
+ :return: The initial_time of this Component. # noqa: E501
440
+ :rtype: int
441
+ """
442
+ return self._initial_time
443
+
444
+ @initial_time.setter
445
+ def initial_time(self, initial_time):
446
+ """Sets the initial_time of this Component.
447
+
448
+ Initial component usage time (in ticks : 1 ticks = 0.0000001 seconds) # noqa: E501
449
+
450
+ :param initial_time: The initial_time of this Component. # noqa: E501
451
+ :type: int
452
+ """
453
+
454
+ self._initial_time = initial_time
455
+
456
+ @property
457
+ def accident_damaged(self):
458
+ """Gets the accident_damaged of this Component. # noqa: E501
459
+
460
+ Indicates whether the component has been involved in an accident # noqa: E501
461
+
462
+ :return: The accident_damaged of this Component. # noqa: E501
463
+ :rtype: bool
464
+ """
465
+ return self._accident_damaged
466
+
467
+ @accident_damaged.setter
468
+ def accident_damaged(self, accident_damaged):
469
+ """Sets the accident_damaged of this Component.
470
+
471
+ Indicates whether the component has been involved in an accident # noqa: E501
472
+
473
+ :param accident_damaged: The accident_damaged of this Component. # noqa: E501
474
+ :type: bool
475
+ """
476
+
477
+ self._accident_damaged = accident_damaged
478
+
479
+ @property
480
+ def status(self):
481
+ """Gets the status of this Component. # noqa: E501
482
+
483
+ Component status name # noqa: E501
484
+
485
+ :return: The status of this Component. # noqa: E501
486
+ :rtype: str
487
+ """
488
+ return self._status
489
+
490
+ @status.setter
491
+ def status(self, status):
492
+ """Sets the status of this Component.
493
+
494
+ Component status name # noqa: E501
495
+
496
+ :param status: The status of this Component. # noqa: E501
497
+ :type: str
498
+ """
499
+ if status is None:
500
+ raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
501
+
502
+ self._status = status
503
+
504
+ @property
505
+ def issues_human_id(self):
506
+ """Gets the issues_human_id of this Component. # noqa: E501
507
+
508
+ Component associated issues HumanId. Each HumanId must be separated by a semicolon. Valid characters allowed are: literals, numbers, underscore and semicolon # noqa: E501
509
+
510
+ :return: The issues_human_id of this Component. # noqa: E501
511
+ :rtype: str
512
+ """
513
+ return self._issues_human_id
514
+
515
+ @issues_human_id.setter
516
+ def issues_human_id(self, issues_human_id):
517
+ """Sets the issues_human_id of this Component.
518
+
519
+ Component associated issues HumanId. Each HumanId must be separated by a semicolon. Valid characters allowed are: literals, numbers, underscore and semicolon # noqa: E501
520
+
521
+ :param issues_human_id: The issues_human_id of this Component. # noqa: E501
522
+ :type: str
523
+ """
524
+
525
+ self._issues_human_id = issues_human_id
526
+
527
+ @property
528
+ def distance_run(self):
529
+ """Gets the distance_run of this Component. # noqa: E501
530
+
531
+ Distance covered by the component # noqa: E501
532
+
533
+ :return: The distance_run of this Component. # noqa: E501
534
+ :rtype: float
535
+ """
536
+ return self._distance_run
537
+
538
+ @distance_run.setter
539
+ def distance_run(self, distance_run):
540
+ """Sets the distance_run of this Component.
541
+
542
+ Distance covered by the component # noqa: E501
543
+
544
+ :param distance_run: The distance_run of this Component. # noqa: E501
545
+ :type: float
546
+ """
547
+
548
+ self._distance_run = distance_run
549
+
550
+ @property
551
+ def time_run(self):
552
+ """Gets the time_run of this Component. # noqa: E501
553
+
554
+ Total component useful life (in ticks : 1 ticks = 0.0000001 seconds) # noqa: E501
555
+
556
+ :return: The time_run of this Component. # noqa: E501
557
+ :rtype: int
558
+ """
559
+ return self._time_run
560
+
561
+ @time_run.setter
562
+ def time_run(self, time_run):
563
+ """Sets the time_run of this Component.
564
+
565
+ Total component useful life (in ticks : 1 ticks = 0.0000001 seconds) # noqa: E501
566
+
567
+ :param time_run: The time_run of this Component. # noqa: E501
568
+ :type: int
569
+ """
570
+
571
+ self._time_run = time_run
572
+
573
+ @property
574
+ def creation_date_utc(self):
575
+ """Gets the creation_date_utc of this Component. # noqa: E501
576
+
577
+ Component creation utc date # noqa: E501
578
+
579
+ :return: The creation_date_utc of this Component. # noqa: E501
580
+ :rtype: datetime
581
+ """
582
+ return self._creation_date_utc
583
+
584
+ @creation_date_utc.setter
585
+ def creation_date_utc(self, creation_date_utc):
586
+ """Sets the creation_date_utc of this Component.
587
+
588
+ Component creation utc date # noqa: E501
589
+
590
+ :param creation_date_utc: The creation_date_utc of this Component. # noqa: E501
591
+ :type: datetime
592
+ """
593
+
594
+ self._creation_date_utc = creation_date_utc
595
+
596
+ @property
597
+ def creator(self):
598
+ """Gets the creator of this Component. # noqa: E501
599
+
600
+ Component creator username # noqa: E501
601
+
602
+ :return: The creator of this Component. # noqa: E501
603
+ :rtype: str
604
+ """
605
+ return self._creator
606
+
607
+ @creator.setter
608
+ def creator(self, creator):
609
+ """Sets the creator of this Component.
610
+
611
+ Component creator username # noqa: E501
612
+
613
+ :param creator: The creator of this Component. # noqa: E501
614
+ :type: str
615
+ """
616
+
617
+ self._creator = creator
618
+
619
+ @property
620
+ def department(self):
621
+ """Gets the department of this Component. # noqa: E501
622
+
623
+ Department name to which the component belongs # noqa: E501
624
+
625
+ :return: The department of this Component. # noqa: E501
626
+ :rtype: str
627
+ """
628
+ return self._department
629
+
630
+ @department.setter
631
+ def department(self, department):
632
+ """Sets the department of this Component.
633
+
634
+ Department name to which the component belongs # noqa: E501
635
+
636
+ :param department: The department of this Component. # noqa: E501
637
+ :type: str
638
+ """
639
+ if department is None:
640
+ raise ValueError("Invalid value for `department`, must not be `None`") # noqa: E501
641
+
642
+ self._department = department
643
+
644
+ @property
645
+ def last_update_date_utc(self):
646
+ """Gets the last_update_date_utc of this Component. # noqa: E501
647
+
648
+ Component last update utc date # noqa: E501
649
+
650
+ :return: The last_update_date_utc of this Component. # noqa: E501
651
+ :rtype: datetime
652
+ """
653
+ return self._last_update_date_utc
654
+
655
+ @last_update_date_utc.setter
656
+ def last_update_date_utc(self, last_update_date_utc):
657
+ """Sets the last_update_date_utc of this Component.
658
+
659
+ Component last update utc date # noqa: E501
660
+
661
+ :param last_update_date_utc: The last_update_date_utc of this Component. # noqa: E501
662
+ :type: datetime
663
+ """
664
+
665
+ self._last_update_date_utc = last_update_date_utc
666
+
667
+ @property
668
+ def last_update_user(self):
669
+ """Gets the last_update_user of this Component. # noqa: E501
670
+
671
+ The name of the user who performed the last update on the component # noqa: E501
672
+
673
+ :return: The last_update_user of this Component. # noqa: E501
674
+ :rtype: str
675
+ """
676
+ return self._last_update_user
677
+
678
+ @last_update_user.setter
679
+ def last_update_user(self, last_update_user):
680
+ """Sets the last_update_user of this Component.
681
+
682
+ The name of the user who performed the last update on the component # noqa: E501
683
+
684
+ :param last_update_user: The last_update_user of this Component. # noqa: E501
685
+ :type: str
686
+ """
687
+
688
+ self._last_update_user = last_update_user
689
+
690
+ @property
691
+ def production_date_utc(self):
692
+ """Gets the production_date_utc of this Component. # noqa: E501
693
+
694
+ Component production utc date # noqa: E501
695
+
696
+ :return: The production_date_utc of this Component. # noqa: E501
697
+ :rtype: datetime
698
+ """
699
+ return self._production_date_utc
700
+
701
+ @production_date_utc.setter
702
+ def production_date_utc(self, production_date_utc):
703
+ """Sets the production_date_utc of this Component.
704
+
705
+ Component production utc date # noqa: E501
706
+
707
+ :param production_date_utc: The production_date_utc of this Component. # noqa: E501
708
+ :type: datetime
709
+ """
710
+
711
+ self._production_date_utc = production_date_utc
712
+
713
+ @property
714
+ def weight(self):
715
+ """Gets the weight of this Component. # noqa: E501
716
+
717
+ Component weight # noqa: E501
718
+
719
+ :return: The weight of this Component. # noqa: E501
720
+ :rtype: float
721
+ """
722
+ return self._weight
723
+
724
+ @weight.setter
725
+ def weight(self, weight):
726
+ """Sets the weight of this Component.
727
+
728
+ Component weight # noqa: E501
729
+
730
+ :param weight: The weight of this Component. # noqa: E501
731
+ :type: float
732
+ """
733
+
734
+ self._weight = weight
735
+
736
+ @property
737
+ def revision_date_utc(self):
738
+ """Gets the revision_date_utc of this Component. # noqa: E501
739
+
740
+ Component revision utc date # noqa: E501
741
+
742
+ :return: The revision_date_utc of this Component. # noqa: E501
743
+ :rtype: datetime
744
+ """
745
+ return self._revision_date_utc
746
+
747
+ @revision_date_utc.setter
748
+ def revision_date_utc(self, revision_date_utc):
749
+ """Sets the revision_date_utc of this Component.
750
+
751
+ Component revision utc date # noqa: E501
752
+
753
+ :param revision_date_utc: The revision_date_utc of this Component. # noqa: E501
754
+ :type: datetime
755
+ """
756
+
757
+ self._revision_date_utc = revision_date_utc
758
+
759
+ @property
760
+ def revision_name(self):
761
+ """Gets the revision_name of this Component. # noqa: E501
762
+
763
+ Component revison name # noqa: E501
764
+
765
+ :return: The revision_name of this Component. # noqa: E501
766
+ :rtype: str
767
+ """
768
+ return self._revision_name
769
+
770
+ @revision_name.setter
771
+ def revision_name(self, revision_name):
772
+ """Sets the revision_name of this Component.
773
+
774
+ Component revison name # noqa: E501
775
+
776
+ :param revision_name: The revision_name of this Component. # noqa: E501
777
+ :type: str
778
+ """
779
+
780
+ self._revision_name = revision_name
781
+
782
+ @property
783
+ def tags(self):
784
+ """Gets the tags of this Component. # noqa: E501
785
+
786
+ Component tags. Each tag must be separated by a semicolon. Valid characters allowed are: literals, numbers, underscore and semicolon # noqa: E501
787
+
788
+ :return: The tags of this Component. # noqa: E501
789
+ :rtype: str
790
+ """
791
+ return self._tags
792
+
793
+ @tags.setter
794
+ def tags(self, tags):
795
+ """Sets the tags of this Component.
796
+
797
+ Component tags. Each tag must be separated by a semicolon. Valid characters allowed are: literals, numbers, underscore and semicolon # noqa: E501
798
+
799
+ :param tags: The tags of this Component. # noqa: E501
800
+ :type: str
801
+ """
802
+
803
+ self._tags = tags
804
+
805
+ @property
806
+ def annotation(self):
807
+ """Gets the annotation of this Component. # noqa: E501
808
+
809
+ Comments associated with the component # noqa: E501
810
+
811
+ :return: The annotation of this Component. # noqa: E501
812
+ :rtype: str
813
+ """
814
+ return self._annotation
815
+
816
+ @annotation.setter
817
+ def annotation(self, annotation):
818
+ """Sets the annotation of this Component.
819
+
820
+ Comments associated with the component # noqa: E501
821
+
822
+ :param annotation: The annotation of this Component. # noqa: E501
823
+ :type: str
824
+ """
825
+
826
+ self._annotation = annotation
827
+
828
+ @property
829
+ def manufacturer(self):
830
+ """Gets the manufacturer of this Component. # noqa: E501
831
+
832
+ Component manufacturer name (if any) # noqa: E501
833
+
834
+ :return: The manufacturer of this Component. # noqa: E501
835
+ :rtype: str
836
+ """
837
+ return self._manufacturer
838
+
839
+ @manufacturer.setter
840
+ def manufacturer(self, manufacturer):
841
+ """Sets the manufacturer of this Component.
842
+
843
+ Component manufacturer name (if any) # noqa: E501
844
+
845
+ :param manufacturer: The manufacturer of this Component. # noqa: E501
846
+ :type: str
847
+ """
848
+
849
+ self._manufacturer = manufacturer
850
+
851
+ @property
852
+ def manufacturer_number(self):
853
+ """Gets the manufacturer_number of this Component. # noqa: E501
854
+
855
+ Component manufacturer number (if any) # noqa: E501
856
+
857
+ :return: The manufacturer_number of this Component. # noqa: E501
858
+ :rtype: str
859
+ """
860
+ return self._manufacturer_number
861
+
862
+ @manufacturer_number.setter
863
+ def manufacturer_number(self, manufacturer_number):
864
+ """Sets the manufacturer_number of this Component.
865
+
866
+ Component manufacturer number (if any) # noqa: E501
867
+
868
+ :param manufacturer_number: The manufacturer_number of this Component. # noqa: E501
869
+ :type: str
870
+ """
871
+
872
+ self._manufacturer_number = manufacturer_number
873
+
874
+ @property
875
+ def user_update_date_utc(self):
876
+ """Gets the user_update_date_utc of this Component. # noqa: E501
877
+
878
+ Date utc of the last \"user update\" # noqa: E501
879
+
880
+ :return: The user_update_date_utc of this Component. # noqa: E501
881
+ :rtype: datetime
882
+ """
883
+ return self._user_update_date_utc
884
+
885
+ @user_update_date_utc.setter
886
+ def user_update_date_utc(self, user_update_date_utc):
887
+ """Sets the user_update_date_utc of this Component.
888
+
889
+ Date utc of the last \"user update\" # noqa: E501
890
+
891
+ :param user_update_date_utc: The user_update_date_utc of this Component. # noqa: E501
892
+ :type: datetime
893
+ """
894
+
895
+ self._user_update_date_utc = user_update_date_utc
896
+
897
+ @property
898
+ def user_update_name(self):
899
+ """Gets the user_update_name of this Component. # noqa: E501
900
+
901
+ The name of the user who made the last \"user update\" # noqa: E501
902
+
903
+ :return: The user_update_name of this Component. # noqa: E501
904
+ :rtype: str
905
+ """
906
+ return self._user_update_name
907
+
908
+ @user_update_name.setter
909
+ def user_update_name(self, user_update_name):
910
+ """Sets the user_update_name of this Component.
911
+
912
+ The name of the user who made the last \"user update\" # noqa: E501
913
+
914
+ :param user_update_name: The user_update_name of this Component. # noqa: E501
915
+ :type: str
916
+ """
917
+
918
+ self._user_update_name = user_update_name
919
+
920
+ @property
921
+ def distance_run_factored(self):
922
+ """Gets the distance_run_factored of this Component. # noqa: E501
923
+
924
+ Factored run distance # noqa: E501
925
+
926
+ :return: The distance_run_factored of this Component. # noqa: E501
927
+ :rtype: float
928
+ """
929
+ return self._distance_run_factored
930
+
931
+ @distance_run_factored.setter
932
+ def distance_run_factored(self, distance_run_factored):
933
+ """Sets the distance_run_factored of this Component.
934
+
935
+ Factored run distance # noqa: E501
936
+
937
+ :param distance_run_factored: The distance_run_factored of this Component. # noqa: E501
938
+ :type: float
939
+ """
940
+
941
+ self._distance_run_factored = distance_run_factored
942
+
943
+ @property
944
+ def distance_run_pwr(self):
945
+ """Gets the distance_run_pwr of this Component. # noqa: E501
946
+
947
+ Powered run distance # noqa: E501
948
+
949
+ :return: The distance_run_pwr of this Component. # noqa: E501
950
+ :rtype: float
951
+ """
952
+ return self._distance_run_pwr
953
+
954
+ @distance_run_pwr.setter
955
+ def distance_run_pwr(self, distance_run_pwr):
956
+ """Sets the distance_run_pwr of this Component.
957
+
958
+ Powered run distance # noqa: E501
959
+
960
+ :param distance_run_pwr: The distance_run_pwr of this Component. # noqa: E501
961
+ :type: float
962
+ """
963
+
964
+ self._distance_run_pwr = distance_run_pwr
965
+
966
+ @property
967
+ def time_run_pwr(self):
968
+ """Gets the time_run_pwr of this Component. # noqa: E501
969
+
970
+ Powered run time (in ticks : 1 ticks = 0.0000001 seconds) # noqa: E501
971
+
972
+ :return: The time_run_pwr of this Component. # noqa: E501
973
+ :rtype: int
974
+ """
975
+ return self._time_run_pwr
976
+
977
+ @time_run_pwr.setter
978
+ def time_run_pwr(self, time_run_pwr):
979
+ """Sets the time_run_pwr of this Component.
980
+
981
+ Powered run time (in ticks : 1 ticks = 0.0000001 seconds) # noqa: E501
982
+
983
+ :param time_run_pwr: The time_run_pwr of this Component. # noqa: E501
984
+ :type: int
985
+ """
986
+
987
+ self._time_run_pwr = time_run_pwr
988
+
989
+ @property
990
+ def distance_total(self):
991
+ """Gets the distance_total of this Component. # noqa: E501
992
+
993
+ Total distance for all revisions of a component # noqa: E501
994
+
995
+ :return: The distance_total of this Component. # noqa: E501
996
+ :rtype: float
997
+ """
998
+ return self._distance_total
999
+
1000
+ @distance_total.setter
1001
+ def distance_total(self, distance_total):
1002
+ """Sets the distance_total of this Component.
1003
+
1004
+ Total distance for all revisions of a component # noqa: E501
1005
+
1006
+ :param distance_total: The distance_total of this Component. # noqa: E501
1007
+ :type: float
1008
+ """
1009
+
1010
+ self._distance_total = distance_total
1011
+
1012
+ @property
1013
+ def time_total(self):
1014
+ """Gets the time_total of this Component. # noqa: E501
1015
+
1016
+ Total duration of all revisions of a component (in ticks : 1 ticks = 0.0000001 seconds) # noqa: E501
1017
+
1018
+ :return: The time_total of this Component. # noqa: E501
1019
+ :rtype: int
1020
+ """
1021
+ return self._time_total
1022
+
1023
+ @time_total.setter
1024
+ def time_total(self, time_total):
1025
+ """Sets the time_total of this Component.
1026
+
1027
+ Total duration of all revisions of a component (in ticks : 1 ticks = 0.0000001 seconds) # noqa: E501
1028
+
1029
+ :param time_total: The time_total of this Component. # noqa: E501
1030
+ :type: int
1031
+ """
1032
+
1033
+ self._time_total = time_total
1034
+
1035
+ @property
1036
+ def distance_pwr_total(self):
1037
+ """Gets the distance_pwr_total of this Component. # noqa: E501
1038
+
1039
+ The total powered distance for all revisions of a component # noqa: E501
1040
+
1041
+ :return: The distance_pwr_total of this Component. # noqa: E501
1042
+ :rtype: float
1043
+ """
1044
+ return self._distance_pwr_total
1045
+
1046
+ @distance_pwr_total.setter
1047
+ def distance_pwr_total(self, distance_pwr_total):
1048
+ """Sets the distance_pwr_total of this Component.
1049
+
1050
+ The total powered distance for all revisions of a component # noqa: E501
1051
+
1052
+ :param distance_pwr_total: The distance_pwr_total of this Component. # noqa: E501
1053
+ :type: float
1054
+ """
1055
+
1056
+ self._distance_pwr_total = distance_pwr_total
1057
+
1058
+ @property
1059
+ def time_pwr_total(self):
1060
+ """Gets the time_pwr_total of this Component. # noqa: E501
1061
+
1062
+ Total powered time for all revisions of a component (in ticks : 1 ticks = 0.0000001 seconds) # noqa: E501
1063
+
1064
+ :return: The time_pwr_total of this Component. # noqa: E501
1065
+ :rtype: int
1066
+ """
1067
+ return self._time_pwr_total
1068
+
1069
+ @time_pwr_total.setter
1070
+ def time_pwr_total(self, time_pwr_total):
1071
+ """Sets the time_pwr_total of this Component.
1072
+
1073
+ Total powered time for all revisions of a component (in ticks : 1 ticks = 0.0000001 seconds) # noqa: E501
1074
+
1075
+ :param time_pwr_total: The time_pwr_total of this Component. # noqa: E501
1076
+ :type: int
1077
+ """
1078
+
1079
+ self._time_pwr_total = time_pwr_total
1080
+
1081
+ @property
1082
+ def distance_factored_total(self):
1083
+ """Gets the distance_factored_total of this Component. # noqa: E501
1084
+
1085
+ Total factored distance for all revisions of a component # noqa: E501
1086
+
1087
+ :return: The distance_factored_total of this Component. # noqa: E501
1088
+ :rtype: float
1089
+ """
1090
+ return self._distance_factored_total
1091
+
1092
+ @distance_factored_total.setter
1093
+ def distance_factored_total(self, distance_factored_total):
1094
+ """Sets the distance_factored_total of this Component.
1095
+
1096
+ Total factored distance for all revisions of a component # noqa: E501
1097
+
1098
+ :param distance_factored_total: The distance_factored_total of this Component. # noqa: E501
1099
+ :type: float
1100
+ """
1101
+
1102
+ self._distance_factored_total = distance_factored_total
1103
+
1104
+ @property
1105
+ def has_check_rule_alert(self):
1106
+ """Gets the has_check_rule_alert of this Component. # noqa: E501
1107
+
1108
+ Indicates whether there are any checkRule overruns on the component revision # noqa: E501
1109
+
1110
+ :return: The has_check_rule_alert of this Component. # noqa: E501
1111
+ :rtype: bool
1112
+ """
1113
+ return self._has_check_rule_alert
1114
+
1115
+ @has_check_rule_alert.setter
1116
+ def has_check_rule_alert(self, has_check_rule_alert):
1117
+ """Sets the has_check_rule_alert of this Component.
1118
+
1119
+ Indicates whether there are any checkRule overruns on the component revision # noqa: E501
1120
+
1121
+ :param has_check_rule_alert: The has_check_rule_alert of this Component. # noqa: E501
1122
+ :type: bool
1123
+ """
1124
+
1125
+ self._has_check_rule_alert = has_check_rule_alert
1126
+
1127
+ @property
1128
+ def energy_run(self):
1129
+ """Gets the energy_run of this Component. # noqa: E501
1130
+
1131
+ Component revision energy # noqa: E501
1132
+
1133
+ :return: The energy_run of this Component. # noqa: E501
1134
+ :rtype: float
1135
+ """
1136
+ return self._energy_run
1137
+
1138
+ @energy_run.setter
1139
+ def energy_run(self, energy_run):
1140
+ """Sets the energy_run of this Component.
1141
+
1142
+ Component revision energy # noqa: E501
1143
+
1144
+ :param energy_run: The energy_run of this Component. # noqa: E501
1145
+ :type: float
1146
+ """
1147
+
1148
+ self._energy_run = energy_run
1149
+
1150
+ @property
1151
+ def energy_total(self):
1152
+ """Gets the energy_total of this Component. # noqa: E501
1153
+
1154
+ Total energy for all revisions of a component # noqa: E501
1155
+
1156
+ :return: The energy_total of this Component. # noqa: E501
1157
+ :rtype: float
1158
+ """
1159
+ return self._energy_total
1160
+
1161
+ @energy_total.setter
1162
+ def energy_total(self, energy_total):
1163
+ """Sets the energy_total of this Component.
1164
+
1165
+ Total energy for all revisions of a component # noqa: E501
1166
+
1167
+ :param energy_total: The energy_total of this Component. # noqa: E501
1168
+ :type: float
1169
+ """
1170
+
1171
+ self._energy_total = energy_total
1172
+
1173
+ def to_dict(self):
1174
+ """Returns the model properties as a dict"""
1175
+ result = {}
1176
+
1177
+ for attr, _ in six.iteritems(self.swagger_types):
1178
+ value = getattr(self, attr)
1179
+ if isinstance(value, list):
1180
+ result[attr] = list(map(
1181
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
1182
+ value
1183
+ ))
1184
+ elif hasattr(value, "to_dict"):
1185
+ result[attr] = value.to_dict()
1186
+ elif isinstance(value, dict):
1187
+ result[attr] = dict(map(
1188
+ lambda item: (item[0], item[1].to_dict())
1189
+ if hasattr(item[1], "to_dict") else item,
1190
+ value.items()
1191
+ ))
1192
+ else:
1193
+ result[attr] = value
1194
+ if issubclass(Component, dict):
1195
+ for key, value in self.items():
1196
+ result[key] = value
1197
+
1198
+ return result
1199
+
1200
+ def to_str(self):
1201
+ """Returns the string representation of the model"""
1202
+ return pprint.pformat(self.to_dict())
1203
+
1204
+ def __repr__(self):
1205
+ """For `print` and `pprint`"""
1206
+ return self.to_str()
1207
+
1208
+ def __eq__(self, other):
1209
+ """Returns true if both objects are equal"""
1210
+ if not isinstance(other, Component):
1211
+ return False
1212
+
1213
+ return self.__dict__ == other.__dict__
1214
+
1215
+ def __ne__(self, other):
1216
+ """Returns true if both objects are not equal"""
1217
+ return not self == other