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