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.
- huaweicloudsdkcodeartsbuild/v3/__init__.py +27 -2
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +481 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +481 -0
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +27 -2
- huaweicloudsdkcodeartsbuild/v3/model/build_info_record.py +604 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_info_record_commit_info.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_stage_record.py +608 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result.py → flow_graph2_result.py} +15 -15
- huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result_edges.py → flow_graph2_result_edges.py} +11 -11
- huaweicloudsdkcodeartsbuild/v3/model/full_stages_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_body_result.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_request.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/real_time_log_response_body_result.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_flow_graph_response.py +4 -4
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result_every_day_report.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary.py +463 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_body_result.py +140 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_running_status_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_running_status_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_running_status_result.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py +6 -0
- {huaweicloudsdkcodeartsbuild-3.1.147.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.147.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/RECORD +38 -13
- {huaweicloudsdkcodeartsbuild-3.1.147.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.147.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/WHEEL +0 -0
- {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 BuildInfoRecordCommitInfo:
|
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
|
+
'commit_id': 'str',
|
21
|
+
'created_at': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'commit_id': 'commit_id',
|
26
|
+
'created_at': 'created_at'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, commit_id=None, created_at=None):
|
30
|
+
r"""BuildInfoRecordCommitInfo
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param commit_id: 代码提交的commit id
|
35
|
+
:type commit_id: str
|
36
|
+
:param created_at: 提交时间
|
37
|
+
:type created_at: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._commit_id = None
|
43
|
+
self._created_at = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if commit_id is not None:
|
47
|
+
self.commit_id = commit_id
|
48
|
+
if created_at is not None:
|
49
|
+
self.created_at = created_at
|
50
|
+
|
51
|
+
@property
|
52
|
+
def commit_id(self):
|
53
|
+
r"""Gets the commit_id of this BuildInfoRecordCommitInfo.
|
54
|
+
|
55
|
+
代码提交的commit id
|
56
|
+
|
57
|
+
:return: The commit_id of this BuildInfoRecordCommitInfo.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._commit_id
|
61
|
+
|
62
|
+
@commit_id.setter
|
63
|
+
def commit_id(self, commit_id):
|
64
|
+
r"""Sets the commit_id of this BuildInfoRecordCommitInfo.
|
65
|
+
|
66
|
+
代码提交的commit id
|
67
|
+
|
68
|
+
:param commit_id: The commit_id of this BuildInfoRecordCommitInfo.
|
69
|
+
:type commit_id: str
|
70
|
+
"""
|
71
|
+
self._commit_id = commit_id
|
72
|
+
|
73
|
+
@property
|
74
|
+
def created_at(self):
|
75
|
+
r"""Gets the created_at of this BuildInfoRecordCommitInfo.
|
76
|
+
|
77
|
+
提交时间
|
78
|
+
|
79
|
+
:return: The created_at of this BuildInfoRecordCommitInfo.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._created_at
|
83
|
+
|
84
|
+
@created_at.setter
|
85
|
+
def created_at(self, created_at):
|
86
|
+
r"""Sets the created_at of this BuildInfoRecordCommitInfo.
|
87
|
+
|
88
|
+
提交时间
|
89
|
+
|
90
|
+
:param created_at: The created_at of this BuildInfoRecordCommitInfo.
|
91
|
+
:type created_at: str
|
92
|
+
"""
|
93
|
+
self._created_at = created_at
|
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, BuildInfoRecordCommitInfo):
|
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
|