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,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 ImportRevisionsInfo(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
+ 'revision_id': 'str',
33
+ 'parameter_id': 'str',
34
+ 'parameter_name': 'str',
35
+ 'is_new_revision': 'bool'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'revision_id': 'RevisionId',
40
+ 'parameter_id': 'ParameterId',
41
+ 'parameter_name': 'ParameterName',
42
+ 'is_new_revision': 'IsNewRevision'
43
+ }
44
+
45
+ def __init__(self, revision_id=None, parameter_id=None, parameter_name=None, is_new_revision=None): # noqa: E501
46
+ """ImportRevisionsInfo - a model defined in Swagger""" # noqa: E501
47
+ self._revision_id = None
48
+ self._parameter_id = None
49
+ self._parameter_name = None
50
+ self._is_new_revision = None
51
+ self.discriminator = None
52
+ if revision_id is not None:
53
+ self.revision_id = revision_id
54
+ if parameter_id is not None:
55
+ self.parameter_id = parameter_id
56
+ if parameter_name is not None:
57
+ self.parameter_name = parameter_name
58
+ if is_new_revision is not None:
59
+ self.is_new_revision = is_new_revision
60
+
61
+ @property
62
+ def revision_id(self):
63
+ """Gets the revision_id of this ImportRevisionsInfo. # noqa: E501
64
+
65
+ The revision Id # noqa: E501
66
+
67
+ :return: The revision_id of this ImportRevisionsInfo. # noqa: E501
68
+ :rtype: str
69
+ """
70
+ return self._revision_id
71
+
72
+ @revision_id.setter
73
+ def revision_id(self, revision_id):
74
+ """Sets the revision_id of this ImportRevisionsInfo.
75
+
76
+ The revision Id # noqa: E501
77
+
78
+ :param revision_id: The revision_id of this ImportRevisionsInfo. # noqa: E501
79
+ :type: str
80
+ """
81
+
82
+ self._revision_id = revision_id
83
+
84
+ @property
85
+ def parameter_id(self):
86
+ """Gets the parameter_id of this ImportRevisionsInfo. # noqa: E501
87
+
88
+ The revision parameter id # noqa: E501
89
+
90
+ :return: The parameter_id of this ImportRevisionsInfo. # noqa: E501
91
+ :rtype: str
92
+ """
93
+ return self._parameter_id
94
+
95
+ @parameter_id.setter
96
+ def parameter_id(self, parameter_id):
97
+ """Sets the parameter_id of this ImportRevisionsInfo.
98
+
99
+ The revision parameter id # noqa: E501
100
+
101
+ :param parameter_id: The parameter_id of this ImportRevisionsInfo. # noqa: E501
102
+ :type: str
103
+ """
104
+
105
+ self._parameter_id = parameter_id
106
+
107
+ @property
108
+ def parameter_name(self):
109
+ """Gets the parameter_name of this ImportRevisionsInfo. # noqa: E501
110
+
111
+ The revision parameter name # noqa: E501
112
+
113
+ :return: The parameter_name of this ImportRevisionsInfo. # noqa: E501
114
+ :rtype: str
115
+ """
116
+ return self._parameter_name
117
+
118
+ @parameter_name.setter
119
+ def parameter_name(self, parameter_name):
120
+ """Sets the parameter_name of this ImportRevisionsInfo.
121
+
122
+ The revision parameter name # noqa: E501
123
+
124
+ :param parameter_name: The parameter_name of this ImportRevisionsInfo. # noqa: E501
125
+ :type: str
126
+ """
127
+
128
+ self._parameter_name = parameter_name
129
+
130
+ @property
131
+ def is_new_revision(self):
132
+ """Gets the is_new_revision of this ImportRevisionsInfo. # noqa: E501
133
+
134
+ True when the revision has been created during the import. If false, the revision already existed. # noqa: E501
135
+
136
+ :return: The is_new_revision of this ImportRevisionsInfo. # noqa: E501
137
+ :rtype: bool
138
+ """
139
+ return self._is_new_revision
140
+
141
+ @is_new_revision.setter
142
+ def is_new_revision(self, is_new_revision):
143
+ """Sets the is_new_revision of this ImportRevisionsInfo.
144
+
145
+ True when the revision has been created during the import. If false, the revision already existed. # noqa: E501
146
+
147
+ :param is_new_revision: The is_new_revision of this ImportRevisionsInfo. # noqa: E501
148
+ :type: bool
149
+ """
150
+
151
+ self._is_new_revision = is_new_revision
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(ImportRevisionsInfo, 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, ImportRevisionsInfo):
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
@@ -0,0 +1,170 @@
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
+ from teamdbapi.models.import_revisions_info import ImportRevisionsInfo # noqa: F401,E501
18
+
19
+
20
+ class ImportRevisionsResults(object):
21
+ """NOTE: This class is auto generated by the swagger code generator program.
22
+
23
+ Do not edit the class manually.
24
+ """
25
+ """
26
+ Attributes:
27
+ swagger_types (dict): The key is attribute name
28
+ and the value is attribute type.
29
+ attribute_map (dict): The key is attribute name
30
+ and the value is json key in definition.
31
+ """
32
+ swagger_types = {
33
+ 'before_import_warning': 'str',
34
+ 'import_report_result': 'str',
35
+ 'revisions': 'list[ImportRevisionsInfo]'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'before_import_warning': 'BeforeImportWarning',
40
+ 'import_report_result': 'ImportReportResult',
41
+ 'revisions': 'Revisions'
42
+ }
43
+
44
+ def __init__(self, before_import_warning=None, import_report_result=None, revisions=None): # noqa: E501
45
+ """ImportRevisionsResults - a model defined in Swagger""" # noqa: E501
46
+ self._before_import_warning = None
47
+ self._import_report_result = None
48
+ self._revisions = None
49
+ self.discriminator = None
50
+ if before_import_warning is not None:
51
+ self.before_import_warning = before_import_warning
52
+ if import_report_result is not None:
53
+ self.import_report_result = import_report_result
54
+ if revisions is not None:
55
+ self.revisions = revisions
56
+
57
+ @property
58
+ def before_import_warning(self):
59
+ """Gets the before_import_warning of this ImportRevisionsResults. # noqa: E501
60
+
61
+ Warning before import # noqa: E501
62
+
63
+ :return: The before_import_warning of this ImportRevisionsResults. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._before_import_warning
67
+
68
+ @before_import_warning.setter
69
+ def before_import_warning(self, before_import_warning):
70
+ """Sets the before_import_warning of this ImportRevisionsResults.
71
+
72
+ Warning before import # noqa: E501
73
+
74
+ :param before_import_warning: The before_import_warning of this ImportRevisionsResults. # noqa: E501
75
+ :type: str
76
+ """
77
+
78
+ self._before_import_warning = before_import_warning
79
+
80
+ @property
81
+ def import_report_result(self):
82
+ """Gets the import_report_result of this ImportRevisionsResults. # noqa: E501
83
+
84
+ The import report result # noqa: E501
85
+
86
+ :return: The import_report_result of this ImportRevisionsResults. # noqa: E501
87
+ :rtype: str
88
+ """
89
+ return self._import_report_result
90
+
91
+ @import_report_result.setter
92
+ def import_report_result(self, import_report_result):
93
+ """Sets the import_report_result of this ImportRevisionsResults.
94
+
95
+ The import report result # noqa: E501
96
+
97
+ :param import_report_result: The import_report_result of this ImportRevisionsResults. # noqa: E501
98
+ :type: str
99
+ """
100
+
101
+ self._import_report_result = import_report_result
102
+
103
+ @property
104
+ def revisions(self):
105
+ """Gets the revisions of this ImportRevisionsResults. # noqa: E501
106
+
107
+ The revisions created for each parameter or not # noqa: E501
108
+
109
+ :return: The revisions of this ImportRevisionsResults. # noqa: E501
110
+ :rtype: list[ImportRevisionsInfo]
111
+ """
112
+ return self._revisions
113
+
114
+ @revisions.setter
115
+ def revisions(self, revisions):
116
+ """Sets the revisions of this ImportRevisionsResults.
117
+
118
+ The revisions created for each parameter or not # noqa: E501
119
+
120
+ :param revisions: The revisions of this ImportRevisionsResults. # noqa: E501
121
+ :type: list[ImportRevisionsInfo]
122
+ """
123
+
124
+ self._revisions = revisions
125
+
126
+ def to_dict(self):
127
+ """Returns the model properties as a dict"""
128
+ result = {}
129
+
130
+ for attr, _ in six.iteritems(self.swagger_types):
131
+ value = getattr(self, attr)
132
+ if isinstance(value, list):
133
+ result[attr] = list(map(
134
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
135
+ value
136
+ ))
137
+ elif hasattr(value, "to_dict"):
138
+ result[attr] = value.to_dict()
139
+ elif isinstance(value, dict):
140
+ result[attr] = dict(map(
141
+ lambda item: (item[0], item[1].to_dict())
142
+ if hasattr(item[1], "to_dict") else item,
143
+ value.items()
144
+ ))
145
+ else:
146
+ result[attr] = value
147
+ if issubclass(ImportRevisionsResults, dict):
148
+ for key, value in self.items():
149
+ result[key] = value
150
+
151
+ return result
152
+
153
+ def to_str(self):
154
+ """Returns the string representation of the model"""
155
+ return pprint.pformat(self.to_dict())
156
+
157
+ def __repr__(self):
158
+ """For `print` and `pprint`"""
159
+ return self.to_str()
160
+
161
+ def __eq__(self, other):
162
+ """Returns true if both objects are equal"""
163
+ if not isinstance(other, ImportRevisionsResults):
164
+ return False
165
+
166
+ return self.__dict__ == other.__dict__
167
+
168
+ def __ne__(self, other):
169
+ """Returns true if both objects are not equal"""
170
+ return not self == other