teamdbapi 3.0.0__py3-none-any.whl → 3.3.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 (43) hide show
  1. teamdbapi/__init__.py +15 -0
  2. teamdbapi/api/__init__.py +1 -0
  3. teamdbapi/api/assembly_api.py +4 -4
  4. teamdbapi/api/component_api.py +117 -0
  5. teamdbapi/api/edit_api.py +89 -0
  6. teamdbapi/api/import_export_api.py +12 -12
  7. teamdbapi/api/issue_api.py +1537 -0
  8. teamdbapi/api/lap_report_api.py +2 -2
  9. teamdbapi/api/part_api.py +481 -0
  10. teamdbapi/api/report_api.py +2 -2
  11. teamdbapi/api/revision_api.py +111 -6
  12. teamdbapi/api/value_field_api.py +2 -2
  13. teamdbapi/models/__init__.py +14 -0
  14. teamdbapi/models/add_part_car_parameter_arg.py +396 -0
  15. teamdbapi/models/car_parameters_context.py +31 -3
  16. teamdbapi/models/compare_options.py +2 -2
  17. teamdbapi/models/component.py +87 -3
  18. teamdbapi/models/file_revision_info.py +199 -0
  19. teamdbapi/models/import_parameters_args.py +2 -2
  20. teamdbapi/models/import_revisions_args.py +173 -0
  21. teamdbapi/models/import_revisions_info.py +197 -0
  22. teamdbapi/models/import_revisions_results.py +170 -0
  23. teamdbapi/models/issue.py +674 -0
  24. teamdbapi/models/issue_custom_field_value.py +319 -0
  25. teamdbapi/models/issue_priority.py +227 -0
  26. teamdbapi/models/issue_project.py +229 -0
  27. teamdbapi/models/issue_sector.py +199 -0
  28. teamdbapi/models/issue_status.py +284 -0
  29. teamdbapi/models/issue_type.py +199 -0
  30. teamdbapi/models/issue_workflow.py +199 -0
  31. teamdbapi/models/lap_report_options.py +2 -2
  32. teamdbapi/models/parameter_cross_table.py +4 -4
  33. teamdbapi/models/part.py +31 -3
  34. teamdbapi/models/part_car_parameters.py +561 -0
  35. teamdbapi/models/revision.py +37 -9
  36. teamdbapi/models/revision_value.py +31 -3
  37. teamdbapi/models/script.py +2 -2
  38. teamdbapi/models/target.py +4 -4
  39. teamdbapi/models/version.py +4 -4
  40. {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/METADATA +3 -3
  41. {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/RECORD +43 -28
  42. {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/LICENSE +0 -0
  43. {teamdbapi-3.0.0.dist-info → teamdbapi-3.3.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,674 @@
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
+ from teamdbapi.models.issue_custom_field_value import IssueCustomFieldValue # noqa: F401,E501
18
+ from teamdbapi.models.issue_priority import IssuePriority # noqa: F401,E501
19
+ from teamdbapi.models.issue_project import IssueProject # noqa: F401,E501
20
+ from teamdbapi.models.issue_sector import IssueSector # noqa: F401,E501
21
+ from teamdbapi.models.issue_status import IssueStatus # noqa: F401,E501
22
+ from teamdbapi.models.issue_type import IssueType # noqa: F401,E501
23
+
24
+
25
+ class Issue(object):
26
+ """NOTE: This class is auto generated by the swagger code generator program.
27
+
28
+ Do not edit the class manually.
29
+ """
30
+ """
31
+ Attributes:
32
+ swagger_types (dict): The key is attribute name
33
+ and the value is attribute type.
34
+ attribute_map (dict): The key is attribute name
35
+ and the value is json key in definition.
36
+ """
37
+ swagger_types = {
38
+ 'issue_id': 'str',
39
+ 'human_id': 'str',
40
+ 'priority': 'IssuePriority',
41
+ 'summary': 'str',
42
+ 'rich_description': 'str',
43
+ 'creator_name': 'str',
44
+ 'updator_name': 'str',
45
+ 'type': 'IssueType',
46
+ 'creation_date': 'datetime',
47
+ 'updated_date': 'datetime',
48
+ 'event_id': 'str',
49
+ 'car_id': 'str',
50
+ 'session_id': 'str',
51
+ 'run_id': 'str',
52
+ 'lap_id': 'str',
53
+ 'project': 'IssueProject',
54
+ 'status': 'IssueStatus',
55
+ 'owner_name': 'str',
56
+ 'sector': 'IssueSector',
57
+ 'occurrence': 'int',
58
+ 'custom_fields': 'list[IssueCustomFieldValue]'
59
+ }
60
+
61
+ attribute_map = {
62
+ 'issue_id': 'IssueId',
63
+ 'human_id': 'HumanId',
64
+ 'priority': 'Priority',
65
+ 'summary': 'Summary',
66
+ 'rich_description': 'RichDescription',
67
+ 'creator_name': 'CreatorName',
68
+ 'updator_name': 'UpdatorName',
69
+ 'type': 'Type',
70
+ 'creation_date': 'CreationDate',
71
+ 'updated_date': 'UpdatedDate',
72
+ 'event_id': 'EventId',
73
+ 'car_id': 'CarId',
74
+ 'session_id': 'SessionId',
75
+ 'run_id': 'RunId',
76
+ 'lap_id': 'LapId',
77
+ 'project': 'Project',
78
+ 'status': 'Status',
79
+ 'owner_name': 'OwnerName',
80
+ 'sector': 'Sector',
81
+ 'occurrence': 'Occurrence',
82
+ 'custom_fields': 'CustomFields'
83
+ }
84
+
85
+ def __init__(self, issue_id=None, human_id=None, priority=None, summary=None, rich_description=None, creator_name=None, updator_name=None, type=None, creation_date=None, updated_date=None, event_id=None, car_id=None, session_id=None, run_id=None, lap_id=None, project=None, status=None, owner_name=None, sector=None, occurrence=None, custom_fields=None): # noqa: E501
86
+ """Issue - a model defined in Swagger""" # noqa: E501
87
+ self._issue_id = None
88
+ self._human_id = None
89
+ self._priority = None
90
+ self._summary = None
91
+ self._rich_description = None
92
+ self._creator_name = None
93
+ self._updator_name = None
94
+ self._type = None
95
+ self._creation_date = None
96
+ self._updated_date = None
97
+ self._event_id = None
98
+ self._car_id = None
99
+ self._session_id = None
100
+ self._run_id = None
101
+ self._lap_id = None
102
+ self._project = None
103
+ self._status = None
104
+ self._owner_name = None
105
+ self._sector = None
106
+ self._occurrence = None
107
+ self._custom_fields = None
108
+ self.discriminator = None
109
+ self.issue_id = issue_id
110
+ if human_id is not None:
111
+ self.human_id = human_id
112
+ self.priority = priority
113
+ if summary is not None:
114
+ self.summary = summary
115
+ if rich_description is not None:
116
+ self.rich_description = rich_description
117
+ if creator_name is not None:
118
+ self.creator_name = creator_name
119
+ if updator_name is not None:
120
+ self.updator_name = updator_name
121
+ self.type = type
122
+ if creation_date is not None:
123
+ self.creation_date = creation_date
124
+ if updated_date is not None:
125
+ self.updated_date = updated_date
126
+ if event_id is not None:
127
+ self.event_id = event_id
128
+ if car_id is not None:
129
+ self.car_id = car_id
130
+ if session_id is not None:
131
+ self.session_id = session_id
132
+ if run_id is not None:
133
+ self.run_id = run_id
134
+ if lap_id is not None:
135
+ self.lap_id = lap_id
136
+ self.project = project
137
+ self.status = status
138
+ if owner_name is not None:
139
+ self.owner_name = owner_name
140
+ if sector is not None:
141
+ self.sector = sector
142
+ if occurrence is not None:
143
+ self.occurrence = occurrence
144
+ if custom_fields is not None:
145
+ self.custom_fields = custom_fields
146
+
147
+ @property
148
+ def issue_id(self):
149
+ """Gets the issue_id of this Issue. # noqa: E501
150
+
151
+ Unique identifier of the Issue Set the IssueId to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new Issue. # noqa: E501
152
+
153
+ :return: The issue_id of this Issue. # noqa: E501
154
+ :rtype: str
155
+ """
156
+ return self._issue_id
157
+
158
+ @issue_id.setter
159
+ def issue_id(self, issue_id):
160
+ """Sets the issue_id of this Issue.
161
+
162
+ Unique identifier of the Issue Set the IssueId to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new Issue. # noqa: E501
163
+
164
+ :param issue_id: The issue_id of this Issue. # noqa: E501
165
+ :type: str
166
+ """
167
+ if issue_id is None:
168
+ raise ValueError("Invalid value for `issue_id`, must not be `None`") # noqa: E501
169
+
170
+ self._issue_id = issue_id
171
+
172
+ @property
173
+ def human_id(self):
174
+ """Gets the human_id of this Issue. # noqa: E501
175
+
176
+ Human-readable identifier # noqa: E501
177
+
178
+ :return: The human_id of this Issue. # noqa: E501
179
+ :rtype: str
180
+ """
181
+ return self._human_id
182
+
183
+ @human_id.setter
184
+ def human_id(self, human_id):
185
+ """Sets the human_id of this Issue.
186
+
187
+ Human-readable identifier # noqa: E501
188
+
189
+ :param human_id: The human_id of this Issue. # noqa: E501
190
+ :type: str
191
+ """
192
+
193
+ self._human_id = human_id
194
+
195
+ @property
196
+ def priority(self):
197
+ """Gets the priority of this Issue. # noqa: E501
198
+
199
+
200
+ :return: The priority of this Issue. # noqa: E501
201
+ :rtype: IssuePriority
202
+ """
203
+ return self._priority
204
+
205
+ @priority.setter
206
+ def priority(self, priority):
207
+ """Sets the priority of this Issue.
208
+
209
+
210
+ :param priority: The priority of this Issue. # noqa: E501
211
+ :type: IssuePriority
212
+ """
213
+ if priority is None:
214
+ raise ValueError("Invalid value for `priority`, must not be `None`") # noqa: E501
215
+
216
+ self._priority = priority
217
+
218
+ @property
219
+ def summary(self):
220
+ """Gets the summary of this Issue. # noqa: E501
221
+
222
+ Summary of the Issue # noqa: E501
223
+
224
+ :return: The summary of this Issue. # noqa: E501
225
+ :rtype: str
226
+ """
227
+ return self._summary
228
+
229
+ @summary.setter
230
+ def summary(self, summary):
231
+ """Sets the summary of this Issue.
232
+
233
+ Summary of the Issue # noqa: E501
234
+
235
+ :param summary: The summary of this Issue. # noqa: E501
236
+ :type: str
237
+ """
238
+
239
+ self._summary = summary
240
+
241
+ @property
242
+ def rich_description(self):
243
+ """Gets the rich_description of this Issue. # noqa: E501
244
+
245
+ Description of the Issue # noqa: E501
246
+
247
+ :return: The rich_description of this Issue. # noqa: E501
248
+ :rtype: str
249
+ """
250
+ return self._rich_description
251
+
252
+ @rich_description.setter
253
+ def rich_description(self, rich_description):
254
+ """Sets the rich_description of this Issue.
255
+
256
+ Description of the Issue # noqa: E501
257
+
258
+ :param rich_description: The rich_description of this Issue. # noqa: E501
259
+ :type: str
260
+ """
261
+
262
+ self._rich_description = rich_description
263
+
264
+ @property
265
+ def creator_name(self):
266
+ """Gets the creator_name of this Issue. # noqa: E501
267
+
268
+ Issue creator # noqa: E501
269
+
270
+ :return: The creator_name of this Issue. # noqa: E501
271
+ :rtype: str
272
+ """
273
+ return self._creator_name
274
+
275
+ @creator_name.setter
276
+ def creator_name(self, creator_name):
277
+ """Sets the creator_name of this Issue.
278
+
279
+ Issue creator # noqa: E501
280
+
281
+ :param creator_name: The creator_name of this Issue. # noqa: E501
282
+ :type: str
283
+ """
284
+
285
+ self._creator_name = creator_name
286
+
287
+ @property
288
+ def updator_name(self):
289
+ """Gets the updator_name of this Issue. # noqa: E501
290
+
291
+ Name of last user to modify Issue # noqa: E501
292
+
293
+ :return: The updator_name of this Issue. # noqa: E501
294
+ :rtype: str
295
+ """
296
+ return self._updator_name
297
+
298
+ @updator_name.setter
299
+ def updator_name(self, updator_name):
300
+ """Sets the updator_name of this Issue.
301
+
302
+ Name of last user to modify Issue # noqa: E501
303
+
304
+ :param updator_name: The updator_name of this Issue. # noqa: E501
305
+ :type: str
306
+ """
307
+
308
+ self._updator_name = updator_name
309
+
310
+ @property
311
+ def type(self):
312
+ """Gets the type of this Issue. # noqa: E501
313
+
314
+
315
+ :return: The type of this Issue. # noqa: E501
316
+ :rtype: IssueType
317
+ """
318
+ return self._type
319
+
320
+ @type.setter
321
+ def type(self, type):
322
+ """Sets the type of this Issue.
323
+
324
+
325
+ :param type: The type of this Issue. # noqa: E501
326
+ :type: IssueType
327
+ """
328
+ if type is None:
329
+ raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
330
+
331
+ self._type = type
332
+
333
+ @property
334
+ def creation_date(self):
335
+ """Gets the creation_date of this Issue. # noqa: E501
336
+
337
+ Issue creation date # noqa: E501
338
+
339
+ :return: The creation_date of this Issue. # noqa: E501
340
+ :rtype: datetime
341
+ """
342
+ return self._creation_date
343
+
344
+ @creation_date.setter
345
+ def creation_date(self, creation_date):
346
+ """Sets the creation_date of this Issue.
347
+
348
+ Issue creation date # noqa: E501
349
+
350
+ :param creation_date: The creation_date of this Issue. # noqa: E501
351
+ :type: datetime
352
+ """
353
+
354
+ self._creation_date = creation_date
355
+
356
+ @property
357
+ def updated_date(self):
358
+ """Gets the updated_date of this Issue. # noqa: E501
359
+
360
+ Date of last Issue update # noqa: E501
361
+
362
+ :return: The updated_date of this Issue. # noqa: E501
363
+ :rtype: datetime
364
+ """
365
+ return self._updated_date
366
+
367
+ @updated_date.setter
368
+ def updated_date(self, updated_date):
369
+ """Sets the updated_date of this Issue.
370
+
371
+ Date of last Issue update # noqa: E501
372
+
373
+ :param updated_date: The updated_date of this Issue. # noqa: E501
374
+ :type: datetime
375
+ """
376
+
377
+ self._updated_date = updated_date
378
+
379
+ @property
380
+ def event_id(self):
381
+ """Gets the event_id of this Issue. # noqa: E501
382
+
383
+ Potential Event identifier # noqa: E501
384
+
385
+ :return: The event_id of this Issue. # noqa: E501
386
+ :rtype: str
387
+ """
388
+ return self._event_id
389
+
390
+ @event_id.setter
391
+ def event_id(self, event_id):
392
+ """Sets the event_id of this Issue.
393
+
394
+ Potential Event identifier # noqa: E501
395
+
396
+ :param event_id: The event_id of this Issue. # noqa: E501
397
+ :type: str
398
+ """
399
+
400
+ self._event_id = event_id
401
+
402
+ @property
403
+ def car_id(self):
404
+ """Gets the car_id of this Issue. # noqa: E501
405
+
406
+ Potential Car identifier # noqa: E501
407
+
408
+ :return: The car_id of this Issue. # noqa: E501
409
+ :rtype: str
410
+ """
411
+ return self._car_id
412
+
413
+ @car_id.setter
414
+ def car_id(self, car_id):
415
+ """Sets the car_id of this Issue.
416
+
417
+ Potential Car identifier # noqa: E501
418
+
419
+ :param car_id: The car_id of this Issue. # noqa: E501
420
+ :type: str
421
+ """
422
+
423
+ self._car_id = car_id
424
+
425
+ @property
426
+ def session_id(self):
427
+ """Gets the session_id of this Issue. # noqa: E501
428
+
429
+ Potential Session identifier # noqa: E501
430
+
431
+ :return: The session_id of this Issue. # noqa: E501
432
+ :rtype: str
433
+ """
434
+ return self._session_id
435
+
436
+ @session_id.setter
437
+ def session_id(self, session_id):
438
+ """Sets the session_id of this Issue.
439
+
440
+ Potential Session identifier # noqa: E501
441
+
442
+ :param session_id: The session_id of this Issue. # noqa: E501
443
+ :type: str
444
+ """
445
+
446
+ self._session_id = session_id
447
+
448
+ @property
449
+ def run_id(self):
450
+ """Gets the run_id of this Issue. # noqa: E501
451
+
452
+ Potential Run identifier # noqa: E501
453
+
454
+ :return: The run_id of this Issue. # noqa: E501
455
+ :rtype: str
456
+ """
457
+ return self._run_id
458
+
459
+ @run_id.setter
460
+ def run_id(self, run_id):
461
+ """Sets the run_id of this Issue.
462
+
463
+ Potential Run identifier # noqa: E501
464
+
465
+ :param run_id: The run_id of this Issue. # noqa: E501
466
+ :type: str
467
+ """
468
+
469
+ self._run_id = run_id
470
+
471
+ @property
472
+ def lap_id(self):
473
+ """Gets the lap_id of this Issue. # noqa: E501
474
+
475
+ Potential Lap identifier # noqa: E501
476
+
477
+ :return: The lap_id of this Issue. # noqa: E501
478
+ :rtype: str
479
+ """
480
+ return self._lap_id
481
+
482
+ @lap_id.setter
483
+ def lap_id(self, lap_id):
484
+ """Sets the lap_id of this Issue.
485
+
486
+ Potential Lap identifier # noqa: E501
487
+
488
+ :param lap_id: The lap_id of this Issue. # noqa: E501
489
+ :type: str
490
+ """
491
+
492
+ self._lap_id = lap_id
493
+
494
+ @property
495
+ def project(self):
496
+ """Gets the project of this Issue. # noqa: E501
497
+
498
+
499
+ :return: The project of this Issue. # noqa: E501
500
+ :rtype: IssueProject
501
+ """
502
+ return self._project
503
+
504
+ @project.setter
505
+ def project(self, project):
506
+ """Sets the project of this Issue.
507
+
508
+
509
+ :param project: The project of this Issue. # noqa: E501
510
+ :type: IssueProject
511
+ """
512
+ if project is None:
513
+ raise ValueError("Invalid value for `project`, must not be `None`") # noqa: E501
514
+
515
+ self._project = project
516
+
517
+ @property
518
+ def status(self):
519
+ """Gets the status of this Issue. # noqa: E501
520
+
521
+
522
+ :return: The status of this Issue. # noqa: E501
523
+ :rtype: IssueStatus
524
+ """
525
+ return self._status
526
+
527
+ @status.setter
528
+ def status(self, status):
529
+ """Sets the status of this Issue.
530
+
531
+
532
+ :param status: The status of this Issue. # noqa: E501
533
+ :type: IssueStatus
534
+ """
535
+ if status is None:
536
+ raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
537
+
538
+ self._status = status
539
+
540
+ @property
541
+ def owner_name(self):
542
+ """Gets the owner_name of this Issue. # noqa: E501
543
+
544
+ Issue owner identifer # noqa: E501
545
+
546
+ :return: The owner_name of this Issue. # noqa: E501
547
+ :rtype: str
548
+ """
549
+ return self._owner_name
550
+
551
+ @owner_name.setter
552
+ def owner_name(self, owner_name):
553
+ """Sets the owner_name of this Issue.
554
+
555
+ Issue owner identifer # noqa: E501
556
+
557
+ :param owner_name: The owner_name of this Issue. # noqa: E501
558
+ :type: str
559
+ """
560
+
561
+ self._owner_name = owner_name
562
+
563
+ @property
564
+ def sector(self):
565
+ """Gets the sector of this Issue. # noqa: E501
566
+
567
+
568
+ :return: The sector of this Issue. # noqa: E501
569
+ :rtype: IssueSector
570
+ """
571
+ return self._sector
572
+
573
+ @sector.setter
574
+ def sector(self, sector):
575
+ """Sets the sector of this Issue.
576
+
577
+
578
+ :param sector: The sector of this Issue. # noqa: E501
579
+ :type: IssueSector
580
+ """
581
+
582
+ self._sector = sector
583
+
584
+ @property
585
+ def occurrence(self):
586
+ """Gets the occurrence of this Issue. # noqa: E501
587
+
588
+ Issue occurrence # noqa: E501
589
+
590
+ :return: The occurrence of this Issue. # noqa: E501
591
+ :rtype: int
592
+ """
593
+ return self._occurrence
594
+
595
+ @occurrence.setter
596
+ def occurrence(self, occurrence):
597
+ """Sets the occurrence of this Issue.
598
+
599
+ Issue occurrence # noqa: E501
600
+
601
+ :param occurrence: The occurrence of this Issue. # noqa: E501
602
+ :type: int
603
+ """
604
+
605
+ self._occurrence = occurrence
606
+
607
+ @property
608
+ def custom_fields(self):
609
+ """Gets the custom_fields of this Issue. # noqa: E501
610
+
611
+ List of custom fields for the issue # noqa: E501
612
+
613
+ :return: The custom_fields of this Issue. # noqa: E501
614
+ :rtype: list[IssueCustomFieldValue]
615
+ """
616
+ return self._custom_fields
617
+
618
+ @custom_fields.setter
619
+ def custom_fields(self, custom_fields):
620
+ """Sets the custom_fields of this Issue.
621
+
622
+ List of custom fields for the issue # noqa: E501
623
+
624
+ :param custom_fields: The custom_fields of this Issue. # noqa: E501
625
+ :type: list[IssueCustomFieldValue]
626
+ """
627
+
628
+ self._custom_fields = custom_fields
629
+
630
+ def to_dict(self):
631
+ """Returns the model properties as a dict"""
632
+ result = {}
633
+
634
+ for attr, _ in six.iteritems(self.swagger_types):
635
+ value = getattr(self, attr)
636
+ if isinstance(value, list):
637
+ result[attr] = list(map(
638
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
639
+ value
640
+ ))
641
+ elif hasattr(value, "to_dict"):
642
+ result[attr] = value.to_dict()
643
+ elif isinstance(value, dict):
644
+ result[attr] = dict(map(
645
+ lambda item: (item[0], item[1].to_dict())
646
+ if hasattr(item[1], "to_dict") else item,
647
+ value.items()
648
+ ))
649
+ else:
650
+ result[attr] = value
651
+ if issubclass(Issue, dict):
652
+ for key, value in self.items():
653
+ result[key] = value
654
+
655
+ return result
656
+
657
+ def to_str(self):
658
+ """Returns the string representation of the model"""
659
+ return pprint.pformat(self.to_dict())
660
+
661
+ def __repr__(self):
662
+ """For `print` and `pprint`"""
663
+ return self.to_str()
664
+
665
+ def __eq__(self, other):
666
+ """Returns true if both objects are equal"""
667
+ if not isinstance(other, Issue):
668
+ return False
669
+
670
+ return self.__dict__ == other.__dict__
671
+
672
+ def __ne__(self, other):
673
+ """Returns true if both objects are not equal"""
674
+ return not self == other