huaweicloudsdkcodeartsbuild 3.1.147__py2.py3-none-any.whl → 3.1.149__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 (38) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +27 -2
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +481 -0
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +481 -0
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +27 -2
  5. huaweicloudsdkcodeartsbuild/v3/model/build_info_record.py +604 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/build_info_record_commit_info.py +144 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/build_stage_record.py +608 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_request.py +199 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_response.py +170 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result.py → flow_graph2_result.py} +15 -15
  11. huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result_edges.py → flow_graph2_result_edges.py} +11 -11
  12. huaweicloudsdkcodeartsbuild/v3/model/full_stages_result.py +115 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_body_result.py +231 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_request.py +228 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_response.py +170 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/real_time_log_response_body_result.py +202 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_request.py +143 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_response.py +170 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/show_flow_graph_response.py +4 -4
  20. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_request.py +199 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_response.py +141 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result.py +260 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result_every_day_report.py +144 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary.py +463 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_body_result.py +140 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_request.py +142 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_response.py +170 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_request.py +114 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_response.py +170 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_result.py +202 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_request.py +143 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_response.py +174 -0
  33. huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py +6 -0
  34. {huaweicloudsdkcodeartsbuild-3.1.147.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/METADATA +2 -2
  35. {huaweicloudsdkcodeartsbuild-3.1.147.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/RECORD +38 -13
  36. {huaweicloudsdkcodeartsbuild-3.1.147.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/LICENSE +0 -0
  37. {huaweicloudsdkcodeartsbuild-3.1.147.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/WHEEL +0 -0
  38. {huaweicloudsdkcodeartsbuild-3.1.147.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,199 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowJobBuildSuccessRatioRequest:
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
+ 'repository_name': 'str',
22
+ 'branch': 'str',
23
+ 'interval': 'int'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'job_id': 'job_id',
28
+ 'repository_name': 'repository_name',
29
+ 'branch': 'branch',
30
+ 'interval': 'interval'
31
+ }
32
+
33
+ def __init__(self, job_id=None, repository_name=None, branch=None, interval=None):
34
+ r"""ShowJobBuildSuccessRatioRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
39
+ :type job_id: str
40
+ :param repository_name: 代码仓名称。
41
+ :type repository_name: str
42
+ :param branch: 代码仓分支名。
43
+ :type branch: str
44
+ :param interval: 查询时间,查最近几天的。
45
+ :type interval: int
46
+ """
47
+
48
+
49
+
50
+ self._job_id = None
51
+ self._repository_name = None
52
+ self._branch = None
53
+ self._interval = None
54
+ self.discriminator = None
55
+
56
+ self.job_id = job_id
57
+ self.repository_name = repository_name
58
+ if branch is not None:
59
+ self.branch = branch
60
+ self.interval = interval
61
+
62
+ @property
63
+ def job_id(self):
64
+ r"""Gets the job_id of this ShowJobBuildSuccessRatioRequest.
65
+
66
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
67
+
68
+ :return: The job_id of this ShowJobBuildSuccessRatioRequest.
69
+ :rtype: str
70
+ """
71
+ return self._job_id
72
+
73
+ @job_id.setter
74
+ def job_id(self, job_id):
75
+ r"""Sets the job_id of this ShowJobBuildSuccessRatioRequest.
76
+
77
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
78
+
79
+ :param job_id: The job_id of this ShowJobBuildSuccessRatioRequest.
80
+ :type job_id: str
81
+ """
82
+ self._job_id = job_id
83
+
84
+ @property
85
+ def repository_name(self):
86
+ r"""Gets the repository_name of this ShowJobBuildSuccessRatioRequest.
87
+
88
+ 代码仓名称。
89
+
90
+ :return: The repository_name of this ShowJobBuildSuccessRatioRequest.
91
+ :rtype: str
92
+ """
93
+ return self._repository_name
94
+
95
+ @repository_name.setter
96
+ def repository_name(self, repository_name):
97
+ r"""Sets the repository_name of this ShowJobBuildSuccessRatioRequest.
98
+
99
+ 代码仓名称。
100
+
101
+ :param repository_name: The repository_name of this ShowJobBuildSuccessRatioRequest.
102
+ :type repository_name: str
103
+ """
104
+ self._repository_name = repository_name
105
+
106
+ @property
107
+ def branch(self):
108
+ r"""Gets the branch of this ShowJobBuildSuccessRatioRequest.
109
+
110
+ 代码仓分支名。
111
+
112
+ :return: The branch of this ShowJobBuildSuccessRatioRequest.
113
+ :rtype: str
114
+ """
115
+ return self._branch
116
+
117
+ @branch.setter
118
+ def branch(self, branch):
119
+ r"""Sets the branch of this ShowJobBuildSuccessRatioRequest.
120
+
121
+ 代码仓分支名。
122
+
123
+ :param branch: The branch of this ShowJobBuildSuccessRatioRequest.
124
+ :type branch: str
125
+ """
126
+ self._branch = branch
127
+
128
+ @property
129
+ def interval(self):
130
+ r"""Gets the interval of this ShowJobBuildSuccessRatioRequest.
131
+
132
+ 查询时间,查最近几天的。
133
+
134
+ :return: The interval of this ShowJobBuildSuccessRatioRequest.
135
+ :rtype: int
136
+ """
137
+ return self._interval
138
+
139
+ @interval.setter
140
+ def interval(self, interval):
141
+ r"""Sets the interval of this ShowJobBuildSuccessRatioRequest.
142
+
143
+ 查询时间,查最近几天的。
144
+
145
+ :param interval: The interval of this ShowJobBuildSuccessRatioRequest.
146
+ :type interval: int
147
+ """
148
+ self._interval = interval
149
+
150
+ def to_dict(self):
151
+ """Returns the model properties as a dict"""
152
+ result = {}
153
+
154
+ for attr, _ in six.iteritems(self.openapi_types):
155
+ value = getattr(self, attr)
156
+ if isinstance(value, list):
157
+ result[attr] = list(map(
158
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
159
+ value
160
+ ))
161
+ elif hasattr(value, "to_dict"):
162
+ result[attr] = value.to_dict()
163
+ elif isinstance(value, dict):
164
+ result[attr] = dict(map(
165
+ lambda item: (item[0], item[1].to_dict())
166
+ if hasattr(item[1], "to_dict") else item,
167
+ value.items()
168
+ ))
169
+ else:
170
+ if attr in self.sensitive_list:
171
+ result[attr] = "****"
172
+ else:
173
+ result[attr] = value
174
+
175
+ return result
176
+
177
+ def to_str(self):
178
+ """Returns the string representation of the model"""
179
+ import simplejson as json
180
+ if six.PY2:
181
+ import sys
182
+ reload(sys)
183
+ sys.setdefaultencoding("utf-8")
184
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
185
+
186
+ def __repr__(self):
187
+ """For `print`"""
188
+ return self.to_str()
189
+
190
+ def __eq__(self, other):
191
+ """Returns true if both objects are equal"""
192
+ if not isinstance(other, ShowJobBuildSuccessRatioRequest):
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
@@ -0,0 +1,141 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ShowJobBuildSuccessRatioResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'result': 'ShowJobBuildSuccessRatioResult',
22
+ 'status': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'result': 'result',
27
+ 'status': 'status'
28
+ }
29
+
30
+ def __init__(self, result=None, status=None):
31
+ r"""ShowJobBuildSuccessRatioResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param result:
36
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResult`
37
+ :param status: 返回状态信息
38
+ :type status: str
39
+ """
40
+
41
+ super(ShowJobBuildSuccessRatioResponse, self).__init__()
42
+
43
+ self._result = None
44
+ self._status = None
45
+ self.discriminator = None
46
+
47
+ if result is not None:
48
+ self.result = result
49
+ if status is not None:
50
+ self.status = status
51
+
52
+ @property
53
+ def result(self):
54
+ r"""Gets the result of this ShowJobBuildSuccessRatioResponse.
55
+
56
+ :return: The result of this ShowJobBuildSuccessRatioResponse.
57
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResult`
58
+ """
59
+ return self._result
60
+
61
+ @result.setter
62
+ def result(self, result):
63
+ r"""Sets the result of this ShowJobBuildSuccessRatioResponse.
64
+
65
+ :param result: The result of this ShowJobBuildSuccessRatioResponse.
66
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResult`
67
+ """
68
+ self._result = result
69
+
70
+ @property
71
+ def status(self):
72
+ r"""Gets the status of this ShowJobBuildSuccessRatioResponse.
73
+
74
+ 返回状态信息
75
+
76
+ :return: The status of this ShowJobBuildSuccessRatioResponse.
77
+ :rtype: str
78
+ """
79
+ return self._status
80
+
81
+ @status.setter
82
+ def status(self, status):
83
+ r"""Sets the status of this ShowJobBuildSuccessRatioResponse.
84
+
85
+ 返回状态信息
86
+
87
+ :param status: The status of this ShowJobBuildSuccessRatioResponse.
88
+ :type status: str
89
+ """
90
+ self._status = status
91
+
92
+ def to_dict(self):
93
+ """Returns the model properties as a dict"""
94
+ result = {}
95
+
96
+ for attr, _ in six.iteritems(self.openapi_types):
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ if attr in self.sensitive_list:
113
+ result[attr] = "****"
114
+ else:
115
+ result[attr] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ import simplejson as json
122
+ if six.PY2:
123
+ import sys
124
+ reload(sys)
125
+ sys.setdefaultencoding("utf-8")
126
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
127
+
128
+ def __repr__(self):
129
+ """For `print`"""
130
+ return self.to_str()
131
+
132
+ def __eq__(self, other):
133
+ """Returns true if both objects are equal"""
134
+ if not isinstance(other, ShowJobBuildSuccessRatioResponse):
135
+ return False
136
+
137
+ return self.__dict__ == other.__dict__
138
+
139
+ def __ne__(self, other):
140
+ """Returns true if both objects are not equal"""
141
+ return not self == other
@@ -0,0 +1,260 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowJobBuildSuccessRatioResult:
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
+ 'branch': 'str',
22
+ 'total_success_count': 'int',
23
+ 'total_count': 'int',
24
+ 'total_success_ratio_fraction': 'str',
25
+ 'every_day_report': 'list[ShowJobBuildSuccessRatioResultEveryDayReport]'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'job_id': 'job_id',
30
+ 'branch': 'branch',
31
+ 'total_success_count': 'total_success_count',
32
+ 'total_count': 'total_count',
33
+ 'total_success_ratio_fraction': 'total_success_ratio_fraction',
34
+ 'every_day_report': 'every_day_report'
35
+ }
36
+
37
+ def __init__(self, job_id=None, branch=None, total_success_count=None, total_count=None, total_success_ratio_fraction=None, every_day_report=None):
38
+ r"""ShowJobBuildSuccessRatioResult
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param job_id: 任务ID
43
+ :type job_id: str
44
+ :param branch: 分支
45
+ :type branch: str
46
+ :param total_success_count: 构建成功总数
47
+ :type total_success_count: int
48
+ :param total_count: 构建总数
49
+ :type total_count: int
50
+ :param total_success_ratio_fraction: 总成功比率分数
51
+ :type total_success_ratio_fraction: str
52
+ :param every_day_report: 每日构建成功率
53
+ :type every_day_report: list[:class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResultEveryDayReport`]
54
+ """
55
+
56
+
57
+
58
+ self._job_id = None
59
+ self._branch = None
60
+ self._total_success_count = None
61
+ self._total_count = None
62
+ self._total_success_ratio_fraction = None
63
+ self._every_day_report = None
64
+ self.discriminator = None
65
+
66
+ if job_id is not None:
67
+ self.job_id = job_id
68
+ if branch is not None:
69
+ self.branch = branch
70
+ if total_success_count is not None:
71
+ self.total_success_count = total_success_count
72
+ if total_count is not None:
73
+ self.total_count = total_count
74
+ if total_success_ratio_fraction is not None:
75
+ self.total_success_ratio_fraction = total_success_ratio_fraction
76
+ if every_day_report is not None:
77
+ self.every_day_report = every_day_report
78
+
79
+ @property
80
+ def job_id(self):
81
+ r"""Gets the job_id of this ShowJobBuildSuccessRatioResult.
82
+
83
+ 任务ID
84
+
85
+ :return: The job_id of this ShowJobBuildSuccessRatioResult.
86
+ :rtype: str
87
+ """
88
+ return self._job_id
89
+
90
+ @job_id.setter
91
+ def job_id(self, job_id):
92
+ r"""Sets the job_id of this ShowJobBuildSuccessRatioResult.
93
+
94
+ 任务ID
95
+
96
+ :param job_id: The job_id of this ShowJobBuildSuccessRatioResult.
97
+ :type job_id: str
98
+ """
99
+ self._job_id = job_id
100
+
101
+ @property
102
+ def branch(self):
103
+ r"""Gets the branch of this ShowJobBuildSuccessRatioResult.
104
+
105
+ 分支
106
+
107
+ :return: The branch of this ShowJobBuildSuccessRatioResult.
108
+ :rtype: str
109
+ """
110
+ return self._branch
111
+
112
+ @branch.setter
113
+ def branch(self, branch):
114
+ r"""Sets the branch of this ShowJobBuildSuccessRatioResult.
115
+
116
+ 分支
117
+
118
+ :param branch: The branch of this ShowJobBuildSuccessRatioResult.
119
+ :type branch: str
120
+ """
121
+ self._branch = branch
122
+
123
+ @property
124
+ def total_success_count(self):
125
+ r"""Gets the total_success_count of this ShowJobBuildSuccessRatioResult.
126
+
127
+ 构建成功总数
128
+
129
+ :return: The total_success_count of this ShowJobBuildSuccessRatioResult.
130
+ :rtype: int
131
+ """
132
+ return self._total_success_count
133
+
134
+ @total_success_count.setter
135
+ def total_success_count(self, total_success_count):
136
+ r"""Sets the total_success_count of this ShowJobBuildSuccessRatioResult.
137
+
138
+ 构建成功总数
139
+
140
+ :param total_success_count: The total_success_count of this ShowJobBuildSuccessRatioResult.
141
+ :type total_success_count: int
142
+ """
143
+ self._total_success_count = total_success_count
144
+
145
+ @property
146
+ def total_count(self):
147
+ r"""Gets the total_count of this ShowJobBuildSuccessRatioResult.
148
+
149
+ 构建总数
150
+
151
+ :return: The total_count of this ShowJobBuildSuccessRatioResult.
152
+ :rtype: int
153
+ """
154
+ return self._total_count
155
+
156
+ @total_count.setter
157
+ def total_count(self, total_count):
158
+ r"""Sets the total_count of this ShowJobBuildSuccessRatioResult.
159
+
160
+ 构建总数
161
+
162
+ :param total_count: The total_count of this ShowJobBuildSuccessRatioResult.
163
+ :type total_count: int
164
+ """
165
+ self._total_count = total_count
166
+
167
+ @property
168
+ def total_success_ratio_fraction(self):
169
+ r"""Gets the total_success_ratio_fraction of this ShowJobBuildSuccessRatioResult.
170
+
171
+ 总成功比率分数
172
+
173
+ :return: The total_success_ratio_fraction of this ShowJobBuildSuccessRatioResult.
174
+ :rtype: str
175
+ """
176
+ return self._total_success_ratio_fraction
177
+
178
+ @total_success_ratio_fraction.setter
179
+ def total_success_ratio_fraction(self, total_success_ratio_fraction):
180
+ r"""Sets the total_success_ratio_fraction of this ShowJobBuildSuccessRatioResult.
181
+
182
+ 总成功比率分数
183
+
184
+ :param total_success_ratio_fraction: The total_success_ratio_fraction of this ShowJobBuildSuccessRatioResult.
185
+ :type total_success_ratio_fraction: str
186
+ """
187
+ self._total_success_ratio_fraction = total_success_ratio_fraction
188
+
189
+ @property
190
+ def every_day_report(self):
191
+ r"""Gets the every_day_report of this ShowJobBuildSuccessRatioResult.
192
+
193
+ 每日构建成功率
194
+
195
+ :return: The every_day_report of this ShowJobBuildSuccessRatioResult.
196
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResultEveryDayReport`]
197
+ """
198
+ return self._every_day_report
199
+
200
+ @every_day_report.setter
201
+ def every_day_report(self, every_day_report):
202
+ r"""Sets the every_day_report of this ShowJobBuildSuccessRatioResult.
203
+
204
+ 每日构建成功率
205
+
206
+ :param every_day_report: The every_day_report of this ShowJobBuildSuccessRatioResult.
207
+ :type every_day_report: list[:class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResultEveryDayReport`]
208
+ """
209
+ self._every_day_report = every_day_report
210
+
211
+ def to_dict(self):
212
+ """Returns the model properties as a dict"""
213
+ result = {}
214
+
215
+ for attr, _ in six.iteritems(self.openapi_types):
216
+ value = getattr(self, attr)
217
+ if isinstance(value, list):
218
+ result[attr] = list(map(
219
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
220
+ value
221
+ ))
222
+ elif hasattr(value, "to_dict"):
223
+ result[attr] = value.to_dict()
224
+ elif isinstance(value, dict):
225
+ result[attr] = dict(map(
226
+ lambda item: (item[0], item[1].to_dict())
227
+ if hasattr(item[1], "to_dict") else item,
228
+ value.items()
229
+ ))
230
+ else:
231
+ if attr in self.sensitive_list:
232
+ result[attr] = "****"
233
+ else:
234
+ result[attr] = value
235
+
236
+ return result
237
+
238
+ def to_str(self):
239
+ """Returns the string representation of the model"""
240
+ import simplejson as json
241
+ if six.PY2:
242
+ import sys
243
+ reload(sys)
244
+ sys.setdefaultencoding("utf-8")
245
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
246
+
247
+ def __repr__(self):
248
+ """For `print`"""
249
+ return self.to_str()
250
+
251
+ def __eq__(self, other):
252
+ """Returns true if both objects are equal"""
253
+ if not isinstance(other, ShowJobBuildSuccessRatioResult):
254
+ return False
255
+
256
+ return self.__dict__ == other.__dict__
257
+
258
+ def __ne__(self, other):
259
+ """Returns true if both objects are not equal"""
260
+ return not self == other