teamdbapi 3.2.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.
@@ -31,20 +31,23 @@ class CarParametersContext(object):
31
31
  swagger_types = {
32
32
  'target_id': 'str',
33
33
  'version_id': 'str',
34
- 'assembly_id': 'str'
34
+ 'assembly_id': 'str',
35
+ 'name': 'str'
35
36
  }
36
37
 
37
38
  attribute_map = {
38
39
  'target_id': 'TargetId',
39
40
  'version_id': 'VersionId',
40
- 'assembly_id': 'AssemblyId'
41
+ 'assembly_id': 'AssemblyId',
42
+ 'name': 'Name'
41
43
  }
42
44
 
43
- def __init__(self, target_id=None, version_id=None, assembly_id=None): # noqa: E501
45
+ def __init__(self, target_id=None, version_id=None, assembly_id=None, name=None): # noqa: E501
44
46
  """CarParametersContext - a model defined in Swagger""" # noqa: E501
45
47
  self._target_id = None
46
48
  self._version_id = None
47
49
  self._assembly_id = None
50
+ self._name = None
48
51
  self.discriminator = None
49
52
  if target_id is not None:
50
53
  self.target_id = target_id
@@ -52,6 +55,8 @@ class CarParametersContext(object):
52
55
  self.version_id = version_id
53
56
  if assembly_id is not None:
54
57
  self.assembly_id = assembly_id
58
+ if name is not None:
59
+ self.name = name
55
60
 
56
61
  @property
57
62
  def target_id(self):
@@ -122,6 +127,29 @@ class CarParametersContext(object):
122
127
 
123
128
  self._assembly_id = assembly_id
124
129
 
130
+ @property
131
+ def name(self):
132
+ """Gets the name of this CarParametersContext. # noqa: E501
133
+
134
+ Context name (ie the layout name) or empty for the global context # noqa: E501
135
+
136
+ :return: The name of this CarParametersContext. # noqa: E501
137
+ :rtype: str
138
+ """
139
+ return self._name
140
+
141
+ @name.setter
142
+ def name(self, name):
143
+ """Sets the name of this CarParametersContext.
144
+
145
+ Context name (ie the layout name) or empty for the global context # noqa: E501
146
+
147
+ :param name: The name of this CarParametersContext. # noqa: E501
148
+ :type: str
149
+ """
150
+
151
+ self._name = name
152
+
125
153
  def to_dict(self):
126
154
  """Returns the model properties as a dict"""
127
155
  result = {}
@@ -108,7 +108,7 @@ class CompareOptions(object):
108
108
  def diff_file_path(self):
109
109
  """Gets the diff_file_path of this CompareOptions. # noqa: E501
110
110
 
111
- The output file path contenaing the differences # noqa: E501
111
+ The output file path contenaing the differences. The path must be described only by / or \\\\\\\\. # noqa: E501
112
112
 
113
113
  :return: The diff_file_path of this CompareOptions. # noqa: E501
114
114
  :rtype: str
@@ -119,7 +119,7 @@ class CompareOptions(object):
119
119
  def diff_file_path(self, diff_file_path):
120
120
  """Sets the diff_file_path of this CompareOptions.
121
121
 
122
- The output file path contenaing the differences # noqa: E501
122
+ The output file path contenaing the differences. The path must be described only by / or \\\\\\\\. # noqa: E501
123
123
 
124
124
  :param diff_file_path: The diff_file_path of this CompareOptions. # noqa: E501
125
125
  :type: str
@@ -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
@@ -60,7 +60,7 @@ class FileRevisionInfo(object):
60
60
  def file_path(self):
61
61
  """Gets the file_path of this FileRevisionInfo. # noqa: E501
62
62
 
63
- The path to the file containing the revisions to import # noqa: E501
63
+ The path to the file containing the revisions to import The path must be described only by / or \\\\\\\\. # noqa: E501
64
64
 
65
65
  :return: The file_path of this FileRevisionInfo. # noqa: E501
66
66
  :rtype: str
@@ -71,7 +71,7 @@ class FileRevisionInfo(object):
71
71
  def file_path(self, file_path):
72
72
  """Sets the file_path of this FileRevisionInfo.
73
73
 
74
- The path to the file containing the revisions to import # noqa: E501
74
+ The path to the file containing the revisions to import The path must be described only by / or \\\\\\\\. # noqa: E501
75
75
 
76
76
  :param file_path: The file_path of this FileRevisionInfo. # noqa: E501
77
77
  :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
@@ -120,7 +120,7 @@ class ImportParametersArgs(object):
120
120
  def file_paths(self):
121
121
  """Gets the file_paths of this ImportParametersArgs. # noqa: E501
122
122
 
123
- The paths to the files to import # noqa: E501
123
+ The paths to the files to import The paths must be described only by / or \\\\\\\\. # noqa: E501
124
124
 
125
125
  :return: The file_paths of this ImportParametersArgs. # noqa: E501
126
126
  :rtype: list[str]
@@ -131,7 +131,7 @@ class ImportParametersArgs(object):
131
131
  def file_paths(self, file_paths):
132
132
  """Sets the file_paths of this ImportParametersArgs.
133
133
 
134
- The paths to the files to import # noqa: E501
134
+ The paths to the files to import The paths must be described only by / or \\\\\\\\. # noqa: E501
135
135
 
136
136
  :param file_paths: The file_paths of this ImportParametersArgs. # noqa: E501
137
137
  :type: list[str]
@@ -111,7 +111,7 @@ class LapReportOptions(object):
111
111
  def lap_report_file_path(self):
112
112
  """Gets the lap_report_file_path of this LapReportOptions. # noqa: E501
113
113
 
114
- The file path to the lap report. You have to provide the file extension and double the \\ characters, for example : C:\\\\\\\\path\\\\\\\\CMyFile.csv # noqa: E501
114
+ The file path to the lap report. You have to provide the file extension for example : C:/path/MyFile.csv. The path must be described only by / or \\\\\\\\. # noqa: E501
115
115
 
116
116
  :return: The lap_report_file_path of this LapReportOptions. # noqa: E501
117
117
  :rtype: str
@@ -122,7 +122,7 @@ class LapReportOptions(object):
122
122
  def lap_report_file_path(self, lap_report_file_path):
123
123
  """Sets the lap_report_file_path of this LapReportOptions.
124
124
 
125
- The file path to the lap report. You have to provide the file extension and double the \\ characters, for example : C:\\\\\\\\path\\\\\\\\CMyFile.csv # noqa: E501
125
+ The file path to the lap report. You have to provide the file extension for example : C:/path/MyFile.csv. The path must be described only by / or \\\\\\\\. # noqa: E501
126
126
 
127
127
  :param lap_report_file_path: The lap_report_file_path of this LapReportOptions. # noqa: E501
128
128
  :type: str
@@ -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