huaweicloudsdkcodeartsbuild 3.1.148__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 (88) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +77 -2
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1619 -123
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1619 -123
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +77 -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_params.py +173 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/build_stage_record.py +608 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_request.py +199 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_response.py +170 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result.py → flow_graph2_result.py} +15 -15
  17. huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result_edges.py → flow_graph2_result_edges.py} +11 -11
  18. huaweicloudsdkcodeartsbuild/v3/model/full_stages_result.py +115 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_body_result.py +231 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_request.py +228 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_response.py +170 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/real_time_log_response_body_result.py +202 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
  39. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_request.py +143 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_response.py +170 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/show_flow_graph_response.py +4 -4
  45. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_request.py +199 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_response.py +141 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result.py +260 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result_every_day_report.py +144 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
  55. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
  56. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
  57. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
  58. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
  59. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
  60. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
  61. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
  62. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
  63. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
  64. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
  65. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
  66. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
  67. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
  68. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
  69. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
  70. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
  71. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary.py +463 -0
  72. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_body_result.py +140 -0
  73. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_request.py +142 -0
  74. huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_response.py +170 -0
  75. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_request.py +114 -0
  76. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_response.py +170 -0
  77. huaweicloudsdkcodeartsbuild/v3/model/show_running_status_result.py +202 -0
  78. huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
  79. huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_request.py +143 -0
  80. huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_response.py +174 -0
  81. huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
  82. huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
  83. huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py +6 -0
  84. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/METADATA +2 -2
  85. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/RECORD +88 -13
  86. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/LICENSE +0 -0
  87. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/WHEEL +0 -0
  88. {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/top_level.txt +0 -0
@@ -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 ShowJobBuildTimeResponse(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': 'ShowJobBuildTimeResult',
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"""ShowJobBuildTimeResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param result:
36
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResult`
37
+ :param status: 返回状态信息
38
+ :type status: str
39
+ """
40
+
41
+ super(ShowJobBuildTimeResponse, 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 ShowJobBuildTimeResponse.
55
+
56
+ :return: The result of this ShowJobBuildTimeResponse.
57
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResult`
58
+ """
59
+ return self._result
60
+
61
+ @result.setter
62
+ def result(self, result):
63
+ r"""Sets the result of this ShowJobBuildTimeResponse.
64
+
65
+ :param result: The result of this ShowJobBuildTimeResponse.
66
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResult`
67
+ """
68
+ self._result = result
69
+
70
+ @property
71
+ def status(self):
72
+ r"""Gets the status of this ShowJobBuildTimeResponse.
73
+
74
+ 返回状态信息
75
+
76
+ :return: The status of this ShowJobBuildTimeResponse.
77
+ :rtype: str
78
+ """
79
+ return self._status
80
+
81
+ @status.setter
82
+ def status(self, status):
83
+ r"""Sets the status of this ShowJobBuildTimeResponse.
84
+
85
+ 返回状态信息
86
+
87
+ :param status: The status of this ShowJobBuildTimeResponse.
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, ShowJobBuildTimeResponse):
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,231 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowJobBuildTimeResult:
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
+ 'avg_build_time': 'float',
22
+ 'max_build_time': 'int',
23
+ 'min_build_time': 'int',
24
+ 'chart': 'list[ShowJobBuildTimeResultChart]'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'job_id': 'job_id',
29
+ 'avg_build_time': 'avg_build_time',
30
+ 'max_build_time': 'max_build_time',
31
+ 'min_build_time': 'min_build_time',
32
+ 'chart': 'chart'
33
+ }
34
+
35
+ def __init__(self, job_id=None, avg_build_time=None, max_build_time=None, min_build_time=None, chart=None):
36
+ r"""ShowJobBuildTimeResult
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param job_id: 任务ID
41
+ :type job_id: str
42
+ :param avg_build_time: 平均构建时长
43
+ :type avg_build_time: float
44
+ :param max_build_time: 最长时间
45
+ :type max_build_time: int
46
+ :param min_build_time: 最短时间
47
+ :type min_build_time: int
48
+ :param chart: 每日构建数据
49
+ :type chart: list[:class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResultChart`]
50
+ """
51
+
52
+
53
+
54
+ self._job_id = None
55
+ self._avg_build_time = None
56
+ self._max_build_time = None
57
+ self._min_build_time = None
58
+ self._chart = None
59
+ self.discriminator = None
60
+
61
+ if job_id is not None:
62
+ self.job_id = job_id
63
+ if avg_build_time is not None:
64
+ self.avg_build_time = avg_build_time
65
+ if max_build_time is not None:
66
+ self.max_build_time = max_build_time
67
+ if min_build_time is not None:
68
+ self.min_build_time = min_build_time
69
+ if chart is not None:
70
+ self.chart = chart
71
+
72
+ @property
73
+ def job_id(self):
74
+ r"""Gets the job_id of this ShowJobBuildTimeResult.
75
+
76
+ 任务ID
77
+
78
+ :return: The job_id of this ShowJobBuildTimeResult.
79
+ :rtype: str
80
+ """
81
+ return self._job_id
82
+
83
+ @job_id.setter
84
+ def job_id(self, job_id):
85
+ r"""Sets the job_id of this ShowJobBuildTimeResult.
86
+
87
+ 任务ID
88
+
89
+ :param job_id: The job_id of this ShowJobBuildTimeResult.
90
+ :type job_id: str
91
+ """
92
+ self._job_id = job_id
93
+
94
+ @property
95
+ def avg_build_time(self):
96
+ r"""Gets the avg_build_time of this ShowJobBuildTimeResult.
97
+
98
+ 平均构建时长
99
+
100
+ :return: The avg_build_time of this ShowJobBuildTimeResult.
101
+ :rtype: float
102
+ """
103
+ return self._avg_build_time
104
+
105
+ @avg_build_time.setter
106
+ def avg_build_time(self, avg_build_time):
107
+ r"""Sets the avg_build_time of this ShowJobBuildTimeResult.
108
+
109
+ 平均构建时长
110
+
111
+ :param avg_build_time: The avg_build_time of this ShowJobBuildTimeResult.
112
+ :type avg_build_time: float
113
+ """
114
+ self._avg_build_time = avg_build_time
115
+
116
+ @property
117
+ def max_build_time(self):
118
+ r"""Gets the max_build_time of this ShowJobBuildTimeResult.
119
+
120
+ 最长时间
121
+
122
+ :return: The max_build_time of this ShowJobBuildTimeResult.
123
+ :rtype: int
124
+ """
125
+ return self._max_build_time
126
+
127
+ @max_build_time.setter
128
+ def max_build_time(self, max_build_time):
129
+ r"""Sets the max_build_time of this ShowJobBuildTimeResult.
130
+
131
+ 最长时间
132
+
133
+ :param max_build_time: The max_build_time of this ShowJobBuildTimeResult.
134
+ :type max_build_time: int
135
+ """
136
+ self._max_build_time = max_build_time
137
+
138
+ @property
139
+ def min_build_time(self):
140
+ r"""Gets the min_build_time of this ShowJobBuildTimeResult.
141
+
142
+ 最短时间
143
+
144
+ :return: The min_build_time of this ShowJobBuildTimeResult.
145
+ :rtype: int
146
+ """
147
+ return self._min_build_time
148
+
149
+ @min_build_time.setter
150
+ def min_build_time(self, min_build_time):
151
+ r"""Sets the min_build_time of this ShowJobBuildTimeResult.
152
+
153
+ 最短时间
154
+
155
+ :param min_build_time: The min_build_time of this ShowJobBuildTimeResult.
156
+ :type min_build_time: int
157
+ """
158
+ self._min_build_time = min_build_time
159
+
160
+ @property
161
+ def chart(self):
162
+ r"""Gets the chart of this ShowJobBuildTimeResult.
163
+
164
+ 每日构建数据
165
+
166
+ :return: The chart of this ShowJobBuildTimeResult.
167
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResultChart`]
168
+ """
169
+ return self._chart
170
+
171
+ @chart.setter
172
+ def chart(self, chart):
173
+ r"""Sets the chart of this ShowJobBuildTimeResult.
174
+
175
+ 每日构建数据
176
+
177
+ :param chart: The chart of this ShowJobBuildTimeResult.
178
+ :type chart: list[:class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResultChart`]
179
+ """
180
+ self._chart = chart
181
+
182
+ def to_dict(self):
183
+ """Returns the model properties as a dict"""
184
+ result = {}
185
+
186
+ for attr, _ in six.iteritems(self.openapi_types):
187
+ value = getattr(self, attr)
188
+ if isinstance(value, list):
189
+ result[attr] = list(map(
190
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
191
+ value
192
+ ))
193
+ elif hasattr(value, "to_dict"):
194
+ result[attr] = value.to_dict()
195
+ elif isinstance(value, dict):
196
+ result[attr] = dict(map(
197
+ lambda item: (item[0], item[1].to_dict())
198
+ if hasattr(item[1], "to_dict") else item,
199
+ value.items()
200
+ ))
201
+ else:
202
+ if attr in self.sensitive_list:
203
+ result[attr] = "****"
204
+ else:
205
+ result[attr] = value
206
+
207
+ return result
208
+
209
+ def to_str(self):
210
+ """Returns the string representation of the model"""
211
+ import simplejson as json
212
+ if six.PY2:
213
+ import sys
214
+ reload(sys)
215
+ sys.setdefaultencoding("utf-8")
216
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
217
+
218
+ def __repr__(self):
219
+ """For `print`"""
220
+ return self.to_str()
221
+
222
+ def __eq__(self, other):
223
+ """Returns true if both objects are equal"""
224
+ if not isinstance(other, ShowJobBuildTimeResult):
225
+ return False
226
+
227
+ return self.__dict__ == other.__dict__
228
+
229
+ def __ne__(self, other):
230
+ """Returns true if both objects are not equal"""
231
+ return not self == other
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowJobBuildTimeResultChart:
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
+ 'daily_build_number': 'str',
21
+ 'build_number': 'int',
22
+ 'build_time': 'int',
23
+ 'build_result': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'daily_build_number': 'daily_build_number',
28
+ 'build_number': 'build_number',
29
+ 'build_time': 'build_time',
30
+ 'build_result': 'build_result'
31
+ }
32
+
33
+ def __init__(self, daily_build_number=None, build_number=None, build_time=None, build_result=None):
34
+ r"""ShowJobBuildTimeResultChart
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param daily_build_number: 构建每日编号
39
+ :type daily_build_number: str
40
+ :param build_number: 构建编号
41
+ :type build_number: int
42
+ :param build_time: 步骤执行时长,单位s
43
+ :type build_time: int
44
+ :param build_result: 构建结果
45
+ :type build_result: str
46
+ """
47
+
48
+
49
+
50
+ self._daily_build_number = None
51
+ self._build_number = None
52
+ self._build_time = None
53
+ self._build_result = None
54
+ self.discriminator = None
55
+
56
+ if daily_build_number is not None:
57
+ self.daily_build_number = daily_build_number
58
+ if build_number is not None:
59
+ self.build_number = build_number
60
+ if build_time is not None:
61
+ self.build_time = build_time
62
+ if build_result is not None:
63
+ self.build_result = build_result
64
+
65
+ @property
66
+ def daily_build_number(self):
67
+ r"""Gets the daily_build_number of this ShowJobBuildTimeResultChart.
68
+
69
+ 构建每日编号
70
+
71
+ :return: The daily_build_number of this ShowJobBuildTimeResultChart.
72
+ :rtype: str
73
+ """
74
+ return self._daily_build_number
75
+
76
+ @daily_build_number.setter
77
+ def daily_build_number(self, daily_build_number):
78
+ r"""Sets the daily_build_number of this ShowJobBuildTimeResultChart.
79
+
80
+ 构建每日编号
81
+
82
+ :param daily_build_number: The daily_build_number of this ShowJobBuildTimeResultChart.
83
+ :type daily_build_number: str
84
+ """
85
+ self._daily_build_number = daily_build_number
86
+
87
+ @property
88
+ def build_number(self):
89
+ r"""Gets the build_number of this ShowJobBuildTimeResultChart.
90
+
91
+ 构建编号
92
+
93
+ :return: The build_number of this ShowJobBuildTimeResultChart.
94
+ :rtype: int
95
+ """
96
+ return self._build_number
97
+
98
+ @build_number.setter
99
+ def build_number(self, build_number):
100
+ r"""Sets the build_number of this ShowJobBuildTimeResultChart.
101
+
102
+ 构建编号
103
+
104
+ :param build_number: The build_number of this ShowJobBuildTimeResultChart.
105
+ :type build_number: int
106
+ """
107
+ self._build_number = build_number
108
+
109
+ @property
110
+ def build_time(self):
111
+ r"""Gets the build_time of this ShowJobBuildTimeResultChart.
112
+
113
+ 步骤执行时长,单位s
114
+
115
+ :return: The build_time of this ShowJobBuildTimeResultChart.
116
+ :rtype: int
117
+ """
118
+ return self._build_time
119
+
120
+ @build_time.setter
121
+ def build_time(self, build_time):
122
+ r"""Sets the build_time of this ShowJobBuildTimeResultChart.
123
+
124
+ 步骤执行时长,单位s
125
+
126
+ :param build_time: The build_time of this ShowJobBuildTimeResultChart.
127
+ :type build_time: int
128
+ """
129
+ self._build_time = build_time
130
+
131
+ @property
132
+ def build_result(self):
133
+ r"""Gets the build_result of this ShowJobBuildTimeResultChart.
134
+
135
+ 构建结果
136
+
137
+ :return: The build_result of this ShowJobBuildTimeResultChart.
138
+ :rtype: str
139
+ """
140
+ return self._build_result
141
+
142
+ @build_result.setter
143
+ def build_result(self, build_result):
144
+ r"""Sets the build_result of this ShowJobBuildTimeResultChart.
145
+
146
+ 构建结果
147
+
148
+ :param build_result: The build_result of this ShowJobBuildTimeResultChart.
149
+ :type build_result: str
150
+ """
151
+ self._build_result = build_result
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_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
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, ShowJobBuildTimeResultChart):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ return not self == other