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,604 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BuildInfoRecord:
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
+ 'number': 'int',
21
+ 'build_time': 'int',
22
+ 'start_time': 'int',
23
+ 'job_running_status': 'str',
24
+ 'state': 'str',
25
+ 'user_id': 'str',
26
+ 'executor': 'str',
27
+ 'nickname': 'str',
28
+ 'daily_build_number': 'str',
29
+ 'trigger_type': 'str',
30
+ 'cost_time': 'int',
31
+ 'commit_id': 'str',
32
+ 'commit_info': 'BuildInfoRecordCommitInfo',
33
+ 'build_type': 'str',
34
+ 'code_branch': 'str',
35
+ 'scm_type': 'str',
36
+ 'scm_web_url': 'str',
37
+ 'commit_detail_url': 'str'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'number': 'number',
42
+ 'build_time': 'build_time',
43
+ 'start_time': 'start_time',
44
+ 'job_running_status': 'job_running_status',
45
+ 'state': 'state',
46
+ 'user_id': 'user_id',
47
+ 'executor': 'executor',
48
+ 'nickname': 'nickname',
49
+ 'daily_build_number': 'daily_build_number',
50
+ 'trigger_type': 'trigger_type',
51
+ 'cost_time': 'cost_time',
52
+ 'commit_id': 'commit_id',
53
+ 'commit_info': 'commit_info',
54
+ 'build_type': 'build_type',
55
+ 'code_branch': 'code_branch',
56
+ 'scm_type': 'scm_type',
57
+ 'scm_web_url': 'scm_web_url',
58
+ 'commit_detail_url': 'commit_detail_url'
59
+ }
60
+
61
+ def __init__(self, number=None, build_time=None, start_time=None, job_running_status=None, state=None, user_id=None, executor=None, nickname=None, daily_build_number=None, trigger_type=None, cost_time=None, commit_id=None, commit_info=None, build_type=None, code_branch=None, scm_type=None, scm_web_url=None, commit_detail_url=None):
62
+ r"""BuildInfoRecord
63
+
64
+ The model defined in huaweicloud sdk
65
+
66
+ :param number: 构建编号
67
+ :type number: int
68
+ :param build_time: 执行时间
69
+ :type build_time: int
70
+ :param start_time: 开始时间,时间戳
71
+ :type start_time: int
72
+ :param job_running_status: 运行状态
73
+ :type job_running_status: str
74
+ :param state: 任务状态
75
+ :type state: str
76
+ :param user_id: IAM用户ID
77
+ :type user_id: str
78
+ :param executor: 触发构建用户
79
+ :type executor: str
80
+ :param nickname: 用户名称
81
+ :type nickname: str
82
+ :param daily_build_number: 构建编号,每日从1开始
83
+ :type daily_build_number: str
84
+ :param trigger_type: 触发类型
85
+ :type trigger_type: str
86
+ :param cost_time: 执行时间
87
+ :type cost_time: int
88
+ :param commit_id: 代码提交的commit id
89
+ :type commit_id: str
90
+ :param commit_info:
91
+ :type commit_info: :class:`huaweicloudsdkcodeartsbuild.v3.BuildInfoRecordCommitInfo`
92
+ :param build_type: 构建类型
93
+ :type build_type: str
94
+ :param code_branch: 代码仓分支
95
+ :type code_branch: str
96
+ :param scm_type: 代码源类型
97
+ :type scm_type: str
98
+ :param scm_web_url: 代码源地址
99
+ :type scm_web_url: str
100
+ :param commit_detail_url: 代码提交记录信息地址(代码源为Repo)
101
+ :type commit_detail_url: str
102
+ """
103
+
104
+
105
+
106
+ self._number = None
107
+ self._build_time = None
108
+ self._start_time = None
109
+ self._job_running_status = None
110
+ self._state = None
111
+ self._user_id = None
112
+ self._executor = None
113
+ self._nickname = None
114
+ self._daily_build_number = None
115
+ self._trigger_type = None
116
+ self._cost_time = None
117
+ self._commit_id = None
118
+ self._commit_info = None
119
+ self._build_type = None
120
+ self._code_branch = None
121
+ self._scm_type = None
122
+ self._scm_web_url = None
123
+ self._commit_detail_url = None
124
+ self.discriminator = None
125
+
126
+ if number is not None:
127
+ self.number = number
128
+ if build_time is not None:
129
+ self.build_time = build_time
130
+ if start_time is not None:
131
+ self.start_time = start_time
132
+ if job_running_status is not None:
133
+ self.job_running_status = job_running_status
134
+ if state is not None:
135
+ self.state = state
136
+ if user_id is not None:
137
+ self.user_id = user_id
138
+ if executor is not None:
139
+ self.executor = executor
140
+ if nickname is not None:
141
+ self.nickname = nickname
142
+ if daily_build_number is not None:
143
+ self.daily_build_number = daily_build_number
144
+ if trigger_type is not None:
145
+ self.trigger_type = trigger_type
146
+ if cost_time is not None:
147
+ self.cost_time = cost_time
148
+ if commit_id is not None:
149
+ self.commit_id = commit_id
150
+ if commit_info is not None:
151
+ self.commit_info = commit_info
152
+ if build_type is not None:
153
+ self.build_type = build_type
154
+ if code_branch is not None:
155
+ self.code_branch = code_branch
156
+ if scm_type is not None:
157
+ self.scm_type = scm_type
158
+ if scm_web_url is not None:
159
+ self.scm_web_url = scm_web_url
160
+ if commit_detail_url is not None:
161
+ self.commit_detail_url = commit_detail_url
162
+
163
+ @property
164
+ def number(self):
165
+ r"""Gets the number of this BuildInfoRecord.
166
+
167
+ 构建编号
168
+
169
+ :return: The number of this BuildInfoRecord.
170
+ :rtype: int
171
+ """
172
+ return self._number
173
+
174
+ @number.setter
175
+ def number(self, number):
176
+ r"""Sets the number of this BuildInfoRecord.
177
+
178
+ 构建编号
179
+
180
+ :param number: The number of this BuildInfoRecord.
181
+ :type number: int
182
+ """
183
+ self._number = number
184
+
185
+ @property
186
+ def build_time(self):
187
+ r"""Gets the build_time of this BuildInfoRecord.
188
+
189
+ 执行时间
190
+
191
+ :return: The build_time of this BuildInfoRecord.
192
+ :rtype: int
193
+ """
194
+ return self._build_time
195
+
196
+ @build_time.setter
197
+ def build_time(self, build_time):
198
+ r"""Sets the build_time of this BuildInfoRecord.
199
+
200
+ 执行时间
201
+
202
+ :param build_time: The build_time of this BuildInfoRecord.
203
+ :type build_time: int
204
+ """
205
+ self._build_time = build_time
206
+
207
+ @property
208
+ def start_time(self):
209
+ r"""Gets the start_time of this BuildInfoRecord.
210
+
211
+ 开始时间,时间戳
212
+
213
+ :return: The start_time of this BuildInfoRecord.
214
+ :rtype: int
215
+ """
216
+ return self._start_time
217
+
218
+ @start_time.setter
219
+ def start_time(self, start_time):
220
+ r"""Sets the start_time of this BuildInfoRecord.
221
+
222
+ 开始时间,时间戳
223
+
224
+ :param start_time: The start_time of this BuildInfoRecord.
225
+ :type start_time: int
226
+ """
227
+ self._start_time = start_time
228
+
229
+ @property
230
+ def job_running_status(self):
231
+ r"""Gets the job_running_status of this BuildInfoRecord.
232
+
233
+ 运行状态
234
+
235
+ :return: The job_running_status of this BuildInfoRecord.
236
+ :rtype: str
237
+ """
238
+ return self._job_running_status
239
+
240
+ @job_running_status.setter
241
+ def job_running_status(self, job_running_status):
242
+ r"""Sets the job_running_status of this BuildInfoRecord.
243
+
244
+ 运行状态
245
+
246
+ :param job_running_status: The job_running_status of this BuildInfoRecord.
247
+ :type job_running_status: str
248
+ """
249
+ self._job_running_status = job_running_status
250
+
251
+ @property
252
+ def state(self):
253
+ r"""Gets the state of this BuildInfoRecord.
254
+
255
+ 任务状态
256
+
257
+ :return: The state of this BuildInfoRecord.
258
+ :rtype: str
259
+ """
260
+ return self._state
261
+
262
+ @state.setter
263
+ def state(self, state):
264
+ r"""Sets the state of this BuildInfoRecord.
265
+
266
+ 任务状态
267
+
268
+ :param state: The state of this BuildInfoRecord.
269
+ :type state: str
270
+ """
271
+ self._state = state
272
+
273
+ @property
274
+ def user_id(self):
275
+ r"""Gets the user_id of this BuildInfoRecord.
276
+
277
+ IAM用户ID
278
+
279
+ :return: The user_id of this BuildInfoRecord.
280
+ :rtype: str
281
+ """
282
+ return self._user_id
283
+
284
+ @user_id.setter
285
+ def user_id(self, user_id):
286
+ r"""Sets the user_id of this BuildInfoRecord.
287
+
288
+ IAM用户ID
289
+
290
+ :param user_id: The user_id of this BuildInfoRecord.
291
+ :type user_id: str
292
+ """
293
+ self._user_id = user_id
294
+
295
+ @property
296
+ def executor(self):
297
+ r"""Gets the executor of this BuildInfoRecord.
298
+
299
+ 触发构建用户
300
+
301
+ :return: The executor of this BuildInfoRecord.
302
+ :rtype: str
303
+ """
304
+ return self._executor
305
+
306
+ @executor.setter
307
+ def executor(self, executor):
308
+ r"""Sets the executor of this BuildInfoRecord.
309
+
310
+ 触发构建用户
311
+
312
+ :param executor: The executor of this BuildInfoRecord.
313
+ :type executor: str
314
+ """
315
+ self._executor = executor
316
+
317
+ @property
318
+ def nickname(self):
319
+ r"""Gets the nickname of this BuildInfoRecord.
320
+
321
+ 用户名称
322
+
323
+ :return: The nickname of this BuildInfoRecord.
324
+ :rtype: str
325
+ """
326
+ return self._nickname
327
+
328
+ @nickname.setter
329
+ def nickname(self, nickname):
330
+ r"""Sets the nickname of this BuildInfoRecord.
331
+
332
+ 用户名称
333
+
334
+ :param nickname: The nickname of this BuildInfoRecord.
335
+ :type nickname: str
336
+ """
337
+ self._nickname = nickname
338
+
339
+ @property
340
+ def daily_build_number(self):
341
+ r"""Gets the daily_build_number of this BuildInfoRecord.
342
+
343
+ 构建编号,每日从1开始
344
+
345
+ :return: The daily_build_number of this BuildInfoRecord.
346
+ :rtype: str
347
+ """
348
+ return self._daily_build_number
349
+
350
+ @daily_build_number.setter
351
+ def daily_build_number(self, daily_build_number):
352
+ r"""Sets the daily_build_number of this BuildInfoRecord.
353
+
354
+ 构建编号,每日从1开始
355
+
356
+ :param daily_build_number: The daily_build_number of this BuildInfoRecord.
357
+ :type daily_build_number: str
358
+ """
359
+ self._daily_build_number = daily_build_number
360
+
361
+ @property
362
+ def trigger_type(self):
363
+ r"""Gets the trigger_type of this BuildInfoRecord.
364
+
365
+ 触发类型
366
+
367
+ :return: The trigger_type of this BuildInfoRecord.
368
+ :rtype: str
369
+ """
370
+ return self._trigger_type
371
+
372
+ @trigger_type.setter
373
+ def trigger_type(self, trigger_type):
374
+ r"""Sets the trigger_type of this BuildInfoRecord.
375
+
376
+ 触发类型
377
+
378
+ :param trigger_type: The trigger_type of this BuildInfoRecord.
379
+ :type trigger_type: str
380
+ """
381
+ self._trigger_type = trigger_type
382
+
383
+ @property
384
+ def cost_time(self):
385
+ r"""Gets the cost_time of this BuildInfoRecord.
386
+
387
+ 执行时间
388
+
389
+ :return: The cost_time of this BuildInfoRecord.
390
+ :rtype: int
391
+ """
392
+ return self._cost_time
393
+
394
+ @cost_time.setter
395
+ def cost_time(self, cost_time):
396
+ r"""Sets the cost_time of this BuildInfoRecord.
397
+
398
+ 执行时间
399
+
400
+ :param cost_time: The cost_time of this BuildInfoRecord.
401
+ :type cost_time: int
402
+ """
403
+ self._cost_time = cost_time
404
+
405
+ @property
406
+ def commit_id(self):
407
+ r"""Gets the commit_id of this BuildInfoRecord.
408
+
409
+ 代码提交的commit id
410
+
411
+ :return: The commit_id of this BuildInfoRecord.
412
+ :rtype: str
413
+ """
414
+ return self._commit_id
415
+
416
+ @commit_id.setter
417
+ def commit_id(self, commit_id):
418
+ r"""Sets the commit_id of this BuildInfoRecord.
419
+
420
+ 代码提交的commit id
421
+
422
+ :param commit_id: The commit_id of this BuildInfoRecord.
423
+ :type commit_id: str
424
+ """
425
+ self._commit_id = commit_id
426
+
427
+ @property
428
+ def commit_info(self):
429
+ r"""Gets the commit_info of this BuildInfoRecord.
430
+
431
+ :return: The commit_info of this BuildInfoRecord.
432
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.BuildInfoRecordCommitInfo`
433
+ """
434
+ return self._commit_info
435
+
436
+ @commit_info.setter
437
+ def commit_info(self, commit_info):
438
+ r"""Sets the commit_info of this BuildInfoRecord.
439
+
440
+ :param commit_info: The commit_info of this BuildInfoRecord.
441
+ :type commit_info: :class:`huaweicloudsdkcodeartsbuild.v3.BuildInfoRecordCommitInfo`
442
+ """
443
+ self._commit_info = commit_info
444
+
445
+ @property
446
+ def build_type(self):
447
+ r"""Gets the build_type of this BuildInfoRecord.
448
+
449
+ 构建类型
450
+
451
+ :return: The build_type of this BuildInfoRecord.
452
+ :rtype: str
453
+ """
454
+ return self._build_type
455
+
456
+ @build_type.setter
457
+ def build_type(self, build_type):
458
+ r"""Sets the build_type of this BuildInfoRecord.
459
+
460
+ 构建类型
461
+
462
+ :param build_type: The build_type of this BuildInfoRecord.
463
+ :type build_type: str
464
+ """
465
+ self._build_type = build_type
466
+
467
+ @property
468
+ def code_branch(self):
469
+ r"""Gets the code_branch of this BuildInfoRecord.
470
+
471
+ 代码仓分支
472
+
473
+ :return: The code_branch of this BuildInfoRecord.
474
+ :rtype: str
475
+ """
476
+ return self._code_branch
477
+
478
+ @code_branch.setter
479
+ def code_branch(self, code_branch):
480
+ r"""Sets the code_branch of this BuildInfoRecord.
481
+
482
+ 代码仓分支
483
+
484
+ :param code_branch: The code_branch of this BuildInfoRecord.
485
+ :type code_branch: str
486
+ """
487
+ self._code_branch = code_branch
488
+
489
+ @property
490
+ def scm_type(self):
491
+ r"""Gets the scm_type of this BuildInfoRecord.
492
+
493
+ 代码源类型
494
+
495
+ :return: The scm_type of this BuildInfoRecord.
496
+ :rtype: str
497
+ """
498
+ return self._scm_type
499
+
500
+ @scm_type.setter
501
+ def scm_type(self, scm_type):
502
+ r"""Sets the scm_type of this BuildInfoRecord.
503
+
504
+ 代码源类型
505
+
506
+ :param scm_type: The scm_type of this BuildInfoRecord.
507
+ :type scm_type: str
508
+ """
509
+ self._scm_type = scm_type
510
+
511
+ @property
512
+ def scm_web_url(self):
513
+ r"""Gets the scm_web_url of this BuildInfoRecord.
514
+
515
+ 代码源地址
516
+
517
+ :return: The scm_web_url of this BuildInfoRecord.
518
+ :rtype: str
519
+ """
520
+ return self._scm_web_url
521
+
522
+ @scm_web_url.setter
523
+ def scm_web_url(self, scm_web_url):
524
+ r"""Sets the scm_web_url of this BuildInfoRecord.
525
+
526
+ 代码源地址
527
+
528
+ :param scm_web_url: The scm_web_url of this BuildInfoRecord.
529
+ :type scm_web_url: str
530
+ """
531
+ self._scm_web_url = scm_web_url
532
+
533
+ @property
534
+ def commit_detail_url(self):
535
+ r"""Gets the commit_detail_url of this BuildInfoRecord.
536
+
537
+ 代码提交记录信息地址(代码源为Repo)
538
+
539
+ :return: The commit_detail_url of this BuildInfoRecord.
540
+ :rtype: str
541
+ """
542
+ return self._commit_detail_url
543
+
544
+ @commit_detail_url.setter
545
+ def commit_detail_url(self, commit_detail_url):
546
+ r"""Sets the commit_detail_url of this BuildInfoRecord.
547
+
548
+ 代码提交记录信息地址(代码源为Repo)
549
+
550
+ :param commit_detail_url: The commit_detail_url of this BuildInfoRecord.
551
+ :type commit_detail_url: str
552
+ """
553
+ self._commit_detail_url = commit_detail_url
554
+
555
+ def to_dict(self):
556
+ """Returns the model properties as a dict"""
557
+ result = {}
558
+
559
+ for attr, _ in six.iteritems(self.openapi_types):
560
+ value = getattr(self, attr)
561
+ if isinstance(value, list):
562
+ result[attr] = list(map(
563
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
564
+ value
565
+ ))
566
+ elif hasattr(value, "to_dict"):
567
+ result[attr] = value.to_dict()
568
+ elif isinstance(value, dict):
569
+ result[attr] = dict(map(
570
+ lambda item: (item[0], item[1].to_dict())
571
+ if hasattr(item[1], "to_dict") else item,
572
+ value.items()
573
+ ))
574
+ else:
575
+ if attr in self.sensitive_list:
576
+ result[attr] = "****"
577
+ else:
578
+ result[attr] = value
579
+
580
+ return result
581
+
582
+ def to_str(self):
583
+ """Returns the string representation of the model"""
584
+ import simplejson as json
585
+ if six.PY2:
586
+ import sys
587
+ reload(sys)
588
+ sys.setdefaultencoding("utf-8")
589
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
590
+
591
+ def __repr__(self):
592
+ """For `print`"""
593
+ return self.to_str()
594
+
595
+ def __eq__(self, other):
596
+ """Returns true if both objects are equal"""
597
+ if not isinstance(other, BuildInfoRecord):
598
+ return False
599
+
600
+ return self.__dict__ == other.__dict__
601
+
602
+ def __ne__(self, other):
603
+ """Returns true if both objects are not equal"""
604
+ return not self == other