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.
- huaweicloudsdkoctopus/v2/__init__.py +14 -1
- huaweicloudsdkoctopus/v2/model/__init__.py +14 -1
- huaweicloudsdkoctopus/v2/model/batch_create_request.py +198 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +9 -5
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_request.py +401 -0
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
- huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +3 -3
- huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +31 -3
- huaweicloudsdkoctopus/v2/model/scenario_create_req_srlz.py +9 -5
- huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +9 -5
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_request.py +142 -0
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
- huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
- huaweicloudsdkoctopus/v2/model/{simulator_enum.py → status15e_enum.py} +16 -5
- huaweicloudsdkoctopus/v2/octopus_async_client.py +217 -0
- huaweicloudsdkoctopus/v2/octopus_client.py +217 -0
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/METADATA +2 -2
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/RECORD +28 -15
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/LICENSE +0 -0
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/WHEEL +0 -0
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,619 @@
|
|
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 CreateSimBatchesResponse(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
|
+
'url': 'str',
|
22
|
+
'id': 'int',
|
23
|
+
'created_at': 'float',
|
24
|
+
'updated_at': 'float',
|
25
|
+
'passing_score': 'int',
|
26
|
+
'algorithm_name': 'str',
|
27
|
+
'algorithm_image': 'str',
|
28
|
+
'algorithm_image_version': 'str',
|
29
|
+
'started_at': 'float',
|
30
|
+
'ended_at': 'float',
|
31
|
+
'success': 'int',
|
32
|
+
'fail': 'int',
|
33
|
+
'simulation_size': 'int',
|
34
|
+
'status': 'int',
|
35
|
+
'name': 'str',
|
36
|
+
'description': 'str',
|
37
|
+
'user_id': 'str',
|
38
|
+
'designated_simulation_ids': 'list[int]',
|
39
|
+
'batch_config': 'str'
|
40
|
+
}
|
41
|
+
|
42
|
+
attribute_map = {
|
43
|
+
'url': 'url',
|
44
|
+
'id': 'id',
|
45
|
+
'created_at': 'created_at',
|
46
|
+
'updated_at': 'updated_at',
|
47
|
+
'passing_score': 'passing_score',
|
48
|
+
'algorithm_name': 'algorithm_name',
|
49
|
+
'algorithm_image': 'algorithm_image',
|
50
|
+
'algorithm_image_version': 'algorithm_image_version',
|
51
|
+
'started_at': 'started_at',
|
52
|
+
'ended_at': 'ended_at',
|
53
|
+
'success': 'success',
|
54
|
+
'fail': 'fail',
|
55
|
+
'simulation_size': 'simulation_size',
|
56
|
+
'status': 'status',
|
57
|
+
'name': 'name',
|
58
|
+
'description': 'description',
|
59
|
+
'user_id': 'user_id',
|
60
|
+
'designated_simulation_ids': 'designated_simulation_ids',
|
61
|
+
'batch_config': 'batch_config'
|
62
|
+
}
|
63
|
+
|
64
|
+
def __init__(self, url=None, id=None, created_at=None, updated_at=None, passing_score=None, algorithm_name=None, algorithm_image=None, algorithm_image_version=None, started_at=None, ended_at=None, success=None, fail=None, simulation_size=None, status=None, name=None, description=None, user_id=None, designated_simulation_ids=None, batch_config=None):
|
65
|
+
r"""CreateSimBatchesResponse
|
66
|
+
|
67
|
+
The model defined in huaweicloud sdk
|
68
|
+
|
69
|
+
:param url:
|
70
|
+
:type url: str
|
71
|
+
:param id:
|
72
|
+
:type id: int
|
73
|
+
:param created_at:
|
74
|
+
:type created_at: float
|
75
|
+
:param updated_at:
|
76
|
+
:type updated_at: float
|
77
|
+
:param passing_score: 融合评测通过分数
|
78
|
+
:type passing_score: int
|
79
|
+
:param algorithm_name: 关联算法名称
|
80
|
+
:type algorithm_name: str
|
81
|
+
:param algorithm_image: 关联算法镜像
|
82
|
+
:type algorithm_image: str
|
83
|
+
:param algorithm_image_version: 关联算法镜像版本
|
84
|
+
:type algorithm_image_version: str
|
85
|
+
:param started_at: 任务开始时间
|
86
|
+
:type started_at: float
|
87
|
+
:param ended_at: 任务结束时间
|
88
|
+
:type ended_at: float
|
89
|
+
:param success: 子任务成功数量
|
90
|
+
:type success: int
|
91
|
+
:param fail: 子任务失败数量
|
92
|
+
:type fail: int
|
93
|
+
:param simulation_size: 子任务数量
|
94
|
+
:type simulation_size: int
|
95
|
+
:param status: 任务状态
|
96
|
+
:type status: int
|
97
|
+
:param name: 名称
|
98
|
+
:type name: str
|
99
|
+
:param description: 文本描述
|
100
|
+
:type description: str
|
101
|
+
:param user_id: 用户id
|
102
|
+
:type user_id: str
|
103
|
+
:param designated_simulation_ids: 用户指定重跑子任务ids
|
104
|
+
:type designated_simulation_ids: list[int]
|
105
|
+
:param batch_config: 关联batch配置
|
106
|
+
:type batch_config: str
|
107
|
+
"""
|
108
|
+
|
109
|
+
super(CreateSimBatchesResponse, self).__init__()
|
110
|
+
|
111
|
+
self._url = None
|
112
|
+
self._id = None
|
113
|
+
self._created_at = None
|
114
|
+
self._updated_at = None
|
115
|
+
self._passing_score = None
|
116
|
+
self._algorithm_name = None
|
117
|
+
self._algorithm_image = None
|
118
|
+
self._algorithm_image_version = None
|
119
|
+
self._started_at = None
|
120
|
+
self._ended_at = None
|
121
|
+
self._success = None
|
122
|
+
self._fail = None
|
123
|
+
self._simulation_size = None
|
124
|
+
self._status = None
|
125
|
+
self._name = None
|
126
|
+
self._description = None
|
127
|
+
self._user_id = None
|
128
|
+
self._designated_simulation_ids = None
|
129
|
+
self._batch_config = None
|
130
|
+
self.discriminator = None
|
131
|
+
|
132
|
+
if url is not None:
|
133
|
+
self.url = url
|
134
|
+
if id is not None:
|
135
|
+
self.id = id
|
136
|
+
if created_at is not None:
|
137
|
+
self.created_at = created_at
|
138
|
+
if updated_at is not None:
|
139
|
+
self.updated_at = updated_at
|
140
|
+
if passing_score is not None:
|
141
|
+
self.passing_score = passing_score
|
142
|
+
if algorithm_name is not None:
|
143
|
+
self.algorithm_name = algorithm_name
|
144
|
+
self.algorithm_image = algorithm_image
|
145
|
+
if algorithm_image_version is not None:
|
146
|
+
self.algorithm_image_version = algorithm_image_version
|
147
|
+
if started_at is not None:
|
148
|
+
self.started_at = started_at
|
149
|
+
if ended_at is not None:
|
150
|
+
self.ended_at = ended_at
|
151
|
+
if success is not None:
|
152
|
+
self.success = success
|
153
|
+
if fail is not None:
|
154
|
+
self.fail = fail
|
155
|
+
if simulation_size is not None:
|
156
|
+
self.simulation_size = simulation_size
|
157
|
+
if status is not None:
|
158
|
+
self.status = status
|
159
|
+
if name is not None:
|
160
|
+
self.name = name
|
161
|
+
self.description = description
|
162
|
+
if user_id is not None:
|
163
|
+
self.user_id = user_id
|
164
|
+
self.designated_simulation_ids = designated_simulation_ids
|
165
|
+
if batch_config is not None:
|
166
|
+
self.batch_config = batch_config
|
167
|
+
|
168
|
+
@property
|
169
|
+
def url(self):
|
170
|
+
r"""Gets the url of this CreateSimBatchesResponse.
|
171
|
+
|
172
|
+
:return: The url of this CreateSimBatchesResponse.
|
173
|
+
:rtype: str
|
174
|
+
"""
|
175
|
+
return self._url
|
176
|
+
|
177
|
+
@url.setter
|
178
|
+
def url(self, url):
|
179
|
+
r"""Sets the url of this CreateSimBatchesResponse.
|
180
|
+
|
181
|
+
:param url: The url of this CreateSimBatchesResponse.
|
182
|
+
:type url: str
|
183
|
+
"""
|
184
|
+
self._url = url
|
185
|
+
|
186
|
+
@property
|
187
|
+
def id(self):
|
188
|
+
r"""Gets the id of this CreateSimBatchesResponse.
|
189
|
+
|
190
|
+
:return: The id of this CreateSimBatchesResponse.
|
191
|
+
:rtype: int
|
192
|
+
"""
|
193
|
+
return self._id
|
194
|
+
|
195
|
+
@id.setter
|
196
|
+
def id(self, id):
|
197
|
+
r"""Sets the id of this CreateSimBatchesResponse.
|
198
|
+
|
199
|
+
:param id: The id of this CreateSimBatchesResponse.
|
200
|
+
:type id: int
|
201
|
+
"""
|
202
|
+
self._id = id
|
203
|
+
|
204
|
+
@property
|
205
|
+
def created_at(self):
|
206
|
+
r"""Gets the created_at of this CreateSimBatchesResponse.
|
207
|
+
|
208
|
+
:return: The created_at of this CreateSimBatchesResponse.
|
209
|
+
:rtype: float
|
210
|
+
"""
|
211
|
+
return self._created_at
|
212
|
+
|
213
|
+
@created_at.setter
|
214
|
+
def created_at(self, created_at):
|
215
|
+
r"""Sets the created_at of this CreateSimBatchesResponse.
|
216
|
+
|
217
|
+
:param created_at: The created_at of this CreateSimBatchesResponse.
|
218
|
+
:type created_at: float
|
219
|
+
"""
|
220
|
+
self._created_at = created_at
|
221
|
+
|
222
|
+
@property
|
223
|
+
def updated_at(self):
|
224
|
+
r"""Gets the updated_at of this CreateSimBatchesResponse.
|
225
|
+
|
226
|
+
:return: The updated_at of this CreateSimBatchesResponse.
|
227
|
+
:rtype: float
|
228
|
+
"""
|
229
|
+
return self._updated_at
|
230
|
+
|
231
|
+
@updated_at.setter
|
232
|
+
def updated_at(self, updated_at):
|
233
|
+
r"""Sets the updated_at of this CreateSimBatchesResponse.
|
234
|
+
|
235
|
+
:param updated_at: The updated_at of this CreateSimBatchesResponse.
|
236
|
+
:type updated_at: float
|
237
|
+
"""
|
238
|
+
self._updated_at = updated_at
|
239
|
+
|
240
|
+
@property
|
241
|
+
def passing_score(self):
|
242
|
+
r"""Gets the passing_score of this CreateSimBatchesResponse.
|
243
|
+
|
244
|
+
融合评测通过分数
|
245
|
+
|
246
|
+
:return: The passing_score of this CreateSimBatchesResponse.
|
247
|
+
:rtype: int
|
248
|
+
"""
|
249
|
+
return self._passing_score
|
250
|
+
|
251
|
+
@passing_score.setter
|
252
|
+
def passing_score(self, passing_score):
|
253
|
+
r"""Sets the passing_score of this CreateSimBatchesResponse.
|
254
|
+
|
255
|
+
融合评测通过分数
|
256
|
+
|
257
|
+
:param passing_score: The passing_score of this CreateSimBatchesResponse.
|
258
|
+
:type passing_score: int
|
259
|
+
"""
|
260
|
+
self._passing_score = passing_score
|
261
|
+
|
262
|
+
@property
|
263
|
+
def algorithm_name(self):
|
264
|
+
r"""Gets the algorithm_name of this CreateSimBatchesResponse.
|
265
|
+
|
266
|
+
关联算法名称
|
267
|
+
|
268
|
+
:return: The algorithm_name of this CreateSimBatchesResponse.
|
269
|
+
:rtype: str
|
270
|
+
"""
|
271
|
+
return self._algorithm_name
|
272
|
+
|
273
|
+
@algorithm_name.setter
|
274
|
+
def algorithm_name(self, algorithm_name):
|
275
|
+
r"""Sets the algorithm_name of this CreateSimBatchesResponse.
|
276
|
+
|
277
|
+
关联算法名称
|
278
|
+
|
279
|
+
:param algorithm_name: The algorithm_name of this CreateSimBatchesResponse.
|
280
|
+
:type algorithm_name: str
|
281
|
+
"""
|
282
|
+
self._algorithm_name = algorithm_name
|
283
|
+
|
284
|
+
@property
|
285
|
+
def algorithm_image(self):
|
286
|
+
r"""Gets the algorithm_image of this CreateSimBatchesResponse.
|
287
|
+
|
288
|
+
关联算法镜像
|
289
|
+
|
290
|
+
:return: The algorithm_image of this CreateSimBatchesResponse.
|
291
|
+
:rtype: str
|
292
|
+
"""
|
293
|
+
return self._algorithm_image
|
294
|
+
|
295
|
+
@algorithm_image.setter
|
296
|
+
def algorithm_image(self, algorithm_image):
|
297
|
+
r"""Sets the algorithm_image of this CreateSimBatchesResponse.
|
298
|
+
|
299
|
+
关联算法镜像
|
300
|
+
|
301
|
+
:param algorithm_image: The algorithm_image of this CreateSimBatchesResponse.
|
302
|
+
:type algorithm_image: str
|
303
|
+
"""
|
304
|
+
self._algorithm_image = algorithm_image
|
305
|
+
|
306
|
+
@property
|
307
|
+
def algorithm_image_version(self):
|
308
|
+
r"""Gets the algorithm_image_version of this CreateSimBatchesResponse.
|
309
|
+
|
310
|
+
关联算法镜像版本
|
311
|
+
|
312
|
+
:return: The algorithm_image_version of this CreateSimBatchesResponse.
|
313
|
+
:rtype: str
|
314
|
+
"""
|
315
|
+
return self._algorithm_image_version
|
316
|
+
|
317
|
+
@algorithm_image_version.setter
|
318
|
+
def algorithm_image_version(self, algorithm_image_version):
|
319
|
+
r"""Sets the algorithm_image_version of this CreateSimBatchesResponse.
|
320
|
+
|
321
|
+
关联算法镜像版本
|
322
|
+
|
323
|
+
:param algorithm_image_version: The algorithm_image_version of this CreateSimBatchesResponse.
|
324
|
+
:type algorithm_image_version: str
|
325
|
+
"""
|
326
|
+
self._algorithm_image_version = algorithm_image_version
|
327
|
+
|
328
|
+
@property
|
329
|
+
def started_at(self):
|
330
|
+
r"""Gets the started_at of this CreateSimBatchesResponse.
|
331
|
+
|
332
|
+
任务开始时间
|
333
|
+
|
334
|
+
:return: The started_at of this CreateSimBatchesResponse.
|
335
|
+
:rtype: float
|
336
|
+
"""
|
337
|
+
return self._started_at
|
338
|
+
|
339
|
+
@started_at.setter
|
340
|
+
def started_at(self, started_at):
|
341
|
+
r"""Sets the started_at of this CreateSimBatchesResponse.
|
342
|
+
|
343
|
+
任务开始时间
|
344
|
+
|
345
|
+
:param started_at: The started_at of this CreateSimBatchesResponse.
|
346
|
+
:type started_at: float
|
347
|
+
"""
|
348
|
+
self._started_at = started_at
|
349
|
+
|
350
|
+
@property
|
351
|
+
def ended_at(self):
|
352
|
+
r"""Gets the ended_at of this CreateSimBatchesResponse.
|
353
|
+
|
354
|
+
任务结束时间
|
355
|
+
|
356
|
+
:return: The ended_at of this CreateSimBatchesResponse.
|
357
|
+
:rtype: float
|
358
|
+
"""
|
359
|
+
return self._ended_at
|
360
|
+
|
361
|
+
@ended_at.setter
|
362
|
+
def ended_at(self, ended_at):
|
363
|
+
r"""Sets the ended_at of this CreateSimBatchesResponse.
|
364
|
+
|
365
|
+
任务结束时间
|
366
|
+
|
367
|
+
:param ended_at: The ended_at of this CreateSimBatchesResponse.
|
368
|
+
:type ended_at: float
|
369
|
+
"""
|
370
|
+
self._ended_at = ended_at
|
371
|
+
|
372
|
+
@property
|
373
|
+
def success(self):
|
374
|
+
r"""Gets the success of this CreateSimBatchesResponse.
|
375
|
+
|
376
|
+
子任务成功数量
|
377
|
+
|
378
|
+
:return: The success of this CreateSimBatchesResponse.
|
379
|
+
:rtype: int
|
380
|
+
"""
|
381
|
+
return self._success
|
382
|
+
|
383
|
+
@success.setter
|
384
|
+
def success(self, success):
|
385
|
+
r"""Sets the success of this CreateSimBatchesResponse.
|
386
|
+
|
387
|
+
子任务成功数量
|
388
|
+
|
389
|
+
:param success: The success of this CreateSimBatchesResponse.
|
390
|
+
:type success: int
|
391
|
+
"""
|
392
|
+
self._success = success
|
393
|
+
|
394
|
+
@property
|
395
|
+
def fail(self):
|
396
|
+
r"""Gets the fail of this CreateSimBatchesResponse.
|
397
|
+
|
398
|
+
子任务失败数量
|
399
|
+
|
400
|
+
:return: The fail of this CreateSimBatchesResponse.
|
401
|
+
:rtype: int
|
402
|
+
"""
|
403
|
+
return self._fail
|
404
|
+
|
405
|
+
@fail.setter
|
406
|
+
def fail(self, fail):
|
407
|
+
r"""Sets the fail of this CreateSimBatchesResponse.
|
408
|
+
|
409
|
+
子任务失败数量
|
410
|
+
|
411
|
+
:param fail: The fail of this CreateSimBatchesResponse.
|
412
|
+
:type fail: int
|
413
|
+
"""
|
414
|
+
self._fail = fail
|
415
|
+
|
416
|
+
@property
|
417
|
+
def simulation_size(self):
|
418
|
+
r"""Gets the simulation_size of this CreateSimBatchesResponse.
|
419
|
+
|
420
|
+
子任务数量
|
421
|
+
|
422
|
+
:return: The simulation_size of this CreateSimBatchesResponse.
|
423
|
+
:rtype: int
|
424
|
+
"""
|
425
|
+
return self._simulation_size
|
426
|
+
|
427
|
+
@simulation_size.setter
|
428
|
+
def simulation_size(self, simulation_size):
|
429
|
+
r"""Sets the simulation_size of this CreateSimBatchesResponse.
|
430
|
+
|
431
|
+
子任务数量
|
432
|
+
|
433
|
+
:param simulation_size: The simulation_size of this CreateSimBatchesResponse.
|
434
|
+
:type simulation_size: int
|
435
|
+
"""
|
436
|
+
self._simulation_size = simulation_size
|
437
|
+
|
438
|
+
@property
|
439
|
+
def status(self):
|
440
|
+
r"""Gets the status of this CreateSimBatchesResponse.
|
441
|
+
|
442
|
+
任务状态
|
443
|
+
|
444
|
+
:return: The status of this CreateSimBatchesResponse.
|
445
|
+
:rtype: int
|
446
|
+
"""
|
447
|
+
return self._status
|
448
|
+
|
449
|
+
@status.setter
|
450
|
+
def status(self, status):
|
451
|
+
r"""Sets the status of this CreateSimBatchesResponse.
|
452
|
+
|
453
|
+
任务状态
|
454
|
+
|
455
|
+
:param status: The status of this CreateSimBatchesResponse.
|
456
|
+
:type status: int
|
457
|
+
"""
|
458
|
+
self._status = status
|
459
|
+
|
460
|
+
@property
|
461
|
+
def name(self):
|
462
|
+
r"""Gets the name of this CreateSimBatchesResponse.
|
463
|
+
|
464
|
+
名称
|
465
|
+
|
466
|
+
:return: The name of this CreateSimBatchesResponse.
|
467
|
+
:rtype: str
|
468
|
+
"""
|
469
|
+
return self._name
|
470
|
+
|
471
|
+
@name.setter
|
472
|
+
def name(self, name):
|
473
|
+
r"""Sets the name of this CreateSimBatchesResponse.
|
474
|
+
|
475
|
+
名称
|
476
|
+
|
477
|
+
:param name: The name of this CreateSimBatchesResponse.
|
478
|
+
:type name: str
|
479
|
+
"""
|
480
|
+
self._name = name
|
481
|
+
|
482
|
+
@property
|
483
|
+
def description(self):
|
484
|
+
r"""Gets the description of this CreateSimBatchesResponse.
|
485
|
+
|
486
|
+
文本描述
|
487
|
+
|
488
|
+
:return: The description of this CreateSimBatchesResponse.
|
489
|
+
:rtype: str
|
490
|
+
"""
|
491
|
+
return self._description
|
492
|
+
|
493
|
+
@description.setter
|
494
|
+
def description(self, description):
|
495
|
+
r"""Sets the description of this CreateSimBatchesResponse.
|
496
|
+
|
497
|
+
文本描述
|
498
|
+
|
499
|
+
:param description: The description of this CreateSimBatchesResponse.
|
500
|
+
:type description: str
|
501
|
+
"""
|
502
|
+
self._description = description
|
503
|
+
|
504
|
+
@property
|
505
|
+
def user_id(self):
|
506
|
+
r"""Gets the user_id of this CreateSimBatchesResponse.
|
507
|
+
|
508
|
+
用户id
|
509
|
+
|
510
|
+
:return: The user_id of this CreateSimBatchesResponse.
|
511
|
+
:rtype: str
|
512
|
+
"""
|
513
|
+
return self._user_id
|
514
|
+
|
515
|
+
@user_id.setter
|
516
|
+
def user_id(self, user_id):
|
517
|
+
r"""Sets the user_id of this CreateSimBatchesResponse.
|
518
|
+
|
519
|
+
用户id
|
520
|
+
|
521
|
+
:param user_id: The user_id of this CreateSimBatchesResponse.
|
522
|
+
:type user_id: str
|
523
|
+
"""
|
524
|
+
self._user_id = user_id
|
525
|
+
|
526
|
+
@property
|
527
|
+
def designated_simulation_ids(self):
|
528
|
+
r"""Gets the designated_simulation_ids of this CreateSimBatchesResponse.
|
529
|
+
|
530
|
+
用户指定重跑子任务ids
|
531
|
+
|
532
|
+
:return: The designated_simulation_ids of this CreateSimBatchesResponse.
|
533
|
+
:rtype: list[int]
|
534
|
+
"""
|
535
|
+
return self._designated_simulation_ids
|
536
|
+
|
537
|
+
@designated_simulation_ids.setter
|
538
|
+
def designated_simulation_ids(self, designated_simulation_ids):
|
539
|
+
r"""Sets the designated_simulation_ids of this CreateSimBatchesResponse.
|
540
|
+
|
541
|
+
用户指定重跑子任务ids
|
542
|
+
|
543
|
+
:param designated_simulation_ids: The designated_simulation_ids of this CreateSimBatchesResponse.
|
544
|
+
:type designated_simulation_ids: list[int]
|
545
|
+
"""
|
546
|
+
self._designated_simulation_ids = designated_simulation_ids
|
547
|
+
|
548
|
+
@property
|
549
|
+
def batch_config(self):
|
550
|
+
r"""Gets the batch_config of this CreateSimBatchesResponse.
|
551
|
+
|
552
|
+
关联batch配置
|
553
|
+
|
554
|
+
:return: The batch_config of this CreateSimBatchesResponse.
|
555
|
+
:rtype: str
|
556
|
+
"""
|
557
|
+
return self._batch_config
|
558
|
+
|
559
|
+
@batch_config.setter
|
560
|
+
def batch_config(self, batch_config):
|
561
|
+
r"""Sets the batch_config of this CreateSimBatchesResponse.
|
562
|
+
|
563
|
+
关联batch配置
|
564
|
+
|
565
|
+
:param batch_config: The batch_config of this CreateSimBatchesResponse.
|
566
|
+
:type batch_config: str
|
567
|
+
"""
|
568
|
+
self._batch_config = batch_config
|
569
|
+
|
570
|
+
def to_dict(self):
|
571
|
+
"""Returns the model properties as a dict"""
|
572
|
+
result = {}
|
573
|
+
|
574
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
575
|
+
value = getattr(self, attr)
|
576
|
+
if isinstance(value, list):
|
577
|
+
result[attr] = list(map(
|
578
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
579
|
+
value
|
580
|
+
))
|
581
|
+
elif hasattr(value, "to_dict"):
|
582
|
+
result[attr] = value.to_dict()
|
583
|
+
elif isinstance(value, dict):
|
584
|
+
result[attr] = dict(map(
|
585
|
+
lambda item: (item[0], item[1].to_dict())
|
586
|
+
if hasattr(item[1], "to_dict") else item,
|
587
|
+
value.items()
|
588
|
+
))
|
589
|
+
else:
|
590
|
+
if attr in self.sensitive_list:
|
591
|
+
result[attr] = "****"
|
592
|
+
else:
|
593
|
+
result[attr] = value
|
594
|
+
|
595
|
+
return result
|
596
|
+
|
597
|
+
def to_str(self):
|
598
|
+
"""Returns the string representation of the model"""
|
599
|
+
import simplejson as json
|
600
|
+
if six.PY2:
|
601
|
+
import sys
|
602
|
+
reload(sys)
|
603
|
+
sys.setdefaultencoding("utf-8")
|
604
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
605
|
+
|
606
|
+
def __repr__(self):
|
607
|
+
"""For `print`"""
|
608
|
+
return self.to_str()
|
609
|
+
|
610
|
+
def __eq__(self, other):
|
611
|
+
"""Returns true if both objects are equal"""
|
612
|
+
if not isinstance(other, CreateSimBatchesResponse):
|
613
|
+
return False
|
614
|
+
|
615
|
+
return self.__dict__ == other.__dict__
|
616
|
+
|
617
|
+
def __ne__(self, other):
|
618
|
+
"""Returns true if both objects are not equal"""
|
619
|
+
return not self == other
|
@@ -27,7 +27,7 @@ class CreateSimSmScenariosResponse(SdkResponse):
|
|
27
27
|
'road_scenario': 'str',
|
28
28
|
'description': 'MutableFileSrlz',
|
29
29
|
'file': 'FileCreateSrlz',
|
30
|
-
'simulator': '
|
30
|
+
'simulator': 'str',
|
31
31
|
'version': 'ScenarioVersionEnum',
|
32
32
|
'map_filename': 'str',
|
33
33
|
'model_filename': 'str',
|
@@ -84,8 +84,8 @@ class CreateSimSmScenariosResponse(SdkResponse):
|
|
84
84
|
:type description: :class:`huaweicloudsdkoctopus.v2.MutableFileSrlz`
|
85
85
|
:param file: 文件
|
86
86
|
:type file: :class:`huaweicloudsdkoctopus.v2.FileCreateSrlz`
|
87
|
-
:param simulator:
|
88
|
-
:type simulator:
|
87
|
+
:param simulator: 仿真器名称,取值范围:A,B,C,D,E
|
88
|
+
:type simulator: str
|
89
89
|
:param version:
|
90
90
|
:type version: :class:`huaweicloudsdkoctopus.v2.ScenarioVersionEnum`
|
91
91
|
:param map_filename: 地图文件名
|
@@ -358,8 +358,10 @@ class CreateSimSmScenariosResponse(SdkResponse):
|
|
358
358
|
def simulator(self):
|
359
359
|
r"""Gets the simulator of this CreateSimSmScenariosResponse.
|
360
360
|
|
361
|
+
仿真器名称,取值范围:A,B,C,D,E
|
362
|
+
|
361
363
|
:return: The simulator of this CreateSimSmScenariosResponse.
|
362
|
-
:rtype:
|
364
|
+
:rtype: str
|
363
365
|
"""
|
364
366
|
return self._simulator
|
365
367
|
|
@@ -367,8 +369,10 @@ class CreateSimSmScenariosResponse(SdkResponse):
|
|
367
369
|
def simulator(self, simulator):
|
368
370
|
r"""Sets the simulator of this CreateSimSmScenariosResponse.
|
369
371
|
|
372
|
+
仿真器名称,取值范围:A,B,C,D,E
|
373
|
+
|
370
374
|
:param simulator: The simulator of this CreateSimSmScenariosResponse.
|
371
|
-
:type simulator:
|
375
|
+
:type simulator: str
|
372
376
|
"""
|
373
377
|
self._simulator = simulator
|
374
378
|
|