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,404 @@
|
|
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 CreateSimAlgorithmsResponse(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
|
+
'compilation': 'CompilationCreateSrlz',
|
26
|
+
'build': 'BuildCreateSrlz',
|
27
|
+
'run': 'RunSrlz',
|
28
|
+
'name': 'str',
|
29
|
+
'description': 'str',
|
30
|
+
'category': 'CategoryF62Enum',
|
31
|
+
'mount_dir': 'str',
|
32
|
+
'image_repo_id': 'int'
|
33
|
+
}
|
34
|
+
|
35
|
+
attribute_map = {
|
36
|
+
'url': 'url',
|
37
|
+
'id': 'id',
|
38
|
+
'created_at': 'created_at',
|
39
|
+
'updated_at': 'updated_at',
|
40
|
+
'compilation': 'compilation',
|
41
|
+
'build': 'build',
|
42
|
+
'run': 'run',
|
43
|
+
'name': 'name',
|
44
|
+
'description': 'description',
|
45
|
+
'category': 'category',
|
46
|
+
'mount_dir': 'mount_dir',
|
47
|
+
'image_repo_id': 'image_repo_id'
|
48
|
+
}
|
49
|
+
|
50
|
+
def __init__(self, url=None, id=None, created_at=None, updated_at=None, compilation=None, build=None, run=None, name=None, description=None, category=None, mount_dir=None, image_repo_id=None):
|
51
|
+
r"""CreateSimAlgorithmsResponse
|
52
|
+
|
53
|
+
The model defined in huaweicloud sdk
|
54
|
+
|
55
|
+
:param url:
|
56
|
+
:type url: str
|
57
|
+
:param id:
|
58
|
+
:type id: int
|
59
|
+
:param created_at:
|
60
|
+
:type created_at: float
|
61
|
+
:param updated_at:
|
62
|
+
:type updated_at: float
|
63
|
+
:param compilation:
|
64
|
+
:type compilation: :class:`huaweicloudsdkoctopus.v2.CompilationCreateSrlz`
|
65
|
+
:param build:
|
66
|
+
:type build: :class:`huaweicloudsdkoctopus.v2.BuildCreateSrlz`
|
67
|
+
:param run:
|
68
|
+
:type run: :class:`huaweicloudsdkoctopus.v2.RunSrlz`
|
69
|
+
:param name: 名称
|
70
|
+
:type name: str
|
71
|
+
:param description: 描述
|
72
|
+
:type description: str
|
73
|
+
:param category: 算法类型 * `code` - Code * `artifact` - Artifact * `image` - Image
|
74
|
+
:type category: :class:`huaweicloudsdkoctopus.v2.CategoryF62Enum`
|
75
|
+
:param mount_dir: 挂载目录,需绝对路径
|
76
|
+
:type mount_dir: str
|
77
|
+
:param image_repo_id: 镜像id
|
78
|
+
:type image_repo_id: int
|
79
|
+
"""
|
80
|
+
|
81
|
+
super(CreateSimAlgorithmsResponse, self).__init__()
|
82
|
+
|
83
|
+
self._url = None
|
84
|
+
self._id = None
|
85
|
+
self._created_at = None
|
86
|
+
self._updated_at = None
|
87
|
+
self._compilation = None
|
88
|
+
self._build = None
|
89
|
+
self._run = None
|
90
|
+
self._name = None
|
91
|
+
self._description = None
|
92
|
+
self._category = None
|
93
|
+
self._mount_dir = None
|
94
|
+
self._image_repo_id = None
|
95
|
+
self.discriminator = None
|
96
|
+
|
97
|
+
if url is not None:
|
98
|
+
self.url = url
|
99
|
+
if id is not None:
|
100
|
+
self.id = id
|
101
|
+
if created_at is not None:
|
102
|
+
self.created_at = created_at
|
103
|
+
if updated_at is not None:
|
104
|
+
self.updated_at = updated_at
|
105
|
+
self.compilation = compilation
|
106
|
+
self.build = build
|
107
|
+
if run is not None:
|
108
|
+
self.run = run
|
109
|
+
if name is not None:
|
110
|
+
self.name = name
|
111
|
+
self.description = description
|
112
|
+
if category is not None:
|
113
|
+
self.category = category
|
114
|
+
if mount_dir is not None:
|
115
|
+
self.mount_dir = mount_dir
|
116
|
+
if image_repo_id is not None:
|
117
|
+
self.image_repo_id = image_repo_id
|
118
|
+
|
119
|
+
@property
|
120
|
+
def url(self):
|
121
|
+
r"""Gets the url of this CreateSimAlgorithmsResponse.
|
122
|
+
|
123
|
+
:return: The url of this CreateSimAlgorithmsResponse.
|
124
|
+
:rtype: str
|
125
|
+
"""
|
126
|
+
return self._url
|
127
|
+
|
128
|
+
@url.setter
|
129
|
+
def url(self, url):
|
130
|
+
r"""Sets the url of this CreateSimAlgorithmsResponse.
|
131
|
+
|
132
|
+
:param url: The url of this CreateSimAlgorithmsResponse.
|
133
|
+
:type url: str
|
134
|
+
"""
|
135
|
+
self._url = url
|
136
|
+
|
137
|
+
@property
|
138
|
+
def id(self):
|
139
|
+
r"""Gets the id of this CreateSimAlgorithmsResponse.
|
140
|
+
|
141
|
+
:return: The id of this CreateSimAlgorithmsResponse.
|
142
|
+
:rtype: int
|
143
|
+
"""
|
144
|
+
return self._id
|
145
|
+
|
146
|
+
@id.setter
|
147
|
+
def id(self, id):
|
148
|
+
r"""Sets the id of this CreateSimAlgorithmsResponse.
|
149
|
+
|
150
|
+
:param id: The id of this CreateSimAlgorithmsResponse.
|
151
|
+
:type id: int
|
152
|
+
"""
|
153
|
+
self._id = id
|
154
|
+
|
155
|
+
@property
|
156
|
+
def created_at(self):
|
157
|
+
r"""Gets the created_at of this CreateSimAlgorithmsResponse.
|
158
|
+
|
159
|
+
:return: The created_at of this CreateSimAlgorithmsResponse.
|
160
|
+
:rtype: float
|
161
|
+
"""
|
162
|
+
return self._created_at
|
163
|
+
|
164
|
+
@created_at.setter
|
165
|
+
def created_at(self, created_at):
|
166
|
+
r"""Sets the created_at of this CreateSimAlgorithmsResponse.
|
167
|
+
|
168
|
+
:param created_at: The created_at of this CreateSimAlgorithmsResponse.
|
169
|
+
:type created_at: float
|
170
|
+
"""
|
171
|
+
self._created_at = created_at
|
172
|
+
|
173
|
+
@property
|
174
|
+
def updated_at(self):
|
175
|
+
r"""Gets the updated_at of this CreateSimAlgorithmsResponse.
|
176
|
+
|
177
|
+
:return: The updated_at of this CreateSimAlgorithmsResponse.
|
178
|
+
:rtype: float
|
179
|
+
"""
|
180
|
+
return self._updated_at
|
181
|
+
|
182
|
+
@updated_at.setter
|
183
|
+
def updated_at(self, updated_at):
|
184
|
+
r"""Sets the updated_at of this CreateSimAlgorithmsResponse.
|
185
|
+
|
186
|
+
:param updated_at: The updated_at of this CreateSimAlgorithmsResponse.
|
187
|
+
:type updated_at: float
|
188
|
+
"""
|
189
|
+
self._updated_at = updated_at
|
190
|
+
|
191
|
+
@property
|
192
|
+
def compilation(self):
|
193
|
+
r"""Gets the compilation of this CreateSimAlgorithmsResponse.
|
194
|
+
|
195
|
+
:return: The compilation of this CreateSimAlgorithmsResponse.
|
196
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CompilationCreateSrlz`
|
197
|
+
"""
|
198
|
+
return self._compilation
|
199
|
+
|
200
|
+
@compilation.setter
|
201
|
+
def compilation(self, compilation):
|
202
|
+
r"""Sets the compilation of this CreateSimAlgorithmsResponse.
|
203
|
+
|
204
|
+
:param compilation: The compilation of this CreateSimAlgorithmsResponse.
|
205
|
+
:type compilation: :class:`huaweicloudsdkoctopus.v2.CompilationCreateSrlz`
|
206
|
+
"""
|
207
|
+
self._compilation = compilation
|
208
|
+
|
209
|
+
@property
|
210
|
+
def build(self):
|
211
|
+
r"""Gets the build of this CreateSimAlgorithmsResponse.
|
212
|
+
|
213
|
+
:return: The build of this CreateSimAlgorithmsResponse.
|
214
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.BuildCreateSrlz`
|
215
|
+
"""
|
216
|
+
return self._build
|
217
|
+
|
218
|
+
@build.setter
|
219
|
+
def build(self, build):
|
220
|
+
r"""Sets the build of this CreateSimAlgorithmsResponse.
|
221
|
+
|
222
|
+
:param build: The build of this CreateSimAlgorithmsResponse.
|
223
|
+
:type build: :class:`huaweicloudsdkoctopus.v2.BuildCreateSrlz`
|
224
|
+
"""
|
225
|
+
self._build = build
|
226
|
+
|
227
|
+
@property
|
228
|
+
def run(self):
|
229
|
+
r"""Gets the run of this CreateSimAlgorithmsResponse.
|
230
|
+
|
231
|
+
:return: The run of this CreateSimAlgorithmsResponse.
|
232
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.RunSrlz`
|
233
|
+
"""
|
234
|
+
return self._run
|
235
|
+
|
236
|
+
@run.setter
|
237
|
+
def run(self, run):
|
238
|
+
r"""Sets the run of this CreateSimAlgorithmsResponse.
|
239
|
+
|
240
|
+
:param run: The run of this CreateSimAlgorithmsResponse.
|
241
|
+
:type run: :class:`huaweicloudsdkoctopus.v2.RunSrlz`
|
242
|
+
"""
|
243
|
+
self._run = run
|
244
|
+
|
245
|
+
@property
|
246
|
+
def name(self):
|
247
|
+
r"""Gets the name of this CreateSimAlgorithmsResponse.
|
248
|
+
|
249
|
+
名称
|
250
|
+
|
251
|
+
:return: The name of this CreateSimAlgorithmsResponse.
|
252
|
+
:rtype: str
|
253
|
+
"""
|
254
|
+
return self._name
|
255
|
+
|
256
|
+
@name.setter
|
257
|
+
def name(self, name):
|
258
|
+
r"""Sets the name of this CreateSimAlgorithmsResponse.
|
259
|
+
|
260
|
+
名称
|
261
|
+
|
262
|
+
:param name: The name of this CreateSimAlgorithmsResponse.
|
263
|
+
:type name: str
|
264
|
+
"""
|
265
|
+
self._name = name
|
266
|
+
|
267
|
+
@property
|
268
|
+
def description(self):
|
269
|
+
r"""Gets the description of this CreateSimAlgorithmsResponse.
|
270
|
+
|
271
|
+
描述
|
272
|
+
|
273
|
+
:return: The description of this CreateSimAlgorithmsResponse.
|
274
|
+
:rtype: str
|
275
|
+
"""
|
276
|
+
return self._description
|
277
|
+
|
278
|
+
@description.setter
|
279
|
+
def description(self, description):
|
280
|
+
r"""Sets the description of this CreateSimAlgorithmsResponse.
|
281
|
+
|
282
|
+
描述
|
283
|
+
|
284
|
+
:param description: The description of this CreateSimAlgorithmsResponse.
|
285
|
+
:type description: str
|
286
|
+
"""
|
287
|
+
self._description = description
|
288
|
+
|
289
|
+
@property
|
290
|
+
def category(self):
|
291
|
+
r"""Gets the category of this CreateSimAlgorithmsResponse.
|
292
|
+
|
293
|
+
算法类型 * `code` - Code * `artifact` - Artifact * `image` - Image
|
294
|
+
|
295
|
+
:return: The category of this CreateSimAlgorithmsResponse.
|
296
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.CategoryF62Enum`
|
297
|
+
"""
|
298
|
+
return self._category
|
299
|
+
|
300
|
+
@category.setter
|
301
|
+
def category(self, category):
|
302
|
+
r"""Sets the category of this CreateSimAlgorithmsResponse.
|
303
|
+
|
304
|
+
算法类型 * `code` - Code * `artifact` - Artifact * `image` - Image
|
305
|
+
|
306
|
+
:param category: The category of this CreateSimAlgorithmsResponse.
|
307
|
+
:type category: :class:`huaweicloudsdkoctopus.v2.CategoryF62Enum`
|
308
|
+
"""
|
309
|
+
self._category = category
|
310
|
+
|
311
|
+
@property
|
312
|
+
def mount_dir(self):
|
313
|
+
r"""Gets the mount_dir of this CreateSimAlgorithmsResponse.
|
314
|
+
|
315
|
+
挂载目录,需绝对路径
|
316
|
+
|
317
|
+
:return: The mount_dir of this CreateSimAlgorithmsResponse.
|
318
|
+
:rtype: str
|
319
|
+
"""
|
320
|
+
return self._mount_dir
|
321
|
+
|
322
|
+
@mount_dir.setter
|
323
|
+
def mount_dir(self, mount_dir):
|
324
|
+
r"""Sets the mount_dir of this CreateSimAlgorithmsResponse.
|
325
|
+
|
326
|
+
挂载目录,需绝对路径
|
327
|
+
|
328
|
+
:param mount_dir: The mount_dir of this CreateSimAlgorithmsResponse.
|
329
|
+
:type mount_dir: str
|
330
|
+
"""
|
331
|
+
self._mount_dir = mount_dir
|
332
|
+
|
333
|
+
@property
|
334
|
+
def image_repo_id(self):
|
335
|
+
r"""Gets the image_repo_id of this CreateSimAlgorithmsResponse.
|
336
|
+
|
337
|
+
镜像id
|
338
|
+
|
339
|
+
:return: The image_repo_id of this CreateSimAlgorithmsResponse.
|
340
|
+
:rtype: int
|
341
|
+
"""
|
342
|
+
return self._image_repo_id
|
343
|
+
|
344
|
+
@image_repo_id.setter
|
345
|
+
def image_repo_id(self, image_repo_id):
|
346
|
+
r"""Sets the image_repo_id of this CreateSimAlgorithmsResponse.
|
347
|
+
|
348
|
+
镜像id
|
349
|
+
|
350
|
+
:param image_repo_id: The image_repo_id of this CreateSimAlgorithmsResponse.
|
351
|
+
:type image_repo_id: int
|
352
|
+
"""
|
353
|
+
self._image_repo_id = image_repo_id
|
354
|
+
|
355
|
+
def to_dict(self):
|
356
|
+
"""Returns the model properties as a dict"""
|
357
|
+
result = {}
|
358
|
+
|
359
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
360
|
+
value = getattr(self, attr)
|
361
|
+
if isinstance(value, list):
|
362
|
+
result[attr] = list(map(
|
363
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
364
|
+
value
|
365
|
+
))
|
366
|
+
elif hasattr(value, "to_dict"):
|
367
|
+
result[attr] = value.to_dict()
|
368
|
+
elif isinstance(value, dict):
|
369
|
+
result[attr] = dict(map(
|
370
|
+
lambda item: (item[0], item[1].to_dict())
|
371
|
+
if hasattr(item[1], "to_dict") else item,
|
372
|
+
value.items()
|
373
|
+
))
|
374
|
+
else:
|
375
|
+
if attr in self.sensitive_list:
|
376
|
+
result[attr] = "****"
|
377
|
+
else:
|
378
|
+
result[attr] = value
|
379
|
+
|
380
|
+
return result
|
381
|
+
|
382
|
+
def to_str(self):
|
383
|
+
"""Returns the string representation of the model"""
|
384
|
+
import simplejson as json
|
385
|
+
if six.PY2:
|
386
|
+
import sys
|
387
|
+
reload(sys)
|
388
|
+
sys.setdefaultencoding("utf-8")
|
389
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
390
|
+
|
391
|
+
def __repr__(self):
|
392
|
+
"""For `print`"""
|
393
|
+
return self.to_str()
|
394
|
+
|
395
|
+
def __eq__(self, other):
|
396
|
+
"""Returns true if both objects are equal"""
|
397
|
+
if not isinstance(other, CreateSimAlgorithmsResponse):
|
398
|
+
return False
|
399
|
+
|
400
|
+
return self.__dict__ == other.__dict__
|
401
|
+
|
402
|
+
def __ne__(self, other):
|
403
|
+
"""Returns true if both objects are not equal"""
|
404
|
+
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 CreateSimBatchConfigsRequest:
|
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': 'BatchConfigSrlz'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""CreateSimBatchConfigsRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateSimBatchConfigsRequest
|
33
|
+
:type body: :class:`huaweicloudsdkoctopus.v2.BatchConfigSrlz`
|
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 CreateSimBatchConfigsRequest.
|
47
|
+
|
48
|
+
:return: The body of this CreateSimBatchConfigsRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.BatchConfigSrlz`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this CreateSimBatchConfigsRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CreateSimBatchConfigsRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkoctopus.v2.BatchConfigSrlz`
|
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, CreateSimBatchConfigsRequest):
|
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
|