huaweicloudsdkcodeartsbuild 3.1.149__py2.py3-none-any.whl → 3.1.151__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 +83 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1885 -128
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1885 -128
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +83 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_response_body.py +347 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -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/constraints.py +173 -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/list_build_info_record_by_job_id_request.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -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_official_template_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -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_recycling_job_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -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/parameter.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -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_params_list_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -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_dockerfile_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_response.py +85 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -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_role_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -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_project_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -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_user_project_permission_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/RECORD +92 -9
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,347 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class RecyclingJob:
|
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
|
+
'job_name': 'str',
|
22
|
+
'project_id': 'str',
|
23
|
+
'creator_name': 'str',
|
24
|
+
'creator_id': 'str',
|
25
|
+
'create_time': 'str',
|
26
|
+
'delete_time': 'str',
|
27
|
+
'create_time_stamp': 'str',
|
28
|
+
'delete_time_stamp': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'job_id': 'job_id',
|
33
|
+
'job_name': 'job_name',
|
34
|
+
'project_id': 'project_id',
|
35
|
+
'creator_name': 'creator_name',
|
36
|
+
'creator_id': 'creator_id',
|
37
|
+
'create_time': 'create_time',
|
38
|
+
'delete_time': 'delete_time',
|
39
|
+
'create_time_stamp': 'create_time_stamp',
|
40
|
+
'delete_time_stamp': 'delete_time_stamp'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, job_id=None, job_name=None, project_id=None, creator_name=None, creator_id=None, create_time=None, delete_time=None, create_time_stamp=None, delete_time_stamp=None):
|
44
|
+
r"""RecyclingJob
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param job_id: 任务ID
|
49
|
+
:type job_id: str
|
50
|
+
:param job_name: 任务名称
|
51
|
+
:type job_name: str
|
52
|
+
:param project_id: CodeArts项目ID
|
53
|
+
:type project_id: str
|
54
|
+
:param creator_name: 创建人
|
55
|
+
:type creator_name: str
|
56
|
+
:param creator_id: 创建人ID
|
57
|
+
:type creator_id: str
|
58
|
+
:param create_time: 创建时间
|
59
|
+
:type create_time: str
|
60
|
+
:param delete_time: 删除时间
|
61
|
+
:type delete_time: str
|
62
|
+
:param create_time_stamp: 创建时间戳
|
63
|
+
:type create_time_stamp: str
|
64
|
+
:param delete_time_stamp: 删除时间戳
|
65
|
+
:type delete_time_stamp: str
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._job_id = None
|
71
|
+
self._job_name = None
|
72
|
+
self._project_id = None
|
73
|
+
self._creator_name = None
|
74
|
+
self._creator_id = None
|
75
|
+
self._create_time = None
|
76
|
+
self._delete_time = None
|
77
|
+
self._create_time_stamp = None
|
78
|
+
self._delete_time_stamp = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
if job_id is not None:
|
82
|
+
self.job_id = job_id
|
83
|
+
if job_name is not None:
|
84
|
+
self.job_name = job_name
|
85
|
+
if project_id is not None:
|
86
|
+
self.project_id = project_id
|
87
|
+
if creator_name is not None:
|
88
|
+
self.creator_name = creator_name
|
89
|
+
if creator_id is not None:
|
90
|
+
self.creator_id = creator_id
|
91
|
+
if create_time is not None:
|
92
|
+
self.create_time = create_time
|
93
|
+
if delete_time is not None:
|
94
|
+
self.delete_time = delete_time
|
95
|
+
if create_time_stamp is not None:
|
96
|
+
self.create_time_stamp = create_time_stamp
|
97
|
+
if delete_time_stamp is not None:
|
98
|
+
self.delete_time_stamp = delete_time_stamp
|
99
|
+
|
100
|
+
@property
|
101
|
+
def job_id(self):
|
102
|
+
r"""Gets the job_id of this RecyclingJob.
|
103
|
+
|
104
|
+
任务ID
|
105
|
+
|
106
|
+
:return: The job_id of this RecyclingJob.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._job_id
|
110
|
+
|
111
|
+
@job_id.setter
|
112
|
+
def job_id(self, job_id):
|
113
|
+
r"""Sets the job_id of this RecyclingJob.
|
114
|
+
|
115
|
+
任务ID
|
116
|
+
|
117
|
+
:param job_id: The job_id of this RecyclingJob.
|
118
|
+
:type job_id: str
|
119
|
+
"""
|
120
|
+
self._job_id = job_id
|
121
|
+
|
122
|
+
@property
|
123
|
+
def job_name(self):
|
124
|
+
r"""Gets the job_name of this RecyclingJob.
|
125
|
+
|
126
|
+
任务名称
|
127
|
+
|
128
|
+
:return: The job_name of this RecyclingJob.
|
129
|
+
:rtype: str
|
130
|
+
"""
|
131
|
+
return self._job_name
|
132
|
+
|
133
|
+
@job_name.setter
|
134
|
+
def job_name(self, job_name):
|
135
|
+
r"""Sets the job_name of this RecyclingJob.
|
136
|
+
|
137
|
+
任务名称
|
138
|
+
|
139
|
+
:param job_name: The job_name of this RecyclingJob.
|
140
|
+
:type job_name: str
|
141
|
+
"""
|
142
|
+
self._job_name = job_name
|
143
|
+
|
144
|
+
@property
|
145
|
+
def project_id(self):
|
146
|
+
r"""Gets the project_id of this RecyclingJob.
|
147
|
+
|
148
|
+
CodeArts项目ID
|
149
|
+
|
150
|
+
:return: The project_id of this RecyclingJob.
|
151
|
+
:rtype: str
|
152
|
+
"""
|
153
|
+
return self._project_id
|
154
|
+
|
155
|
+
@project_id.setter
|
156
|
+
def project_id(self, project_id):
|
157
|
+
r"""Sets the project_id of this RecyclingJob.
|
158
|
+
|
159
|
+
CodeArts项目ID
|
160
|
+
|
161
|
+
:param project_id: The project_id of this RecyclingJob.
|
162
|
+
:type project_id: str
|
163
|
+
"""
|
164
|
+
self._project_id = project_id
|
165
|
+
|
166
|
+
@property
|
167
|
+
def creator_name(self):
|
168
|
+
r"""Gets the creator_name of this RecyclingJob.
|
169
|
+
|
170
|
+
创建人
|
171
|
+
|
172
|
+
:return: The creator_name of this RecyclingJob.
|
173
|
+
:rtype: str
|
174
|
+
"""
|
175
|
+
return self._creator_name
|
176
|
+
|
177
|
+
@creator_name.setter
|
178
|
+
def creator_name(self, creator_name):
|
179
|
+
r"""Sets the creator_name of this RecyclingJob.
|
180
|
+
|
181
|
+
创建人
|
182
|
+
|
183
|
+
:param creator_name: The creator_name of this RecyclingJob.
|
184
|
+
:type creator_name: str
|
185
|
+
"""
|
186
|
+
self._creator_name = creator_name
|
187
|
+
|
188
|
+
@property
|
189
|
+
def creator_id(self):
|
190
|
+
r"""Gets the creator_id of this RecyclingJob.
|
191
|
+
|
192
|
+
创建人ID
|
193
|
+
|
194
|
+
:return: The creator_id of this RecyclingJob.
|
195
|
+
:rtype: str
|
196
|
+
"""
|
197
|
+
return self._creator_id
|
198
|
+
|
199
|
+
@creator_id.setter
|
200
|
+
def creator_id(self, creator_id):
|
201
|
+
r"""Sets the creator_id of this RecyclingJob.
|
202
|
+
|
203
|
+
创建人ID
|
204
|
+
|
205
|
+
:param creator_id: The creator_id of this RecyclingJob.
|
206
|
+
:type creator_id: str
|
207
|
+
"""
|
208
|
+
self._creator_id = creator_id
|
209
|
+
|
210
|
+
@property
|
211
|
+
def create_time(self):
|
212
|
+
r"""Gets the create_time of this RecyclingJob.
|
213
|
+
|
214
|
+
创建时间
|
215
|
+
|
216
|
+
:return: The create_time of this RecyclingJob.
|
217
|
+
:rtype: str
|
218
|
+
"""
|
219
|
+
return self._create_time
|
220
|
+
|
221
|
+
@create_time.setter
|
222
|
+
def create_time(self, create_time):
|
223
|
+
r"""Sets the create_time of this RecyclingJob.
|
224
|
+
|
225
|
+
创建时间
|
226
|
+
|
227
|
+
:param create_time: The create_time of this RecyclingJob.
|
228
|
+
:type create_time: str
|
229
|
+
"""
|
230
|
+
self._create_time = create_time
|
231
|
+
|
232
|
+
@property
|
233
|
+
def delete_time(self):
|
234
|
+
r"""Gets the delete_time of this RecyclingJob.
|
235
|
+
|
236
|
+
删除时间
|
237
|
+
|
238
|
+
:return: The delete_time of this RecyclingJob.
|
239
|
+
:rtype: str
|
240
|
+
"""
|
241
|
+
return self._delete_time
|
242
|
+
|
243
|
+
@delete_time.setter
|
244
|
+
def delete_time(self, delete_time):
|
245
|
+
r"""Sets the delete_time of this RecyclingJob.
|
246
|
+
|
247
|
+
删除时间
|
248
|
+
|
249
|
+
:param delete_time: The delete_time of this RecyclingJob.
|
250
|
+
:type delete_time: str
|
251
|
+
"""
|
252
|
+
self._delete_time = delete_time
|
253
|
+
|
254
|
+
@property
|
255
|
+
def create_time_stamp(self):
|
256
|
+
r"""Gets the create_time_stamp of this RecyclingJob.
|
257
|
+
|
258
|
+
创建时间戳
|
259
|
+
|
260
|
+
:return: The create_time_stamp of this RecyclingJob.
|
261
|
+
:rtype: str
|
262
|
+
"""
|
263
|
+
return self._create_time_stamp
|
264
|
+
|
265
|
+
@create_time_stamp.setter
|
266
|
+
def create_time_stamp(self, create_time_stamp):
|
267
|
+
r"""Sets the create_time_stamp of this RecyclingJob.
|
268
|
+
|
269
|
+
创建时间戳
|
270
|
+
|
271
|
+
:param create_time_stamp: The create_time_stamp of this RecyclingJob.
|
272
|
+
:type create_time_stamp: str
|
273
|
+
"""
|
274
|
+
self._create_time_stamp = create_time_stamp
|
275
|
+
|
276
|
+
@property
|
277
|
+
def delete_time_stamp(self):
|
278
|
+
r"""Gets the delete_time_stamp of this RecyclingJob.
|
279
|
+
|
280
|
+
删除时间戳
|
281
|
+
|
282
|
+
:return: The delete_time_stamp of this RecyclingJob.
|
283
|
+
:rtype: str
|
284
|
+
"""
|
285
|
+
return self._delete_time_stamp
|
286
|
+
|
287
|
+
@delete_time_stamp.setter
|
288
|
+
def delete_time_stamp(self, delete_time_stamp):
|
289
|
+
r"""Sets the delete_time_stamp of this RecyclingJob.
|
290
|
+
|
291
|
+
删除时间戳
|
292
|
+
|
293
|
+
:param delete_time_stamp: The delete_time_stamp of this RecyclingJob.
|
294
|
+
:type delete_time_stamp: str
|
295
|
+
"""
|
296
|
+
self._delete_time_stamp = delete_time_stamp
|
297
|
+
|
298
|
+
def to_dict(self):
|
299
|
+
"""Returns the model properties as a dict"""
|
300
|
+
result = {}
|
301
|
+
|
302
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
303
|
+
value = getattr(self, attr)
|
304
|
+
if isinstance(value, list):
|
305
|
+
result[attr] = list(map(
|
306
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
307
|
+
value
|
308
|
+
))
|
309
|
+
elif hasattr(value, "to_dict"):
|
310
|
+
result[attr] = value.to_dict()
|
311
|
+
elif isinstance(value, dict):
|
312
|
+
result[attr] = dict(map(
|
313
|
+
lambda item: (item[0], item[1].to_dict())
|
314
|
+
if hasattr(item[1], "to_dict") else item,
|
315
|
+
value.items()
|
316
|
+
))
|
317
|
+
else:
|
318
|
+
if attr in self.sensitive_list:
|
319
|
+
result[attr] = "****"
|
320
|
+
else:
|
321
|
+
result[attr] = value
|
322
|
+
|
323
|
+
return result
|
324
|
+
|
325
|
+
def to_str(self):
|
326
|
+
"""Returns the string representation of the model"""
|
327
|
+
import simplejson as json
|
328
|
+
if six.PY2:
|
329
|
+
import sys
|
330
|
+
reload(sys)
|
331
|
+
sys.setdefaultencoding("utf-8")
|
332
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
333
|
+
|
334
|
+
def __repr__(self):
|
335
|
+
"""For `print`"""
|
336
|
+
return self.to_str()
|
337
|
+
|
338
|
+
def __eq__(self, other):
|
339
|
+
"""Returns true if both objects are equal"""
|
340
|
+
if not isinstance(other, RecyclingJob):
|
341
|
+
return False
|
342
|
+
|
343
|
+
return self.__dict__ == other.__dict__
|
344
|
+
|
345
|
+
def __ne__(self, other):
|
346
|
+
"""Returns true if both objects are not equal"""
|
347
|
+
return not self == other
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class RecyclingJobsResult:
|
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
|
+
'keep_time': 'int',
|
21
|
+
'total': 'int',
|
22
|
+
'job_list': 'list[RecyclingJob]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'keep_time': 'keep_time',
|
27
|
+
'total': 'total',
|
28
|
+
'job_list': 'job_list'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, keep_time=None, total=None, job_list=None):
|
32
|
+
r"""RecyclingJobsResult
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param keep_time: 任务保留时间
|
37
|
+
:type keep_time: int
|
38
|
+
:param total: 总数
|
39
|
+
:type total: int
|
40
|
+
:param job_list: 任务列表
|
41
|
+
:type job_list: list[:class:`huaweicloudsdkcodeartsbuild.v3.RecyclingJob`]
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._keep_time = None
|
47
|
+
self._total = None
|
48
|
+
self._job_list = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if keep_time is not None:
|
52
|
+
self.keep_time = keep_time
|
53
|
+
if total is not None:
|
54
|
+
self.total = total
|
55
|
+
if job_list is not None:
|
56
|
+
self.job_list = job_list
|
57
|
+
|
58
|
+
@property
|
59
|
+
def keep_time(self):
|
60
|
+
r"""Gets the keep_time of this RecyclingJobsResult.
|
61
|
+
|
62
|
+
任务保留时间
|
63
|
+
|
64
|
+
:return: The keep_time of this RecyclingJobsResult.
|
65
|
+
:rtype: int
|
66
|
+
"""
|
67
|
+
return self._keep_time
|
68
|
+
|
69
|
+
@keep_time.setter
|
70
|
+
def keep_time(self, keep_time):
|
71
|
+
r"""Sets the keep_time of this RecyclingJobsResult.
|
72
|
+
|
73
|
+
任务保留时间
|
74
|
+
|
75
|
+
:param keep_time: The keep_time of this RecyclingJobsResult.
|
76
|
+
:type keep_time: int
|
77
|
+
"""
|
78
|
+
self._keep_time = keep_time
|
79
|
+
|
80
|
+
@property
|
81
|
+
def total(self):
|
82
|
+
r"""Gets the total of this RecyclingJobsResult.
|
83
|
+
|
84
|
+
总数
|
85
|
+
|
86
|
+
:return: The total of this RecyclingJobsResult.
|
87
|
+
:rtype: int
|
88
|
+
"""
|
89
|
+
return self._total
|
90
|
+
|
91
|
+
@total.setter
|
92
|
+
def total(self, total):
|
93
|
+
r"""Sets the total of this RecyclingJobsResult.
|
94
|
+
|
95
|
+
总数
|
96
|
+
|
97
|
+
:param total: The total of this RecyclingJobsResult.
|
98
|
+
:type total: int
|
99
|
+
"""
|
100
|
+
self._total = total
|
101
|
+
|
102
|
+
@property
|
103
|
+
def job_list(self):
|
104
|
+
r"""Gets the job_list of this RecyclingJobsResult.
|
105
|
+
|
106
|
+
任务列表
|
107
|
+
|
108
|
+
:return: The job_list of this RecyclingJobsResult.
|
109
|
+
:rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.RecyclingJob`]
|
110
|
+
"""
|
111
|
+
return self._job_list
|
112
|
+
|
113
|
+
@job_list.setter
|
114
|
+
def job_list(self, job_list):
|
115
|
+
r"""Sets the job_list of this RecyclingJobsResult.
|
116
|
+
|
117
|
+
任务列表
|
118
|
+
|
119
|
+
:param job_list: The job_list of this RecyclingJobsResult.
|
120
|
+
:type job_list: list[:class:`huaweicloudsdkcodeartsbuild.v3.RecyclingJob`]
|
121
|
+
"""
|
122
|
+
self._job_list = job_list
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, RecyclingJobsResult):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowBuildInfoRecordRequest:
|
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
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id',
|
26
|
+
'build_no': 'build_no'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, job_id=None, build_no=None):
|
30
|
+
r"""ShowBuildInfoRecordRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
35
|
+
:type job_id: str
|
36
|
+
:param build_no: 构建任务的构建编号,从1开始,每次构建递增1
|
37
|
+
:type build_no: int
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._job_id = None
|
43
|
+
self._build_no = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.job_id = job_id
|
47
|
+
self.build_no = build_no
|
48
|
+
|
49
|
+
@property
|
50
|
+
def job_id(self):
|
51
|
+
r"""Gets the job_id of this ShowBuildInfoRecordRequest.
|
52
|
+
|
53
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
54
|
+
|
55
|
+
:return: The job_id of this ShowBuildInfoRecordRequest.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._job_id
|
59
|
+
|
60
|
+
@job_id.setter
|
61
|
+
def job_id(self, job_id):
|
62
|
+
r"""Sets the job_id of this ShowBuildInfoRecordRequest.
|
63
|
+
|
64
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
65
|
+
|
66
|
+
:param job_id: The job_id of this ShowBuildInfoRecordRequest.
|
67
|
+
:type job_id: str
|
68
|
+
"""
|
69
|
+
self._job_id = job_id
|
70
|
+
|
71
|
+
@property
|
72
|
+
def build_no(self):
|
73
|
+
r"""Gets the build_no of this ShowBuildInfoRecordRequest.
|
74
|
+
|
75
|
+
构建任务的构建编号,从1开始,每次构建递增1
|
76
|
+
|
77
|
+
:return: The build_no of this ShowBuildInfoRecordRequest.
|
78
|
+
:rtype: int
|
79
|
+
"""
|
80
|
+
return self._build_no
|
81
|
+
|
82
|
+
@build_no.setter
|
83
|
+
def build_no(self, build_no):
|
84
|
+
r"""Sets the build_no of this ShowBuildInfoRecordRequest.
|
85
|
+
|
86
|
+
构建任务的构建编号,从1开始,每次构建递增1
|
87
|
+
|
88
|
+
:param build_no: The build_no of this ShowBuildInfoRecordRequest.
|
89
|
+
:type build_no: int
|
90
|
+
"""
|
91
|
+
self._build_no = build_no
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, ShowBuildInfoRecordRequest):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|