huaweicloudsdkoctopus 3.1.160__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/__init__.py +0 -0
- huaweicloudsdkoctopus/v2/__init__.py +122 -0
- huaweicloudsdkoctopus/v2/model/__init__.py +119 -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_create_request.py +198 -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_batches_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_response.py +253 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_response.py +377 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +618 -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/family_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/file_create_req_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/file_create_srlz.py +366 -0
- huaweicloudsdkoctopus/v2/model/file_nested_create_req_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
- huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
- huaweicloudsdkoctopus/v2/model/label_brief_srlz.py +279 -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/list_sim_simulations_request.py +401 -0
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
- huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +547 -0
- huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +162 -0
- huaweicloudsdkoctopus/v2/model/map_version_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/mutable_file_srlz.py +114 -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/patched_file_detail_srlz.py +144 -0
- huaweicloudsdkoctopus/v2/model/post_response.py +140 -0
- huaweicloudsdkoctopus/v2/model/post_response_field.py +236 -0
- huaweicloudsdkoctopus/v2/model/priority_enum.py +91 -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/scenario_create_req_srlz.py +439 -0
- huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +548 -0
- huaweicloudsdkoctopus/v2/model/scenario_status_enum.py +92 -0
- huaweicloudsdkoctopus/v2/model/scenario_version_enum.py +91 -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/show_sim_simulations_files_request.py +142 -0
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
- huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
- huaweicloudsdkoctopus/v2/model/status15e_enum.py +99 -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/model/update_sim_sm_maps_files_request.py +167 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_response.py +435 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_request.py +167 -0
- huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_response.py +435 -0
- huaweicloudsdkoctopus/v2/octopus_async_client.py +2262 -0
- huaweicloudsdkoctopus/v2/octopus_client.py +2259 -0
- huaweicloudsdkoctopus/v2/region/__init__.py +0 -0
- huaweicloudsdkoctopus/v2/region/octopus_region.py +31 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/RECORD +126 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkoctopus-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,291 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ExtensionsListSrlz:
|
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
|
+
'url': 'str',
|
21
|
+
'id': 'int',
|
22
|
+
'created_at': 'float',
|
23
|
+
'updated_at': 'float',
|
24
|
+
'status': 'int',
|
25
|
+
'name': 'str',
|
26
|
+
'filename': 'str',
|
27
|
+
'mount_path': 'str'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'url': 'url',
|
32
|
+
'id': 'id',
|
33
|
+
'created_at': 'created_at',
|
34
|
+
'updated_at': 'updated_at',
|
35
|
+
'status': 'status',
|
36
|
+
'name': 'name',
|
37
|
+
'filename': 'filename',
|
38
|
+
'mount_path': 'mount_path'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, url=None, id=None, created_at=None, updated_at=None, status=None, name=None, filename=None, mount_path=None):
|
42
|
+
r"""ExtensionsListSrlz
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param url:
|
47
|
+
:type url: str
|
48
|
+
:param id:
|
49
|
+
:type id: int
|
50
|
+
:param created_at:
|
51
|
+
:type created_at: float
|
52
|
+
:param updated_at:
|
53
|
+
:type updated_at: float
|
54
|
+
:param status:
|
55
|
+
:type status: int
|
56
|
+
:param name: 名称
|
57
|
+
:type name: str
|
58
|
+
:param filename: 文件名称
|
59
|
+
:type filename: str
|
60
|
+
:param mount_path: 加载路径
|
61
|
+
:type mount_path: str
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._url = None
|
67
|
+
self._id = None
|
68
|
+
self._created_at = None
|
69
|
+
self._updated_at = None
|
70
|
+
self._status = None
|
71
|
+
self._name = None
|
72
|
+
self._filename = None
|
73
|
+
self._mount_path = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
self.url = url
|
77
|
+
self.id = id
|
78
|
+
self.created_at = created_at
|
79
|
+
self.updated_at = updated_at
|
80
|
+
self.status = status
|
81
|
+
self.name = name
|
82
|
+
if filename is not None:
|
83
|
+
self.filename = filename
|
84
|
+
self.mount_path = mount_path
|
85
|
+
|
86
|
+
@property
|
87
|
+
def url(self):
|
88
|
+
r"""Gets the url of this ExtensionsListSrlz.
|
89
|
+
|
90
|
+
:return: The url of this ExtensionsListSrlz.
|
91
|
+
:rtype: str
|
92
|
+
"""
|
93
|
+
return self._url
|
94
|
+
|
95
|
+
@url.setter
|
96
|
+
def url(self, url):
|
97
|
+
r"""Sets the url of this ExtensionsListSrlz.
|
98
|
+
|
99
|
+
:param url: The url of this ExtensionsListSrlz.
|
100
|
+
:type url: str
|
101
|
+
"""
|
102
|
+
self._url = url
|
103
|
+
|
104
|
+
@property
|
105
|
+
def id(self):
|
106
|
+
r"""Gets the id of this ExtensionsListSrlz.
|
107
|
+
|
108
|
+
:return: The id of this ExtensionsListSrlz.
|
109
|
+
:rtype: int
|
110
|
+
"""
|
111
|
+
return self._id
|
112
|
+
|
113
|
+
@id.setter
|
114
|
+
def id(self, id):
|
115
|
+
r"""Sets the id of this ExtensionsListSrlz.
|
116
|
+
|
117
|
+
:param id: The id of this ExtensionsListSrlz.
|
118
|
+
:type id: int
|
119
|
+
"""
|
120
|
+
self._id = id
|
121
|
+
|
122
|
+
@property
|
123
|
+
def created_at(self):
|
124
|
+
r"""Gets the created_at of this ExtensionsListSrlz.
|
125
|
+
|
126
|
+
:return: The created_at of this ExtensionsListSrlz.
|
127
|
+
:rtype: float
|
128
|
+
"""
|
129
|
+
return self._created_at
|
130
|
+
|
131
|
+
@created_at.setter
|
132
|
+
def created_at(self, created_at):
|
133
|
+
r"""Sets the created_at of this ExtensionsListSrlz.
|
134
|
+
|
135
|
+
:param created_at: The created_at of this ExtensionsListSrlz.
|
136
|
+
:type created_at: float
|
137
|
+
"""
|
138
|
+
self._created_at = created_at
|
139
|
+
|
140
|
+
@property
|
141
|
+
def updated_at(self):
|
142
|
+
r"""Gets the updated_at of this ExtensionsListSrlz.
|
143
|
+
|
144
|
+
:return: The updated_at of this ExtensionsListSrlz.
|
145
|
+
:rtype: float
|
146
|
+
"""
|
147
|
+
return self._updated_at
|
148
|
+
|
149
|
+
@updated_at.setter
|
150
|
+
def updated_at(self, updated_at):
|
151
|
+
r"""Sets the updated_at of this ExtensionsListSrlz.
|
152
|
+
|
153
|
+
:param updated_at: The updated_at of this ExtensionsListSrlz.
|
154
|
+
:type updated_at: float
|
155
|
+
"""
|
156
|
+
self._updated_at = updated_at
|
157
|
+
|
158
|
+
@property
|
159
|
+
def status(self):
|
160
|
+
r"""Gets the status of this ExtensionsListSrlz.
|
161
|
+
|
162
|
+
:return: The status of this ExtensionsListSrlz.
|
163
|
+
:rtype: int
|
164
|
+
"""
|
165
|
+
return self._status
|
166
|
+
|
167
|
+
@status.setter
|
168
|
+
def status(self, status):
|
169
|
+
r"""Sets the status of this ExtensionsListSrlz.
|
170
|
+
|
171
|
+
:param status: The status of this ExtensionsListSrlz.
|
172
|
+
:type status: int
|
173
|
+
"""
|
174
|
+
self._status = status
|
175
|
+
|
176
|
+
@property
|
177
|
+
def name(self):
|
178
|
+
r"""Gets the name of this ExtensionsListSrlz.
|
179
|
+
|
180
|
+
名称
|
181
|
+
|
182
|
+
:return: The name of this ExtensionsListSrlz.
|
183
|
+
:rtype: str
|
184
|
+
"""
|
185
|
+
return self._name
|
186
|
+
|
187
|
+
@name.setter
|
188
|
+
def name(self, name):
|
189
|
+
r"""Sets the name of this ExtensionsListSrlz.
|
190
|
+
|
191
|
+
名称
|
192
|
+
|
193
|
+
:param name: The name of this ExtensionsListSrlz.
|
194
|
+
:type name: str
|
195
|
+
"""
|
196
|
+
self._name = name
|
197
|
+
|
198
|
+
@property
|
199
|
+
def filename(self):
|
200
|
+
r"""Gets the filename of this ExtensionsListSrlz.
|
201
|
+
|
202
|
+
文件名称
|
203
|
+
|
204
|
+
:return: The filename of this ExtensionsListSrlz.
|
205
|
+
:rtype: str
|
206
|
+
"""
|
207
|
+
return self._filename
|
208
|
+
|
209
|
+
@filename.setter
|
210
|
+
def filename(self, filename):
|
211
|
+
r"""Sets the filename of this ExtensionsListSrlz.
|
212
|
+
|
213
|
+
文件名称
|
214
|
+
|
215
|
+
:param filename: The filename of this ExtensionsListSrlz.
|
216
|
+
:type filename: str
|
217
|
+
"""
|
218
|
+
self._filename = filename
|
219
|
+
|
220
|
+
@property
|
221
|
+
def mount_path(self):
|
222
|
+
r"""Gets the mount_path of this ExtensionsListSrlz.
|
223
|
+
|
224
|
+
加载路径
|
225
|
+
|
226
|
+
:return: The mount_path of this ExtensionsListSrlz.
|
227
|
+
:rtype: str
|
228
|
+
"""
|
229
|
+
return self._mount_path
|
230
|
+
|
231
|
+
@mount_path.setter
|
232
|
+
def mount_path(self, mount_path):
|
233
|
+
r"""Sets the mount_path of this ExtensionsListSrlz.
|
234
|
+
|
235
|
+
加载路径
|
236
|
+
|
237
|
+
:param mount_path: The mount_path of this ExtensionsListSrlz.
|
238
|
+
:type mount_path: str
|
239
|
+
"""
|
240
|
+
self._mount_path = mount_path
|
241
|
+
|
242
|
+
def to_dict(self):
|
243
|
+
"""Returns the model properties as a dict"""
|
244
|
+
result = {}
|
245
|
+
|
246
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
247
|
+
value = getattr(self, attr)
|
248
|
+
if isinstance(value, list):
|
249
|
+
result[attr] = list(map(
|
250
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
251
|
+
value
|
252
|
+
))
|
253
|
+
elif hasattr(value, "to_dict"):
|
254
|
+
result[attr] = value.to_dict()
|
255
|
+
elif isinstance(value, dict):
|
256
|
+
result[attr] = dict(map(
|
257
|
+
lambda item: (item[0], item[1].to_dict())
|
258
|
+
if hasattr(item[1], "to_dict") else item,
|
259
|
+
value.items()
|
260
|
+
))
|
261
|
+
else:
|
262
|
+
if attr in self.sensitive_list:
|
263
|
+
result[attr] = "****"
|
264
|
+
else:
|
265
|
+
result[attr] = value
|
266
|
+
|
267
|
+
return result
|
268
|
+
|
269
|
+
def to_str(self):
|
270
|
+
"""Returns the string representation of the model"""
|
271
|
+
import simplejson as json
|
272
|
+
if six.PY2:
|
273
|
+
import sys
|
274
|
+
reload(sys)
|
275
|
+
sys.setdefaultencoding("utf-8")
|
276
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
277
|
+
|
278
|
+
def __repr__(self):
|
279
|
+
"""For `print`"""
|
280
|
+
return self.to_str()
|
281
|
+
|
282
|
+
def __eq__(self, other):
|
283
|
+
"""Returns true if both objects are equal"""
|
284
|
+
if not isinstance(other, ExtensionsListSrlz):
|
285
|
+
return False
|
286
|
+
|
287
|
+
return self.__dict__ == other.__dict__
|
288
|
+
|
289
|
+
def __ne__(self, other):
|
290
|
+
"""Returns true if both objects are not equal"""
|
291
|
+
return not self == other
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class FamilyEnum:
|
9
|
+
"""
|
10
|
+
allowed enum values
|
11
|
+
"""
|
12
|
+
_0 = "0"
|
13
|
+
_1 = "1"
|
14
|
+
_2 = "2"
|
15
|
+
_3 = "3"
|
16
|
+
_4 = "4"
|
17
|
+
"""
|
18
|
+
Attributes:
|
19
|
+
openapi_types (dict): The key is attribute name
|
20
|
+
and the value is attribute type.
|
21
|
+
attribute_map (dict): The key is attribute name
|
22
|
+
and the value is json key in definition.
|
23
|
+
"""
|
24
|
+
sensitive_list = []
|
25
|
+
|
26
|
+
openapi_types = {
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self):
|
33
|
+
r"""FamilyEnum
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
"""
|
38
|
+
|
39
|
+
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
def to_dict(self):
|
43
|
+
"""Returns the model properties as a dict"""
|
44
|
+
result = {}
|
45
|
+
|
46
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
47
|
+
value = getattr(self, attr)
|
48
|
+
if isinstance(value, list):
|
49
|
+
result[attr] = list(map(
|
50
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
51
|
+
value
|
52
|
+
))
|
53
|
+
elif hasattr(value, "to_dict"):
|
54
|
+
result[attr] = value.to_dict()
|
55
|
+
elif isinstance(value, dict):
|
56
|
+
result[attr] = dict(map(
|
57
|
+
lambda item: (item[0], item[1].to_dict())
|
58
|
+
if hasattr(item[1], "to_dict") else item,
|
59
|
+
value.items()
|
60
|
+
))
|
61
|
+
else:
|
62
|
+
if attr in self.sensitive_list:
|
63
|
+
result[attr] = "****"
|
64
|
+
else:
|
65
|
+
result[attr] = value
|
66
|
+
|
67
|
+
return result
|
68
|
+
|
69
|
+
def to_str(self):
|
70
|
+
"""Returns the string representation of the model"""
|
71
|
+
import simplejson as json
|
72
|
+
if six.PY2:
|
73
|
+
import sys
|
74
|
+
reload(sys)
|
75
|
+
sys.setdefaultencoding("utf-8")
|
76
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
77
|
+
|
78
|
+
def __repr__(self):
|
79
|
+
"""For `print`"""
|
80
|
+
return self.to_str()
|
81
|
+
|
82
|
+
def __eq__(self, other):
|
83
|
+
"""Returns true if both objects are equal"""
|
84
|
+
if not isinstance(other, FamilyEnum):
|
85
|
+
return False
|
86
|
+
|
87
|
+
return self.__dict__ == other.__dict__
|
88
|
+
|
89
|
+
def __ne__(self, other):
|
90
|
+
"""Returns true if both objects are not equal"""
|
91
|
+
return not self == other
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class FileCreateReqSrlz:
|
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
|
+
'sha256': 'str',
|
21
|
+
'filename': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'sha256': 'sha256',
|
26
|
+
'filename': 'filename'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, sha256=None, filename=None):
|
30
|
+
r"""FileCreateReqSrlz
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param sha256: 文件sha256值
|
35
|
+
:type sha256: str
|
36
|
+
:param filename: 文件名
|
37
|
+
:type filename: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._sha256 = None
|
43
|
+
self._filename = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.sha256 = sha256
|
47
|
+
self.filename = filename
|
48
|
+
|
49
|
+
@property
|
50
|
+
def sha256(self):
|
51
|
+
r"""Gets the sha256 of this FileCreateReqSrlz.
|
52
|
+
|
53
|
+
文件sha256值
|
54
|
+
|
55
|
+
:return: The sha256 of this FileCreateReqSrlz.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._sha256
|
59
|
+
|
60
|
+
@sha256.setter
|
61
|
+
def sha256(self, sha256):
|
62
|
+
r"""Sets the sha256 of this FileCreateReqSrlz.
|
63
|
+
|
64
|
+
文件sha256值
|
65
|
+
|
66
|
+
:param sha256: The sha256 of this FileCreateReqSrlz.
|
67
|
+
:type sha256: str
|
68
|
+
"""
|
69
|
+
self._sha256 = sha256
|
70
|
+
|
71
|
+
@property
|
72
|
+
def filename(self):
|
73
|
+
r"""Gets the filename of this FileCreateReqSrlz.
|
74
|
+
|
75
|
+
文件名
|
76
|
+
|
77
|
+
:return: The filename of this FileCreateReqSrlz.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._filename
|
81
|
+
|
82
|
+
@filename.setter
|
83
|
+
def filename(self, filename):
|
84
|
+
r"""Sets the filename of this FileCreateReqSrlz.
|
85
|
+
|
86
|
+
文件名
|
87
|
+
|
88
|
+
:param filename: The filename of this FileCreateReqSrlz.
|
89
|
+
:type filename: str
|
90
|
+
"""
|
91
|
+
self._filename = filename
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, FileCreateReqSrlz):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|