teamdbapi 3.3.0__py3-none-any.whl → 3.4.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.
@@ -71,7 +71,8 @@ class Component(object):
71
71
  'energy_total': 'float',
72
72
  'intended_purpose': 'str',
73
73
  'is_special_equipment': 'bool',
74
- 'sub_component_parameter_binding': 'str'
74
+ 'sub_component_parameter_binding': 'str',
75
+ 'manufacturer_serial_number': 'str'
75
76
  }
76
77
 
77
78
  attribute_map = {
@@ -117,10 +118,11 @@ class Component(object):
117
118
  'energy_total': 'EnergyTotal',
118
119
  'intended_purpose': 'IntendedPurpose',
119
120
  'is_special_equipment': 'IsSpecialEquipment',
120
- 'sub_component_parameter_binding': 'SubComponentParameterBinding'
121
+ 'sub_component_parameter_binding': 'SubComponentParameterBinding',
122
+ 'manufacturer_serial_number': 'ManufacturerSerialNumber'
121
123
  }
122
124
 
123
- 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, intended_purpose=None, is_special_equipment=None, sub_component_parameter_binding=None): # noqa: E501
125
+ 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, intended_purpose=None, is_special_equipment=None, sub_component_parameter_binding=None, manufacturer_serial_number=None): # noqa: E501
124
126
  """Component - a model defined in Swagger""" # noqa: E501
125
127
  self._revision_id = None
126
128
  self._component_id = None
@@ -165,6 +167,7 @@ class Component(object):
165
167
  self._intended_purpose = None
166
168
  self._is_special_equipment = None
167
169
  self._sub_component_parameter_binding = None
170
+ self._manufacturer_serial_number = None
168
171
  self.discriminator = None
169
172
  self.revision_id = revision_id
170
173
  self.component_id = component_id
@@ -246,6 +249,8 @@ class Component(object):
246
249
  self.is_special_equipment = is_special_equipment
247
250
  if sub_component_parameter_binding is not None:
248
251
  self.sub_component_parameter_binding = sub_component_parameter_binding
252
+ if manufacturer_serial_number is not None:
253
+ self.manufacturer_serial_number = manufacturer_serial_number
249
254
 
250
255
  @property
251
256
  def revision_id(self):
@@ -1254,6 +1259,29 @@ class Component(object):
1254
1259
 
1255
1260
  self._sub_component_parameter_binding = sub_component_parameter_binding
1256
1261
 
1262
+ @property
1263
+ def manufacturer_serial_number(self):
1264
+ """Gets the manufacturer_serial_number of this Component. # noqa: E501
1265
+
1266
+ The manufacturer serial number. Allows you to store your own manufacturer number. # noqa: E501
1267
+
1268
+ :return: The manufacturer_serial_number of this Component. # noqa: E501
1269
+ :rtype: str
1270
+ """
1271
+ return self._manufacturer_serial_number
1272
+
1273
+ @manufacturer_serial_number.setter
1274
+ def manufacturer_serial_number(self, manufacturer_serial_number):
1275
+ """Sets the manufacturer_serial_number of this Component.
1276
+
1277
+ The manufacturer serial number. Allows you to store your own manufacturer number. # noqa: E501
1278
+
1279
+ :param manufacturer_serial_number: The manufacturer_serial_number of this Component. # noqa: E501
1280
+ :type: str
1281
+ """
1282
+
1283
+ self._manufacturer_serial_number = manufacturer_serial_number
1284
+
1257
1285
  def to_dict(self):
1258
1286
  """Returns the model properties as a dict"""
1259
1287
  result = {}
@@ -99,7 +99,7 @@ class Criteria(object):
99
99
  def id(self):
100
100
  """Gets the id of this Criteria. # noqa: E501
101
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
102
+ Criteria unique identifier. Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new criteria. # noqa: E501
103
103
 
104
104
  :return: The id of this Criteria. # noqa: E501
105
105
  :rtype: str
@@ -110,7 +110,7 @@ class Criteria(object):
110
110
  def id(self, id):
111
111
  """Sets the id of this Criteria.
112
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
113
+ Criteria unique identifier. Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new criteria. # noqa: E501
114
114
 
115
115
  :param id: The id of this Criteria. # noqa: E501
116
116
  :type: str
