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