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,405 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class GetObjectMetadataRequest:
|
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 = "GetObjectMetadataRequest"
|
18
|
+
|
19
|
+
sensitive_list = []
|
20
|
+
|
21
|
+
openapi_types = {
|
22
|
+
'bucket_name': 'str',
|
23
|
+
'object_key': 'str',
|
24
|
+
'date': 'str',
|
25
|
+
'version_id': 'str',
|
26
|
+
'origin': 'str',
|
27
|
+
'access_control_request_headers': 'str',
|
28
|
+
'x_obs_server_side_encryption_customer_algorithm': 'str',
|
29
|
+
'x_obs_server_side_encryption_customer_key': 'str',
|
30
|
+
'x_obs_server_side_encryption_customer_key_md5': 'str',
|
31
|
+
'success_action_redirect': 'str',
|
32
|
+
'x_obs_expires': 'int'
|
33
|
+
}
|
34
|
+
|
35
|
+
attribute_map = {
|
36
|
+
'bucket_name': 'bucket_name',
|
37
|
+
'object_key': 'object_key',
|
38
|
+
'date': 'Date',
|
39
|
+
'version_id': 'versionId',
|
40
|
+
'origin': 'Origin',
|
41
|
+
'access_control_request_headers': 'Access-Control-Request-Headers',
|
42
|
+
'x_obs_server_side_encryption_customer_algorithm': 'x-obs-server-side-encryption-customer-algorithm',
|
43
|
+
'x_obs_server_side_encryption_customer_key': 'x-obs-server-side-encryption-customer-key',
|
44
|
+
'x_obs_server_side_encryption_customer_key_md5': 'x-obs-server-side-encryption-customer-key-MD5',
|
45
|
+
'success_action_redirect': 'success-action-redirect',
|
46
|
+
'x_obs_expires': 'x-obs-expires'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, bucket_name=None, object_key=None, date=None, version_id=None, origin=None, access_control_request_headers=None, x_obs_server_side_encryption_customer_algorithm=None, x_obs_server_side_encryption_customer_key=None, x_obs_server_side_encryption_customer_key_md5=None, success_action_redirect=None, x_obs_expires=None):
|
50
|
+
r"""GetObjectMetadataRequest
|
51
|
+
|
52
|
+
The model defined in huaweicloud sdk
|
53
|
+
|
54
|
+
:param bucket_name: Name of the bucket.
|
55
|
+
:type bucket_name: str
|
56
|
+
:param object_key: Name of the object whose metadata will be returned.
|
57
|
+
:type object_key: str
|
58
|
+
: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.
|
59
|
+
:type date: str
|
60
|
+
:param version_id: Version ID of the object.
|
61
|
+
:type version_id: str
|
62
|
+
:param origin: Origin (usually a domain name) specified by the pre-request (a cross-origin request).
|
63
|
+
:type origin: str
|
64
|
+
:param access_control_request_headers: HTTP headers that can be contained in a request.
|
65
|
+
:type access_control_request_headers: str
|
66
|
+
:param x_obs_server_side_encryption_customer_algorithm: The decryption algorithm used for SSE-C.Example: x-obs-server-side-encryption-customer-algorithm:AES256Restriction: This header must be used together with **x-obs-server-side-encryption-customer-key** and **x-obs-server-side-encryption-customer-key-MD5**.
|
67
|
+
:type x_obs_server_side_encryption_customer_algorithm: str
|
68
|
+
:param x_obs_server_side_encryption_customer_key: Decryption key used for SSE-C.Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=Restriction: This header is a Base64-encoded 256-bit key and must be used together with **x-obs-server-side-encryption-customer-algorithm** and **x-obs-server-side-encryption-customer-key-MD5**.
|
69
|
+
:type x_obs_server_side_encryption_customer_key: str
|
70
|
+
:param x_obs_server_side_encryption_customer_key_md5: MD5 value of the key used to encrypt objects in SSE-C mode. An MD5 value is used to ensure that there is no error during the key transmission.Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==Restriction: This header is a Base64-encoded 128-bit MD5 value and must be used together with **x-obs-server-side-encryption-customer-algorithm** and **x-obs-server-side-encryption-customer-key**.
|
71
|
+
:type x_obs_server_side_encryption_customer_key_md5: str
|
72
|
+
:param success_action_redirect: The address (a URL) which a successfully responded request is redirected to. If this parameter value is valid and the request succeeds, OBS returns status code 303. The **Location** header consists of **success_action_redirect** as well as the bucket name, object name, and object ETag. If this parameter is invalid, OBS ignores this parameter and returns status code 204. In such case, the **Location** header is the object address.
|
73
|
+
:type success_action_redirect: str
|
74
|
+
:param x_obs_expires: When an object expires. It is measured in days. An object will be automatically deleted once it expires. The expiration is calculated from when the object was last modified. This header can be only configured during the object upload, and cannot be modified later by using the metadata API. Example: x-obs-expires:3
|
75
|
+
:type x_obs_expires: int
|
76
|
+
"""
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
self._bucket_name = None
|
81
|
+
self._object_key = None
|
82
|
+
self._date = None
|
83
|
+
self._version_id = None
|
84
|
+
self._origin = None
|
85
|
+
self._access_control_request_headers = None
|
86
|
+
self._x_obs_server_side_encryption_customer_algorithm = None
|
87
|
+
self._x_obs_server_side_encryption_customer_key = None
|
88
|
+
self._x_obs_server_side_encryption_customer_key_md5 = None
|
89
|
+
self._success_action_redirect = None
|
90
|
+
self._x_obs_expires = None
|
91
|
+
self.discriminator = None
|
92
|
+
|
93
|
+
self.bucket_name = bucket_name
|
94
|
+
self.object_key = object_key
|
95
|
+
if date is not None:
|
96
|
+
self.date = date
|
97
|
+
if version_id is not None:
|
98
|
+
self.version_id = version_id
|
99
|
+
if origin is not None:
|
100
|
+
self.origin = origin
|
101
|
+
if access_control_request_headers is not None:
|
102
|
+
self.access_control_request_headers = access_control_request_headers
|
103
|
+
if x_obs_server_side_encryption_customer_algorithm is not None:
|
104
|
+
self.x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm
|
105
|
+
if x_obs_server_side_encryption_customer_key is not None:
|
106
|
+
self.x_obs_server_side_encryption_customer_key = x_obs_server_side_encryption_customer_key
|
107
|
+
if x_obs_server_side_encryption_customer_key_md5 is not None:
|
108
|
+
self.x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5
|
109
|
+
if success_action_redirect is not None:
|
110
|
+
self.success_action_redirect = success_action_redirect
|
111
|
+
if x_obs_expires is not None:
|
112
|
+
self.x_obs_expires = x_obs_expires
|
113
|
+
|
114
|
+
@property
|
115
|
+
def bucket_name(self):
|
116
|
+
r"""Gets the bucket_name of this GetObjectMetadataRequest.
|
117
|
+
|
118
|
+
Name of the bucket.
|
119
|
+
|
120
|
+
:return: The bucket_name of this GetObjectMetadataRequest.
|
121
|
+
:rtype: str
|
122
|
+
"""
|
123
|
+
return self._bucket_name
|
124
|
+
|
125
|
+
@bucket_name.setter
|
126
|
+
def bucket_name(self, bucket_name):
|
127
|
+
r"""Sets the bucket_name of this GetObjectMetadataRequest.
|
128
|
+
|
129
|
+
Name of the bucket.
|
130
|
+
|
131
|
+
:param bucket_name: The bucket_name of this GetObjectMetadataRequest.
|
132
|
+
:type bucket_name: str
|
133
|
+
"""
|
134
|
+
self._bucket_name = bucket_name
|
135
|
+
|
136
|
+
@property
|
137
|
+
def object_key(self):
|
138
|
+
r"""Gets the object_key of this GetObjectMetadataRequest.
|
139
|
+
|
140
|
+
Name of the object whose metadata will be returned.
|
141
|
+
|
142
|
+
:return: The object_key of this GetObjectMetadataRequest.
|
143
|
+
:rtype: str
|
144
|
+
"""
|
145
|
+
return self._object_key
|
146
|
+
|
147
|
+
@object_key.setter
|
148
|
+
def object_key(self, object_key):
|
149
|
+
r"""Sets the object_key of this GetObjectMetadataRequest.
|
150
|
+
|
151
|
+
Name of the object whose metadata will be returned.
|
152
|
+
|
153
|
+
:param object_key: The object_key of this GetObjectMetadataRequest.
|
154
|
+
:type object_key: str
|
155
|
+
"""
|
156
|
+
self._object_key = object_key
|
157
|
+
|
158
|
+
@property
|
159
|
+
def date(self):
|
160
|
+
r"""Gets the date of this GetObjectMetadataRequest.
|
161
|
+
|
162
|
+
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.
|
163
|
+
|
164
|
+
:return: The date of this GetObjectMetadataRequest.
|
165
|
+
:rtype: str
|
166
|
+
"""
|
167
|
+
return self._date
|
168
|
+
|
169
|
+
@date.setter
|
170
|
+
def date(self, date):
|
171
|
+
r"""Sets the date of this GetObjectMetadataRequest.
|
172
|
+
|
173
|
+
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.
|
174
|
+
|
175
|
+
:param date: The date of this GetObjectMetadataRequest.
|
176
|
+
:type date: str
|
177
|
+
"""
|
178
|
+
self._date = date
|
179
|
+
|
180
|
+
@property
|
181
|
+
def version_id(self):
|
182
|
+
r"""Gets the version_id of this GetObjectMetadataRequest.
|
183
|
+
|
184
|
+
Version ID of the object.
|
185
|
+
|
186
|
+
:return: The version_id of this GetObjectMetadataRequest.
|
187
|
+
:rtype: str
|
188
|
+
"""
|
189
|
+
return self._version_id
|
190
|
+
|
191
|
+
@version_id.setter
|
192
|
+
def version_id(self, version_id):
|
193
|
+
r"""Sets the version_id of this GetObjectMetadataRequest.
|
194
|
+
|
195
|
+
Version ID of the object.
|
196
|
+
|
197
|
+
:param version_id: The version_id of this GetObjectMetadataRequest.
|
198
|
+
:type version_id: str
|
199
|
+
"""
|
200
|
+
self._version_id = version_id
|
201
|
+
|
202
|
+
@property
|
203
|
+
def origin(self):
|
204
|
+
r"""Gets the origin of this GetObjectMetadataRequest.
|
205
|
+
|
206
|
+
Origin (usually a domain name) specified by the pre-request (a cross-origin request).
|
207
|
+
|
208
|
+
:return: The origin of this GetObjectMetadataRequest.
|
209
|
+
:rtype: str
|
210
|
+
"""
|
211
|
+
return self._origin
|
212
|
+
|
213
|
+
@origin.setter
|
214
|
+
def origin(self, origin):
|
215
|
+
r"""Sets the origin of this GetObjectMetadataRequest.
|
216
|
+
|
217
|
+
Origin (usually a domain name) specified by the pre-request (a cross-origin request).
|
218
|
+
|
219
|
+
:param origin: The origin of this GetObjectMetadataRequest.
|
220
|
+
:type origin: str
|
221
|
+
"""
|
222
|
+
self._origin = origin
|
223
|
+
|
224
|
+
@property
|
225
|
+
def access_control_request_headers(self):
|
226
|
+
r"""Gets the access_control_request_headers of this GetObjectMetadataRequest.
|
227
|
+
|
228
|
+
HTTP headers that can be contained in a request.
|
229
|
+
|
230
|
+
:return: The access_control_request_headers of this GetObjectMetadataRequest.
|
231
|
+
:rtype: str
|
232
|
+
"""
|
233
|
+
return self._access_control_request_headers
|
234
|
+
|
235
|
+
@access_control_request_headers.setter
|
236
|
+
def access_control_request_headers(self, access_control_request_headers):
|
237
|
+
r"""Sets the access_control_request_headers of this GetObjectMetadataRequest.
|
238
|
+
|
239
|
+
HTTP headers that can be contained in a request.
|
240
|
+
|
241
|
+
:param access_control_request_headers: The access_control_request_headers of this GetObjectMetadataRequest.
|
242
|
+
:type access_control_request_headers: str
|
243
|
+
"""
|
244
|
+
self._access_control_request_headers = access_control_request_headers
|
245
|
+
|
246
|
+
@property
|
247
|
+
def x_obs_server_side_encryption_customer_algorithm(self):
|
248
|
+
r"""Gets the x_obs_server_side_encryption_customer_algorithm of this GetObjectMetadataRequest.
|
249
|
+
|
250
|
+
The decryption algorithm used for SSE-C.Example: x-obs-server-side-encryption-customer-algorithm:AES256Restriction: This header must be used together with **x-obs-server-side-encryption-customer-key** and **x-obs-server-side-encryption-customer-key-MD5**.
|
251
|
+
|
252
|
+
:return: The x_obs_server_side_encryption_customer_algorithm of this GetObjectMetadataRequest.
|
253
|
+
:rtype: str
|
254
|
+
"""
|
255
|
+
return self._x_obs_server_side_encryption_customer_algorithm
|
256
|
+
|
257
|
+
@x_obs_server_side_encryption_customer_algorithm.setter
|
258
|
+
def x_obs_server_side_encryption_customer_algorithm(self, x_obs_server_side_encryption_customer_algorithm):
|
259
|
+
r"""Sets the x_obs_server_side_encryption_customer_algorithm of this GetObjectMetadataRequest.
|
260
|
+
|
261
|
+
The decryption algorithm used for SSE-C.Example: x-obs-server-side-encryption-customer-algorithm:AES256Restriction: This header must be used together with **x-obs-server-side-encryption-customer-key** and **x-obs-server-side-encryption-customer-key-MD5**.
|
262
|
+
|
263
|
+
:param x_obs_server_side_encryption_customer_algorithm: The x_obs_server_side_encryption_customer_algorithm of this GetObjectMetadataRequest.
|
264
|
+
:type x_obs_server_side_encryption_customer_algorithm: str
|
265
|
+
"""
|
266
|
+
self._x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm
|
267
|
+
|
268
|
+
@property
|
269
|
+
def x_obs_server_side_encryption_customer_key(self):
|
270
|
+
r"""Gets the x_obs_server_side_encryption_customer_key of this GetObjectMetadataRequest.
|
271
|
+
|
272
|
+
Decryption key used for SSE-C.Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=Restriction: This header is a Base64-encoded 256-bit key and must be used together with **x-obs-server-side-encryption-customer-algorithm** and **x-obs-server-side-encryption-customer-key-MD5**.
|
273
|
+
|
274
|
+
:return: The x_obs_server_side_encryption_customer_key of this GetObjectMetadataRequest.
|
275
|
+
:rtype: str
|
276
|
+
"""
|
277
|
+
return self._x_obs_server_side_encryption_customer_key
|
278
|
+
|
279
|
+
@x_obs_server_side_encryption_customer_key.setter
|
280
|
+
def x_obs_server_side_encryption_customer_key(self, x_obs_server_side_encryption_customer_key):
|
281
|
+
r"""Sets the x_obs_server_side_encryption_customer_key of this GetObjectMetadataRequest.
|
282
|
+
|
283
|
+
Decryption key used for SSE-C.Example: x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=Restriction: This header is a Base64-encoded 256-bit key and must be used together with **x-obs-server-side-encryption-customer-algorithm** and **x-obs-server-side-encryption-customer-key-MD5**.
|
284
|
+
|
285
|
+
:param x_obs_server_side_encryption_customer_key: The x_obs_server_side_encryption_customer_key of this GetObjectMetadataRequest.
|
286
|
+
:type x_obs_server_side_encryption_customer_key: str
|
287
|
+
"""
|
288
|
+
self._x_obs_server_side_encryption_customer_key = x_obs_server_side_encryption_customer_key
|
289
|
+
|
290
|
+
@property
|
291
|
+
def x_obs_server_side_encryption_customer_key_md5(self):
|
292
|
+
r"""Gets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectMetadataRequest.
|
293
|
+
|
294
|
+
MD5 value of the key used to encrypt objects in SSE-C mode. An MD5 value is used to ensure that there is no error during the key transmission.Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==Restriction: This header is a Base64-encoded 128-bit MD5 value and must be used together with **x-obs-server-side-encryption-customer-algorithm** and **x-obs-server-side-encryption-customer-key**.
|
295
|
+
|
296
|
+
:return: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectMetadataRequest.
|
297
|
+
:rtype: str
|
298
|
+
"""
|
299
|
+
return self._x_obs_server_side_encryption_customer_key_md5
|
300
|
+
|
301
|
+
@x_obs_server_side_encryption_customer_key_md5.setter
|
302
|
+
def x_obs_server_side_encryption_customer_key_md5(self, x_obs_server_side_encryption_customer_key_md5):
|
303
|
+
r"""Sets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectMetadataRequest.
|
304
|
+
|
305
|
+
MD5 value of the key used to encrypt objects in SSE-C mode. An MD5 value is used to ensure that there is no error during the key transmission.Example: x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==Restriction: This header is a Base64-encoded 128-bit MD5 value and must be used together with **x-obs-server-side-encryption-customer-algorithm** and **x-obs-server-side-encryption-customer-key**.
|
306
|
+
|
307
|
+
:param x_obs_server_side_encryption_customer_key_md5: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectMetadataRequest.
|
308
|
+
:type x_obs_server_side_encryption_customer_key_md5: str
|
309
|
+
"""
|
310
|
+
self._x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5
|
311
|
+
|
312
|
+
@property
|
313
|
+
def success_action_redirect(self):
|
314
|
+
r"""Gets the success_action_redirect of this GetObjectMetadataRequest.
|
315
|
+
|
316
|
+
The address (a URL) which a successfully responded request is redirected to. If this parameter value is valid and the request succeeds, OBS returns status code 303. The **Location** header consists of **success_action_redirect** as well as the bucket name, object name, and object ETag. If this parameter is invalid, OBS ignores this parameter and returns status code 204. In such case, the **Location** header is the object address.
|
317
|
+
|
318
|
+
:return: The success_action_redirect of this GetObjectMetadataRequest.
|
319
|
+
:rtype: str
|
320
|
+
"""
|
321
|
+
return self._success_action_redirect
|
322
|
+
|
323
|
+
@success_action_redirect.setter
|
324
|
+
def success_action_redirect(self, success_action_redirect):
|
325
|
+
r"""Sets the success_action_redirect of this GetObjectMetadataRequest.
|
326
|
+
|
327
|
+
The address (a URL) which a successfully responded request is redirected to. If this parameter value is valid and the request succeeds, OBS returns status code 303. The **Location** header consists of **success_action_redirect** as well as the bucket name, object name, and object ETag. If this parameter is invalid, OBS ignores this parameter and returns status code 204. In such case, the **Location** header is the object address.
|
328
|
+
|
329
|
+
:param success_action_redirect: The success_action_redirect of this GetObjectMetadataRequest.
|
330
|
+
:type success_action_redirect: str
|
331
|
+
"""
|
332
|
+
self._success_action_redirect = success_action_redirect
|
333
|
+
|
334
|
+
@property
|
335
|
+
def x_obs_expires(self):
|
336
|
+
r"""Gets the x_obs_expires of this GetObjectMetadataRequest.
|
337
|
+
|
338
|
+
When an object expires. It is measured in days. An object will be automatically deleted once it expires. The expiration is calculated from when the object was last modified. This header can be only configured during the object upload, and cannot be modified later by using the metadata API. Example: x-obs-expires:3
|
339
|
+
|
340
|
+
:return: The x_obs_expires of this GetObjectMetadataRequest.
|
341
|
+
:rtype: int
|
342
|
+
"""
|
343
|
+
return self._x_obs_expires
|
344
|
+
|
345
|
+
@x_obs_expires.setter
|
346
|
+
def x_obs_expires(self, x_obs_expires):
|
347
|
+
r"""Sets the x_obs_expires of this GetObjectMetadataRequest.
|
348
|
+
|
349
|
+
When an object expires. It is measured in days. An object will be automatically deleted once it expires. The expiration is calculated from when the object was last modified. This header can be only configured during the object upload, and cannot be modified later by using the metadata API. Example: x-obs-expires:3
|
350
|
+
|
351
|
+
:param x_obs_expires: The x_obs_expires of this GetObjectMetadataRequest.
|
352
|
+
:type x_obs_expires: int
|
353
|
+
"""
|
354
|
+
self._x_obs_expires = x_obs_expires
|
355
|
+
|
356
|
+
def to_dict(self):
|
357
|
+
"""Returns the model properties as a dict"""
|
358
|
+
result = {}
|
359
|
+
|
360
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
361
|
+
value = getattr(self, attr)
|
362
|
+
if isinstance(value, list):
|
363
|
+
result[attr] = list(map(
|
364
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
365
|
+
value
|
366
|
+
))
|
367
|
+
elif hasattr(value, "to_dict"):
|
368
|
+
result[attr] = value.to_dict()
|
369
|
+
elif isinstance(value, dict):
|
370
|
+
result[attr] = dict(map(
|
371
|
+
lambda item: (item[0], item[1].to_dict())
|
372
|
+
if hasattr(item[1], "to_dict") else item,
|
373
|
+
value.items()
|
374
|
+
))
|
375
|
+
else:
|
376
|
+
if attr in self.sensitive_list:
|
377
|
+
result[attr] = "****"
|
378
|
+
else:
|
379
|
+
result[attr] = value
|
380
|
+
|
381
|
+
return result
|
382
|
+
|
383
|
+
def to_str(self):
|
384
|
+
"""Returns the string representation of the model"""
|
385
|
+
import simplejson as json
|
386
|
+
if six.PY2:
|
387
|
+
import sys
|
388
|
+
reload(sys)
|
389
|
+
sys.setdefaultencoding("utf-8")
|
390
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
391
|
+
|
392
|
+
def __repr__(self):
|
393
|
+
"""For `print`"""
|
394
|
+
return self.to_str()
|
395
|
+
|
396
|
+
def __eq__(self, other):
|
397
|
+
"""Returns true if both objects are equal"""
|
398
|
+
if not isinstance(other, GetObjectMetadataRequest):
|
399
|
+
return False
|
400
|
+
|
401
|
+
return self.__dict__ == other.__dict__
|
402
|
+
|
403
|
+
def __ne__(self, other):
|
404
|
+
"""Returns true if both objects are not equal"""
|
405
|
+
return not self == other
|