@@ -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
@@ -0,0 +1,198 @@
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 Overall(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
+ 'last_update_date_utc': 'datetime',
34
+ 'last_update_user': 'str',
35
+ 'revision': 'int'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'id': 'Id',
40
+ 'last_update_date_utc': 'LastUpdateDateUtc',
41
+ 'last_update_user': 'LastUpdateUser',
42
+ 'revision': 'Revision'
43
+ }
44
+
45
+ def __init__(self, id=None, last_update_date_utc=None, last_update_user=None, revision=None): # noqa: E501
46
+ """Overall - a model defined in Swagger""" # noqa: E501
47
+ self._id = None
48
+ self._last_update_date_utc = None
49
+ self._last_update_user = None
50
+ self._revision = None
51
+ self.discriminator = None
52
+ self.id = id
53
+ if last_update_date_utc is not None:
54
+ self.last_update_date_utc = last_update_date_utc
55
+ if last_update_user is not None:
56
+ self.last_update_user = last_update_user
57
+ if revision is not None:
58
+ self.revision = revision
59
+
60
+ @property
61
+ def id(self):
62
+ """Gets the id of this Overall. # noqa: E501
63
+
64
+ The unique Overall Id. # noqa: E501
65
+
66
+ :return: The id of this Overall. # noqa: E501
67
+ :rtype: str
68
+ """
69
+ return self._id
70
+
71
+ @id.setter
72
+ def id(self, id):
73
+ """Sets the id of this Overall.
74
+
75
+ The unique Overall Id. # noqa: E501
76
+
77
+ :param id: The id of this Overall. # noqa: E501
78
+ :type: str
79
+ """
80
+ if id is None:
81
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
82
+
83
+ self._id = id
84
+
85
+ @property
86
+ def last_update_date_utc(self):
87
+ """Gets the last_update_date_utc of this Overall. # noqa: E501
88
+
89
+ The last utc date time when the properties of this object have been updated. This field will be automatically updated from the server side each time you update the object. # noqa: E501
90
+
91
+ :return: The last_update_date_utc of this Overall. # noqa: E501
92
+ :rtype: datetime
93
+ """
94
+ return self._last_update_date_utc
95
+
96
+ @last_update_date_utc.setter
97
+ def last_update_date_utc(self, last_update_date_utc):
98
+ """Sets the last_update_date_utc of this Overall.
99
+
100
+ The last utc date time when the properties of this object have been updated. This field will be automatically updated from the server side each time you update the object. # noqa: E501
101
+
102
+ :param last_update_date_utc: The last_update_date_utc of this Overall. # noqa: E501
103
+ :type: datetime
104
+ """
105
+
106
+ self._last_update_date_utc = last_update_date_utc
107
+
108
+ @property
109
+ def last_update_user(self):
110
+ """Gets the last_update_user of this Overall. # noqa: E501
111
+
112
+ The name of the last user having updated this object. This field will be automatically updated from the server side each time you update the object. # noqa: E501
113
+
114
+ :return: The last_update_user of this Overall. # noqa: E501
115
+ :rtype: str
116
+ """
117
+ return self._last_update_user
118
+
119
+ @last_update_user.setter
120
+ def last_update_user(self, last_update_user):
121
+ """Sets the last_update_user of this Overall.
122
+
123
+ The name of the last user having updated this object. This field will be automatically updated from the server side each time you update the object. # noqa: E501
124
+
125
+ :param last_update_user: The last_update_user of this Overall. # noqa: E501
126
+ :type: str
127
+ """
128
+
129
+ self._last_update_user = last_update_user
130
+
131
+ @property
132
+ def revision(self):
133
+ """Gets the revision of this Overall. # noqa: E501
134
+
135
+ The revision number of the object. # noqa: E501
136
+
137
+ :return: The revision of this Overall. # noqa: E501
138
+ :rtype: int
139
+ """
140
+ return self._revision
141
+
142
+ @revision.setter
143
+ def revision(self, revision):
144
+ """Sets the revision of this Overall.
145
+
146
+ The revision number of the object. # noqa: E501
147
+
148
+ :param revision: The revision of this Overall. # noqa: E501
149
+ :type: int
150
+ """
151
+
152
+ self._revision = revision
153
+
154
+ def to_dict(self):
155
+ """Returns the model properties as a dict"""
156
+ result = {}
157
+
158
+ for attr, _ in six.iteritems(self.swagger_types):
159
+ value = getattr(self, attr)
160
+ if isinstance(value, list):
161
+ result[attr] = list(map(
162
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
163
+ value
164
+ ))
165
+ elif hasattr(value, "to_dict"):
166
+ result[attr] = value.to_dict()
167
+ elif isinstance(value, dict):
168
+ result[attr] = dict(map(
169
+ lambda item: (item[0], item[1].to_dict())
170
+ if hasattr(item[1], "to_dict") else item,
171
+ value.items()
172
+ ))
173
+ else:
174
+ result[attr] = value
175
+ if issubclass(Overall, dict):
176
+ for key, value in self.items():
177
+ result[key] = value
178
+
179
+ return result
180
+
181
+ def to_str(self):
182
+ """Returns the string representation of the model"""
183
+ return pprint.pformat(self.to_dict())
184
+
185
+ def __repr__(self):
186
+ """For `print` and `pprint`"""
187
+ return self.to_str()
188
+
189
+ def __eq__(self, other):
190
+ """Returns true if both objects are equal"""
191
+ if not isinstance(other, Overall):
192
+ return False
193
+
194
+ return self.__dict__ == other.__dict__
195
+
196
+ def __ne__(self, other):
197
+ """Returns true if both objects are not equal"""
198
+ return not self == other