huaweicloudsdkoctopus 3.1.153__py2.py3-none-any.whl → 3.1.155__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.
Files changed (28) hide show
  1. huaweicloudsdkoctopus/v2/__init__.py +14 -1
  2. huaweicloudsdkoctopus/v2/model/__init__.py +14 -1
  3. huaweicloudsdkoctopus/v2/model/batch_create_request.py +198 -0
  4. huaweicloudsdkoctopus/v2/model/create_sim_batches_request.py +111 -0
  5. huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
  6. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +9 -5
  7. huaweicloudsdkoctopus/v2/model/list_sim_simulations_request.py +401 -0
  8. huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
  9. huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +3 -3
  10. huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +31 -3
  11. huaweicloudsdkoctopus/v2/model/scenario_create_req_srlz.py +9 -5
  12. huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +9 -5
  13. huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_request.py +142 -0
  14. huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
  15. huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
  16. huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
  17. huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
  18. huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
  19. huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
  20. huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
  21. huaweicloudsdkoctopus/v2/model/{simulator_enum.py → status15e_enum.py} +16 -5
  22. huaweicloudsdkoctopus/v2/octopus_async_client.py +217 -0
  23. huaweicloudsdkoctopus/v2/octopus_client.py +217 -0
  24. {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/METADATA +2 -2
  25. {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/RECORD +28 -15
  26. {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/LICENSE +0 -0
  27. {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/WHEEL +0 -0
  28. {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,708 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SimulationSrlz:
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
+ 'url': 'str',
21
+ 'id': 'int',
22
+ 'created_at': 'float',
23
+ 'updated_at': 'float',
24
+ 'evaluation': 'SimulationEvaluationSrlz',
25
+ 'started_at': 'float',
26
+ 'ended_at': 'float',
27
+ 'batch_name': 'str',
28
+ 'algorithm_name': 'str',
29
+ 'algorithm_image_version': 'str',
30
+ 'record_mode': 'int',
31
+ 'datahub': 'bool',
32
+ 'custom_evaluation_image': 'str',
33
+ 'passing_score': 'int',
34
+ 'evaluation_result': 'SimulationEvaResultSrlz',
35
+ 'files_path_info': 'SimulationFilePathSrlz',
36
+ 'scenario_type': 'int',
37
+ 'scenario_id': 'int',
38
+ 'simulator_name': 'str',
39
+ 'labels': 'list[object]',
40
+ 'status': 'Status15eEnum',
41
+ 'batch': 'str'
42
+ }
43
+
44
+ attribute_map = {
45
+ 'url': 'url',
46
+ 'id': 'id',
47
+ 'created_at': 'created_at',
48
+ 'updated_at': 'updated_at',
49
+ 'evaluation': 'evaluation',
50
+ 'started_at': 'started_at',
51
+ 'ended_at': 'ended_at',
52
+ 'batch_name': 'batch_name',
53
+ 'algorithm_name': 'algorithm_name',
54
+ 'algorithm_image_version': 'algorithm_image_version',
55
+ 'record_mode': 'record_mode',
56
+ 'datahub': 'datahub',
57
+ 'custom_evaluation_image': 'custom_evaluation_image',
58
+ 'passing_score': 'passing_score',
59
+ 'evaluation_result': 'evaluation_result',
60
+ 'files_path_info': 'files_path_info',
61
+ 'scenario_type': 'scenario_type',
62
+ 'scenario_id': 'scenario_id',
63
+ 'simulator_name': 'simulator_name',
64
+ 'labels': 'labels',
65
+ 'status': 'status',
66
+ 'batch': 'batch'
67
+ }
68
+
69
+ def __init__(self, url=None, id=None, created_at=None, updated_at=None, evaluation=None, started_at=None, ended_at=None, batch_name=None, algorithm_name=None, algorithm_image_version=None, record_mode=None, datahub=None, custom_evaluation_image=None, passing_score=None, evaluation_result=None, files_path_info=None, scenario_type=None, scenario_id=None, simulator_name=None, labels=None, status=None, batch=None):
70
+ r"""SimulationSrlz
71
+
72
+ The model defined in huaweicloud sdk
73
+
74
+ :param url:
75
+ :type url: str
76
+ :param id:
77
+ :type id: int
78
+ :param created_at:
79
+ :type created_at: float
80
+ :param updated_at:
81
+ :type updated_at: float
82
+ :param evaluation: 反馈的子任务评测信息
83
+ :type evaluation: :class:`huaweicloudsdkoctopus.v2.SimulationEvaluationSrlz`
84
+ :param started_at: 子任务开始时间
85
+ :type started_at: float
86
+ :param ended_at: 子任务结束时间
87
+ :type ended_at: float
88
+ :param batch_name: 任务名称
89
+ :type batch_name: str
90
+ :param algorithm_name: 关联算法名称
91
+ :type algorithm_name: str
92
+ :param algorithm_image_version: 关联算法镜像版本
93
+ :type algorithm_image_version: str
94
+ :param record_mode: 录制模式
95
+ :type record_mode: int
96
+ :param datahub: 是否使用datahub
97
+ :type datahub: bool
98
+ :param custom_evaluation_image: 关联评测镜像
99
+ :type custom_evaluation_image: str
100
+ :param passing_score: 融合评测通过分数
101
+ :type passing_score: int
102
+ :param evaluation_result: 融合评测结果
103
+ :type evaluation_result: :class:`huaweicloudsdkoctopus.v2.SimulationEvaResultSrlz`
104
+ :param files_path_info: 仿真结果文件信息
105
+ :type files_path_info: :class:`huaweicloudsdkoctopus.v2.SimulationFilePathSrlz`
106
+ :param scenario_type: 场景类型
107
+ :type scenario_type: int
108
+ :param scenario_id: 场景id
109
+ :type scenario_id: int
110
+ :param simulator_name: 仿真器名称
111
+ :type simulator_name: str
112
+ :param labels: 场景资源标签
113
+ :type labels: list[object]
114
+ :param status: 子任务状态 * `0` - Success 成功 * `1` - Pending 等待中 * `2` - Scheduling 调度 * `3` - Running 运行 * `4` - Canceled 取消 * `10` - Prepare Fail 准备失败 * `11` - Controller Fail 控制失败 * `12` - License Fail 许可失败 * `13` - Simulator Fail 仿真器失败 * `14` - Algorithm Fail 算法失败 * `15` - Evaluation Fail 评测失败 * `16` - Evicted 丢失 * `31` - Timeout 超时 * `32` - Unknown 未知
115
+ :type status: :class:`huaweicloudsdkoctopus.v2.Status15eEnum`
116
+ :param batch: 关联batch
117
+ :type batch: str
118
+ """
119
+
120
+
121
+
122
+ self._url = None
123
+ self._id = None
124
+ self._created_at = None
125
+ self._updated_at = None
126
+ self._evaluation = None
127
+ self._started_at = None
128
+ self._ended_at = None
129
+ self._batch_name = None
130
+ self._algorithm_name = None
131
+ self._algorithm_image_version = None
132
+ self._record_mode = None
133
+ self._datahub = None
134
+ self._custom_evaluation_image = None
135
+ self._passing_score = None
136
+ self._evaluation_result = None
137
+ self._files_path_info = None
138
+ self._scenario_type = None
139
+ self._scenario_id = None
140
+ self._simulator_name = None
141
+ self._labels = None
142
+ self._status = None
143
+ self._batch = None
144
+ self.discriminator = None
145
+
146
+ if url is not None:
147
+ self.url = url
148
+ if id is not None:
149
+ self.id = id
150
+ if created_at is not None:
151
+ self.created_at = created_at
152
+ if updated_at is not None:
153
+ self.updated_at = updated_at
154
+ if evaluation is not None:
155
+ self.evaluation = evaluation
156
+ if started_at is not None:
157
+ self.started_at = started_at
158
+ if ended_at is not None:
159
+ self.ended_at = ended_at
160
+ if batch_name is not None:
161
+ self.batch_name = batch_name
162
+ if algorithm_name is not None:
163
+ self.algorithm_name = algorithm_name
164
+ if algorithm_image_version is not None:
165
+ self.algorithm_image_version = algorithm_image_version
166
+ if record_mode is not None:
167
+ self.record_mode = record_mode
168
+ if datahub is not None:
169
+ self.datahub = datahub
170
+ if custom_evaluation_image is not None:
171
+ self.custom_evaluation_image = custom_evaluation_image
172
+ if passing_score is not None:
173
+ self.passing_score = passing_score
174
+ if evaluation_result is not None:
175
+ self.evaluation_result = evaluation_result
176
+ if files_path_info is not None:
177
+ self.files_path_info = files_path_info
178
+ if scenario_type is not None:
179
+ self.scenario_type = scenario_type
180
+ if scenario_id is not None:
181
+ self.scenario_id = scenario_id
182
+ if simulator_name is not None:
183
+ self.simulator_name = simulator_name
184
+ if labels is not None:
185
+ self.labels = labels
186
+ if status is not None:
187
+ self.status = status
188
+ if batch is not None:
189
+ self.batch = batch
190
+
191
+ @property
192
+ def url(self):
193
+ r"""Gets the url of this SimulationSrlz.
194
+
195
+ :return: The url of this SimulationSrlz.
196
+ :rtype: str
197
+ """
198
+ return self._url
199
+
200
+ @url.setter
201
+ def url(self, url):
202
+ r"""Sets the url of this SimulationSrlz.
203
+
204
+ :param url: The url of this SimulationSrlz.
205
+ :type url: str
206
+ """
207
+ self._url = url
208
+
209
+ @property
210
+ def id(self):
211
+ r"""Gets the id of this SimulationSrlz.
212
+
213
+ :return: The id of this SimulationSrlz.
214
+ :rtype: int
215
+ """
216
+ return self._id
217
+
218
+ @id.setter
219
+ def id(self, id):
220
+ r"""Sets the id of this SimulationSrlz.
221
+
222
+ :param id: The id of this SimulationSrlz.
223
+ :type id: int
224
+ """
225
+ self._id = id
226
+
227
+ @property
228
+ def created_at(self):
229
+ r"""Gets the created_at of this SimulationSrlz.
230
+
231
+ :return: The created_at of this SimulationSrlz.
232
+ :rtype: float
233
+ """
234
+ return self._created_at
235
+
236
+ @created_at.setter
237
+ def created_at(self, created_at):
238
+ r"""Sets the created_at of this SimulationSrlz.
239
+
240
+ :param created_at: The created_at of this SimulationSrlz.
241
+ :type created_at: float
242
+ """
243
+ self._created_at = created_at
244
+
245
+ @property
246
+ def updated_at(self):
247
+ r"""Gets the updated_at of this SimulationSrlz.
248
+
249
+ :return: The updated_at of this SimulationSrlz.
250
+ :rtype: float
251
+ """
252
+ return self._updated_at
253
+
254
+ @updated_at.setter
255
+ def updated_at(self, updated_at):
256
+ r"""Sets the updated_at of this SimulationSrlz.
257
+
258
+ :param updated_at: The updated_at of this SimulationSrlz.
259
+ :type updated_at: float
260
+ """
261
+ self._updated_at = updated_at
262
+
263
+ @property
264
+ def evaluation(self):
265
+ r"""Gets the evaluation of this SimulationSrlz.
266
+
267
+ 反馈的子任务评测信息
268
+
269
+ :return: The evaluation of this SimulationSrlz.
270
+ :rtype: :class:`huaweicloudsdkoctopus.v2.SimulationEvaluationSrlz`
271
+ """
272
+ return self._evaluation
273
+
274
+ @evaluation.setter
275
+ def evaluation(self, evaluation):
276
+ r"""Sets the evaluation of this SimulationSrlz.
277
+
278
+ 反馈的子任务评测信息
279
+
280
+ :param evaluation: The evaluation of this SimulationSrlz.
281
+ :type evaluation: :class:`huaweicloudsdkoctopus.v2.SimulationEvaluationSrlz`
282
+ """
283
+ self._evaluation = evaluation
284
+
285
+ @property
286
+ def started_at(self):
287
+ r"""Gets the started_at of this SimulationSrlz.
288
+
289
+ 子任务开始时间
290
+
291
+ :return: The started_at of this SimulationSrlz.
292
+ :rtype: float
293
+ """
294
+ return self._started_at
295
+
296
+ @started_at.setter
297
+ def started_at(self, started_at):
298
+ r"""Sets the started_at of this SimulationSrlz.
299
+
300
+ 子任务开始时间
301
+
302
+ :param started_at: The started_at of this SimulationSrlz.
303
+ :type started_at: float
304
+ """
305
+ self._started_at = started_at
306
+
307
+ @property
308
+ def ended_at(self):
309
+ r"""Gets the ended_at of this SimulationSrlz.
310
+
311
+ 子任务结束时间
312
+
313
+ :return: The ended_at of this SimulationSrlz.
314
+ :rtype: float
315
+ """
316
+ return self._ended_at
317
+
318
+ @ended_at.setter
319
+ def ended_at(self, ended_at):
320
+ r"""Sets the ended_at of this SimulationSrlz.
321
+
322
+ 子任务结束时间
323
+
324
+ :param ended_at: The ended_at of this SimulationSrlz.
325
+ :type ended_at: float
326
+ """
327
+ self._ended_at = ended_at
328
+
329
+ @property
330
+ def batch_name(self):
331
+ r"""Gets the batch_name of this SimulationSrlz.
332
+
333
+ 任务名称
334
+
335
+ :return: The batch_name of this SimulationSrlz.
336
+ :rtype: str
337
+ """
338
+ return self._batch_name
339
+
340
+ @batch_name.setter
341
+ def batch_name(self, batch_name):
342
+ r"""Sets the batch_name of this SimulationSrlz.
343
+
344
+ 任务名称
345
+
346
+ :param batch_name: The batch_name of this SimulationSrlz.
347
+ :type batch_name: str
348
+ """
349
+ self._batch_name = batch_name
350
+
351
+ @property
352
+ def algorithm_name(self):
353
+ r"""Gets the algorithm_name of this SimulationSrlz.
354
+
355
+ 关联算法名称
356
+
357
+ :return: The algorithm_name of this SimulationSrlz.
358
+ :rtype: str
359
+ """
360
+ return self._algorithm_name
361
+
362
+ @algorithm_name.setter
363
+ def algorithm_name(self, algorithm_name):
364
+ r"""Sets the algorithm_name of this SimulationSrlz.
365
+
366
+ 关联算法名称
367
+
368
+ :param algorithm_name: The algorithm_name of this SimulationSrlz.
369
+ :type algorithm_name: str
370
+ """
371
+ self._algorithm_name = algorithm_name
372
+
373
+ @property
374
+ def algorithm_image_version(self):
375
+ r"""Gets the algorithm_image_version of this SimulationSrlz.
376
+
377
+ 关联算法镜像版本
378
+
379
+ :return: The algorithm_image_version of this SimulationSrlz.
380
+ :rtype: str
381
+ """
382
+ return self._algorithm_image_version
383
+
384
+ @algorithm_image_version.setter
385
+ def algorithm_image_version(self, algorithm_image_version):
386
+ r"""Sets the algorithm_image_version of this SimulationSrlz.
387
+
388
+ 关联算法镜像版本
389
+
390
+ :param algorithm_image_version: The algorithm_image_version of this SimulationSrlz.
391
+ :type algorithm_image_version: str
392
+ """
393
+ self._algorithm_image_version = algorithm_image_version
394
+
395
+ @property
396
+ def record_mode(self):
397
+ r"""Gets the record_mode of this SimulationSrlz.
398
+
399
+ 录制模式
400
+
401
+ :return: The record_mode of this SimulationSrlz.
402
+ :rtype: int
403
+ """
404
+ return self._record_mode
405
+
406
+ @record_mode.setter
407
+ def record_mode(self, record_mode):
408
+ r"""Sets the record_mode of this SimulationSrlz.
409
+
410
+ 录制模式
411
+
412
+ :param record_mode: The record_mode of this SimulationSrlz.
413
+ :type record_mode: int
414
+ """
415
+ self._record_mode = record_mode
416
+
417
+ @property
418
+ def datahub(self):
419
+ r"""Gets the datahub of this SimulationSrlz.
420
+
421
+ 是否使用datahub
422
+
423
+ :return: The datahub of this SimulationSrlz.
424
+ :rtype: bool
425
+ """
426
+ return self._datahub
427
+
428
+ @datahub.setter
429
+ def datahub(self, datahub):
430
+ r"""Sets the datahub of this SimulationSrlz.
431
+
432
+ 是否使用datahub
433
+
434
+ :param datahub: The datahub of this SimulationSrlz.
435
+ :type datahub: bool
436
+ """
437
+ self._datahub = datahub
438
+
439
+ @property
440
+ def custom_evaluation_image(self):
441
+ r"""Gets the custom_evaluation_image of this SimulationSrlz.
442
+
443
+ 关联评测镜像
444
+
445
+ :return: The custom_evaluation_image of this SimulationSrlz.
446
+ :rtype: str
447
+ """
448
+ return self._custom_evaluation_image
449
+
450
+ @custom_evaluation_image.setter
451
+ def custom_evaluation_image(self, custom_evaluation_image):
452
+ r"""Sets the custom_evaluation_image of this SimulationSrlz.
453
+
454
+ 关联评测镜像
455
+
456
+ :param custom_evaluation_image: The custom_evaluation_image of this SimulationSrlz.
457
+ :type custom_evaluation_image: str
458
+ """
459
+ self._custom_evaluation_image = custom_evaluation_image
460
+
461
+ @property
462
+ def passing_score(self):
463
+ r"""Gets the passing_score of this SimulationSrlz.
464
+
465
+ 融合评测通过分数
466
+
467
+ :return: The passing_score of this SimulationSrlz.
468
+ :rtype: int
469
+ """
470
+ return self._passing_score
471
+
472
+ @passing_score.setter
473
+ def passing_score(self, passing_score):
474
+ r"""Sets the passing_score of this SimulationSrlz.
475
+
476
+ 融合评测通过分数
477
+
478
+ :param passing_score: The passing_score of this SimulationSrlz.
479
+ :type passing_score: int
480
+ """
481
+ self._passing_score = passing_score
482
+
483
+ @property
484
+ def evaluation_result(self):
485
+ r"""Gets the evaluation_result of this SimulationSrlz.
486
+
487
+ 融合评测结果
488
+
489
+ :return: The evaluation_result of this SimulationSrlz.
490
+ :rtype: :class:`huaweicloudsdkoctopus.v2.SimulationEvaResultSrlz`
491
+ """
492
+ return self._evaluation_result
493
+
494
+ @evaluation_result.setter
495
+ def evaluation_result(self, evaluation_result):
496
+ r"""Sets the evaluation_result of this SimulationSrlz.
497
+
498
+ 融合评测结果
499
+
500
+ :param evaluation_result: The evaluation_result of this SimulationSrlz.
501
+ :type evaluation_result: :class:`huaweicloudsdkoctopus.v2.SimulationEvaResultSrlz`
502
+ """
503
+ self._evaluation_result = evaluation_result
504
+
505
+ @property
506
+ def files_path_info(self):
507
+ r"""Gets the files_path_info of this SimulationSrlz.
508
+
509
+ 仿真结果文件信息
510
+
511
+ :return: The files_path_info of this SimulationSrlz.
512
+ :rtype: :class:`huaweicloudsdkoctopus.v2.SimulationFilePathSrlz`
513
+ """
514
+ return self._files_path_info
515
+
516
+ @files_path_info.setter
517
+ def files_path_info(self, files_path_info):
518
+ r"""Sets the files_path_info of this SimulationSrlz.
519
+
520
+ 仿真结果文件信息
521
+
522
+ :param files_path_info: The files_path_info of this SimulationSrlz.
523
+ :type files_path_info: :class:`huaweicloudsdkoctopus.v2.SimulationFilePathSrlz`
524
+ """
525
+ self._files_path_info = files_path_info
526
+
527
+ @property
528
+ def scenario_type(self):
529
+ r"""Gets the scenario_type of this SimulationSrlz.
530
+
531
+ 场景类型
532
+
533
+ :return: The scenario_type of this SimulationSrlz.
534
+ :rtype: int
535
+ """
536
+ return self._scenario_type
537
+
538
+ @scenario_type.setter
539
+ def scenario_type(self, scenario_type):
540
+ r"""Sets the scenario_type of this SimulationSrlz.
541
+
542
+ 场景类型
543
+
544
+ :param scenario_type: The scenario_type of this SimulationSrlz.
545
+ :type scenario_type: int
546
+ """
547
+ self._scenario_type = scenario_type
548
+
549
+ @property
550
+ def scenario_id(self):
551
+ r"""Gets the scenario_id of this SimulationSrlz.
552
+
553
+ 场景id
554
+
555
+ :return: The scenario_id of this SimulationSrlz.
556
+ :rtype: int
557
+ """
558
+ return self._scenario_id
559
+
560
+ @scenario_id.setter
561
+ def scenario_id(self, scenario_id):
562
+ r"""Sets the scenario_id of this SimulationSrlz.
563
+
564
+ 场景id
565
+
566
+ :param scenario_id: The scenario_id of this SimulationSrlz.
567
+ :type scenario_id: int
568
+ """
569
+ self._scenario_id = scenario_id
570
+
571
+ @property
572
+ def simulator_name(self):
573
+ r"""Gets the simulator_name of this SimulationSrlz.
574
+
575
+ 仿真器名称
576
+
577
+ :return: The simulator_name of this SimulationSrlz.
578
+ :rtype: str
579
+ """
580
+ return self._simulator_name
581
+
582
+ @simulator_name.setter
583
+ def simulator_name(self, simulator_name):
584
+ r"""Sets the simulator_name of this SimulationSrlz.
585
+
586
+ 仿真器名称
587
+
588
+ :param simulator_name: The simulator_name of this SimulationSrlz.
589
+ :type simulator_name: str
590
+ """
591
+ self._simulator_name = simulator_name
592
+
593
+ @property
594
+ def labels(self):
595
+ r"""Gets the labels of this SimulationSrlz.
596
+
597
+ 场景资源标签
598
+
599
+ :return: The labels of this SimulationSrlz.
600
+ :rtype: list[object]
601
+ """
602
+ return self._labels
603
+
604
+ @labels.setter
605
+ def labels(self, labels):
606
+ r"""Sets the labels of this SimulationSrlz.
607
+
608
+ 场景资源标签
609
+
610
+ :param labels: The labels of this SimulationSrlz.
611
+ :type labels: list[object]
612
+ """
613
+ self._labels = labels
614
+
615
+ @property
616
+ def status(self):
617
+ r"""Gets the status of this SimulationSrlz.
618
+
619
+ 子任务状态 * `0` - Success 成功 * `1` - Pending 等待中 * `2` - Scheduling 调度 * `3` - Running 运行 * `4` - Canceled 取消 * `10` - Prepare Fail 准备失败 * `11` - Controller Fail 控制失败 * `12` - License Fail 许可失败 * `13` - Simulator Fail 仿真器失败 * `14` - Algorithm Fail 算法失败 * `15` - Evaluation Fail 评测失败 * `16` - Evicted 丢失 * `31` - Timeout 超时 * `32` - Unknown 未知
620
+
621
+ :return: The status of this SimulationSrlz.
622
+ :rtype: :class:`huaweicloudsdkoctopus.v2.Status15eEnum`
623
+ """
624
+ return self._status
625
+
626
+ @status.setter
627
+ def status(self, status):
628
+ r"""Sets the status of this SimulationSrlz.
629
+
630
+ 子任务状态 * `0` - Success 成功 * `1` - Pending 等待中 * `2` - Scheduling 调度 * `3` - Running 运行 * `4` - Canceled 取消 * `10` - Prepare Fail 准备失败 * `11` - Controller Fail 控制失败 * `12` - License Fail 许可失败 * `13` - Simulator Fail 仿真器失败 * `14` - Algorithm Fail 算法失败 * `15` - Evaluation Fail 评测失败 * `16` - Evicted 丢失 * `31` - Timeout 超时 * `32` - Unknown 未知
631
+
632
+ :param status: The status of this SimulationSrlz.
633
+ :type status: :class:`huaweicloudsdkoctopus.v2.Status15eEnum`
634
+ """
635
+ self._status = status
636
+
637
+ @property
638
+ def batch(self):
639
+ r"""Gets the batch of this SimulationSrlz.
640
+
641
+ 关联batch
642
+
643
+ :return: The batch of this SimulationSrlz.
644
+ :rtype: str
645
+ """
646
+ return self._batch
647
+
648
+ @batch.setter
649
+ def batch(self, batch):
650
+ r"""Sets the batch of this SimulationSrlz.
651
+
652
+ 关联batch
653
+
654
+ :param batch: The batch of this SimulationSrlz.
655
+ :type batch: str
656
+ """
657
+ self._batch = batch
658
+
659
+ def to_dict(self):
660
+ """Returns the model properties as a dict"""
661
+ result = {}
662
+
663
+ for attr, _ in six.iteritems(self.openapi_types):
664
+ value = getattr(self, attr)
665
+ if isinstance(value, list):
666
+ result[attr] = list(map(
667
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
668
+ value
669
+ ))
670
+ elif hasattr(value, "to_dict"):
671
+ result[attr] = value.to_dict()
672
+ elif isinstance(value, dict):
673
+ result[attr] = dict(map(
674
+ lambda item: (item[0], item[1].to_dict())
675
+ if hasattr(item[1], "to_dict") else item,
676
+ value.items()
677
+ ))
678
+ else:
679
+ if attr in self.sensitive_list:
680
+ result[attr] = "****"
681
+ else:
682
+ result[attr] = value
683
+
684
+ return result
685
+
686
+ def to_str(self):
687
+ """Returns the string representation of the model"""
688
+ import simplejson as json
689
+ if six.PY2:
690
+ import sys
691
+ reload(sys)
692
+ sys.setdefaultencoding("utf-8")
693
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
694
+
695
+ def __repr__(self):
696
+ """For `print`"""
697
+ return self.to_str()
698
+
699
+ def __eq__(self, other):
700
+ """Returns true if both objects are equal"""
701
+ if not isinstance(other, SimulationSrlz):
702
+ return False
703
+
704
+ return self.__dict__ == other.__dict__
705
+
706
+ def __ne__(self, other):
707
+ """Returns true if both objects are not equal"""
708
+ return not self == other