huaweicloudsdkoctopus 3.1.154__py2.py3-none-any.whl → 3.1.156__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 (82) hide show
  1. huaweicloudsdkoctopus/v2/__init__.py +72 -0
  2. huaweicloudsdkoctopus/v2/model/__init__.py +72 -0
  3. huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
  4. huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
  5. huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
  6. huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
  7. huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
  8. huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
  9. huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
  10. huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
  11. huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
  12. huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
  13. huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
  14. huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
  15. huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
  16. huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
  17. huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
  18. huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
  19. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
  20. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
  21. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
  22. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
  23. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
  24. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
  25. huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
  26. huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
  27. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
  28. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
  29. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
  30. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
  31. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
  32. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
  33. huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
  34. huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
  35. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
  36. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
  37. huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
  38. huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
  39. huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
  40. huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
  41. huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
  42. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
  43. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
  44. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
  45. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
  46. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
  47. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
  48. huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
  49. huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
  50. huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
  51. huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
  52. huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
  53. huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
  54. huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
  55. huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
  56. huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
  57. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
  58. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
  59. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
  60. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
  61. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
  62. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
  63. huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
  64. huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
  65. huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
  66. huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
  67. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
  68. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
  69. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
  70. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
  71. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
  72. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
  73. huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
  74. huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
  75. huaweicloudsdkoctopus/v2/octopus_async_client.py +1679 -150
  76. huaweicloudsdkoctopus/v2/octopus_client.py +1679 -150
  77. {huaweicloudsdkoctopus-3.1.154.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/METADATA +2 -2
  78. huaweicloudsdkoctopus-3.1.156.dist-info/RECORD +126 -0
  79. huaweicloudsdkoctopus-3.1.154.dist-info/RECORD +0 -54
  80. {huaweicloudsdkoctopus-3.1.154.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/LICENSE +0 -0
  81. {huaweicloudsdkoctopus-3.1.154.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/WHEEL +0 -0
  82. {huaweicloudsdkoctopus-3.1.154.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,339 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListSimAlgorithmImagesRequest:
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
+ 'algorithm': 'int',
21
+ 'algorithm_id': 'int',
22
+ 'limit': 'int',
23
+ 'offset': 'int',
24
+ 'ordering': 'str',
25
+ 'search': 'str',
26
+ 'status': 'int',
27
+ 'type': 'str',
28
+ 'version': 'str'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'algorithm': 'algorithm',
33
+ 'algorithm_id': 'algorithm_id',
34
+ 'limit': 'limit',
35
+ 'offset': 'offset',
36
+ 'ordering': 'ordering',
37
+ 'search': 'search',
38
+ 'status': 'status',
39
+ 'type': 'type',
40
+ 'version': 'version'
41
+ }
42
+
43
+ def __init__(self, algorithm=None, algorithm_id=None, limit=None, offset=None, ordering=None, search=None, status=None, type=None, version=None):
44
+ r"""ListSimAlgorithmImagesRequest
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param algorithm:
49
+ :type algorithm: int
50
+ :param algorithm_id: 算法
51
+ :type algorithm_id: int
52
+ :param limit: Number of results to return per page.
53
+ :type limit: int
54
+ :param offset: The initial index from which to return the results.
55
+ :type offset: int
56
+ :param ordering: Which field to use when ordering the results.
57
+ :type ordering: str
58
+ :param search: A search term.
59
+ :type search: str
60
+ :param status: 镜像状态 * `0` - Success * `1` - Pending * `2` - Type Error * `3` - Not Found * `4` - Download Fail * `5` - Build Fail * `32` - Unknown * `100` - Init * `101` - Init Failed * `200` - To Push * `201` - Uploading
61
+ :type status: int
62
+ :param type: 镜像类型 * `build` - Build * `upload` - Upload
63
+ :type type: str
64
+ :param version:
65
+ :type version: str
66
+ """
67
+
68
+
69
+
70
+ self._algorithm = None
71
+ self._algorithm_id = None
72
+ self._limit = None
73
+ self._offset = None
74
+ self._ordering = None
75
+ self._search = None
76
+ self._status = None
77
+ self._type = None
78
+ self._version = None
79
+ self.discriminator = None
80
+
81
+ if algorithm is not None:
82
+ self.algorithm = algorithm
83
+ if algorithm_id is not None:
84
+ self.algorithm_id = algorithm_id
85
+ if limit is not None:
86
+ self.limit = limit
87
+ if offset is not None:
88
+ self.offset = offset
89
+ if ordering is not None:
90
+ self.ordering = ordering
91
+ if search is not None:
92
+ self.search = search
93
+ if status is not None:
94
+ self.status = status
95
+ if type is not None:
96
+ self.type = type
97
+ if version is not None:
98
+ self.version = version
99
+
100
+ @property
101
+ def algorithm(self):
102
+ r"""Gets the algorithm of this ListSimAlgorithmImagesRequest.
103
+
104
+ :return: The algorithm of this ListSimAlgorithmImagesRequest.
105
+ :rtype: int
106
+ """
107
+ return self._algorithm
108
+
109
+ @algorithm.setter
110
+ def algorithm(self, algorithm):
111
+ r"""Sets the algorithm of this ListSimAlgorithmImagesRequest.
112
+
113
+ :param algorithm: The algorithm of this ListSimAlgorithmImagesRequest.
114
+ :type algorithm: int
115
+ """
116
+ self._algorithm = algorithm
117
+
118
+ @property
119
+ def algorithm_id(self):
120
+ r"""Gets the algorithm_id of this ListSimAlgorithmImagesRequest.
121
+
122
+ 算法
123
+
124
+ :return: The algorithm_id of this ListSimAlgorithmImagesRequest.
125
+ :rtype: int
126
+ """
127
+ return self._algorithm_id
128
+
129
+ @algorithm_id.setter
130
+ def algorithm_id(self, algorithm_id):
131
+ r"""Sets the algorithm_id of this ListSimAlgorithmImagesRequest.
132
+
133
+ 算法
134
+
135
+ :param algorithm_id: The algorithm_id of this ListSimAlgorithmImagesRequest.
136
+ :type algorithm_id: int
137
+ """
138
+ self._algorithm_id = algorithm_id
139
+
140
+ @property
141
+ def limit(self):
142
+ r"""Gets the limit of this ListSimAlgorithmImagesRequest.
143
+
144
+ Number of results to return per page.
145
+
146
+ :return: The limit of this ListSimAlgorithmImagesRequest.
147
+ :rtype: int
148
+ """
149
+ return self._limit
150
+
151
+ @limit.setter
152
+ def limit(self, limit):
153
+ r"""Sets the limit of this ListSimAlgorithmImagesRequest.
154
+
155
+ Number of results to return per page.
156
+
157
+ :param limit: The limit of this ListSimAlgorithmImagesRequest.
158
+ :type limit: int
159
+ """
160
+ self._limit = limit
161
+
162
+ @property
163
+ def offset(self):
164
+ r"""Gets the offset of this ListSimAlgorithmImagesRequest.
165
+
166
+ The initial index from which to return the results.
167
+
168
+ :return: The offset of this ListSimAlgorithmImagesRequest.
169
+ :rtype: int
170
+ """
171
+ return self._offset
172
+
173
+ @offset.setter
174
+ def offset(self, offset):
175
+ r"""Sets the offset of this ListSimAlgorithmImagesRequest.
176
+
177
+ The initial index from which to return the results.
178
+
179
+ :param offset: The offset of this ListSimAlgorithmImagesRequest.
180
+ :type offset: int
181
+ """
182
+ self._offset = offset
183
+
184
+ @property
185
+ def ordering(self):
186
+ r"""Gets the ordering of this ListSimAlgorithmImagesRequest.
187
+
188
+ Which field to use when ordering the results.
189
+
190
+ :return: The ordering of this ListSimAlgorithmImagesRequest.
191
+ :rtype: str
192
+ """
193
+ return self._ordering
194
+
195
+ @ordering.setter
196
+ def ordering(self, ordering):
197
+ r"""Sets the ordering of this ListSimAlgorithmImagesRequest.
198
+
199
+ Which field to use when ordering the results.
200
+
201
+ :param ordering: The ordering of this ListSimAlgorithmImagesRequest.
202
+ :type ordering: str
203
+ """
204
+ self._ordering = ordering
205
+
206
+ @property
207
+ def search(self):
208
+ r"""Gets the search of this ListSimAlgorithmImagesRequest.
209
+
210
+ A search term.
211
+
212
+ :return: The search of this ListSimAlgorithmImagesRequest.
213
+ :rtype: str
214
+ """
215
+ return self._search
216
+
217
+ @search.setter
218
+ def search(self, search):
219
+ r"""Sets the search of this ListSimAlgorithmImagesRequest.
220
+
221
+ A search term.
222
+
223
+ :param search: The search of this ListSimAlgorithmImagesRequest.
224
+ :type search: str
225
+ """
226
+ self._search = search
227
+
228
+ @property
229
+ def status(self):
230
+ r"""Gets the status of this ListSimAlgorithmImagesRequest.
231
+
232
+ 镜像状态 * `0` - Success * `1` - Pending * `2` - Type Error * `3` - Not Found * `4` - Download Fail * `5` - Build Fail * `32` - Unknown * `100` - Init * `101` - Init Failed * `200` - To Push * `201` - Uploading
233
+
234
+ :return: The status of this ListSimAlgorithmImagesRequest.
235
+ :rtype: int
236
+ """
237
+ return self._status
238
+
239
+ @status.setter
240
+ def status(self, status):
241
+ r"""Sets the status of this ListSimAlgorithmImagesRequest.
242
+
243
+ 镜像状态 * `0` - Success * `1` - Pending * `2` - Type Error * `3` - Not Found * `4` - Download Fail * `5` - Build Fail * `32` - Unknown * `100` - Init * `101` - Init Failed * `200` - To Push * `201` - Uploading
244
+
245
+ :param status: The status of this ListSimAlgorithmImagesRequest.
246
+ :type status: int
247
+ """
248
+ self._status = status
249
+
250
+ @property
251
+ def type(self):
252
+ r"""Gets the type of this ListSimAlgorithmImagesRequest.
253
+
254
+ 镜像类型 * `build` - Build * `upload` - Upload
255
+
256
+ :return: The type of this ListSimAlgorithmImagesRequest.
257
+ :rtype: str
258
+ """
259
+ return self._type
260
+
261
+ @type.setter
262
+ def type(self, type):
263
+ r"""Sets the type of this ListSimAlgorithmImagesRequest.
264
+
265
+ 镜像类型 * `build` - Build * `upload` - Upload
266
+
267
+ :param type: The type of this ListSimAlgorithmImagesRequest.
268
+ :type type: str
269
+ """
270
+ self._type = type
271
+
272
+ @property
273
+ def version(self):
274
+ r"""Gets the version of this ListSimAlgorithmImagesRequest.
275
+
276
+ :return: The version of this ListSimAlgorithmImagesRequest.
277
+ :rtype: str
278
+ """
279
+ return self._version
280
+
281
+ @version.setter
282
+ def version(self, version):
283
+ r"""Sets the version of this ListSimAlgorithmImagesRequest.
284
+
285
+ :param version: The version of this ListSimAlgorithmImagesRequest.
286
+ :type version: str
287
+ """
288
+ self._version = version
289
+
290
+ def to_dict(self):
291
+ """Returns the model properties as a dict"""
292
+ result = {}
293
+
294
+ for attr, _ in six.iteritems(self.openapi_types):
295
+ value = getattr(self, attr)
296
+ if isinstance(value, list):
297
+ result[attr] = list(map(
298
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
299
+ value
300
+ ))
301
+ elif hasattr(value, "to_dict"):
302
+ result[attr] = value.to_dict()
303
+ elif isinstance(value, dict):
304
+ result[attr] = dict(map(
305
+ lambda item: (item[0], item[1].to_dict())
306
+ if hasattr(item[1], "to_dict") else item,
307
+ value.items()
308
+ ))
309
+ else:
310
+ if attr in self.sensitive_list:
311
+ result[attr] = "****"
312
+ else:
313
+ result[attr] = value
314
+
315
+ return result
316
+
317
+ def to_str(self):
318
+ """Returns the string representation of the model"""
319
+ import simplejson as json
320
+ if six.PY2:
321
+ import sys
322
+ reload(sys)
323
+ sys.setdefaultencoding("utf-8")
324
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
325
+
326
+ def __repr__(self):
327
+ """For `print`"""
328
+ return self.to_str()
329
+
330
+ def __eq__(self, other):
331
+ """Returns true if both objects are equal"""
332
+ if not isinstance(other, ListSimAlgorithmImagesRequest):
333
+ return False
334
+
335
+ return self.__dict__ == other.__dict__
336
+
337
+ def __ne__(self, other):
338
+ """Returns true if both objects are not equal"""
339
+ return not self == other
@@ -0,0 +1,185 @@
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 ListSimAlgorithmImagesResponse(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
+ 'count': 'int',
22
+ 'next': 'str',
23
+ 'previous': 'str',
24
+ 'results': 'list[AlgImageListSrlz]'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'count': 'count',
29
+ 'next': 'next',
30
+ 'previous': 'previous',
31
+ 'results': 'results'
32
+ }
33
+
34
+ def __init__(self, count=None, next=None, previous=None, results=None):
35
+ r"""ListSimAlgorithmImagesResponse
36
+
37
+ The model defined in huaweicloud sdk
38
+
39
+ :param count:
40
+ :type count: int
41
+ :param next:
42
+ :type next: str
43
+ :param previous:
44
+ :type previous: str
45
+ :param results:
46
+ :type results: list[:class:`huaweicloudsdkoctopus.v2.AlgImageListSrlz`]
47
+ """
48
+
49
+ super(ListSimAlgorithmImagesResponse, self).__init__()
50
+
51
+ self._count = None
52
+ self._next = None
53
+ self._previous = None
54
+ self._results = None
55
+ self.discriminator = None
56
+
57
+ if count is not None:
58
+ self.count = count
59
+ self.next = next
60
+ self.previous = previous
61
+ if results is not None:
62
+ self.results = results
63
+
64
+ @property
65
+ def count(self):
66
+ r"""Gets the count of this ListSimAlgorithmImagesResponse.
67
+
68
+ :return: The count of this ListSimAlgorithmImagesResponse.
69
+ :rtype: int
70
+ """
71
+ return self._count
72
+
73
+ @count.setter
74
+ def count(self, count):
75
+ r"""Sets the count of this ListSimAlgorithmImagesResponse.
76
+
77
+ :param count: The count of this ListSimAlgorithmImagesResponse.
78
+ :type count: int
79
+ """
80
+ self._count = count
81
+
82
+ @property
83
+ def next(self):
84
+ r"""Gets the next of this ListSimAlgorithmImagesResponse.
85
+
86
+ :return: The next of this ListSimAlgorithmImagesResponse.
87
+ :rtype: str
88
+ """
89
+ return self._next
90
+
91
+ @next.setter
92
+ def next(self, next):
93
+ r"""Sets the next of this ListSimAlgorithmImagesResponse.
94
+
95
+ :param next: The next of this ListSimAlgorithmImagesResponse.
96
+ :type next: str
97
+ """
98
+ self._next = next
99
+
100
+ @property
101
+ def previous(self):
102
+ r"""Gets the previous of this ListSimAlgorithmImagesResponse.
103
+
104
+ :return: The previous of this ListSimAlgorithmImagesResponse.
105
+ :rtype: str
106
+ """
107
+ return self._previous
108
+
109
+ @previous.setter
110
+ def previous(self, previous):
111
+ r"""Sets the previous of this ListSimAlgorithmImagesResponse.
112
+
113
+ :param previous: The previous of this ListSimAlgorithmImagesResponse.
114
+ :type previous: str
115
+ """
116
+ self._previous = previous
117
+
118
+ @property
119
+ def results(self):
120
+ r"""Gets the results of this ListSimAlgorithmImagesResponse.
121
+
122
+ :return: The results of this ListSimAlgorithmImagesResponse.
123
+ :rtype: list[:class:`huaweicloudsdkoctopus.v2.AlgImageListSrlz`]
124
+ """
125
+ return self._results
126
+
127
+ @results.setter
128
+ def results(self, results):
129
+ r"""Sets the results of this ListSimAlgorithmImagesResponse.
130
+
131
+ :param results: The results of this ListSimAlgorithmImagesResponse.
132
+ :type results: list[:class:`huaweicloudsdkoctopus.v2.AlgImageListSrlz`]
133
+ """
134
+ self._results = results
135
+
136
+ def to_dict(self):
137
+ """Returns the model properties as a dict"""
138
+ result = {}
139
+
140
+ for attr, _ in six.iteritems(self.openapi_types):
141
+ value = getattr(self, attr)
142
+ if isinstance(value, list):
143
+ result[attr] = list(map(
144
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
145
+ value
146
+ ))
147
+ elif hasattr(value, "to_dict"):
148
+ result[attr] = value.to_dict()
149
+ elif isinstance(value, dict):
150
+ result[attr] = dict(map(
151
+ lambda item: (item[0], item[1].to_dict())
152
+ if hasattr(item[1], "to_dict") else item,
153
+ value.items()
154
+ ))
155
+ else:
156
+ if attr in self.sensitive_list:
157
+ result[attr] = "****"
158
+ else:
159
+ result[attr] = value
160
+
161
+ return result
162
+
163
+ def to_str(self):
164
+ """Returns the string representation of the model"""
165
+ import simplejson as json
166
+ if six.PY2:
167
+ import sys
168
+ reload(sys)
169
+ sys.setdefaultencoding("utf-8")
170
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
171
+
172
+ def __repr__(self):
173
+ """For `print`"""
174
+ return self.to_str()
175
+
176
+ def __eq__(self, other):
177
+ """Returns true if both objects are equal"""
178
+ if not isinstance(other, ListSimAlgorithmImagesResponse):
179
+ return False
180
+
181
+ return self.__dict__ == other.__dict__
182
+
183
+ def __ne__(self, other):
184
+ """Returns true if both objects are not equal"""
185
+ return not self == other