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,260 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SimulationEvaResultMetricSrlz:
|
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
|
+
'name': 'str',
|
21
|
+
'status': 'str',
|
22
|
+
'importance': 'str',
|
23
|
+
'source': 'str',
|
24
|
+
'module': 'str',
|
25
|
+
'performance': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'name': 'name',
|
30
|
+
'status': 'status',
|
31
|
+
'importance': 'importance',
|
32
|
+
'source': 'source',
|
33
|
+
'module': 'module',
|
34
|
+
'performance': 'performance'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, name=None, status=None, importance=None, source=None, module=None, performance=None):
|
38
|
+
r"""SimulationEvaResultMetricSrlz
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param name: 评测指标名称
|
43
|
+
:type name: str
|
44
|
+
:param status: 评测结果状态
|
45
|
+
:type status: str
|
46
|
+
:param importance: 评测指标重要度
|
47
|
+
:type importance: str
|
48
|
+
:param source: 评测指标来源
|
49
|
+
:type source: str
|
50
|
+
:param module: 评测算法模块
|
51
|
+
:type module: str
|
52
|
+
:param performance: 评测性能类别
|
53
|
+
:type performance: str
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._name = None
|
59
|
+
self._status = None
|
60
|
+
self._importance = None
|
61
|
+
self._source = None
|
62
|
+
self._module = None
|
63
|
+
self._performance = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if name is not None:
|
67
|
+
self.name = name
|
68
|
+
if status is not None:
|
69
|
+
self.status = status
|
70
|
+
if importance is not None:
|
71
|
+
self.importance = importance
|
72
|
+
if source is not None:
|
73
|
+
self.source = source
|
74
|
+
if module is not None:
|
75
|
+
self.module = module
|
76
|
+
if performance is not None:
|
77
|
+
self.performance = performance
|
78
|
+
|
79
|
+
@property
|
80
|
+
def name(self):
|
81
|
+
r"""Gets the name of this SimulationEvaResultMetricSrlz.
|
82
|
+
|
83
|
+
评测指标名称
|
84
|
+
|
85
|
+
:return: The name of this SimulationEvaResultMetricSrlz.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._name
|
89
|
+
|
90
|
+
@name.setter
|
91
|
+
def name(self, name):
|
92
|
+
r"""Sets the name of this SimulationEvaResultMetricSrlz.
|
93
|
+
|
94
|
+
评测指标名称
|
95
|
+
|
96
|
+
:param name: The name of this SimulationEvaResultMetricSrlz.
|
97
|
+
:type name: str
|
98
|
+
"""
|
99
|
+
self._name = name
|
100
|
+
|
101
|
+
@property
|
102
|
+
def status(self):
|
103
|
+
r"""Gets the status of this SimulationEvaResultMetricSrlz.
|
104
|
+
|
105
|
+
评测结果状态
|
106
|
+
|
107
|
+
:return: The status of this SimulationEvaResultMetricSrlz.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._status
|
111
|
+
|
112
|
+
@status.setter
|
113
|
+
def status(self, status):
|
114
|
+
r"""Sets the status of this SimulationEvaResultMetricSrlz.
|
115
|
+
|
116
|
+
评测结果状态
|
117
|
+
|
118
|
+
:param status: The status of this SimulationEvaResultMetricSrlz.
|
119
|
+
:type status: str
|
120
|
+
"""
|
121
|
+
self._status = status
|
122
|
+
|
123
|
+
@property
|
124
|
+
def importance(self):
|
125
|
+
r"""Gets the importance of this SimulationEvaResultMetricSrlz.
|
126
|
+
|
127
|
+
评测指标重要度
|
128
|
+
|
129
|
+
:return: The importance of this SimulationEvaResultMetricSrlz.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._importance
|
133
|
+
|
134
|
+
@importance.setter
|
135
|
+
def importance(self, importance):
|
136
|
+
r"""Sets the importance of this SimulationEvaResultMetricSrlz.
|
137
|
+
|
138
|
+
评测指标重要度
|
139
|
+
|
140
|
+
:param importance: The importance of this SimulationEvaResultMetricSrlz.
|
141
|
+
:type importance: str
|
142
|
+
"""
|
143
|
+
self._importance = importance
|
144
|
+
|
145
|
+
@property
|
146
|
+
def source(self):
|
147
|
+
r"""Gets the source of this SimulationEvaResultMetricSrlz.
|
148
|
+
|
149
|
+
评测指标来源
|
150
|
+
|
151
|
+
:return: The source of this SimulationEvaResultMetricSrlz.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._source
|
155
|
+
|
156
|
+
@source.setter
|
157
|
+
def source(self, source):
|
158
|
+
r"""Sets the source of this SimulationEvaResultMetricSrlz.
|
159
|
+
|
160
|
+
评测指标来源
|
161
|
+
|
162
|
+
:param source: The source of this SimulationEvaResultMetricSrlz.
|
163
|
+
:type source: str
|
164
|
+
"""
|
165
|
+
self._source = source
|
166
|
+
|
167
|
+
@property
|
168
|
+
def module(self):
|
169
|
+
r"""Gets the module of this SimulationEvaResultMetricSrlz.
|
170
|
+
|
171
|
+
评测算法模块
|
172
|
+
|
173
|
+
:return: The module of this SimulationEvaResultMetricSrlz.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._module
|
177
|
+
|
178
|
+
@module.setter
|
179
|
+
def module(self, module):
|
180
|
+
r"""Sets the module of this SimulationEvaResultMetricSrlz.
|
181
|
+
|
182
|
+
评测算法模块
|
183
|
+
|
184
|
+
:param module: The module of this SimulationEvaResultMetricSrlz.
|
185
|
+
:type module: str
|
186
|
+
"""
|
187
|
+
self._module = module
|
188
|
+
|
189
|
+
@property
|
190
|
+
def performance(self):
|
191
|
+
r"""Gets the performance of this SimulationEvaResultMetricSrlz.
|
192
|
+
|
193
|
+
评测性能类别
|
194
|
+
|
195
|
+
:return: The performance of this SimulationEvaResultMetricSrlz.
|
196
|
+
:rtype: str
|
197
|
+
"""
|
198
|
+
return self._performance
|
199
|
+
|
200
|
+
@performance.setter
|
201
|
+
def performance(self, performance):
|
202
|
+
r"""Sets the performance of this SimulationEvaResultMetricSrlz.
|
203
|
+
|
204
|
+
评测性能类别
|
205
|
+
|
206
|
+
:param performance: The performance of this SimulationEvaResultMetricSrlz.
|
207
|
+
:type performance: str
|
208
|
+
"""
|
209
|
+
self._performance = performance
|
210
|
+
|
211
|
+
def to_dict(self):
|
212
|
+
"""Returns the model properties as a dict"""
|
213
|
+
result = {}
|
214
|
+
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
216
|
+
value = getattr(self, attr)
|
217
|
+
if isinstance(value, list):
|
218
|
+
result[attr] = list(map(
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
220
|
+
value
|
221
|
+
))
|
222
|
+
elif hasattr(value, "to_dict"):
|
223
|
+
result[attr] = value.to_dict()
|
224
|
+
elif isinstance(value, dict):
|
225
|
+
result[attr] = dict(map(
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
228
|
+
value.items()
|
229
|
+
))
|
230
|
+
else:
|
231
|
+
if attr in self.sensitive_list:
|
232
|
+
result[attr] = "****"
|
233
|
+
else:
|
234
|
+
result[attr] = value
|
235
|
+
|
236
|
+
return result
|
237
|
+
|
238
|
+
def to_str(self):
|
239
|
+
"""Returns the string representation of the model"""
|
240
|
+
import simplejson as json
|
241
|
+
if six.PY2:
|
242
|
+
import sys
|
243
|
+
reload(sys)
|
244
|
+
sys.setdefaultencoding("utf-8")
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
246
|
+
|
247
|
+
def __repr__(self):
|
248
|
+
"""For `print`"""
|
249
|
+
return self.to_str()
|
250
|
+
|
251
|
+
def __eq__(self, other):
|
252
|
+
"""Returns true if both objects are equal"""
|
253
|
+
if not isinstance(other, SimulationEvaResultMetricSrlz):
|
254
|
+
return False
|
255
|
+
|
256
|
+
return self.__dict__ == other.__dict__
|
257
|
+
|
258
|
+
def __ne__(self, other):
|
259
|
+
"""Returns true if both objects are not equal"""
|
260
|
+
return not self == other
|
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SimulationEvaResultSrlz:
|
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
|
+
'score': 'float',
|
21
|
+
'distance': 'float',
|
22
|
+
'average_speed': 'float',
|
23
|
+
'reach_time': 'float',
|
24
|
+
'metrics': 'list[SimulationEvaResultMetricSrlz]'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'score': 'score',
|
29
|
+
'distance': 'distance',
|
30
|
+
'average_speed': 'average_speed',
|
31
|
+
'reach_time': 'reach_time',
|
32
|
+
'metrics': 'metrics'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, score=None, distance=None, average_speed=None, reach_time=None, metrics=None):
|
36
|
+
r"""SimulationEvaResultSrlz
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param score: 得分
|
41
|
+
:type score: float
|
42
|
+
:param distance: 里程
|
43
|
+
:type distance: float
|
44
|
+
:param average_speed: 平均速度
|
45
|
+
:type average_speed: float
|
46
|
+
:param reach_time: 到达时间
|
47
|
+
:type reach_time: float
|
48
|
+
:param metrics: 评测指标
|
49
|
+
:type metrics: list[:class:`huaweicloudsdkoctopus.v2.SimulationEvaResultMetricSrlz`]
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._score = None
|
55
|
+
self._distance = None
|
56
|
+
self._average_speed = None
|
57
|
+
self._reach_time = None
|
58
|
+
self._metrics = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if score is not None:
|
62
|
+
self.score = score
|
63
|
+
if distance is not None:
|
64
|
+
self.distance = distance
|
65
|
+
if average_speed is not None:
|
66
|
+
self.average_speed = average_speed
|
67
|
+
if reach_time is not None:
|
68
|
+
self.reach_time = reach_time
|
69
|
+
if metrics is not None:
|
70
|
+
self.metrics = metrics
|
71
|
+
|
72
|
+
@property
|
73
|
+
def score(self):
|
74
|
+
r"""Gets the score of this SimulationEvaResultSrlz.
|
75
|
+
|
76
|
+
得分
|
77
|
+
|
78
|
+
:return: The score of this SimulationEvaResultSrlz.
|
79
|
+
:rtype: float
|
80
|
+
"""
|
81
|
+
return self._score
|
82
|
+
|
83
|
+
@score.setter
|
84
|
+
def score(self, score):
|
85
|
+
r"""Sets the score of this SimulationEvaResultSrlz.
|
86
|
+
|
87
|
+
得分
|
88
|
+
|
89
|
+
:param score: The score of this SimulationEvaResultSrlz.
|
90
|
+
:type score: float
|
91
|
+
"""
|
92
|
+
self._score = score
|
93
|
+
|
94
|
+
@property
|
95
|
+
def distance(self):
|
96
|
+
r"""Gets the distance of this SimulationEvaResultSrlz.
|
97
|
+
|
98
|
+
里程
|
99
|
+
|
100
|
+
:return: The distance of this SimulationEvaResultSrlz.
|
101
|
+
:rtype: float
|
102
|
+
"""
|
103
|
+
return self._distance
|
104
|
+
|
105
|
+
@distance.setter
|
106
|
+
def distance(self, distance):
|
107
|
+
r"""Sets the distance of this SimulationEvaResultSrlz.
|
108
|
+
|
109
|
+
里程
|
110
|
+
|
111
|
+
:param distance: The distance of this SimulationEvaResultSrlz.
|
112
|
+
:type distance: float
|
113
|
+
"""
|
114
|
+
self._distance = distance
|
115
|
+
|
116
|
+
@property
|
117
|
+
def average_speed(self):
|
118
|
+
r"""Gets the average_speed of this SimulationEvaResultSrlz.
|
119
|
+
|
120
|
+
平均速度
|
121
|
+
|
122
|
+
:return: The average_speed of this SimulationEvaResultSrlz.
|
123
|
+
:rtype: float
|
124
|
+
"""
|
125
|
+
return self._average_speed
|
126
|
+
|
127
|
+
@average_speed.setter
|
128
|
+
def average_speed(self, average_speed):
|
129
|
+
r"""Sets the average_speed of this SimulationEvaResultSrlz.
|
130
|
+
|
131
|
+
平均速度
|
132
|
+
|
133
|
+
:param average_speed: The average_speed of this SimulationEvaResultSrlz.
|
134
|
+
:type average_speed: float
|
135
|
+
"""
|
136
|
+
self._average_speed = average_speed
|
137
|
+
|
138
|
+
@property
|
139
|
+
def reach_time(self):
|
140
|
+
r"""Gets the reach_time of this SimulationEvaResultSrlz.
|
141
|
+
|
142
|
+
到达时间
|
143
|
+
|
144
|
+
:return: The reach_time of this SimulationEvaResultSrlz.
|
145
|
+
:rtype: float
|
146
|
+
"""
|
147
|
+
return self._reach_time
|
148
|
+
|
149
|
+
@reach_time.setter
|
150
|
+
def reach_time(self, reach_time):
|
151
|
+
r"""Sets the reach_time of this SimulationEvaResultSrlz.
|
152
|
+
|
153
|
+
到达时间
|
154
|
+
|
155
|
+
:param reach_time: The reach_time of this SimulationEvaResultSrlz.
|
156
|
+
:type reach_time: float
|
157
|
+
"""
|
158
|
+
self._reach_time = reach_time
|
159
|
+
|
160
|
+
@property
|
161
|
+
def metrics(self):
|
162
|
+
r"""Gets the metrics of this SimulationEvaResultSrlz.
|
163
|
+
|
164
|
+
评测指标
|
165
|
+
|
166
|
+
:return: The metrics of this SimulationEvaResultSrlz.
|
167
|
+
:rtype: list[:class:`huaweicloudsdkoctopus.v2.SimulationEvaResultMetricSrlz`]
|
168
|
+
"""
|
169
|
+
return self._metrics
|
170
|
+
|
171
|
+
@metrics.setter
|
172
|
+
def metrics(self, metrics):
|
173
|
+
r"""Sets the metrics of this SimulationEvaResultSrlz.
|
174
|
+
|
175
|
+
评测指标
|
176
|
+
|
177
|
+
:param metrics: The metrics of this SimulationEvaResultSrlz.
|
178
|
+
:type metrics: list[:class:`huaweicloudsdkoctopus.v2.SimulationEvaResultMetricSrlz`]
|
179
|
+
"""
|
180
|
+
self._metrics = metrics
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, SimulationEvaResultSrlz):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
return not self == other
|