huaweicloudsdkcodeartsbuild 3.1.149__py2.py3-none-any.whl → 3.1.150__py2.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 (59) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +50 -0
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1120 -105
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1120 -105
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +50 -0
  5. huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
  39. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
  45. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
  55. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/METADATA +2 -2
  56. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/RECORD +59 -9
  57. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/LICENSE +0 -0
  58. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/WHEEL +0 -0
  59. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,289 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class Params:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'name': 'str',
21
+ 'title': 'str',
22
+ 'type': 'str',
23
+ 'required': 'bool',
24
+ 'constraints': 'list[Constraints]',
25
+ 'deletion': 'bool',
26
+ 'defaults': 'bool'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'name': 'name',
31
+ 'title': 'title',
32
+ 'type': 'type',
33
+ 'required': 'required',
34
+ 'constraints': 'constraints',
35
+ 'deletion': 'deletion',
36
+ 'defaults': 'defaults'
37
+ }
38
+
39
+ def __init__(self, name=None, title=None, type=None, required=None, constraints=None, deletion=None, defaults=None):
40
+ r"""Params
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param name: 参数名
45
+ :type name: str
46
+ :param title: 名称
47
+ :type title: str
48
+ :param type: 类型
49
+ :type type: str
50
+ :param required: 必填
51
+ :type required: bool
52
+ :param constraints: 简要构建信息列表
53
+ :type constraints: list[:class:`huaweicloudsdkcodeartsbuild.v3.Constraints`]
54
+ :param deletion: 删除
55
+ :type deletion: bool
56
+ :param defaults: 默认
57
+ :type defaults: bool
58
+ """
59
+
60
+
61
+
62
+ self._name = None
63
+ self._title = None
64
+ self._type = None
65
+ self._required = None
66
+ self._constraints = None
67
+ self._deletion = None
68
+ self._defaults = None
69
+ self.discriminator = None
70
+
71
+ if name is not None:
72
+ self.name = name
73
+ if title is not None:
74
+ self.title = title
75
+ if type is not None:
76
+ self.type = type
77
+ if required is not None:
78
+ self.required = required
79
+ if constraints is not None:
80
+ self.constraints = constraints
81
+ if deletion is not None:
82
+ self.deletion = deletion
83
+ if defaults is not None:
84
+ self.defaults = defaults
85
+
86
+ @property
87
+ def name(self):
88
+ r"""Gets the name of this Params.
89
+
90
+ 参数名
91
+
92
+ :return: The name of this Params.
93
+ :rtype: str
94
+ """
95
+ return self._name
96
+
97
+ @name.setter
98
+ def name(self, name):
99
+ r"""Sets the name of this Params.
100
+
101
+ 参数名
102
+
103
+ :param name: The name of this Params.
104
+ :type name: str
105
+ """
106
+ self._name = name
107
+
108
+ @property
109
+ def title(self):
110
+ r"""Gets the title of this Params.
111
+
112
+ 名称
113
+
114
+ :return: The title of this Params.
115
+ :rtype: str
116
+ """
117
+ return self._title
118
+
119
+ @title.setter
120
+ def title(self, title):
121
+ r"""Sets the title of this Params.
122
+
123
+ 名称
124
+
125
+ :param title: The title of this Params.
126
+ :type title: str
127
+ """
128
+ self._title = title
129
+
130
+ @property
131
+ def type(self):
132
+ r"""Gets the type of this Params.
133
+
134
+ 类型
135
+
136
+ :return: The type of this Params.
137
+ :rtype: str
138
+ """
139
+ return self._type
140
+
141
+ @type.setter
142
+ def type(self, type):
143
+ r"""Sets the type of this Params.
144
+
145
+ 类型
146
+
147
+ :param type: The type of this Params.
148
+ :type type: str
149
+ """
150
+ self._type = type
151
+
152
+ @property
153
+ def required(self):
154
+ r"""Gets the required of this Params.
155
+
156
+ 必填
157
+
158
+ :return: The required of this Params.
159
+ :rtype: bool
160
+ """
161
+ return self._required
162
+
163
+ @required.setter
164
+ def required(self, required):
165
+ r"""Sets the required of this Params.
166
+
167
+ 必填
168
+
169
+ :param required: The required of this Params.
170
+ :type required: bool
171
+ """
172
+ self._required = required
173
+
174
+ @property
175
+ def constraints(self):
176
+ r"""Gets the constraints of this Params.
177
+
178
+ 简要构建信息列表
179
+
180
+ :return: The constraints of this Params.
181
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.Constraints`]
182
+ """
183
+ return self._constraints
184
+
185
+ @constraints.setter
186
+ def constraints(self, constraints):
187
+ r"""Sets the constraints of this Params.
188
+
189
+ 简要构建信息列表
190
+
191
+ :param constraints: The constraints of this Params.
192
+ :type constraints: list[:class:`huaweicloudsdkcodeartsbuild.v3.Constraints`]
193
+ """
194
+ self._constraints = constraints
195
+
196
+ @property
197
+ def deletion(self):
198
+ r"""Gets the deletion of this Params.
199
+
200
+ 删除
201
+
202
+ :return: The deletion of this Params.
203
+ :rtype: bool
204
+ """
205
+ return self._deletion
206
+
207
+ @deletion.setter
208
+ def deletion(self, deletion):
209
+ r"""Sets the deletion of this Params.
210
+
211
+ 删除
212
+
213
+ :param deletion: The deletion of this Params.
214
+ :type deletion: bool
215
+ """
216
+ self._deletion = deletion
217
+
218
+ @property
219
+ def defaults(self):
220
+ r"""Gets the defaults of this Params.
221
+
222
+ 默认
223
+
224
+ :return: The defaults of this Params.
225
+ :rtype: bool
226
+ """
227
+ return self._defaults
228
+
229
+ @defaults.setter
230
+ def defaults(self, defaults):
231
+ r"""Sets the defaults of this Params.
232
+
233
+ 默认
234
+
235
+ :param defaults: The defaults of this Params.
236
+ :type defaults: bool
237
+ """
238
+ self._defaults = defaults
239
+
240
+ def to_dict(self):
241
+ """Returns the model properties as a dict"""
242
+ result = {}
243
+
244
+ for attr, _ in six.iteritems(self.openapi_types):
245
+ value = getattr(self, attr)
246
+ if isinstance(value, list):
247
+ result[attr] = list(map(
248
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
249
+ value
250
+ ))
251
+ elif hasattr(value, "to_dict"):
252
+ result[attr] = value.to_dict()
253
+ elif isinstance(value, dict):
254
+ result[attr] = dict(map(
255
+ lambda item: (item[0], item[1].to_dict())
256
+ if hasattr(item[1], "to_dict") else item,
257
+ value.items()
258
+ ))
259
+ else:
260
+ if attr in self.sensitive_list:
261
+ result[attr] = "****"
262
+ else:
263
+ result[attr] = value
264
+
265
+ return result
266
+
267
+ def to_str(self):
268
+ """Returns the string representation of the model"""
269
+ import simplejson as json
270
+ if six.PY2:
271
+ import sys
272
+ reload(sys)
273
+ sys.setdefaultencoding("utf-8")
274
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
275
+
276
+ def __repr__(self):
277
+ """For `print`"""
278
+ return self.to_str()
279
+
280
+ def __eq__(self, other):
281
+ """Returns true if both objects are equal"""
282
+ if not isinstance(other, Params):
283
+ return False
284
+
285
+ return self.__dict__ == other.__dict__
286
+
287
+ def __ne__(self, other):
288
+ """Returns true if both objects are not equal"""
289
+ return not self == other
@@ -0,0 +1,347 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RecyclingJob:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'job_id': 'str',
21
+ 'job_name': 'str',
22
+ 'project_id': 'str',
23
+ 'creator_name': 'str',
24
+ 'creator_id': 'str',
25
+ 'create_time': 'str',
26
+ 'delete_time': 'str',
27
+ 'create_time_stamp': 'str',
28
+ 'delete_time_stamp': 'str'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'job_id': 'job_id',
33
+ 'job_name': 'job_name',
34
+ 'project_id': 'project_id',
35
+ 'creator_name': 'creator_name',
36
+ 'creator_id': 'creator_id',
37
+ 'create_time': 'create_time',
38
+ 'delete_time': 'delete_time',
39
+ 'create_time_stamp': 'create_time_stamp',
40
+ 'delete_time_stamp': 'delete_time_stamp'
41
+ }
42
+
43
+ def __init__(self, job_id=None, job_name=None, project_id=None, creator_name=None, creator_id=None, create_time=None, delete_time=None, create_time_stamp=None, delete_time_stamp=None):
44
+ r"""RecyclingJob
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param job_id: 任务ID
49
+ :type job_id: str
50
+ :param job_name: 任务名称
51
+ :type job_name: str
52
+ :param project_id: CodeArts项目ID
53
+ :type project_id: str
54
+ :param creator_name: 创建人
55
+ :type creator_name: str
56
+ :param creator_id: 创建人ID
57
+ :type creator_id: str
58
+ :param create_time: 创建时间
59
+ :type create_time: str
60
+ :param delete_time: 删除时间
61
+ :type delete_time: str
62
+ :param create_time_stamp: 创建时间戳
63
+ :type create_time_stamp: str
64
+ :param delete_time_stamp: 删除时间戳
65
+ :type delete_time_stamp: str
66
+ """
67
+
68
+
69
+
70
+ self._job_id = None
71
+ self._job_name = None
72
+ self._project_id = None
73
+ self._creator_name = None
74
+ self._creator_id = None
75
+ self._create_time = None
76
+ self._delete_time = None
77
+ self._create_time_stamp = None
78
+ self._delete_time_stamp = None
79
+ self.discriminator = None
80
+
81
+ if job_id is not None:
82
+ self.job_id = job_id
83
+ if job_name is not None:
84
+ self.job_name = job_name
85
+ if project_id is not None:
86
+ self.project_id = project_id
87
+ if creator_name is not None:
88
+ self.creator_name = creator_name
89
+ if creator_id is not None:
90
+ self.creator_id = creator_id
91
+ if create_time is not None:
92
+ self.create_time = create_time
93
+ if delete_time is not None:
94
+ self.delete_time = delete_time
95
+ if create_time_stamp is not None:
96
+ self.create_time_stamp = create_time_stamp
97
+ if delete_time_stamp is not None:
98
+ self.delete_time_stamp = delete_time_stamp
99
+
100
+ @property
101
+ def job_id(self):
102
+ r"""Gets the job_id of this RecyclingJob.
103
+
104
+ 任务ID
105
+
106
+ :return: The job_id of this RecyclingJob.
107
+ :rtype: str
108
+ """
109
+ return self._job_id
110
+
111
+ @job_id.setter
112
+ def job_id(self, job_id):
113
+ r"""Sets the job_id of this RecyclingJob.
114
+
115
+ 任务ID
116
+
117
+ :param job_id: The job_id of this RecyclingJob.
118
+ :type job_id: str
119
+ """
120
+ self._job_id = job_id
121
+
122
+ @property
123
+ def job_name(self):
124
+ r"""Gets the job_name of this RecyclingJob.
125
+
126
+ 任务名称
127
+
128
+ :return: The job_name of this RecyclingJob.
129
+ :rtype: str
130
+ """
131
+ return self._job_name
132
+
133
+ @job_name.setter
134
+ def job_name(self, job_name):
135
+ r"""Sets the job_name of this RecyclingJob.
136
+
137
+ 任务名称
138
+
139
+ :param job_name: The job_name of this RecyclingJob.
140
+ :type job_name: str
141
+ """
142
+ self._job_name = job_name
143
+
144
+ @property
145
+ def project_id(self):
146
+ r"""Gets the project_id of this RecyclingJob.
147
+
148
+ CodeArts项目ID
149
+
150
+ :return: The project_id of this RecyclingJob.
151
+ :rtype: str
152
+ """
153
+ return self._project_id
154
+
155
+ @project_id.setter
156
+ def project_id(self, project_id):
157
+ r"""Sets the project_id of this RecyclingJob.
158
+
159
+ CodeArts项目ID
160
+
161
+ :param project_id: The project_id of this RecyclingJob.
162
+ :type project_id: str
163
+ """
164
+ self._project_id = project_id
165
+
166
+ @property
167
+ def creator_name(self):
168
+ r"""Gets the creator_name of this RecyclingJob.
169
+
170
+ 创建人
171
+
172
+ :return: The creator_name of this RecyclingJob.
173
+ :rtype: str
174
+ """
175
+ return self._creator_name
176
+
177
+ @creator_name.setter
178
+ def creator_name(self, creator_name):
179
+ r"""Sets the creator_name of this RecyclingJob.
180
+
181
+ 创建人
182
+
183
+ :param creator_name: The creator_name of this RecyclingJob.
184
+ :type creator_name: str
185
+ """
186
+ self._creator_name = creator_name
187
+
188
+ @property
189
+ def creator_id(self):
190
+ r"""Gets the creator_id of this RecyclingJob.
191
+
192
+ 创建人ID
193
+
194
+ :return: The creator_id of this RecyclingJob.
195
+ :rtype: str
196
+ """
197
+ return self._creator_id
198
+
199
+ @creator_id.setter
200
+ def creator_id(self, creator_id):
201
+ r"""Sets the creator_id of this RecyclingJob.
202
+
203
+ 创建人ID
204
+
205
+ :param creator_id: The creator_id of this RecyclingJob.
206
+ :type creator_id: str
207
+ """
208
+ self._creator_id = creator_id
209
+
210
+ @property
211
+ def create_time(self):
212
+ r"""Gets the create_time of this RecyclingJob.
213
+
214
+ 创建时间
215
+
216
+ :return: The create_time of this RecyclingJob.
217
+ :rtype: str
218
+ """
219
+ return self._create_time
220
+
221
+ @create_time.setter
222
+ def create_time(self, create_time):
223
+ r"""Sets the create_time of this RecyclingJob.
224
+
225
+ 创建时间
226
+
227
+ :param create_time: The create_time of this RecyclingJob.
228
+ :type create_time: str
229
+ """
230
+ self._create_time = create_time
231
+
232
+ @property
233
+ def delete_time(self):
234
+ r"""Gets the delete_time of this RecyclingJob.
235
+
236
+ 删除时间
237
+
238
+ :return: The delete_time of this RecyclingJob.
239
+ :rtype: str
240
+ """
241
+ return self._delete_time
242
+
243
+ @delete_time.setter
244
+ def delete_time(self, delete_time):
245
+ r"""Sets the delete_time of this RecyclingJob.
246
+
247
+ 删除时间
248
+
249
+ :param delete_time: The delete_time of this RecyclingJob.
250
+ :type delete_time: str
251
+ """
252
+ self._delete_time = delete_time
253
+
254
+ @property
255
+ def create_time_stamp(self):
256
+ r"""Gets the create_time_stamp of this RecyclingJob.
257
+
258
+ 创建时间戳
259
+
260
+ :return: The create_time_stamp of this RecyclingJob.
261
+ :rtype: str
262
+ """
263
+ return self._create_time_stamp
264
+
265
+ @create_time_stamp.setter
266
+ def create_time_stamp(self, create_time_stamp):
267
+ r"""Sets the create_time_stamp of this RecyclingJob.
268
+
269
+ 创建时间戳
270
+
271
+ :param create_time_stamp: The create_time_stamp of this RecyclingJob.
272
+ :type create_time_stamp: str
273
+ """
274
+ self._create_time_stamp = create_time_stamp
275
+
276
+ @property
277
+ def delete_time_stamp(self):
278
+ r"""Gets the delete_time_stamp of this RecyclingJob.
279
+
280
+ 删除时间戳
281
+
282
+ :return: The delete_time_stamp of this RecyclingJob.
283
+ :rtype: str
284
+ """
285
+ return self._delete_time_stamp
286
+
287
+ @delete_time_stamp.setter
288
+ def delete_time_stamp(self, delete_time_stamp):
289
+ r"""Sets the delete_time_stamp of this RecyclingJob.
290
+
291
+ 删除时间戳
292
+
293
+ :param delete_time_stamp: The delete_time_stamp of this RecyclingJob.
294
+ :type delete_time_stamp: str
295
+ """
296
+ self._delete_time_stamp = delete_time_stamp
297
+
298
+ def to_dict(self):
299
+ """Returns the model properties as a dict"""
300
+ result = {}
301
+
302
+ for attr, _ in six.iteritems(self.openapi_types):
303
+ value = getattr(self, attr)
304
+ if isinstance(value, list):
305
+ result[attr] = list(map(
306
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
307
+ value
308
+ ))
309
+ elif hasattr(value, "to_dict"):
310
+ result[attr] = value.to_dict()
311
+ elif isinstance(value, dict):
312
+ result[attr] = dict(map(
313
+ lambda item: (item[0], item[1].to_dict())
314
+ if hasattr(item[1], "to_dict") else item,
315
+ value.items()
316
+ ))
317
+ else:
318
+ if attr in self.sensitive_list:
319
+ result[attr] = "****"
320
+ else:
321
+ result[attr] = value
322
+
323
+ return result
324
+
325
+ def to_str(self):
326
+ """Returns the string representation of the model"""
327
+ import simplejson as json
328
+ if six.PY2:
329
+ import sys
330
+ reload(sys)
331
+ sys.setdefaultencoding("utf-8")
332
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
333
+
334
+ def __repr__(self):
335
+ """For `print`"""
336
+ return self.to_str()
337
+
338
+ def __eq__(self, other):
339
+ """Returns true if both objects are equal"""
340
+ if not isinstance(other, RecyclingJob):
341
+ return False
342
+
343
+ return self.__dict__ == other.__dict__
344
+
345
+ def __ne__(self, other):
346
+ """Returns true if both objects are not equal"""
347
+ return not self == other