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,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowJobBuildSuccessRatioResultEveryDayReport:
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
+ 'date': 'str',
21
+ 'success_ratio': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'date': 'date',
26
+ 'success_ratio': 'success_ratio'
27
+ }
28
+
29
+ def __init__(self, date=None, success_ratio=None):
30
+ r"""ShowJobBuildSuccessRatioResultEveryDayReport
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param date: 日期
35
+ :type date: str
36
+ :param success_ratio: 成功率
37
+ :type success_ratio: int
38
+ """
39
+
40
+
41
+
42
+ self._date = None
43
+ self._success_ratio = None
44
+ self.discriminator = None
45
+
46
+ if date is not None:
47
+ self.date = date
48
+ if success_ratio is not None:
49
+ self.success_ratio = success_ratio
50
+
51
+ @property
52
+ def date(self):
53
+ r"""Gets the date of this ShowJobBuildSuccessRatioResultEveryDayReport.
54
+
55
+ 日期
56
+
57
+ :return: The date of this ShowJobBuildSuccessRatioResultEveryDayReport.
58
+ :rtype: str
59
+ """
60
+ return self._date
61
+
62
+ @date.setter
63
+ def date(self, date):
64
+ r"""Sets the date of this ShowJobBuildSuccessRatioResultEveryDayReport.
65
+
66
+ 日期
67
+
68
+ :param date: The date of this ShowJobBuildSuccessRatioResultEveryDayReport.
69
+ :type date: str
70
+ """
71
+ self._date = date
72
+
73
+ @property
74
+ def success_ratio(self):
75
+ r"""Gets the success_ratio of this ShowJobBuildSuccessRatioResultEveryDayReport.
76
+
77
+ 成功率
78
+
79
+ :return: The success_ratio of this ShowJobBuildSuccessRatioResultEveryDayReport.
80
+ :rtype: int
81
+ """
82
+ return self._success_ratio
83
+
84
+ @success_ratio.setter
85
+ def success_ratio(self, success_ratio):
86
+ r"""Sets the success_ratio of this ShowJobBuildSuccessRatioResultEveryDayReport.
87
+
88
+ 成功率
89
+
90
+ :param success_ratio: The success_ratio of this ShowJobBuildSuccessRatioResultEveryDayReport.
91
+ :type success_ratio: int
92
+ """
93
+ self._success_ratio = success_ratio
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, ShowJobBuildSuccessRatioResultEveryDayReport):
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
@@ -0,0 +1,463 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowReportSummary:
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
+ 'build_no': 'int',
22
+ 'stage_name': 'str',
23
+ 'root_id': 'str',
24
+ 'total': 'int',
25
+ 'success': 'int',
26
+ 'failures': 'int',
27
+ 'errors': 'int',
28
+ 'others': 'int',
29
+ 'execution_time': 'int',
30
+ 'genrate_time': 'str',
31
+ 'region': 'str',
32
+ 'is_success': 'bool'
33
+ }
34
+
35
+ attribute_map = {
36
+ 'job_id': 'job_id',
37
+ 'build_no': 'build_no',
38
+ 'stage_name': 'stage_name',
39
+ 'root_id': 'root_id',
40
+ 'total': 'total',
41
+ 'success': 'success',
42
+ 'failures': 'failures',
43
+ 'errors': 'errors',
44
+ 'others': 'others',
45
+ 'execution_time': 'execution_time',
46
+ 'genrate_time': 'genrate_time',
47
+ 'region': 'region',
48
+ 'is_success': 'is_success'
49
+ }
50
+
51
+ def __init__(self, job_id=None, build_no=None, stage_name=None, root_id=None, total=None, success=None, failures=None, errors=None, others=None, execution_time=None, genrate_time=None, region=None, is_success=None):
52
+ r"""ShowReportSummary
53
+
54
+ The model defined in huaweicloud sdk
55
+
56
+ :param job_id: 任务编号
57
+ :type job_id: str
58
+ :param build_no: 构建编号
59
+ :type build_no: int
60
+ :param stage_name: 步骤名称,对应构建步骤,例如stage2
61
+ :type stage_name: str
62
+ :param root_id: 报告编号
63
+ :type root_id: str
64
+ :param total: 总数
65
+ :type total: int
66
+ :param success: 成功数量
67
+ :type success: int
68
+ :param failures: 失败数量
69
+ :type failures: int
70
+ :param errors: 错误数量
71
+ :type errors: int
72
+ :param others: 其他
73
+ :type others: int
74
+ :param execution_time: 执行耗时
75
+ :type execution_time: int
76
+ :param genrate_time: 生成时间
77
+ :type genrate_time: str
78
+ :param region: 局点
79
+ :type region: str
80
+ :param is_success: 是否通过
81
+ :type is_success: bool
82
+ """
83
+
84
+
85
+
86
+ self._job_id = None
87
+ self._build_no = None
88
+ self._stage_name = None
89
+ self._root_id = None
90
+ self._total = None
91
+ self._success = None
92
+ self._failures = None
93
+ self._errors = None
94
+ self._others = None
95
+ self._execution_time = None
96
+ self._genrate_time = None
97
+ self._region = None
98
+ self._is_success = None
99
+ self.discriminator = None
100
+
101
+ if job_id is not None:
102
+ self.job_id = job_id
103
+ if build_no is not None:
104
+ self.build_no = build_no
105
+ if stage_name is not None:
106
+ self.stage_name = stage_name
107
+ if root_id is not None:
108
+ self.root_id = root_id
109
+ if total is not None:
110
+ self.total = total
111
+ if success is not None:
112
+ self.success = success
113
+ if failures is not None:
114
+ self.failures = failures
115
+ if errors is not None:
116
+ self.errors = errors
117
+ if others is not None:
118
+ self.others = others
119
+ if execution_time is not None:
120
+ self.execution_time = execution_time
121
+ if genrate_time is not None:
122
+ self.genrate_time = genrate_time
123
+ if region is not None:
124
+ self.region = region
125
+ if is_success is not None:
126
+ self.is_success = is_success
127
+
128
+ @property
129
+ def job_id(self):
130
+ r"""Gets the job_id of this ShowReportSummary.
131
+
132
+ 任务编号
133
+
134
+ :return: The job_id of this ShowReportSummary.
135
+ :rtype: str
136
+ """
137
+ return self._job_id
138
+
139
+ @job_id.setter
140
+ def job_id(self, job_id):
141
+ r"""Sets the job_id of this ShowReportSummary.
142
+
143
+ 任务编号
144
+
145
+ :param job_id: The job_id of this ShowReportSummary.
146
+ :type job_id: str
147
+ """
148
+ self._job_id = job_id
149
+
150
+ @property
151
+ def build_no(self):
152
+ r"""Gets the build_no of this ShowReportSummary.
153
+
154
+ 构建编号
155
+
156
+ :return: The build_no of this ShowReportSummary.
157
+ :rtype: int
158
+ """
159
+ return self._build_no
160
+
161
+ @build_no.setter
162
+ def build_no(self, build_no):
163
+ r"""Sets the build_no of this ShowReportSummary.
164
+
165
+ 构建编号
166
+
167
+ :param build_no: The build_no of this ShowReportSummary.
168
+ :type build_no: int
169
+ """
170
+ self._build_no = build_no
171
+
172
+ @property
173
+ def stage_name(self):
174
+ r"""Gets the stage_name of this ShowReportSummary.
175
+
176
+ 步骤名称,对应构建步骤,例如stage2
177
+
178
+ :return: The stage_name of this ShowReportSummary.
179
+ :rtype: str
180
+ """
181
+ return self._stage_name
182
+
183
+ @stage_name.setter
184
+ def stage_name(self, stage_name):
185
+ r"""Sets the stage_name of this ShowReportSummary.
186
+
187
+ 步骤名称,对应构建步骤,例如stage2
188
+
189
+ :param stage_name: The stage_name of this ShowReportSummary.
190
+ :type stage_name: str
191
+ """
192
+ self._stage_name = stage_name
193
+
194
+ @property
195
+ def root_id(self):
196
+ r"""Gets the root_id of this ShowReportSummary.
197
+
198
+ 报告编号
199
+
200
+ :return: The root_id of this ShowReportSummary.
201
+ :rtype: str
202
+ """
203
+ return self._root_id
204
+
205
+ @root_id.setter
206
+ def root_id(self, root_id):
207
+ r"""Sets the root_id of this ShowReportSummary.
208
+
209
+ 报告编号
210
+
211
+ :param root_id: The root_id of this ShowReportSummary.
212
+ :type root_id: str
213
+ """
214
+ self._root_id = root_id
215
+
216
+ @property
217
+ def total(self):
218
+ r"""Gets the total of this ShowReportSummary.
219
+
220
+ 总数
221
+
222
+ :return: The total of this ShowReportSummary.
223
+ :rtype: int
224
+ """
225
+ return self._total
226
+
227
+ @total.setter
228
+ def total(self, total):
229
+ r"""Sets the total of this ShowReportSummary.
230
+
231
+ 总数
232
+
233
+ :param total: The total of this ShowReportSummary.
234
+ :type total: int
235
+ """
236
+ self._total = total
237
+
238
+ @property
239
+ def success(self):
240
+ r"""Gets the success of this ShowReportSummary.
241
+
242
+ 成功数量
243
+
244
+ :return: The success of this ShowReportSummary.
245
+ :rtype: int
246
+ """
247
+ return self._success
248
+
249
+ @success.setter
250
+ def success(self, success):
251
+ r"""Sets the success of this ShowReportSummary.
252
+
253
+ 成功数量
254
+
255
+ :param success: The success of this ShowReportSummary.
256
+ :type success: int
257
+ """
258
+ self._success = success
259
+
260
+ @property
261
+ def failures(self):
262
+ r"""Gets the failures of this ShowReportSummary.
263
+
264
+ 失败数量
265
+
266
+ :return: The failures of this ShowReportSummary.
267
+ :rtype: int
268
+ """
269
+ return self._failures
270
+
271
+ @failures.setter
272
+ def failures(self, failures):
273
+ r"""Sets the failures of this ShowReportSummary.
274
+
275
+ 失败数量
276
+
277
+ :param failures: The failures of this ShowReportSummary.
278
+ :type failures: int
279
+ """
280
+ self._failures = failures
281
+
282
+ @property
283
+ def errors(self):
284
+ r"""Gets the errors of this ShowReportSummary.
285
+
286
+ 错误数量
287
+
288
+ :return: The errors of this ShowReportSummary.
289
+ :rtype: int
290
+ """
291
+ return self._errors
292
+
293
+ @errors.setter
294
+ def errors(self, errors):
295
+ r"""Sets the errors of this ShowReportSummary.
296
+
297
+ 错误数量
298
+
299
+ :param errors: The errors of this ShowReportSummary.
300
+ :type errors: int
301
+ """
302
+ self._errors = errors
303
+
304
+ @property
305
+ def others(self):
306
+ r"""Gets the others of this ShowReportSummary.
307
+
308
+ 其他
309
+
310
+ :return: The others of this ShowReportSummary.
311
+ :rtype: int
312
+ """
313
+ return self._others
314
+
315
+ @others.setter
316
+ def others(self, others):
317
+ r"""Sets the others of this ShowReportSummary.
318
+
319
+ 其他
320
+
321
+ :param others: The others of this ShowReportSummary.
322
+ :type others: int
323
+ """
324
+ self._others = others
325
+
326
+ @property
327
+ def execution_time(self):
328
+ r"""Gets the execution_time of this ShowReportSummary.
329
+
330
+ 执行耗时
331
+
332
+ :return: The execution_time of this ShowReportSummary.
333
+ :rtype: int
334
+ """
335
+ return self._execution_time
336
+
337
+ @execution_time.setter
338
+ def execution_time(self, execution_time):
339
+ r"""Sets the execution_time of this ShowReportSummary.
340
+
341
+ 执行耗时
342
+
343
+ :param execution_time: The execution_time of this ShowReportSummary.
344
+ :type execution_time: int
345
+ """
346
+ self._execution_time = execution_time
347
+
348
+ @property
349
+ def genrate_time(self):
350
+ r"""Gets the genrate_time of this ShowReportSummary.
351
+
352
+ 生成时间
353
+
354
+ :return: The genrate_time of this ShowReportSummary.
355
+ :rtype: str
356
+ """
357
+ return self._genrate_time
358
+
359
+ @genrate_time.setter
360
+ def genrate_time(self, genrate_time):
361
+ r"""Sets the genrate_time of this ShowReportSummary.
362
+
363
+ 生成时间
364
+
365
+ :param genrate_time: The genrate_time of this ShowReportSummary.
366
+ :type genrate_time: str
367
+ """
368
+ self._genrate_time = genrate_time
369
+
370
+ @property
371
+ def region(self):
372
+ r"""Gets the region of this ShowReportSummary.
373
+
374
+ 局点
375
+
376
+ :return: The region of this ShowReportSummary.
377
+ :rtype: str
378
+ """
379
+ return self._region
380
+
381
+ @region.setter
382
+ def region(self, region):
383
+ r"""Sets the region of this ShowReportSummary.
384
+
385
+ 局点
386
+
387
+ :param region: The region of this ShowReportSummary.
388
+ :type region: str
389
+ """
390
+ self._region = region
391
+
392
+ @property
393
+ def is_success(self):
394
+ r"""Gets the is_success of this ShowReportSummary.
395
+
396
+ 是否通过
397
+
398
+ :return: The is_success of this ShowReportSummary.
399
+ :rtype: bool
400
+ """
401
+ return self._is_success
402
+
403
+ @is_success.setter
404
+ def is_success(self, is_success):
405
+ r"""Sets the is_success of this ShowReportSummary.
406
+
407
+ 是否通过
408
+
409
+ :param is_success: The is_success of this ShowReportSummary.
410
+ :type is_success: bool
411
+ """
412
+ self._is_success = is_success
413
+
414
+ def to_dict(self):
415
+ """Returns the model properties as a dict"""
416
+ result = {}
417
+
418
+ for attr, _ in six.iteritems(self.openapi_types):
419
+ value = getattr(self, attr)
420
+ if isinstance(value, list):
421
+ result[attr] = list(map(
422
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
423
+ value
424
+ ))
425
+ elif hasattr(value, "to_dict"):
426
+ result[attr] = value.to_dict()
427
+ elif isinstance(value, dict):
428
+ result[attr] = dict(map(
429
+ lambda item: (item[0], item[1].to_dict())
430
+ if hasattr(item[1], "to_dict") else item,
431
+ value.items()
432
+ ))
433
+ else:
434
+ if attr in self.sensitive_list:
435
+ result[attr] = "****"
436
+ else:
437
+ result[attr] = value
438
+
439
+ return result
440
+
441
+ def to_str(self):
442
+ """Returns the string representation of the model"""
443
+ import simplejson as json
444
+ if six.PY2:
445
+ import sys
446
+ reload(sys)
447
+ sys.setdefaultencoding("utf-8")
448
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
449
+
450
+ def __repr__(self):
451
+ """For `print`"""
452
+ return self.to_str()
453
+
454
+ def __eq__(self, other):
455
+ """Returns true if both objects are equal"""
456
+ if not isinstance(other, ShowReportSummary):
457
+ return False
458
+
459
+ return self.__dict__ == other.__dict__
460
+
461
+ def __ne__(self, other):
462
+ """Returns true if both objects are not equal"""
463
+ return not self == other