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