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,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateSimExtensionsRequest:
|
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': 'ExtensionsCreateSrlz'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""CreateSimExtensionsRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateSimExtensionsRequest
|
33
|
+
:type body: :class:`huaweicloudsdkoctopus.v2.ExtensionsCreateSrlz`
|
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 CreateSimExtensionsRequest.
|
47
|
+
|
48
|
+
:return: The body of this CreateSimExtensionsRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.ExtensionsCreateSrlz`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this CreateSimExtensionsRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CreateSimExtensionsRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkoctopus.v2.ExtensionsCreateSrlz`
|
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, CreateSimExtensionsRequest):
|
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
|
@@ -0,0 +1,314 @@
|
|
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 CreateSimExtensionsResponse(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
|
+
'name': 'str',
|
22
|
+
'description': 'str',
|
23
|
+
'mount_path': 'str',
|
24
|
+
'url': 'str',
|
25
|
+
'id': 'int',
|
26
|
+
'created_at': 'float',
|
27
|
+
'updated_at': 'float',
|
28
|
+
'file': 'FileCreateSrlz'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'name': 'name',
|
33
|
+
'description': 'description',
|
34
|
+
'mount_path': 'mount_path',
|
35
|
+
'url': 'url',
|
36
|
+
'id': 'id',
|
37
|
+
'created_at': 'created_at',
|
38
|
+
'updated_at': 'updated_at',
|
39
|
+
'file': 'file'
|
40
|
+
}
|
41
|
+
|
42
|
+
def __init__(self, name=None, description=None, mount_path=None, url=None, id=None, created_at=None, updated_at=None, file=None):
|
43
|
+
r"""CreateSimExtensionsResponse
|
44
|
+
|
45
|
+
The model defined in huaweicloud sdk
|
46
|
+
|
47
|
+
:param name: 名称
|
48
|
+
:type name: str
|
49
|
+
:param description: 描述
|
50
|
+
:type description: str
|
51
|
+
:param mount_path: 挂载路径
|
52
|
+
:type mount_path: str
|
53
|
+
:param url: 扩展文件资源地址。
|
54
|
+
:type url: str
|
55
|
+
:param id: 扩展文件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 file:
|
62
|
+
:type file: :class:`huaweicloudsdkoctopus.v2.FileCreateSrlz`
|
63
|
+
"""
|
64
|
+
|
65
|
+
super(CreateSimExtensionsResponse, self).__init__()
|
66
|
+
|
67
|
+
self._name = None
|
68
|
+
self._description = None
|
69
|
+
self._mount_path = None
|
70
|
+
self._url = None
|
71
|
+
self._id = None
|
72
|
+
self._created_at = None
|
73
|
+
self._updated_at = None
|
74
|
+
self._file = None
|
75
|
+
self.discriminator = None
|
76
|
+
|
77
|
+
if name is not None:
|
78
|
+
self.name = name
|
79
|
+
self.description = description
|
80
|
+
if mount_path is not None:
|
81
|
+
self.mount_path = mount_path
|
82
|
+
if url is not None:
|
83
|
+
self.url = url
|
84
|
+
if id is not None:
|
85
|
+
self.id = id
|
86
|
+
if created_at is not None:
|
87
|
+
self.created_at = created_at
|
88
|
+
if updated_at is not None:
|
89
|
+
self.updated_at = updated_at
|
90
|
+
if file is not None:
|
91
|
+
self.file = file
|
92
|
+
|
93
|
+
@property
|
94
|
+
def name(self):
|
95
|
+
r"""Gets the name of this CreateSimExtensionsResponse.
|
96
|
+
|
97
|
+
名称
|
98
|
+
|
99
|
+
:return: The name of this CreateSimExtensionsResponse.
|
100
|
+
:rtype: str
|
101
|
+
"""
|
102
|
+
return self._name
|
103
|
+
|
104
|
+
@name.setter
|
105
|
+
def name(self, name):
|
106
|
+
r"""Sets the name of this CreateSimExtensionsResponse.
|
107
|
+
|
108
|
+
名称
|
109
|
+
|
110
|
+
:param name: The name of this CreateSimExtensionsResponse.
|
111
|
+
:type name: str
|
112
|
+
"""
|
113
|
+
self._name = name
|
114
|
+
|
115
|
+
@property
|
116
|
+
def description(self):
|
117
|
+
r"""Gets the description of this CreateSimExtensionsResponse.
|
118
|
+
|
119
|
+
描述
|
120
|
+
|
121
|
+
:return: The description of this CreateSimExtensionsResponse.
|
122
|
+
:rtype: str
|
123
|
+
"""
|
124
|
+
return self._description
|
125
|
+
|
126
|
+
@description.setter
|
127
|
+
def description(self, description):
|
128
|
+
r"""Sets the description of this CreateSimExtensionsResponse.
|
129
|
+
|
130
|
+
描述
|
131
|
+
|
132
|
+
:param description: The description of this CreateSimExtensionsResponse.
|
133
|
+
:type description: str
|
134
|
+
"""
|
135
|
+
self._description = description
|
136
|
+
|
137
|
+
@property
|
138
|
+
def mount_path(self):
|
139
|
+
r"""Gets the mount_path of this CreateSimExtensionsResponse.
|
140
|
+
|
141
|
+
挂载路径
|
142
|
+
|
143
|
+
:return: The mount_path of this CreateSimExtensionsResponse.
|
144
|
+
:rtype: str
|
145
|
+
"""
|
146
|
+
return self._mount_path
|
147
|
+
|
148
|
+
@mount_path.setter
|
149
|
+
def mount_path(self, mount_path):
|
150
|
+
r"""Sets the mount_path of this CreateSimExtensionsResponse.
|
151
|
+
|
152
|
+
挂载路径
|
153
|
+
|
154
|
+
:param mount_path: The mount_path of this CreateSimExtensionsResponse.
|
155
|
+
:type mount_path: str
|
156
|
+
"""
|
157
|
+
self._mount_path = mount_path
|
158
|
+
|
159
|
+
@property
|
160
|
+
def url(self):
|
161
|
+
r"""Gets the url of this CreateSimExtensionsResponse.
|
162
|
+
|
163
|
+
扩展文件资源地址。
|
164
|
+
|
165
|
+
:return: The url of this CreateSimExtensionsResponse.
|
166
|
+
:rtype: str
|
167
|
+
"""
|
168
|
+
return self._url
|
169
|
+
|
170
|
+
@url.setter
|
171
|
+
def url(self, url):
|
172
|
+
r"""Sets the url of this CreateSimExtensionsResponse.
|
173
|
+
|
174
|
+
扩展文件资源地址。
|
175
|
+
|
176
|
+
:param url: The url of this CreateSimExtensionsResponse.
|
177
|
+
:type url: str
|
178
|
+
"""
|
179
|
+
self._url = url
|
180
|
+
|
181
|
+
@property
|
182
|
+
def id(self):
|
183
|
+
r"""Gets the id of this CreateSimExtensionsResponse.
|
184
|
+
|
185
|
+
扩展文件ID。
|
186
|
+
|
187
|
+
:return: The id of this CreateSimExtensionsResponse.
|
188
|
+
:rtype: int
|
189
|
+
"""
|
190
|
+
return self._id
|
191
|
+
|
192
|
+
@id.setter
|
193
|
+
def id(self, id):
|
194
|
+
r"""Sets the id of this CreateSimExtensionsResponse.
|
195
|
+
|
196
|
+
扩展文件ID。
|
197
|
+
|
198
|
+
:param id: The id of this CreateSimExtensionsResponse.
|
199
|
+
:type id: int
|
200
|
+
"""
|
201
|
+
self._id = id
|
202
|
+
|
203
|
+
@property
|
204
|
+
def created_at(self):
|
205
|
+
r"""Gets the created_at of this CreateSimExtensionsResponse.
|
206
|
+
|
207
|
+
创建时间。
|
208
|
+
|
209
|
+
:return: The created_at of this CreateSimExtensionsResponse.
|
210
|
+
:rtype: float
|
211
|
+
"""
|
212
|
+
return self._created_at
|
213
|
+
|
214
|
+
@created_at.setter
|
215
|
+
def created_at(self, created_at):
|
216
|
+
r"""Sets the created_at of this CreateSimExtensionsResponse.
|
217
|
+
|
218
|
+
创建时间。
|
219
|
+
|
220
|
+
:param created_at: The created_at of this CreateSimExtensionsResponse.
|
221
|
+
:type created_at: float
|
222
|
+
"""
|
223
|
+
self._created_at = created_at
|
224
|
+
|
225
|
+
@property
|
226
|
+
def updated_at(self):
|
227
|
+
r"""Gets the updated_at of this CreateSimExtensionsResponse.
|
228
|
+
|
229
|
+
更新时间。
|
230
|
+
|
231
|
+
:return: The updated_at of this CreateSimExtensionsResponse.
|
232
|
+
:rtype: float
|
233
|
+
"""
|
234
|
+
return self._updated_at
|
235
|
+
|
236
|
+
@updated_at.setter
|
237
|
+
def updated_at(self, updated_at):
|
238
|
+
r"""Sets the updated_at of this CreateSimExtensionsResponse.
|
239
|
+
|
240
|
+
更新时间。
|
241
|
+
|
242
|
+
:param updated_at: The updated_at of this CreateSimExtensionsResponse.
|
243
|
+
:type updated_at: float
|
244
|
+
"""
|
245
|
+
self._updated_at = updated_at
|
246
|
+
|
247
|
+
@property
|
248
|
+
def file(self):
|
249
|
+
r"""Gets the file of this CreateSimExtensionsResponse.
|
250
|
+
|
251
|
+
:return: The file of this CreateSimExtensionsResponse.
|
252
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.FileCreateSrlz`
|
253
|
+
"""
|
254
|
+
return self._file
|
255
|
+
|
256
|
+
@file.setter
|
257
|
+
def file(self, file):
|
258
|
+
r"""Sets the file of this CreateSimExtensionsResponse.
|
259
|
+
|
260
|
+
:param file: The file of this CreateSimExtensionsResponse.
|
261
|
+
:type file: :class:`huaweicloudsdkoctopus.v2.FileCreateSrlz`
|
262
|
+
"""
|
263
|
+
self._file = file
|
264
|
+
|
265
|
+
def to_dict(self):
|
266
|
+
"""Returns the model properties as a dict"""
|
267
|
+
result = {}
|
268
|
+
|
269
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
270
|
+
value = getattr(self, attr)
|
271
|
+
if isinstance(value, list):
|
272
|
+
result[attr] = list(map(
|
273
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
274
|
+
value
|
275
|
+
))
|
276
|
+
elif hasattr(value, "to_dict"):
|
277
|
+
result[attr] = value.to_dict()
|
278
|
+
elif isinstance(value, dict):
|
279
|
+
result[attr] = dict(map(
|
280
|
+
lambda item: (item[0], item[1].to_dict())
|
281
|
+
if hasattr(item[1], "to_dict") else item,
|
282
|
+
value.items()
|
283
|
+
))
|
284
|
+
else:
|
285
|
+
if attr in self.sensitive_list:
|
286
|
+
result[attr] = "****"
|
287
|
+
else:
|
288
|
+
result[attr] = value
|
289
|
+
|
290
|
+
return result
|
291
|
+
|
292
|
+
def to_str(self):
|
293
|
+
"""Returns the string representation of the model"""
|
294
|
+
import simplejson as json
|
295
|
+
if six.PY2:
|
296
|
+
import sys
|
297
|
+
reload(sys)
|
298
|
+
sys.setdefaultencoding("utf-8")
|
299
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
300
|
+
|
301
|
+
def __repr__(self):
|
302
|
+
"""For `print`"""
|
303
|
+
return self.to_str()
|
304
|
+
|
305
|
+
def __eq__(self, other):
|
306
|
+
"""Returns true if both objects are equal"""
|
307
|
+
if not isinstance(other, CreateSimExtensionsResponse):
|
308
|
+
return False
|
309
|
+
|
310
|
+
return self.__dict__ == other.__dict__
|
311
|
+
|
312
|
+
def __ne__(self, other):
|
313
|
+
"""Returns true if both objects are not equal"""
|
314
|
+
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 DeleteSimAlgorithmImagesRequest:
|
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"""DeleteSimAlgorithmImagesRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param id: A unique integer value identifying this alg image.
|
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 DeleteSimAlgorithmImagesRequest.
|
46
|
+
|
47
|
+
A unique integer value identifying this alg image.
|
48
|
+
|
49
|
+
:return: The id of this DeleteSimAlgorithmImagesRequest.
|
50
|
+
:rtype: int
|
51
|
+
"""
|
52
|
+
return self._id
|
53
|
+
|
54
|
+
@id.setter
|
55
|
+
def id(self, id):
|
56
|
+
r"""Sets the id of this DeleteSimAlgorithmImagesRequest.
|
57
|
+
|
58
|
+
A unique integer value identifying this alg image.
|
59
|
+
|
60
|
+
:param id: The id of this DeleteSimAlgorithmImagesRequest.
|
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, DeleteSimAlgorithmImagesRequest):
|
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
|
@@ -0,0 +1,85 @@
|
|
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 DeleteSimAlgorithmImagesResponse(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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""DeleteSimAlgorithmImagesResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(DeleteSimAlgorithmImagesResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, DeleteSimAlgorithmImagesResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|