huaweicloudsdkobs 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.
- huaweicloudsdkobs/__init__.py +0 -0
- huaweicloudsdkobs/v1/__init__.py +66 -0
- huaweicloudsdkobs/v1/model/__init__.py +63 -0
- huaweicloudsdkobs/v1/model/access_control_list.py +113 -0
- huaweicloudsdkobs/v1/model/bucket.py +233 -0
- huaweicloudsdkobs/v1/model/buckets.py +117 -0
- huaweicloudsdkobs/v1/model/common_prefixes.py +113 -0
- huaweicloudsdkobs/v1/model/contents.py +287 -0
- huaweicloudsdkobs/v1/model/copy_object_request.py +839 -0
- huaweicloudsdkobs/v1/model/copy_object_response.py +443 -0
- huaweicloudsdkobs/v1/model/create_bucket_request.py +605 -0
- huaweicloudsdkobs/v1/model/create_bucket_request_body.py +117 -0
- huaweicloudsdkobs/v1/model/create_bucket_response.py +239 -0
- huaweicloudsdkobs/v1/model/delete_bucket_customdomain_request.py +173 -0
- huaweicloudsdkobs/v1/model/delete_bucket_customdomain_response.py +239 -0
- huaweicloudsdkobs/v1/model/delete_bucket_request.py +145 -0
- huaweicloudsdkobs/v1/model/delete_bucket_response.py +239 -0
- huaweicloudsdkobs/v1/model/delete_object.py +146 -0
- huaweicloudsdkobs/v1/model/delete_object_request.py +202 -0
- huaweicloudsdkobs/v1/model/delete_object_response.py +289 -0
- huaweicloudsdkobs/v1/model/delete_objects_request.py +226 -0
- huaweicloudsdkobs/v1/model/delete_objects_request_body.py +171 -0
- huaweicloudsdkobs/v1/model/delete_objects_response.py +318 -0
- huaweicloudsdkobs/v1/model/delete_result_deleted.py +204 -0
- huaweicloudsdkobs/v1/model/delete_result_error.py +175 -0
- huaweicloudsdkobs/v1/model/domains.py +173 -0
- huaweicloudsdkobs/v1/model/filter_object.py +113 -0
- huaweicloudsdkobs/v1/model/filter_rule.py +146 -0
- huaweicloudsdkobs/v1/model/function_stage_configuration.py +229 -0
- huaweicloudsdkobs/v1/model/get_bucket_acl_request.py +173 -0
- huaweicloudsdkobs/v1/model/get_bucket_acl_response.py +289 -0
- huaweicloudsdkobs/v1/model/get_bucket_customdomain_request.py +173 -0
- huaweicloudsdkobs/v1/model/get_bucket_customdomain_response.py +264 -0
- huaweicloudsdkobs/v1/model/get_bucket_metadata_request.py +203 -0
- huaweicloudsdkobs/v1/model/get_bucket_metadata_response.py +539 -0
- huaweicloudsdkobs/v1/model/get_bucket_notification_request.py +173 -0
- huaweicloudsdkobs/v1/model/get_bucket_notification_response.py +264 -0
- huaweicloudsdkobs/v1/model/get_object_metadata_request.py +405 -0
- huaweicloudsdkobs/v1/model/get_object_metadata_response.py +689 -0
- huaweicloudsdkobs/v1/model/get_object_request.py +666 -0
- huaweicloudsdkobs/v1/model/get_object_response.py +489 -0
- huaweicloudsdkobs/v1/model/grant.py +171 -0
- huaweicloudsdkobs/v1/model/grantee.py +146 -0
- huaweicloudsdkobs/v1/model/list_buckets_request.py +146 -0
- huaweicloudsdkobs/v1/model/list_buckets_response.py +314 -0
- huaweicloudsdkobs/v1/model/list_objects_request.py +348 -0
- huaweicloudsdkobs/v1/model/list_objects_response.py +546 -0
- huaweicloudsdkobs/v1/model/owner.py +117 -0
- huaweicloudsdkobs/v1/model/put_object_request.py +667 -0
- huaweicloudsdkobs/v1/model/put_object_response.py +389 -0
- huaweicloudsdkobs/v1/model/set_bucket_acl_request.py +227 -0
- huaweicloudsdkobs/v1/model/set_bucket_acl_request_body.py +138 -0
- huaweicloudsdkobs/v1/model/set_bucket_acl_response.py +239 -0
- huaweicloudsdkobs/v1/model/set_bucket_custom_domain_body.py +230 -0
- huaweicloudsdkobs/v1/model/set_bucket_customedomain_request.py +198 -0
- huaweicloudsdkobs/v1/model/set_bucket_customedomain_response.py +239 -0
- huaweicloudsdkobs/v1/model/set_bucket_notification_request.py +198 -0
- huaweicloudsdkobs/v1/model/set_bucket_notification_request_body.py +138 -0
- huaweicloudsdkobs/v1/model/set_bucket_notification_response.py +239 -0
- huaweicloudsdkobs/v1/model/topic_configuration.py +200 -0
- huaweicloudsdkobs/v1/model/topic_configuration_filter.py +113 -0
- huaweicloudsdkobs/v1/obs_async_client.py +1600 -0
- huaweicloudsdkobs/v1/obs_client.py +1597 -0
- huaweicloudsdkobs/v1/obs_credentials.py +69 -0
- huaweicloudsdkobs/v1/obs_signer.py +298 -0
- huaweicloudsdkobs/v1/region/__init__.py +0 -0
- huaweicloudsdkobs/v1/region/obs_region.py +88 -0
- huaweicloudsdkobs-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkobs-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkobs-3.1.160.dist-info/RECORD +72 -0
- huaweicloudsdkobs-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkobs-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,318 @@
|
|
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 DeleteObjectsResponse(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
|
+
xml_name = "DeleteObjectsResponse"
|
19
|
+
|
20
|
+
sensitive_list = []
|
21
|
+
|
22
|
+
openapi_types = {
|
23
|
+
'encoding_type': 'str',
|
24
|
+
'deleted': 'list[DeleteResultDeleted]',
|
25
|
+
'error': 'list[DeleteResultError]',
|
26
|
+
'x_obs_id_2': 'str',
|
27
|
+
'x_obs_request_id': 'str',
|
28
|
+
'e_tag': 'str',
|
29
|
+
'connection': 'str',
|
30
|
+
'content_length': 'str',
|
31
|
+
'date': 'str'
|
32
|
+
}
|
33
|
+
|
34
|
+
attribute_map = {
|
35
|
+
'encoding_type': 'EncodingType',
|
36
|
+
'deleted': 'Deleted',
|
37
|
+
'error': 'Error',
|
38
|
+
'x_obs_id_2': 'x-obs-id-2',
|
39
|
+
'x_obs_request_id': 'x-obs-request-id',
|
40
|
+
'e_tag': 'ETag',
|
41
|
+
'connection': 'Connection',
|
42
|
+
'content_length': 'Content-Length',
|
43
|
+
'date': 'Date'
|
44
|
+
}
|
45
|
+
|
46
|
+
def __init__(self, encoding_type=None, deleted=None, error=None, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None):
|
47
|
+
r"""DeleteObjectsResponse
|
48
|
+
|
49
|
+
The model defined in huaweicloud sdk
|
50
|
+
|
51
|
+
:param encoding_type: Encodes the **key** in the response based on the specified type. If **encoding-type** is specified in the request, the **Key** in the response is encoded.
|
52
|
+
:type encoding_type: str
|
53
|
+
:param deleted:
|
54
|
+
:type deleted: list[:class:`huaweicloudsdkobs.v1.DeleteResultDeleted`]
|
55
|
+
:param error:
|
56
|
+
:type error: list[:class:`huaweicloudsdkobs.v1.DeleteResultError`]
|
57
|
+
:param x_obs_id_2:
|
58
|
+
:type x_obs_id_2: str
|
59
|
+
:param x_obs_request_id:
|
60
|
+
:type x_obs_request_id: str
|
61
|
+
:param e_tag:
|
62
|
+
:type e_tag: str
|
63
|
+
:param connection:
|
64
|
+
:type connection: str
|
65
|
+
:param content_length:
|
66
|
+
:type content_length: str
|
67
|
+
:param date:
|
68
|
+
:type date: str
|
69
|
+
"""
|
70
|
+
|
71
|
+
super(DeleteObjectsResponse, self).__init__()
|
72
|
+
|
73
|
+
self._encoding_type = None
|
74
|
+
self._deleted = None
|
75
|
+
self._error = None
|
76
|
+
self._x_obs_id_2 = None
|
77
|
+
self._x_obs_request_id = None
|
78
|
+
self._e_tag = None
|
79
|
+
self._connection = None
|
80
|
+
self._content_length = None
|
81
|
+
self._date = None
|
82
|
+
self.discriminator = None
|
83
|
+
|
84
|
+
if encoding_type is not None:
|
85
|
+
self.encoding_type = encoding_type
|
86
|
+
if deleted is not None:
|
87
|
+
self.deleted = deleted
|
88
|
+
if error is not None:
|
89
|
+
self.error = error
|
90
|
+
if x_obs_id_2 is not None:
|
91
|
+
self.x_obs_id_2 = x_obs_id_2
|
92
|
+
if x_obs_request_id is not None:
|
93
|
+
self.x_obs_request_id = x_obs_request_id
|
94
|
+
if e_tag is not None:
|
95
|
+
self.e_tag = e_tag
|
96
|
+
if connection is not None:
|
97
|
+
self.connection = connection
|
98
|
+
if content_length is not None:
|
99
|
+
self.content_length = content_length
|
100
|
+
if date is not None:
|
101
|
+
self.date = date
|
102
|
+
|
103
|
+
@property
|
104
|
+
def encoding_type(self):
|
105
|
+
r"""Gets the encoding_type of this DeleteObjectsResponse.
|
106
|
+
|
107
|
+
Encodes the **key** in the response based on the specified type. If **encoding-type** is specified in the request, the **Key** in the response is encoded.
|
108
|
+
|
109
|
+
:return: The encoding_type of this DeleteObjectsResponse.
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._encoding_type
|
113
|
+
|
114
|
+
@encoding_type.setter
|
115
|
+
def encoding_type(self, encoding_type):
|
116
|
+
r"""Sets the encoding_type of this DeleteObjectsResponse.
|
117
|
+
|
118
|
+
Encodes the **key** in the response based on the specified type. If **encoding-type** is specified in the request, the **Key** in the response is encoded.
|
119
|
+
|
120
|
+
:param encoding_type: The encoding_type of this DeleteObjectsResponse.
|
121
|
+
:type encoding_type: str
|
122
|
+
"""
|
123
|
+
self._encoding_type = encoding_type
|
124
|
+
|
125
|
+
@property
|
126
|
+
def deleted(self):
|
127
|
+
r"""Gets the deleted of this DeleteObjectsResponse.
|
128
|
+
|
129
|
+
:return: The deleted of this DeleteObjectsResponse.
|
130
|
+
:rtype: list[:class:`huaweicloudsdkobs.v1.DeleteResultDeleted`]
|
131
|
+
"""
|
132
|
+
return self._deleted
|
133
|
+
|
134
|
+
@deleted.setter
|
135
|
+
def deleted(self, deleted):
|
136
|
+
r"""Sets the deleted of this DeleteObjectsResponse.
|
137
|
+
|
138
|
+
:param deleted: The deleted of this DeleteObjectsResponse.
|
139
|
+
:type deleted: list[:class:`huaweicloudsdkobs.v1.DeleteResultDeleted`]
|
140
|
+
"""
|
141
|
+
self._deleted = deleted
|
142
|
+
|
143
|
+
@property
|
144
|
+
def error(self):
|
145
|
+
r"""Gets the error of this DeleteObjectsResponse.
|
146
|
+
|
147
|
+
:return: The error of this DeleteObjectsResponse.
|
148
|
+
:rtype: list[:class:`huaweicloudsdkobs.v1.DeleteResultError`]
|
149
|
+
"""
|
150
|
+
return self._error
|
151
|
+
|
152
|
+
@error.setter
|
153
|
+
def error(self, error):
|
154
|
+
r"""Sets the error of this DeleteObjectsResponse.
|
155
|
+
|
156
|
+
:param error: The error of this DeleteObjectsResponse.
|
157
|
+
:type error: list[:class:`huaweicloudsdkobs.v1.DeleteResultError`]
|
158
|
+
"""
|
159
|
+
self._error = error
|
160
|
+
|
161
|
+
@property
|
162
|
+
def x_obs_id_2(self):
|
163
|
+
r"""Gets the x_obs_id_2 of this DeleteObjectsResponse.
|
164
|
+
|
165
|
+
:return: The x_obs_id_2 of this DeleteObjectsResponse.
|
166
|
+
:rtype: str
|
167
|
+
"""
|
168
|
+
return self._x_obs_id_2
|
169
|
+
|
170
|
+
@x_obs_id_2.setter
|
171
|
+
def x_obs_id_2(self, x_obs_id_2):
|
172
|
+
r"""Sets the x_obs_id_2 of this DeleteObjectsResponse.
|
173
|
+
|
174
|
+
:param x_obs_id_2: The x_obs_id_2 of this DeleteObjectsResponse.
|
175
|
+
:type x_obs_id_2: str
|
176
|
+
"""
|
177
|
+
self._x_obs_id_2 = x_obs_id_2
|
178
|
+
|
179
|
+
@property
|
180
|
+
def x_obs_request_id(self):
|
181
|
+
r"""Gets the x_obs_request_id of this DeleteObjectsResponse.
|
182
|
+
|
183
|
+
:return: The x_obs_request_id of this DeleteObjectsResponse.
|
184
|
+
:rtype: str
|
185
|
+
"""
|
186
|
+
return self._x_obs_request_id
|
187
|
+
|
188
|
+
@x_obs_request_id.setter
|
189
|
+
def x_obs_request_id(self, x_obs_request_id):
|
190
|
+
r"""Sets the x_obs_request_id of this DeleteObjectsResponse.
|
191
|
+
|
192
|
+
:param x_obs_request_id: The x_obs_request_id of this DeleteObjectsResponse.
|
193
|
+
:type x_obs_request_id: str
|
194
|
+
"""
|
195
|
+
self._x_obs_request_id = x_obs_request_id
|
196
|
+
|
197
|
+
@property
|
198
|
+
def e_tag(self):
|
199
|
+
r"""Gets the e_tag of this DeleteObjectsResponse.
|
200
|
+
|
201
|
+
:return: The e_tag of this DeleteObjectsResponse.
|
202
|
+
:rtype: str
|
203
|
+
"""
|
204
|
+
return self._e_tag
|
205
|
+
|
206
|
+
@e_tag.setter
|
207
|
+
def e_tag(self, e_tag):
|
208
|
+
r"""Sets the e_tag of this DeleteObjectsResponse.
|
209
|
+
|
210
|
+
:param e_tag: The e_tag of this DeleteObjectsResponse.
|
211
|
+
:type e_tag: str
|
212
|
+
"""
|
213
|
+
self._e_tag = e_tag
|
214
|
+
|
215
|
+
@property
|
216
|
+
def connection(self):
|
217
|
+
r"""Gets the connection of this DeleteObjectsResponse.
|
218
|
+
|
219
|
+
:return: The connection of this DeleteObjectsResponse.
|
220
|
+
:rtype: str
|
221
|
+
"""
|
222
|
+
return self._connection
|
223
|
+
|
224
|
+
@connection.setter
|
225
|
+
def connection(self, connection):
|
226
|
+
r"""Sets the connection of this DeleteObjectsResponse.
|
227
|
+
|
228
|
+
:param connection: The connection of this DeleteObjectsResponse.
|
229
|
+
:type connection: str
|
230
|
+
"""
|
231
|
+
self._connection = connection
|
232
|
+
|
233
|
+
@property
|
234
|
+
def content_length(self):
|
235
|
+
r"""Gets the content_length of this DeleteObjectsResponse.
|
236
|
+
|
237
|
+
:return: The content_length of this DeleteObjectsResponse.
|
238
|
+
:rtype: str
|
239
|
+
"""
|
240
|
+
return self._content_length
|
241
|
+
|
242
|
+
@content_length.setter
|
243
|
+
def content_length(self, content_length):
|
244
|
+
r"""Sets the content_length of this DeleteObjectsResponse.
|
245
|
+
|
246
|
+
:param content_length: The content_length of this DeleteObjectsResponse.
|
247
|
+
:type content_length: str
|
248
|
+
"""
|
249
|
+
self._content_length = content_length
|
250
|
+
|
251
|
+
@property
|
252
|
+
def date(self):
|
253
|
+
r"""Gets the date of this DeleteObjectsResponse.
|
254
|
+
|
255
|
+
:return: The date of this DeleteObjectsResponse.
|
256
|
+
:rtype: str
|
257
|
+
"""
|
258
|
+
return self._date
|
259
|
+
|
260
|
+
@date.setter
|
261
|
+
def date(self, date):
|
262
|
+
r"""Sets the date of this DeleteObjectsResponse.
|
263
|
+
|
264
|
+
:param date: The date of this DeleteObjectsResponse.
|
265
|
+
:type date: str
|
266
|
+
"""
|
267
|
+
self._date = date
|
268
|
+
|
269
|
+
def to_dict(self):
|
270
|
+
"""Returns the model properties as a dict"""
|
271
|
+
result = {}
|
272
|
+
|
273
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
274
|
+
value = getattr(self, attr)
|
275
|
+
if isinstance(value, list):
|
276
|
+
result[attr] = list(map(
|
277
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
278
|
+
value
|
279
|
+
))
|
280
|
+
elif hasattr(value, "to_dict"):
|
281
|
+
result[attr] = value.to_dict()
|
282
|
+
elif isinstance(value, dict):
|
283
|
+
result[attr] = dict(map(
|
284
|
+
lambda item: (item[0], item[1].to_dict())
|
285
|
+
if hasattr(item[1], "to_dict") else item,
|
286
|
+
value.items()
|
287
|
+
))
|
288
|
+
else:
|
289
|
+
if attr in self.sensitive_list:
|
290
|
+
result[attr] = "****"
|
291
|
+
else:
|
292
|
+
result[attr] = value
|
293
|
+
|
294
|
+
return result
|
295
|
+
|
296
|
+
def to_str(self):
|
297
|
+
"""Returns the string representation of the model"""
|
298
|
+
import simplejson as json
|
299
|
+
if six.PY2:
|
300
|
+
import sys
|
301
|
+
reload(sys)
|
302
|
+
sys.setdefaultencoding("utf-8")
|
303
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
304
|
+
|
305
|
+
def __repr__(self):
|
306
|
+
"""For `print`"""
|
307
|
+
return self.to_str()
|
308
|
+
|
309
|
+
def __eq__(self, other):
|
310
|
+
"""Returns true if both objects are equal"""
|
311
|
+
if not isinstance(other, DeleteObjectsResponse):
|
312
|
+
return False
|
313
|
+
|
314
|
+
return self.__dict__ == other.__dict__
|
315
|
+
|
316
|
+
def __ne__(self, other):
|
317
|
+
"""Returns true if both objects are not equal"""
|
318
|
+
return not self == other
|
@@ -0,0 +1,204 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteResultDeleted:
|
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
|
+
xml_name = "DeleteResultDeleted"
|
18
|
+
|
19
|
+
sensitive_list = []
|
20
|
+
|
21
|
+
openapi_types = {
|
22
|
+
'key': 'str',
|
23
|
+
'version_id': 'str',
|
24
|
+
'delete_marker': 'bool',
|
25
|
+
'delete_marker_version_id': 'bool'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'key': 'Key',
|
30
|
+
'version_id': 'VersionId',
|
31
|
+
'delete_marker': 'DeleteMarker',
|
32
|
+
'delete_marker_version_id': 'DeleteMarkerVersionId'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, key=None, version_id=None, delete_marker=None, delete_marker_version_id=None):
|
36
|
+
r"""DeleteResultDeleted
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param key: Object names in a deletion result
|
41
|
+
:type key: str
|
42
|
+
:param version_id: Version IDs of objects to be deleted
|
43
|
+
:type version_id: str
|
44
|
+
:param delete_marker: If this element is specified, **true** will be returned when you create or delete a deletion marker in the requested bucket with versioning enabled.
|
45
|
+
:type delete_marker: bool
|
46
|
+
:param delete_marker_version_id: Version ID of the delete marker to create or delete. If the request either creates or deletes a delete marker, OBS returns this element in response with the version ID of the delete marker. This element will be returned in either of the following cases: You send a delete request with no version ID specified. You send a request with a version ID specified, but this version ID represents a delete marker. In this case, OBS deletes the delete marker and returns its version ID in the response.
|
47
|
+
:type delete_marker_version_id: bool
|
48
|
+
"""
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
self._key = None
|
53
|
+
self._version_id = None
|
54
|
+
self._delete_marker = None
|
55
|
+
self._delete_marker_version_id = None
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
if key is not None:
|
59
|
+
self.key = key
|
60
|
+
if version_id is not None:
|
61
|
+
self.version_id = version_id
|
62
|
+
if delete_marker is not None:
|
63
|
+
self.delete_marker = delete_marker
|
64
|
+
if delete_marker_version_id is not None:
|
65
|
+
self.delete_marker_version_id = delete_marker_version_id
|
66
|
+
|
67
|
+
@property
|
68
|
+
def key(self):
|
69
|
+
r"""Gets the key of this DeleteResultDeleted.
|
70
|
+
|
71
|
+
Object names in a deletion result
|
72
|
+
|
73
|
+
:return: The key of this DeleteResultDeleted.
|
74
|
+
:rtype: str
|
75
|
+
"""
|
76
|
+
return self._key
|
77
|
+
|
78
|
+
@key.setter
|
79
|
+
def key(self, key):
|
80
|
+
r"""Sets the key of this DeleteResultDeleted.
|
81
|
+
|
82
|
+
Object names in a deletion result
|
83
|
+
|
84
|
+
:param key: The key of this DeleteResultDeleted.
|
85
|
+
:type key: str
|
86
|
+
"""
|
87
|
+
self._key = key
|
88
|
+
|
89
|
+
@property
|
90
|
+
def version_id(self):
|
91
|
+
r"""Gets the version_id of this DeleteResultDeleted.
|
92
|
+
|
93
|
+
Version IDs of objects to be deleted
|
94
|
+
|
95
|
+
:return: The version_id of this DeleteResultDeleted.
|
96
|
+
:rtype: str
|
97
|
+
"""
|
98
|
+
return self._version_id
|
99
|
+
|
100
|
+
@version_id.setter
|
101
|
+
def version_id(self, version_id):
|
102
|
+
r"""Sets the version_id of this DeleteResultDeleted.
|
103
|
+
|
104
|
+
Version IDs of objects to be deleted
|
105
|
+
|
106
|
+
:param version_id: The version_id of this DeleteResultDeleted.
|
107
|
+
:type version_id: str
|
108
|
+
"""
|
109
|
+
self._version_id = version_id
|
110
|
+
|
111
|
+
@property
|
112
|
+
def delete_marker(self):
|
113
|
+
r"""Gets the delete_marker of this DeleteResultDeleted.
|
114
|
+
|
115
|
+
If this element is specified, **true** will be returned when you create or delete a deletion marker in the requested bucket with versioning enabled.
|
116
|
+
|
117
|
+
:return: The delete_marker of this DeleteResultDeleted.
|
118
|
+
:rtype: bool
|
119
|
+
"""
|
120
|
+
return self._delete_marker
|
121
|
+
|
122
|
+
@delete_marker.setter
|
123
|
+
def delete_marker(self, delete_marker):
|
124
|
+
r"""Sets the delete_marker of this DeleteResultDeleted.
|
125
|
+
|
126
|
+
If this element is specified, **true** will be returned when you create or delete a deletion marker in the requested bucket with versioning enabled.
|
127
|
+
|
128
|
+
:param delete_marker: The delete_marker of this DeleteResultDeleted.
|
129
|
+
:type delete_marker: bool
|
130
|
+
"""
|
131
|
+
self._delete_marker = delete_marker
|
132
|
+
|
133
|
+
@property
|
134
|
+
def delete_marker_version_id(self):
|
135
|
+
r"""Gets the delete_marker_version_id of this DeleteResultDeleted.
|
136
|
+
|
137
|
+
Version ID of the delete marker to create or delete. If the request either creates or deletes a delete marker, OBS returns this element in response with the version ID of the delete marker. This element will be returned in either of the following cases: You send a delete request with no version ID specified. You send a request with a version ID specified, but this version ID represents a delete marker. In this case, OBS deletes the delete marker and returns its version ID in the response.
|
138
|
+
|
139
|
+
:return: The delete_marker_version_id of this DeleteResultDeleted.
|
140
|
+
:rtype: bool
|
141
|
+
"""
|
142
|
+
return self._delete_marker_version_id
|
143
|
+
|
144
|
+
@delete_marker_version_id.setter
|
145
|
+
def delete_marker_version_id(self, delete_marker_version_id):
|
146
|
+
r"""Sets the delete_marker_version_id of this DeleteResultDeleted.
|
147
|
+
|
148
|
+
Version ID of the delete marker to create or delete. If the request either creates or deletes a delete marker, OBS returns this element in response with the version ID of the delete marker. This element will be returned in either of the following cases: You send a delete request with no version ID specified. You send a request with a version ID specified, but this version ID represents a delete marker. In this case, OBS deletes the delete marker and returns its version ID in the response.
|
149
|
+
|
150
|
+
:param delete_marker_version_id: The delete_marker_version_id of this DeleteResultDeleted.
|
151
|
+
:type delete_marker_version_id: bool
|
152
|
+
"""
|
153
|
+
self._delete_marker_version_id = delete_marker_version_id
|
154
|
+
|
155
|
+
def to_dict(self):
|
156
|
+
"""Returns the model properties as a dict"""
|
157
|
+
result = {}
|
158
|
+
|
159
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
160
|
+
value = getattr(self, attr)
|
161
|
+
if isinstance(value, list):
|
162
|
+
result[attr] = list(map(
|
163
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
164
|
+
value
|
165
|
+
))
|
166
|
+
elif hasattr(value, "to_dict"):
|
167
|
+
result[attr] = value.to_dict()
|
168
|
+
elif isinstance(value, dict):
|
169
|
+
result[attr] = dict(map(
|
170
|
+
lambda item: (item[0], item[1].to_dict())
|
171
|
+
if hasattr(item[1], "to_dict") else item,
|
172
|
+
value.items()
|
173
|
+
))
|
174
|
+
else:
|
175
|
+
if attr in self.sensitive_list:
|
176
|
+
result[attr] = "****"
|
177
|
+
else:
|
178
|
+
result[attr] = value
|
179
|
+
|
180
|
+
return result
|
181
|
+
|
182
|
+
def to_str(self):
|
183
|
+
"""Returns the string representation of the model"""
|
184
|
+
import simplejson as json
|
185
|
+
if six.PY2:
|
186
|
+
import sys
|
187
|
+
reload(sys)
|
188
|
+
sys.setdefaultencoding("utf-8")
|
189
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
190
|
+
|
191
|
+
def __repr__(self):
|
192
|
+
"""For `print`"""
|
193
|
+
return self.to_str()
|
194
|
+
|
195
|
+
def __eq__(self, other):
|
196
|
+
"""Returns true if both objects are equal"""
|
197
|
+
if not isinstance(other, DeleteResultDeleted):
|
198
|
+
return False
|
199
|
+
|
200
|
+
return self.__dict__ == other.__dict__
|
201
|
+
|
202
|
+
def __ne__(self, other):
|
203
|
+
"""Returns true if both objects are not equal"""
|
204
|
+
return not self == other
|
@@ -0,0 +1,175 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteResultError:
|
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
|
+
xml_name = "DeleteResultError"
|
18
|
+
|
19
|
+
sensitive_list = []
|
20
|
+
|
21
|
+
openapi_types = {
|
22
|
+
'key': 'str',
|
23
|
+
'code': 'str',
|
24
|
+
'message': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'key': 'Key',
|
29
|
+
'code': 'Code',
|
30
|
+
'message': 'Message'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, key=None, code=None, message=None):
|
34
|
+
r"""DeleteResultError
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param key: Object names in a deletion result
|
39
|
+
:type key: str
|
40
|
+
:param code: Error code of the failed deletion
|
41
|
+
:type code: str
|
42
|
+
:param message: Error message of the failed deletion
|
43
|
+
:type message: str
|
44
|
+
"""
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
self._key = None
|
49
|
+
self._code = None
|
50
|
+
self._message = None
|
51
|
+
self.discriminator = None
|
52
|
+
|
53
|
+
if key is not None:
|
54
|
+
self.key = key
|
55
|
+
if code is not None:
|
56
|
+
self.code = code
|
57
|
+
if message is not None:
|
58
|
+
self.message = message
|
59
|
+
|
60
|
+
@property
|
61
|
+
def key(self):
|
62
|
+
r"""Gets the key of this DeleteResultError.
|
63
|
+
|
64
|
+
Object names in a deletion result
|
65
|
+
|
66
|
+
:return: The key of this DeleteResultError.
|
67
|
+
:rtype: str
|
68
|
+
"""
|
69
|
+
return self._key
|
70
|
+
|
71
|
+
@key.setter
|
72
|
+
def key(self, key):
|
73
|
+
r"""Sets the key of this DeleteResultError.
|
74
|
+
|
75
|
+
Object names in a deletion result
|
76
|
+
|
77
|
+
:param key: The key of this DeleteResultError.
|
78
|
+
:type key: str
|
79
|
+
"""
|
80
|
+
self._key = key
|
81
|
+
|
82
|
+
@property
|
83
|
+
def code(self):
|
84
|
+
r"""Gets the code of this DeleteResultError.
|
85
|
+
|
86
|
+
Error code of the failed deletion
|
87
|
+
|
88
|
+
:return: The code of this DeleteResultError.
|
89
|
+
:rtype: str
|
90
|
+
"""
|
91
|
+
return self._code
|
92
|
+
|
93
|
+
@code.setter
|
94
|
+
def code(self, code):
|
95
|
+
r"""Sets the code of this DeleteResultError.
|
96
|
+
|
97
|
+
Error code of the failed deletion
|
98
|
+
|
99
|
+
:param code: The code of this DeleteResultError.
|
100
|
+
:type code: str
|
101
|
+
"""
|
102
|
+
self._code = code
|
103
|
+
|
104
|
+
@property
|
105
|
+
def message(self):
|
106
|
+
r"""Gets the message of this DeleteResultError.
|
107
|
+
|
108
|
+
Error message of the failed deletion
|
109
|
+
|
110
|
+
:return: The message of this DeleteResultError.
|
111
|
+
:rtype: str
|
112
|
+
"""
|
113
|
+
return self._message
|
114
|
+
|
115
|
+
@message.setter
|
116
|
+
def message(self, message):
|
117
|
+
r"""Sets the message of this DeleteResultError.
|
118
|
+
|
119
|
+
Error message of the failed deletion
|
120
|
+
|
121
|
+
:param message: The message of this DeleteResultError.
|
122
|
+
:type message: str
|
123
|
+
"""
|
124
|
+
self._message = message
|
125
|
+
|
126
|
+
def to_dict(self):
|
127
|
+
"""Returns the model properties as a dict"""
|
128
|
+
result = {}
|
129
|
+
|
130
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
131
|
+
value = getattr(self, attr)
|
132
|
+
if isinstance(value, list):
|
133
|
+
result[attr] = list(map(
|
134
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
135
|
+
value
|
136
|
+
))
|
137
|
+
elif hasattr(value, "to_dict"):
|
138
|
+
result[attr] = value.to_dict()
|
139
|
+
elif isinstance(value, dict):
|
140
|
+
result[attr] = dict(map(
|
141
|
+
lambda item: (item[0], item[1].to_dict())
|
142
|
+
if hasattr(item[1], "to_dict") else item,
|
143
|
+
value.items()
|
144
|
+
))
|
145
|
+
else:
|
146
|
+
if attr in self.sensitive_list:
|
147
|
+
result[attr] = "****"
|
148
|
+
else:
|
149
|
+
result[attr] = value
|
150
|
+
|
151
|
+
return result
|
152
|
+
|
153
|
+
def to_str(self):
|
154
|
+
"""Returns the string representation of the model"""
|
155
|
+
import simplejson as json
|
156
|
+
if six.PY2:
|
157
|
+
import sys
|
158
|
+
reload(sys)
|
159
|
+
sys.setdefaultencoding("utf-8")
|
160
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
161
|
+
|
162
|
+
def __repr__(self):
|
163
|
+
"""For `print`"""
|
164
|
+
return self.to_str()
|
165
|
+
|
166
|
+
def __eq__(self, other):
|
167
|
+
"""Returns true if both objects are equal"""
|
168
|
+
if not isinstance(other, DeleteResultError):
|
169
|
+
return False
|
170
|
+
|
171
|
+
return self.__dict__ == other.__dict__
|
172
|
+
|
173
|
+
def __ne__(self, other):
|
174
|
+
"""Returns true if both objects are not equal"""
|
175
|
+
return not self == other
|