huaweicloudsdkcodeartsbuild 3.1.150__py2.py3-none-any.whl → 3.1.152__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 +90 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +2659 -652
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +2659 -652
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +90 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_response_body.py +347 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_parameter.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_count_is_top_limit_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_count_is_top_limit_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_junit_coverage_zip_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_junit_coverage_zip_response.py +85 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_response.py +85 -0
- huaweicloudsdkcodeartsbuild/v3/model/is_disable_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_status_body.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_summary.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_summary_body_result.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_update_record_list_vo_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_update_record_list_vo_result_job_update_records.py +289 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_parameter_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_parameter_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_custom_template_request.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_custom_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_job_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_job_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_job_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_job_result_job_list.py +1217 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_result_unit_summary_list.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response_body_result_keystore_list.py +517 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response_body_result_permission.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_records_request.py +317 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_records_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_records_result.py +140 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_records_result_pagination.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result_project_info_list.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_repo_branch_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_repo_branch_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_repository_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_repository_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_update_job_history_request.py +172 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_update_job_history_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/query_custom_templates_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/repositories_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_flow_graph_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_flow_graph_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_copy_name_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_copy_name_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_params.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_project_permission_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_project_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_project_permission_response_body_result.py +347 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_disable_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_disable_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_response.py +85 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_record_detail_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_record_detail_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_step_status_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_step_status_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_total_request.py +172 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_total_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_related_project_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_related_project_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result_project_info_list.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_summary_build_job_info_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_summary_build_job_info_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_over_package_quota_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_over_package_quota_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_over_package_quota_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/total_response_body_result.py +115 -0
- {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/RECORD +99 -9
- {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListKeystoreSearchResponseBodyResultPermission:
|
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
|
+
'keystore_id': 'str',
|
21
|
+
'setting': 'bool',
|
22
|
+
'delete': 'bool',
|
23
|
+
'modify': 'bool',
|
24
|
+
'usage': 'bool'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'keystore_id': 'keystore_id',
|
29
|
+
'setting': 'setting',
|
30
|
+
'delete': 'delete',
|
31
|
+
'modify': 'modify',
|
32
|
+
'usage': 'usage'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, keystore_id=None, setting=None, delete=None, modify=None, usage=None):
|
36
|
+
r"""ListKeystoreSearchResponseBodyResultPermission
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param keystore_id: 文件ID
|
41
|
+
:type keystore_id: str
|
42
|
+
:param setting: 是否有设置权限
|
43
|
+
:type setting: bool
|
44
|
+
:param delete: 是否有删除权限
|
45
|
+
:type delete: bool
|
46
|
+
:param modify: 是否有修改权限
|
47
|
+
:type modify: bool
|
48
|
+
:param usage: 是否有使用权限
|
49
|
+
:type usage: bool
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._keystore_id = None
|
55
|
+
self._setting = None
|
56
|
+
self._delete = None
|
57
|
+
self._modify = None
|
58
|
+
self._usage = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if keystore_id is not None:
|
62
|
+
self.keystore_id = keystore_id
|
63
|
+
if setting is not None:
|
64
|
+
self.setting = setting
|
65
|
+
if delete is not None:
|
66
|
+
self.delete = delete
|
67
|
+
if modify is not None:
|
68
|
+
self.modify = modify
|
69
|
+
if usage is not None:
|
70
|
+
self.usage = usage
|
71
|
+
|
72
|
+
@property
|
73
|
+
def keystore_id(self):
|
74
|
+
r"""Gets the keystore_id of this ListKeystoreSearchResponseBodyResultPermission.
|
75
|
+
|
76
|
+
文件ID
|
77
|
+
|
78
|
+
:return: The keystore_id of this ListKeystoreSearchResponseBodyResultPermission.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._keystore_id
|
82
|
+
|
83
|
+
@keystore_id.setter
|
84
|
+
def keystore_id(self, keystore_id):
|
85
|
+
r"""Sets the keystore_id of this ListKeystoreSearchResponseBodyResultPermission.
|
86
|
+
|
87
|
+
文件ID
|
88
|
+
|
89
|
+
:param keystore_id: The keystore_id of this ListKeystoreSearchResponseBodyResultPermission.
|
90
|
+
:type keystore_id: str
|
91
|
+
"""
|
92
|
+
self._keystore_id = keystore_id
|
93
|
+
|
94
|
+
@property
|
95
|
+
def setting(self):
|
96
|
+
r"""Gets the setting of this ListKeystoreSearchResponseBodyResultPermission.
|
97
|
+
|
98
|
+
是否有设置权限
|
99
|
+
|
100
|
+
:return: The setting of this ListKeystoreSearchResponseBodyResultPermission.
|
101
|
+
:rtype: bool
|
102
|
+
"""
|
103
|
+
return self._setting
|
104
|
+
|
105
|
+
@setting.setter
|
106
|
+
def setting(self, setting):
|
107
|
+
r"""Sets the setting of this ListKeystoreSearchResponseBodyResultPermission.
|
108
|
+
|
109
|
+
是否有设置权限
|
110
|
+
|
111
|
+
:param setting: The setting of this ListKeystoreSearchResponseBodyResultPermission.
|
112
|
+
:type setting: bool
|
113
|
+
"""
|
114
|
+
self._setting = setting
|
115
|
+
|
116
|
+
@property
|
117
|
+
def delete(self):
|
118
|
+
r"""Gets the delete of this ListKeystoreSearchResponseBodyResultPermission.
|
119
|
+
|
120
|
+
是否有删除权限
|
121
|
+
|
122
|
+
:return: The delete of this ListKeystoreSearchResponseBodyResultPermission.
|
123
|
+
:rtype: bool
|
124
|
+
"""
|
125
|
+
return self._delete
|
126
|
+
|
127
|
+
@delete.setter
|
128
|
+
def delete(self, delete):
|
129
|
+
r"""Sets the delete of this ListKeystoreSearchResponseBodyResultPermission.
|
130
|
+
|
131
|
+
是否有删除权限
|
132
|
+
|
133
|
+
:param delete: The delete of this ListKeystoreSearchResponseBodyResultPermission.
|
134
|
+
:type delete: bool
|
135
|
+
"""
|
136
|
+
self._delete = delete
|
137
|
+
|
138
|
+
@property
|
139
|
+
def modify(self):
|
140
|
+
r"""Gets the modify of this ListKeystoreSearchResponseBodyResultPermission.
|
141
|
+
|
142
|
+
是否有修改权限
|
143
|
+
|
144
|
+
:return: The modify of this ListKeystoreSearchResponseBodyResultPermission.
|
145
|
+
:rtype: bool
|
146
|
+
"""
|
147
|
+
return self._modify
|
148
|
+
|
149
|
+
@modify.setter
|
150
|
+
def modify(self, modify):
|
151
|
+
r"""Sets the modify of this ListKeystoreSearchResponseBodyResultPermission.
|
152
|
+
|
153
|
+
是否有修改权限
|
154
|
+
|
155
|
+
:param modify: The modify of this ListKeystoreSearchResponseBodyResultPermission.
|
156
|
+
:type modify: bool
|
157
|
+
"""
|
158
|
+
self._modify = modify
|
159
|
+
|
160
|
+
@property
|
161
|
+
def usage(self):
|
162
|
+
r"""Gets the usage of this ListKeystoreSearchResponseBodyResultPermission.
|
163
|
+
|
164
|
+
是否有使用权限
|
165
|
+
|
166
|
+
:return: The usage of this ListKeystoreSearchResponseBodyResultPermission.
|
167
|
+
:rtype: bool
|
168
|
+
"""
|
169
|
+
return self._usage
|
170
|
+
|
171
|
+
@usage.setter
|
172
|
+
def usage(self, usage):
|
173
|
+
r"""Sets the usage of this ListKeystoreSearchResponseBodyResultPermission.
|
174
|
+
|
175
|
+
是否有使用权限
|
176
|
+
|
177
|
+
:param usage: The usage of this ListKeystoreSearchResponseBodyResultPermission.
|
178
|
+
:type usage: bool
|
179
|
+
"""
|
180
|
+
self._usage = usage
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, ListKeystoreSearchResponseBodyResultPermission):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
return not self == other
|
@@ -0,0 +1,317 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListRecordsRequest:
|
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
|
+
'build_project_id': 'str',
|
21
|
+
'page': 'int',
|
22
|
+
'limit': 'int',
|
23
|
+
'triggers': 'list[str]',
|
24
|
+
'branches': 'list[str]',
|
25
|
+
'tags': 'list[str]',
|
26
|
+
'from_date': 'str',
|
27
|
+
'to_date': 'str'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'build_project_id': 'build_project_id',
|
32
|
+
'page': 'page',
|
33
|
+
'limit': 'limit',
|
34
|
+
'triggers': 'triggers',
|
35
|
+
'branches': 'branches',
|
36
|
+
'tags': 'tags',
|
37
|
+
'from_date': 'from_date',
|
38
|
+
'to_date': 'to_date'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, build_project_id=None, page=None, limit=None, triggers=None, branches=None, tags=None, from_date=None, to_date=None):
|
42
|
+
r"""ListRecordsRequest
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param build_project_id: 构建工程项目ID,36位数字、小写字母组合。
|
47
|
+
:type build_project_id: str
|
48
|
+
:param page: 分页页码,表示从此页开始查询,大于等于0
|
49
|
+
:type page: int
|
50
|
+
:param limit: 每页显示的条目数量,小于等于100
|
51
|
+
:type limit: int
|
52
|
+
:param triggers: 需要搜索的触发类型列表
|
53
|
+
:type triggers: list[str]
|
54
|
+
:param branches: 需要搜索的分支列表
|
55
|
+
:type branches: list[str]
|
56
|
+
:param tags: 需要搜索的标签列表
|
57
|
+
:type tags: list[str]
|
58
|
+
:param from_date: 查询起止时间,格式:yyyy-MM-dd HH:mm:ss
|
59
|
+
:type from_date: str
|
60
|
+
:param to_date: 查询结束时间,格式:yyyy-MM-dd HH:mm:ss
|
61
|
+
:type to_date: str
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._build_project_id = None
|
67
|
+
self._page = None
|
68
|
+
self._limit = None
|
69
|
+
self._triggers = None
|
70
|
+
self._branches = None
|
71
|
+
self._tags = None
|
72
|
+
self._from_date = None
|
73
|
+
self._to_date = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
self.build_project_id = build_project_id
|
77
|
+
if page is not None:
|
78
|
+
self.page = page
|
79
|
+
if limit is not None:
|
80
|
+
self.limit = limit
|
81
|
+
if triggers is not None:
|
82
|
+
self.triggers = triggers
|
83
|
+
if branches is not None:
|
84
|
+
self.branches = branches
|
85
|
+
if tags is not None:
|
86
|
+
self.tags = tags
|
87
|
+
if from_date is not None:
|
88
|
+
self.from_date = from_date
|
89
|
+
if to_date is not None:
|
90
|
+
self.to_date = to_date
|
91
|
+
|
92
|
+
@property
|
93
|
+
def build_project_id(self):
|
94
|
+
r"""Gets the build_project_id of this ListRecordsRequest.
|
95
|
+
|
96
|
+
构建工程项目ID,36位数字、小写字母组合。
|
97
|
+
|
98
|
+
:return: The build_project_id of this ListRecordsRequest.
|
99
|
+
:rtype: str
|
100
|
+
"""
|
101
|
+
return self._build_project_id
|
102
|
+
|
103
|
+
@build_project_id.setter
|
104
|
+
def build_project_id(self, build_project_id):
|
105
|
+
r"""Sets the build_project_id of this ListRecordsRequest.
|
106
|
+
|
107
|
+
构建工程项目ID,36位数字、小写字母组合。
|
108
|
+
|
109
|
+
:param build_project_id: The build_project_id of this ListRecordsRequest.
|
110
|
+
:type build_project_id: str
|
111
|
+
"""
|
112
|
+
self._build_project_id = build_project_id
|
113
|
+
|
114
|
+
@property
|
115
|
+
def page(self):
|
116
|
+
r"""Gets the page of this ListRecordsRequest.
|
117
|
+
|
118
|
+
分页页码,表示从此页开始查询,大于等于0
|
119
|
+
|
120
|
+
:return: The page of this ListRecordsRequest.
|
121
|
+
:rtype: int
|
122
|
+
"""
|
123
|
+
return self._page
|
124
|
+
|
125
|
+
@page.setter
|
126
|
+
def page(self, page):
|
127
|
+
r"""Sets the page of this ListRecordsRequest.
|
128
|
+
|
129
|
+
分页页码,表示从此页开始查询,大于等于0
|
130
|
+
|
131
|
+
:param page: The page of this ListRecordsRequest.
|
132
|
+
:type page: int
|
133
|
+
"""
|
134
|
+
self._page = page
|
135
|
+
|
136
|
+
@property
|
137
|
+
def limit(self):
|
138
|
+
r"""Gets the limit of this ListRecordsRequest.
|
139
|
+
|
140
|
+
每页显示的条目数量,小于等于100
|
141
|
+
|
142
|
+
:return: The limit of this ListRecordsRequest.
|
143
|
+
:rtype: int
|
144
|
+
"""
|
145
|
+
return self._limit
|
146
|
+
|
147
|
+
@limit.setter
|
148
|
+
def limit(self, limit):
|
149
|
+
r"""Sets the limit of this ListRecordsRequest.
|
150
|
+
|
151
|
+
每页显示的条目数量,小于等于100
|
152
|
+
|
153
|
+
:param limit: The limit of this ListRecordsRequest.
|
154
|
+
:type limit: int
|
155
|
+
"""
|
156
|
+
self._limit = limit
|
157
|
+
|
158
|
+
@property
|
159
|
+
def triggers(self):
|
160
|
+
r"""Gets the triggers of this ListRecordsRequest.
|
161
|
+
|
162
|
+
需要搜索的触发类型列表
|
163
|
+
|
164
|
+
:return: The triggers of this ListRecordsRequest.
|
165
|
+
:rtype: list[str]
|
166
|
+
"""
|
167
|
+
return self._triggers
|
168
|
+
|
169
|
+
@triggers.setter
|
170
|
+
def triggers(self, triggers):
|
171
|
+
r"""Sets the triggers of this ListRecordsRequest.
|
172
|
+
|
173
|
+
需要搜索的触发类型列表
|
174
|
+
|
175
|
+
:param triggers: The triggers of this ListRecordsRequest.
|
176
|
+
:type triggers: list[str]
|
177
|
+
"""
|
178
|
+
self._triggers = triggers
|
179
|
+
|
180
|
+
@property
|
181
|
+
def branches(self):
|
182
|
+
r"""Gets the branches of this ListRecordsRequest.
|
183
|
+
|
184
|
+
需要搜索的分支列表
|
185
|
+
|
186
|
+
:return: The branches of this ListRecordsRequest.
|
187
|
+
:rtype: list[str]
|
188
|
+
"""
|
189
|
+
return self._branches
|
190
|
+
|
191
|
+
@branches.setter
|
192
|
+
def branches(self, branches):
|
193
|
+
r"""Sets the branches of this ListRecordsRequest.
|
194
|
+
|
195
|
+
需要搜索的分支列表
|
196
|
+
|
197
|
+
:param branches: The branches of this ListRecordsRequest.
|
198
|
+
:type branches: list[str]
|
199
|
+
"""
|
200
|
+
self._branches = branches
|
201
|
+
|
202
|
+
@property
|
203
|
+
def tags(self):
|
204
|
+
r"""Gets the tags of this ListRecordsRequest.
|
205
|
+
|
206
|
+
需要搜索的标签列表
|
207
|
+
|
208
|
+
:return: The tags of this ListRecordsRequest.
|
209
|
+
:rtype: list[str]
|
210
|
+
"""
|
211
|
+
return self._tags
|
212
|
+
|
213
|
+
@tags.setter
|
214
|
+
def tags(self, tags):
|
215
|
+
r"""Sets the tags of this ListRecordsRequest.
|
216
|
+
|
217
|
+
需要搜索的标签列表
|
218
|
+
|
219
|
+
:param tags: The tags of this ListRecordsRequest.
|
220
|
+
:type tags: list[str]
|
221
|
+
"""
|
222
|
+
self._tags = tags
|
223
|
+
|
224
|
+
@property
|
225
|
+
def from_date(self):
|
226
|
+
r"""Gets the from_date of this ListRecordsRequest.
|
227
|
+
|
228
|
+
查询起止时间,格式:yyyy-MM-dd HH:mm:ss
|
229
|
+
|
230
|
+
:return: The from_date of this ListRecordsRequest.
|
231
|
+
:rtype: str
|
232
|
+
"""
|
233
|
+
return self._from_date
|
234
|
+
|
235
|
+
@from_date.setter
|
236
|
+
def from_date(self, from_date):
|
237
|
+
r"""Sets the from_date of this ListRecordsRequest.
|
238
|
+
|
239
|
+
查询起止时间,格式:yyyy-MM-dd HH:mm:ss
|
240
|
+
|
241
|
+
:param from_date: The from_date of this ListRecordsRequest.
|
242
|
+
:type from_date: str
|
243
|
+
"""
|
244
|
+
self._from_date = from_date
|
245
|
+
|
246
|
+
@property
|
247
|
+
def to_date(self):
|
248
|
+
r"""Gets the to_date of this ListRecordsRequest.
|
249
|
+
|
250
|
+
查询结束时间,格式:yyyy-MM-dd HH:mm:ss
|
251
|
+
|
252
|
+
:return: The to_date of this ListRecordsRequest.
|
253
|
+
:rtype: str
|
254
|
+
"""
|
255
|
+
return self._to_date
|
256
|
+
|
257
|
+
@to_date.setter
|
258
|
+
def to_date(self, to_date):
|
259
|
+
r"""Sets the to_date of this ListRecordsRequest.
|
260
|
+
|
261
|
+
查询结束时间,格式:yyyy-MM-dd HH:mm:ss
|
262
|
+
|
263
|
+
:param to_date: The to_date of this ListRecordsRequest.
|
264
|
+
:type to_date: str
|
265
|
+
"""
|
266
|
+
self._to_date = to_date
|
267
|
+
|
268
|
+
def to_dict(self):
|
269
|
+
"""Returns the model properties as a dict"""
|
270
|
+
result = {}
|
271
|
+
|
272
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
273
|
+
value = getattr(self, attr)
|
274
|
+
if isinstance(value, list):
|
275
|
+
result[attr] = list(map(
|
276
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
277
|
+
value
|
278
|
+
))
|
279
|
+
elif hasattr(value, "to_dict"):
|
280
|
+
result[attr] = value.to_dict()
|
281
|
+
elif isinstance(value, dict):
|
282
|
+
result[attr] = dict(map(
|
283
|
+
lambda item: (item[0], item[1].to_dict())
|
284
|
+
if hasattr(item[1], "to_dict") else item,
|
285
|
+
value.items()
|
286
|
+
))
|
287
|
+
else:
|
288
|
+
if attr in self.sensitive_list:
|
289
|
+
result[attr] = "****"
|
290
|
+
else:
|
291
|
+
result[attr] = value
|
292
|
+
|
293
|
+
return result
|
294
|
+
|
295
|
+
def to_str(self):
|
296
|
+
"""Returns the string representation of the model"""
|
297
|
+
import simplejson as json
|
298
|
+
if six.PY2:
|
299
|
+
import sys
|
300
|
+
reload(sys)
|
301
|
+
sys.setdefaultencoding("utf-8")
|
302
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
303
|
+
|
304
|
+
def __repr__(self):
|
305
|
+
"""For `print`"""
|
306
|
+
return self.to_str()
|
307
|
+
|
308
|
+
def __eq__(self, other):
|
309
|
+
"""Returns true if both objects are equal"""
|
310
|
+
if not isinstance(other, ListRecordsRequest):
|
311
|
+
return False
|
312
|
+
|
313
|
+
return self.__dict__ == other.__dict__
|
314
|
+
|
315
|
+
def __ne__(self, other):
|
316
|
+
"""Returns true if both objects are not equal"""
|
317
|
+
return not self == other
|
@@ -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 ListRecordsResponse(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': 'ListRecordsResult',
|
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"""ListRecordsResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param result:
|
38
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsResult`
|
39
|
+
:param error: 返回错误信息
|
40
|
+
:type error: str
|
41
|
+
:param status: 返回状态信息
|
42
|
+
:type status: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ListRecordsResponse, 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 ListRecordsResponse.
|
62
|
+
|
63
|
+
:return: The result of this ListRecordsResponse.
|
64
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsResult`
|
65
|
+
"""
|
66
|
+
return self._result
|
67
|
+
|
68
|
+
@result.setter
|
69
|
+
def result(self, result):
|
70
|
+
r"""Sets the result of this ListRecordsResponse.
|
71
|
+
|
72
|
+
:param result: The result of this ListRecordsResponse.
|
73
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsResult`
|
74
|
+
"""
|
75
|
+
self._result = result
|
76
|
+
|
77
|
+
@property
|
78
|
+
def error(self):
|
79
|
+
r"""Gets the error of this ListRecordsResponse.
|
80
|
+
|
81
|
+
返回错误信息
|
82
|
+
|
83
|
+
:return: The error of this ListRecordsResponse.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._error
|
87
|
+
|
88
|
+
@error.setter
|
89
|
+
def error(self, error):
|
90
|
+
r"""Sets the error of this ListRecordsResponse.
|
91
|
+
|
92
|
+
返回错误信息
|
93
|
+
|
94
|
+
:param error: The error of this ListRecordsResponse.
|
95
|
+
:type error: str
|
96
|
+
"""
|
97
|
+
self._error = error
|
98
|
+
|
99
|
+
@property
|
100
|
+
def status(self):
|
101
|
+
r"""Gets the status of this ListRecordsResponse.
|
102
|
+
|
103
|
+
返回状态信息
|
104
|
+
|
105
|
+
:return: The status of this ListRecordsResponse.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._status
|
109
|
+
|
110
|
+
@status.setter
|
111
|
+
def status(self, status):
|
112
|
+
r"""Sets the status of this ListRecordsResponse.
|
113
|
+
|
114
|
+
返回状态信息
|
115
|
+
|
116
|
+
:param status: The status of this ListRecordsResponse.
|
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, ListRecordsResponse):
|
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
|