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