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.
- teamdbapi/__init__.py +11 -0
- teamdbapi/api/__init__.py +5 -0
- teamdbapi/api/assembly_api.py +23 -23
- teamdbapi/api/component_api.py +954 -0
- teamdbapi/api/criteria_api.py +126 -0
- teamdbapi/api/import_export_api.py +85 -0
- teamdbapi/api/lap_report_api.py +5 -1
- teamdbapi/api/mounting_api.py +219 -0
- teamdbapi/api/part_api.py +304 -0
- teamdbapi/api/update_request_api.py +235 -0
- teamdbapi/api_client.py +4 -8
- teamdbapi/configuration.py +5 -12
- teamdbapi/models/__init__.py +6 -0
- teamdbapi/models/assembly.py +1 -0
- teamdbapi/models/bleed_adjustment.py +1 -0
- teamdbapi/models/calibration.py +1 -0
- teamdbapi/models/car.py +1 -0
- teamdbapi/models/car_parameters_context.py +1 -0
- teamdbapi/models/compare_options.py +1 -0
- teamdbapi/models/compare_result.py +1 -0
- teamdbapi/models/compare_result_detail.py +2 -0
- teamdbapi/models/component.py +1217 -0
- teamdbapi/models/copy_from_tags_args.py +2 -0
- teamdbapi/models/couple_guid_text.py +1 -0
- teamdbapi/models/criteria.py +430 -0
- teamdbapi/models/criteria_value.py +197 -0
- teamdbapi/models/event.py +1 -0
- teamdbapi/models/fixed_field.py +2 -1
- teamdbapi/models/group.py +1 -0
- teamdbapi/models/import_parameters_args.py +1 -0
- teamdbapi/models/import_parameters_results.py +2 -0
- teamdbapi/models/item_value.py +1 -0
- teamdbapi/models/item_value_key.py +1 -0
- teamdbapi/models/lap.py +1 -0
- teamdbapi/models/lap_report_options.py +1 -0
- teamdbapi/models/model_field.py +3 -1
- teamdbapi/models/model_field_authorization.py +1 -0
- teamdbapi/models/mounting.py +489 -0
- teamdbapi/models/notes_authorization.py +1 -0
- teamdbapi/models/notes_context.py +1 -0
- teamdbapi/models/parameter.py +2 -0
- teamdbapi/models/parameter_cross_table.py +1 -0
- teamdbapi/models/part.py +963 -0
- teamdbapi/models/part_count.py +228 -0
- teamdbapi/models/problem_details.py +2 -6
- teamdbapi/models/revision.py +88 -3
- teamdbapi/models/revision_value.py +1 -0
- teamdbapi/models/run.py +1 -0
- teamdbapi/models/script.py +1 -0
- teamdbapi/models/session.py +1 -0
- teamdbapi/models/string_with_font_style.py +1 -0
- teamdbapi/models/target.py +64 -7
- teamdbapi/models/team_db_list.py +1 -0
- teamdbapi/models/team_db_list_item.py +1 -0
- teamdbapi/models/tire.py +2 -0
- teamdbapi/models/tire_set.py +2 -0
- teamdbapi/models/track.py +1 -0
- teamdbapi/models/track_layout.py +1 -0
- teamdbapi/models/user.py +1 -0
- teamdbapi/models/user_group.py +1 -0
- teamdbapi/models/value_field.py +1 -0
- teamdbapi/models/version.py +1 -0
- teamdbapi/rest.py +6 -1
- {teamdbapi-2.37.2.dist-info → teamdbapi-3.0.0.dist-info}/METADATA +3 -3
- teamdbapi-3.0.0.dist-info/RECORD +93 -0
- teamdbapi-2.37.2.dist-info/RECORD +0 -82
- {teamdbapi-2.37.2.dist-info → teamdbapi-3.0.0.dist-info}/LICENSE +0 -0
- {teamdbapi-2.37.2.dist-info → teamdbapi-3.0.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,430 @@
|
|
|
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 Criteria(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
|
+
'id': 'str',
|
|
33
|
+
'name': 'str',
|
|
34
|
+
'description': 'str',
|
|
35
|
+
'field_id': 'str',
|
|
36
|
+
'aggregation_type': 'str',
|
|
37
|
+
'unit': 'str',
|
|
38
|
+
'target_value_double': 'float',
|
|
39
|
+
'target_value_int': 'int',
|
|
40
|
+
'target_value_time': 'int',
|
|
41
|
+
'decimal_number': 'int',
|
|
42
|
+
'last_update_date_utc': 'datetime',
|
|
43
|
+
'last_update_user': 'str'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
'id': 'Id',
|
|
48
|
+
'name': 'Name',
|
|
49
|
+
'description': 'Description',
|
|
50
|
+
'field_id': 'FieldId',
|
|
51
|
+
'aggregation_type': 'AggregationType',
|
|
52
|
+
'unit': 'Unit',
|
|
53
|
+
'target_value_double': 'TargetValueDouble',
|
|
54
|
+
'target_value_int': 'TargetValueInt',
|
|
55
|
+
'target_value_time': 'TargetValueTime',
|
|
56
|
+
'decimal_number': 'DecimalNumber',
|
|
57
|
+
'last_update_date_utc': 'LastUpdateDateUtc',
|
|
58
|
+
'last_update_user': 'LastUpdateUser'
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
def __init__(self, id=None, name=None, description=None, field_id=None, aggregation_type=None, unit=None, target_value_double=None, target_value_int=None, target_value_time=None, decimal_number=None, last_update_date_utc=None, last_update_user=None): # noqa: E501
|
|
62
|
+
"""Criteria - a model defined in Swagger""" # noqa: E501
|
|
63
|
+
self._id = None
|
|
64
|
+
self._name = None
|
|
65
|
+
self._description = None
|
|
66
|
+
self._field_id = None
|
|
67
|
+
self._aggregation_type = None
|
|
68
|
+
self._unit = None
|
|
69
|
+
self._target_value_double = None
|
|
70
|
+
self._target_value_int = None
|
|
71
|
+
self._target_value_time = None
|
|
72
|
+
self._decimal_number = None
|
|
73
|
+
self._last_update_date_utc = None
|
|
74
|
+
self._last_update_user = None
|
|
75
|
+
self.discriminator = None
|
|
76
|
+
self.id = id
|
|
77
|
+
self.name = name
|
|
78
|
+
if description is not None:
|
|
79
|
+
self.description = description
|
|
80
|
+
self.field_id = field_id
|
|
81
|
+
if aggregation_type is not None:
|
|
82
|
+
self.aggregation_type = aggregation_type
|
|
83
|
+
if unit is not None:
|
|
84
|
+
self.unit = unit
|
|
85
|
+
if target_value_double is not None:
|
|
86
|
+
self.target_value_double = target_value_double
|
|
87
|
+
if target_value_int is not None:
|
|
88
|
+
self.target_value_int = target_value_int
|
|
89
|
+
if target_value_time is not None:
|
|
90
|
+
self.target_value_time = target_value_time
|
|
91
|
+
if decimal_number is not None:
|
|
92
|
+
self.decimal_number = decimal_number
|
|
93
|
+
if last_update_date_utc is not None:
|
|
94
|
+
self.last_update_date_utc = last_update_date_utc
|
|
95
|
+
if last_update_user is not None:
|
|
96
|
+
self.last_update_user = last_update_user
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
def id(self):
|
|
100
|
+
"""Gets the id of this Criteria. # noqa: E501
|
|
101
|
+
|
|
102
|
+
Criteria unique identifier. Set the Criteria to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new criteria. # noqa: E501
|
|
103
|
+
|
|
104
|
+
:return: The id of this Criteria. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._id
|
|
108
|
+
|
|
109
|
+
@id.setter
|
|
110
|
+
def id(self, id):
|
|
111
|
+
"""Sets the id of this Criteria.
|
|
112
|
+
|
|
113
|
+
Criteria unique identifier. Set the Criteria to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new criteria. # noqa: E501
|
|
114
|
+
|
|
115
|
+
:param id: The id of this Criteria. # noqa: E501
|
|
116
|
+
:type: str
|
|
117
|
+
"""
|
|
118
|
+
if id is None:
|
|
119
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
|
120
|
+
|
|
121
|
+
self._id = id
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def name(self):
|
|
125
|
+
"""Gets the name of this Criteria. # noqa: E501
|
|
126
|
+
|
|
127
|
+
Name of the criteria # noqa: E501
|
|
128
|
+
|
|
129
|
+
:return: The name of this Criteria. # noqa: E501
|
|
130
|
+
:rtype: str
|
|
131
|
+
"""
|
|
132
|
+
return self._name
|
|
133
|
+
|
|
134
|
+
@name.setter
|
|
135
|
+
def name(self, name):
|
|
136
|
+
"""Sets the name of this Criteria.
|
|
137
|
+
|
|
138
|
+
Name of the criteria # noqa: E501
|
|
139
|
+
|
|
140
|
+
:param name: The name of this Criteria. # noqa: E501
|
|
141
|
+
:type: str
|
|
142
|
+
"""
|
|
143
|
+
if name is None:
|
|
144
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
145
|
+
|
|
146
|
+
self._name = name
|
|
147
|
+
|
|
148
|
+
@property
|
|
149
|
+
def description(self):
|
|
150
|
+
"""Gets the description of this Criteria. # noqa: E501
|
|
151
|
+
|
|
152
|
+
Description of the criteria # noqa: E501
|
|
153
|
+
|
|
154
|
+
:return: The description of this Criteria. # noqa: E501
|
|
155
|
+
:rtype: str
|
|
156
|
+
"""
|
|
157
|
+
return self._description
|
|
158
|
+
|
|
159
|
+
@description.setter
|
|
160
|
+
def description(self, description):
|
|
161
|
+
"""Sets the description of this Criteria.
|
|
162
|
+
|
|
163
|
+
Description of the criteria # noqa: E501
|
|
164
|
+
|
|
165
|
+
:param description: The description of this Criteria. # noqa: E501
|
|
166
|
+
:type: str
|
|
167
|
+
"""
|
|
168
|
+
|
|
169
|
+
self._description = description
|
|
170
|
+
|
|
171
|
+
@property
|
|
172
|
+
def field_id(self):
|
|
173
|
+
"""Gets the field_id of this Criteria. # noqa: E501
|
|
174
|
+
|
|
175
|
+
Field associated with the criteria # noqa: E501
|
|
176
|
+
|
|
177
|
+
:return: The field_id of this Criteria. # noqa: E501
|
|
178
|
+
:rtype: str
|
|
179
|
+
"""
|
|
180
|
+
return self._field_id
|
|
181
|
+
|
|
182
|
+
@field_id.setter
|
|
183
|
+
def field_id(self, field_id):
|
|
184
|
+
"""Sets the field_id of this Criteria.
|
|
185
|
+
|
|
186
|
+
Field associated with the criteria # noqa: E501
|
|
187
|
+
|
|
188
|
+
:param field_id: The field_id of this Criteria. # noqa: E501
|
|
189
|
+
:type: str
|
|
190
|
+
"""
|
|
191
|
+
if field_id is None:
|
|
192
|
+
raise ValueError("Invalid value for `field_id`, must not be `None`") # noqa: E501
|
|
193
|
+
|
|
194
|
+
self._field_id = field_id
|
|
195
|
+
|
|
196
|
+
@property
|
|
197
|
+
def aggregation_type(self):
|
|
198
|
+
"""Gets the aggregation_type of this Criteria. # noqa: E501
|
|
199
|
+
|
|
200
|
+
Type of criteria aggregation # noqa: E501
|
|
201
|
+
|
|
202
|
+
:return: The aggregation_type of this Criteria. # noqa: E501
|
|
203
|
+
:rtype: str
|
|
204
|
+
"""
|
|
205
|
+
return self._aggregation_type
|
|
206
|
+
|
|
207
|
+
@aggregation_type.setter
|
|
208
|
+
def aggregation_type(self, aggregation_type):
|
|
209
|
+
"""Sets the aggregation_type of this Criteria.
|
|
210
|
+
|
|
211
|
+
Type of criteria aggregation # noqa: E501
|
|
212
|
+
|
|
213
|
+
:param aggregation_type: The aggregation_type of this Criteria. # noqa: E501
|
|
214
|
+
:type: str
|
|
215
|
+
"""
|
|
216
|
+
allowed_values = ["None", "Sum", "Min", "Max"] # noqa: E501
|
|
217
|
+
if aggregation_type not in allowed_values:
|
|
218
|
+
raise ValueError(
|
|
219
|
+
"Invalid value for `aggregation_type` ({0}), must be one of {1}" # noqa: E501
|
|
220
|
+
.format(aggregation_type, allowed_values)
|
|
221
|
+
)
|
|
222
|
+
|
|
223
|
+
self._aggregation_type = aggregation_type
|
|
224
|
+
|
|
225
|
+
@property
|
|
226
|
+
def unit(self):
|
|
227
|
+
"""Gets the unit of this Criteria. # noqa: E501
|
|
228
|
+
|
|
229
|
+
Criteria value unit # noqa: E501
|
|
230
|
+
|
|
231
|
+
:return: The unit of this Criteria. # noqa: E501
|
|
232
|
+
:rtype: str
|
|
233
|
+
"""
|
|
234
|
+
return self._unit
|
|
235
|
+
|
|
236
|
+
@unit.setter
|
|
237
|
+
def unit(self, unit):
|
|
238
|
+
"""Sets the unit of this Criteria.
|
|
239
|
+
|
|
240
|
+
Criteria value unit # noqa: E501
|
|
241
|
+
|
|
242
|
+
:param unit: The unit of this Criteria. # noqa: E501
|
|
243
|
+
:type: str
|
|
244
|
+
"""
|
|
245
|
+
|
|
246
|
+
self._unit = unit
|
|
247
|
+
|
|
248
|
+
@property
|
|
249
|
+
def target_value_double(self):
|
|
250
|
+
"""Gets the target_value_double of this Criteria. # noqa: E501
|
|
251
|
+
|
|
252
|
+
The target value of the criteria (in double) # noqa: E501
|
|
253
|
+
|
|
254
|
+
:return: The target_value_double of this Criteria. # noqa: E501
|
|
255
|
+
:rtype: float
|
|
256
|
+
"""
|
|
257
|
+
return self._target_value_double
|
|
258
|
+
|
|
259
|
+
@target_value_double.setter
|
|
260
|
+
def target_value_double(self, target_value_double):
|
|
261
|
+
"""Sets the target_value_double of this Criteria.
|
|
262
|
+
|
|
263
|
+
The target value of the criteria (in double) # noqa: E501
|
|
264
|
+
|
|
265
|
+
:param target_value_double: The target_value_double of this Criteria. # noqa: E501
|
|
266
|
+
:type: float
|
|
267
|
+
"""
|
|
268
|
+
|
|
269
|
+
self._target_value_double = target_value_double
|
|
270
|
+
|
|
271
|
+
@property
|
|
272
|
+
def target_value_int(self):
|
|
273
|
+
"""Gets the target_value_int of this Criteria. # noqa: E501
|
|
274
|
+
|
|
275
|
+
The target value of the criteria (in integer) # noqa: E501
|
|
276
|
+
|
|
277
|
+
:return: The target_value_int of this Criteria. # noqa: E501
|
|
278
|
+
:rtype: int
|
|
279
|
+
"""
|
|
280
|
+
return self._target_value_int
|
|
281
|
+
|
|
282
|
+
@target_value_int.setter
|
|
283
|
+
def target_value_int(self, target_value_int):
|
|
284
|
+
"""Sets the target_value_int of this Criteria.
|
|
285
|
+
|
|
286
|
+
The target value of the criteria (in integer) # noqa: E501
|
|
287
|
+
|
|
288
|
+
:param target_value_int: The target_value_int of this Criteria. # noqa: E501
|
|
289
|
+
:type: int
|
|
290
|
+
"""
|
|
291
|
+
|
|
292
|
+
self._target_value_int = target_value_int
|
|
293
|
+
|
|
294
|
+
@property
|
|
295
|
+
def target_value_time(self):
|
|
296
|
+
"""Gets the target_value_time of this Criteria. # noqa: E501
|
|
297
|
+
|
|
298
|
+
The target value of the criteria (in time) # noqa: E501
|
|
299
|
+
|
|
300
|
+
:return: The target_value_time of this Criteria. # noqa: E501
|
|
301
|
+
:rtype: int
|
|
302
|
+
"""
|
|
303
|
+
return self._target_value_time
|
|
304
|
+
|
|
305
|
+
@target_value_time.setter
|
|
306
|
+
def target_value_time(self, target_value_time):
|
|
307
|
+
"""Sets the target_value_time of this Criteria.
|
|
308
|
+
|
|
309
|
+
The target value of the criteria (in time) # noqa: E501
|
|
310
|
+
|
|
311
|
+
:param target_value_time: The target_value_time of this Criteria. # noqa: E501
|
|
312
|
+
:type: int
|
|
313
|
+
"""
|
|
314
|
+
|
|
315
|
+
self._target_value_time = target_value_time
|
|
316
|
+
|
|
317
|
+
@property
|
|
318
|
+
def decimal_number(self):
|
|
319
|
+
"""Gets the decimal_number of this Criteria. # noqa: E501
|
|
320
|
+
|
|
321
|
+
The number of decimal places for the double value of the criteria # noqa: E501
|
|
322
|
+
|
|
323
|
+
:return: The decimal_number of this Criteria. # noqa: E501
|
|
324
|
+
:rtype: int
|
|
325
|
+
"""
|
|
326
|
+
return self._decimal_number
|
|
327
|
+
|
|
328
|
+
@decimal_number.setter
|
|
329
|
+
def decimal_number(self, decimal_number):
|
|
330
|
+
"""Sets the decimal_number of this Criteria.
|
|
331
|
+
|
|
332
|
+
The number of decimal places for the double value of the criteria # noqa: E501
|
|
333
|
+
|
|
334
|
+
:param decimal_number: The decimal_number of this Criteria. # noqa: E501
|
|
335
|
+
:type: int
|
|
336
|
+
"""
|
|
337
|
+
|
|
338
|
+
self._decimal_number = decimal_number
|
|
339
|
+
|
|
340
|
+
@property
|
|
341
|
+
def last_update_date_utc(self):
|
|
342
|
+
"""Gets the last_update_date_utc of this Criteria. # noqa: E501
|
|
343
|
+
|
|
344
|
+
Last update utc date of the criteria # noqa: E501
|
|
345
|
+
|
|
346
|
+
:return: The last_update_date_utc of this Criteria. # noqa: E501
|
|
347
|
+
:rtype: datetime
|
|
348
|
+
"""
|
|
349
|
+
return self._last_update_date_utc
|
|
350
|
+
|
|
351
|
+
@last_update_date_utc.setter
|
|
352
|
+
def last_update_date_utc(self, last_update_date_utc):
|
|
353
|
+
"""Sets the last_update_date_utc of this Criteria.
|
|
354
|
+
|
|
355
|
+
Last update utc date of the criteria # noqa: E501
|
|
356
|
+
|
|
357
|
+
:param last_update_date_utc: The last_update_date_utc of this Criteria. # noqa: E501
|
|
358
|
+
:type: datetime
|
|
359
|
+
"""
|
|
360
|
+
|
|
361
|
+
self._last_update_date_utc = last_update_date_utc
|
|
362
|
+
|
|
363
|
+
@property
|
|
364
|
+
def last_update_user(self):
|
|
365
|
+
"""Gets the last_update_user of this Criteria. # noqa: E501
|
|
366
|
+
|
|
367
|
+
The name of the user who performed the last update on the criteria # noqa: E501
|
|
368
|
+
|
|
369
|
+
:return: The last_update_user of this Criteria. # noqa: E501
|
|
370
|
+
:rtype: str
|
|
371
|
+
"""
|
|
372
|
+
return self._last_update_user
|
|
373
|
+
|
|
374
|
+
@last_update_user.setter
|
|
375
|
+
def last_update_user(self, last_update_user):
|
|
376
|
+
"""Sets the last_update_user of this Criteria.
|
|
377
|
+
|
|
378
|
+
The name of the user who performed the last update on the criteria # noqa: E501
|
|
379
|
+
|
|
380
|
+
:param last_update_user: The last_update_user of this Criteria. # noqa: E501
|
|
381
|
+
:type: str
|
|
382
|
+
"""
|
|
383
|
+
|
|
384
|
+
self._last_update_user = last_update_user
|
|
385
|
+
|
|
386
|
+
def to_dict(self):
|
|
387
|
+
"""Returns the model properties as a dict"""
|
|
388
|
+
result = {}
|
|
389
|
+
|
|
390
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
391
|
+
value = getattr(self, attr)
|
|
392
|
+
if isinstance(value, list):
|
|
393
|
+
result[attr] = list(map(
|
|
394
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
395
|
+
value
|
|
396
|
+
))
|
|
397
|
+
elif hasattr(value, "to_dict"):
|
|
398
|
+
result[attr] = value.to_dict()
|
|
399
|
+
elif isinstance(value, dict):
|
|
400
|
+
result[attr] = dict(map(
|
|
401
|
+
lambda item: (item[0], item[1].to_dict())
|
|
402
|
+
if hasattr(item[1], "to_dict") else item,
|
|
403
|
+
value.items()
|
|
404
|
+
))
|
|
405
|
+
else:
|
|
406
|
+
result[attr] = value
|
|
407
|
+
if issubclass(Criteria, dict):
|
|
408
|
+
for key, value in self.items():
|
|
409
|
+
result[key] = value
|
|
410
|
+
|
|
411
|
+
return result
|
|
412
|
+
|
|
413
|
+
def to_str(self):
|
|
414
|
+
"""Returns the string representation of the model"""
|
|
415
|
+
return pprint.pformat(self.to_dict())
|
|
416
|
+
|
|
417
|
+
def __repr__(self):
|
|
418
|
+
"""For `print` and `pprint`"""
|
|
419
|
+
return self.to_str()
|
|
420
|
+
|
|
421
|
+
def __eq__(self, other):
|
|
422
|
+
"""Returns true if both objects are equal"""
|
|
423
|
+
if not isinstance(other, Criteria):
|
|
424
|
+
return False
|
|
425
|
+
|
|
426
|
+
return self.__dict__ == other.__dict__
|
|
427
|
+
|
|
428
|
+
def __ne__(self, other):
|
|
429
|
+
"""Returns true if both objects are not equal"""
|
|
430
|
+
return not self == other
|
|
@@ -0,0 +1,197 @@
|
|
|
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 CriteriaValue(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
|
+
'criteria_id': 'str',
|
|
33
|
+
'value_double': 'float',
|
|
34
|
+
'value_int': 'int',
|
|
35
|
+
'value_time': 'int'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
attribute_map = {
|
|
39
|
+
'criteria_id': 'CriteriaId',
|
|
40
|
+
'value_double': 'ValueDouble',
|
|
41
|
+
'value_int': 'ValueInt',
|
|
42
|
+
'value_time': 'ValueTime'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, criteria_id=None, value_double=None, value_int=None, value_time=None): # noqa: E501
|
|
46
|
+
"""CriteriaValue - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
self._criteria_id = None
|
|
48
|
+
self._value_double = None
|
|
49
|
+
self._value_int = None
|
|
50
|
+
self._value_time = None
|
|
51
|
+
self.discriminator = None
|
|
52
|
+
if criteria_id is not None:
|
|
53
|
+
self.criteria_id = criteria_id
|
|
54
|
+
if value_double is not None:
|
|
55
|
+
self.value_double = value_double
|
|
56
|
+
if value_int is not None:
|
|
57
|
+
self.value_int = value_int
|
|
58
|
+
if value_time is not None:
|
|
59
|
+
self.value_time = value_time
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def criteria_id(self):
|
|
63
|
+
"""Gets the criteria_id of this CriteriaValue. # noqa: E501
|
|
64
|
+
|
|
65
|
+
The criteria unique identifier # noqa: E501
|
|
66
|
+
|
|
67
|
+
:return: The criteria_id of this CriteriaValue. # noqa: E501
|
|
68
|
+
:rtype: str
|
|
69
|
+
"""
|
|
70
|
+
return self._criteria_id
|
|
71
|
+
|
|
72
|
+
@criteria_id.setter
|
|
73
|
+
def criteria_id(self, criteria_id):
|
|
74
|
+
"""Sets the criteria_id of this CriteriaValue.
|
|
75
|
+
|
|
76
|
+
The criteria unique identifier # noqa: E501
|
|
77
|
+
|
|
78
|
+
:param criteria_id: The criteria_id of this CriteriaValue. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._criteria_id = criteria_id
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def value_double(self):
|
|
86
|
+
"""Gets the value_double of this CriteriaValue. # noqa: E501
|
|
87
|
+
|
|
88
|
+
The double value for the criteria # noqa: E501
|
|
89
|
+
|
|
90
|
+
:return: The value_double of this CriteriaValue. # noqa: E501
|
|
91
|
+
:rtype: float
|
|
92
|
+
"""
|
|
93
|
+
return self._value_double
|
|
94
|
+
|
|
95
|
+
@value_double.setter
|
|
96
|
+
def value_double(self, value_double):
|
|
97
|
+
"""Sets the value_double of this CriteriaValue.
|
|
98
|
+
|
|
99
|
+
The double value for the criteria # noqa: E501
|
|
100
|
+
|
|
101
|
+
:param value_double: The value_double of this CriteriaValue. # noqa: E501
|
|
102
|
+
:type: float
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
self._value_double = value_double
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def value_int(self):
|
|
109
|
+
"""Gets the value_int of this CriteriaValue. # noqa: E501
|
|
110
|
+
|
|
111
|
+
The integer value for the criteria # noqa: E501
|
|
112
|
+
|
|
113
|
+
:return: The value_int of this CriteriaValue. # noqa: E501
|
|
114
|
+
:rtype: int
|
|
115
|
+
"""
|
|
116
|
+
return self._value_int
|
|
117
|
+
|
|
118
|
+
@value_int.setter
|
|
119
|
+
def value_int(self, value_int):
|
|
120
|
+
"""Sets the value_int of this CriteriaValue.
|
|
121
|
+
|
|
122
|
+
The integer value for the criteria # noqa: E501
|
|
123
|
+
|
|
124
|
+
:param value_int: The value_int of this CriteriaValue. # noqa: E501
|
|
125
|
+
:type: int
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
self._value_int = value_int
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
def value_time(self):
|
|
132
|
+
"""Gets the value_time of this CriteriaValue. # noqa: E501
|
|
133
|
+
|
|
134
|
+
The timespan value for the criteria # noqa: E501
|
|
135
|
+
|
|
136
|
+
:return: The value_time of this CriteriaValue. # noqa: E501
|
|
137
|
+
:rtype: int
|
|
138
|
+
"""
|
|
139
|
+
return self._value_time
|
|
140
|
+
|
|
141
|
+
@value_time.setter
|
|
142
|
+
def value_time(self, value_time):
|
|
143
|
+
"""Sets the value_time of this CriteriaValue.
|
|
144
|
+
|
|
145
|
+
The timespan value for the criteria # noqa: E501
|
|
146
|
+
|
|
147
|
+
:param value_time: The value_time of this CriteriaValue. # noqa: E501
|
|
148
|
+
:type: int
|
|
149
|
+
"""
|
|
150
|
+
|
|
151
|
+
self._value_time = value_time
|
|
152
|
+
|
|
153
|
+
def to_dict(self):
|
|
154
|
+
"""Returns the model properties as a dict"""
|
|
155
|
+
result = {}
|
|
156
|
+
|
|
157
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
158
|
+
value = getattr(self, attr)
|
|
159
|
+
if isinstance(value, list):
|
|
160
|
+
result[attr] = list(map(
|
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
162
|
+
value
|
|
163
|
+
))
|
|
164
|
+
elif hasattr(value, "to_dict"):
|
|
165
|
+
result[attr] = value.to_dict()
|
|
166
|
+
elif isinstance(value, dict):
|
|
167
|
+
result[attr] = dict(map(
|
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
|
170
|
+
value.items()
|
|
171
|
+
))
|
|
172
|
+
else:
|
|
173
|
+
result[attr] = value
|
|
174
|
+
if issubclass(CriteriaValue, dict):
|
|
175
|
+
for key, value in self.items():
|
|
176
|
+
result[key] = value
|
|
177
|
+
|
|
178
|
+
return result
|
|
179
|
+
|
|
180
|
+
def to_str(self):
|
|
181
|
+
"""Returns the string representation of the model"""
|
|
182
|
+
return pprint.pformat(self.to_dict())
|
|
183
|
+
|
|
184
|
+
def __repr__(self):
|
|
185
|
+
"""For `print` and `pprint`"""
|
|
186
|
+
return self.to_str()
|
|
187
|
+
|
|
188
|
+
def __eq__(self, other):
|
|
189
|
+
"""Returns true if both objects are equal"""
|
|
190
|
+
if not isinstance(other, CriteriaValue):
|
|
191
|
+
return False
|
|
192
|
+
|
|
193
|
+
return self.__dict__ == other.__dict__
|
|
194
|
+
|
|
195
|
+
def __ne__(self, other):
|
|
196
|
+
"""Returns true if both objects are not equal"""
|
|
197
|
+
return not self == other
|
teamdbapi/models/event.py
CHANGED
teamdbapi/models/fixed_field.py
CHANGED
|
@@ -15,6 +15,7 @@ import re # noqa: F401
|
|
|
15
15
|
|
|
16
16
|
import six
|
|
17
17
|
|
|
18
|
+
|
|
18
19
|
class FixedField(object):
|
|
19
20
|
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
20
21
|
|
|
@@ -205,7 +206,7 @@ class FixedField(object):
|
|
|
205
206
|
"""
|
|
206
207
|
if value_type is None:
|
|
207
208
|
raise ValueError("Invalid value for `value_type`, must not be `None`") # noqa: E501
|
|
208
|
-
allowed_values = ["Double", "String", "Bool", "TimeSpan", "DateTime", "TeamDBList", "Int", "Rtf", "StringMultiline", "TeamDBGrid", "Image", "File", "RevisionSelector", "RevisionEditor", "HyperlinkTextBox", "HyperlinkIntTextBox", "LifingRunMountingDiff", "Files", "Text"] # noqa: E501
|
|
209
|
+
allowed_values = ["Double", "String", "Bool", "TimeSpan", "DateTime", "TeamDBList", "Int", "Rtf", "StringMultiline", "TeamDBGrid", "Image", "File", "RevisionSelector", "RevisionEditor", "HyperlinkTextBox", "HyperlinkIntTextBox", "LifingRunMountingDiff", "Files", "Text", "Spreadsheet"] # noqa: E501
|
|
209
210
|
if value_type not in allowed_values:
|
|
210
211
|
raise ValueError(
|
|
211
212
|
"Invalid value for `value_type` ({0}), must be one of {1}" # noqa: E501
|
teamdbapi/models/group.py
CHANGED