huaweicloudsdkcodeartsbuild 3.1.148__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.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/RECORD +38 -13
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.149.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,170 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ShowRunningStatusResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'result': 'ShowRunningStatusResult',
|
22
|
+
'error': 'str',
|
23
|
+
'status': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'result': 'result',
|
28
|
+
'error': 'error',
|
29
|
+
'status': 'status'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, result=None, error=None, status=None):
|
33
|
+
r"""ShowRunningStatusResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param result:
|
38
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusResult`
|
39
|
+
:param error: 返回错误信息
|
40
|
+
:type error: str
|
41
|
+
:param status: 返回状态信息
|
42
|
+
:type status: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ShowRunningStatusResponse, self).__init__()
|
46
|
+
|
47
|
+
self._result = None
|
48
|
+
self._error = None
|
49
|
+
self._status = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if result is not None:
|
53
|
+
self.result = result
|
54
|
+
if error is not None:
|
55
|
+
self.error = error
|
56
|
+
if status is not None:
|
57
|
+
self.status = status
|
58
|
+
|
59
|
+
@property
|
60
|
+
def result(self):
|
61
|
+
r"""Gets the result of this ShowRunningStatusResponse.
|
62
|
+
|
63
|
+
:return: The result of this ShowRunningStatusResponse.
|
64
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusResult`
|
65
|
+
"""
|
66
|
+
return self._result
|
67
|
+
|
68
|
+
@result.setter
|
69
|
+
def result(self, result):
|
70
|
+
r"""Sets the result of this ShowRunningStatusResponse.
|
71
|
+
|
72
|
+
:param result: The result of this ShowRunningStatusResponse.
|
73
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusResult`
|
74
|
+
"""
|
75
|
+
self._result = result
|
76
|
+
|
77
|
+
@property
|
78
|
+
def error(self):
|
79
|
+
r"""Gets the error of this ShowRunningStatusResponse.
|
80
|
+
|
81
|
+
返回错误信息
|
82
|
+
|
83
|
+
:return: The error of this ShowRunningStatusResponse.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._error
|
87
|
+
|
88
|
+
@error.setter
|
89
|
+
def error(self, error):
|
90
|
+
r"""Sets the error of this ShowRunningStatusResponse.
|
91
|
+
|
92
|
+
返回错误信息
|
93
|
+
|
94
|
+
:param error: The error of this ShowRunningStatusResponse.
|
95
|
+
:type error: str
|
96
|
+
"""
|
97
|
+
self._error = error
|
98
|
+
|
99
|
+
@property
|
100
|
+
def status(self):
|
101
|
+
r"""Gets the status of this ShowRunningStatusResponse.
|
102
|
+
|
103
|
+
返回状态信息
|
104
|
+
|
105
|
+
:return: The status of this ShowRunningStatusResponse.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._status
|
109
|
+
|
110
|
+
@status.setter
|
111
|
+
def status(self, status):
|
112
|
+
r"""Sets the status of this ShowRunningStatusResponse.
|
113
|
+
|
114
|
+
返回状态信息
|
115
|
+
|
116
|
+
:param status: The status of this ShowRunningStatusResponse.
|
117
|
+
:type status: str
|
118
|
+
"""
|
119
|
+
self._status = status
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, ShowRunningStatusResponse):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowRunningStatusResult:
|
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
|
+
'last_job_id': 'str',
|
21
|
+
'last_build_no': 'str',
|
22
|
+
'last_build_status': 'str',
|
23
|
+
'is_running': 'bool'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'last_job_id': 'last_job_id',
|
28
|
+
'last_build_no': 'last_build_no',
|
29
|
+
'last_build_status': 'last_build_status',
|
30
|
+
'is_running': 'is_running'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, last_job_id=None, last_build_no=None, last_build_status=None, is_running=None):
|
34
|
+
r"""ShowRunningStatusResult
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param last_job_id: 任务ID
|
39
|
+
:type last_job_id: str
|
40
|
+
:param last_build_no: 最新构建编号
|
41
|
+
:type last_build_no: str
|
42
|
+
:param last_build_status: 最新构建状态
|
43
|
+
:type last_build_status: str
|
44
|
+
:param is_running: 是否在运行中
|
45
|
+
:type is_running: bool
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._last_job_id = None
|
51
|
+
self._last_build_no = None
|
52
|
+
self._last_build_status = None
|
53
|
+
self._is_running = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if last_job_id is not None:
|
57
|
+
self.last_job_id = last_job_id
|
58
|
+
if last_build_no is not None:
|
59
|
+
self.last_build_no = last_build_no
|
60
|
+
if last_build_status is not None:
|
61
|
+
self.last_build_status = last_build_status
|
62
|
+
if is_running is not None:
|
63
|
+
self.is_running = is_running
|
64
|
+
|
65
|
+
@property
|
66
|
+
def last_job_id(self):
|
67
|
+
r"""Gets the last_job_id of this ShowRunningStatusResult.
|
68
|
+
|
69
|
+
任务ID
|
70
|
+
|
71
|
+
:return: The last_job_id of this ShowRunningStatusResult.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._last_job_id
|
75
|
+
|
76
|
+
@last_job_id.setter
|
77
|
+
def last_job_id(self, last_job_id):
|
78
|
+
r"""Sets the last_job_id of this ShowRunningStatusResult.
|
79
|
+
|
80
|
+
任务ID
|
81
|
+
|
82
|
+
:param last_job_id: The last_job_id of this ShowRunningStatusResult.
|
83
|
+
:type last_job_id: str
|
84
|
+
"""
|
85
|
+
self._last_job_id = last_job_id
|
86
|
+
|
87
|
+
@property
|
88
|
+
def last_build_no(self):
|
89
|
+
r"""Gets the last_build_no of this ShowRunningStatusResult.
|
90
|
+
|
91
|
+
最新构建编号
|
92
|
+
|
93
|
+
:return: The last_build_no of this ShowRunningStatusResult.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._last_build_no
|
97
|
+
|
98
|
+
@last_build_no.setter
|
99
|
+
def last_build_no(self, last_build_no):
|
100
|
+
r"""Sets the last_build_no of this ShowRunningStatusResult.
|
101
|
+
|
102
|
+
最新构建编号
|
103
|
+
|
104
|
+
:param last_build_no: The last_build_no of this ShowRunningStatusResult.
|
105
|
+
:type last_build_no: str
|
106
|
+
"""
|
107
|
+
self._last_build_no = last_build_no
|
108
|
+
|
109
|
+
@property
|
110
|
+
def last_build_status(self):
|
111
|
+
r"""Gets the last_build_status of this ShowRunningStatusResult.
|
112
|
+
|
113
|
+
最新构建状态
|
114
|
+
|
115
|
+
:return: The last_build_status of this ShowRunningStatusResult.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._last_build_status
|
119
|
+
|
120
|
+
@last_build_status.setter
|
121
|
+
def last_build_status(self, last_build_status):
|
122
|
+
r"""Sets the last_build_status of this ShowRunningStatusResult.
|
123
|
+
|
124
|
+
最新构建状态
|
125
|
+
|
126
|
+
:param last_build_status: The last_build_status of this ShowRunningStatusResult.
|
127
|
+
:type last_build_status: str
|
128
|
+
"""
|
129
|
+
self._last_build_status = last_build_status
|
130
|
+
|
131
|
+
@property
|
132
|
+
def is_running(self):
|
133
|
+
r"""Gets the is_running of this ShowRunningStatusResult.
|
134
|
+
|
135
|
+
是否在运行中
|
136
|
+
|
137
|
+
:return: The is_running of this ShowRunningStatusResult.
|
138
|
+
:rtype: bool
|
139
|
+
"""
|
140
|
+
return self._is_running
|
141
|
+
|
142
|
+
@is_running.setter
|
143
|
+
def is_running(self, is_running):
|
144
|
+
r"""Sets the is_running of this ShowRunningStatusResult.
|
145
|
+
|
146
|
+
是否在运行中
|
147
|
+
|
148
|
+
:param is_running: The is_running of this ShowRunningStatusResult.
|
149
|
+
:type is_running: bool
|
150
|
+
"""
|
151
|
+
self._is_running = is_running
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, ShowRunningStatusResult):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowYamlTemplateRequest:
|
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
|
+
'default_host': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id',
|
26
|
+
'default_host': 'default_host'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, job_id=None, default_host=None):
|
30
|
+
r"""ShowYamlTemplateRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
35
|
+
:type job_id: str
|
36
|
+
:param default_host: 默认主机类型
|
37
|
+
:type default_host: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._job_id = None
|
43
|
+
self._default_host = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.job_id = job_id
|
47
|
+
if default_host is not None:
|
48
|
+
self.default_host = default_host
|
49
|
+
|
50
|
+
@property
|
51
|
+
def job_id(self):
|
52
|
+
r"""Gets the job_id of this ShowYamlTemplateRequest.
|
53
|
+
|
54
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
55
|
+
|
56
|
+
:return: The job_id of this ShowYamlTemplateRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._job_id
|
60
|
+
|
61
|
+
@job_id.setter
|
62
|
+
def job_id(self, job_id):
|
63
|
+
r"""Sets the job_id of this ShowYamlTemplateRequest.
|
64
|
+
|
65
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
66
|
+
|
67
|
+
:param job_id: The job_id of this ShowYamlTemplateRequest.
|
68
|
+
:type job_id: str
|
69
|
+
"""
|
70
|
+
self._job_id = job_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def default_host(self):
|
74
|
+
r"""Gets the default_host of this ShowYamlTemplateRequest.
|
75
|
+
|
76
|
+
默认主机类型
|
77
|
+
|
78
|
+
:return: The default_host of this ShowYamlTemplateRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._default_host
|
82
|
+
|
83
|
+
@default_host.setter
|
84
|
+
def default_host(self, default_host):
|
85
|
+
r"""Sets the default_host of this ShowYamlTemplateRequest.
|
86
|
+
|
87
|
+
默认主机类型
|
88
|
+
|
89
|
+
:param default_host: The default_host of this ShowYamlTemplateRequest.
|
90
|
+
:type default_host: str
|
91
|
+
"""
|
92
|
+
self._default_host = default_host
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, ShowYamlTemplateRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|
@@ -0,0 +1,174 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ShowYamlTemplateResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'status': 'str',
|
22
|
+
'error': 'object',
|
23
|
+
'result': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'status': 'status',
|
28
|
+
'error': 'error',
|
29
|
+
'result': 'result'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, status=None, error=None, result=None):
|
33
|
+
r"""ShowYamlTemplateResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param status: 状态
|
38
|
+
:type status: str
|
39
|
+
:param error: 错误
|
40
|
+
:type error: object
|
41
|
+
:param result: 结果
|
42
|
+
:type result: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ShowYamlTemplateResponse, self).__init__()
|
46
|
+
|
47
|
+
self._status = None
|
48
|
+
self._error = None
|
49
|
+
self._result = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if status is not None:
|
53
|
+
self.status = status
|
54
|
+
if error is not None:
|
55
|
+
self.error = error
|
56
|
+
if result is not None:
|
57
|
+
self.result = result
|
58
|
+
|
59
|
+
@property
|
60
|
+
def status(self):
|
61
|
+
r"""Gets the status of this ShowYamlTemplateResponse.
|
62
|
+
|
63
|
+
状态
|
64
|
+
|
65
|
+
:return: The status of this ShowYamlTemplateResponse.
|
66
|
+
:rtype: str
|
67
|
+
"""
|
68
|
+
return self._status
|
69
|
+
|
70
|
+
@status.setter
|
71
|
+
def status(self, status):
|
72
|
+
r"""Sets the status of this ShowYamlTemplateResponse.
|
73
|
+
|
74
|
+
状态
|
75
|
+
|
76
|
+
:param status: The status of this ShowYamlTemplateResponse.
|
77
|
+
:type status: str
|
78
|
+
"""
|
79
|
+
self._status = status
|
80
|
+
|
81
|
+
@property
|
82
|
+
def error(self):
|
83
|
+
r"""Gets the error of this ShowYamlTemplateResponse.
|
84
|
+
|
85
|
+
错误
|
86
|
+
|
87
|
+
:return: The error of this ShowYamlTemplateResponse.
|
88
|
+
:rtype: object
|
89
|
+
"""
|
90
|
+
return self._error
|
91
|
+
|
92
|
+
@error.setter
|
93
|
+
def error(self, error):
|
94
|
+
r"""Sets the error of this ShowYamlTemplateResponse.
|
95
|
+
|
96
|
+
错误
|
97
|
+
|
98
|
+
:param error: The error of this ShowYamlTemplateResponse.
|
99
|
+
:type error: object
|
100
|
+
"""
|
101
|
+
self._error = error
|
102
|
+
|
103
|
+
@property
|
104
|
+
def result(self):
|
105
|
+
r"""Gets the result of this ShowYamlTemplateResponse.
|
106
|
+
|
107
|
+
结果
|
108
|
+
|
109
|
+
:return: The result of this ShowYamlTemplateResponse.
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._result
|
113
|
+
|
114
|
+
@result.setter
|
115
|
+
def result(self, result):
|
116
|
+
r"""Sets the result of this ShowYamlTemplateResponse.
|
117
|
+
|
118
|
+
结果
|
119
|
+
|
120
|
+
:param result: The result of this ShowYamlTemplateResponse.
|
121
|
+
:type result: str
|
122
|
+
"""
|
123
|
+
self._result = result
|
124
|
+
|
125
|
+
def to_dict(self):
|
126
|
+
"""Returns the model properties as a dict"""
|
127
|
+
result = {}
|
128
|
+
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
130
|
+
value = getattr(self, attr)
|
131
|
+
if isinstance(value, list):
|
132
|
+
result[attr] = list(map(
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
134
|
+
value
|
135
|
+
))
|
136
|
+
elif hasattr(value, "to_dict"):
|
137
|
+
result[attr] = value.to_dict()
|
138
|
+
elif isinstance(value, dict):
|
139
|
+
result[attr] = dict(map(
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
142
|
+
value.items()
|
143
|
+
))
|
144
|
+
else:
|
145
|
+
if attr in self.sensitive_list:
|
146
|
+
result[attr] = "****"
|
147
|
+
else:
|
148
|
+
result[attr] = value
|
149
|
+
|
150
|
+
return result
|
151
|
+
|
152
|
+
def to_str(self):
|
153
|
+
"""Returns the string representation of the model"""
|
154
|
+
import simplejson as json
|
155
|
+
if six.PY2:
|
156
|
+
import sys
|
157
|
+
reload(sys)
|
158
|
+
sys.setdefaultencoding("utf-8")
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
160
|
+
|
161
|
+
def __repr__(self):
|
162
|
+
"""For `print`"""
|
163
|
+
return self.to_str()
|
164
|
+
|
165
|
+
def __eq__(self, other):
|
166
|
+
"""Returns true if both objects are equal"""
|
167
|
+
if not isinstance(other, ShowYamlTemplateResponse):
|
168
|
+
return False
|
169
|
+
|
170
|
+
return self.__dict__ == other.__dict__
|
171
|
+
|
172
|
+
def __ne__(self, other):
|
173
|
+
"""Returns true if both objects are not equal"""
|
174
|
+
return not self == other
|
@@ -26,6 +26,10 @@ class CodeArtsBuildRegion:
|
|
26
26
|
"https://cloudbuild-ext.sa-brazil-1.myhuaweicloud.com")
|
27
27
|
LA_NORTH_2 = Region("la-north-2",
|
28
28
|
"https://cloudbuild-ext.la-north-2.myhuaweicloud.com")
|
29
|
+
LA_SOUTH_2 = Region("la-south-2",
|
30
|
+
"https://cloudbuild-ext.la-south-2.myhuaweicloud.com")
|
31
|
+
TR_WEST_1 = Region("tr-west-1",
|
32
|
+
"https://cloudbuild-ext.tr-west-1.myhuaweicloud.com")
|
29
33
|
|
30
34
|
static_fields = {
|
31
35
|
"cn-north-4": CN_NORTH_4,
|
@@ -38,6 +42,8 @@ class CodeArtsBuildRegion:
|
|
38
42
|
"ap-southeast-3": AP_SOUTHEAST_3,
|
39
43
|
"sa-brazil-1": SA_BRAZIL_1,
|
40
44
|
"la-north-2": LA_NORTH_2,
|
45
|
+
"la-south-2": LA_SOUTH_2,
|
46
|
+
"tr-west-1": TR_WEST_1,
|
41
47
|
}
|
42
48
|
|
43
49
|
@classmethod
|