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