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
@@ -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
@@ -68,7 +68,10 @@ class Component(object):
68
68
  'distance_factored_total': 'float',
69
69
  'has_check_rule_alert': 'bool',
70
70
  'energy_run': 'float',
71
- 'energy_total': 'float'
71
+ 'energy_total': 'float',
72
+ 'intended_purpose': 'str',
73
+ 'is_special_equipment': 'bool',
74
+ 'sub_component_parameter_binding': 'str'
72
75
  }
73
76
 
74
77
  attribute_map = {
@@ -111,10 +114,13 @@ class Component(object):
111
114
  'distance_factored_total': 'DistanceFactoredTotal',
112
115
  'has_check_rule_alert': 'HasCheckRuleAlert',
113
116
  'energy_run': 'EnergyRun',
114
- 'energy_total': 'EnergyTotal'
117
+ 'energy_total': 'EnergyTotal',
118
+ 'intended_purpose': 'IntendedPurpose',
119
+ 'is_special_equipment': 'IsSpecialEquipment',
120
+ 'sub_component_parameter_binding': 'SubComponentParameterBinding'
115
121
  }
116
122
 
117
- 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): # noqa: E501
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
118
124
  """Component - a model defined in Swagger""" # noqa: E501
119
125
  self._revision_id = None
120
126
  self._component_id = None
@@ -156,6 +162,9 @@ class Component(object):
156
162
  self._has_check_rule_alert = None
157
163
  self._energy_run = None
158
164
  self._energy_total = None
165
+ self._intended_purpose = None
166
+ self._is_special_equipment = None
167
+ self._sub_component_parameter_binding = None
159
168
  self.discriminator = None
160
169
  self.revision_id = revision_id
161
170
  self.component_id = component_id
@@ -231,6 +240,12 @@ class Component(object):
231
240
  self.energy_run = energy_run
232
241
  if energy_total is not None:
233
242
  self.energy_total = energy_total
243
+ if intended_purpose is not None:
244
+ self.intended_purpose = intended_purpose
245
+ if is_special_equipment is not None:
246
+ self.is_special_equipment = is_special_equipment
247
+ if sub_component_parameter_binding is not None:
248
+ self.sub_component_parameter_binding = sub_component_parameter_binding
234
249
 
235
250
  @property
236
251
  def revision_id(self):
@@ -1170,6 +1185,75 @@ class Component(object):
1170
1185
 
1171
1186
  self._energy_total = energy_total
1172
1187
 
1188
+ @property
1189
+ def intended_purpose(self):
1190
+ """Gets the intended_purpose of this Component. # noqa: E501
1191
+
1192
+ Sensor database Intended Purpose # noqa: E501
1193
+
1194
+ :return: The intended_purpose of this Component. # noqa: E501
1195
+ :rtype: str
1196
+ """
1197
+ return self._intended_purpose
1198
+
1199
+ @intended_purpose.setter
1200
+ def intended_purpose(self, intended_purpose):
1201
+ """Sets the intended_purpose of this Component.
1202
+
1203
+ Sensor database Intended Purpose # noqa: E501
1204
+
1205
+ :param intended_purpose: The intended_purpose of this Component. # noqa: E501
1206
+ :type: str
1207
+ """
1208
+
1209
+ self._intended_purpose = intended_purpose
1210
+
1211
+ @property
1212
+ def is_special_equipment(self):
1213
+ """Gets the is_special_equipment of this Component. # noqa: E501
1214
+
1215
+ Sensor database Is Special Equipment # noqa: E501
1216
+
1217
+ :return: The is_special_equipment of this Component. # noqa: E501
1218
+ :rtype: bool
1219
+ """
1220
+ return self._is_special_equipment
1221
+
1222
+ @is_special_equipment.setter
1223
+ def is_special_equipment(self, is_special_equipment):
1224
+ """Sets the is_special_equipment of this Component.
1225
+
1226
+ Sensor database Is Special Equipment # noqa: E501
1227
+
1228
+ :param is_special_equipment: The is_special_equipment of this Component. # noqa: E501
1229
+ :type: bool
1230
+ """
1231
+
1232
+ self._is_special_equipment = is_special_equipment
1233
+
1234
+ @property
1235
+ def sub_component_parameter_binding(self):
1236
+ """Gets the sub_component_parameter_binding of this Component. # noqa: E501
1237
+
1238
+ The sensor parameter binding specified on the sub component. This field is only filled when calling the route: component/{componentId}/revision/{revisionId}/content # noqa: E501
1239
+
1240
+ :return: The sub_component_parameter_binding of this Component. # noqa: E501
1241
+ :rtype: str
1242
+ """
1243
+ return self._sub_component_parameter_binding
1244
+
1245
+ @sub_component_parameter_binding.setter
1246
+ def sub_component_parameter_binding(self, sub_component_parameter_binding):
1247
+ """Sets the sub_component_parameter_binding of this Component.
1248
+
1249
+ The sensor parameter binding specified on the sub component. This field is only filled when calling the route: component/{componentId}/revision/{revisionId}/content # noqa: E501
1250
+
1251
+ :param sub_component_parameter_binding: The sub_component_parameter_binding of this Component. # noqa: E501
1252
+ :type: str
1253
+ """
1254
+
1255
+ self._sub_component_parameter_binding = sub_component_parameter_binding
1256
+
1173
1257
  def to_dict(self):
