huaweicloudsdkcodeartsbuild 3.1.151__py2.py3-none-any.whl → 3.1.153__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.
- huaweicloudsdkcodeartsbuild/v3/__init__.py +99 -1
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +3171 -929
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +3171 -929
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +99 -1
- huaweicloudsdkcodeartsbuild/v3/model/brief_record_items.py +550 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_parameter.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_count_is_top_limit_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_count_is_top_limit_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request_body.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_build_job_request_body.py +429 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_build_job_request_body.py +115 -3
- huaweicloudsdkcodeartsbuild/v3/model/create_build_job_scm.py +90 -3
- huaweicloudsdkcodeartsbuild/v3/model/create_build_timeout.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_build_job_response.py +4 -4
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_template_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/{delete_build_job_response_body_result.py → delete_the_job_response_body_result.py} +11 -11
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request_body.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_junit_coverage_zip_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_junit_coverage_zip_response.py +85 -0
- huaweicloudsdkcodeartsbuild/v3/model/execute_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/execute_job_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/is_disable_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/job.py +264 -3
- huaweicloudsdkcodeartsbuild/v3/model/job_status_body.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_summary.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_summary_body_result.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_update_record_list_vo_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_update_record_list_vo_result_job_update_records.py +289 -0
- huaweicloudsdkcodeartsbuild/v3/model/jobs_request_body.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_parameter_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_parameter_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_custom_template_request.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_custom_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_job_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_job_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_job_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_job_result_job_list.py +1217 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_result_unit_summary_list.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response_body_result_keystore_list.py +517 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response_body_result_permission.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request_body.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_repo_branch_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_repo_branch_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_repository_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_repository_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_update_job_history_request.py +172 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_update_job_history_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/query_custom_templates_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/repositories_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request_body.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_flow_graph_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_flow_graph_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_copy_name_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_copy_name_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_project_permission_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_project_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_project_permission_response_body_result.py +347 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_disable_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_disable_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_record_detail_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_record_detail_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_step_status_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_step_status_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_total_request.py +172 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_total_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_summary_build_job_info_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_summary_build_job_info_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_over_package_quota_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_over_package_quota_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_over_package_quota_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/total_response_body_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/trigger.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_job_response.py +170 -0
- {huaweicloudsdkcodeartsbuild-3.1.151.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.151.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/RECORD +112 -14
- {huaweicloudsdkcodeartsbuild-3.1.151.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.151.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.151.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,550 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BriefRecordItems:
|
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
|
+
'id': 'str',
|
21
|
+
'status': 'str',
|
22
|
+
'duration': 'int',
|
23
|
+
'create_time': 'str',
|
24
|
+
'schedule_time': 'str',
|
25
|
+
'queued_time': 'str',
|
26
|
+
'start_time': 'str',
|
27
|
+
'finish_time': 'str',
|
28
|
+
'build_duration': 'int',
|
29
|
+
'pending_duration': 'int',
|
30
|
+
'project_id': 'str',
|
31
|
+
'build_no': 'int',
|
32
|
+
'branch': 'str',
|
33
|
+
'revision': 'str',
|
34
|
+
'trigger_name': 'str',
|
35
|
+
'daily_build_number': 'str'
|
36
|
+
}
|
37
|
+
|
38
|
+
attribute_map = {
|
39
|
+
'id': 'id',
|
40
|
+
'status': 'status',
|
41
|
+
'duration': 'duration',
|
42
|
+
'create_time': 'create_time',
|
43
|
+
'schedule_time': 'schedule_time',
|
44
|
+
'queued_time': 'queued_time',
|
45
|
+
'start_time': 'start_time',
|
46
|
+
'finish_time': 'finish_time',
|
47
|
+
'build_duration': 'build_duration',
|
48
|
+
'pending_duration': 'pending_duration',
|
49
|
+
'project_id': 'project_id',
|
50
|
+
'build_no': 'build_no',
|
51
|
+
'branch': 'branch',
|
52
|
+
'revision': 'revision',
|
53
|
+
'trigger_name': 'trigger_name',
|
54
|
+
'daily_build_number': 'daily_build_number'
|
55
|
+
}
|
56
|
+
|
57
|
+
def __init__(self, id=None, status=None, duration=None, create_time=None, schedule_time=None, queued_time=None, start_time=None, finish_time=None, build_duration=None, pending_duration=None, project_id=None, build_no=None, branch=None, revision=None, trigger_name=None, daily_build_number=None):
|
58
|
+
r"""BriefRecordItems
|
59
|
+
|
60
|
+
The model defined in huaweicloud sdk
|
61
|
+
|
62
|
+
:param id: 构建任务的ID
|
63
|
+
:type id: str
|
64
|
+
:param status: 状态
|
65
|
+
:type status: str
|
66
|
+
:param duration: 构建时长
|
67
|
+
:type duration: int
|
68
|
+
:param create_time: 创建时间
|
69
|
+
:type create_time: str
|
70
|
+
:param schedule_time: 构建下发时间
|
71
|
+
:type schedule_time: str
|
72
|
+
:param queued_time: 构建排队耗时
|
73
|
+
:type queued_time: str
|
74
|
+
:param start_time: 开始时间
|
75
|
+
:type start_time: str
|
76
|
+
:param finish_time: 结束时间
|
77
|
+
:type finish_time: str
|
78
|
+
:param build_duration: 子任务构建耗时
|
79
|
+
:type build_duration: int
|
80
|
+
:param pending_duration: 等待时间
|
81
|
+
:type pending_duration: int
|
82
|
+
:param project_id: 所属的项目ID
|
83
|
+
:type project_id: str
|
84
|
+
:param build_no: 构建任务的构建编号,从1开始,每次构建递增1
|
85
|
+
:type build_no: int
|
86
|
+
:param branch: 代码分支
|
87
|
+
:type branch: str
|
88
|
+
:param revision: commitId
|
89
|
+
:type revision: str
|
90
|
+
:param trigger_name: 触发者名称
|
91
|
+
:type trigger_name: str
|
92
|
+
:param daily_build_number: 构建编号,每日从1开始
|
93
|
+
:type daily_build_number: str
|
94
|
+
"""
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
self._id = None
|
99
|
+
self._status = None
|
100
|
+
self._duration = None
|
101
|
+
self._create_time = None
|
102
|
+
self._schedule_time = None
|
103
|
+
self._queued_time = None
|
104
|
+
self._start_time = None
|
105
|
+
self._finish_time = None
|
106
|
+
self._build_duration = None
|
107
|
+
self._pending_duration = None
|
108
|
+
self._project_id = None
|
109
|
+
self._build_no = None
|
110
|
+
self._branch = None
|
111
|
+
self._revision = None
|
112
|
+
self._trigger_name = None
|
113
|
+
self._daily_build_number = None
|
114
|
+
self.discriminator = None
|
115
|
+
|
116
|
+
if id is not None:
|
117
|
+
self.id = id
|
118
|
+
if status is not None:
|
119
|
+
self.status = status
|
120
|
+
if duration is not None:
|
121
|
+
self.duration = duration
|
122
|
+
if create_time is not None:
|
123
|
+
self.create_time = create_time
|
124
|
+
if schedule_time is not None:
|
125
|
+
self.schedule_time = schedule_time
|
126
|
+
if queued_time is not None:
|
127
|
+
self.queued_time = queued_time
|
128
|
+
if start_time is not None:
|
129
|
+
self.start_time = start_time
|
130
|
+
if finish_time is not None:
|
131
|
+
self.finish_time = finish_time
|
132
|
+
if build_duration is not None:
|
133
|
+
self.build_duration = build_duration
|
134
|
+
if pending_duration is not None:
|
135
|
+
self.pending_duration = pending_duration
|
136
|
+
if project_id is not None:
|
137
|
+
self.project_id = project_id
|
138
|
+
if build_no is not None:
|
139
|
+
self.build_no = build_no
|
140
|
+
if branch is not None:
|
141
|
+
self.branch = branch
|
142
|
+
if revision is not None:
|
143
|
+
self.revision = revision
|
144
|
+
if trigger_name is not None:
|
145
|
+
self.trigger_name = trigger_name
|
146
|
+
if daily_build_number is not None:
|
147
|
+
self.daily_build_number = daily_build_number
|
148
|
+
|
149
|
+
@property
|
150
|
+
def id(self):
|
151
|
+
r"""Gets the id of this BriefRecordItems.
|
152
|
+
|
153
|
+
构建任务的ID
|
154
|
+
|
155
|
+
:return: The id of this BriefRecordItems.
|
156
|
+
:rtype: str
|
157
|
+
"""
|
158
|
+
return self._id
|
159
|
+
|
160
|
+
@id.setter
|
161
|
+
def id(self, id):
|
162
|
+
r"""Sets the id of this BriefRecordItems.
|
163
|
+
|
164
|
+
构建任务的ID
|
165
|
+
|
166
|
+
:param id: The id of this BriefRecordItems.
|
167
|
+
:type id: str
|
168
|
+
"""
|
169
|
+
self._id = id
|
170
|
+
|
171
|
+
@property
|
172
|
+
def status(self):
|
173
|
+
r"""Gets the status of this BriefRecordItems.
|
174
|
+
|
175
|
+
状态
|
176
|
+
|
177
|
+
:return: The status of this BriefRecordItems.
|
178
|
+
:rtype: str
|
179
|
+
"""
|
180
|
+
return self._status
|
181
|
+
|
182
|
+
@status.setter
|
183
|
+
def status(self, status):
|
184
|
+
r"""Sets the status of this BriefRecordItems.
|
185
|
+
|
186
|
+
状态
|
187
|
+
|
188
|
+
:param status: The status of this BriefRecordItems.
|
189
|
+
:type status: str
|
190
|
+
"""
|
191
|
+
self._status = status
|
192
|
+
|
193
|
+
@property
|
194
|
+
def duration(self):
|
195
|
+
r"""Gets the duration of this BriefRecordItems.
|
196
|
+
|
197
|
+
构建时长
|
198
|
+
|
199
|
+
:return: The duration of this BriefRecordItems.
|
200
|
+
:rtype: int
|
201
|
+
"""
|
202
|
+
return self._duration
|
203
|
+
|
204
|
+
@duration.setter
|
205
|
+
def duration(self, duration):
|
206
|
+
r"""Sets the duration of this BriefRecordItems.
|
207
|
+
|
208
|
+
构建时长
|
209
|
+
|
210
|
+
:param duration: The duration of this BriefRecordItems.
|
211
|
+
:type duration: int
|
212
|
+
"""
|
213
|
+
self._duration = duration
|
214
|
+
|
215
|
+
@property
|
216
|
+
def create_time(self):
|
217
|
+
r"""Gets the create_time of this BriefRecordItems.
|
218
|
+
|
219
|
+
创建时间
|
220
|
+
|
221
|
+
:return: The create_time of this BriefRecordItems.
|
222
|
+
:rtype: str
|
223
|
+
"""
|
224
|
+
return self._create_time
|
225
|
+
|
226
|
+
@create_time.setter
|
227
|
+
def create_time(self, create_time):
|
228
|
+
r"""Sets the create_time of this BriefRecordItems.
|
229
|
+
|
230
|
+
创建时间
|
231
|
+
|
232
|
+
:param create_time: The create_time of this BriefRecordItems.
|
233
|
+
:type create_time: str
|
234
|
+
"""
|
235
|
+
self._create_time = create_time
|
236
|
+
|
237
|
+
@property
|
238
|
+
def schedule_time(self):
|
239
|
+
r"""Gets the schedule_time of this BriefRecordItems.
|
240
|
+
|
241
|
+
构建下发时间
|
242
|
+
|
243
|
+
:return: The schedule_time of this BriefRecordItems.
|
244
|
+
:rtype: str
|
245
|
+
"""
|
246
|
+
return self._schedule_time
|
247
|
+
|
248
|
+
@schedule_time.setter
|
249
|
+
def schedule_time(self, schedule_time):
|
250
|
+
r"""Sets the schedule_time of this BriefRecordItems.
|
251
|
+
|
252
|
+
构建下发时间
|
253
|
+
|
254
|
+
:param schedule_time: The schedule_time of this BriefRecordItems.
|
255
|
+
:type schedule_time: str
|
256
|
+
"""
|
257
|
+
self._schedule_time = schedule_time
|
258
|
+
|
259
|
+
@property
|
260
|
+
def queued_time(self):
|
261
|
+
r"""Gets the queued_time of this BriefRecordItems.
|
262
|
+
|
263
|
+
构建排队耗时
|
264
|
+
|
265
|
+
:return: The queued_time of this BriefRecordItems.
|
266
|
+
:rtype: str
|
267
|
+
"""
|
268
|
+
return self._queued_time
|
269
|
+
|
270
|
+
@queued_time.setter
|
271
|
+
def queued_time(self, queued_time):
|
272
|
+
r"""Sets the queued_time of this BriefRecordItems.
|
273
|
+
|
274
|
+
构建排队耗时
|
275
|
+
|
276
|
+
:param queued_time: The queued_time of this BriefRecordItems.
|
277
|
+
:type queued_time: str
|
278
|
+
"""
|
279
|
+
self._queued_time = queued_time
|
280
|
+
|
281
|
+
@property
|
282
|
+
def start_time(self):
|
283
|
+
r"""Gets the start_time of this BriefRecordItems.
|
284
|
+
|
285
|
+
开始时间
|
286
|
+
|
287
|
+
:return: The start_time of this BriefRecordItems.
|
288
|
+
:rtype: str
|
289
|
+
"""
|
290
|
+
return self._start_time
|
291
|
+
|
292
|
+
@start_time.setter
|
293
|
+
def start_time(self, start_time):
|
294
|
+
r"""Sets the start_time of this BriefRecordItems.
|
295
|
+
|
296
|
+
开始时间
|
297
|
+
|
298
|
+
:param start_time: The start_time of this BriefRecordItems.
|
299
|
+
:type start_time: str
|
300
|
+
"""
|
301
|
+
self._start_time = start_time
|
302
|
+
|
303
|
+
@property
|
304
|
+
def finish_time(self):
|
305
|
+
r"""Gets the finish_time of this BriefRecordItems.
|
306
|
+
|
307
|
+
结束时间
|
308
|
+
|
309
|
+
:return: The finish_time of this BriefRecordItems.
|
310
|
+
:rtype: str
|
311
|
+
"""
|
312
|
+
return self._finish_time
|
313
|
+
|
314
|
+
@finish_time.setter
|
315
|
+
def finish_time(self, finish_time):
|
316
|
+
r"""Sets the finish_time of this BriefRecordItems.
|
317
|
+
|
318
|
+
结束时间
|
319
|
+
|
320
|
+
:param finish_time: The finish_time of this BriefRecordItems.
|
321
|
+
:type finish_time: str
|
322
|
+
"""
|
323
|
+
self._finish_time = finish_time
|
324
|
+
|
325
|
+
@property
|
326
|
+
def build_duration(self):
|
327
|
+
r"""Gets the build_duration of this BriefRecordItems.
|
328
|
+
|
329
|
+
子任务构建耗时
|
330
|
+
|
331
|
+
:return: The build_duration of this BriefRecordItems.
|
332
|
+
:rtype: int
|
333
|
+
"""
|
334
|
+
return self._build_duration
|
335
|
+
|
336
|
+
@build_duration.setter
|
337
|
+
def build_duration(self, build_duration):
|
338
|
+
r"""Sets the build_duration of this BriefRecordItems.
|
339
|
+
|
340
|
+
子任务构建耗时
|
341
|
+
|
342
|
+
:param build_duration: The build_duration of this BriefRecordItems.
|
343
|
+
:type build_duration: int
|
344
|
+
"""
|
345
|
+
self._build_duration = build_duration
|
346
|
+
|
347
|
+
@property
|
348
|
+
def pending_duration(self):
|
349
|
+
r"""Gets the pending_duration of this BriefRecordItems.
|
350
|
+
|
351
|
+
等待时间
|
352
|
+
|
353
|
+
:return: The pending_duration of this BriefRecordItems.
|
354
|
+
:rtype: int
|
355
|
+
"""
|
356
|
+
return self._pending_duration
|
357
|
+
|
358
|
+
@pending_duration.setter
|
359
|
+
def pending_duration(self, pending_duration):
|
360
|
+
r"""Sets the pending_duration of this BriefRecordItems.
|
361
|
+
|
362
|
+
等待时间
|
363
|
+
|
364
|
+
:param pending_duration: The pending_duration of this BriefRecordItems.
|
365
|
+
:type pending_duration: int
|
366
|
+
"""
|
367
|
+
self._pending_duration = pending_duration
|
368
|
+
|
369
|
+
@property
|
370
|
+
def project_id(self):
|
371
|
+
r"""Gets the project_id of this BriefRecordItems.
|
372
|
+
|
373
|
+
所属的项目ID
|
374
|
+
|
375
|
+
:return: The project_id of this BriefRecordItems.
|
376
|
+
:rtype: str
|
377
|
+
"""
|
378
|
+
return self._project_id
|
379
|
+
|
380
|
+
@project_id.setter
|
381
|
+
def project_id(self, project_id):
|
382
|
+
r"""Sets the project_id of this BriefRecordItems.
|
383
|
+
|
384
|
+
所属的项目ID
|
385
|
+
|
386
|
+
:param project_id: The project_id of this BriefRecordItems.
|
387
|
+
:type project_id: str
|
388
|
+
"""
|
389
|
+
self._project_id = project_id
|
390
|
+
|
391
|
+
@property
|
392
|
+
def build_no(self):
|
393
|
+
r"""Gets the build_no of this BriefRecordItems.
|
394
|
+
|
395
|
+
构建任务的构建编号,从1开始,每次构建递增1
|
396
|
+
|
397
|
+
:return: The build_no of this BriefRecordItems.
|
398
|
+
:rtype: int
|
399
|
+
"""
|
400
|
+
return self._build_no
|
401
|
+
|
402
|
+
@build_no.setter
|
403
|
+
def build_no(self, build_no):
|
404
|
+
r"""Sets the build_no of this BriefRecordItems.
|
405
|
+
|
406
|
+
构建任务的构建编号,从1开始,每次构建递增1
|
407
|
+
|
408
|
+
:param build_no: The build_no of this BriefRecordItems.
|
409
|
+
:type build_no: int
|
410
|
+
"""
|
411
|
+
self._build_no = build_no
|
412
|
+
|
413
|
+
@property
|
414
|
+
def branch(self):
|
415
|
+
r"""Gets the branch of this BriefRecordItems.
|
416
|
+
|
417
|
+
代码分支
|
418
|
+
|
419
|
+
:return: The branch of this BriefRecordItems.
|
420
|
+
:rtype: str
|
421
|
+
"""
|
422
|
+
return self._branch
|
423
|
+
|
424
|
+
@branch.setter
|
425
|
+
def branch(self, branch):
|
426
|
+
r"""Sets the branch of this BriefRecordItems.
|
427
|
+
|
428
|
+
代码分支
|
429
|
+
|
430
|
+
:param branch: The branch of this BriefRecordItems.
|
431
|
+
:type branch: str
|
432
|
+
"""
|
433
|
+
self._branch = branch
|
434
|
+
|
435
|
+
@property
|
436
|
+
def revision(self):
|
437
|
+
r"""Gets the revision of this BriefRecordItems.
|
438
|
+
|
439
|
+
commitId
|
440
|
+
|
441
|
+
:return: The revision of this BriefRecordItems.
|
442
|
+
:rtype: str
|
443
|
+
"""
|
444
|
+
return self._revision
|
445
|
+
|
446
|
+
@revision.setter
|
447
|
+
def revision(self, revision):
|
448
|
+
r"""Sets the revision of this BriefRecordItems.
|
449
|
+
|
450
|
+
commitId
|
451
|
+
|
452
|
+
:param revision: The revision of this BriefRecordItems.
|
453
|
+
:type revision: str
|
454
|
+
"""
|
455
|
+
self._revision = revision
|
456
|
+
|
457
|
+
@property
|
458
|
+
def trigger_name(self):
|
459
|
+
r"""Gets the trigger_name of this BriefRecordItems.
|
460
|
+
|
461
|
+
触发者名称
|
462
|
+
|
463
|
+
:return: The trigger_name of this BriefRecordItems.
|
464
|
+
:rtype: str
|
465
|
+
"""
|
466
|
+
return self._trigger_name
|
467
|
+
|
468
|
+
@trigger_name.setter
|
469
|
+
def trigger_name(self, trigger_name):
|
470
|
+
r"""Sets the trigger_name of this BriefRecordItems.
|
471
|
+
|
472
|
+
触发者名称
|
473
|
+
|
474
|
+
:param trigger_name: The trigger_name of this BriefRecordItems.
|
475
|
+
:type trigger_name: str
|
476
|
+
"""
|
477
|
+
self._trigger_name = trigger_name
|
478
|
+
|
479
|
+
@property
|
480
|
+
def daily_build_number(self):
|
481
|
+
r"""Gets the daily_build_number of this BriefRecordItems.
|
482
|
+
|
483
|
+
构建编号,每日从1开始
|
484
|
+
|
485
|
+
:return: The daily_build_number of this BriefRecordItems.
|
486
|
+
:rtype: str
|
487
|
+
"""
|
488
|
+
return self._daily_build_number
|
489
|
+
|
490
|
+
@daily_build_number.setter
|
491
|
+
def daily_build_number(self, daily_build_number):
|
492
|
+
r"""Sets the daily_build_number of this BriefRecordItems.
|
493
|
+
|
494
|
+
构建编号,每日从1开始
|
495
|
+
|
496
|
+
:param daily_build_number: The daily_build_number of this BriefRecordItems.
|
497
|
+
:type daily_build_number: str
|
498
|
+
"""
|
499
|
+
self._daily_build_number = daily_build_number
|
500
|
+
|
501
|
+
def to_dict(self):
|
502
|
+
"""Returns the model properties as a dict"""
|
503
|
+
result = {}
|
504
|
+
|
505
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
506
|
+
value = getattr(self, attr)
|
507
|
+
if isinstance(value, list):
|
508
|
+
result[attr] = list(map(
|
509
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
510
|
+
value
|
511
|
+
))
|
512
|
+
elif hasattr(value, "to_dict"):
|
513
|
+
result[attr] = value.to_dict()
|
514
|
+
elif isinstance(value, dict):
|
515
|
+
result[attr] = dict(map(
|
516
|
+
lambda item: (item[0], item[1].to_dict())
|
517
|
+
if hasattr(item[1], "to_dict") else item,
|
518
|
+
value.items()
|
519
|
+
))
|
520
|
+
else:
|
521
|
+
if attr in self.sensitive_list:
|
522
|
+
result[attr] = "****"
|
523
|
+
else:
|
524
|
+
result[attr] = value
|
525
|
+
|
526
|
+
return result
|
527
|
+
|
528
|
+
def to_str(self):
|
529
|
+
"""Returns the string representation of the model"""
|
530
|
+
import simplejson as json
|
531
|
+
if six.PY2:
|
532
|
+
import sys
|
533
|
+
reload(sys)
|
534
|
+
sys.setdefaultencoding("utf-8")
|
535
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
536
|
+
|
537
|
+
def __repr__(self):
|
538
|
+
"""For `print`"""
|
539
|
+
return self.to_str()
|
540
|
+
|
541
|
+
def __eq__(self, other):
|
542
|
+
"""Returns true if both objects are equal"""
|
543
|
+
if not isinstance(other, BriefRecordItems):
|
544
|
+
return False
|
545
|
+
|
546
|
+
return self.__dict__ == other.__dict__
|
547
|
+
|
548
|
+
def __ne__(self, other):
|
549
|
+
"""Returns true if both objects are not equal"""
|
550
|
+
return not self == other
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BuildParameter:
|
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
|
+
'value': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'name': 'name',
|
26
|
+
'value': 'value'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, name=None, value=None):
|
30
|
+
r"""BuildParameter
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param name: 参数名
|
35
|
+
:type name: str
|
36
|
+
:param value: 参数值
|
37
|
+
:type value: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._name = None
|
43
|
+
self._value = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if name is not None:
|
47
|
+
self.name = name
|
48
|
+
if value is not None:
|
49
|
+
self.value = value
|
50
|
+
|
51
|
+
@property
|
52
|
+
def name(self):
|
53
|
+
r"""Gets the name of this BuildParameter.
|
54
|
+
|
55
|
+
参数名
|
56
|
+
|
57
|
+
:return: The name of this BuildParameter.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._name
|
61
|
+
|
62
|
+
@name.setter
|
63
|
+
def name(self, name):
|
64
|
+
r"""Sets the name of this BuildParameter.
|
65
|
+
|
66
|
+
参数名
|
67
|
+
|
68
|
+
:param name: The name of this BuildParameter.
|
69
|
+
:type name: str
|
70
|
+
"""
|
71
|
+
self._name = name
|
72
|
+
|
73
|
+
@property
|
74
|
+
def value(self):
|
75
|
+
r"""Gets the value of this BuildParameter.
|
76
|
+
|
77
|
+
参数值
|
78
|
+
|
79
|
+
:return: The value of this BuildParameter.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._value
|
83
|
+
|
84
|
+
@value.setter
|
85
|
+
def value(self, value):
|
86
|
+
r"""Sets the value of this BuildParameter.
|
87
|
+
|
88
|
+
参数值
|
89
|
+
|
90
|
+
:param value: The value of this BuildParameter.
|
91
|
+
:type value: str
|
92
|
+
"""
|
93
|
+
self._value = value
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, BuildParameter):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|