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.
Files changed (126) hide show
  1. huaweicloudsdkoctopus/__init__.py +0 -0
  2. huaweicloudsdkoctopus/v2/__init__.py +122 -0
  3. huaweicloudsdkoctopus/v2/model/__init__.py +119 -0
  4. huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
  5. huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
  6. huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
  7. huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
  8. huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
  9. huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
  10. huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
  11. huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
  12. huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
  13. huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
  14. huaweicloudsdkoctopus/v2/model/batch_create_request.py +198 -0
  15. huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
  16. huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
  17. huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
  18. huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
  19. huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
  20. huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
  21. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
  22. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
  23. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
  24. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
  25. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
  26. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
  27. huaweicloudsdkoctopus/v2/model/create_sim_batches_request.py +111 -0
  28. huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
  29. huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
  30. huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
  31. huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_request.py +111 -0
  32. huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_response.py +253 -0
  33. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_request.py +139 -0
  34. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_response.py +377 -0
  35. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_request.py +111 -0
  36. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +618 -0
  37. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
  38. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
  39. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
  40. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
  41. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
  42. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
  43. huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
  44. huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
  45. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
  46. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
  47. huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
  48. huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
  49. huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
  50. huaweicloudsdkoctopus/v2/model/family_enum.py +91 -0
  51. huaweicloudsdkoctopus/v2/model/file_create_req_srlz.py +142 -0
  52. huaweicloudsdkoctopus/v2/model/file_create_srlz.py +366 -0
  53. huaweicloudsdkoctopus/v2/model/file_nested_create_req_srlz.py +142 -0
  54. huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
  55. huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
  56. huaweicloudsdkoctopus/v2/model/label_brief_srlz.py +279 -0
  57. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
  58. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
  59. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
  60. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
  61. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
  62. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
  63. huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
  64. huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
  65. huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
  66. huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
  67. huaweicloudsdkoctopus/v2/model/list_sim_simulations_request.py +401 -0
  68. huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
  69. huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +547 -0
  70. huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_response.py +185 -0
  71. huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +162 -0
  72. huaweicloudsdkoctopus/v2/model/map_version_enum.py +91 -0
  73. huaweicloudsdkoctopus/v2/model/mutable_file_srlz.py +114 -0
  74. huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
  75. huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
  76. huaweicloudsdkoctopus/v2/model/patched_file_detail_srlz.py +144 -0
  77. huaweicloudsdkoctopus/v2/model/post_response.py +140 -0
  78. huaweicloudsdkoctopus/v2/model/post_response_field.py +236 -0
  79. huaweicloudsdkoctopus/v2/model/priority_enum.py +91 -0
  80. huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
  81. huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
  82. huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
  83. huaweicloudsdkoctopus/v2/model/scenario_create_req_srlz.py +439 -0
  84. huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +548 -0
  85. huaweicloudsdkoctopus/v2/model/scenario_status_enum.py +92 -0
  86. huaweicloudsdkoctopus/v2/model/scenario_version_enum.py +91 -0
  87. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
  88. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
  89. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
  90. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
  91. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
  92. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
  93. huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
  94. huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
  95. huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_request.py +142 -0
  96. huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
  97. huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
  98. huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
  99. huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
  100. huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
  101. huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
  102. huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
  103. huaweicloudsdkoctopus/v2/model/status15e_enum.py +99 -0
  104. huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
  105. huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
  106. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
  107. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
  108. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
  109. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
  110. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
  111. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
  112. huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
  113. huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
  114. huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_request.py +167 -0
  115. huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_response.py +435 -0
  116. huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_request.py +167 -0
  117. huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_response.py +435 -0
  118. huaweicloudsdkoctopus/v2/octopus_async_client.py +2262 -0
  119. huaweicloudsdkoctopus/v2/octopus_client.py +2259 -0
  120. huaweicloudsdkoctopus/v2/region/__init__.py +0 -0
  121. huaweicloudsdkoctopus/v2/region/octopus_region.py +31 -0
  122. huaweicloudsdkoctopus-3.1.160.dist-info/LICENSE +13 -0
  123. huaweicloudsdkoctopus-3.1.160.dist-info/METADATA +26 -0
  124. huaweicloudsdkoctopus-3.1.160.dist-info/RECORD +126 -0
  125. huaweicloudsdkoctopus-3.1.160.dist-info/WHEEL +5 -0
  126. huaweicloudsdkoctopus-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,290 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ShowSimSimulationsFilesResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'algorithm_log_url': 'str',
