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.
- huaweicloudsdkcodeartsbuild/v3/__init__.py +50 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1120 -105
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1120 -105
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +50 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/RECORD +59 -9
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,981 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BuildRecord:
|
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
|
+
'status_code': 'int',
|
23
|
+
'create_time': 'str',
|
24
|
+
'schedule_time': 'str',
|
25
|
+
'queued_time': 'str',
|
26
|
+
'start_time': 'str',
|
27
|
+
'finish_time': 'str',
|
28
|
+
'duration': 'int',
|
29
|
+
'build_duration': 'int',
|
30
|
+
'pending_duration': 'int',
|
31
|
+
'project_id': 'str',
|
32
|
+
'display_name': 'str',
|
33
|
+
'trigger_name': 'str',
|
34
|
+
'group_name': 'str',
|
35
|
+
'execution_id': 'str',
|
36
|
+
'parameters': 'list[BuildRecordParameters]',
|
37
|
+
'repository': 'str',
|
38
|
+
'branch': 'str',
|
39
|
+
'revision': 'str',
|
40
|
+
'build_yml_path': 'str',
|
41
|
+
'build_yml_url': 'str',
|
42
|
+
'daily_build_number': 'str',
|
43
|
+
'build_record_type': 'BuildRecordBuildRecordType',
|
44
|
+
'trigger_type': 'str',
|
45
|
+
'scm_type': 'str',
|
46
|
+
'scm_web_url': 'str',
|
47
|
+
'user_id': 'str',
|
48
|
+
'build_no': 'str',
|
49
|
+
'daily_build_no': 'str',
|
50
|
+
'dev_cloud_build_type': 'str'
|
51
|
+
}
|
52
|
+
|
53
|
+
attribute_map = {
|
54
|
+
'id': 'id',
|
55
|
+
'status': 'status',
|
56
|
+
'status_code': 'status_code',
|
57
|
+
'create_time': 'create_time',
|
58
|
+
'schedule_time': 'schedule_time',
|
59
|
+
'queued_time': 'queued_time',
|
60
|
+
'start_time': 'start_time',
|
61
|
+
'finish_time': 'finish_time',
|
62
|
+
'duration': 'duration',
|
63
|
+
'build_duration': 'build_duration',
|
64
|
+
'pending_duration': 'pending_duration',
|
65
|
+
'project_id': 'project_id',
|
66
|
+
'display_name': 'display_name',
|
67
|
+
'trigger_name': 'trigger_name',
|
68
|
+
'group_name': 'group_name',
|
69
|
+
'execution_id': 'execution_id',
|
70
|
+
'parameters': 'parameters',
|
71
|
+
'repository': 'repository',
|
72
|
+
'branch': 'branch',
|
73
|
+
'revision': 'revision',
|
74
|
+
'build_yml_path': 'build_yml_path',
|
75
|
+
'build_yml_url': 'build_yml_url',
|
76
|
+
'daily_build_number': 'daily_build_number',
|
77
|
+
'build_record_type': 'build_record_type',
|
78
|
+
'trigger_type': 'trigger_type',
|
79
|
+
'scm_type': 'scm_type',
|
80
|
+
'scm_web_url': 'scm_web_url',
|
81
|
+
'user_id': 'user_id',
|
82
|
+
'build_no': 'build_no',
|
83
|
+
'daily_build_no': 'daily_build_no',
|
84
|
+
'dev_cloud_build_type': 'dev_cloud_build_type'
|
85
|
+
}
|
86
|
+
|
87
|
+
def __init__(self, id=None, status=None, status_code=None, create_time=None, schedule_time=None, queued_time=None, start_time=None, finish_time=None, duration=None, build_duration=None, pending_duration=None, project_id=None, display_name=None, trigger_name=None, group_name=None, execution_id=None, parameters=None, repository=None, branch=None, revision=None, build_yml_path=None, build_yml_url=None, daily_build_number=None, build_record_type=None, trigger_type=None, scm_type=None, scm_web_url=None, user_id=None, build_no=None, daily_build_no=None, dev_cloud_build_type=None):
|
88
|
+
r"""BuildRecord
|
89
|
+
|
90
|
+
The model defined in huaweicloud sdk
|
91
|
+
|
92
|
+
:param id: 唯一标识
|
93
|
+
:type id: str
|
94
|
+
:param status: 状态
|
95
|
+
:type status: str
|
96
|
+
:param status_code: 状态码
|
97
|
+
:type status_code: int
|
98
|
+
:param create_time: 创建时间
|
99
|
+
:type create_time: str
|
100
|
+
:param schedule_time: 等待时间
|
101
|
+
:type schedule_time: str
|
102
|
+
:param queued_time: 排队时间
|
103
|
+
:type queued_time: str
|
104
|
+
:param start_time: 开始时间
|
105
|
+
:type start_time: str
|
106
|
+
:param finish_time: 完成时间
|
107
|
+
:type finish_time: str
|
108
|
+
:param duration: 持续时间
|
109
|
+
:type duration: int
|
110
|
+
:param build_duration: 构建时间
|
111
|
+
:type build_duration: int
|
112
|
+
:param pending_duration: 等待时间
|
113
|
+
:type pending_duration: int
|
114
|
+
:param project_id: 工程ID
|
115
|
+
:type project_id: str
|
116
|
+
:param display_name: 子任务名称
|
117
|
+
:type display_name: str
|
118
|
+
:param trigger_name: 触发者名称
|
119
|
+
:type trigger_name: str
|
120
|
+
:param group_name: 分组名
|
121
|
+
:type group_name: str
|
122
|
+
:param execution_id: 八爪鱼任务ID
|
123
|
+
:type execution_id: str
|
124
|
+
:param parameters: 构建执行参数列表
|
125
|
+
:type parameters: list[:class:`huaweicloudsdkcodeartsbuild.v3.BuildRecordParameters`]
|
126
|
+
:param repository: 仓库地址
|
127
|
+
:type repository: str
|
128
|
+
:param branch: 分支名
|
129
|
+
:type branch: str
|
130
|
+
:param revision: commitId
|
131
|
+
:type revision: str
|
132
|
+
:param build_yml_path: yaml路径
|
133
|
+
:type build_yml_path: str
|
134
|
+
:param build_yml_url: yaml地址
|
135
|
+
:type build_yml_url: str
|
136
|
+
:param daily_build_number: 构建每日编号
|
137
|
+
:type daily_build_number: str
|
138
|
+
:param build_record_type:
|
139
|
+
:type build_record_type: :class:`huaweicloudsdkcodeartsbuild.v3.BuildRecordBuildRecordType`
|
140
|
+
:param trigger_type: 触发类型
|
141
|
+
:type trigger_type: str
|
142
|
+
:param scm_type: 代码源类型
|
143
|
+
:type scm_type: str
|
144
|
+
:param scm_web_url: 代码源地址
|
145
|
+
:type scm_web_url: str
|
146
|
+
:param user_id: 用户id
|
147
|
+
:type user_id: str
|
148
|
+
:param build_no: 构建编码
|
149
|
+
:type build_no: str
|
150
|
+
:param daily_build_no: 构建每日编号
|
151
|
+
:type daily_build_no: str
|
152
|
+
:param dev_cloud_build_type: 构建类型
|
153
|
+
:type dev_cloud_build_type: str
|
154
|
+
"""
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
self._id = None
|
159
|
+
self._status = None
|
160
|
+
self._status_code = None
|
161
|
+
self._create_time = None
|
162
|
+
self._schedule_time = None
|
163
|
+
self._queued_time = None
|
164
|
+
self._start_time = None
|
165
|
+
self._finish_time = None
|
166
|
+
self._duration = None
|
167
|
+
self._build_duration = None
|
168
|
+
self._pending_duration = None
|
169
|
+
self._project_id = None
|
170
|
+
self._display_name = None
|
171
|
+
self._trigger_name = None
|
172
|
+
self._group_name = None
|
173
|
+
self._execution_id = None
|
174
|
+
self._parameters = None
|
175
|
+
self._repository = None
|
176
|
+
self._branch = None
|
177
|
+
self._revision = None
|
178
|
+
self._build_yml_path = None
|
179
|
+
self._build_yml_url = None
|
180
|
+
self._daily_build_number = None
|
181
|
+
self._build_record_type = None
|
182
|
+
self._trigger_type = None
|
183
|
+
self._scm_type = None
|
184
|
+
self._scm_web_url = None
|
185
|
+
self._user_id = None
|
186
|
+
self._build_no = None
|
187
|
+
self._daily_build_no = None
|
188
|
+
self._dev_cloud_build_type = None
|
189
|
+
self.discriminator = None
|
190
|
+
|
191
|
+
if id is not None:
|
192
|
+
self.id = id
|
193
|
+
if status is not None:
|
194
|
+
self.status = status
|
195
|
+
if status_code is not None:
|
196
|
+
self.status_code = status_code
|
197
|
+
if create_time is not None:
|
198
|
+
self.create_time = create_time
|
199
|
+
if schedule_time is not None:
|
200
|
+
self.schedule_time = schedule_time
|
201
|
+
if queued_time is not None:
|
202
|
+
self.queued_time = queued_time
|
203
|
+
if start_time is not None:
|
204
|
+
self.start_time = start_time
|
205
|
+
if finish_time is not None:
|
206
|
+
self.finish_time = finish_time
|
207
|
+
if duration is not None:
|
208
|
+
self.duration = duration
|
209
|
+
if build_duration is not None:
|
210
|
+
self.build_duration = build_duration
|
211
|
+
if pending_duration is not None:
|
212
|
+
self.pending_duration = pending_duration
|
213
|
+
if project_id is not None:
|
214
|
+
self.project_id = project_id
|
215
|
+
if display_name is not None:
|
216
|
+
self.display_name = display_name
|
217
|
+
if trigger_name is not None:
|
218
|
+
self.trigger_name = trigger_name
|
219
|
+
if group_name is not None:
|
220
|
+
self.group_name = group_name
|
221
|
+
if execution_id is not None:
|
222
|
+
self.execution_id = execution_id
|
223
|
+
if parameters is not None:
|
224
|
+
self.parameters = parameters
|
225
|
+
if repository is not None:
|
226
|
+
self.repository = repository
|
227
|
+
if branch is not None:
|
228
|
+
self.branch = branch
|
229
|
+
if revision is not None:
|
230
|
+
self.revision = revision
|
231
|
+
if build_yml_path is not None:
|
232
|
+
self.build_yml_path = build_yml_path
|
233
|
+
if build_yml_url is not None:
|
234
|
+
self.build_yml_url = build_yml_url
|
235
|
+
if daily_build_number is not None:
|
236
|
+
self.daily_build_number = daily_build_number
|
237
|
+
if build_record_type is not None:
|
238
|
+
self.build_record_type = build_record_type
|
239
|
+
if trigger_type is not None:
|
240
|
+
self.trigger_type = trigger_type
|
241
|
+
if scm_type is not None:
|
242
|
+
self.scm_type = scm_type
|
243
|
+
if scm_web_url is not None:
|
244
|
+
self.scm_web_url = scm_web_url
|
245
|
+
if user_id is not None:
|
246
|
+
self.user_id = user_id
|
247
|
+
if build_no is not None:
|
248
|
+
self.build_no = build_no
|
249
|
+
if daily_build_no is not None:
|
250
|
+
self.daily_build_no = daily_build_no
|
251
|
+
if dev_cloud_build_type is not None:
|
252
|
+
self.dev_cloud_build_type = dev_cloud_build_type
|
253
|
+
|
254
|
+
@property
|
255
|
+
def id(self):
|
256
|
+
r"""Gets the id of this BuildRecord.
|
257
|
+
|
258
|
+
唯一标识
|
259
|
+
|
260
|
+
:return: The id of this BuildRecord.
|
261
|
+
:rtype: str
|
262
|
+
"""
|
263
|
+
return self._id
|
264
|
+
|
265
|
+
@id.setter
|
266
|
+
def id(self, id):
|
267
|
+
r"""Sets the id of this BuildRecord.
|
268
|
+
|
269
|
+
唯一标识
|
270
|
+
|
271
|
+
:param id: The id of this BuildRecord.
|
272
|
+
:type id: str
|
273
|
+
"""
|
274
|
+
self._id = id
|
275
|
+
|
276
|
+
@property
|
277
|
+
def status(self):
|
278
|
+
r"""Gets the status of this BuildRecord.
|
279
|
+
|
280
|
+
状态
|
281
|
+
|
282
|
+
:return: The status of this BuildRecord.
|
283
|
+
:rtype: str
|
284
|
+
"""
|
285
|
+
return self._status
|
286
|
+
|
287
|
+
@status.setter
|
288
|
+
def status(self, status):
|
289
|
+
r"""Sets the status of this BuildRecord.
|
290
|
+
|
291
|
+
状态
|
292
|
+
|
293
|
+
:param status: The status of this BuildRecord.
|
294
|
+
:type status: str
|
295
|
+
"""
|
296
|
+
self._status = status
|
297
|
+
|
298
|
+
@property
|
299
|
+
def status_code(self):
|
300
|
+
r"""Gets the status_code of this BuildRecord.
|
301
|
+
|
302
|
+
状态码
|
303
|
+
|
304
|
+
:return: The status_code of this BuildRecord.
|
305
|
+
:rtype: int
|
306
|
+
"""
|
307
|
+
return self._status_code
|
308
|
+
|
309
|
+
@status_code.setter
|
310
|
+
def status_code(self, status_code):
|
311
|
+
r"""Sets the status_code of this BuildRecord.
|
312
|
+
|
313
|
+
状态码
|
314
|
+
|
315
|
+
:param status_code: The status_code of this BuildRecord.
|
316
|
+
:type status_code: int
|
317
|
+
"""
|
318
|
+
self._status_code = status_code
|
319
|
+
|
320
|
+
@property
|
321
|
+
def create_time(self):
|
322
|
+
r"""Gets the create_time of this BuildRecord.
|
323
|
+
|
324
|
+
创建时间
|
325
|
+
|
326
|
+
:return: The create_time of this BuildRecord.
|
327
|
+
:rtype: str
|
328
|
+
"""
|
329
|
+
return self._create_time
|
330
|
+
|
331
|
+
@create_time.setter
|
332
|
+
def create_time(self, create_time):
|
333
|
+
r"""Sets the create_time of this BuildRecord.
|
334
|
+
|
335
|
+
创建时间
|
336
|
+
|
337
|
+
:param create_time: The create_time of this BuildRecord.
|
338
|
+
:type create_time: str
|
339
|
+
"""
|
340
|
+
self._create_time = create_time
|
341
|
+
|
342
|
+
@property
|
343
|
+
def schedule_time(self):
|
344
|
+
r"""Gets the schedule_time of this BuildRecord.
|
345
|
+
|
346
|
+
等待时间
|
347
|
+
|
348
|
+
:return: The schedule_time of this BuildRecord.
|
349
|
+
:rtype: str
|
350
|
+
"""
|
351
|
+
return self._schedule_time
|
352
|
+
|
353
|
+
@schedule_time.setter
|
354
|
+
def schedule_time(self, schedule_time):
|
355
|
+
r"""Sets the schedule_time of this BuildRecord.
|
356
|
+
|
357
|
+
等待时间
|
358
|
+
|
359
|
+
:param schedule_time: The schedule_time of this BuildRecord.
|
360
|
+
:type schedule_time: str
|
361
|
+
"""
|
362
|
+
self._schedule_time = schedule_time
|
363
|
+
|
364
|
+
@property
|
365
|
+
def queued_time(self):
|
366
|
+
r"""Gets the queued_time of this BuildRecord.
|
367
|
+
|
368
|
+
排队时间
|
369
|
+
|
370
|
+
:return: The queued_time of this BuildRecord.
|
371
|
+
:rtype: str
|
372
|
+
"""
|
373
|
+
return self._queued_time
|
374
|
+
|
375
|
+
@queued_time.setter
|
376
|
+
def queued_time(self, queued_time):
|
377
|
+
r"""Sets the queued_time of this BuildRecord.
|
378
|
+
|
379
|
+
排队时间
|
380
|
+
|
381
|
+
:param queued_time: The queued_time of this BuildRecord.
|
382
|
+
:type queued_time: str
|
383
|
+
"""
|
384
|
+
self._queued_time = queued_time
|
385
|
+
|
386
|
+
@property
|
387
|
+
def start_time(self):
|
388
|
+
r"""Gets the start_time of this BuildRecord.
|
389
|
+
|
390
|
+
开始时间
|
391
|
+
|
392
|
+
:return: The start_time of this BuildRecord.
|
393
|
+
:rtype: str
|
394
|
+
"""
|
395
|
+
return self._start_time
|
396
|
+
|
397
|
+
@start_time.setter
|
398
|
+
def start_time(self, start_time):
|
399
|
+
r"""Sets the start_time of this BuildRecord.
|
400
|
+
|
401
|
+
开始时间
|
402
|
+
|
403
|
+
:param start_time: The start_time of this BuildRecord.
|
404
|
+
:type start_time: str
|
405
|
+
"""
|
406
|
+
self._start_time = start_time
|
407
|
+
|
408
|
+
@property
|
409
|
+
def finish_time(self):
|
410
|
+
r"""Gets the finish_time of this BuildRecord.
|
411
|
+
|
412
|
+
完成时间
|
413
|
+
|
414
|
+
:return: The finish_time of this BuildRecord.
|
415
|
+
:rtype: str
|
416
|
+
"""
|
417
|
+
return self._finish_time
|
418
|
+
|
419
|
+
@finish_time.setter
|
420
|
+
def finish_time(self, finish_time):
|
421
|
+
r"""Sets the finish_time of this BuildRecord.
|
422
|
+
|
423
|
+
完成时间
|
424
|
+
|
425
|
+
:param finish_time: The finish_time of this BuildRecord.
|
426
|
+
:type finish_time: str
|
427
|
+
"""
|
428
|
+
self._finish_time = finish_time
|
429
|
+
|
430
|
+
@property
|
431
|
+
def duration(self):
|
432
|
+
r"""Gets the duration of this BuildRecord.
|
433
|
+
|
434
|
+
持续时间
|
435
|
+
|
436
|
+
:return: The duration of this BuildRecord.
|
437
|
+
:rtype: int
|
438
|
+
"""
|
439
|
+
return self._duration
|
440
|
+
|
441
|
+
@duration.setter
|
442
|
+
def duration(self, duration):
|
443
|
+
r"""Sets the duration of this BuildRecord.
|
444
|
+
|
445
|
+
持续时间
|
446
|
+
|
447
|
+
:param duration: The duration of this BuildRecord.
|
448
|
+
:type duration: int
|
449
|
+
"""
|
450
|
+
self._duration = duration
|
451
|
+
|
452
|
+
@property
|
453
|
+
def build_duration(self):
|
454
|
+
r"""Gets the build_duration of this BuildRecord.
|
455
|
+
|
456
|
+
构建时间
|
457
|
+
|
458
|
+
:return: The build_duration of this BuildRecord.
|
459
|
+
:rtype: int
|
460
|
+
"""
|
461
|
+
return self._build_duration
|
462
|
+
|
463
|
+
@build_duration.setter
|
464
|
+
def build_duration(self, build_duration):
|
465
|
+
r"""Sets the build_duration of this BuildRecord.
|
466
|
+
|
467
|
+
构建时间
|
468
|
+
|
469
|
+
:param build_duration: The build_duration of this BuildRecord.
|
470
|
+
:type build_duration: int
|
471
|
+
"""
|
472
|
+
self._build_duration = build_duration
|
473
|
+
|
474
|
+
@property
|
475
|
+
def pending_duration(self):
|
476
|
+
r"""Gets the pending_duration of this BuildRecord.
|
477
|
+
|
478
|
+
等待时间
|
479
|
+
|
480
|
+
:return: The pending_duration of this BuildRecord.
|
481
|
+
:rtype: int
|
482
|
+
"""
|
483
|
+
return self._pending_duration
|
484
|
+
|
485
|
+
@pending_duration.setter
|
486
|
+
def pending_duration(self, pending_duration):
|
487
|
+
r"""Sets the pending_duration of this BuildRecord.
|
488
|
+
|
489
|
+
等待时间
|
490
|
+
|
491
|
+
:param pending_duration: The pending_duration of this BuildRecord.
|
492
|
+
:type pending_duration: int
|
493
|
+
"""
|
494
|
+
self._pending_duration = pending_duration
|
495
|
+
|
496
|
+
@property
|
497
|
+
def project_id(self):
|
498
|
+
r"""Gets the project_id of this BuildRecord.
|
499
|
+
|
500
|
+
工程ID
|
501
|
+
|
502
|
+
:return: The project_id of this BuildRecord.
|
503
|
+
:rtype: str
|
504
|
+
"""
|
505
|
+
return self._project_id
|
506
|
+
|
507
|
+
@project_id.setter
|
508
|
+
def project_id(self, project_id):
|
509
|
+
r"""Sets the project_id of this BuildRecord.
|
510
|
+
|
511
|
+
工程ID
|
512
|
+
|
513
|
+
:param project_id: The project_id of this BuildRecord.
|
514
|
+
:type project_id: str
|
515
|
+
"""
|
516
|
+
self._project_id = project_id
|
517
|
+
|
518
|
+
@property
|
519
|
+
def display_name(self):
|
520
|
+
r"""Gets the display_name of this BuildRecord.
|
521
|
+
|
522
|
+
子任务名称
|
523
|
+
|
524
|
+
:return: The display_name of this BuildRecord.
|
525
|
+
:rtype: str
|
526
|
+
"""
|
527
|
+
return self._display_name
|
528
|
+
|
529
|
+
@display_name.setter
|
530
|
+
def display_name(self, display_name):
|
531
|
+
r"""Sets the display_name of this BuildRecord.
|
532
|
+
|
533
|
+
子任务名称
|
534
|
+
|
535
|
+
:param display_name: The display_name of this BuildRecord.
|
536
|
+
:type display_name: str
|
537
|
+
"""
|
538
|
+
self._display_name = display_name
|
539
|
+
|
540
|
+
@property
|
541
|
+
def trigger_name(self):
|
542
|
+
r"""Gets the trigger_name of this BuildRecord.
|
543
|
+
|
544
|
+
触发者名称
|
545
|
+
|
546
|
+
:return: The trigger_name of this BuildRecord.
|
547
|
+
:rtype: str
|
548
|
+
"""
|
549
|
+
return self._trigger_name
|
550
|
+
|
551
|
+
@trigger_name.setter
|
552
|
+
def trigger_name(self, trigger_name):
|
553
|
+
r"""Sets the trigger_name of this BuildRecord.
|
554
|
+
|
555
|
+
触发者名称
|
556
|
+
|
557
|
+
:param trigger_name: The trigger_name of this BuildRecord.
|
558
|
+
:type trigger_name: str
|
559
|
+
"""
|
560
|
+
self._trigger_name = trigger_name
|
561
|
+
|
562
|
+
@property
|
563
|
+
def group_name(self):
|
564
|
+
r"""Gets the group_name of this BuildRecord.
|
565
|
+
|
566
|
+
分组名
|
567
|
+
|
568
|
+
:return: The group_name of this BuildRecord.
|
569
|
+
:rtype: str
|
570
|
+
"""
|
571
|
+
return self._group_name
|
572
|
+
|
573
|
+
@group_name.setter
|
574
|
+
def group_name(self, group_name):
|
575
|
+
r"""Sets the group_name of this BuildRecord.
|
576
|
+
|
577
|
+
分组名
|
578
|
+
|
579
|
+
:param group_name: The group_name of this BuildRecord.
|
580
|
+
:type group_name: str
|
581
|
+
"""
|
582
|
+
self._group_name = group_name
|
583
|
+
|
584
|
+
@property
|
585
|
+
def execution_id(self):
|
586
|
+
r"""Gets the execution_id of this BuildRecord.
|
587
|
+
|
588
|
+
八爪鱼任务ID
|
589
|
+
|
590
|
+
:return: The execution_id of this BuildRecord.
|
591
|
+
:rtype: str
|
592
|
+
"""
|
593
|
+
return self._execution_id
|
594
|
+
|
595
|
+
@execution_id.setter
|
596
|
+
def execution_id(self, execution_id):
|
597
|
+
r"""Sets the execution_id of this BuildRecord.
|
598
|
+
|
599
|
+
八爪鱼任务ID
|
600
|
+
|
601
|
+
:param execution_id: The execution_id of this BuildRecord.
|
602
|
+
:type execution_id: str
|
603
|
+
"""
|
604
|
+
self._execution_id = execution_id
|
605
|
+
|
606
|
+
@property
|
607
|
+
def parameters(self):
|
608
|
+
r"""Gets the parameters of this BuildRecord.
|
609
|
+
|
610
|
+
构建执行参数列表
|
611
|
+
|
612
|
+
:return: The parameters of this BuildRecord.
|
613
|
+
:rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.BuildRecordParameters`]
|
614
|
+
"""
|
615
|
+
return self._parameters
|
616
|
+
|
617
|
+
@parameters.setter
|
618
|
+
def parameters(self, parameters):
|
619
|
+
r"""Sets the parameters of this BuildRecord.
|
620
|
+
|
621
|
+
构建执行参数列表
|
622
|
+
|
623
|
+
:param parameters: The parameters of this BuildRecord.
|
624
|
+
:type parameters: list[:class:`huaweicloudsdkcodeartsbuild.v3.BuildRecordParameters`]
|
625
|
+
"""
|
626
|
+
self._parameters = parameters
|
627
|
+
|
628
|
+
@property
|
629
|
+
def repository(self):
|
630
|
+
r"""Gets the repository of this BuildRecord.
|
631
|
+
|
632
|
+
仓库地址
|
633
|
+
|
634
|
+
:return: The repository of this BuildRecord.
|
635
|
+
:rtype: str
|
636
|
+
"""
|
637
|
+
return self._repository
|
638
|
+
|
639
|
+
@repository.setter
|
640
|
+
def repository(self, repository):
|
641
|
+
r"""Sets the repository of this BuildRecord.
|
642
|
+
|
643
|
+
仓库地址
|
644
|
+
|
645
|
+
:param repository: The repository of this BuildRecord.
|
646
|
+
:type repository: str
|
647
|
+
"""
|
648
|
+
self._repository = repository
|
649
|
+
|
650
|
+
@property
|
651
|
+
def branch(self):
|
652
|
+
r"""Gets the branch of this BuildRecord.
|
653
|
+
|
654
|
+
分支名
|
655
|
+
|
656
|
+
:return: The branch of this BuildRecord.
|
657
|
+
:rtype: str
|
658
|
+
"""
|
659
|
+
return self._branch
|
660
|
+
|
661
|
+
@branch.setter
|
662
|
+
def branch(self, branch):
|
663
|
+
r"""Sets the branch of this BuildRecord.
|
664
|
+
|
665
|
+
分支名
|
666
|
+
|
667
|
+
:param branch: The branch of this BuildRecord.
|
668
|
+
:type branch: str
|
669
|
+
"""
|
670
|
+
self._branch = branch
|
671
|
+
|
672
|
+
@property
|
673
|
+
def revision(self):
|
674
|
+
r"""Gets the revision of this BuildRecord.
|
675
|
+
|
676
|
+
commitId
|
677
|
+
|
678
|
+
:return: The revision of this BuildRecord.
|
679
|
+
:rtype: str
|
680
|
+
"""
|
681
|
+
return self._revision
|
682
|
+
|
683
|
+
@revision.setter
|
684
|
+
def revision(self, revision):
|
685
|
+
r"""Sets the revision of this BuildRecord.
|
686
|
+
|
687
|
+
commitId
|
688
|
+
|
689
|
+
:param revision: The revision of this BuildRecord.
|
690
|
+
:type revision: str
|
691
|
+
"""
|
692
|
+
self._revision = revision
|
693
|
+
|
694
|
+
@property
|
695
|
+
def build_yml_path(self):
|
696
|
+
r"""Gets the build_yml_path of this BuildRecord.
|
697
|
+
|
698
|
+
yaml路径
|
699
|
+
|
700
|
+
:return: The build_yml_path of this BuildRecord.
|
701
|
+
:rtype: str
|
702
|
+
"""
|
703
|
+
return self._build_yml_path
|
704
|
+
|
705
|
+
@build_yml_path.setter
|
706
|
+
def build_yml_path(self, build_yml_path):
|
707
|
+
r"""Sets the build_yml_path of this BuildRecord.
|
708
|
+
|
709
|
+
yaml路径
|
710
|
+
|
711
|
+
:param build_yml_path: The build_yml_path of this BuildRecord.
|
712
|
+
:type build_yml_path: str
|
713
|
+
"""
|
714
|
+
self._build_yml_path = build_yml_path
|
715
|
+
|
716
|
+
@property
|
717
|
+
def build_yml_url(self):
|
718
|
+
r"""Gets the build_yml_url of this BuildRecord.
|
719
|
+
|
720
|
+
yaml地址
|
721
|
+
|
722
|
+
:return: The build_yml_url of this BuildRecord.
|
723
|
+
:rtype: str
|
724
|
+
"""
|
725
|
+
return self._build_yml_url
|
726
|
+
|
727
|
+
@build_yml_url.setter
|
728
|
+
def build_yml_url(self, build_yml_url):
|
729
|
+
r"""Sets the build_yml_url of this BuildRecord.
|
730
|
+
|
731
|
+
yaml地址
|
732
|
+
|
733
|
+
:param build_yml_url: The build_yml_url of this BuildRecord.
|
734
|
+
:type build_yml_url: str
|
735
|
+
"""
|
736
|
+
self._build_yml_url = build_yml_url
|
737
|
+
|
738
|
+
@property
|
739
|
+
def daily_build_number(self):
|
740
|
+
r"""Gets the daily_build_number of this BuildRecord.
|
741
|
+
|
742
|
+
构建每日编号
|
743
|
+
|
744
|
+
:return: The daily_build_number of this BuildRecord.
|
745
|
+
:rtype: str
|
746
|
+
"""
|
747
|
+
return self._daily_build_number
|
748
|
+
|
749
|
+
@daily_build_number.setter
|
750
|
+
def daily_build_number(self, daily_build_number):
|
751
|
+
r"""Sets the daily_build_number of this BuildRecord.
|
752
|
+
|
753
|
+
构建每日编号
|
754
|
+
|
755
|
+
:param daily_build_number: The daily_build_number of this BuildRecord.
|
756
|
+
:type daily_build_number: str
|
757
|
+
"""
|
758
|
+
self._daily_build_number = daily_build_number
|
759
|
+
|
760
|
+
@property
|
761
|
+
def build_record_type(self):
|
762
|
+
r"""Gets the build_record_type of this BuildRecord.
|
763
|
+
|
764
|
+
:return: The build_record_type of this BuildRecord.
|
765
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.BuildRecordBuildRecordType`
|
766
|
+
"""
|
767
|
+
return self._build_record_type
|
768
|
+
|
769
|
+
@build_record_type.setter
|
770
|
+
def build_record_type(self, build_record_type):
|
771
|
+
r"""Sets the build_record_type of this BuildRecord.
|
772
|
+
|
773
|
+
:param build_record_type: The build_record_type of this BuildRecord.
|
774
|
+
:type build_record_type: :class:`huaweicloudsdkcodeartsbuild.v3.BuildRecordBuildRecordType`
|
775
|
+
"""
|
776
|
+
self._build_record_type = build_record_type
|
777
|
+
|
778
|
+
@property
|
779
|
+
def trigger_type(self):
|
780
|
+
r"""Gets the trigger_type of this BuildRecord.
|
781
|
+
|
782
|
+
触发类型
|
783
|
+
|
784
|
+
:return: The trigger_type of this BuildRecord.
|
785
|
+
:rtype: str
|
786
|
+
"""
|
787
|
+
return self._trigger_type
|
788
|
+
|
789
|
+
@trigger_type.setter
|
790
|
+
def trigger_type(self, trigger_type):
|
791
|
+
r"""Sets the trigger_type of this BuildRecord.
|
792
|
+
|
793
|
+
触发类型
|
794
|
+
|
795
|
+
:param trigger_type: The trigger_type of this BuildRecord.
|
796
|
+
:type trigger_type: str
|
797
|
+
"""
|
798
|
+
self._trigger_type = trigger_type
|
799
|
+
|
800
|
+
@property
|
801
|
+
def scm_type(self):
|
802
|
+
r"""Gets the scm_type of this BuildRecord.
|
803
|
+
|
804
|
+
代码源类型
|
805
|
+
|
806
|
+
:return: The scm_type of this BuildRecord.
|
807
|
+
:rtype: str
|
808
|
+
"""
|
809
|
+
return self._scm_type
|
810
|
+
|
811
|
+
@scm_type.setter
|
812
|
+
def scm_type(self, scm_type):
|
813
|
+
r"""Sets the scm_type of this BuildRecord.
|
814
|
+
|
815
|
+
代码源类型
|
816
|
+
|
817
|
+
:param scm_type: The scm_type of this BuildRecord.
|
818
|
+
:type scm_type: str
|
819
|
+
"""
|
820
|
+
self._scm_type = scm_type
|
821
|
+
|
822
|
+
@property
|
823
|
+
def scm_web_url(self):
|
824
|
+
r"""Gets the scm_web_url of this BuildRecord.
|
825
|
+
|
826
|
+
代码源地址
|
827
|
+
|
828
|
+
:return: The scm_web_url of this BuildRecord.
|
829
|
+
:rtype: str
|
830
|
+
"""
|
831
|
+
return self._scm_web_url
|
832
|
+
|
833
|
+
@scm_web_url.setter
|
834
|
+
def scm_web_url(self, scm_web_url):
|
835
|
+
r"""Sets the scm_web_url of this BuildRecord.
|
836
|
+
|
837
|
+
代码源地址
|
838
|
+
|
839
|
+
:param scm_web_url: The scm_web_url of this BuildRecord.
|
840
|
+
:type scm_web_url: str
|
841
|
+
"""
|
842
|
+
self._scm_web_url = scm_web_url
|
843
|
+
|
844
|
+
@property
|
845
|
+
def user_id(self):
|
846
|
+
r"""Gets the user_id of this BuildRecord.
|
847
|
+
|
848
|
+
用户id
|
849
|
+
|
850
|
+
:return: The user_id of this BuildRecord.
|
851
|
+
:rtype: str
|
852
|
+
"""
|
853
|
+
return self._user_id
|
854
|
+
|
855
|
+
@user_id.setter
|
856
|
+
def user_id(self, user_id):
|
857
|
+
r"""Sets the user_id of this BuildRecord.
|
858
|
+
|
859
|
+
用户id
|
860
|
+
|
861
|
+
:param user_id: The user_id of this BuildRecord.
|
862
|
+
:type user_id: str
|
863
|
+
"""
|
864
|
+
self._user_id = user_id
|
865
|
+
|
866
|
+
@property
|
867
|
+
def build_no(self):
|
868
|
+
r"""Gets the build_no of this BuildRecord.
|
869
|
+
|
870
|
+
构建编码
|
871
|
+
|
872
|
+
:return: The build_no of this BuildRecord.
|
873
|
+
:rtype: str
|
874
|
+
"""
|
875
|
+
return self._build_no
|
876
|
+
|
877
|
+
@build_no.setter
|
878
|
+
def build_no(self, build_no):
|
879
|
+
r"""Sets the build_no of this BuildRecord.
|
880
|
+
|
881
|
+
构建编码
|
882
|
+
|
883
|
+
:param build_no: The build_no of this BuildRecord.
|
884
|
+
:type build_no: str
|
885
|
+
"""
|
886
|
+
self._build_no = build_no
|
887
|
+
|
888
|
+
@property
|
889
|
+
def daily_build_no(self):
|
890
|
+
r"""Gets the daily_build_no of this BuildRecord.
|
891
|
+
|
892
|
+
构建每日编号
|
893
|
+
|
894
|
+
:return: The daily_build_no of this BuildRecord.
|
895
|
+
:rtype: str
|
896
|
+
"""
|
897
|
+
return self._daily_build_no
|
898
|
+
|
899
|
+
@daily_build_no.setter
|
900
|
+
def daily_build_no(self, daily_build_no):
|
901
|
+
r"""Sets the daily_build_no of this BuildRecord.
|
902
|
+
|
903
|
+
构建每日编号
|
904
|
+
|
905
|
+
:param daily_build_no: The daily_build_no of this BuildRecord.
|
906
|
+
:type daily_build_no: str
|
907
|
+
"""
|
908
|
+
self._daily_build_no = daily_build_no
|
909
|
+
|
910
|
+
@property
|
911
|
+
def dev_cloud_build_type(self):
|
912
|
+
r"""Gets the dev_cloud_build_type of this BuildRecord.
|
913
|
+
|
914
|
+
构建类型
|
915
|
+
|
916
|
+
:return: The dev_cloud_build_type of this BuildRecord.
|
917
|
+
:rtype: str
|
918
|
+
"""
|
919
|
+
return self._dev_cloud_build_type
|
920
|
+
|
921
|
+
@dev_cloud_build_type.setter
|
922
|
+
def dev_cloud_build_type(self, dev_cloud_build_type):
|
923
|
+
r"""Sets the dev_cloud_build_type of this BuildRecord.
|
924
|
+
|
925
|
+
构建类型
|
926
|
+
|
927
|
+
:param dev_cloud_build_type: The dev_cloud_build_type of this BuildRecord.
|
928
|
+
:type dev_cloud_build_type: str
|
929
|
+
"""
|
930
|
+
self._dev_cloud_build_type = dev_cloud_build_type
|
931
|
+
|
932
|
+
def to_dict(self):
|
933
|
+
"""Returns the model properties as a dict"""
|
934
|
+
result = {}
|
935
|
+
|
936
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
937
|
+
value = getattr(self, attr)
|
938
|
+
if isinstance(value, list):
|
939
|
+
result[attr] = list(map(
|
940
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
941
|
+
value
|
942
|
+
))
|
943
|
+
elif hasattr(value, "to_dict"):
|
944
|
+
result[attr] = value.to_dict()
|
945
|
+
elif isinstance(value, dict):
|
946
|
+
result[attr] = dict(map(
|
947
|
+
lambda item: (item[0], item[1].to_dict())
|
948
|
+
if hasattr(item[1], "to_dict") else item,
|
949
|
+
value.items()
|
950
|
+
))
|
951
|
+
else:
|
952
|
+
if attr in self.sensitive_list:
|
953
|
+
result[attr] = "****"
|
954
|
+
else:
|
955
|
+
result[attr] = value
|
956
|
+
|
957
|
+
return result
|
958
|
+
|
959
|
+
def to_str(self):
|
960
|
+
"""Returns the string representation of the model"""
|
961
|
+
import simplejson as json
|
962
|
+
if six.PY2:
|
963
|
+
import sys
|
964
|
+
reload(sys)
|
965
|
+
sys.setdefaultencoding("utf-8")
|
966
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
967
|
+
|
968
|
+
def __repr__(self):
|
969
|
+
"""For `print`"""
|
970
|
+
return self.to_str()
|
971
|
+
|
972
|
+
def __eq__(self, other):
|
973
|
+
"""Returns true if both objects are equal"""
|
974
|
+
if not isinstance(other, BuildRecord):
|
975
|
+
return False
|
976
|
+
|
977
|
+
return self.__dict__ == other.__dict__
|
978
|
+
|
979
|
+
def __ne__(self, other):
|
980
|
+
"""Returns true if both objects are not equal"""
|
981
|
+
return not self == other
|