huaweicloudsdkcodeartsbuild 3.1.152__py2.py3-none-any.whl → 3.1.153__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 +42 -1
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1095 -118
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1095 -118
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +42 -1
- huaweicloudsdkcodeartsbuild/v3/model/brief_record_items.py +550 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request_body.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_build_job_request_body.py +429 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_build_job_request_body.py +115 -3
- huaweicloudsdkcodeartsbuild/v3/model/create_build_job_scm.py +90 -3
- huaweicloudsdkcodeartsbuild/v3/model/create_build_timeout.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_build_job_response.py +4 -4
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_template_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/{delete_build_job_response_body_result.py → delete_the_job_response_body_result.py} +11 -11
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request_body.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/execute_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/execute_job_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/job.py +264 -3
- huaweicloudsdkcodeartsbuild/v3/model/jobs_request_body.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request_body.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request_body.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/trigger.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_job_response.py +170 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/RECORD +55 -14
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,429 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CopyBuildJobRequestBody:
|
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
|
+
'arch': 'str',
|
21
|
+
'project_id': 'str',
|
22
|
+
'job_name': 'str',
|
23
|
+
'copy_job_id': 'str',
|
24
|
+
'auto_update_sub_module': 'str',
|
25
|
+
'flavor': 'str',
|
26
|
+
'parameters': 'list[CreateBuildJobParameter]',
|
27
|
+
'scms': 'list[CreateBuildJobScm]',
|
28
|
+
'steps': 'list[CreateBuildJobSteps]',
|
29
|
+
'host_type': 'str',
|
30
|
+
'build_config_type': 'str',
|
31
|
+
'triggers': 'list[Trigger]'
|
32
|
+
}
|
33
|
+
|
34
|
+
attribute_map = {
|
35
|
+
'arch': 'arch',
|
36
|
+
'project_id': 'project_id',
|
37
|
+
'job_name': 'job_name',
|
38
|
+
'copy_job_id': 'copy_job_id',
|
39
|
+
'auto_update_sub_module': 'auto_update_sub_module',
|
40
|
+
'flavor': 'flavor',
|
41
|
+
'parameters': 'parameters',
|
42
|
+
'scms': 'scms',
|
43
|
+
'steps': 'steps',
|
44
|
+
'host_type': 'host_type',
|
45
|
+
'build_config_type': 'build_config_type',
|
46
|
+
'triggers': 'triggers'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, arch=None, project_id=None, job_name=None, copy_job_id=None, auto_update_sub_module=None, flavor=None, parameters=None, scms=None, steps=None, host_type=None, build_config_type=None, triggers=None):
|
50
|
+
r"""CopyBuildJobRequestBody
|
51
|
+
|
52
|
+
The model defined in huaweicloud sdk
|
53
|
+
|
54
|
+
:param arch: 使用机器的架构
|
55
|
+
:type arch: str
|
56
|
+
:param project_id: 构建任务所在项目的ID
|
57
|
+
:type project_id: str
|
58
|
+
:param job_name: 任务名称
|
59
|
+
:type job_name: str
|
60
|
+
:param copy_job_id: 构建任务ID
|
61
|
+
:type copy_job_id: str
|
62
|
+
:param auto_update_sub_module: 是否自动更新子模块
|
63
|
+
:type auto_update_sub_module: str
|
64
|
+
:param flavor: 执行机规格
|
65
|
+
:type flavor: str
|
66
|
+
:param parameters: 构建执行参数列表
|
67
|
+
:type parameters: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobParameter`]
|
68
|
+
:param scms: 构建执行SCM
|
69
|
+
:type scms: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobScm`]
|
70
|
+
:param steps: 构建执行的步骤
|
71
|
+
:type steps: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobSteps`]
|
72
|
+
:param host_type: host类型
|
73
|
+
:type host_type: str
|
74
|
+
:param build_config_type: 构建的配置类型
|
75
|
+
:type build_config_type: str
|
76
|
+
:param triggers: 定时任务触发器集合
|
77
|
+
:type triggers: list[:class:`huaweicloudsdkcodeartsbuild.v3.Trigger`]
|
78
|
+
"""
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
self._arch = None
|
83
|
+
self._project_id = None
|
84
|
+
self._job_name = None
|
85
|
+
self._copy_job_id = None
|
86
|
+
self._auto_update_sub_module = None
|
87
|
+
self._flavor = None
|
88
|
+
self._parameters = None
|
89
|
+
self._scms = None
|
90
|
+
self._steps = None
|
91
|
+
self._host_type = None
|
92
|
+
self._build_config_type = None
|
93
|
+
self._triggers = None
|
94
|
+
self.discriminator = None
|
95
|
+
|
96
|
+
self.arch = arch
|
97
|
+
self.project_id = project_id
|
98
|
+
self.job_name = job_name
|
99
|
+
self.copy_job_id = copy_job_id
|
100
|
+
if auto_update_sub_module is not None:
|
101
|
+
self.auto_update_sub_module = auto_update_sub_module
|
102
|
+
if flavor is not None:
|
103
|
+
self.flavor = flavor
|
104
|
+
if parameters is not None:
|
105
|
+
self.parameters = parameters
|
106
|
+
if scms is not None:
|
107
|
+
self.scms = scms
|
108
|
+
self.steps = steps
|
109
|
+
if host_type is not None:
|
110
|
+
self.host_type = host_type
|
111
|
+
if build_config_type is not None:
|
112
|
+
self.build_config_type = build_config_type
|
113
|
+
if triggers is not None:
|
114
|
+
self.triggers = triggers
|
115
|
+
|
116
|
+
@property
|
117
|
+
def arch(self):
|
118
|
+
r"""Gets the arch of this CopyBuildJobRequestBody.
|
119
|
+
|
120
|
+
使用机器的架构
|
121
|
+
|
122
|
+
:return: The arch of this CopyBuildJobRequestBody.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._arch
|
126
|
+
|
127
|
+
@arch.setter
|
128
|
+
def arch(self, arch):
|
129
|
+
r"""Sets the arch of this CopyBuildJobRequestBody.
|
130
|
+
|
131
|
+
使用机器的架构
|
132
|
+
|
133
|
+
:param arch: The arch of this CopyBuildJobRequestBody.
|
134
|
+
:type arch: str
|
135
|
+
"""
|
136
|
+
self._arch = arch
|
137
|
+
|
138
|
+
@property
|
139
|
+
def project_id(self):
|
140
|
+
r"""Gets the project_id of this CopyBuildJobRequestBody.
|
141
|
+
|
142
|
+
构建任务所在项目的ID
|
143
|
+
|
144
|
+
:return: The project_id of this CopyBuildJobRequestBody.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._project_id
|
148
|
+
|
149
|
+
@project_id.setter
|
150
|
+
def project_id(self, project_id):
|
151
|
+
r"""Sets the project_id of this CopyBuildJobRequestBody.
|
152
|
+
|
153
|
+
构建任务所在项目的ID
|
154
|
+
|
155
|
+
:param project_id: The project_id of this CopyBuildJobRequestBody.
|
156
|
+
:type project_id: str
|
157
|
+
"""
|
158
|
+
self._project_id = project_id
|
159
|
+
|
160
|
+
@property
|
161
|
+
def job_name(self):
|
162
|
+
r"""Gets the job_name of this CopyBuildJobRequestBody.
|
163
|
+
|
164
|
+
任务名称
|
165
|
+
|
166
|
+
:return: The job_name of this CopyBuildJobRequestBody.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._job_name
|
170
|
+
|
171
|
+
@job_name.setter
|
172
|
+
def job_name(self, job_name):
|
173
|
+
r"""Sets the job_name of this CopyBuildJobRequestBody.
|
174
|
+
|
175
|
+
任务名称
|
176
|
+
|
177
|
+
:param job_name: The job_name of this CopyBuildJobRequestBody.
|
178
|
+
:type job_name: str
|
179
|
+
"""
|
180
|
+
self._job_name = job_name
|
181
|
+
|
182
|
+
@property
|
183
|
+
def copy_job_id(self):
|
184
|
+
r"""Gets the copy_job_id of this CopyBuildJobRequestBody.
|
185
|
+
|
186
|
+
构建任务ID
|
187
|
+
|
188
|
+
:return: The copy_job_id of this CopyBuildJobRequestBody.
|
189
|
+
:rtype: str
|
190
|
+
"""
|
191
|
+
return self._copy_job_id
|
192
|
+
|
193
|
+
@copy_job_id.setter
|
194
|
+
def copy_job_id(self, copy_job_id):
|
195
|
+
r"""Sets the copy_job_id of this CopyBuildJobRequestBody.
|
196
|
+
|
197
|
+
构建任务ID
|
198
|
+
|
199
|
+
:param copy_job_id: The copy_job_id of this CopyBuildJobRequestBody.
|
200
|
+
:type copy_job_id: str
|
201
|
+
"""
|
202
|
+
self._copy_job_id = copy_job_id
|
203
|
+
|
204
|
+
@property
|
205
|
+
def auto_update_sub_module(self):
|
206
|
+
r"""Gets the auto_update_sub_module of this CopyBuildJobRequestBody.
|
207
|
+
|
208
|
+
是否自动更新子模块
|
209
|
+
|
210
|
+
:return: The auto_update_sub_module of this CopyBuildJobRequestBody.
|
211
|
+
:rtype: str
|
212
|
+
"""
|
213
|
+
return self._auto_update_sub_module
|
214
|
+
|
215
|
+
@auto_update_sub_module.setter
|
216
|
+
def auto_update_sub_module(self, auto_update_sub_module):
|
217
|
+
r"""Sets the auto_update_sub_module of this CopyBuildJobRequestBody.
|
218
|
+
|
219
|
+
是否自动更新子模块
|
220
|
+
|
221
|
+
:param auto_update_sub_module: The auto_update_sub_module of this CopyBuildJobRequestBody.
|
222
|
+
:type auto_update_sub_module: str
|
223
|
+
"""
|
224
|
+
self._auto_update_sub_module = auto_update_sub_module
|
225
|
+
|
226
|
+
@property
|
227
|
+
def flavor(self):
|
228
|
+
r"""Gets the flavor of this CopyBuildJobRequestBody.
|
229
|
+
|
230
|
+
执行机规格
|
231
|
+
|
232
|
+
:return: The flavor of this CopyBuildJobRequestBody.
|
233
|
+
:rtype: str
|
234
|
+
"""
|
235
|
+
return self._flavor
|
236
|
+
|
237
|
+
@flavor.setter
|
238
|
+
def flavor(self, flavor):
|
239
|
+
r"""Sets the flavor of this CopyBuildJobRequestBody.
|
240
|
+
|
241
|
+
执行机规格
|
242
|
+
|
243
|
+
:param flavor: The flavor of this CopyBuildJobRequestBody.
|
244
|
+
:type flavor: str
|
245
|
+
"""
|
246
|
+
self._flavor = flavor
|
247
|
+
|
248
|
+
@property
|
249
|
+
def parameters(self):
|
250
|
+
r"""Gets the parameters of this CopyBuildJobRequestBody.
|
251
|
+
|
252
|
+
构建执行参数列表
|
253
|
+
|
254
|
+
:return: The parameters of this CopyBuildJobRequestBody.
|
255
|
+
:rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobParameter`]
|
256
|
+
"""
|
257
|
+
return self._parameters
|
258
|
+
|
259
|
+
@parameters.setter
|
260
|
+
def parameters(self, parameters):
|
261
|
+
r"""Sets the parameters of this CopyBuildJobRequestBody.
|
262
|
+
|
263
|
+
构建执行参数列表
|
264
|
+
|
265
|
+
:param parameters: The parameters of this CopyBuildJobRequestBody.
|
266
|
+
:type parameters: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobParameter`]
|
267
|
+
"""
|
268
|
+
self._parameters = parameters
|
269
|
+
|
270
|
+
@property
|
271
|
+
def scms(self):
|
272
|
+
r"""Gets the scms of this CopyBuildJobRequestBody.
|
273
|
+
|
274
|
+
构建执行SCM
|
275
|
+
|
276
|
+
:return: The scms of this CopyBuildJobRequestBody.
|
277
|
+
:rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobScm`]
|
278
|
+
"""
|
279
|
+
return self._scms
|
280
|
+
|
281
|
+
@scms.setter
|
282
|
+
def scms(self, scms):
|
283
|
+
r"""Sets the scms of this CopyBuildJobRequestBody.
|
284
|
+
|
285
|
+
构建执行SCM
|
286
|
+
|
287
|
+
:param scms: The scms of this CopyBuildJobRequestBody.
|
288
|
+
:type scms: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobScm`]
|
289
|
+
"""
|
290
|
+
self._scms = scms
|
291
|
+
|
292
|
+
@property
|
293
|
+
def steps(self):
|
294
|
+
r"""Gets the steps of this CopyBuildJobRequestBody.
|
295
|
+
|
296
|
+
构建执行的步骤
|
297
|
+
|
298
|
+
:return: The steps of this CopyBuildJobRequestBody.
|
299
|
+
:rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobSteps`]
|
300
|
+
"""
|
301
|
+
return self._steps
|
302
|
+
|
303
|
+
@steps.setter
|
304
|
+
def steps(self, steps):
|
305
|
+
r"""Sets the steps of this CopyBuildJobRequestBody.
|
306
|
+
|
307
|
+
构建执行的步骤
|
308
|
+
|
309
|
+
:param steps: The steps of this CopyBuildJobRequestBody.
|
310
|
+
:type steps: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobSteps`]
|
311
|
+
"""
|
312
|
+
self._steps = steps
|
313
|
+
|
314
|
+
@property
|
315
|
+
def host_type(self):
|
316
|
+
r"""Gets the host_type of this CopyBuildJobRequestBody.
|
317
|
+
|
318
|
+
host类型
|
319
|
+
|
320
|
+
:return: The host_type of this CopyBuildJobRequestBody.
|
321
|
+
:rtype: str
|
322
|
+
"""
|
323
|
+
return self._host_type
|
324
|
+
|
325
|
+
@host_type.setter
|
326
|
+
def host_type(self, host_type):
|
327
|
+
r"""Sets the host_type of this CopyBuildJobRequestBody.
|
328
|
+
|
329
|
+
host类型
|
330
|
+
|
331
|
+
:param host_type: The host_type of this CopyBuildJobRequestBody.
|
332
|
+
:type host_type: str
|
333
|
+
"""
|
334
|
+
self._host_type = host_type
|
335
|
+
|
336
|
+
@property
|
337
|
+
def build_config_type(self):
|
338
|
+
r"""Gets the build_config_type of this CopyBuildJobRequestBody.
|
339
|
+
|
340
|
+
构建的配置类型
|
341
|
+
|
342
|
+
:return: The build_config_type of this CopyBuildJobRequestBody.
|
343
|
+
:rtype: str
|
344
|
+
"""
|
345
|
+
return self._build_config_type
|
346
|
+
|
347
|
+
@build_config_type.setter
|
348
|
+
def build_config_type(self, build_config_type):
|
349
|
+
r"""Sets the build_config_type of this CopyBuildJobRequestBody.
|
350
|
+
|
351
|
+
构建的配置类型
|
352
|
+
|
353
|
+
:param build_config_type: The build_config_type of this CopyBuildJobRequestBody.
|
354
|
+
:type build_config_type: str
|
355
|
+
"""
|
356
|
+
self._build_config_type = build_config_type
|
357
|
+
|
358
|
+
@property
|
359
|
+
def triggers(self):
|
360
|
+
r"""Gets the triggers of this CopyBuildJobRequestBody.
|
361
|
+
|
362
|
+
定时任务触发器集合
|
363
|
+
|
364
|
+
:return: The triggers of this CopyBuildJobRequestBody.
|
365
|
+
:rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.Trigger`]
|
366
|
+
"""
|
367
|
+
return self._triggers
|
368
|
+
|
369
|
+
@triggers.setter
|
370
|
+
def triggers(self, triggers):
|
371
|
+
r"""Sets the triggers of this CopyBuildJobRequestBody.
|
372
|
+
|
373
|
+
定时任务触发器集合
|
374
|
+
|
375
|
+
:param triggers: The triggers of this CopyBuildJobRequestBody.
|
376
|
+
:type triggers: list[:class:`huaweicloudsdkcodeartsbuild.v3.Trigger`]
|
377
|
+
"""
|
378
|
+
self._triggers = triggers
|
379
|
+
|
380
|
+
def to_dict(self):
|
381
|
+
"""Returns the model properties as a dict"""
|
382
|
+
result = {}
|
383
|
+
|
384
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
385
|
+
value = getattr(self, attr)
|
386
|
+
if isinstance(value, list):
|
387
|
+
result[attr] = list(map(
|
388
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
389
|
+
value
|
390
|
+
))
|
391
|
+
elif hasattr(value, "to_dict"):
|
392
|
+
result[attr] = value.to_dict()
|
393
|
+
elif isinstance(value, dict):
|
394
|
+
result[attr] = dict(map(
|
395
|
+
lambda item: (item[0], item[1].to_dict())
|
396
|
+
if hasattr(item[1], "to_dict") else item,
|
397
|
+
value.items()
|
398
|
+
))
|
399
|
+
else:
|
400
|
+
if attr in self.sensitive_list:
|
401
|
+
result[attr] = "****"
|
402
|
+
else:
|
403
|
+
result[attr] = value
|
404
|
+
|
405
|
+
return result
|
406
|
+
|
407
|
+
def to_str(self):
|
408
|
+
"""Returns the string representation of the model"""
|
409
|
+
import simplejson as json
|
410
|
+
if six.PY2:
|
411
|
+
import sys
|
412
|
+
reload(sys)
|
413
|
+
sys.setdefaultencoding("utf-8")
|
414
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
415
|
+
|
416
|
+
def __repr__(self):
|
417
|
+
"""For `print`"""
|
418
|
+
return self.to_str()
|
419
|
+
|
420
|
+
def __eq__(self, other):
|
421
|
+
"""Returns true if both objects are equal"""
|
422
|
+
if not isinstance(other, CopyBuildJobRequestBody):
|
423
|
+
return False
|
424
|
+
|
425
|
+
return self.__dict__ == other.__dict__
|
426
|
+
|
427
|
+
def __ne__(self, other):
|
428
|
+
"""Returns true if both objects are not equal"""
|
429
|
+
return not self == other
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CopyJobRequest:
|
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
|
+
'body': 'CopyBuildJobRequestBody'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""CopyJobRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CopyJobRequest
|
33
|
+
:type body: :class:`huaweicloudsdkcodeartsbuild.v3.CopyBuildJobRequestBody`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this CopyJobRequest.
|
47
|
+
|
48
|
+
:return: The body of this CopyJobRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CopyBuildJobRequestBody`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this CopyJobRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CopyJobRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkcodeartsbuild.v3.CopyBuildJobRequestBody`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, CopyJobRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
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 CopyJobResponse(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': 'CreateBuildJobResponseBodyResult',
|
22
|
+
'status': 'str',
|
23
|
+
'error': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'result': 'result',
|
28
|
+
'status': 'status',
|
29
|
+
'error': 'error'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, result=None, status=None, error=None):
|
33
|
+
r"""CopyJobResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param result:
|
38
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobResponseBodyResult`
|
39
|
+
:param status: 状态信息
|
40
|
+
:type status: str
|
41
|
+
:param error: 错误信息
|
42
|
+
:type error: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(CopyJobResponse, self).__init__()
|
46
|
+
|
47
|
+
self._result = None
|
48
|
+
self._status = None
|
49
|
+
self._error = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if result is not None:
|
53
|
+
self.result = result
|
54
|
+
if status is not None:
|
55
|
+
self.status = status
|
56
|
+
if error is not None:
|
57
|
+
self.error = error
|
58
|
+
|
59
|
+
@property
|
60
|
+
def result(self):
|
61
|
+
r"""Gets the result of this CopyJobResponse.
|
62
|
+
|
63
|
+
:return: The result of this CopyJobResponse.
|
64
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobResponseBodyResult`
|
65
|
+
"""
|
66
|
+
return self._result
|
67
|
+
|
68
|
+
@result.setter
|
69
|
+
def result(self, result):
|
70
|
+
r"""Sets the result of this CopyJobResponse.
|
71
|
+
|
72
|
+
:param result: The result of this CopyJobResponse.
|
73
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobResponseBodyResult`
|
74
|
+
"""
|
75
|
+
self._result = result
|
76
|
+
|
77
|
+
@property
|
78
|
+
def status(self):
|
79
|
+
r"""Gets the status of this CopyJobResponse.
|
80
|
+
|
81
|
+
状态信息
|
82
|
+
|
83
|
+
:return: The status of this CopyJobResponse.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._status
|
87
|
+
|
88
|
+
@status.setter
|
89
|
+
def status(self, status):
|
90
|
+
r"""Sets the status of this CopyJobResponse.
|
91
|
+
|
92
|
+
状态信息
|
93
|
+
|
94
|
+
:param status: The status of this CopyJobResponse.
|
95
|
+
:type status: str
|
96
|
+
"""
|
97
|
+
self._status = status
|
98
|
+
|
99
|
+
@property
|
100
|
+
def error(self):
|
101
|
+
r"""Gets the error of this CopyJobResponse.
|
102
|
+
|
103
|
+
错误信息
|
104
|
+
|
105
|
+
:return: The error of this CopyJobResponse.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._error
|
109
|
+
|
110
|
+
@error.setter
|
111
|
+
def error(self, error):
|
112
|
+
r"""Sets the error of this CopyJobResponse.
|
113
|
+
|
114
|
+
错误信息
|
115
|
+
|
116
|
+
:param error: The error of this CopyJobResponse.
|
117
|
+
:type error: str
|
118
|
+
"""
|
119
|
+
self._error = error
|
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, CopyJobResponse):
|
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
|