22
+ 'algorithm_pb_url': 'str',
23
+ 'algorithm_meta_url': 'str',
24
+ 'sim_osi_url': 'str',
25
+ 'osi_meta_url': 'str',
26
+ 'evaluation_url': 'str',
27
+ 'evaluation_log_url': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'algorithm_log_url': 'algorithm_log_url',
32
+ 'algorithm_pb_url': 'algorithm_pb_url',
33
+ 'algorithm_meta_url': 'algorithm_meta_url',
34
+ 'sim_osi_url': 'sim_osi_url',
35
+ 'osi_meta_url': 'osi_meta_url',
36
+ 'evaluation_url': 'evaluation_url',
37
+ 'evaluation_log_url': 'evaluation_log_url'
38
+ }
39
+
40
+ def __init__(self, algorithm_log_url=None, algorithm_pb_url=None, algorithm_meta_url=None, sim_osi_url=None, osi_meta_url=None, evaluation_url=None, evaluation_log_url=None):
41
+ r"""ShowSimSimulationsFilesResponse
42
+
43
+ The model defined in huaweicloud sdk
44
+
45
+ :param algorithm_log_url: 算法日志下载地址
46
+ :type algorithm_log_url: str
47
+ :param algorithm_pb_url: 算法pb文件下载地址
48
+ :type algorithm_pb_url: str
49
+ :param algorithm_meta_url: 算法pb文件元数据下载地址
50
+ :type algorithm_meta_url: str
51
+ :param sim_osi_url: 仿真pb文件下载地址
52
+ :type sim_osi_url: str
53
+ :param osi_meta_url: 仿真pb文件元数据下载地址
54
+ :type osi_meta_url: str
55
+ :param evaluation_url: 评测pb文件下载地址
56
+ :type evaluation_url: str
57
+ :param evaluation_log_url: 评测日志下载地址
58
+ :type evaluation_log_url: str
59
+ """
60
+
61
+ super(ShowSimSimulationsFilesResponse, self).__init__()
62
+
63
+ self._algorithm_log_url = None
64
+ self._algorithm_pb_url = None
65
+ self._algorithm_meta_url = None
66
+ self._sim_osi_url = None
67
+ self._osi_meta_url = None
68
+ self._evaluation_url = None
69
+ self._evaluation_log_url = None
70
+ self.discriminator = None
71
+
72
+ if algorithm_log_url is not None:
73
+ self.algorithm_log_url = algorithm_log_url
74
+ if algorithm_pb_url is not None:
75
+ self.algorithm_pb_url = algorithm_pb_url
76
+ if algorithm_meta_url is not None:
77
+ self.algorithm_meta_url = algorithm_meta_url
78
+ if sim_osi_url is not None:
79
+ self.sim_osi_url = sim_osi_url
80
+ if osi_meta_url is not None:
81
+ self.osi_meta_url = osi_meta_url
82
+ if evaluation_url is not None:
83
+ self.evaluation_url = evaluation_url
84
+ if evaluation_log_url is not None:
85
+ self.evaluation_log_url = evaluation_log_url
86
+
87
+ @property
88
+ def algorithm_log_url(self):
89
+ r"""Gets the algorithm_log_url of this ShowSimSimulationsFilesResponse.
90
+
91
+ 算法日志下载地址
92
+
93
+ :return: The algorithm_log_url of this ShowSimSimulationsFilesResponse.
94
+ :rtype: str
95
+ """
96
+ return self._algorithm_log_url
97
+
98
+ @algorithm_log_url.setter
99
+ def algorithm_log_url(self, algorithm_log_url):
100
+ r"""Sets the algorithm_log_url of this ShowSimSimulationsFilesResponse.
101
+
102
+ 算法日志下载地址
103
+
104
+ :param algorithm_log_url: The algorithm_log_url of this ShowSimSimulationsFilesResponse.
105
+ :type algorithm_log_url: str
106
+ """
107
+ self._algorithm_log_url = algorithm_log_url
108
+
109
+ @property
110
+ def algorithm_pb_url(self):
111
+ r"""Gets the algorithm_pb_url of this ShowSimSimulationsFilesResponse.
112
+
113
+ 算法pb文件下载地址
114
+
115
+ :return: The algorithm_pb_url of this ShowSimSimulationsFilesResponse.
116
+ :rtype: str
117
+ """
118
+ return self._algorithm_pb_url
119
+
120
+ @algorithm_pb_url.setter
121
+ def algorithm_pb_url(self, algorithm_pb_url):
122
+ r"""Sets the algorithm_pb_url of this ShowSimSimulationsFilesResponse.
123
+
124
+ 算法pb文件下载地址
125
+
126
+ :param algorithm_pb_url: The algorithm_pb_url of this ShowSimSimulationsFilesResponse.
127
+ :type algorithm_pb_url: str
128
+ """
129
+ self._algorithm_pb_url = algorithm_pb_url
130
+
131
+ @property
132
+ def algorithm_meta_url(self):
133
+ r"""Gets the algorithm_meta_url of this ShowSimSimulationsFilesResponse.
134
+
135
+ 算法pb文件元数据下载地址
136
+
137
+ :return: The algorithm_meta_url of this ShowSimSimulationsFilesResponse.
138
+ :rtype: str
139
+ """
140
+ return self._algorithm_meta_url
141
+
142
+ @algorithm_meta_url.setter
143
+ def algorithm_meta_url(self, algorithm_meta_url):
144
+ r"""Sets the algorithm_meta_url of this ShowSimSimulationsFilesResponse.
145
+
146
+ 算法pb文件元数据下载地址
147
+
148
+ :param algorithm_meta_url: The algorithm_meta_url of this ShowSimSimulationsFilesResponse.
149
+ :type algorithm_meta_url: str
150
+ """
151
+ self._algorithm_meta_url = algorithm_meta_url
152
+
153
+ @property
154
+ def sim_osi_url(self):
155
+ r"""Gets the sim_osi_url of this ShowSimSimulationsFilesResponse.
156
+
157
+ 仿真pb文件下载地址
158
+
159
+ :return: The sim_osi_url of this ShowSimSimulationsFilesResponse.
160
+ :rtype: str
161
+ """
162
+ return self._sim_osi_url
163
+
164
+ @sim_osi_url.setter
165
+ def sim_osi_url(self, sim_osi_url):
166
+ r"""Sets the sim_osi_url of this ShowSimSimulationsFilesResponse.
167
+
168
+ 仿真pb文件下载地址
169
+
170
+ :param sim_osi_url: The sim_osi_url of this ShowSimSimulationsFilesResponse.
171
+ :type sim_osi_url: str
172
+ """
173
+ self._sim_osi_url = sim_osi_url
174
+
175
+ @property
176
+ def osi_meta_url(self):
177
+ r"""Gets the osi_meta_url of this ShowSimSimulationsFilesResponse.
178
+
179
+ 仿真pb文件元数据下载地址
180
+
181
+ :return: The osi_meta_url of this ShowSimSimulationsFilesResponse.
182
+ :rtype: str
183
+ """
184
+ return self._osi_meta_url
185
+
186
+ @osi_meta_url.setter
187
+ def osi_meta_url(self, osi_meta_url):
188
+ r"""Sets the osi_meta_url of this ShowSimSimulationsFilesResponse.
189
+
190
+ 仿真pb文件元数据下载地址
191
+
192
+ :param osi_meta_url: The osi_meta_url of this ShowSimSimulationsFilesResponse.
193
+ :type osi_meta_url: str
194
+ """
195
+ self._osi_meta_url = osi_meta_url
196
+
197
+ @property
198
+ def evaluation_url(self):
199
+ r"""Gets the evaluation_url of this ShowSimSimulationsFilesResponse.
200
+
201
+ 评测pb文件下载地址
202
+
203
+ :return: The evaluation_url of this ShowSimSimulationsFilesResponse.
204
+ :rtype: str
205
+ """
206
+ return self._evaluation_url
207
+
208
+ @evaluation_url.setter
209
+ def evaluation_url(self, evaluation_url):
210
+ r"""Sets the evaluation_url of this ShowSimSimulationsFilesResponse.
211
+
212
+ 评测pb文件下载地址
213
+
214
+ :param evaluation_url: The evaluation_url of this ShowSimSimulationsFilesResponse.
215
+ :type evaluation_url: str
216
+ """
217
+ self._evaluation_url = evaluation_url
218
+
219
+ @property
220
+ def evaluation_log_url(self):
221
+ r"""Gets the evaluation_log_url of this ShowSimSimulationsFilesResponse.
222
+
223
+ 评测日志下载地址
224
+
225
+ :return: The evaluation_log_url of this ShowSimSimulationsFilesResponse.
226
+ :rtype: str
227
+ """
228
+ return self._evaluation_log_url
229
+
230
+ @evaluation_log_url.setter
231
+ def evaluation_log_url(self, evaluation_log_url):
232
+ r"""Sets the evaluation_log_url of this ShowSimSimulationsFilesResponse.
233
+
234
+ 评测日志下载地址
235
+
236
+ :param evaluation_log_url: The evaluation_log_url of this ShowSimSimulationsFilesResponse.
237
+ :type evaluation_log_url: str
238
+ """
239
+ self._evaluation_log_url = evaluation_log_url
240
+
241
+ def to_dict(self):
242
+ """Returns the model properties as a dict"""
243
+ result = {}
244
+
245
+ for attr, _ in six.iteritems(self.openapi_types):
246
+ value = getattr(self, attr)
247
+ if isinstance(value, list):
248
+ result[attr] = list(map(
249
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
250
+ value
251
+ ))
252
+ elif hasattr(value, "to_dict"):
253
+ result[attr] = value.to_dict()
254
+ elif isinstance(value, dict):
255
+ result[attr] = dict(map(
256
+ lambda item: (item[0], item[1].to_dict())
257
+ if hasattr(item[1], "to_dict") else item,
258
+ value.items()
259
+ ))
260
+ else:
261
+ if attr in self.sensitive_list:
262
+ result[attr] = "****"
263
+ else:
264
+ result[attr] = value
265
+
266
+ return result
267
+
268
+ def to_str(self):
269
+ """Returns the string representation of the model"""
270
+ import simplejson as json
271
+ if six.PY2:
272
+ import sys
273
+ reload(sys)
274
+ sys.setdefaultencoding("utf-8")
275
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
276
+
277
+ def __repr__(self):
278
+ """For `print`"""
279
+ return self.to_str()
280
+
281
+ def __eq__(self, other):
282
+ """Returns true if both objects are equal"""
283
+ if not isinstance(other, ShowSimSimulationsFilesResponse):
284
+ return False
285
+
286
+ return self.__dict__ == other.__dict__
287
+
288
+ def __ne__(self, other):
289
+ """Returns true if both objects are not equal"""
290
+ return not self == other
@@ -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