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