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,666 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class GetObjectRequest:
|
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 = "GetObjectRequest"
|
18
|
+
|
19
|
+
sensitive_list = []
|
20
|
+
|
21
|
+
openapi_types = {
|
22
|
+
'bucket_name': 'str',
|
23
|
+
'object_key': 'str',
|
24
|
+
'date': 'str',
|
25
|
+
'response_content_type': 'str',
|
26
|
+
'response_content_language': 'str',
|
27
|
+
'response_expires': 'str',
|
28
|
+
'response_cache_control': 'str',
|
29
|
+
'response_content_disposition': 'str',
|
30
|
+
'response_content_encoding': 'str',
|
31
|
+
'version_id': 'str',
|
32
|
+
'x_image_process': 'str',
|
33
|
+
'attname': 'str',
|
34
|
+
'range': 'str',
|
35
|
+
'if_modified_since': 'str',
|
36
|
+
'if_unmodified_since': 'str',
|
37
|
+
'if_match': 'str',
|
38
|
+
'if_none_match': 'str',
|
39
|
+
'x_obs_server_side_encryption_customer_algorithm': 'str',
|
40
|
+
'x_obs_server_side_encryption_customer_key': 'str',
|
41
|
+
'x_obs_server_side_encryption_customer_key_md5': 'str'
|
42
|
+
}
|
43
|
+
|
44
|
+
attribute_map = {
|
45
|
+
'bucket_name': 'bucket_name',
|
46
|
+
'object_key': 'object_key',
|
47
|
+
'date': 'Date',
|
48
|
+
'response_content_type': 'response-content-type',
|
49
|
+
'response_content_language': 'response-content-language',
|
50
|
+
'response_expires': 'response-expires',
|
51
|
+
'response_cache_control': 'response-cache-control',
|
52
|
+
'response_content_disposition': 'response-content-disposition',
|
53
|
+
'response_content_encoding': 'response-content-encoding',
|
54
|
+
'version_id': 'versionId',
|
55
|
+
'x_image_process': 'x-image-process',
|
56
|
+
'attname': 'attname',
|
57
|
+
'range': 'Range',
|
58
|
+
'if_modified_since': 'If-Modified-Since',
|
59
|
+
'if_unmodified_since': 'If-Unmodified-Since',
|
60
|
+
'if_match': 'If-Match',
|
61
|
+
'if_none_match': 'If-None-Match',
|
62
|
+
'x_obs_server_side_encryption_customer_algorithm': 'x-obs-server-side-encryption-customer-algorithm',
|
63
|
+
'x_obs_server_side_encryption_customer_key': 'x-obs-server-side-encryption-customer-key',
|
64
|
+
'x_obs_server_side_encryption_customer_key_md5': 'x-obs-server-side-encryption-customer-key-MD5'
|
65
|
+
}
|
66
|
+
|
67
|
+
def __init__(self, bucket_name=None, object_key=None, date=None, response_content_type=None, response_content_language=None, response_expires=None, response_cache_control=None, response_content_disposition=None, response_content_encoding=None, version_id=None, x_image_process=None, attname=None, range=None, if_modified_since=None, if_unmodified_since=None, if_match=None, if_none_match=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):
|
68
|
+
r"""GetObjectRequest
|
69
|
+
|
70
|
+
The model defined in huaweicloud sdk
|
71
|
+
|
72
|
+
:param bucket_name: Name of the bucket.
|
73
|
+
:type bucket_name: str
|
74
|
+
:param object_key: Object key for which this operation was initiated.
|
75
|
+
:type object_key: str
|
76
|
+
: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.
|
77
|
+
:type date: str
|
78
|
+
:param response_content_type: Overrides the **Content-Type** header in the response.
|
79
|
+
:type response_content_type: str
|
80
|
+
:param response_content_language: Overrides the **Content-Language** header in the response.
|
81
|
+
:type response_content_language: str
|
82
|
+
:param response_expires: Overrides the **Expires** header in the response.
|
83
|
+
:type response_expires: str
|
84
|
+
:param response_cache_control: Overrides the **Cache-Control** header in the response.
|
85
|
+
:type response_cache_control: str
|
86
|
+
:param response_content_disposition: Overrides the **Content-Disposition** header in the response. Example: response-content-disposition=attachment; filename*=utf-8''name1 In this example, the downloaded object is renamed **name1**. If **name1** contains Chinese characters, the Chinese characters must be URL-encoded.
|
87
|
+
:type response_content_disposition: str
|
88
|
+
:param response_content_encoding: Overrides the **Content-Encoding** header in the response.
|
89
|
+
:type response_content_encoding: str
|
90
|
+
:param version_id: Version ID of the object you want to download.
|
91
|
+
:type version_id: str
|
92
|
+
:param x_image_process: Image processing service.Examples:Command: x-image-process=image/commandsStyle: x-image-process=style/stylenameFor details, see the [Image Processing Feature Guide](https://support.huaweicloud.com/intl/en-us/fg-obs/obs_01_0001.html).
|
93
|
+
:type x_image_process: str
|
94
|
+
:param attname: Overrides the **Content-Disposition** header in the response. Example: attname=name1 The downloaded object is renamed **name1**.
|
95
|
+
:type attname: str
|
96
|
+
:param range: Obtains the content within the scope defined by **Range**. If the **Range** header is invalid, the entire object is obtained.**Range** consists of a start value and an end value. Its start value is mandatory and ranges from 0 to the object length minus 1. If **Range** contains only a start value, the object content from the start value to the default maximum start value is obtained.With the **Range** header carried, the ETag in the response is still the ETag of the object, instead of that of the object content defined by the **Range** header.bytes=byte_rangeExample 1: bytes=0-4Example 2: bytes=1024Example 3: bytes=10-20,30-40 (multiple ranges)
|
97
|
+
:type range: str
|
98
|
+
:param if_modified_since: Returns the object only if it has been modified since the time specified in the request, or **304 Not Modified** is returned. Type: HTTP time string complying with the format specified at **http://www.ietf.org/rfc/rfc2616.txt**
|
99
|
+
:type if_modified_since: str
|
100
|
+
:param if_unmodified_since: Returns the object only if it has not been modified since the time specified in the request, or **412 Precondition Failed** is returned. Type: HTTP time string complying with the format specified at **http://www.ietf.org/rfc/rfc2616.txt**
|
101
|
+
:type if_unmodified_since: str
|
102
|
+
:param if_match: Returns the object only if its ETag is the same as the one specified in the request, or **412 Precondition Failed** is returned. (ETag example: 0f64741bf7cb1089e988e4585d0d3434)
|
103
|
+
:type if_match: str
|
104
|
+
:param if_none_match: Returns the object only if its ETag is different from the one specified in the request, or **304 Not Modified** is returned. (ETag example: 0f64741bf7cb1089e988e4585d0d3434)
|
105
|
+
:type if_none_match: str
|
106
|
+
:param x_obs_server_side_encryption_customer_algorithm: The encryption 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**.
|
107
|
+
:type x_obs_server_side_encryption_customer_algorithm: str
|
108
|
+
:param x_obs_server_side_encryption_customer_key: Encryption key used for SSE-C. This key is used to decrypt objects.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**.
|
109
|
+
:type x_obs_server_side_encryption_customer_key: str
|
110
|
+
:param x_obs_server_side_encryption_customer_key_md5: MD5 value of the key used to encrypt objects in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key. 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**.
|
111
|
+
:type x_obs_server_side_encryption_customer_key_md5: str
|
112
|
+
"""
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
self._bucket_name = None
|
117
|
+
self._object_key = None
|
118
|
+
self._date = None
|
119
|
+
self._response_content_type = None
|
120
|
+
self._response_content_language = None
|
121
|
+
self._response_expires = None
|
122
|
+
self._response_cache_control = None
|
123
|
+
self._response_content_disposition = None
|
124
|
+
self._response_content_encoding = None
|
125
|
+
self._version_id = None
|
126
|
+
self._x_image_process = None
|
127
|
+
self._attname = None
|
128
|
+
self._range = None
|
129
|
+
self._if_modified_since = None
|
130
|
+
self._if_unmodified_since = None
|
131
|
+
self._if_match = None
|
132
|
+
self._if_none_match = None
|
133
|
+
self._x_obs_server_side_encryption_customer_algorithm = None
|
134
|
+
self._x_obs_server_side_encryption_customer_key = None
|
135
|
+
self._x_obs_server_side_encryption_customer_key_md5 = None
|
136
|
+
self.discriminator = None
|
137
|
+
|
138
|
+
self.bucket_name = bucket_name
|
139
|
+
self.object_key = object_key
|
140
|
+
if date is not None:
|
141
|
+
self.date = date
|
142
|
+
if response_content_type is not None:
|
143
|
+
self.response_content_type = response_content_type
|
144
|
+
if response_content_language is not None:
|
145
|
+
self.response_content_language = response_content_language
|
146
|
+
if response_expires is not None:
|
147
|
+
self.response_expires = response_expires
|
148
|
+
if response_cache_control is not None:
|
149
|
+
self.response_cache_control = response_cache_control
|
150
|
+
if response_content_disposition is not None:
|
151
|
+
self.response_content_disposition = response_content_disposition
|
152
|
+
if response_content_encoding is not None:
|
153
|
+
self.response_content_encoding = response_content_encoding
|
154
|
+
if version_id is not None:
|
155
|
+
self.version_id = version_id
|
156
|
+
if x_image_process is not None:
|
157
|
+
self.x_image_process = x_image_process
|
158
|
+
if attname is not None:
|
159
|
+
self.attname = attname
|
160
|
+
if range is not None:
|
161
|
+
self.range = range
|
162
|
+
if if_modified_since is not None:
|
163
|
+
self.if_modified_since = if_modified_since
|
164
|
+
if if_unmodified_since is not None:
|
165
|
+
self.if_unmodified_since = if_unmodified_since
|
166
|
+
if if_match is not None:
|
167
|
+
self.if_match = if_match
|
168
|
+
if if_none_match is not None:
|
169
|
+
self.if_none_match = if_none_match
|
170
|
+
if x_obs_server_side_encryption_customer_algorithm is not None:
|
171
|
+
self.x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm
|
172
|
+
if x_obs_server_side_encryption_customer_key is not None:
|
173
|
+
self.x_obs_server_side_encryption_customer_key = x_obs_server_side_encryption_customer_key
|
174
|
+
if x_obs_server_side_encryption_customer_key_md5 is not None:
|
175
|
+
self.x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5
|
176
|
+
|
177
|
+
@property
|
178
|
+
def bucket_name(self):
|
179
|
+
r"""Gets the bucket_name of this GetObjectRequest.
|
180
|
+
|
181
|
+
Name of the bucket.
|
182
|
+
|
183
|
+
:return: The bucket_name of this GetObjectRequest.
|
184
|
+
:rtype: str
|
185
|
+
"""
|
186
|
+
return self._bucket_name
|
187
|
+
|
188
|
+
@bucket_name.setter
|
189
|
+
def bucket_name(self, bucket_name):
|
190
|
+
r"""Sets the bucket_name of this GetObjectRequest.
|
191
|
+
|
192
|
+
Name of the bucket.
|
193
|
+
|
194
|
+
:param bucket_name: The bucket_name of this GetObjectRequest.
|
195
|
+
:type bucket_name: str
|
196
|
+
"""
|
197
|
+
self._bucket_name = bucket_name
|
198
|
+
|
199
|
+
@property
|
200
|
+
def object_key(self):
|
201
|
+
r"""Gets the object_key of this GetObjectRequest.
|
202
|
+
|
203
|
+
Object key for which this operation was initiated.
|
204
|
+
|
205
|
+
:return: The object_key of this GetObjectRequest.
|
206
|
+
:rtype: str
|
207
|
+
"""
|
208
|
+
return self._object_key
|
209
|
+
|
210
|
+
@object_key.setter
|
211
|
+
def object_key(self, object_key):
|
212
|
+
r"""Sets the object_key of this GetObjectRequest.
|
213
|
+
|
214
|
+
Object key for which this operation was initiated.
|
215
|
+
|
216
|
+
:param object_key: The object_key of this GetObjectRequest.
|
217
|
+
:type object_key: str
|
218
|
+
"""
|
219
|
+
self._object_key = object_key
|
220
|
+
|
221
|
+
@property
|
222
|
+
def date(self):
|
223
|
+
r"""Gets the date of this GetObjectRequest.
|
224
|
+
|
225
|
+
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.
|
226
|
+
|
227
|
+
:return: The date of this GetObjectRequest.
|
228
|
+
:rtype: str
|
229
|
+
"""
|
230
|
+
return self._date
|
231
|
+
|
232
|
+
@date.setter
|
233
|
+
def date(self, date):
|
234
|
+
r"""Sets the date of this GetObjectRequest.
|
235
|
+
|
236
|
+
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.
|
237
|
+
|
238
|
+
:param date: The date of this GetObjectRequest.
|
239
|
+
:type date: str
|
240
|
+
"""
|
241
|
+
self._date = date
|
242
|
+
|
243
|
+
@property
|
244
|
+
def response_content_type(self):
|
245
|
+
r"""Gets the response_content_type of this GetObjectRequest.
|
246
|
+
|
247
|
+
Overrides the **Content-Type** header in the response.
|
248
|
+
|
249
|
+
:return: The response_content_type of this GetObjectRequest.
|
250
|
+
:rtype: str
|
251
|
+
"""
|
252
|
+
return self._response_content_type
|
253
|
+
|
254
|
+
@response_content_type.setter
|
255
|
+
def response_content_type(self, response_content_type):
|
256
|
+
r"""Sets the response_content_type of this GetObjectRequest.
|
257
|
+
|
258
|
+
Overrides the **Content-Type** header in the response.
|
259
|
+
|
260
|
+
:param response_content_type: The response_content_type of this GetObjectRequest.
|
261
|
+
:type response_content_type: str
|
262
|
+
"""
|
263
|
+
self._response_content_type = response_content_type
|
264
|
+
|
265
|
+
@property
|
266
|
+
def response_content_language(self):
|
267
|
+
r"""Gets the response_content_language of this GetObjectRequest.
|
268
|
+
|
269
|
+
Overrides the **Content-Language** header in the response.
|
270
|
+
|
271
|
+
:return: The response_content_language of this GetObjectRequest.
|
272
|
+
:rtype: str
|
273
|
+
"""
|
274
|
+
return self._response_content_language
|
275
|
+
|
276
|
+
@response_content_language.setter
|
277
|
+
def response_content_language(self, response_content_language):
|
278
|
+
r"""Sets the response_content_language of this GetObjectRequest.
|
279
|
+
|
280
|
+
Overrides the **Content-Language** header in the response.
|
281
|
+
|
282
|
+
:param response_content_language: The response_content_language of this GetObjectRequest.
|
283
|
+
:type response_content_language: str
|
284
|
+
"""
|
285
|
+
self._response_content_language = response_content_language
|
286
|
+
|
287
|
+
@property
|
288
|
+
def response_expires(self):
|
289
|
+
r"""Gets the response_expires of this GetObjectRequest.
|
290
|
+
|
291
|
+
Overrides the **Expires** header in the response.
|
292
|
+
|
293
|
+
:return: The response_expires of this GetObjectRequest.
|
294
|
+
:rtype: str
|
295
|
+
"""
|
296
|
+
return self._response_expires
|
297
|
+
|
298
|
+
@response_expires.setter
|
299
|
+
def response_expires(self, response_expires):
|
300
|
+
r"""Sets the response_expires of this GetObjectRequest.
|
301
|
+
|
302
|
+
Overrides the **Expires** header in the response.
|
303
|
+
|
304
|
+
:param response_expires: The response_expires of this GetObjectRequest.
|
305
|
+
:type response_expires: str
|
306
|
+
"""
|
307
|
+
self._response_expires = response_expires
|
308
|
+
|
309
|
+
@property
|
310
|
+
def response_cache_control(self):
|
311
|
+
r"""Gets the response_cache_control of this GetObjectRequest.
|
312
|
+
|
313
|
+
Overrides the **Cache-Control** header in the response.
|
314
|
+
|
315
|
+
:return: The response_cache_control of this GetObjectRequest.
|
316
|
+
:rtype: str
|
317
|
+
"""
|
318
|
+
return self._response_cache_control
|
319
|
+
|
320
|
+
@response_cache_control.setter
|
321
|
+
def response_cache_control(self, response_cache_control):
|
322
|
+
r"""Sets the response_cache_control of this GetObjectRequest.
|
323
|
+
|
324
|
+
Overrides the **Cache-Control** header in the response.
|
325
|
+
|
326
|
+
:param response_cache_control: The response_cache_control of this GetObjectRequest.
|
327
|
+
:type response_cache_control: str
|
328
|
+
"""
|
329
|
+
self._response_cache_control = response_cache_control
|
330
|
+
|
331
|
+
@property
|
332
|
+
def response_content_disposition(self):
|
333
|
+
r"""Gets the response_content_disposition of this GetObjectRequest.
|
334
|
+
|
335
|
+
Overrides the **Content-Disposition** header in the response. Example: response-content-disposition=attachment; filename*=utf-8''name1 In this example, the downloaded object is renamed **name1**. If **name1** contains Chinese characters, the Chinese characters must be URL-encoded.
|
336
|
+
|
337
|
+
:return: The response_content_disposition of this GetObjectRequest.
|
338
|
+
:rtype: str
|
339
|
+
"""
|
340
|
+
return self._response_content_disposition
|
341
|
+
|
342
|
+
@response_content_disposition.setter
|
343
|
+
def response_content_disposition(self, response_content_disposition):
|
344
|
+
r"""Sets the response_content_disposition of this GetObjectRequest.
|
345
|
+
|
346
|
+
Overrides the **Content-Disposition** header in the response. Example: response-content-disposition=attachment; filename*=utf-8''name1 In this example, the downloaded object is renamed **name1**. If **name1** contains Chinese characters, the Chinese characters must be URL-encoded.
|
347
|
+
|
348
|
+
:param response_content_disposition: The response_content_disposition of this GetObjectRequest.
|
349
|
+
:type response_content_disposition: str
|
350
|
+
"""
|
351
|
+
self._response_content_disposition = response_content_disposition
|
352
|
+
|
353
|
+
@property
|
354
|
+
def response_content_encoding(self):
|
355
|
+
r"""Gets the response_content_encoding of this GetObjectRequest.
|
356
|
+
|
357
|
+
Overrides the **Content-Encoding** header in the response.
|
358
|
+
|
359
|
+
:return: The response_content_encoding of this GetObjectRequest.
|
360
|
+
:rtype: str
|
361
|
+
"""
|
362
|
+
return self._response_content_encoding
|
363
|
+
|
364
|
+
@response_content_encoding.setter
|
365
|
+
def response_content_encoding(self, response_content_encoding):
|
366
|
+
r"""Sets the response_content_encoding of this GetObjectRequest.
|
367
|
+
|
368
|
+
Overrides the **Content-Encoding** header in the response.
|
369
|
+
|
370
|
+
:param response_content_encoding: The response_content_encoding of this GetObjectRequest.
|
371
|
+
:type response_content_encoding: str
|
372
|
+
"""
|
373
|
+
self._response_content_encoding = response_content_encoding
|
374
|
+
|
375
|
+
@property
|
376
|
+
def version_id(self):
|
377
|
+
r"""Gets the version_id of this GetObjectRequest.
|
378
|
+
|
379
|
+
Version ID of the object you want to download.
|
380
|
+
|
381
|
+
:return: The version_id of this GetObjectRequest.
|
382
|
+
:rtype: str
|
383
|
+
"""
|
384
|
+
return self._version_id
|
385
|
+
|
386
|
+
@version_id.setter
|
387
|
+
def version_id(self, version_id):
|
388
|
+
r"""Sets the version_id of this GetObjectRequest.
|
389
|
+
|
390
|
+
Version ID of the object you want to download.
|
391
|
+
|
392
|
+
:param version_id: The version_id of this GetObjectRequest.
|
393
|
+
:type version_id: str
|
394
|
+
"""
|
395
|
+
self._version_id = version_id
|
396
|
+
|
397
|
+
@property
|
398
|
+
def x_image_process(self):
|
399
|
+
r"""Gets the x_image_process of this GetObjectRequest.
|
400
|
+
|
401
|
+
Image processing service.Examples:Command: x-image-process=image/commandsStyle: x-image-process=style/stylenameFor details, see the [Image Processing Feature Guide](https://support.huaweicloud.com/intl/en-us/fg-obs/obs_01_0001.html).
|
402
|
+
|
403
|
+
:return: The x_image_process of this GetObjectRequest.
|
404
|
+
:rtype: str
|
405
|
+
"""
|
406
|
+
return self._x_image_process
|
407
|
+
|
408
|
+
@x_image_process.setter
|
409
|
+
def x_image_process(self, x_image_process):
|
410
|
+
r"""Sets the x_image_process of this GetObjectRequest.
|
411
|
+
|
412
|
+
Image processing service.Examples:Command: x-image-process=image/commandsStyle: x-image-process=style/stylenameFor details, see the [Image Processing Feature Guide](https://support.huaweicloud.com/intl/en-us/fg-obs/obs_01_0001.html).
|
413
|
+
|
414
|
+
:param x_image_process: The x_image_process of this GetObjectRequest.
|
415
|
+
:type x_image_process: str
|
416
|
+
"""
|
417
|
+
self._x_image_process = x_image_process
|
418
|
+
|
419
|
+
@property
|
420
|
+
def attname(self):
|
421
|
+
r"""Gets the attname of this GetObjectRequest.
|
422
|
+
|
423
|
+
Overrides the **Content-Disposition** header in the response. Example: attname=name1 The downloaded object is renamed **name1**.
|
424
|
+
|
425
|
+
:return: The attname of this GetObjectRequest.
|
426
|
+
:rtype: str
|
427
|
+
"""
|
428
|
+
return self._attname
|
429
|
+
|
430
|
+
@attname.setter
|
431
|
+
def attname(self, attname):
|
432
|
+
r"""Sets the attname of this GetObjectRequest.
|
433
|
+
|
434
|
+
Overrides the **Content-Disposition** header in the response. Example: attname=name1 The downloaded object is renamed **name1**.
|
435
|
+
|
436
|
+
:param attname: The attname of this GetObjectRequest.
|
437
|
+
:type attname: str
|
438
|
+
"""
|
439
|
+
self._attname = attname
|
440
|
+
|
441
|
+
@property
|
442
|
+
def range(self):
|
443
|
+
r"""Gets the range of this GetObjectRequest.
|
444
|
+
|
445
|
+
Obtains the content within the scope defined by **Range**. If the **Range** header is invalid, the entire object is obtained.**Range** consists of a start value and an end value. Its start value is mandatory and ranges from 0 to the object length minus 1. If **Range** contains only a start value, the object content from the start value to the default maximum start value is obtained.With the **Range** header carried, the ETag in the response is still the ETag of the object, instead of that of the object content defined by the **Range** header.bytes=byte_rangeExample 1: bytes=0-4Example 2: bytes=1024Example 3: bytes=10-20,30-40 (multiple ranges)
|
446
|
+
|
447
|
+
:return: The range of this GetObjectRequest.
|
448
|
+
:rtype: str
|
449
|
+
"""
|
450
|
+
return self._range
|
451
|
+
|
452
|
+
@range.setter
|
453
|
+
def range(self, range):
|
454
|
+
r"""Sets the range of this GetObjectRequest.
|
455
|
+
|
456
|
+
Obtains the content within the scope defined by **Range**. If the **Range** header is invalid, the entire object is obtained.**Range** consists of a start value and an end value. Its start value is mandatory and ranges from 0 to the object length minus 1. If **Range** contains only a start value, the object content from the start value to the default maximum start value is obtained.With the **Range** header carried, the ETag in the response is still the ETag of the object, instead of that of the object content defined by the **Range** header.bytes=byte_rangeExample 1: bytes=0-4Example 2: bytes=1024Example 3: bytes=10-20,30-40 (multiple ranges)
|
457
|
+
|
458
|
+
:param range: The range of this GetObjectRequest.
|
459
|
+
:type range: str
|
460
|
+
"""
|
461
|
+
self._range = range
|
462
|
+
|
463
|
+
@property
|
464
|
+
def if_modified_since(self):
|
465
|
+
r"""Gets the if_modified_since of this GetObjectRequest.
|
466
|
+
|
467
|
+
Returns the object only if it has been modified since the time specified in the request, or **304 Not Modified** is returned. Type: HTTP time string complying with the format specified at **http://www.ietf.org/rfc/rfc2616.txt**
|
468
|
+
|
469
|
+
:return: The if_modified_since of this GetObjectRequest.
|
470
|
+
:rtype: str
|
471
|
+
"""
|
472
|
+
return self._if_modified_since
|
473
|
+
|
474
|
+
@if_modified_since.setter
|
475
|
+
def if_modified_since(self, if_modified_since):
|
476
|
+
r"""Sets the if_modified_since of this GetObjectRequest.
|
477
|
+
|
478
|
+
Returns the object only if it has been modified since the time specified in the request, or **304 Not Modified** is returned. Type: HTTP time string complying with the format specified at **http://www.ietf.org/rfc/rfc2616.txt**
|
479
|
+
|
480
|
+
:param if_modified_since: The if_modified_since of this GetObjectRequest.
|
481
|
+
:type if_modified_since: str
|
482
|
+
"""
|
483
|
+
self._if_modified_since = if_modified_since
|
484
|
+
|
485
|
+
@property
|
486
|
+
def if_unmodified_since(self):
|
487
|
+
r"""Gets the if_unmodified_since of this GetObjectRequest.
|
488
|
+
|
489
|
+
Returns the object only if it has not been modified since the time specified in the request, or **412 Precondition Failed** is returned. Type: HTTP time string complying with the format specified at **http://www.ietf.org/rfc/rfc2616.txt**
|
490
|
+
|
491
|
+
:return: The if_unmodified_since of this GetObjectRequest.
|
492
|
+
:rtype: str
|
493
|
+
"""
|
494
|
+
return self._if_unmodified_since
|
495
|
+
|
496
|
+
@if_unmodified_since.setter
|
497
|
+
def if_unmodified_since(self, if_unmodified_since):
|
498
|
+
r"""Sets the if_unmodified_since of this GetObjectRequest.
|
499
|
+
|
500
|
+
Returns the object only if it has not been modified since the time specified in the request, or **412 Precondition Failed** is returned. Type: HTTP time string complying with the format specified at **http://www.ietf.org/rfc/rfc2616.txt**
|
501
|
+
|
502
|
+
:param if_unmodified_since: The if_unmodified_since of this GetObjectRequest.
|
503
|
+
:type if_unmodified_since: str
|
504
|
+
"""
|
505
|
+
self._if_unmodified_since = if_unmodified_since
|
506
|
+
|
507
|
+
@property
|
508
|
+
def if_match(self):
|
509
|
+
r"""Gets the if_match of this GetObjectRequest.
|
510
|
+
|
511
|
+
Returns the object only if its ETag is the same as the one specified in the request, or **412 Precondition Failed** is returned. (ETag example: 0f64741bf7cb1089e988e4585d0d3434)
|
512
|
+
|
513
|
+
:return: The if_match of this GetObjectRequest.
|
514
|
+
:rtype: str
|
515
|
+
"""
|
516
|
+
return self._if_match
|
517
|
+
|
518
|
+
@if_match.setter
|
519
|
+
def if_match(self, if_match):
|
520
|
+
r"""Sets the if_match of this GetObjectRequest.
|
521
|
+
|
522
|
+
Returns the object only if its ETag is the same as the one specified in the request, or **412 Precondition Failed** is returned. (ETag example: 0f64741bf7cb1089e988e4585d0d3434)
|
523
|
+
|
524
|
+
:param if_match: The if_match of this GetObjectRequest.
|
525
|
+
:type if_match: str
|
526
|
+
"""
|
527
|
+
self._if_match = if_match
|
528
|
+
|
529
|
+
@property
|
530
|
+
def if_none_match(self):
|
531
|
+
r"""Gets the if_none_match of this GetObjectRequest.
|
532
|
+
|
533
|
+
Returns the object only if its ETag is different from the one specified in the request, or **304 Not Modified** is returned. (ETag example: 0f64741bf7cb1089e988e4585d0d3434)
|
534
|
+
|
535
|
+
:return: The if_none_match of this GetObjectRequest.
|
536
|
+
:rtype: str
|
537
|
+
"""
|
538
|
+
return self._if_none_match
|
539
|
+
|
540
|
+
@if_none_match.setter
|
541
|
+
def if_none_match(self, if_none_match):
|
542
|
+
r"""Sets the if_none_match of this GetObjectRequest.
|
543
|
+
|
544
|
+
Returns the object only if its ETag is different from the one specified in the request, or **304 Not Modified** is returned. (ETag example: 0f64741bf7cb1089e988e4585d0d3434)
|
545
|
+
|
546
|
+
:param if_none_match: The if_none_match of this GetObjectRequest.
|
547
|
+
:type if_none_match: str
|
548
|
+
"""
|
549
|
+
self._if_none_match = if_none_match
|
550
|
+
|
551
|
+
@property
|
552
|
+
def x_obs_server_side_encryption_customer_algorithm(self):
|
553
|
+
r"""Gets the x_obs_server_side_encryption_customer_algorithm of this GetObjectRequest.
|
554
|
+
|
555
|
+
The encryption 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**.
|
556
|
+
|
557
|
+
:return: The x_obs_server_side_encryption_customer_algorithm of this GetObjectRequest.
|
558
|
+
:rtype: str
|
559
|
+
"""
|
560
|
+
return self._x_obs_server_side_encryption_customer_algorithm
|
561
|
+
|
562
|
+
@x_obs_server_side_encryption_customer_algorithm.setter
|
563
|
+
def x_obs_server_side_encryption_customer_algorithm(self, x_obs_server_side_encryption_customer_algorithm):
|
564
|
+
r"""Sets the x_obs_server_side_encryption_customer_algorithm of this GetObjectRequest.
|
565
|
+
|
566
|
+
The encryption 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**.
|
567
|
+
|
568
|
+
:param x_obs_server_side_encryption_customer_algorithm: The x_obs_server_side_encryption_customer_algorithm of this GetObjectRequest.
|
569
|
+
:type x_obs_server_side_encryption_customer_algorithm: str
|
570
|
+
"""
|
571
|
+
self._x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm
|
572
|
+
|
573
|
+
@property
|
574
|
+
def x_obs_server_side_encryption_customer_key(self):
|
575
|
+
r"""Gets the x_obs_server_side_encryption_customer_key of this GetObjectRequest.
|
576
|
+
|
577
|
+
Encryption key used for SSE-C. This key is used to decrypt objects.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**.
|
578
|
+
|
579
|
+
:return: The x_obs_server_side_encryption_customer_key of this GetObjectRequest.
|
580
|
+
:rtype: str
|
581
|
+
"""
|
582
|
+
return self._x_obs_server_side_encryption_customer_key
|
583
|
+
|
584
|
+
@x_obs_server_side_encryption_customer_key.setter
|
585
|
+
def x_obs_server_side_encryption_customer_key(self, x_obs_server_side_encryption_customer_key):
|
586
|
+
r"""Sets the x_obs_server_side_encryption_customer_key of this GetObjectRequest.
|
587
|
+
|
588
|
+
Encryption key used for SSE-C. This key is used to decrypt objects.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**.
|
589
|
+
|
590
|
+
:param x_obs_server_side_encryption_customer_key: The x_obs_server_side_encryption_customer_key of this GetObjectRequest.
|
591
|
+
:type x_obs_server_side_encryption_customer_key: str
|
592
|
+
"""
|
593
|
+
self._x_obs_server_side_encryption_customer_key = x_obs_server_side_encryption_customer_key
|
594
|
+
|
595
|
+
@property
|
596
|
+
def x_obs_server_side_encryption_customer_key_md5(self):
|
597
|
+
r"""Gets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectRequest.
|
598
|
+
|
599
|
+
MD5 value of the key used to encrypt objects in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key. 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**.
|
600
|
+
|
601
|
+
:return: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectRequest.
|
602
|
+
:rtype: str
|
603
|
+
"""
|
604
|
+
return self._x_obs_server_side_encryption_customer_key_md5
|
605
|
+
|
606
|
+
@x_obs_server_side_encryption_customer_key_md5.setter
|
607
|
+
def x_obs_server_side_encryption_customer_key_md5(self, x_obs_server_side_encryption_customer_key_md5):
|
608
|
+
r"""Sets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectRequest.
|
609
|
+
|
610
|
+
MD5 value of the key used to encrypt objects in SSE-C mode. The MD5 value is used to check whether any error occurs during the transmission of the key. 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**.
|
611
|
+
|
612
|
+
:param x_obs_server_side_encryption_customer_key_md5: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectRequest.
|
613
|
+
:type x_obs_server_side_encryption_customer_key_md5: str
|
614
|
+
"""
|
615
|
+
self._x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5
|
616
|
+
|
617
|
+
def to_dict(self):
|
618
|
+
"""Returns the model properties as a dict"""
|
619
|
+
result = {}
|
620
|
+
|
621
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
622
|
+
value = getattr(self, attr)
|
623
|
+
if isinstance(value, list):
|
624
|
+
result[attr] = list(map(
|
625
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
626
|
+
value
|
627
|
+
))
|
628
|
+
elif hasattr(value, "to_dict"):
|
629
|
+
result[attr] = value.to_dict()
|
630
|
+
elif isinstance(value, dict):
|
631
|
+
result[attr] = dict(map(
|
632
|
+
lambda item: (item[0], item[1].to_dict())
|
633
|
+
if hasattr(item[1], "to_dict") else item,
|
634
|
+
value.items()
|
635
|
+
))
|
636
|
+
else:
|
637
|
+
if attr in self.sensitive_list:
|
638
|
+
result[attr] = "****"
|
639
|
+
else:
|
640
|
+
result[attr] = value
|
641
|
+
|
642
|
+
return result
|
643
|
+
|
644
|
+
def to_str(self):
|
645
|
+
"""Returns the string representation of the model"""
|
646
|
+
import simplejson as json
|
647
|
+
if six.PY2:
|
648
|
+
import sys
|
649
|
+
reload(sys)
|
650
|
+
sys.setdefaultencoding("utf-8")
|
651
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
652
|
+
|
653
|
+
def __repr__(self):
|
654
|
+
"""For `print`"""
|
655
|
+
return self.to_str()
|
656
|
+
|
657
|
+
def __eq__(self, other):
|
658
|
+
"""Returns true if both objects are equal"""
|
659
|
+
if not isinstance(other, GetObjectRequest):
|
660
|
+
return False
|
661
|
+
|
662
|
+
return self.__dict__ == other.__dict__
|
663
|
+
|
664
|
+
def __ne__(self, other):
|
665
|
+
"""Returns true if both objects are not equal"""
|
666
|
+
return not self == other
|