huaweicloudsdkoctopus 3.1.155__py2.py3-none-any.whl → 3.1.156__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 +72 -0
- huaweicloudsdkoctopus/v2/model/__init__.py +72 -0
- huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
- huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
- huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
- huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
- huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
- huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
- huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
- huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
- huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
- huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
- huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
- huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
- huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
- huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
- huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
- huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
- huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
- huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
- huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
- huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
- huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
- huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
- huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
- huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
- huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
- huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
- huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
- huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
- huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
- huaweicloudsdkoctopus/v2/octopus_async_client.py +1679 -150
- huaweicloudsdkoctopus/v2/octopus_client.py +1679 -150
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/METADATA +2 -2
- huaweicloudsdkoctopus-3.1.156.dist-info/RECORD +126 -0
- huaweicloudsdkoctopus-3.1.155.dist-info/RECORD +0 -54
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/LICENSE +0 -0
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/WHEEL +0 -0
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,819 @@
|
|
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 CreateSimBatchConfigsResponse(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
|
+
'scenarios': 'BatchConfigScenarioSrlz',
|
26
|
+
'msg_notify_method': 'BatchConfigMsgNotifySrlz',
|
27
|
+
'algorithm': 'str',
|
28
|
+
'algorithm_name': 'str',
|
29
|
+
'builtins_evaluation': 'bool',
|
30
|
+
'custom_evaluation_image': 'str',
|
31
|
+
'custom_simulator_image_id': 'int',
|
32
|
+
'evaluation_info': 'BatchConfigEvaluationInfoSrlz',
|
33
|
+
'batch_size': 'int',
|
34
|
+
'duration': 'str',
|
35
|
+
'repeat_times': 'int',
|
36
|
+
'name': 'str',
|
37
|
+
'description': 'str',
|
38
|
+
'simulator_name': 'str',
|
39
|
+
'record_mode': 'RecordModeEnum',
|
40
|
+
'priority': 'PriorityEnum',
|
41
|
+
'datahub': 'bool',
|
42
|
+
'passing_score': 'int',
|
43
|
+
'scenario_type': 'int',
|
44
|
+
'scenario_set_id': 'int',
|
45
|
+
'triggerable': 'bool',
|
46
|
+
'evaluations': 'list[str]'
|
47
|
+
}
|
48
|
+
|
49
|
+
attribute_map = {
|
50
|
+
'url': 'url',
|
51
|
+
'id': 'id',
|
52
|
+
'created_at': 'created_at',
|
53
|
+
'updated_at': 'updated_at',
|
54
|
+
'scenarios': 'scenarios',
|
55
|
+
'msg_notify_method': 'msg_notify_method',
|
56
|
+
'algorithm': 'algorithm',
|
57
|
+
'algorithm_name': 'algorithm_name',
|
58
|
+
'builtins_evaluation': 'builtins_evaluation',
|
59
|
+
'custom_evaluation_image': 'custom_evaluation_image',
|
60
|
+
'custom_simulator_image_id': 'custom_simulator_image_id',
|
61
|
+
'evaluation_info': 'evaluation_info',
|
62
|
+
'batch_size': 'batch_size',
|
63
|
+
'duration': 'duration',
|
64
|
+
'repeat_times': 'repeat_times',
|
65
|
+
'name': 'name',
|
66
|
+
'description': 'description',
|
67
|
+
'simulator_name': 'simulator_name',
|
68
|
+
'record_mode': 'record_mode',
|
69
|
+
'priority': 'priority',
|
70
|
+
'datahub': 'datahub',
|
71
|
+
'passing_score': 'passing_score',
|
72
|
+
'scenario_type': 'scenario_type',
|
73
|
+
'scenario_set_id': 'scenario_set_id',
|
74
|
+
'triggerable': 'triggerable',
|
75
|
+
'evaluations': 'evaluations'
|
76
|
+
}
|
77
|
+
|
78
|
+
def __init__(self, url=None, id=None, created_at=None, updated_at=None, scenarios=None, msg_notify_method=None, algorithm=None, algorithm_name=None, builtins_evaluation=None, custom_evaluation_image=None, custom_simulator_image_id=None, evaluation_info=None, batch_size=None, duration=None, repeat_times=None, name=None, description=None, simulator_name=None, record_mode=None, priority=None, datahub=None, passing_score=None, scenario_type=None, scenario_set_id=None, triggerable=None, evaluations=None):
|
79
|
+
r"""CreateSimBatchConfigsResponse
|
80
|
+
|
81
|
+
The model defined in huaweicloud sdk
|
82
|
+
|
83
|
+
:param url:
|
84
|
+
:type url: str
|
85
|
+
:param id:
|
86
|
+
:type id: int
|
87
|
+
:param created_at:
|
88
|
+
:type created_at: float
|
89
|
+
:param updated_at:
|
90
|
+
:type updated_at: float
|
91
|
+
:param scenarios: 场景信息
|
92
|
+
:type scenarios: :class:`huaweicloudsdkoctopus.v2.BatchConfigScenarioSrlz`
|
93
|
+
:param msg_notify_method: 消息通知
|
94
|
+
:type msg_notify_method: :class:`huaweicloudsdkoctopus.v2.BatchConfigMsgNotifySrlz`
|
95
|
+
:param algorithm: 关联算法项目
|
96
|
+
:type algorithm: str
|
97
|
+
:param algorithm_name: 算法名称
|
98
|
+
:type algorithm_name: str
|
99
|
+
:param builtins_evaluation: 是否使用内置评测
|
100
|
+
:type builtins_evaluation: bool
|
101
|
+
:param custom_evaluation_image: 关联评测镜像
|
102
|
+
:type custom_evaluation_image: str
|
103
|
+
:param custom_simulator_image_id: 镜像管理中的仿真器镜像的版本id
|
104
|
+
:type custom_simulator_image_id: int
|
105
|
+
:param evaluation_info: 评测配置信息
|
106
|
+
:type evaluation_info: :class:`huaweicloudsdkoctopus.v2.BatchConfigEvaluationInfoSrlz`
|
107
|
+
:param batch_size: 任务数量
|
108
|
+
:type batch_size: int
|
109
|
+
:param duration: 子任务最大运行时长
|
110
|
+
:type duration: str
|
111
|
+
:param repeat_times: 重复运行次数
|
112
|
+
:type repeat_times: int
|
113
|
+
:param name: 名称
|
114
|
+
:type name: str
|
115
|
+
:param description: 描述
|
116
|
+
:type description: str
|
117
|
+
:param simulator_name: 仿真器名称,取值范围:A,B,C,D,E
|
118
|
+
:type simulator_name: str
|
119
|
+
:param record_mode: 录制模式 * `0` - 不录制 * `1` - 录制
|
120
|
+
:type record_mode: :class:`huaweicloudsdkoctopus.v2.RecordModeEnum`
|
121
|
+
:param priority: 优先级,取值越大,优先级越高。 * `120` - S * `100` - A * `80` - B * `60` - C * `40` - D
|
122
|
+
:type priority: :class:`huaweicloudsdkoctopus.v2.PriorityEnum`
|
123
|
+
:param datahub: 是否使用datahub
|
124
|
+
:type datahub: bool
|
125
|
+
:param passing_score: 融合评测通过分数
|
126
|
+
:type passing_score: int
|
127
|
+
:param scenario_type: 场景资源类型
|
128
|
+
:type scenario_type: int
|
129
|
+
:param scenario_set_id: 景资源组ID
|
130
|
+
:type scenario_set_id: int
|
131
|
+
:param triggerable: 是否可通过流水线功能触发
|
132
|
+
:type triggerable: bool
|
133
|
+
:param evaluations: 关联评测管理项目
|
134
|
+
:type evaluations: list[str]
|
135
|
+
"""
|
136
|
+
|
137
|
+
super(CreateSimBatchConfigsResponse, self).__init__()
|
138
|
+
|
139
|
+
self._url = None
|
140
|
+
self._id = None
|
141
|
+
self._created_at = None
|
142
|
+
self._updated_at = None
|
143
|
+
self._scenarios = None
|
144
|
+
self._msg_notify_method = None
|
145
|
+
self._algorithm = None
|
146
|
+
self._algorithm_name = None
|
147
|
+
self._builtins_evaluation = None
|
148
|
+
self._custom_evaluation_image = None
|
149
|
+
self._custom_simulator_image_id = None
|
150
|
+
self._evaluation_info = None
|
151
|
+
self._batch_size = None
|
152
|
+
self._duration = None
|
153
|
+
self._repeat_times = None
|
154
|
+
self._name = None
|
155
|
+
self._description = None
|
156
|
+
self._simulator_name = None
|
157
|
+
self._record_mode = None
|
158
|
+
self._priority = None
|
159
|
+
self._datahub = None
|
160
|
+
self._passing_score = None
|
161
|
+
self._scenario_type = None
|
162
|
+
self._scenario_set_id = None
|
163
|
+
self._triggerable = None
|
164
|
+
self._evaluations = None
|
165
|
+
self.discriminator = None
|
166
|
+
|
167
|
+
if url is not None:
|
168
|
+
self.url = url
|
169
|
+
if id is not None:
|
170
|
+
self.id = id
|
171
|
+
if created_at is not None:
|
172
|
+
self.created_at = created_at
|
173
|
+
if updated_at is not None:
|
174
|
+
self.updated_at = updated_at
|
175
|
+
if scenarios is not None:
|
176
|
+
self.scenarios = scenarios
|
177
|
+
self.msg_notify_method = msg_notify_method
|
178
|
+
self.algorithm = algorithm
|
179
|
+
if algorithm_name is not None:
|
180
|
+
self.algorithm_name = algorithm_name
|
181
|
+
if builtins_evaluation is not None:
|
182
|
+
self.builtins_evaluation = builtins_evaluation
|
183
|
+
self.custom_evaluation_image = custom_evaluation_image
|
184
|
+
self.custom_simulator_image_id = custom_simulator_image_id
|
185
|
+
if evaluation_info is not None:
|
186
|
+
self.evaluation_info = evaluation_info
|
187
|
+
if batch_size is not None:
|
188
|
+
self.batch_size = batch_size
|
189
|
+
if duration is not None:
|
190
|
+
self.duration = duration
|
191
|
+
if repeat_times is not None:
|
192
|
+
self.repeat_times = repeat_times
|
193
|
+
if name is not None:
|
194
|
+
self.name = name
|
195
|
+
self.description = description
|
196
|
+
if simulator_name is not None:
|
197
|
+
self.simulator_name = simulator_name
|
198
|
+
if record_mode is not None:
|
199
|
+
self.record_mode = record_mode
|
200
|
+
if priority is not None:
|
201
|
+
self.priority = priority
|
202
|
+
self.datahub = datahub
|
203
|
+
if passing_score is not None:
|
204
|
+
self.passing_score = passing_score
|
205
|
+
if scenario_type is not None:
|
206
|
+
self.scenario_type = scenario_type
|
207
|
+
if scenario_set_id is not None:
|
208
|
+
self.scenario_set_id = scenario_set_id
|
209
|
+
if triggerable is not None:
|
210
|
+
self.triggerable = triggerable
|
211
|
+
if evaluations is not None:
|
212
|
+
self.evaluations = evaluations
|
213
|
+
|
214
|
+
@property
|
215
|
+
def url(self):
|
216
|
+
r"""Gets the url of this CreateSimBatchConfigsResponse.
|
217
|
+
|
218
|
+
:return: The url of this CreateSimBatchConfigsResponse.
|
219
|
+
:rtype: str
|
220
|
+
"""
|
221
|
+
return self._url
|
222
|
+
|
223
|
+
@url.setter
|
224
|
+
def url(self, url):
|
225
|
+
r"""Sets the url of this CreateSimBatchConfigsResponse.
|
226
|
+
|
227
|
+
:param url: The url of this CreateSimBatchConfigsResponse.
|
228
|
+
:type url: str
|
229
|
+
"""
|
230
|
+
self._url = url
|
231
|
+
|
232
|
+
@property
|
233
|
+
def id(self):
|
234
|
+
r"""Gets the id of this CreateSimBatchConfigsResponse.
|
235
|
+
|
236
|
+
:return: The id of this CreateSimBatchConfigsResponse.
|
237
|
+
:rtype: int
|
238
|
+
"""
|
239
|
+
return self._id
|
240
|
+
|
241
|
+
@id.setter
|
242
|
+
def id(self, id):
|
243
|
+
r"""Sets the id of this CreateSimBatchConfigsResponse.
|
244
|
+
|
245
|
+
:param id: The id of this CreateSimBatchConfigsResponse.
|
246
|
+
:type id: int
|
247
|
+
"""
|
248
|
+
self._id = id
|
249
|
+
|
250
|
+
@property
|
251
|
+
def created_at(self):
|
252
|
+
r"""Gets the created_at of this CreateSimBatchConfigsResponse.
|
253
|
+
|
254
|
+
:return: The created_at of this CreateSimBatchConfigsResponse.
|
255
|
+
:rtype: float
|
256
|
+
"""
|
257
|
+
return self._created_at
|
258
|
+
|
259
|
+
@created_at.setter
|
260
|
+
def created_at(self, created_at):
|
261
|
+
r"""Sets the created_at of this CreateSimBatchConfigsResponse.
|
262
|
+
|
263
|
+
:param created_at: The created_at of this CreateSimBatchConfigsResponse.
|
264
|
+
:type created_at: float
|
265
|
+
"""
|
266
|
+
self._created_at = created_at
|
267
|
+
|
268
|
+
@property
|
269
|
+
def updated_at(self):
|
270
|
+
r"""Gets the updated_at of this CreateSimBatchConfigsResponse.
|
271
|
+
|
272
|
+
:return: The updated_at of this CreateSimBatchConfigsResponse.
|
273
|
+
:rtype: float
|
274
|
+
"""
|
275
|
+
return self._updated_at
|
276
|
+
|
277
|
+
@updated_at.setter
|
278
|
+
def updated_at(self, updated_at):
|
279
|
+
r"""Sets the updated_at of this CreateSimBatchConfigsResponse.
|
280
|
+
|
281
|
+
:param updated_at: The updated_at of this CreateSimBatchConfigsResponse.
|
282
|
+
:type updated_at: float
|
283
|
+
"""
|
284
|
+
self._updated_at = updated_at
|
285
|
+
|
286
|
+
@property
|
287
|
+
def scenarios(self):
|
288
|
+
r"""Gets the scenarios of this CreateSimBatchConfigsResponse.
|
289
|
+
|
290
|
+
场景信息
|
291
|
+
|
292
|
+
:return: The scenarios of this CreateSimBatchConfigsResponse.
|
293
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.BatchConfigScenarioSrlz`
|
294
|
+
"""
|
295
|
+
return self._scenarios
|
296
|
+
|
297
|
+
@scenarios.setter
|
298
|
+
def scenarios(self, scenarios):
|
299
|
+
r"""Sets the scenarios of this CreateSimBatchConfigsResponse.
|
300
|
+
|
301
|
+
场景信息
|
302
|
+
|
303
|
+
:param scenarios: The scenarios of this CreateSimBatchConfigsResponse.
|
304
|
+
:type scenarios: :class:`huaweicloudsdkoctopus.v2.BatchConfigScenarioSrlz`
|
305
|
+
"""
|
306
|
+
self._scenarios = scenarios
|
307
|
+
|
308
|
+
@property
|
309
|
+
def msg_notify_method(self):
|
310
|
+
r"""Gets the msg_notify_method of this CreateSimBatchConfigsResponse.
|
311
|
+
|
312
|
+
消息通知
|
313
|
+
|
314
|
+
:return: The msg_notify_method of this CreateSimBatchConfigsResponse.
|
315
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.BatchConfigMsgNotifySrlz`
|
316
|
+
"""
|
317
|
+
return self._msg_notify_method
|
318
|
+
|
319
|
+
@msg_notify_method.setter
|
320
|
+
def msg_notify_method(self, msg_notify_method):
|
321
|
+
r"""Sets the msg_notify_method of this CreateSimBatchConfigsResponse.
|
322
|
+
|
323
|
+
消息通知
|
324
|
+
|
325
|
+
:param msg_notify_method: The msg_notify_method of this CreateSimBatchConfigsResponse.
|
326
|
+
:type msg_notify_method: :class:`huaweicloudsdkoctopus.v2.BatchConfigMsgNotifySrlz`
|
327
|
+
"""
|
328
|
+
self._msg_notify_method = msg_notify_method
|
329
|
+
|
330
|
+
@property
|
331
|
+
def algorithm(self):
|
332
|
+
r"""Gets the algorithm of this CreateSimBatchConfigsResponse.
|
333
|
+
|
334
|
+
关联算法项目
|
335
|
+
|
336
|
+
:return: The algorithm of this CreateSimBatchConfigsResponse.
|
337
|
+
:rtype: str
|
338
|
+
"""
|
339
|
+
return self._algorithm
|
340
|
+
|
341
|
+
@algorithm.setter
|
342
|
+
def algorithm(self, algorithm):
|
343
|
+
r"""Sets the algorithm of this CreateSimBatchConfigsResponse.
|
344
|
+
|
345
|
+
关联算法项目
|
346
|
+
|
347
|
+
:param algorithm: The algorithm of this CreateSimBatchConfigsResponse.
|
348
|
+
:type algorithm: str
|
349
|
+
"""
|
350
|
+
self._algorithm = algorithm
|
351
|
+
|
352
|
+
@property
|
353
|
+
def algorithm_name(self):
|
354
|
+
r"""Gets the algorithm_name of this CreateSimBatchConfigsResponse.
|
355
|
+
|
356
|
+
算法名称
|
357
|
+
|
358
|
+
:return: The algorithm_name of this CreateSimBatchConfigsResponse.
|
359
|
+
:rtype: str
|
360
|
+
"""
|
361
|
+
return self._algorithm_name
|
362
|
+
|
363
|
+
@algorithm_name.setter
|
364
|
+
def algorithm_name(self, algorithm_name):
|
365
|
+
r"""Sets the algorithm_name of this CreateSimBatchConfigsResponse.
|
366
|
+
|
367
|
+
算法名称
|
368
|
+
|
369
|
+
:param algorithm_name: The algorithm_name of this CreateSimBatchConfigsResponse.
|
370
|
+
:type algorithm_name: str
|
371
|
+
"""
|
372
|
+
self._algorithm_name = algorithm_name
|
373
|
+
|
374
|
+
@property
|
375
|
+
def builtins_evaluation(self):
|
376
|
+
r"""Gets the builtins_evaluation of this CreateSimBatchConfigsResponse.
|
377
|
+
|
378
|
+
是否使用内置评测
|
379
|
+
|
380
|
+
:return: The builtins_evaluation of this CreateSimBatchConfigsResponse.
|
381
|
+
:rtype: bool
|
382
|
+
"""
|
383
|
+
return self._builtins_evaluation
|
384
|
+
|
385
|
+
@builtins_evaluation.setter
|
386
|
+
def builtins_evaluation(self, builtins_evaluation):
|
387
|
+
r"""Sets the builtins_evaluation of this CreateSimBatchConfigsResponse.
|
388
|
+
|
389
|
+
是否使用内置评测
|
390
|
+
|
391
|
+
:param builtins_evaluation: The builtins_evaluation of this CreateSimBatchConfigsResponse.
|
392
|
+
:type builtins_evaluation: bool
|
393
|
+
"""
|
394
|
+
self._builtins_evaluation = builtins_evaluation
|
395
|
+
|
396
|
+
@property
|
397
|
+
def custom_evaluation_image(self):
|
398
|
+
r"""Gets the custom_evaluation_image of this CreateSimBatchConfigsResponse.
|
399
|
+
|
400
|
+
关联评测镜像
|
401
|
+
|
402
|
+
:return: The custom_evaluation_image of this CreateSimBatchConfigsResponse.
|
403
|
+
:rtype: str
|
404
|
+
"""
|
405
|
+
return self._custom_evaluation_image
|
406
|
+
|
407
|
+
@custom_evaluation_image.setter
|
408
|
+
def custom_evaluation_image(self, custom_evaluation_image):
|
409
|
+
r"""Sets the custom_evaluation_image of this CreateSimBatchConfigsResponse.
|
410
|
+
|
411
|
+
关联评测镜像
|
412
|
+
|
413
|
+
:param custom_evaluation_image: The custom_evaluation_image of this CreateSimBatchConfigsResponse.
|
414
|
+
:type custom_evaluation_image: str
|
415
|
+
"""
|
416
|
+
self._custom_evaluation_image = custom_evaluation_image
|
417
|
+
|
418
|
+
@property
|
419
|
+
def custom_simulator_image_id(self):
|
420
|
+
r"""Gets the custom_simulator_image_id of this CreateSimBatchConfigsResponse.
|
421
|
+
|
422
|
+
镜像管理中的仿真器镜像的版本id
|
423
|
+
|
424
|
+
:return: The custom_simulator_image_id of this CreateSimBatchConfigsResponse.
|
425
|
+
:rtype: int
|
426
|
+
"""
|
427
|
+
return self._custom_simulator_image_id
|
428
|
+
|
429
|
+
@custom_simulator_image_id.setter
|
430
|
+
def custom_simulator_image_id(self, custom_simulator_image_id):
|
431
|
+
r"""Sets the custom_simulator_image_id of this CreateSimBatchConfigsResponse.
|
432
|
+
|
433
|
+
镜像管理中的仿真器镜像的版本id
|
434
|
+
|
435
|
+
:param custom_simulator_image_id: The custom_simulator_image_id of this CreateSimBatchConfigsResponse.
|
436
|
+
:type custom_simulator_image_id: int
|
437
|
+
"""
|
438
|
+
self._custom_simulator_image_id = custom_simulator_image_id
|
439
|
+
|
440
|
+
@property
|
441
|
+
def evaluation_info(self):
|
442
|
+
r"""Gets the evaluation_info of this CreateSimBatchConfigsResponse.
|
443
|
+
|
444
|
+
评测配置信息
|
445
|
+
|
446
|
+
:return: The evaluation_info of this CreateSimBatchConfigsResponse.
|
447
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.BatchConfigEvaluationInfoSrlz`
|
448
|
+
"""
|
449
|
+
return self._evaluation_info
|
450
|
+
|
451
|
+
@evaluation_info.setter
|
452
|
+
def evaluation_info(self, evaluation_info):
|
453
|
+
r"""Sets the evaluation_info of this CreateSimBatchConfigsResponse.
|
454
|
+
|
455
|
+
评测配置信息
|
456
|
+
|
457
|
+
:param evaluation_info: The evaluation_info of this CreateSimBatchConfigsResponse.
|
458
|
+
:type evaluation_info: :class:`huaweicloudsdkoctopus.v2.BatchConfigEvaluationInfoSrlz`
|
459
|
+
"""
|
460
|
+
self._evaluation_info = evaluation_info
|
461
|
+
|
462
|
+
@property
|
463
|
+
def batch_size(self):
|
464
|
+
r"""Gets the batch_size of this CreateSimBatchConfigsResponse.
|
465
|
+
|
466
|
+
任务数量
|
467
|
+
|
468
|
+
:return: The batch_size of this CreateSimBatchConfigsResponse.
|
469
|
+
:rtype: int
|
470
|
+
"""
|
471
|
+
return self._batch_size
|
472
|
+
|
473
|
+
@batch_size.setter
|
474
|
+
def batch_size(self, batch_size):
|
475
|
+
r"""Sets the batch_size of this CreateSimBatchConfigsResponse.
|
476
|
+
|
477
|
+
任务数量
|
478
|
+
|
479
|
+
:param batch_size: The batch_size of this CreateSimBatchConfigsResponse.
|
480
|
+
:type batch_size: int
|
481
|
+
"""
|
482
|
+
self._batch_size = batch_size
|
483
|
+
|
484
|
+
@property
|
485
|
+
def duration(self):
|
486
|
+
r"""Gets the duration of this CreateSimBatchConfigsResponse.
|
487
|
+
|
488
|
+
子任务最大运行时长
|
489
|
+
|
490
|
+
:return: The duration of this CreateSimBatchConfigsResponse.
|
491
|
+
:rtype: str
|
492
|
+
"""
|
493
|
+
return self._duration
|
494
|
+
|
495
|
+
@duration.setter
|
496
|
+
def duration(self, duration):
|
497
|
+
r"""Sets the duration of this CreateSimBatchConfigsResponse.
|
498
|
+
|
499
|
+
子任务最大运行时长
|
500
|
+
|
501
|
+
:param duration: The duration of this CreateSimBatchConfigsResponse.
|
502
|
+
:type duration: str
|
503
|
+
"""
|
504
|
+
self._duration = duration
|
505
|
+
|
506
|
+
@property
|
507
|
+
def repeat_times(self):
|
508
|
+
r"""Gets the repeat_times of this CreateSimBatchConfigsResponse.
|
509
|
+
|
510
|
+
重复运行次数
|
511
|
+
|
512
|
+
:return: The repeat_times of this CreateSimBatchConfigsResponse.
|
513
|
+
:rtype: int
|
514
|
+
"""
|
515
|
+
return self._repeat_times
|
516
|
+
|
517
|
+
@repeat_times.setter
|
518
|
+
def repeat_times(self, repeat_times):
|
519
|
+
r"""Sets the repeat_times of this CreateSimBatchConfigsResponse.
|
520
|
+
|
521
|
+
重复运行次数
|
522
|
+
|
523
|
+
:param repeat_times: The repeat_times of this CreateSimBatchConfigsResponse.
|
524
|
+
:type repeat_times: int
|
525
|
+
"""
|
526
|
+
self._repeat_times = repeat_times
|
527
|
+
|
528
|
+
@property
|
529
|
+
def name(self):
|
530
|
+
r"""Gets the name of this CreateSimBatchConfigsResponse.
|
531
|
+
|
532
|
+
名称
|
533
|
+
|
534
|
+
:return: The name of this CreateSimBatchConfigsResponse.
|
535
|
+
:rtype: str
|
536
|
+
"""
|
537
|
+
return self._name
|
538
|
+
|
539
|
+
@name.setter
|
540
|
+
def name(self, name):
|
541
|
+
r"""Sets the name of this CreateSimBatchConfigsResponse.
|
542
|
+
|
543
|
+
名称
|
544
|
+
|
545
|
+
:param name: The name of this CreateSimBatchConfigsResponse.
|
546
|
+
:type name: str
|
547
|
+
"""
|
548
|
+
self._name = name
|
549
|
+
|
550
|
+
@property
|
551
|
+
def description(self):
|
552
|
+
r"""Gets the description of this CreateSimBatchConfigsResponse.
|
553
|
+
|
554
|
+
描述
|
555
|
+
|
556
|
+
:return: The description of this CreateSimBatchConfigsResponse.
|
557
|
+
:rtype: str
|
558
|
+
"""
|
559
|
+
return self._description
|
560
|
+
|
561
|
+
@description.setter
|
562
|
+
def description(self, description):
|
563
|
+
r"""Sets the description of this CreateSimBatchConfigsResponse.
|
564
|
+
|
565
|
+
描述
|
566
|
+
|
567
|
+
:param description: The description of this CreateSimBatchConfigsResponse.
|
568
|
+
:type description: str
|
569
|
+
"""
|
570
|
+
self._description = description
|
571
|
+
|
572
|
+
@property
|
573
|
+
def simulator_name(self):
|
574
|
+
r"""Gets the simulator_name of this CreateSimBatchConfigsResponse.
|
575
|
+
|
576
|
+
仿真器名称,取值范围:A,B,C,D,E
|
577
|
+
|
578
|
+
:return: The simulator_name of this CreateSimBatchConfigsResponse.
|
579
|
+
:rtype: str
|
580
|
+
"""
|
581
|
+
return self._simulator_name
|
582
|
+
|
583
|
+
@simulator_name.setter
|
584
|
+
def simulator_name(self, simulator_name):
|
585
|
+
r"""Sets the simulator_name of this CreateSimBatchConfigsResponse.
|
586
|
+
|
587
|
+
仿真器名称,取值范围:A,B,C,D,E
|
588
|
+
|
589
|
+
:param simulator_name: The simulator_name of this CreateSimBatchConfigsResponse.
|
590
|
+
:type simulator_name: str
|
591
|
+
"""
|
592
|
+
self._simulator_name = simulator_name
|
593
|
+
|
594
|
+
@property
|
595
|
+
def record_mode(self):
|
596
|
+
r"""Gets the record_mode of this CreateSimBatchConfigsResponse.
|
597
|
+
|
598
|
+
录制模式 * `0` - 不录制 * `1` - 录制
|
599
|
+
|
600
|
+
:return: The record_mode of this CreateSimBatchConfigsResponse.
|
601
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.RecordModeEnum`
|
602
|
+
"""
|
603
|
+
return self._record_mode
|
604
|
+
|
605
|
+
@record_mode.setter
|
606
|
+
def record_mode(self, record_mode):
|
607
|
+
r"""Sets the record_mode of this CreateSimBatchConfigsResponse.
|
608
|
+
|
609
|
+
录制模式 * `0` - 不录制 * `1` - 录制
|
610
|
+
|
611
|
+
:param record_mode: The record_mode of this CreateSimBatchConfigsResponse.
|
612
|
+
:type record_mode: :class:`huaweicloudsdkoctopus.v2.RecordModeEnum`
|
613
|
+
"""
|
614
|
+
self._record_mode = record_mode
|
615
|
+
|
616
|
+
@property
|
617
|
+
def priority(self):
|
618
|
+
r"""Gets the priority of this CreateSimBatchConfigsResponse.
|
619
|
+
|
620
|
+
优先级,取值越大,优先级越高。 * `120` - S * `100` - A * `80` - B * `60` - C * `40` - D
|
621
|
+
|
622
|
+
:return: The priority of this CreateSimBatchConfigsResponse.
|
623
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.PriorityEnum`
|
624
|
+
"""
|
625
|
+
return self._priority
|
626
|
+
|
627
|
+
@priority.setter
|
628
|
+
def priority(self, priority):
|
629
|
+
r"""Sets the priority of this CreateSimBatchConfigsResponse.
|
630
|
+
|
631
|
+
优先级,取值越大,优先级越高。 * `120` - S * `100` - A * `80` - B * `60` - C * `40` - D
|
632
|
+
|
633
|
+
:param priority: The priority of this CreateSimBatchConfigsResponse.
|
634
|
+
:type priority: :class:`huaweicloudsdkoctopus.v2.PriorityEnum`
|
635
|
+
"""
|
636
|
+
self._priority = priority
|
637
|
+
|
638
|
+
@property
|
639
|
+
def datahub(self):
|
640
|
+
r"""Gets the datahub of this CreateSimBatchConfigsResponse.
|
641
|
+
|
642
|
+
是否使用datahub
|
643
|
+
|
644
|
+
:return: The datahub of this CreateSimBatchConfigsResponse.
|
645
|
+
:rtype: bool
|
646
|
+
"""
|
647
|
+
return self._datahub
|
648
|
+
|
649
|
+
@datahub.setter
|
650
|
+
def datahub(self, datahub):
|
651
|
+
r"""Sets the datahub of this CreateSimBatchConfigsResponse.
|
652
|
+
|
653
|
+
是否使用datahub
|
654
|
+
|
655
|
+
:param datahub: The datahub of this CreateSimBatchConfigsResponse.
|
656
|
+
:type datahub: bool
|
657
|
+
"""
|
658
|
+
self._datahub = datahub
|
659
|
+
|
660
|
+
@property
|
661
|
+
def passing_score(self):
|
662
|
+
r"""Gets the passing_score of this CreateSimBatchConfigsResponse.
|
663
|
+
|
664
|
+
融合评测通过分数
|
665
|
+
|
666
|
+
:return: The passing_score of this CreateSimBatchConfigsResponse.
|
667
|
+
:rtype: int
|
668
|
+
"""
|
669
|
+
return self._passing_score
|
670
|
+
|
671
|
+
@passing_score.setter
|
672
|
+
def passing_score(self, passing_score):
|
673
|
+
r"""Sets the passing_score of this CreateSimBatchConfigsResponse.
|
674
|
+
|
675
|
+
融合评测通过分数
|
676
|
+
|
677
|
+
:param passing_score: The passing_score of this CreateSimBatchConfigsResponse.
|
678
|
+
:type passing_score: int
|
679
|
+
"""
|
680
|
+
self._passing_score = passing_score
|
681
|
+
|
682
|
+
@property
|
683
|
+
def scenario_type(self):
|
684
|
+
r"""Gets the scenario_type of this CreateSimBatchConfigsResponse.
|
685
|
+
|
686
|
+
场景资源类型
|
687
|
+
|
688
|
+
:return: The scenario_type of this CreateSimBatchConfigsResponse.
|
689
|
+
:rtype: int
|
690
|
+
"""
|
691
|
+
return self._scenario_type
|
692
|
+
|
693
|
+
@scenario_type.setter
|
694
|
+
def scenario_type(self, scenario_type):
|
695
|
+
r"""Sets the scenario_type of this CreateSimBatchConfigsResponse.
|
696
|
+
|
697
|
+
场景资源类型
|
698
|
+
|
699
|
+
:param scenario_type: The scenario_type of this CreateSimBatchConfigsResponse.
|
700
|
+
:type scenario_type: int
|
701
|
+
"""
|
702
|
+
self._scenario_type = scenario_type
|
703
|
+
|
704
|
+
@property
|
705
|
+
def scenario_set_id(self):
|
706
|
+
r"""Gets the scenario_set_id of this CreateSimBatchConfigsResponse.
|
707
|
+
|
708
|
+
景资源组ID
|
709
|
+
|
710
|
+
:return: The scenario_set_id of this CreateSimBatchConfigsResponse.
|
711
|
+
:rtype: int
|
712
|
+
"""
|
713
|
+
return self._scenario_set_id
|
714
|
+
|
715
|
+
@scenario_set_id.setter
|
716
|
+
def scenario_set_id(self, scenario_set_id):
|
717
|
+
r"""Sets the scenario_set_id of this CreateSimBatchConfigsResponse.
|
718
|
+
|
719
|
+
景资源组ID
|
720
|
+
|
721
|
+
:param scenario_set_id: The scenario_set_id of this CreateSimBatchConfigsResponse.
|
722
|
+
:type scenario_set_id: int
|
723
|
+
"""
|
724
|
+
self._scenario_set_id = scenario_set_id
|
725
|
+
|
726
|
+
@property
|
727
|
+
def triggerable(self):
|
728
|
+
r"""Gets the triggerable of this CreateSimBatchConfigsResponse.
|
729
|
+
|
730
|
+
是否可通过流水线功能触发
|
731
|
+
|
732
|
+
:return: The triggerable of this CreateSimBatchConfigsResponse.
|
733
|
+
:rtype: bool
|
734
|
+
"""
|
735
|
+
return self._triggerable
|
736
|
+
|
737
|
+
@triggerable.setter
|
738
|
+
def triggerable(self, triggerable):
|
739
|
+
r"""Sets the triggerable of this CreateSimBatchConfigsResponse.
|
740
|
+
|
741
|
+
是否可通过流水线功能触发
|
742
|
+
|
743
|
+
:param triggerable: The triggerable of this CreateSimBatchConfigsResponse.
|
744
|
+
:type triggerable: bool
|
745
|
+
"""
|
746
|
+
self._triggerable = triggerable
|
747
|
+
|
748
|
+
@property
|
749
|
+
def evaluations(self):
|
750
|
+
r"""Gets the evaluations of this CreateSimBatchConfigsResponse.
|
751
|
+
|
752
|
+
关联评测管理项目
|
753
|
+
|
754
|
+
:return: The evaluations of this CreateSimBatchConfigsResponse.
|
755
|
+
:rtype: list[str]
|
756
|
+
"""
|
757
|
+
return self._evaluations
|
758
|
+
|
759
|
+
@evaluations.setter
|
760
|
+
def evaluations(self, evaluations):
|
761
|
+
r"""Sets the evaluations of this CreateSimBatchConfigsResponse.
|
762
|
+
|
763
|
+
关联评测管理项目
|
764
|
+
|
765
|
+
:param evaluations: The evaluations of this CreateSimBatchConfigsResponse.
|
766
|
+
:type evaluations: list[str]
|
767
|
+
"""
|
768
|
+
self._evaluations = evaluations
|
769
|
+
|
770
|
+
def to_dict(self):
|
771
|
+
"""Returns the model properties as a dict"""
|
772
|
+
result = {}
|
773
|
+
|
774
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
775
|
+
value = getattr(self, attr)
|
776
|
+
if isinstance(value, list):
|
777
|
+
result[attr] = list(map(
|
778
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
779
|
+
value
|
780
|
+
))
|
781
|
+
elif hasattr(value, "to_dict"):
|
782
|
+
result[attr] = value.to_dict()
|
783
|
+
elif isinstance(value, dict):
|
784
|
+
result[attr] = dict(map(
|
785
|
+
lambda item: (item[0], item[1].to_dict())
|
786
|
+
if hasattr(item[1], "to_dict") else item,
|
787
|
+
value.items()
|
788
|
+
))
|
789
|
+
else:
|
790
|
+
if attr in self.sensitive_list:
|
791
|
+
result[attr] = "****"
|
792
|
+
else:
|
793
|
+
result[attr] = value
|
794
|
+
|
795
|
+
return result
|
796
|
+
|
797
|
+
def to_str(self):
|
798
|
+
"""Returns the string representation of the model"""
|
799
|
+
import simplejson as json
|
800
|
+
if six.PY2:
|
801
|
+
import sys
|
802
|
+
reload(sys)
|
803
|
+
sys.setdefaultencoding("utf-8")
|
804
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
805
|
+
|
806
|
+
def __repr__(self):
|
807
|
+
"""For `print`"""
|
808
|
+
return self.to_str()
|
809
|
+
|
810
|
+
def __eq__(self, other):
|
811
|
+
"""Returns true if both objects are equal"""
|
812
|
+
if not isinstance(other, CreateSimBatchConfigsResponse):
|
813
|
+
return False
|
814
|
+
|
815
|
+
return self.__dict__ == other.__dict__
|
816
|
+
|
817
|
+
def __ne__(self, other):
|
818
|
+
"""Returns true if both objects are not equal"""
|
819
|
+
return not self == other
|