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