teamdbapi 3.3.0__py3-none-any.whl → 3.5.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.
@@ -0,0 +1,673 @@
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 CriteriaValueDetail(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
+ 'values_date_utc': 'datetime',
33
+ 'event_id': 'str',
34
+ 'event_name': 'str',
35
+ 'car_id': 'str',
36
+ 'car_name': 'str',
37
+ 'session_id': 'str',
38
+ 'session_name': 'str',
39
+ 'run_id': 'str',
40
+ 'run_name': 'str',
41
+ 'component_id': 'str',
42
+ 'criteria_id': 'str',
43
+ 'value_double': 'float',
44
+ 'value_int': 'int',
45
+ 'value_time': 'float',
46
+ 'criterion_name': 'str',
47
+ 'distance_run': 'float',
48
+ 'time_run': 'float',
49
+ 'distance_run_factored': 'float',
50
+ 'distance_run_power': 'float',
51
+ 'time_run_power': 'float',
52
+ 'energy_run': 'float'
53
+ }
54
+
55
+ attribute_map = {
56
+ 'values_date_utc': 'ValuesDateUtc',
57
+ 'event_id': 'EventId',
58
+ 'event_name': 'EventName',
59
+ 'car_id': 'CarId',
60
+ 'car_name': 'CarName',
61
+ 'session_id': 'SessionId',
62
+ 'session_name': 'SessionName',
63
+ 'run_id': 'RunId',
64
+ 'run_name': 'RunName',
65
+ 'component_id': 'ComponentId',
66
+ 'criteria_id': 'CriteriaId',
67
+ 'value_double': 'ValueDouble',
68
+ 'value_int': 'ValueInt',
69
+ 'value_time': 'ValueTime',
70
+ 'criterion_name': 'CriterionName',
71
+ 'distance_run': 'DistanceRun',
72
+ 'time_run': 'TimeRun',
73
+ 'distance_run_factored': 'DistanceRunFactored',
74
+ 'distance_run_power': 'DistanceRunPower',
75
+ 'time_run_power': 'TimeRunPower',
76
+ 'energy_run': 'EnergyRun'
77
+ }
78
+
79
+ def __init__(self, values_date_utc=None, event_id=None, event_name=None, car_id=None, car_name=None, session_id=None, session_name=None, run_id=None, run_name=None, component_id=None, criteria_id=None, value_double=None, value_int=None, value_time=None, criterion_name=None, distance_run=None, time_run=None, distance_run_factored=None, distance_run_power=None, time_run_power=None, energy_run=None): # noqa: E501
80
+ """CriteriaValueDetail - a model defined in Swagger""" # noqa: E501
81
+ self._values_date_utc = None
82
+ self._event_id = None
83
+ self._event_name = None
84
+ self._car_id = None
85
+ self._car_name = None
86
+ self._session_id = None
87
+ self._session_name = None
88
+ self._run_id = None
89
+ self._run_name = None
90
+ self._component_id = None
91
+ self._criteria_id = None
92
+ self._value_double = None
93
+ self._value_int = None
94
+ self._value_time = None
95
+ self._criterion_name = None
96
+ self._distance_run = None
97
+ self._time_run = None
98
+ self._distance_run_factored = None
99
+ self._distance_run_power = None
100
+ self._time_run_power = None
101
+ self._energy_run = None
102
+ self.discriminator = None
103
+ if values_date_utc is not None:
104
+ self.values_date_utc = values_date_utc
105
+ if event_id is not None:
106
+ self.event_id = event_id
107
+ if event_name is not None:
108
+ self.event_name = event_name
109
+ if car_id is not None:
110
+ self.car_id = car_id
111
+ if car_name is not None:
112
+ self.car_name = car_name
113
+ if session_id is not None:
114
+ self.session_id = session_id
115
+ if session_name is not None:
116
+ self.session_name = session_name
117
+ if run_id is not None:
118
+ self.run_id = run_id
119
+ if run_name is not None:
120
+ self.run_name = run_name
121
+ if component_id is not None:
122
+ self.component_id = component_id
123
+ if criteria_id is not None:
124
+ self.criteria_id = criteria_id
125
+ if value_double is not None:
126
+ self.value_double = value_double
127
+ if value_int is not None:
128
+ self.value_int = value_int
129
+ if value_time is not None:
130
+ self.value_time = value_time
131
+ if criterion_name is not None:
132
+ self.criterion_name = criterion_name
133
+ if distance_run is not None:
134
+ self.distance_run = distance_run
135
+ if time_run is not None:
136
+ self.time_run = time_run
137
+ if distance_run_factored is not None:
138
+ self.distance_run_factored = distance_run_factored
139
+ if distance_run_power is not None:
140
+ self.distance_run_power = distance_run_power
141
+ if time_run_power is not None:
142
+ self.time_run_power = time_run_power
143
+ if energy_run is not None:
144
+ self.energy_run = energy_run
145
+
146
+ @property
147
+ def values_date_utc(self):
148
+ """Gets the values_date_utc of this CriteriaValueDetail. # noqa: E501
149
+
150
+ The criterion date UTC # noqa: E501
151
+
152
+ :return: The values_date_utc of this CriteriaValueDetail. # noqa: E501
153
+ :rtype: datetime
154
+ """
155
+ return self._values_date_utc
156
+
157
+ @values_date_utc.setter
158
+ def values_date_utc(self, values_date_utc):
159
+ """Sets the values_date_utc of this CriteriaValueDetail.
160
+
161
+ The criterion date UTC # noqa: E501
162
+
163
+ :param values_date_utc: The values_date_utc of this CriteriaValueDetail. # noqa: E501
164
+ :type: datetime
165
+ """
166
+
167
+ self._values_date_utc = values_date_utc
168
+
169
+ @property
170
+ def event_id(self):
171
+ """Gets the event_id of this CriteriaValueDetail. # noqa: E501
172
+
173
+ The event unique identifier # noqa: E501
174
+
175
+ :return: The event_id of this CriteriaValueDetail. # noqa: E501
176
+ :rtype: str
177
+ """
178
+ return self._event_id
179
+
180
+ @event_id.setter
181
+ def event_id(self, event_id):
182
+ """Sets the event_id of this CriteriaValueDetail.
183
+
184
+ The event unique identifier # noqa: E501
185
+
186
+ :param event_id: The event_id of this CriteriaValueDetail. # noqa: E501
187
+ :type: str
188
+ """
189
+
190
+ self._event_id = event_id
191
+
192
+ @property
193
+ def event_name(self):
194
+ """Gets the event_name of this CriteriaValueDetail. # noqa: E501
195
+
196
+ The event name # noqa: E501
197
+
198
+ :return: The event_name of this CriteriaValueDetail. # noqa: E501
199
+ :rtype: str
200
+ """
201
+ return self._event_name
202
+
203
+ @event_name.setter
204
+ def event_name(self, event_name):
205
+ """Sets the event_name of this CriteriaValueDetail.
206
+
207
+ The event name # noqa: E501
208
+
209
+ :param event_name: The event_name of this CriteriaValueDetail. # noqa: E501
210
+ :type: str
211
+ """
212
+
213
+ self._event_name = event_name
214
+
215
+ @property
216
+ def car_id(self):
217
+ """Gets the car_id of this CriteriaValueDetail. # noqa: E501
218
+
219
+ Car unique identifier # noqa: E501
220
+
221
+ :return: The car_id of this CriteriaValueDetail. # noqa: E501
222
+ :rtype: str
223
+ """
224
+ return self._car_id
225
+
226
+ @car_id.setter
227
+ def car_id(self, car_id):
228
+ """Sets the car_id of this CriteriaValueDetail.
229
+
230
+ Car unique identifier # noqa: E501
231
+
232
+ :param car_id: The car_id of this CriteriaValueDetail. # noqa: E501
233
+ :type: str
234
+ """
235
+
236
+ self._car_id = car_id
237
+
238
+ @property
239
+ def car_name(self):
240
+ """Gets the car_name of this CriteriaValueDetail. # noqa: E501
241
+
242
+ The car name # noqa: E501
243
+
244
+ :return: The car_name of this CriteriaValueDetail. # noqa: E501
245
+ :rtype: str
246
+ """
247
+ return self._car_name
248
+
249
+ @car_name.setter
250
+ def car_name(self, car_name):
251
+ """Sets the car_name of this CriteriaValueDetail.
252
+
253
+ The car name # noqa: E501
254
+
255
+ :param car_name: The car_name of this CriteriaValueDetail. # noqa: E501
256
+ :type: str
257
+ """
258
+
259
+ self._car_name = car_name
260
+
261
+ @property
262
+ def session_id(self):
263
+ """Gets the session_id of this CriteriaValueDetail. # noqa: E501
264
+
265
+ The session unique identifier # noqa: E501
266
+
267
+ :return: The session_id of this CriteriaValueDetail. # noqa: E501
268
+ :rtype: str
269
+ """
270
+ return self._session_id
271
+
272
+ @session_id.setter
273
+ def session_id(self, session_id):
274
+ """Sets the session_id of this CriteriaValueDetail.
275
+
276
+ The session unique identifier # noqa: E501
277
+
278
+ :param session_id: The session_id of this CriteriaValueDetail. # noqa: E501
279
+ :type: str
280
+ """
281
+
282
+ self._session_id = session_id
283
+
284
+ @property
285
+ def session_name(self):
286
+ """Gets the session_name of this CriteriaValueDetail. # noqa: E501
287
+
288
+ The session name # noqa: E501
289
+
290
+ :return: The session_name of this CriteriaValueDetail. # noqa: E501
291
+ :rtype: str
292
+ """
293
+ return self._session_name
294
+
295
+ @session_name.setter
296
+ def session_name(self, session_name):
297
+ """Sets the session_name of this CriteriaValueDetail.
298
+
299
+ The session name # noqa: E501
300
+
301
+ :param session_name: The session_name of this CriteriaValueDetail. # noqa: E501
302
+ :type: str
303
+ """
304
+
305
+ self._session_name = session_name
306
+
307
+ @property
308
+ def run_id(self):
309
+ """Gets the run_id of this CriteriaValueDetail. # noqa: E501
310
+
311
+ The run unique identifier # noqa: E501
312
+
313
+ :return: The run_id of this CriteriaValueDetail. # noqa: E501
314
+ :rtype: str
315
+ """
316
+ return self._run_id
317
+
318
+ @run_id.setter
319
+ def run_id(self, run_id):
320
+ """Sets the run_id of this CriteriaValueDetail.
321
+
322
+ The run unique identifier # noqa: E501
323
+
324
+ :param run_id: The run_id of this CriteriaValueDetail. # noqa: E501
325
+ :type: str
326
+ """
327
+
328
+ self._run_id = run_id
329
+
330
+ @property
331
+ def run_name(self):
332
+ """Gets the run_name of this CriteriaValueDetail. # noqa: E501
333
+
334
+ The run name # noqa: E501
335
+
336
+ :return: The run_name of this CriteriaValueDetail. # noqa: E501
337
+ :rtype: str
338
+ """
339
+ return self._run_name
340
+
341
+ @run_name.setter
342
+ def run_name(self, run_name):
343
+ """Sets the run_name of this CriteriaValueDetail.
344
+
345
+ The run name # noqa: E501
346
+
347
+ :param run_name: The run_name of this CriteriaValueDetail. # noqa: E501
348
+ :type: str
349
+ """
350
+
351
+ self._run_name = run_name
352
+
353
+ @property
354
+ def component_id(self):
355
+ """Gets the component_id of this CriteriaValueDetail. # noqa: E501
356
+
357
+ Component unique identifier (corresponing to the component's revision) # noqa: E501
358
+
359
+ :return: The component_id of this CriteriaValueDetail. # noqa: E501
360
+ :rtype: str
361
+ """
362
+ return self._component_id
363
+
364
+ @component_id.setter
365
+ def component_id(self, component_id):
366
+ """Sets the component_id of this CriteriaValueDetail.
367
+
368
+ Component unique identifier (corresponing to the component's revision) # noqa: E501
369
+
370
+ :param component_id: The component_id of this CriteriaValueDetail. # noqa: E501
371
+ :type: str
372
+ """
373
+
374
+ self._component_id = component_id
375
+
376
+ @property
377
+ def criteria_id(self):
378
+ """Gets the criteria_id of this CriteriaValueDetail. # noqa: E501
379
+
380
+ Criterion unique identifier # noqa: E501
381
+
382
+ :return: The criteria_id of this CriteriaValueDetail. # noqa: E501
383
+ :rtype: str
384
+ """
385
+ return self._criteria_id
386
+
387
+ @criteria_id.setter
388
+ def criteria_id(self, criteria_id):
389
+ """Sets the criteria_id of this CriteriaValueDetail.
390
+
391
+ Criterion unique identifier # noqa: E501
392
+
393
+ :param criteria_id: The criteria_id of this CriteriaValueDetail. # noqa: E501
394
+ :type: str
395
+ """
396
+
397
+ self._criteria_id = criteria_id
398
+
399
+ @property
400
+ def value_double(self):
401
+ """Gets the value_double of this CriteriaValueDetail. # noqa: E501
402
+
403
+ Criterion value of type double # noqa: E501
404
+
405
+ :return: The value_double of this CriteriaValueDetail. # noqa: E501
406
+ :rtype: float
407
+ """
408
+ return self._value_double
409
+
410
+ @value_double.setter
411
+ def value_double(self, value_double):
412
+ """Sets the value_double of this CriteriaValueDetail.
413
+
414
+ Criterion value of type double # noqa: E501
415
+
416
+ :param value_double: The value_double of this CriteriaValueDetail. # noqa: E501
417
+ :type: float
418
+ """
419
+
420
+ self._value_double = value_double
421
+
422
+ @property
423
+ def value_int(self):
424
+ """Gets the value_int of this CriteriaValueDetail. # noqa: E501
425
+
426
+ Criterion value of type int # noqa: E501
427
+
428
+ :return: The value_int of this CriteriaValueDetail. # noqa: E501
429
+ :rtype: int
430
+ """
431
+ return self._value_int
432
+
433
+ @value_int.setter
434
+ def value_int(self, value_int):
435
+ """Sets the value_int of this CriteriaValueDetail.
436
+
437
+ Criterion value of type int # noqa: E501
438
+
439
+ :param value_int: The value_int of this CriteriaValueDetail. # noqa: E501
440
+ :type: int
441
+ """
442
+
443
+ self._value_int = value_int
444
+
445
+ @property
446
+ def value_time(self):
447
+ """Gets the value_time of this CriteriaValueDetail. # noqa: E501
448
+
449
+ Criterion value of type double (in seconds) # noqa: E501
450
+
451
+ :return: The value_time of this CriteriaValueDetail. # noqa: E501
452
+ :rtype: float
453
+ """
454
+ return self._value_time
455
+
456
+ @value_time.setter
457
+ def value_time(self, value_time):
458
+ """Sets the value_time of this CriteriaValueDetail.
459
+
460
+ Criterion value of type double (in seconds) # noqa: E501
461
+
462
+ :param value_time: The value_time of this CriteriaValueDetail. # noqa: E501
463
+ :type: float
464
+ """
465
+
466
+ self._value_time = value_time
467
+
468
+ @property
469
+ def criterion_name(self):
470
+ """Gets the criterion_name of this CriteriaValueDetail. # noqa: E501
471
+
472
+ Criterion name # noqa: E501
473
+
474
+ :return: The criterion_name of this CriteriaValueDetail. # noqa: E501
475
+ :rtype: str
476
+ """
477
+ return self._criterion_name
478
+
479
+ @criterion_name.setter
480
+ def criterion_name(self, criterion_name):
481
+ """Sets the criterion_name of this CriteriaValueDetail.
482
+
483
+ Criterion name # noqa: E501
484
+
485
+ :param criterion_name: The criterion_name of this CriteriaValueDetail. # noqa: E501
486
+ :type: str
487
+ """
488
+
489
+ self._criterion_name = criterion_name
490
+
491
+ @property
492
+ def distance_run(self):
493
+ """Gets the distance_run of this CriteriaValueDetail. # noqa: E501
494
+
495
+ Distance realized on the run # noqa: E501
496
+
497
+ :return: The distance_run of this CriteriaValueDetail. # noqa: E501
498
+ :rtype: float
499
+ """
500
+ return self._distance_run
501
+
502
+ @distance_run.setter
503
+ def distance_run(self, distance_run):
504
+ """Sets the distance_run of this CriteriaValueDetail.
505
+
506
+ Distance realized on the run # noqa: E501
507
+
508
+ :param distance_run: The distance_run of this CriteriaValueDetail. # noqa: E501
509
+ :type: float
510
+ """
511
+
512
+ self._distance_run = distance_run
513
+
514
+ @property
515
+ def time_run(self):
516
+ """Gets the time_run of this CriteriaValueDetail. # noqa: E501
517
+
518
+ Time elapsed in seconds on the run # noqa: E501
519
+
520
+ :return: The time_run of this CriteriaValueDetail. # noqa: E501
521
+ :rtype: float
522
+ """
523
+ return self._time_run
524
+
525
+ @time_run.setter
526
+ def time_run(self, time_run):
527
+ """Sets the time_run of this CriteriaValueDetail.
528
+
529
+ Time elapsed in seconds on the run # noqa: E501
530
+
531
+ :param time_run: The time_run of this CriteriaValueDetail. # noqa: E501
532
+ :type: float
533
+ """
534
+
535
+ self._time_run = time_run
536
+
537
+ @property
538
+ def distance_run_factored(self):
539
+ """Gets the distance_run_factored of this CriteriaValueDetail. # noqa: E501
540
+
541
+ Factored distance realized on the run # noqa: E501
542
+
543
+ :return: The distance_run_factored of this CriteriaValueDetail. # noqa: E501
544
+ :rtype: float
545
+ """
546
+ return self._distance_run_factored
547
+
548
+ @distance_run_factored.setter
549
+ def distance_run_factored(self, distance_run_factored):
550
+ """Sets the distance_run_factored of this CriteriaValueDetail.
551
+
552
+ Factored distance realized on the run # noqa: E501
553
+
554
+ :param distance_run_factored: The distance_run_factored of this CriteriaValueDetail. # noqa: E501
555
+ :type: float
556
+ """
557
+
558
+ self._distance_run_factored = distance_run_factored
559
+
560
+ @property
561
+ def distance_run_power(self):
562
+ """Gets the distance_run_power of this CriteriaValueDetail. # noqa: E501
563
+
564
+ La distance pleine charge parcourue par le component # noqa: E501
565
+
566
+ :return: The distance_run_power of this CriteriaValueDetail. # noqa: E501
567
+ :rtype: float
568
+ """
569
+ return self._distance_run_power
570
+
571
+ @distance_run_power.setter
572
+ def distance_run_power(self, distance_run_power):
573
+ """Sets the distance_run_power of this CriteriaValueDetail.
574
+
575
+ La distance pleine charge parcourue par le component # noqa: E501
576
+
577
+ :param distance_run_power: The distance_run_power of this CriteriaValueDetail. # noqa: E501
578
+ :type: float
579
+ """
580
+
581
+ self._distance_run_power = distance_run_power
582
+
583
+ @property
584
+ def time_run_power(self):
585
+ """Gets the time_run_power of this CriteriaValueDetail. # noqa: E501
586
+
587
+ Time elapsed in seconds during power mode on the run # noqa: E501
588
+
589
+ :return: The time_run_power of this CriteriaValueDetail. # noqa: E501
590
+ :rtype: float
591
+ """
592
+ return self._time_run_power
593
+
594
+ @time_run_power.setter
595
+ def time_run_power(self, time_run_power):
596
+ """Sets the time_run_power of this CriteriaValueDetail.
597
+
598
+ Time elapsed in seconds during power mode on the run # noqa: E501
599
+
600
+ :param time_run_power: The time_run_power of this CriteriaValueDetail. # noqa: E501
601
+ :type: float
602
+ """
603
+
604
+ self._time_run_power = time_run_power
605
+
606
+ @property
607
+ def energy_run(self):
608
+ """Gets the energy_run of this CriteriaValueDetail. # noqa: E501
609
+
610
+ Energy level on the run # noqa: E501
611
+
612
+ :return: The energy_run of this CriteriaValueDetail. # noqa: E501
613
+ :rtype: float
614
+ """
615
+ return self._energy_run
616
+
617
+ @energy_run.setter
618
+ def energy_run(self, energy_run):
619
+ """Sets the energy_run of this CriteriaValueDetail.
620
+
621
+ Energy level on the run # noqa: E501
622
+
623
+ :param energy_run: The energy_run of this CriteriaValueDetail. # noqa: E501
624
+ :type: float
625
+ """
626
+
627
+ self._energy_run = energy_run
628
+
629
+ def to_dict(self):
630
+ """Returns the model properties as a dict"""
631
+ result = {}
632
+
633
+ for attr, _ in six.iteritems(self.swagger_types):
634
+ value = getattr(self, attr)
635
+ if isinstance(value, list):
636
+ result[attr] = list(map(
637
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
638
+ value
639
+ ))
640
+ elif hasattr(value, "to_dict"):
641
+ result[attr] = value.to_dict()
642
+ elif isinstance(value, dict):
643
+ result[attr] = dict(map(
644
+ lambda item: (item[0], item[1].to_dict())
645
+ if hasattr(item[1], "to_dict") else item,
646
+ value.items()
647
+ ))
648
+ else:
649
+ result[attr] = value
650
+ if issubclass(CriteriaValueDetail, dict):
651
+ for key, value in self.items():
652
+ result[key] = value
653
+
654
+ return result
655
+
656
+ def to_str(self):
657
+ """Returns the string representation of the model"""
658
+ return pprint.pformat(self.to_dict())
659
+
660
+ def __repr__(self):
661
+ """For `print` and `pprint`"""
662
+ return self.to_str()
663
+
664
+ def __eq__(self, other):
665
+ """Returns true if both objects are equal"""
666
+ if not isinstance(other, CriteriaValueDetail):
667
+ return False
668
+
669
+ return self.__dict__ == other.__dict__
670
+
671
+ def __ne__(self, other):
672
+ """Returns true if both objects are not equal"""
673
+ return not self == other
@@ -175,7 +175,7 @@ class FixedField(object):
175
175
  """
176
176
  if entity_type is None:
177
177
  raise ValueError("Invalid value for `entity_type`, must not be `None`") # noqa: E501
178
- allowed_values = ["Event", "Session", "Run", "Lap", "Car"] # noqa: E501
178
+ allowed_values = ["Event", "Session", "Run", "Lap", "Car", "Overall"] # noqa: E501
179
179
  if entity_type not in allowed_values:
180
180
  raise ValueError(
181
181
  "Invalid value for `entity_type` ({0}), must be one of {1}" # noqa: E501
@@ -250,7 +250,7 @@ class ModelField(object):
250
250
  """
251
251
  if type_of_model_field is None:
252
252
  raise ValueError("Invalid value for `type_of_model_field`, must not be `None`") # noqa: E501
253
- allowed_values = ["Event", "Session", "Run", "Lap", "Car"] # noqa: E501
253
+ allowed_values = ["Event", "Session", "Run", "Lap", "Car", "Overall"] # noqa: E501
254
254
  if type_of_model_field not in allowed_values:
255
255
  raise ValueError(
256
256
  "Invalid value for `type_of_model_field` ({0}), must be one of {1}" # noqa: E501