huaweicloudsdkvas 3.1.160__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.
- huaweicloudsdkvas/__init__.py +0 -0
- huaweicloudsdkvas/v2/__init__.py +46 -0
- huaweicloudsdkvas/v2/model/__init__.py +43 -0
- huaweicloudsdkvas/v2/model/create_response_body.py +114 -0
- huaweicloudsdkvas/v2/model/create_tasks_request.py +139 -0
- huaweicloudsdkvas/v2/model/create_tasks_request_body.py +327 -0
- huaweicloudsdkvas/v2/model/create_tasks_response.py +112 -0
- huaweicloudsdkvas/v2/model/delete_task_request.py +142 -0
- huaweicloudsdkvas/v2/model/delete_task_response.py +85 -0
- huaweicloudsdkvas/v2/model/list_tasks_details_request.py +375 -0
- huaweicloudsdkvas/v2/model/list_tasks_details_response.py +145 -0
- huaweicloudsdkvas/v2/model/show_task_request.py +142 -0
- huaweicloudsdkvas/v2/model/show_task_response.py +656 -0
- huaweicloudsdkvas/v2/model/start_task_request.py +142 -0
- huaweicloudsdkvas/v2/model/start_task_response.py +85 -0
- huaweicloudsdkvas/v2/model/stop_task_request.py +142 -0
- huaweicloudsdkvas/v2/model/stop_task_response.py +85 -0
- huaweicloudsdkvas/v2/model/task_details.py +630 -0
- huaweicloudsdkvas/v2/model/task_details_error.py +142 -0
- huaweicloudsdkvas/v2/model/task_details_service_title.py +144 -0
- huaweicloudsdkvas/v2/model/task_hosting_result.py +111 -0
- huaweicloudsdkvas/v2/model/task_hosting_result_hosting_result.py +202 -0
- huaweicloudsdkvas/v2/model/task_input.py +167 -0
- huaweicloudsdkvas/v2/model/task_input_data.py +405 -0
- huaweicloudsdkvas/v2/model/task_input_vcn.py +198 -0
- huaweicloudsdkvas/v2/model/task_output.py +211 -0
- huaweicloudsdkvas/v2/model/task_output_dis.py +143 -0
- huaweicloudsdkvas/v2/model/task_output_for_display.py +211 -0
- huaweicloudsdkvas/v2/model/task_output_hosting.py +115 -0
- huaweicloudsdkvas/v2/model/task_output_hosting_for_display.py +173 -0
- huaweicloudsdkvas/v2/model/task_output_hosting_for_display_obs.py +144 -0
- huaweicloudsdkvas/v2/model/task_output_localpath.py +143 -0
- huaweicloudsdkvas/v2/model/task_output_obs.py +171 -0
- huaweicloudsdkvas/v2/model/task_output_webhook.py +171 -0
- huaweicloudsdkvas/v2/model/task_service_config.py +115 -0
- huaweicloudsdkvas/v2/model/task_timing.py +283 -0
- huaweicloudsdkvas/v2/model/task_timing_frequency.py +200 -0
- huaweicloudsdkvas/v2/model/task_timing_periods.py +144 -0
- huaweicloudsdkvas/v2/model/update_task_request.py +167 -0
- huaweicloudsdkvas/v2/model/update_task_request_body.py +244 -0
- huaweicloudsdkvas/v2/model/update_task_response.py +631 -0
- huaweicloudsdkvas/v2/region/__init__.py +0 -0
- huaweicloudsdkvas/v2/region/vas_region.py +52 -0
- huaweicloudsdkvas/v2/vas_async_client.py +570 -0
- huaweicloudsdkvas/v2/vas_client.py +567 -0
- huaweicloudsdkvas-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkvas-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkvas-3.1.160.dist-info/RECORD +50 -0
- huaweicloudsdkvas-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkvas-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,630 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class TaskDetails:
|
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
|
+
'id': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'creator': 'str',
|
23
|
+
'project_id': 'str',
|
24
|
+
'description': 'str',
|
25
|
+
'service_name': 'str',
|
26
|
+
'service_version': 'str',
|
27
|
+
'service_title': 'TaskDetailsServiceTitle',
|
28
|
+
'edge_pool_id': 'str',
|
29
|
+
'resource_order_id': 'str',
|
30
|
+
'created_at': 'datetime',
|
31
|
+
'updated_at': 'datetime',
|
32
|
+
'state': 'str',
|
33
|
+
'status': 'str',
|
34
|
+
'error': 'TaskDetailsError',
|
35
|
+
'timing_status': 'str',
|
36
|
+
'timing': 'TaskTiming',
|
37
|
+
'input': 'TaskInput',
|
38
|
+
'output': 'TaskOutputForDisplay',
|
39
|
+
'service_config': 'TaskServiceConfig'
|
40
|
+
}
|
41
|
+
|
42
|
+
attribute_map = {
|
43
|
+
'id': 'id',
|
44
|
+
'name': 'name',
|
45
|
+
'creator': 'creator',
|
46
|
+
'project_id': 'project_id',
|
47
|
+
'description': 'description',
|
48
|
+
'service_name': 'service_name',
|
49
|
+
'service_version': 'service_version',
|
50
|
+
'service_title': 'service_title',
|
51
|
+
'edge_pool_id': 'edge_pool_id',
|
52
|
+
'resource_order_id': 'resource_order_id',
|
53
|
+
'created_at': 'created_at',
|
54
|
+
'updated_at': 'updated_at',
|
55
|
+
'state': 'state',
|
56
|
+
'status': 'status',
|
57
|
+
'error': 'error',
|
58
|
+
'timing_status': 'timing_status',
|
59
|
+
'timing': 'timing',
|
60
|
+
'input': 'input',
|
61
|
+
'output': 'output',
|
62
|
+
'service_config': 'service_config'
|
63
|
+
}
|
64
|
+
|
65
|
+
def __init__(self, id=None, name=None, creator=None, project_id=None, description=None, service_name=None, service_version=None, service_title=None, edge_pool_id=None, resource_order_id=None, created_at=None, updated_at=None, state=None, status=None, error=None, timing_status=None, timing=None, input=None, output=None, service_config=None):
|
66
|
+
r"""TaskDetails
|
67
|
+
|
68
|
+
The model defined in huaweicloud sdk
|
69
|
+
|
70
|
+
:param id: 作业ID
|
71
|
+
:type id: str
|
72
|
+
:param name: 作业的名称
|
73
|
+
:type name: str
|
74
|
+
:param creator: 作业创建者的用户名
|
75
|
+
:type creator: str
|
76
|
+
:param project_id: 作业创建者的项目ID
|
77
|
+
:type project_id: str
|
78
|
+
:param description: 作业的描述
|
79
|
+
:type description: str
|
80
|
+
:param service_name: 作业对应服务的名称
|
81
|
+
:type service_name: str
|
82
|
+
:param service_version: 作业对应服务的版本号
|
83
|
+
:type service_version: str
|
84
|
+
:param service_title:
|
85
|
+
:type service_title: :class:`huaweicloudsdkvas.v2.TaskDetailsServiceTitle`
|
86
|
+
:param edge_pool_id: 仅边缘作业会出现,作业运行所在的边缘运行池ID
|
87
|
+
:type edge_pool_id: str
|
88
|
+
:param resource_order_id: 作业指定的算法能力包包周期订单ID
|
89
|
+
:type resource_order_id: str
|
90
|
+
:param created_at: 作业创建的时间
|
91
|
+
:type created_at: datetime
|
92
|
+
:param updated_at: 作业最近一次状态更新的时间
|
93
|
+
:type updated_at: datetime
|
94
|
+
:param state: 作业当前的状态,分别为PENDING(等待中),RECOVERING(恢复中),STARTING(启动中),UPGRADING(升级中),CREATE_FAILED(创建失败),START_FAILED(启动失败),RUNNING(运行中),STOPPING(停止中),STOPPED(已停止),ABNORMAL(异常),SUCCEEDED(运行成功),FAILED(运行失败),DELETING(删除中),FREEZING(冻结中),FROZEN(已冻结)
|
95
|
+
:type state: str
|
96
|
+
:param status: 作业状态的详情信息,仅部分状态会有详情信息
|
97
|
+
:type status: str
|
98
|
+
:param error:
|
99
|
+
:type error: :class:`huaweicloudsdkvas.v2.TaskDetailsError`
|
100
|
+
:param timing_status: 计划任务的状态,分别为ACTIVATED(激活),INACTIVATED(未激活)
|
101
|
+
:type timing_status: str
|
102
|
+
:param timing:
|
103
|
+
:type timing: :class:`huaweicloudsdkvas.v2.TaskTiming`
|
104
|
+
:param input:
|
105
|
+
:type input: :class:`huaweicloudsdkvas.v2.TaskInput`
|
106
|
+
:param output:
|
107
|
+
:type output: :class:`huaweicloudsdkvas.v2.TaskOutputForDisplay`
|
108
|
+
:param service_config:
|
109
|
+
:type service_config: :class:`huaweicloudsdkvas.v2.TaskServiceConfig`
|
110
|
+
"""
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
self._id = None
|
115
|
+
self._name = None
|
116
|
+
self._creator = None
|
117
|
+
self._project_id = None
|
118
|
+
self._description = None
|
119
|
+
self._service_name = None
|
120
|
+
self._service_version = None
|
121
|
+
self._service_title = None
|
122
|
+
self._edge_pool_id = None
|
123
|
+
self._resource_order_id = None
|
124
|
+
self._created_at = None
|
125
|
+
self._updated_at = None
|
126
|
+
self._state = None
|
127
|
+
self._status = None
|
128
|
+
self._error = None
|
129
|
+
self._timing_status = None
|
130
|
+
self._timing = None
|
131
|
+
self._input = None
|
132
|
+
self._output = None
|
133
|
+
self._service_config = None
|
134
|
+
self.discriminator = None
|
135
|
+
|
136
|
+
self.id = id
|
137
|
+
self.name = name
|
138
|
+
self.creator = creator
|
139
|
+
self.project_id = project_id
|
140
|
+
if description is not None:
|
141
|
+
self.description = description
|
142
|
+
self.service_name = service_name
|
143
|
+
self.service_version = service_version
|
144
|
+
self.service_title = service_title
|
145
|
+
if edge_pool_id is not None:
|
146
|
+
self.edge_pool_id = edge_pool_id
|
147
|
+
if resource_order_id is not None:
|
148
|
+
self.resource_order_id = resource_order_id
|
149
|
+
self.created_at = created_at
|
150
|
+
self.updated_at = updated_at
|
151
|
+
self.state = state
|
152
|
+
if status is not None:
|
153
|
+
self.status = status
|
154
|
+
if error is not None:
|
155
|
+
self.error = error
|
156
|
+
if timing_status is not None:
|
157
|
+
self.timing_status = timing_status
|
158
|
+
if timing is not None:
|
159
|
+
self.timing = timing
|
160
|
+
self.input = input
|
161
|
+
self.output = output
|
162
|
+
if service_config is not None:
|
163
|
+
self.service_config = service_config
|
164
|
+
|
165
|
+
@property
|
166
|
+
def id(self):
|
167
|
+
r"""Gets the id of this TaskDetails.
|
168
|
+
|
169
|
+
作业ID
|
170
|
+
|
171
|
+
:return: The id of this TaskDetails.
|
172
|
+
:rtype: str
|
173
|
+
"""
|
174
|
+
return self._id
|
175
|
+
|
176
|
+
@id.setter
|
177
|
+
def id(self, id):
|
178
|
+
r"""Sets the id of this TaskDetails.
|
179
|
+
|
180
|
+
作业ID
|
181
|
+
|
182
|
+
:param id: The id of this TaskDetails.
|
183
|
+
:type id: str
|
184
|
+
"""
|
185
|
+
self._id = id
|
186
|
+
|
187
|
+
@property
|
188
|
+
def name(self):
|
189
|
+
r"""Gets the name of this TaskDetails.
|
190
|
+
|
191
|
+
作业的名称
|
192
|
+
|
193
|
+
:return: The name of this TaskDetails.
|
194
|
+
:rtype: str
|
195
|
+
"""
|
196
|
+
return self._name
|
197
|
+
|
198
|
+
@name.setter
|
199
|
+
def name(self, name):
|
200
|
+
r"""Sets the name of this TaskDetails.
|
201
|
+
|
202
|
+
作业的名称
|
203
|
+
|
204
|
+
:param name: The name of this TaskDetails.
|
205
|
+
:type name: str
|
206
|
+
"""
|
207
|
+
self._name = name
|
208
|
+
|
209
|
+
@property
|
210
|
+
def creator(self):
|
211
|
+
r"""Gets the creator of this TaskDetails.
|
212
|
+
|
213
|
+
作业创建者的用户名
|
214
|
+
|
215
|
+
:return: The creator of this TaskDetails.
|
216
|
+
:rtype: str
|
217
|
+
"""
|
218
|
+
return self._creator
|
219
|
+
|
220
|
+
@creator.setter
|
221
|
+
def creator(self, creator):
|
222
|
+
r"""Sets the creator of this TaskDetails.
|
223
|
+
|
224
|
+
作业创建者的用户名
|
225
|
+
|
226
|
+
:param creator: The creator of this TaskDetails.
|
227
|
+
:type creator: str
|
228
|
+
"""
|
229
|
+
self._creator = creator
|
230
|
+
|
231
|
+
@property
|
232
|
+
def project_id(self):
|
233
|
+
r"""Gets the project_id of this TaskDetails.
|
234
|
+
|
235
|
+
作业创建者的项目ID
|
236
|
+
|
237
|
+
:return: The project_id of this TaskDetails.
|
238
|
+
:rtype: str
|
239
|
+
"""
|
240
|
+
return self._project_id
|
241
|
+
|
242
|
+
@project_id.setter
|
243
|
+
def project_id(self, project_id):
|
244
|
+
r"""Sets the project_id of this TaskDetails.
|
245
|
+
|
246
|
+
作业创建者的项目ID
|
247
|
+
|
248
|
+
:param project_id: The project_id of this TaskDetails.
|
249
|
+
:type project_id: str
|
250
|
+
"""
|
251
|
+
self._project_id = project_id
|
252
|
+
|
253
|
+
@property
|
254
|
+
def description(self):
|
255
|
+
r"""Gets the description of this TaskDetails.
|
256
|
+
|
257
|
+
作业的描述
|
258
|
+
|
259
|
+
:return: The description of this TaskDetails.
|
260
|
+
:rtype: str
|
261
|
+
"""
|
262
|
+
return self._description
|
263
|
+
|
264
|
+
@description.setter
|
265
|
+
def description(self, description):
|
266
|
+
r"""Sets the description of this TaskDetails.
|
267
|
+
|
268
|
+
作业的描述
|
269
|
+
|
270
|
+
:param description: The description of this TaskDetails.
|
271
|
+
:type description: str
|
272
|
+
"""
|
273
|
+
self._description = description
|
274
|
+
|
275
|
+
@property
|
276
|
+
def service_name(self):
|
277
|
+
r"""Gets the service_name of this TaskDetails.
|
278
|
+
|
279
|
+
作业对应服务的名称
|
280
|
+
|
281
|
+
:return: The service_name of this TaskDetails.
|
282
|
+
:rtype: str
|
283
|
+
"""
|
284
|
+
return self._service_name
|
285
|
+
|
286
|
+
@service_name.setter
|
287
|
+
def service_name(self, service_name):
|
288
|
+
r"""Sets the service_name of this TaskDetails.
|
289
|
+
|
290
|
+
作业对应服务的名称
|
291
|
+
|
292
|
+
:param service_name: The service_name of this TaskDetails.
|
293
|
+
:type service_name: str
|
294
|
+
"""
|
295
|
+
self._service_name = service_name
|
296
|
+
|
297
|
+
@property
|
298
|
+
def service_version(self):
|
299
|
+
r"""Gets the service_version of this TaskDetails.
|
300
|
+
|
301
|
+
作业对应服务的版本号
|
302
|
+
|
303
|
+
:return: The service_version of this TaskDetails.
|
304
|
+
:rtype: str
|
305
|
+
"""
|
306
|
+
return self._service_version
|
307
|
+
|
308
|
+
@service_version.setter
|
309
|
+
def service_version(self, service_version):
|
310
|
+
r"""Sets the service_version of this TaskDetails.
|
311
|
+
|
312
|
+
作业对应服务的版本号
|
313
|
+
|
314
|
+
:param service_version: The service_version of this TaskDetails.
|
315
|
+
:type service_version: str
|
316
|
+
"""
|
317
|
+
self._service_version = service_version
|
318
|
+
|
319
|
+
@property
|
320
|
+
def service_title(self):
|
321
|
+
r"""Gets the service_title of this TaskDetails.
|
322
|
+
|
323
|
+
:return: The service_title of this TaskDetails.
|
324
|
+
:rtype: :class:`huaweicloudsdkvas.v2.TaskDetailsServiceTitle`
|
325
|
+
"""
|
326
|
+
return self._service_title
|
327
|
+
|
328
|
+
@service_title.setter
|
329
|
+
def service_title(self, service_title):
|
330
|
+
r"""Sets the service_title of this TaskDetails.
|
331
|
+
|
332
|
+
:param service_title: The service_title of this TaskDetails.
|
333
|
+
:type service_title: :class:`huaweicloudsdkvas.v2.TaskDetailsServiceTitle`
|
334
|
+
"""
|
335
|
+
self._service_title = service_title
|
336
|
+
|
337
|
+
@property
|
338
|
+
def edge_pool_id(self):
|
339
|
+
r"""Gets the edge_pool_id of this TaskDetails.
|
340
|
+
|
341
|
+
仅边缘作业会出现,作业运行所在的边缘运行池ID
|
342
|
+
|
343
|
+
:return: The edge_pool_id of this TaskDetails.
|
344
|
+
:rtype: str
|
345
|
+
"""
|
346
|
+
return self._edge_pool_id
|
347
|
+
|
348
|
+
@edge_pool_id.setter
|
349
|
+
def edge_pool_id(self, edge_pool_id):
|
350
|
+
r"""Sets the edge_pool_id of this TaskDetails.
|
351
|
+
|
352
|
+
仅边缘作业会出现,作业运行所在的边缘运行池ID
|
353
|
+
|
354
|
+
:param edge_pool_id: The edge_pool_id of this TaskDetails.
|
355
|
+
:type edge_pool_id: str
|
356
|
+
"""
|
357
|
+
self._edge_pool_id = edge_pool_id
|
358
|
+
|
359
|
+
@property
|
360
|
+
def resource_order_id(self):
|
361
|
+
r"""Gets the resource_order_id of this TaskDetails.
|
362
|
+
|
363
|
+
作业指定的算法能力包包周期订单ID
|
364
|
+
|
365
|
+
:return: The resource_order_id of this TaskDetails.
|
366
|
+
:rtype: str
|
367
|
+
"""
|
368
|
+
return self._resource_order_id
|
369
|
+
|
370
|
+
@resource_order_id.setter
|
371
|
+
def resource_order_id(self, resource_order_id):
|
372
|
+
r"""Sets the resource_order_id of this TaskDetails.
|
373
|
+
|
374
|
+
作业指定的算法能力包包周期订单ID
|
375
|
+
|
376
|
+
:param resource_order_id: The resource_order_id of this TaskDetails.
|
377
|
+
:type resource_order_id: str
|
378
|
+
"""
|
379
|
+
self._resource_order_id = resource_order_id
|
380
|
+
|
381
|
+
@property
|
382
|
+
def created_at(self):
|
383
|
+
r"""Gets the created_at of this TaskDetails.
|
384
|
+
|
385
|
+
作业创建的时间
|
386
|
+
|
387
|
+
:return: The created_at of this TaskDetails.
|
388
|
+
:rtype: datetime
|
389
|
+
"""
|
390
|
+
return self._created_at
|
391
|
+
|
392
|
+
@created_at.setter
|
393
|
+
def created_at(self, created_at):
|
394
|
+
r"""Sets the created_at of this TaskDetails.
|
395
|
+
|
396
|
+
作业创建的时间
|
397
|
+
|
398
|
+
:param created_at: The created_at of this TaskDetails.
|
399
|
+
:type created_at: datetime
|
400
|
+
"""
|
401
|
+
self._created_at = created_at
|
402
|
+
|
403
|
+
@property
|
404
|
+
def updated_at(self):
|
405
|
+
r"""Gets the updated_at of this TaskDetails.
|
406
|
+
|
407
|
+
作业最近一次状态更新的时间
|
408
|
+
|
409
|
+
:return: The updated_at of this TaskDetails.
|
410
|
+
:rtype: datetime
|
411
|
+
"""
|
412
|
+
return self._updated_at
|
413
|
+
|
414
|
+
@updated_at.setter
|
415
|
+
def updated_at(self, updated_at):
|
416
|
+
r"""Sets the updated_at of this TaskDetails.
|
417
|
+
|
418
|
+
作业最近一次状态更新的时间
|
419
|
+
|
420
|
+
:param updated_at: The updated_at of this TaskDetails.
|
421
|
+
:type updated_at: datetime
|
422
|
+
"""
|
423
|
+
self._updated_at = updated_at
|
424
|
+
|
425
|
+
@property
|
426
|
+
def state(self):
|
427
|
+
r"""Gets the state of this TaskDetails.
|
428
|
+
|
429
|
+
作业当前的状态,分别为PENDING(等待中),RECOVERING(恢复中),STARTING(启动中),UPGRADING(升级中),CREATE_FAILED(创建失败),START_FAILED(启动失败),RUNNING(运行中),STOPPING(停止中),STOPPED(已停止),ABNORMAL(异常),SUCCEEDED(运行成功),FAILED(运行失败),DELETING(删除中),FREEZING(冻结中),FROZEN(已冻结)
|
430
|
+
|
431
|
+
:return: The state of this TaskDetails.
|
432
|
+
:rtype: str
|
433
|
+
"""
|
434
|
+
return self._state
|
435
|
+
|
436
|
+
@state.setter
|
437
|
+
def state(self, state):
|
438
|
+
r"""Sets the state of this TaskDetails.
|
439
|
+
|
440
|
+
作业当前的状态,分别为PENDING(等待中),RECOVERING(恢复中),STARTING(启动中),UPGRADING(升级中),CREATE_FAILED(创建失败),START_FAILED(启动失败),RUNNING(运行中),STOPPING(停止中),STOPPED(已停止),ABNORMAL(异常),SUCCEEDED(运行成功),FAILED(运行失败),DELETING(删除中),FREEZING(冻结中),FROZEN(已冻结)
|
441
|
+
|
442
|
+
:param state: The state of this TaskDetails.
|
443
|
+
:type state: str
|
444
|
+
"""
|
445
|
+
self._state = state
|
446
|
+
|
447
|
+
@property
|
448
|
+
def status(self):
|
449
|
+
r"""Gets the status of this TaskDetails.
|
450
|
+
|
451
|
+
作业状态的详情信息,仅部分状态会有详情信息
|
452
|
+
|
453
|
+
:return: The status of this TaskDetails.
|
454
|
+
:rtype: str
|
455
|
+
"""
|
456
|
+
return self._status
|
457
|
+
|
458
|
+
@status.setter
|
459
|
+
def status(self, status):
|
460
|
+
r"""Sets the status of this TaskDetails.
|
461
|
+
|
462
|
+
作业状态的详情信息,仅部分状态会有详情信息
|
463
|
+
|
464
|
+
:param status: The status of this TaskDetails.
|
465
|
+
:type status: str
|
466
|
+
"""
|
467
|
+
self._status = status
|
468
|
+
|
469
|
+
@property
|
470
|
+
def error(self):
|
471
|
+
r"""Gets the error of this TaskDetails.
|
472
|
+
|
473
|
+
:return: The error of this TaskDetails.
|
474
|
+
:rtype: :class:`huaweicloudsdkvas.v2.TaskDetailsError`
|
475
|
+
"""
|
476
|
+
return self._error
|
477
|
+
|
478
|
+
@error.setter
|
479
|
+
def error(self, error):
|
480
|
+
r"""Sets the error of this TaskDetails.
|
481
|
+
|
482
|
+
:param error: The error of this TaskDetails.
|
483
|
+
:type error: :class:`huaweicloudsdkvas.v2.TaskDetailsError`
|
484
|
+
"""
|
485
|
+
self._error = error
|
486
|
+
|
487
|
+
@property
|
488
|
+
def timing_status(self):
|
489
|
+
r"""Gets the timing_status of this TaskDetails.
|
490
|
+
|
491
|
+
计划任务的状态,分别为ACTIVATED(激活),INACTIVATED(未激活)
|
492
|
+
|
493
|
+
:return: The timing_status of this TaskDetails.
|
494
|
+
:rtype: str
|
495
|
+
"""
|
496
|
+
return self._timing_status
|
497
|
+
|
498
|
+
@timing_status.setter
|
499
|
+
def timing_status(self, timing_status):
|
500
|
+
r"""Sets the timing_status of this TaskDetails.
|
501
|
+
|
502
|
+
计划任务的状态,分别为ACTIVATED(激活),INACTIVATED(未激活)
|
503
|
+
|
504
|
+
:param timing_status: The timing_status of this TaskDetails.
|
505
|
+
:type timing_status: str
|
506
|
+
"""
|
507
|
+
self._timing_status = timing_status
|
508
|
+
|
509
|
+
@property
|
510
|
+
def timing(self):
|
511
|
+
r"""Gets the timing of this TaskDetails.
|
512
|
+
|
513
|
+
:return: The timing of this TaskDetails.
|
514
|
+
:rtype: :class:`huaweicloudsdkvas.v2.TaskTiming`
|
515
|
+
"""
|
516
|
+
return self._timing
|
517
|
+
|
518
|
+
@timing.setter
|
519
|
+
def timing(self, timing):
|
520
|
+
r"""Sets the timing of this TaskDetails.
|
521
|
+
|
522
|
+
:param timing: The timing of this TaskDetails.
|
523
|
+
:type timing: :class:`huaweicloudsdkvas.v2.TaskTiming`
|
524
|
+
"""
|
525
|
+
self._timing = timing
|
526
|
+
|
527
|
+
@property
|
528
|
+
def input(self):
|
529
|
+
r"""Gets the input of this TaskDetails.
|
530
|
+
|
531
|
+
:return: The input of this TaskDetails.
|
532
|
+
:rtype: :class:`huaweicloudsdkvas.v2.TaskInput`
|
533
|
+
"""
|
534
|
+
return self._input
|
535
|
+
|
536
|
+
@input.setter
|
537
|
+
def input(self, input):
|
538
|
+
r"""Sets the input of this TaskDetails.
|
539
|
+
|
540
|
+
:param input: The input of this TaskDetails.
|
541
|
+
:type input: :class:`huaweicloudsdkvas.v2.TaskInput`
|
542
|
+
"""
|
543
|
+
self._input = input
|
544
|
+
|
545
|
+
@property
|
546
|
+
def output(self):
|
547
|
+
r"""Gets the output of this TaskDetails.
|
548
|
+
|
549
|
+
:return: The output of this TaskDetails.
|
550
|
+
:rtype: :class:`huaweicloudsdkvas.v2.TaskOutputForDisplay`
|
551
|
+
"""
|
552
|
+
return self._output
|
553
|
+
|
554
|
+
@output.setter
|
555
|
+
def output(self, output):
|
556
|
+
r"""Sets the output of this TaskDetails.
|
557
|
+
|
558
|
+
:param output: The output of this TaskDetails.
|
559
|
+
:type output: :class:`huaweicloudsdkvas.v2.TaskOutputForDisplay`
|
560
|
+
"""
|
561
|
+
self._output = output
|
562
|
+
|
563
|
+
@property
|
564
|
+
def service_config(self):
|
565
|
+
r"""Gets the service_config of this TaskDetails.
|
566
|
+
|
567
|
+
:return: The service_config of this TaskDetails.
|
568
|
+
:rtype: :class:`huaweicloudsdkvas.v2.TaskServiceConfig`
|
569
|
+
"""
|
570
|
+
return self._service_config
|
571
|
+
|
572
|
+
@service_config.setter
|
573
|
+
def service_config(self, service_config):
|
574
|
+
r"""Sets the service_config of this TaskDetails.
|
575
|
+
|
576
|
+
:param service_config: The service_config of this TaskDetails.
|
577
|
+
:type service_config: :class:`huaweicloudsdkvas.v2.TaskServiceConfig`
|
578
|
+
"""
|
579
|
+
self._service_config = service_config
|
580
|
+
|
581
|
+
def to_dict(self):
|
582
|
+
"""Returns the model properties as a dict"""
|
583
|
+
result = {}
|
584
|
+
|
585
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
586
|
+
value = getattr(self, attr)
|
587
|
+
if isinstance(value, list):
|
588
|
+
result[attr] = list(map(
|
589
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
590
|
+
value
|
591
|
+
))
|
592
|
+
elif hasattr(value, "to_dict"):
|
593
|
+
result[attr] = value.to_dict()
|
594
|
+
elif isinstance(value, dict):
|
595
|
+
result[attr] = dict(map(
|
596
|
+
lambda item: (item[0], item[1].to_dict())
|
597
|
+
if hasattr(item[1], "to_dict") else item,
|
598
|
+
value.items()
|
599
|
+
))
|
600
|
+
else:
|
601
|
+
if attr in self.sensitive_list:
|
602
|
+
result[attr] = "****"
|
603
|
+
else:
|
604
|
+
result[attr] = value
|
605
|
+
|
606
|
+
return result
|
607
|
+
|
608
|
+
def to_str(self):
|
609
|
+
"""Returns the string representation of the model"""
|
610
|
+
import simplejson as json
|
611
|
+
if six.PY2:
|
612
|
+
import sys
|
613
|
+
reload(sys)
|
614
|
+
sys.setdefaultencoding("utf-8")
|
615
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
616
|
+
|
617
|
+
def __repr__(self):
|
618
|
+
"""For `print`"""
|
619
|
+
return self.to_str()
|
620
|
+
|
621
|
+
def __eq__(self, other):
|
622
|
+
"""Returns true if both objects are equal"""
|
623
|
+
if not isinstance(other, TaskDetails):
|
624
|
+
return False
|
625
|
+
|
626
|
+
return self.__dict__ == other.__dict__
|
627
|
+
|
628
|
+
def __ne__(self, other):
|
629
|
+
"""Returns true if both objects are not equal"""
|
630
|
+
return not self == other
|