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,319 @@
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 IssueCustomFieldValue(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
+ 'type': 'str',
36
+ 'issue_workflow_id': 'str',
37
+ 'default_value': 'str',
38
+ 'list_data_source': 'str',
39
+ 'value': 'str'
40
+ }
41
+
42
+ attribute_map = {
43
+ 'id': 'Id',
44
+ 'name': 'Name',
45
+ 'description': 'Description',
46
+ 'type': 'Type',
47
+ 'issue_workflow_id': 'IssueWorkflowId',
48
+ 'default_value': 'DefaultValue',
49
+ 'list_data_source': 'ListDataSource',
50
+ 'value': 'Value'
51
+ }
52
+
53
+ def __init__(self, id=None, name=None, description=None, type=None, issue_workflow_id=None, default_value=None, list_data_source=None, value=None): # noqa: E501
54
+ """IssueCustomFieldValue - a model defined in Swagger""" # noqa: E501
55
+ self._id = None
56
+ self._name = None
57
+ self._description = None
58
+ self._type = None
59
+ self._issue_workflow_id = None
60
+ self._default_value = None
61
+ self._list_data_source = None
62
+ self._value = None
63
+ self.discriminator = None
64
+ self.id = id
65
+ self.name = name
66
+ if description is not None:
67
+ self.description = description
68
+ self.type = type
69
+ self.issue_workflow_id = issue_workflow_id
70
+ if default_value is not None:
71
+ self.default_value = default_value
72
+ if list_data_source is not None:
73
+ self.list_data_source = list_data_source
74
+ if value is not None:
75
+ self.value = value
76
+
77
+ @property
78
+ def id(self):
79
+ """Gets the id of this IssueCustomFieldValue. # noqa: E501
80
+
81
+ Id of the Issue Custom Field Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new custom field # noqa: E501
82
+
83
+ :return: The id of this IssueCustomFieldValue. # noqa: E501
84
+ :rtype: str
85
+ """
86
+ return self._id
87
+
88
+ @id.setter
89
+ def id(self, id):
90
+ """Sets the id of this IssueCustomFieldValue.
91
+
92
+ Id of the Issue Custom Field Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new custom field # noqa: E501
93
+
94
+ :param id: The id of this IssueCustomFieldValue. # noqa: E501
95
+ :type: str
96
+ """
97
+ if id is None:
98
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
99
+
100
+ self._id = id
101
+
102
+ @property
103
+ def name(self):
104
+ """Gets the name of this IssueCustomFieldValue. # noqa: E501
105
+
106
+ Name of the custom field # noqa: E501
107
+
108
+ :return: The name of this IssueCustomFieldValue. # noqa: E501
109
+ :rtype: str
110
+ """
111
+ return self._name
112
+
113
+ @name.setter
114
+ def name(self, name):
115
+ """Sets the name of this IssueCustomFieldValue.
116
+
117
+ Name of the custom field # noqa: E501
118
+
119
+ :param name: The name of this IssueCustomFieldValue. # noqa: E501
120
+ :type: str
121
+ """
122
+ if name is None:
123
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
124
+
125
+ self._name = name
126
+
127
+ @property
128
+ def description(self):
129
+ """Gets the description of this IssueCustomFieldValue. # noqa: E501
130
+
131
+ Description of the custom field # noqa: E501
132
+
133
+ :return: The description of this IssueCustomFieldValue. # noqa: E501
134
+ :rtype: str
135
+ """
136
+ return self._description
137
+
138
+ @description.setter
139
+ def description(self, description):
140
+ """Sets the description of this IssueCustomFieldValue.
141
+
142
+ Description of the custom field # noqa: E501
143
+
144
+ :param description: The description of this IssueCustomFieldValue. # noqa: E501
145
+ :type: str
146
+ """
147
+
148
+ self._description = description
149
+
150
+ @property
151
+ def type(self):
152
+ """Gets the type of this IssueCustomFieldValue. # noqa: E501
153
+
154
+ Type of the custom field # noqa: E501
155
+
156
+ :return: The type of this IssueCustomFieldValue. # noqa: E501
157
+ :rtype: str
158
+ """
159
+ return self._type
160
+
161
+ @type.setter
162
+ def type(self, type):
163
+ """Sets the type of this IssueCustomFieldValue.
164
+
165
+ Type of the custom field # noqa: E501
166
+
167
+ :param type: The type of this IssueCustomFieldValue. # noqa: E501
168
+ :type: str
169
+ """
170
+ if type is None:
171
+ raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
172
+ allowed_values = ["String", "Date", "Decimal", "List", "MediaFile", "User"] # noqa: E501
173
+ if type not in allowed_values:
174
+ raise ValueError(
175
+ "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501
176
+ .format(type, allowed_values)
177
+ )
178
+
179
+ self._type = type
180
+
181
+ @property
182
+ def issue_workflow_id(self):
183
+ """Gets the issue_workflow_id of this IssueCustomFieldValue. # noqa: E501
184
+
185
+ Unique identifier of the workflow the custom field belong to # noqa: E501
186
+
187
+ :return: The issue_workflow_id of this IssueCustomFieldValue. # noqa: E501
188
+ :rtype: str
189
+ """
190
+ return self._issue_workflow_id
191
+
192
+ @issue_workflow_id.setter
193
+ def issue_workflow_id(self, issue_workflow_id):
194
+ """Sets the issue_workflow_id of this IssueCustomFieldValue.
195
+
196
+ Unique identifier of the workflow the custom field belong to # noqa: E501
197
+
198
+ :param issue_workflow_id: The issue_workflow_id of this IssueCustomFieldValue. # noqa: E501
199
+ :type: str
200
+ """
201
+ if issue_workflow_id is None:
202
+ raise ValueError("Invalid value for `issue_workflow_id`, must not be `None`") # noqa: E501
203
+
204
+ self._issue_workflow_id = issue_workflow_id
205
+
206
+ @property
207
+ def default_value(self):
208
+ """Gets the default_value of this IssueCustomFieldValue. # noqa: E501
209
+
210
+ Default value of the custom field # noqa: E501
211
+
212
+ :return: The default_value of this IssueCustomFieldValue. # noqa: E501
213
+ :rtype: str
214
+ """
215
+ return self._default_value
216
+
217
+ @default_value.setter
218
+ def default_value(self, default_value):
219
+ """Sets the default_value of this IssueCustomFieldValue.
220
+
221
+ Default value of the custom field # noqa: E501
222
+
223
+ :param default_value: The default_value of this IssueCustomFieldValue. # noqa: E501
224
+ :type: str
225
+ """
226
+
227
+ self._default_value = default_value
228
+
229
+ @property
230
+ def list_data_source(self):
231
+ """Gets the list_data_source of this IssueCustomFieldValue. # noqa: E501
232
+
233
+ Unique identifier of the source list. Only for custom field of type : List # noqa: E501
234
+
235
+ :return: The list_data_source of this IssueCustomFieldValue. # noqa: E501
236
+ :rtype: str
237
+ """
238
+ return self._list_data_source
239
+
240
+ @list_data_source.setter
241
+ def list_data_source(self, list_data_source):
242
+ """Sets the list_data_source of this IssueCustomFieldValue.
243
+
244
+ Unique identifier of the source list. Only for custom field of type : List # noqa: E501
245
+
246
+ :param list_data_source: The list_data_source of this IssueCustomFieldValue. # noqa: E501
247
+ :type: str
248
+ """
249
+
250
+ self._list_data_source = list_data_source
251
+
252
+ @property
253
+ def value(self):
254
+ """Gets the value of this IssueCustomFieldValue. # noqa: E501
255
+
256
+ Value of the custom field # noqa: E501
257
+
258
+ :return: The value of this IssueCustomFieldValue. # noqa: E501
259
+ :rtype: str
260
+ """
261
+ return self._value
262
+
263
+ @value.setter
264
+ def value(self, value):
265
+ """Sets the value of this IssueCustomFieldValue.
266
+
267
+ Value of the custom field # noqa: E501
268
+
269
+ :param value: The value of this IssueCustomFieldValue. # noqa: E501
270
+ :type: str
271
+ """
272
+
273
+ self._value = value
274
+
275
+ def to_dict(self):
276
+ """Returns the model properties as a dict"""
277
+ result = {}
278
+
279
+ for attr, _ in six.iteritems(self.swagger_types):
280
+ value = getattr(self, attr)
281
+ if isinstance(value, list):
282
+ result[attr] = list(map(
283
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
284
+ value
285
+ ))
286
+ elif hasattr(value, "to_dict"):
287
+ result[attr] = value.to_dict()
288
+ elif isinstance(value, dict):
289
+ result[attr] = dict(map(
290
+ lambda item: (item[0], item[1].to_dict())
291
+ if hasattr(item[1], "to_dict") else item,
292
+ value.items()
293
+ ))
294
+ else:
295
+ result[attr] = value
296
+ if issubclass(IssueCustomFieldValue, dict):
297
+ for key, value in self.items():
298
+ result[key] = value
299
+
300
+ return result
301
+
302
+ def to_str(self):
303
+ """Returns the string representation of the model"""
304
+ return pprint.pformat(self.to_dict())
305
+
306
+ def __repr__(self):
307
+ """For `print` and `pprint`"""
308
+ return self.to_str()
309
+
310
+ def __eq__(self, other):
311
+ """Returns true if both objects are equal"""
312
+ if not isinstance(other, IssueCustomFieldValue):
313
+ return False
314
+
315
+ return self.__dict__ == other.__dict__
316
+
317
+ def __ne__(self, other):
318
+ """Returns true if both objects are not equal"""
319
+ return not self == other
@@ -0,0 +1,227 @@
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 IssuePriority(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
+ 'default': 'bool',
35
+ 'obsolete': 'bool',
36
+ 'priority': 'int'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'id': 'Id',
41
+ 'name': 'Name',
42
+ 'default': 'Default',
43
+ 'obsolete': 'Obsolete',
44
+ 'priority': 'Priority'
45
+ }
46
+
47
+ def __init__(self, id=None, name=None, default=None, obsolete=None, priority=None): # noqa: E501
48
+ """IssuePriority - a model defined in Swagger""" # noqa: E501
49
+ self._id = None
50
+ self._name = None
51
+ self._default = None
52
+ self._obsolete = None
53
+ self._priority = None
54
+ self.discriminator = None
55
+ self.id = id
56
+ self.name = name
57
+ if default is not None:
58
+ self.default = default
59
+ if obsolete is not None:
60
+ self.obsolete = obsolete
61
+ if priority is not None:
62
+ self.priority = priority
63
+
64
+ @property
65
+ def id(self):
66
+ """Gets the id of this IssuePriority. # noqa: E501
67
+
68
+ The Id of the item. Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new issue list item # noqa: E501
69
+
70
+ :return: The id of this IssuePriority. # noqa: E501
71
+ :rtype: str
72
+ """
73
+ return self._id
74
+
75
+ @id.setter
76
+ def id(self, id):
77
+ """Sets the id of this IssuePriority.
78
+
79
+ The Id of the item. Set the Id to Guid.Empty (00000000-0000-0000-0000-000000000000) if you want to create a new issue list item # noqa: E501
80
+
81
+ :param id: The id of this IssuePriority. # noqa: E501
82
+ :type: str
83
+ """
84
+ if id is None:
85
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
86
+
87
+ self._id = id
88
+
89
+ @property
90
+ def name(self):
91
+ """Gets the name of this IssuePriority. # noqa: E501
92
+
93
+ The name of the item. # noqa: E501
94
+
95
+ :return: The name of this IssuePriority. # noqa: E501
96
+ :rtype: str
97
+ """
98
+ return self._name
99
+
100
+ @name.setter
101
+ def name(self, name):
102
+ """Sets the name of this IssuePriority.
103
+
104
+ The name of the item. # noqa: E501
105
+
106
+ :param name: The name of this IssuePriority. # noqa: E501
107
+ :type: str
108
+ """
109
+ if name is None:
110
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
111
+
112
+ self._name = name
113
+
114
+ @property
115
+ def default(self):
116
+ """Gets the default of this IssuePriority. # noqa: E501
117
+
118
+ Define whether the item is the default one or not. # noqa: E501
119
+
120
+ :return: The default of this IssuePriority. # noqa: E501
121
+ :rtype: bool
122
+ """
123
+ return self._default
124
+
125
+ @default.setter
126
+ def default(self, default):
127
+ """Sets the default of this IssuePriority.
128
+
129
+ Define whether the item is the default one or not. # noqa: E501
130
+
131
+ :param default: The default of this IssuePriority. # noqa: E501
132
+ :type: bool
133
+ """
134
+
135
+ self._default = default
136
+
137
+ @property
138
+ def obsolete(self):
139
+ """Gets the obsolete of this IssuePriority. # noqa: E501
140
+
141
+ Define whether the item is obsolete or not. # noqa: E501
142
+
143
+ :return: The obsolete of this IssuePriority. # noqa: E501
144
+ :rtype: bool
145
+ """
146
+ return self._obsolete
147
+
148
+ @obsolete.setter
149
+ def obsolete(self, obsolete):
150
+ """Sets the obsolete of this IssuePriority.
151
+
152
+ Define whether the item is obsolete or not. # noqa: E501
153
+
154
+ :param obsolete: The obsolete of this IssuePriority. # noqa: E501
155
+ :type: bool
156
+ """
157
+
158
+ self._obsolete = obsolete
159
+
160
+ @property
161
+ def priority(self):
162
+ """Gets the priority of this IssuePriority. # noqa: E501
163
+
164
+ The priority weight for significance calculation. # noqa: E501
165
+
166
+ :return: The priority of this IssuePriority. # noqa: E501
167
+ :rtype: int
168
+ """
169
+ return self._priority
170
+
171
+ @priority.setter
172
+ def priority(self, priority):
173
+ """Sets the priority of this IssuePriority.
174
+
175
+ The priority weight for significance calculation. # noqa: E501
176
+
177
+ :param priority: The priority of this IssuePriority. # noqa: E501
178
+ :type: int
179
+ """
180
+
181
+ self._priority = priority
182
+
183
+ def to_dict(self):
184
+ """Returns the model properties as a dict"""
185
+ result = {}
186
+
187
+ for attr, _ in six.iteritems(self.swagger_types):
188
+ value = getattr(self, attr)
189
+ if isinstance(value, list):
190
+ result[attr] = list(map(
191
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
192
+ value
193
+ ))
194
+ elif hasattr(value, "to_dict"):
195
+ result[attr] = value.to_dict()
196
+ elif isinstance(value, dict):
197
+ result[attr] = dict(map(
198
+ lambda item: (item[0], item[1].to_dict())
199
+ if hasattr(item[1], "to_dict") else item,
200
+ value.items()
201
+ ))
202
+ else:
203
+ result[attr] = value
204
+ if issubclass(IssuePriority, dict):
205
+ for key, value in self.items():
206
+ result[key] = value
207
+
208
+ return result
209
+
210
+ def to_str(self):
211
+ """Returns the string representation of the model"""
212
+ return pprint.pformat(self.to_dict())
213
+
214
+ def __repr__(self):
215
+ """For `print` and `pprint`"""
216
+ return self.to_str()
217
+
218
+ def __eq__(self, other):
219
+ """Returns true if both objects are equal"""
220
+ if not isinstance(other, IssuePriority):
221
+ return False
222
+
223
+ return self.__dict__ == other.__dict__
224
+
225
+ def __ne__(self, other):
226
+ """Returns true if both objects are not equal"""
227
+ return not self == other