huaweicloudsdkoctopus 3.1.153__py2.py3-none-any.whl → 3.1.155__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkoctopus/v2/__init__.py +14 -1
- huaweicloudsdkoctopus/v2/model/__init__.py +14 -1
- huaweicloudsdkoctopus/v2/model/batch_create_request.py +198 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +9 -5
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_request.py +401 -0
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
- huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +3 -3
- huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +31 -3
- huaweicloudsdkoctopus/v2/model/scenario_create_req_srlz.py +9 -5
- huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +9 -5
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_request.py +142 -0
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
- huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
- huaweicloudsdkoctopus/v2/model/{simulator_enum.py → status15e_enum.py} +16 -5
- huaweicloudsdkoctopus/v2/octopus_async_client.py +217 -0
- huaweicloudsdkoctopus/v2/octopus_client.py +217 -0
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/METADATA +2 -2
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/RECORD +28 -15
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/LICENSE +0 -0
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/WHEEL +0 -0
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,347 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SimulationFilePathSrlz:
|
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
|
+
'evaluation_path': 'str',
|
21
|
+
'visualization_path': 'str',
|
22
|
+
'evaluation_log_path': 'str',
|
23
|
+
'algorithm_pb_path': 'str',
|
24
|
+
'algorithm_meta_path': 'str',
|
25
|
+
'algorithm_log_path': 'str',
|
26
|
+
'replay_path': 'str',
|
27
|
+
'sim_osi_path': 'str',
|
28
|
+
'osi_meta_path': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'evaluation_path': 'evaluation_path',
|
33
|
+
'visualization_path': 'visualization_path',
|
34
|
+
'evaluation_log_path': 'evaluation_log_path',
|
35
|
+
'algorithm_pb_path': 'algorithm_pb_path',
|
36
|
+
'algorithm_meta_path': 'algorithm_meta_path',
|
37
|
+
'algorithm_log_path': 'algorithm_log_path',
|
38
|
+
'replay_path': 'replay_path',
|
39
|
+
'sim_osi_path': 'sim_osi_path',
|
40
|
+
'osi_meta_path': 'osi_meta_path'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, evaluation_path=None, visualization_path=None, evaluation_log_path=None, algorithm_pb_path=None, algorithm_meta_path=None, algorithm_log_path=None, replay_path=None, sim_osi_path=None, osi_meta_path=None):
|
44
|
+
r"""SimulationFilePathSrlz
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param evaluation_path: 评测osi文件路径
|
49
|
+
:type evaluation_path: str
|
50
|
+
:param visualization_path: 评测可视化pb文件路径
|
51
|
+
:type visualization_path: str
|
52
|
+
:param evaluation_log_path: 评测日志路径
|
53
|
+
:type evaluation_log_path: str
|
54
|
+
:param algorithm_pb_path: 算法pb文件路径
|
55
|
+
:type algorithm_pb_path: str
|
56
|
+
:param algorithm_meta_path: 算法pb文件元数据路径
|
57
|
+
:type algorithm_meta_path: str
|
58
|
+
:param algorithm_log_path: 算法日志路径
|
59
|
+
:type algorithm_log_path: str
|
60
|
+
:param replay_path: 回放文件路径
|
61
|
+
:type replay_path: str
|
62
|
+
:param sim_osi_path: 仿真pb文件路径
|
63
|
+
:type sim_osi_path: str
|
64
|
+
:param osi_meta_path: 仿真pb文件元数据路径
|
65
|
+
:type osi_meta_path: str
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._evaluation_path = None
|
71
|
+
self._visualization_path = None
|
72
|
+
self._evaluation_log_path = None
|
73
|
+
self._algorithm_pb_path = None
|
74
|
+
self._algorithm_meta_path = None
|
75
|
+
self._algorithm_log_path = None
|
76
|
+
self._replay_path = None
|
77
|
+
self._sim_osi_path = None
|
78
|
+
self._osi_meta_path = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
if evaluation_path is not None:
|
82
|
+
self.evaluation_path = evaluation_path
|
83
|
+
if visualization_path is not None:
|
84
|
+
self.visualization_path = visualization_path
|
85
|
+
if evaluation_log_path is not None:
|
86
|
+
self.evaluation_log_path = evaluation_log_path
|
87
|
+
if algorithm_pb_path is not None:
|
88
|
+
self.algorithm_pb_path = algorithm_pb_path
|
89
|
+
if algorithm_meta_path is not None:
|
90
|
+
self.algorithm_meta_path = algorithm_meta_path
|
91
|
+
if algorithm_log_path is not None:
|
92
|
+
self.algorithm_log_path = algorithm_log_path
|
93
|
+
if replay_path is not None:
|
94
|
+
self.replay_path = replay_path
|
95
|
+
if sim_osi_path is not None:
|
96
|
+
self.sim_osi_path = sim_osi_path
|
97
|
+
if osi_meta_path is not None:
|
98
|
+
self.osi_meta_path = osi_meta_path
|
99
|
+
|
100
|
+
@property
|
101
|
+
def evaluation_path(self):
|
102
|
+
r"""Gets the evaluation_path of this SimulationFilePathSrlz.
|
103
|
+
|
104
|
+
评测osi文件路径
|
105
|
+
|
106
|
+
:return: The evaluation_path of this SimulationFilePathSrlz.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._evaluation_path
|
110
|
+
|
111
|
+
@evaluation_path.setter
|
112
|
+
def evaluation_path(self, evaluation_path):
|
113
|
+
r"""Sets the evaluation_path of this SimulationFilePathSrlz.
|
114
|
+
|
115
|
+
评测osi文件路径
|
116
|
+
|
117
|
+
:param evaluation_path: The evaluation_path of this SimulationFilePathSrlz.
|
118
|
+
:type evaluation_path: str
|
119
|
+
"""
|
120
|
+
self._evaluation_path = evaluation_path
|
121
|
+
|
122
|
+
@property
|
123
|
+
def visualization_path(self):
|
124
|
+
r"""Gets the visualization_path of this SimulationFilePathSrlz.
|
125
|
+
|
126
|
+
评测可视化pb文件路径
|
127
|
+
|
128
|
+
:return: The visualization_path of this SimulationFilePathSrlz.
|
129
|
+
:rtype: str
|
130
|
+
"""
|
131
|
+
return self._visualization_path
|
132
|
+
|
133
|
+
@visualization_path.setter
|
134
|
+
def visualization_path(self, visualization_path):
|
135
|
+
r"""Sets the visualization_path of this SimulationFilePathSrlz.
|
136
|
+
|
137
|
+
评测可视化pb文件路径
|
138
|
+
|
139
|
+
:param visualization_path: The visualization_path of this SimulationFilePathSrlz.
|
140
|
+
:type visualization_path: str
|
141
|
+
"""
|
142
|
+
self._visualization_path = visualization_path
|
143
|
+
|
144
|
+
@property
|
145
|
+
def evaluation_log_path(self):
|
146
|
+
r"""Gets the evaluation_log_path of this SimulationFilePathSrlz.
|
147
|
+
|
148
|
+
评测日志路径
|
149
|
+
|
150
|
+
:return: The evaluation_log_path of this SimulationFilePathSrlz.
|
151
|
+
:rtype: str
|
152
|
+
"""
|
153
|
+
return self._evaluation_log_path
|
154
|
+
|
155
|
+
@evaluation_log_path.setter
|
156
|
+
def evaluation_log_path(self, evaluation_log_path):
|
157
|
+
r"""Sets the evaluation_log_path of this SimulationFilePathSrlz.
|
158
|
+
|
159
|
+
评测日志路径
|
160
|
+
|
161
|
+
:param evaluation_log_path: The evaluation_log_path of this SimulationFilePathSrlz.
|
162
|
+
:type evaluation_log_path: str
|
163
|
+
"""
|
164
|
+
self._evaluation_log_path = evaluation_log_path
|
165
|
+
|
166
|
+
@property
|
167
|
+
def algorithm_pb_path(self):
|
168
|
+
r"""Gets the algorithm_pb_path of this SimulationFilePathSrlz.
|
169
|
+
|
170
|
+
算法pb文件路径
|
171
|
+
|
172
|
+
:return: The algorithm_pb_path of this SimulationFilePathSrlz.
|
173
|
+
:rtype: str
|
174
|
+
"""
|
175
|
+
return self._algorithm_pb_path
|
176
|
+
|
177
|
+
@algorithm_pb_path.setter
|
178
|
+
def algorithm_pb_path(self, algorithm_pb_path):
|
179
|
+
r"""Sets the algorithm_pb_path of this SimulationFilePathSrlz.
|
180
|
+
|
181
|
+
算法pb文件路径
|
182
|
+
|
183
|
+
:param algorithm_pb_path: The algorithm_pb_path of this SimulationFilePathSrlz.
|
184
|
+
:type algorithm_pb_path: str
|
185
|
+
"""
|
186
|
+
self._algorithm_pb_path = algorithm_pb_path
|
187
|
+
|
188
|
+
@property
|
189
|
+
def algorithm_meta_path(self):
|
190
|
+
r"""Gets the algorithm_meta_path of this SimulationFilePathSrlz.
|
191
|
+
|
192
|
+
算法pb文件元数据路径
|
193
|
+
|
194
|
+
:return: The algorithm_meta_path of this SimulationFilePathSrlz.
|
195
|
+
:rtype: str
|
196
|
+
"""
|
197
|
+
return self._algorithm_meta_path
|
198
|
+
|
199
|
+
@algorithm_meta_path.setter
|
200
|
+
def algorithm_meta_path(self, algorithm_meta_path):
|
201
|
+
r"""Sets the algorithm_meta_path of this SimulationFilePathSrlz.
|
202
|
+
|
203
|
+
算法pb文件元数据路径
|
204
|
+
|
205
|
+
:param algorithm_meta_path: The algorithm_meta_path of this SimulationFilePathSrlz.
|
206
|
+
:type algorithm_meta_path: str
|
207
|
+
"""
|
208
|
+
self._algorithm_meta_path = algorithm_meta_path
|
209
|
+
|
210
|
+
@property
|
211
|
+
def algorithm_log_path(self):
|
212
|
+
r"""Gets the algorithm_log_path of this SimulationFilePathSrlz.
|
213
|
+
|
214
|
+
算法日志路径
|
215
|
+
|
216
|
+
:return: The algorithm_log_path of this SimulationFilePathSrlz.
|
217
|
+
:rtype: str
|
218
|
+
"""
|
219
|
+
return self._algorithm_log_path
|
220
|
+
|
221
|
+
@algorithm_log_path.setter
|
222
|
+
def algorithm_log_path(self, algorithm_log_path):
|
223
|
+
r"""Sets the algorithm_log_path of this SimulationFilePathSrlz.
|
224
|
+
|
225
|
+
算法日志路径
|
226
|
+
|
227
|
+
:param algorithm_log_path: The algorithm_log_path of this SimulationFilePathSrlz.
|
228
|
+
:type algorithm_log_path: str
|
229
|
+
"""
|
230
|
+
self._algorithm_log_path = algorithm_log_path
|
231
|
+
|
232
|
+
@property
|
233
|
+
def replay_path(self):
|
234
|
+
r"""Gets the replay_path of this SimulationFilePathSrlz.
|
235
|
+
|
236
|
+
回放文件路径
|
237
|
+
|
238
|
+
:return: The replay_path of this SimulationFilePathSrlz.
|
239
|
+
:rtype: str
|
240
|
+
"""
|
241
|
+
return self._replay_path
|
242
|
+
|
243
|
+
@replay_path.setter
|
244
|
+
def replay_path(self, replay_path):
|
245
|
+
r"""Sets the replay_path of this SimulationFilePathSrlz.
|
246
|
+
|
247
|
+
回放文件路径
|
248
|
+
|
249
|
+
:param replay_path: The replay_path of this SimulationFilePathSrlz.
|
250
|
+
:type replay_path: str
|
251
|
+
"""
|
252
|
+
self._replay_path = replay_path
|
253
|
+
|
254
|
+
@property
|
255
|
+
def sim_osi_path(self):
|
256
|
+
r"""Gets the sim_osi_path of this SimulationFilePathSrlz.
|
257
|
+
|
258
|
+
仿真pb文件路径
|
259
|
+
|
260
|
+
:return: The sim_osi_path of this SimulationFilePathSrlz.
|
261
|
+
:rtype: str
|
262
|
+
"""
|
263
|
+
return self._sim_osi_path
|
264
|
+
|
265
|
+
@sim_osi_path.setter
|
266
|
+
def sim_osi_path(self, sim_osi_path):
|
267
|
+
r"""Sets the sim_osi_path of this SimulationFilePathSrlz.
|
268
|
+
|
269
|
+
仿真pb文件路径
|
270
|
+
|
271
|
+
:param sim_osi_path: The sim_osi_path of this SimulationFilePathSrlz.
|
272
|
+
:type sim_osi_path: str
|
273
|
+
"""
|
274
|
+
self._sim_osi_path = sim_osi_path
|
275
|
+
|
276
|
+
@property
|
277
|
+
def osi_meta_path(self):
|
278
|
+
r"""Gets the osi_meta_path of this SimulationFilePathSrlz.
|
279
|
+
|
280
|
+
仿真pb文件元数据路径
|
281
|
+
|
282
|
+
:return: The osi_meta_path of this SimulationFilePathSrlz.
|
283
|
+
:rtype: str
|
284
|
+
"""
|
285
|
+
return self._osi_meta_path
|
286
|
+
|
287
|
+
@osi_meta_path.setter
|
288
|
+
def osi_meta_path(self, osi_meta_path):
|
289
|
+
r"""Sets the osi_meta_path of this SimulationFilePathSrlz.
|
290
|
+
|
291
|
+
仿真pb文件元数据路径
|
292
|
+
|
293
|
+
:param osi_meta_path: The osi_meta_path of this SimulationFilePathSrlz.
|
294
|
+
:type osi_meta_path: str
|
295
|
+
"""
|
296
|
+
self._osi_meta_path = osi_meta_path
|
297
|
+
|
298
|
+
def to_dict(self):
|
299
|
+
"""Returns the model properties as a dict"""
|
300
|
+
result = {}
|
301
|
+
|
302
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
303
|
+
value = getattr(self, attr)
|
304
|
+
if isinstance(value, list):
|
305
|
+
result[attr] = list(map(
|
306
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
307
|
+
value
|
308
|
+
))
|
309
|
+
elif hasattr(value, "to_dict"):
|
310
|
+
result[attr] = value.to_dict()
|
311
|
+
elif isinstance(value, dict):
|
312
|
+
result[attr] = dict(map(
|
313
|
+
lambda item: (item[0], item[1].to_dict())
|
314
|
+
if hasattr(item[1], "to_dict") else item,
|
315
|
+
value.items()
|
316
|
+
))
|
317
|
+
else:
|
318
|
+
if attr in self.sensitive_list:
|
319
|
+
result[attr] = "****"
|
320
|
+
else:
|
321
|
+
result[attr] = value
|
322
|
+
|
323
|
+
return result
|
324
|
+
|
325
|
+
def to_str(self):
|
326
|
+
"""Returns the string representation of the model"""
|
327
|
+
import simplejson as json
|
328
|
+
if six.PY2:
|
329
|
+
import sys
|
330
|
+
reload(sys)
|
331
|
+
sys.setdefaultencoding("utf-8")
|
332
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
333
|
+
|
334
|
+
def __repr__(self):
|
335
|
+
"""For `print`"""
|
336
|
+
return self.to_str()
|
337
|
+
|
338
|
+
def __eq__(self, other):
|
339
|
+
"""Returns true if both objects are equal"""
|
340
|
+
if not isinstance(other, SimulationFilePathSrlz):
|
341
|
+
return False
|
342
|
+
|
343
|
+
return self.__dict__ == other.__dict__
|
344
|
+
|
345
|
+
def __ne__(self, other):
|
346
|
+
"""Returns true if both objects are not equal"""
|
347
|
+
return not self == other
|