1174
1258
  """Returns the model properties as a dict"""
1175
1259
  result = {}
@@ -0,0 +1,199 @@
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 FileRevisionInfo(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
+ 'file_path': 'str',
33
+ 'revision_name': 'str',
34
+ 'revision_maturity': 'int',
35
+ 'revision_comment': 'str'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'file_path': 'FilePath',
40
+ 'revision_name': 'RevisionName',
41
+ 'revision_maturity': 'RevisionMaturity',
42
+ 'revision_comment': 'RevisionComment'
43
+ }
44
+
45
+ def __init__(self, file_path=None, revision_name=None, revision_maturity=None, revision_comment=None): # noqa: E501
46
+ """FileRevisionInfo - a model defined in Swagger""" # noqa: E501
47
+ self._file_path = None
48
+ self._revision_name = None
49
+ self._revision_maturity = None
50
+ self._revision_comment = None
51
+ self.discriminator = None
52
+ self.file_path = file_path
53
+ self.revision_name = revision_name
54
+ if revision_maturity is not None:
55
+ self.revision_maturity = revision_maturity
56
+ if revision_comment is not None:
57
+ self.revision_comment = revision_comment
58
+
59
+ @property
60
+ def file_path(self):
61
+ """Gets the file_path of this FileRevisionInfo. # noqa: E501
62
+
63
+ The path to the file containing the revisions to import The path must be described only by / or \\\\\\\\. # noqa: E501
64
+
65
+ :return: The file_path of this FileRevisionInfo. # noqa: E501
66
+ :rtype: str
67
+ """
68
+ return self._file_path
69
+
70
+ @file_path.setter
71
+ def file_path(self, file_path):
72
+ """Sets the file_path of this FileRevisionInfo.
73
+
74
+ The path to the file containing the revisions to import The path must be described only by / or \\\\\\\\. # noqa: E501
75
+
76
+ :param file_path: The file_path of this FileRevisionInfo. # noqa: E501
77
+ :type: str
78
+ """
79
+ if file_path is None:
80
+ raise ValueError("Invalid value for `file_path`, must not be `None`") # noqa: E501
81
+
82
+ self._file_path = file_path
83
+
84
+ @property
85
+ def revision_name(self):
86
+ """Gets the revision_name of this FileRevisionInfo. # noqa: E501
87
+
88
+ The revision name used to create new revisions # noqa: E501
89
+
90
+ :return: The revision_name of this FileRevisionInfo. # noqa: E501
91
+ :rtype: str
92
+ """
93
+ return self._revision_name
94
+
95
+ @revision_name.setter
96
+ def revision_name(self, revision_name):
97
+ """Sets the revision_name of this FileRevisionInfo.
98
+
99
+ The revision name used to create new revisions # noqa: E501
100
+
101
+ :param revision_name: The revision_name of this FileRevisionInfo. # noqa: E501
102
+ :type: str
103
+ """
104
+ if revision_name is None:
105
+ raise ValueError("Invalid value for `revision_name`, must not be `None`") # noqa: E501
106
+
107
+ self._revision_name = revision_name
108
+
109
+ @property
110
+ def revision_maturity(self):
111
+ """Gets the revision_maturity of this FileRevisionInfo. # noqa: E501
112
+
113
+ The revision maturity used when new revisions are created or null is not needed # noqa: E501
114
+
115
+ :return: The revision_maturity of this FileRevisionInfo. # noqa: E501
116
+ :rtype: int
117
+ """
118
+ return self._revision_maturity
119
+
120
+ @revision_maturity.setter
121
+ def revision_maturity(self, revision_maturity):
122
+ """Sets the revision_maturity of this FileRevisionInfo.
123
+
124
+ The revision maturity used when new revisions are created or null is not needed # noqa: E501
125
+
126
+ :param revision_maturity: The revision_maturity of this FileRevisionInfo. # noqa: E501
127
+ :type: int
128
+ """
129
+
130
+ self._revision_maturity = revision_maturity
131
+
132
+ @property
133
+ def revision_comment(self):
134
+ """Gets the revision_comment of this FileRevisionInfo. # noqa: E501
135
+
136
+ The revision comment used when new revisions are created or null is not needed # noqa: E501
137
+
138
+ :return: The revision_comment of this FileRevisionInfo. # noqa: E501
139
+ :rtype: str
140
+ """
141
+ return self._revision_comment
142
+
143
+ @revision_comment.setter
144
+ def revision_comment(self, revision_comment):
145
+ """Sets the revision_comment of this FileRevisionInfo.
146
+
147
+ The revision comment used when new revisions are created or null is not needed # noqa: E501
148
+
149
+ :param revision_comment: The revision_comment of this FileRevisionInfo. # noqa: E501
150
+ :type: str
151
+ """
152
+
153
+ self._revision_comment = revision_comment
154
+
155
+ def to_dict(self):
156
+ """Returns the model properties as a dict"""
157
+ result = {}
158
+
159
+ for attr, _ in six.iteritems(self.swagger_types):
160
+ value = getattr(self, attr)
161
+ if isinstance(value, list):
162
+ result[attr] = list(map(
163
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
164
+ value
165
+ ))
166
+ elif hasattr(value, "to_dict"):
167
+ result[attr] = value.to_dict()
168
+ elif isinstance(value, dict):
169
+ result[attr] = dict(map(
170
+ lambda item: (item[0], item[1].to_dict())
171
+ if hasattr(item[1], "to_dict") else item,
172
+ value.items()
173
+ ))
174
+ else:
175
+ result[attr] = value
176
+ if issubclass(FileRevisionInfo, dict):
177
+ for key, value in self.items():
178
+ result[key] = value
179
+
180
+ return result
181
+
182
+ def to_str(self):
183
+ """Returns the string representation of the model"""
184
+ return pprint.pformat(self.to_dict())
185
+
186
+ def __repr__(self):
187
+ """For `print` and `pprint`"""
188
+ return self.to_str()
189
+
190
+ def __eq__(self, other):
191
+ """Returns true if both objects are equal"""
192
+ if not isinstance(other, FileRevisionInfo):
193
+ return False
194
+
195
+ return self.__dict__ == other.__dict__
196
+
197
+ def __ne__(self, other):
198
+ """Returns true if both objects are not equal"""
199
+ return not self == other
@@ -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]
@@ -0,0 +1,173 @@
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.file_revision_info import FileRevisionInfo # noqa: F401,E501
18
+
19
+
20
+ class ImportRevisionsArgs(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
+ 'version_id': 'str',
34
+ 'file_revision_infos': 'list[FileRevisionInfo]',
35
+ 'ignore_load_file_warning': 'bool'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'version_id': 'VersionId',
40
+ 'file_revision_infos': 'FileRevisionInfos',
41
+ 'ignore_load_file_warning': 'IgnoreLoadFileWarning'
42
+ }
43
+
44
+ def __init__(self, version_id=None, file_revision_infos=None, ignore_load_file_warning=None): # noqa: E501
45
+ """ImportRevisionsArgs - a model defined in Swagger""" # noqa: E501
46
+ self._version_id = None
47
+ self._file_revision_infos = None
48
+ self._ignore_load_file_warning = None
49
+ self.discriminator = None
50
+ self.version_id = version_id
51
+ self.file_revision_infos = file_revision_infos
52
+ self.ignore_load_file_warning = ignore_load_file_warning
53
+
54
+ @property
55
+ def version_id(self):
56
+ """Gets the version_id of this ImportRevisionsArgs. # noqa: E501
57
+
58
+ The version unique identifier to which import the data # noqa: E501
59
+
60
+ :return: The version_id of this ImportRevisionsArgs. # noqa: E501
61
+ :rtype: str
62
+ """
63
+ return self._version_id
64
+
65
+ @version_id.setter
66
+ def version_id(self, version_id):
67
+ """Sets the version_id of this ImportRevisionsArgs.
68
+
69
+ The version unique identifier to which import the data # noqa: E501
70
+
71
+ :param version_id: The version_id of this ImportRevisionsArgs. # noqa: E501
72
+ :type: str
73
+ """
74
+ if version_id is None:
75
+ raise ValueError("Invalid value for `version_id`, must not be `None`") # noqa: E501
76
+
77
+ self._version_id = version_id
78
+
79
+ @property
80
+ def file_revision_infos(self):
81
+ """Gets the file_revision_infos of this ImportRevisionsArgs. # noqa: E501
82
+
83
+ The paths to the files to import # noqa: E501
84
+
85
+ :return: The file_revision_infos of this ImportRevisionsArgs. # noqa: E501
86
+ :rtype: list[FileRevisionInfo]
87
+ """
88
+ return self._file_revision_infos
89
+
90
+ @file_revision_infos.setter
91
+ def file_revision_infos(self, file_revision_infos):
92
+ """Sets the file_revision_infos of this ImportRevisionsArgs.
93
+
94
+ The paths to the files to import # noqa: E501
95
+
96
+ :param file_revision_infos: The file_revision_infos of this ImportRevisionsArgs. # noqa: E501
97
+ :type: list[FileRevisionInfo]
98
+ """
99
+ if file_revision_infos is None:
100
+ raise ValueError("Invalid value for `file_revision_infos`, must not be `None`") # noqa: E501
101
+
102
+ self._file_revision_infos = file_revision_infos
103
+
104
+ @property
105
+ def ignore_load_file_warning(self):
106
+ """Gets the ignore_load_file_warning of this ImportRevisionsArgs. # noqa: E501
107
+
108
+ True to ignore the warnings detected before importing the file and continue the import process if they are not blocking. False to stop the import if a warning is detected. # noqa: E501
109
+
110
+ :return: The ignore_load_file_warning of this ImportRevisionsArgs. # noqa: E501
111
+ :rtype: bool
112
+ """
113
+ return self._ignore_load_file_warning
114
+
115
+ @ignore_load_file_warning.setter
116
+ def ignore_load_file_warning(self, ignore_load_file_warning):
117
+ """Sets the ignore_load_file_warning of this ImportRevisionsArgs.
118
+
119
+ True to ignore the warnings detected before importing the file and continue the import process if they are not blocking. False to stop the import if a warning is detected. # noqa: E501
120
+
121
+ :param ignore_load_file_warning: The ignore_load_file_warning of this ImportRevisionsArgs. # noqa: E501
122
+ :type: bool
123
+ """
124
+ if ignore_load_file_warning is None:
125
+ raise ValueError("Invalid value for `ignore_load_file_warning`, must not be `None`") # noqa: E501
126
+
127
+ self._ignore_load_file_warning = ignore_load_file_warning
128
+
129
+ def to_dict(self):
130
+ """Returns the model properties as a dict"""
131
+ result = {}
132
+
133
+ for attr, _ in six.iteritems(self.swagger_types):
134
+ value = getattr(self, attr)
135
+ if isinstance(value, list):
136
+ result[attr] = list(map(
137
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
138
+ value
139
+ ))
140
+ elif hasattr(value, "to_dict"):
141
+ result[attr] = value.to_dict()
142
+ elif isinstance(value, dict):
143
+ result[attr] = dict(map(
144
+ lambda item: (item[0], item[1].to_dict())
145
+ if hasattr(item[1], "to_dict") else item,
146
+ value.items()
147
+ ))
148
+ else:
149
+ result[attr] = value
150
+ if issubclass(ImportRevisionsArgs, dict):
151
+ for key, value in self.items():
152
+ result[key] = value
153
+
154
+ return result
155
+
156
+ def to_str(self):
157
+ """Returns the string representation of the model"""
158
+ return pprint.pformat(self.to_dict())
159
+
160
+ def __repr__(self):
161
+ """For `print` and `pprint`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, ImportRevisionsArgs):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other