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,146 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteObject:
|
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 = "DeleteObject"
|
18
|
+
|
19
|
+
sensitive_list = []
|
20
|
+
|
21
|
+
openapi_types = {
|
22
|
+
'key': 'str',
|
23
|
+
'version_id': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'key': 'Key',
|
28
|
+
'version_id': 'VersionId'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, key=None, version_id=None):
|
32
|
+
r"""DeleteObject
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param key: Key of the object to be deleted. If **EncodingType** is specified, the object key must be encoded as configured.
|
37
|
+
:type key: str
|
38
|
+
:param version_id: Version ID of the object to be deleted
|
39
|
+
:type version_id: str
|
40
|
+
"""
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
self._key = None
|
45
|
+
self._version_id = None
|
46
|
+
self.discriminator = None
|
47
|
+
|
48
|
+
if key is not None:
|
49
|
+
self.key = key
|
50
|
+
if version_id is not None:
|
51
|
+
self.version_id = version_id
|
52
|
+
|
53
|
+
@property
|
54
|
+
def key(self):
|
55
|
+
r"""Gets the key of this DeleteObject.
|
56
|
+
|
57
|
+
Key of the object to be deleted. If **EncodingType** is specified, the object key must be encoded as configured.
|
58
|
+
|
59
|
+
:return: The key of this DeleteObject.
|
60
|
+
:rtype: str
|
61
|
+
"""
|
62
|
+
return self._key
|
63
|
+
|
64
|
+
@key.setter
|
65
|
+
def key(self, key):
|
66
|
+
r"""Sets the key of this DeleteObject.
|
67
|
+
|
68
|
+
Key of the object to be deleted. If **EncodingType** is specified, the object key must be encoded as configured.
|
69
|
+
|
70
|
+
:param key: The key of this DeleteObject.
|
71
|
+
:type key: str
|
72
|
+
"""
|
73
|
+
self._key = key
|
74
|
+
|
75
|
+
@property
|
76
|
+
def version_id(self):
|
77
|
+
r"""Gets the version_id of this DeleteObject.
|
78
|
+
|
79
|
+
Version ID of the object to be deleted
|
80
|
+
|
81
|
+
:return: The version_id of this DeleteObject.
|
82
|
+
:rtype: str
|
83
|
+
"""
|
84
|
+
return self._version_id
|
85
|
+
|
86
|
+
@version_id.setter
|
87
|
+
def version_id(self, version_id):
|
88
|
+
r"""Sets the version_id of this DeleteObject.
|
89
|
+
|
90
|
+
Version ID of the object to be deleted
|
91
|
+
|
92
|
+
:param version_id: The version_id of this DeleteObject.
|
93
|
+
:type version_id: str
|
94
|
+
"""
|
95
|
+
self._version_id = version_id
|
96
|
+
|
97
|
+
def to_dict(self):
|
98
|
+
"""Returns the model properties as a dict"""
|
99
|
+
result = {}
|
100
|
+
|
101
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
102
|
+
value = getattr(self, attr)
|
103
|
+
if isinstance(value, list):
|
104
|
+
result[attr] = list(map(
|
105
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
106
|
+
value
|
107
|
+
))
|
108
|
+
elif hasattr(value, "to_dict"):
|
109
|
+
result[attr] = value.to_dict()
|
110
|
+
elif isinstance(value, dict):
|
111
|
+
result[attr] = dict(map(
|
112
|
+
lambda item: (item[0], item[1].to_dict())
|
113
|
+
if hasattr(item[1], "to_dict") else item,
|
114
|
+
value.items()
|
115
|
+
))
|
116
|
+
else:
|
117
|
+
if attr in self.sensitive_list:
|
118
|
+
result[attr] = "****"
|
119
|
+
else:
|
120
|
+
result[attr] = value
|
121
|
+
|
122
|
+
return result
|
123
|
+
|
124
|
+
def to_str(self):
|
125
|
+
"""Returns the string representation of the model"""
|
126
|
+
import simplejson as json
|
127
|
+
if six.PY2:
|
128
|
+
import sys
|
129
|
+
reload(sys)
|
130
|
+
sys.setdefaultencoding("utf-8")
|
131
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
132
|
+
|
133
|
+
def __repr__(self):
|
134
|
+
"""For `print`"""
|
135
|
+
return self.to_str()
|
136
|
+
|
137
|
+
def __eq__(self, other):
|
138
|
+
"""Returns true if both objects are equal"""
|
139
|
+
if not isinstance(other, DeleteObject):
|
140
|
+
return False
|
141
|
+
|
142
|
+
return self.__dict__ == other.__dict__
|
143
|
+
|
144
|
+
def __ne__(self, other):
|
145
|
+
"""Returns true if both objects are not equal"""
|
146
|
+
return not self == other
|
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteObjectRequest:
|
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 = "DeleteObjectRequest"
|
18
|
+
|
19
|
+
sensitive_list = []
|
20
|
+
|
21
|
+
openapi_types = {
|
22
|
+
'bucket_name': 'str',
|
23
|
+
'object_key': 'str',
|
24
|
+
'date': 'str',
|
25
|
+
'version_id': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'bucket_name': 'bucket_name',
|
30
|
+
'object_key': 'object_key',
|
31
|
+
'date': 'Date',
|
32
|
+
'version_id': 'versionId'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, bucket_name=None, object_key=None, date=None, version_id=None):
|
36
|
+
r"""DeleteObjectRequest
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param bucket_name: Name of the bucket.
|
41
|
+
:type bucket_name: str
|
42
|
+
:param object_key: Name of the object to be deleted.
|
43
|
+
:type object_key: str
|
44
|
+
:param date: Time when a request was initiated, for example, **Wed, 27 Jun 2018 13:39:15 +0000**. Default value: none Restriction: This header is optional if the **x-obs-date** header is contained in the request, but mandatory in other circumstances.
|
45
|
+
:type date: str
|
46
|
+
:param version_id: Version ID of the object to be deleted.
|
47
|
+
:type version_id: str
|
48
|
+
"""
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
self._bucket_name = None
|
53
|
+
self._object_key = None
|
54
|
+
self._date = None
|
55
|
+
self._version_id = None
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
self.bucket_name = bucket_name
|
59
|
+
self.object_key = object_key
|
60
|
+
if date is not None:
|
61
|
+
self.date = date
|
62
|
+
if version_id is not None:
|
63
|
+
self.version_id = version_id
|
64
|
+
|
65
|
+
@property
|
66
|
+
def bucket_name(self):
|
67
|
+
r"""Gets the bucket_name of this DeleteObjectRequest.
|
68
|
+
|
69
|
+
Name of the bucket.
|
70
|
+
|
71
|
+
:return: The bucket_name of this DeleteObjectRequest.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._bucket_name
|
75
|
+
|
76
|
+
@bucket_name.setter
|
77
|
+
def bucket_name(self, bucket_name):
|
78
|
+
r"""Sets the bucket_name of this DeleteObjectRequest.
|
79
|
+
|
80
|
+
Name of the bucket.
|
81
|
+
|
82
|
+
:param bucket_name: The bucket_name of this DeleteObjectRequest.
|
83
|
+
:type bucket_name: str
|
84
|
+
"""
|
85
|
+
self._bucket_name = bucket_name
|
86
|
+
|
87
|
+
@property
|
88
|
+
def object_key(self):
|
89
|
+
r"""Gets the object_key of this DeleteObjectRequest.
|
90
|
+
|
91
|
+
Name of the object to be deleted.
|
92
|
+
|
93
|
+
:return: The object_key of this DeleteObjectRequest.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._object_key
|
97
|
+
|
98
|
+
@object_key.setter
|
99
|
+
def object_key(self, object_key):
|
100
|
+
r"""Sets the object_key of this DeleteObjectRequest.
|
101
|
+
|
102
|
+
Name of the object to be deleted.
|
103
|
+
|
104
|
+
:param object_key: The object_key of this DeleteObjectRequest.
|
105
|
+
:type object_key: str
|
106
|
+
"""
|
107
|
+
self._object_key = object_key
|
108
|
+
|
109
|
+
@property
|
110
|
+
def date(self):
|
111
|
+
r"""Gets the date of this DeleteObjectRequest.
|
112
|
+
|
113
|
+
Time when a request was initiated, for example, **Wed, 27 Jun 2018 13:39:15 +0000**. Default value: none Restriction: This header is optional if the **x-obs-date** header is contained in the request, but mandatory in other circumstances.
|
114
|
+
|
115
|
+
:return: The date of this DeleteObjectRequest.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._date
|
119
|
+
|
120
|
+
@date.setter
|
121
|
+
def date(self, date):
|
122
|
+
r"""Sets the date of this DeleteObjectRequest.
|
123
|
+
|
124
|
+
Time when a request was initiated, for example, **Wed, 27 Jun 2018 13:39:15 +0000**. Default value: none Restriction: This header is optional if the **x-obs-date** header is contained in the request, but mandatory in other circumstances.
|
125
|
+
|
126
|
+
:param date: The date of this DeleteObjectRequest.
|
127
|
+
:type date: str
|
128
|
+
"""
|
129
|
+
self._date = date
|
130
|
+
|
131
|
+
@property
|
132
|
+
def version_id(self):
|
133
|
+
r"""Gets the version_id of this DeleteObjectRequest.
|
134
|
+
|
135
|
+
Version ID of the object to be deleted.
|
136
|
+
|
137
|
+
:return: The version_id of this DeleteObjectRequest.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._version_id
|
141
|
+
|
142
|
+
@version_id.setter
|
143
|
+
def version_id(self, version_id):
|
144
|
+
r"""Sets the version_id of this DeleteObjectRequest.
|
145
|
+
|
146
|
+
Version ID of the object to be deleted.
|
147
|
+
|
148
|
+
:param version_id: The version_id of this DeleteObjectRequest.
|
149
|
+
:type version_id: str
|
150
|
+
"""
|
151
|
+
self._version_id = version_id
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, DeleteObjectRequest):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|
@@ -0,0 +1,289 @@
|
|
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 DeleteObjectResponse(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 = "DeleteObjectResponse"
|
19
|
+
|
20
|
+
sensitive_list = []
|
21
|
+
|
22
|
+
openapi_types = {
|
23
|
+
'x_obs_id_2': 'str',
|
24
|
+
'x_obs_request_id': 'str',
|
25
|
+
'e_tag': 'str',
|
26
|
+
'connection': 'str',
|
27
|
+
'content_length': 'str',
|
28
|
+
'date': 'str',
|
29
|
+
'x_obs_delete_marker': 'str',
|
30
|
+
'x_obs_version_id': 'str'
|
31
|
+
}
|
32
|
+
|
33
|
+
attribute_map = {
|
34
|
+
'x_obs_id_2': 'x-obs-id-2',
|
35
|
+
'x_obs_request_id': 'x-obs-request-id',
|
36
|
+
'e_tag': 'ETag',
|
37
|
+
'connection': 'Connection',
|
38
|
+
'content_length': 'Content-Length',
|
39
|
+
'date': 'Date',
|
40
|
+
'x_obs_delete_marker': 'x-obs-delete-marker',
|
41
|
+
'x_obs_version_id': 'x-obs-version-id'
|
42
|
+
}
|
43
|
+
|
44
|
+
def __init__(self, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None, x_obs_delete_marker=None, x_obs_version_id=None):
|
45
|
+
r"""DeleteObjectResponse
|
46
|
+
|
47
|
+
The model defined in huaweicloud sdk
|
48
|
+
|
49
|
+
:param x_obs_id_2:
|
50
|
+
:type x_obs_id_2: str
|
51
|
+
:param x_obs_request_id:
|
52
|
+
:type x_obs_request_id: str
|
53
|
+
:param e_tag:
|
54
|
+
:type e_tag: str
|
55
|
+
:param connection:
|
56
|
+
:type connection: str
|
57
|
+
:param content_length:
|
58
|
+
:type content_length: str
|
59
|
+
:param date:
|
60
|
+
:type date: str
|
61
|
+
:param x_obs_delete_marker:
|
62
|
+
:type x_obs_delete_marker: str
|
63
|
+
:param x_obs_version_id:
|
64
|
+
:type x_obs_version_id: str
|
65
|
+
"""
|
66
|
+
|
67
|
+
super(DeleteObjectResponse, self).__init__()
|
68
|
+
|
69
|
+
self._x_obs_id_2 = None
|
70
|
+
self._x_obs_request_id = None
|
71
|
+
self._e_tag = None
|
72
|
+
self._connection = None
|
73
|
+
self._content_length = None
|
74
|
+
self._date = None
|
75
|
+
self._x_obs_delete_marker = None
|
76
|
+
self._x_obs_version_id = None
|
77
|
+
self.discriminator = None
|
78
|
+
|
79
|
+
if x_obs_id_2 is not None:
|
80
|
+
self.x_obs_id_2 = x_obs_id_2
|
81
|
+
if x_obs_request_id is not None:
|
82
|
+
self.x_obs_request_id = x_obs_request_id
|
83
|
+
if e_tag is not None:
|
84
|
+
self.e_tag = e_tag
|
85
|
+
if connection is not None:
|
86
|
+
self.connection = connection
|
87
|
+
if content_length is not None:
|
88
|
+
self.content_length = content_length
|
89
|
+
if date is not None:
|
90
|
+
self.date = date
|
91
|
+
if x_obs_delete_marker is not None:
|
92
|
+
self.x_obs_delete_marker = x_obs_delete_marker
|
93
|
+
if x_obs_version_id is not None:
|
94
|
+
self.x_obs_version_id = x_obs_version_id
|
95
|
+
|
96
|
+
@property
|
97
|
+
def x_obs_id_2(self):
|
98
|
+
r"""Gets the x_obs_id_2 of this DeleteObjectResponse.
|
99
|
+
|
100
|
+
:return: The x_obs_id_2 of this DeleteObjectResponse.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._x_obs_id_2
|
104
|
+
|
105
|
+
@x_obs_id_2.setter
|
106
|
+
def x_obs_id_2(self, x_obs_id_2):
|
107
|
+
r"""Sets the x_obs_id_2 of this DeleteObjectResponse.
|
108
|
+
|
109
|
+
:param x_obs_id_2: The x_obs_id_2 of this DeleteObjectResponse.
|
110
|
+
:type x_obs_id_2: str
|
111
|
+
"""
|
112
|
+
self._x_obs_id_2 = x_obs_id_2
|
113
|
+
|
114
|
+
@property
|
115
|
+
def x_obs_request_id(self):
|
116
|
+
r"""Gets the x_obs_request_id of this DeleteObjectResponse.
|
117
|
+
|
118
|
+
:return: The x_obs_request_id of this DeleteObjectResponse.
|
119
|
+
:rtype: str
|
120
|
+
"""
|
121
|
+
return self._x_obs_request_id
|
122
|
+
|
123
|
+
@x_obs_request_id.setter
|
124
|
+
def x_obs_request_id(self, x_obs_request_id):
|
125
|
+
r"""Sets the x_obs_request_id of this DeleteObjectResponse.
|
126
|
+
|
127
|
+
:param x_obs_request_id: The x_obs_request_id of this DeleteObjectResponse.
|
128
|
+
:type x_obs_request_id: str
|
129
|
+
"""
|
130
|
+
self._x_obs_request_id = x_obs_request_id
|
131
|
+
|
132
|
+
@property
|
133
|
+
def e_tag(self):
|
134
|
+
r"""Gets the e_tag of this DeleteObjectResponse.
|
135
|
+
|
136
|
+
:return: The e_tag of this DeleteObjectResponse.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._e_tag
|
140
|
+
|
141
|
+
@e_tag.setter
|
142
|
+
def e_tag(self, e_tag):
|
143
|
+
r"""Sets the e_tag of this DeleteObjectResponse.
|
144
|
+
|
145
|
+
:param e_tag: The e_tag of this DeleteObjectResponse.
|
146
|
+
:type e_tag: str
|
147
|
+
"""
|
148
|
+
self._e_tag = e_tag
|
149
|
+
|
150
|
+
@property
|
151
|
+
def connection(self):
|
152
|
+
r"""Gets the connection of this DeleteObjectResponse.
|
153
|
+
|
154
|
+
:return: The connection of this DeleteObjectResponse.
|
155
|
+
:rtype: str
|
156
|
+
"""
|
157
|
+
return self._connection
|
158
|
+
|
159
|
+
@connection.setter
|
160
|
+
def connection(self, connection):
|
161
|
+
r"""Sets the connection of this DeleteObjectResponse.
|
162
|
+
|
163
|
+
:param connection: The connection of this DeleteObjectResponse.
|
164
|
+
:type connection: str
|
165
|
+
"""
|
166
|
+
self._connection = connection
|
167
|
+
|
168
|
+
@property
|
169
|
+
def content_length(self):
|
170
|
+
r"""Gets the content_length of this DeleteObjectResponse.
|
171
|
+
|
172
|
+
:return: The content_length of this DeleteObjectResponse.
|
173
|
+
:rtype: str
|
174
|
+
"""
|
175
|
+
return self._content_length
|
176
|
+
|
177
|
+
@content_length.setter
|
178
|
+
def content_length(self, content_length):
|
179
|
+
r"""Sets the content_length of this DeleteObjectResponse.
|
180
|
+
|
181
|
+
:param content_length: The content_length of this DeleteObjectResponse.
|
182
|
+
:type content_length: str
|
183
|
+
"""
|
184
|
+
self._content_length = content_length
|
185
|
+
|
186
|
+
@property
|
187
|
+
def date(self):
|
188
|
+
r"""Gets the date of this DeleteObjectResponse.
|
189
|
+
|
190
|
+
:return: The date of this DeleteObjectResponse.
|
191
|
+
:rtype: str
|
192
|
+
"""
|
193
|
+
return self._date
|
194
|
+
|
195
|
+
@date.setter
|
196
|
+
def date(self, date):
|
197
|
+
r"""Sets the date of this DeleteObjectResponse.
|
198
|
+
|
199
|
+
:param date: The date of this DeleteObjectResponse.
|
200
|
+
:type date: str
|
201
|
+
"""
|
202
|
+
self._date = date
|
203
|
+
|
204
|
+
@property
|
205
|
+
def x_obs_delete_marker(self):
|
206
|
+
r"""Gets the x_obs_delete_marker of this DeleteObjectResponse.
|
207
|
+
|
208
|
+
:return: The x_obs_delete_marker of this DeleteObjectResponse.
|
209
|
+
:rtype: str
|
210
|
+
"""
|
211
|
+
return self._x_obs_delete_marker
|
212
|
+
|
213
|
+
@x_obs_delete_marker.setter
|
214
|
+
def x_obs_delete_marker(self, x_obs_delete_marker):
|
215
|
+
r"""Sets the x_obs_delete_marker of this DeleteObjectResponse.
|
216
|
+
|
217
|
+
:param x_obs_delete_marker: The x_obs_delete_marker of this DeleteObjectResponse.
|
218
|
+
:type x_obs_delete_marker: str
|
219
|
+
"""
|
220
|
+
self._x_obs_delete_marker = x_obs_delete_marker
|
221
|
+
|
222
|
+
@property
|
223
|
+
def x_obs_version_id(self):
|
224
|
+
r"""Gets the x_obs_version_id of this DeleteObjectResponse.
|
225
|
+
|
226
|
+
:return: The x_obs_version_id of this DeleteObjectResponse.
|
227
|
+
:rtype: str
|
228
|
+
"""
|
229
|
+
return self._x_obs_version_id
|
230
|
+
|
231
|
+
@x_obs_version_id.setter
|
232
|
+
def x_obs_version_id(self, x_obs_version_id):
|
233
|
+
r"""Sets the x_obs_version_id of this DeleteObjectResponse.
|
234
|
+
|
235
|
+
:param x_obs_version_id: The x_obs_version_id of this DeleteObjectResponse.
|
236
|
+
:type x_obs_version_id: str
|
237
|
+
"""
|
238
|
+
self._x_obs_version_id = x_obs_version_id
|
239
|
+
|
240
|
+
def to_dict(self):
|
241
|
+
"""Returns the model properties as a dict"""
|
242
|
+
result = {}
|
243
|
+
|
244
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
245
|
+
value = getattr(self, attr)
|
246
|
+
if isinstance(value, list):
|
247
|
+
result[attr] = list(map(
|
248
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
249
|
+
value
|
250
|
+
))
|
251
|
+
elif hasattr(value, "to_dict"):
|
252
|
+
result[attr] = value.to_dict()
|
253
|
+
elif isinstance(value, dict):
|
254
|
+
result[attr] = dict(map(
|
255
|
+
lambda item: (item[0], item[1].to_dict())
|
256
|
+
if hasattr(item[1], "to_dict") else item,
|
257
|
+
value.items()
|
258
|
+
))
|
259
|
+
else:
|
260
|
+
if attr in self.sensitive_list:
|
261
|
+
result[attr] = "****"
|
262
|
+
else:
|
263
|
+
result[attr] = value
|
264
|
+
|
265
|
+
return result
|
266
|
+
|
267
|
+
def to_str(self):
|
268
|
+
"""Returns the string representation of the model"""
|
269
|
+
import simplejson as json
|
270
|
+
if six.PY2:
|
271
|
+
import sys
|
272
|
+
reload(sys)
|
273
|
+
sys.setdefaultencoding("utf-8")
|
274
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
275
|
+
|
276
|
+
def __repr__(self):
|
277
|
+
"""For `print`"""
|
278
|
+
return self.to_str()
|
279
|
+
|
280
|
+
def __eq__(self, other):
|
281
|
+
"""Returns true if both objects are equal"""
|
282
|
+
if not isinstance(other, DeleteObjectResponse):
|
283
|
+
return False
|
284
|
+
|
285
|
+
return self.__dict__ == other.__dict__
|
286
|
+
|
287
|
+
def __ne__(self, other):
|
288
|
+
"""Returns true if both objects are not equal"""
|
289
|
+
return not self == other
|