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.
Files changed (72) hide show
  1. huaweicloudsdkobs/__init__.py +0 -0
  2. huaweicloudsdkobs/v1/__init__.py +66 -0
  3. huaweicloudsdkobs/v1/model/__init__.py +63 -0
  4. huaweicloudsdkobs/v1/model/access_control_list.py +113 -0
  5. huaweicloudsdkobs/v1/model/bucket.py +233 -0
  6. huaweicloudsdkobs/v1/model/buckets.py +117 -0
  7. huaweicloudsdkobs/v1/model/common_prefixes.py +113 -0
  8. huaweicloudsdkobs/v1/model/contents.py +287 -0
  9. huaweicloudsdkobs/v1/model/copy_object_request.py +839 -0
  10. huaweicloudsdkobs/v1/model/copy_object_response.py +443 -0
  11. huaweicloudsdkobs/v1/model/create_bucket_request.py +605 -0
  12. huaweicloudsdkobs/v1/model/create_bucket_request_body.py +117 -0
  13. huaweicloudsdkobs/v1/model/create_bucket_response.py +239 -0
  14. huaweicloudsdkobs/v1/model/delete_bucket_customdomain_request.py +173 -0
  15. huaweicloudsdkobs/v1/model/delete_bucket_customdomain_response.py +239 -0
  16. huaweicloudsdkobs/v1/model/delete_bucket_request.py +145 -0
  17. huaweicloudsdkobs/v1/model/delete_bucket_response.py +239 -0
  18. huaweicloudsdkobs/v1/model/delete_object.py +146 -0
  19. huaweicloudsdkobs/v1/model/delete_object_request.py +202 -0
  20. huaweicloudsdkobs/v1/model/delete_object_response.py +289 -0
  21. huaweicloudsdkobs/v1/model/delete_objects_request.py +226 -0
  22. huaweicloudsdkobs/v1/model/delete_objects_request_body.py +171 -0
  23. huaweicloudsdkobs/v1/model/delete_objects_response.py +318 -0
  24. huaweicloudsdkobs/v1/model/delete_result_deleted.py +204 -0
  25. huaweicloudsdkobs/v1/model/delete_result_error.py +175 -0
  26. huaweicloudsdkobs/v1/model/domains.py +173 -0
  27. huaweicloudsdkobs/v1/model/filter_object.py +113 -0
  28. huaweicloudsdkobs/v1/model/filter_rule.py +146 -0
  29. huaweicloudsdkobs/v1/model/function_stage_configuration.py +229 -0
  30. huaweicloudsdkobs/v1/model/get_bucket_acl_request.py +173 -0
  31. huaweicloudsdkobs/v1/model/get_bucket_acl_response.py +289 -0
  32. huaweicloudsdkobs/v1/model/get_bucket_customdomain_request.py +173 -0
  33. huaweicloudsdkobs/v1/model/get_bucket_customdomain_response.py +264 -0
  34. huaweicloudsdkobs/v1/model/get_bucket_metadata_request.py +203 -0
  35. huaweicloudsdkobs/v1/model/get_bucket_metadata_response.py +539 -0
  36. huaweicloudsdkobs/v1/model/get_bucket_notification_request.py +173 -0
  37. huaweicloudsdkobs/v1/model/get_bucket_notification_response.py +264 -0
  38. huaweicloudsdkobs/v1/model/get_object_metadata_request.py +405 -0
  39. huaweicloudsdkobs/v1/model/get_object_metadata_response.py +689 -0
  40. huaweicloudsdkobs/v1/model/get_object_request.py +666 -0
  41. huaweicloudsdkobs/v1/model/get_object_response.py +489 -0
  42. huaweicloudsdkobs/v1/model/grant.py +171 -0
  43. huaweicloudsdkobs/v1/model/grantee.py +146 -0
  44. huaweicloudsdkobs/v1/model/list_buckets_request.py +146 -0
  45. huaweicloudsdkobs/v1/model/list_buckets_response.py +314 -0
  46. huaweicloudsdkobs/v1/model/list_objects_request.py +348 -0
  47. huaweicloudsdkobs/v1/model/list_objects_response.py +546 -0
  48. huaweicloudsdkobs/v1/model/owner.py +117 -0
  49. huaweicloudsdkobs/v1/model/put_object_request.py +667 -0
  50. huaweicloudsdkobs/v1/model/put_object_response.py +389 -0
  51. huaweicloudsdkobs/v1/model/set_bucket_acl_request.py +227 -0
  52. huaweicloudsdkobs/v1/model/set_bucket_acl_request_body.py +138 -0
  53. huaweicloudsdkobs/v1/model/set_bucket_acl_response.py +239 -0
  54. huaweicloudsdkobs/v1/model/set_bucket_custom_domain_body.py +230 -0
  55. huaweicloudsdkobs/v1/model/set_bucket_customedomain_request.py +198 -0
  56. huaweicloudsdkobs/v1/model/set_bucket_customedomain_response.py +239 -0
  57. huaweicloudsdkobs/v1/model/set_bucket_notification_request.py +198 -0
  58. huaweicloudsdkobs/v1/model/set_bucket_notification_request_body.py +138 -0
  59. huaweicloudsdkobs/v1/model/set_bucket_notification_response.py +239 -0
  60. huaweicloudsdkobs/v1/model/topic_configuration.py +200 -0
  61. huaweicloudsdkobs/v1/model/topic_configuration_filter.py +113 -0
  62. huaweicloudsdkobs/v1/obs_async_client.py +1600 -0
  63. huaweicloudsdkobs/v1/obs_client.py +1597 -0
  64. huaweicloudsdkobs/v1/obs_credentials.py +69 -0
  65. huaweicloudsdkobs/v1/obs_signer.py +298 -0
  66. huaweicloudsdkobs/v1/region/__init__.py +0 -0
  67. huaweicloudsdkobs/v1/region/obs_region.py +88 -0
  68. huaweicloudsdkobs-3.1.160.dist-info/LICENSE +13 -0
  69. huaweicloudsdkobs-3.1.160.dist-info/METADATA +26 -0
  70. huaweicloudsdkobs-3.1.160.dist-info/RECORD +72 -0
  71. huaweicloudsdkobs-3.1.160.dist-info/WHEEL +5 -0
  72. huaweicloudsdkobs-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,489 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_stream_response import SdkStreamResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class GetObjectResponse(SdkStreamResponse):
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 = "GetObjectResponse"
19
+
20
+ sensitive_list = []
21
+
22
+ openapi_types = {
23
+ 'x_obs_id_2': 'str',
24
+ 'x_obs_request_id': 'str',
25
+ 'x_obs_server_side_encryption': 'str',
26
+ 'x_obs_object_type': 'str',
27
+ 'x_obs_next_append_position': 'int',
28
+ 'connection': 'str',
29
+ 'x_obs_server_side_encryption_customer_key_md5': 'str',
30
+ 'x_obs_expiration': 'str',
31
+ 'date': 'str',
32
+ 'e_tag': 'str',
33
+ 'x_obs_server_side_encryption_customer_algorithm': 'str',
34
+ 'x_obs_server_side_encryption_kms_key_id': 'str',
35
+ 'content_length': 'str',
36
+ 'x_obs_website_redirect_location': 'str',
37
+ 'x_obs_delete_marker': 'bool',
38
+ 'x_obs_version_id': 'str'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'x_obs_id_2': 'x-obs-id-2',
43
+ 'x_obs_request_id': 'x-obs-request-id',
44
+ 'x_obs_server_side_encryption': 'x-obs-server-side-encryption',
45
+ 'x_obs_object_type': 'x-obs-object-type',
46
+ 'x_obs_next_append_position': 'x-obs-next-append-position',
47
+ 'connection': 'Connection',
48
+ 'x_obs_server_side_encryption_customer_key_md5': 'x-obs-server-side-encryption-customer-key-MD5',
49
+ 'x_obs_expiration': 'x-obs-expiration',
50
+ 'date': 'Date',
51
+ 'e_tag': 'ETag',
52
+ 'x_obs_server_side_encryption_customer_algorithm': 'x-obs-server-side-encryption-customer-algorithm',
53
+ 'x_obs_server_side_encryption_kms_key_id': 'x-obs-server-side-encryption-kms-key-id',
54
+ 'content_length': 'Content-Length',
55
+ 'x_obs_website_redirect_location': 'x-obs-website-redirect-location',
56
+ 'x_obs_delete_marker': 'x-obs-delete-marker',
57
+ 'x_obs_version_id': 'x-obs-version-id'
58
+ }
59
+
60
+ def __init__(self, response, x_obs_id_2=None, x_obs_request_id=None, x_obs_server_side_encryption=None, x_obs_object_type=None, x_obs_next_append_position=None, connection=None, x_obs_server_side_encryption_customer_key_md5=None, x_obs_expiration=None, date=None, e_tag=None, x_obs_server_side_encryption_customer_algorithm=None, x_obs_server_side_encryption_kms_key_id=None, content_length=None, x_obs_website_redirect_location=None, x_obs_delete_marker=None, x_obs_version_id=None):
61
+ r"""GetObjectResponse
62
+
63
+ The model defined in huaweicloud sdk
64
+
65
+ :param x_obs_id_2:
66
+ :type x_obs_id_2: str
67
+ :param x_obs_request_id:
68
+ :type x_obs_request_id: str
69
+ :param x_obs_server_side_encryption:
70
+ :type x_obs_server_side_encryption: str
71
+ :param x_obs_object_type:
72
+ :type x_obs_object_type: str
73
+ :param x_obs_next_append_position:
74
+ :type x_obs_next_append_position: int
75
+ :param connection:
76
+ :type connection: str
77
+ :param x_obs_server_side_encryption_customer_key_md5:
78
+ :type x_obs_server_side_encryption_customer_key_md5: str
79
+ :param x_obs_expiration:
80
+ :type x_obs_expiration: str
81
+ :param date:
82
+ :type date: str
83
+ :param e_tag:
84
+ :type e_tag: str
85
+ :param x_obs_server_side_encryption_customer_algorithm:
86
+ :type x_obs_server_side_encryption_customer_algorithm: str
87
+ :param x_obs_server_side_encryption_kms_key_id:
88
+ :type x_obs_server_side_encryption_kms_key_id: str
89
+ :param content_length:
90
+ :type content_length: str
91
+ :param x_obs_website_redirect_location:
92
+ :type x_obs_website_redirect_location: str
93
+ :param x_obs_delete_marker:
94
+ :type x_obs_delete_marker: bool
95
+ :param x_obs_version_id:
96
+ :type x_obs_version_id: str
97
+ """
98
+
99
+ super(GetObjectResponse, self).__init__(response)
100
+
101
+ self._x_obs_id_2 = None
102
+ self._x_obs_request_id = None
103
+ self._x_obs_server_side_encryption = None
104
+ self._x_obs_object_type = None
105
+ self._x_obs_next_append_position = None
106
+ self._connection = None
107
+ self._x_obs_server_side_encryption_customer_key_md5 = None
108
+ self._x_obs_expiration = None
109
+ self._date = None
110
+ self._e_tag = None
111
+ self._x_obs_server_side_encryption_customer_algorithm = None
112
+ self._x_obs_server_side_encryption_kms_key_id = None
113
+ self._content_length = None
114
+ self._x_obs_website_redirect_location = None
115
+ self._x_obs_delete_marker = None
116
+ self._x_obs_version_id = None
117
+ self.discriminator = None
118
+
119
+ if x_obs_id_2 is not None:
120
+ self.x_obs_id_2 = x_obs_id_2
121
+ if x_obs_request_id is not None:
122
+ self.x_obs_request_id = x_obs_request_id
123
+ if x_obs_server_side_encryption is not None:
124
+ self.x_obs_server_side_encryption = x_obs_server_side_encryption
125
+ if x_obs_object_type is not None:
126
+ self.x_obs_object_type = x_obs_object_type
127
+ if x_obs_next_append_position is not None:
128
+ self.x_obs_next_append_position = x_obs_next_append_position
129
+ if connection is not None:
130
+ self.connection = connection
131
+ if x_obs_server_side_encryption_customer_key_md5 is not None:
132
+ self.x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5
133
+ if x_obs_expiration is not None:
134
+ self.x_obs_expiration = x_obs_expiration
135
+ if date is not None:
136
+ self.date = date
137
+ if e_tag is not None:
138
+ self.e_tag = e_tag
139
+ if x_obs_server_side_encryption_customer_algorithm is not None:
140
+ self.x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm
141
+ if x_obs_server_side_encryption_kms_key_id is not None:
142
+ self.x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id
143
+ if content_length is not None:
144
+ self.content_length = content_length
145
+ if x_obs_website_redirect_location is not None:
146
+ self.x_obs_website_redirect_location = x_obs_website_redirect_location
147
+ if x_obs_delete_marker is not None:
148
+ self.x_obs_delete_marker = x_obs_delete_marker
149
+ if x_obs_version_id is not None:
150
+ self.x_obs_version_id = x_obs_version_id
151
+
152
+ @property
153
+ def x_obs_id_2(self):
154
+ r"""Gets the x_obs_id_2 of this GetObjectResponse.
155
+
156
+ :return: The x_obs_id_2 of this GetObjectResponse.
157
+ :rtype: str
158
+ """
159
+ return self._x_obs_id_2
160
+
161
+ @x_obs_id_2.setter
162
+ def x_obs_id_2(self, x_obs_id_2):
163
+ r"""Sets the x_obs_id_2 of this GetObjectResponse.
164
+
165
+ :param x_obs_id_2: The x_obs_id_2 of this GetObjectResponse.
166
+ :type x_obs_id_2: str
167
+ """
168
+ self._x_obs_id_2 = x_obs_id_2
169
+
170
+ @property
171
+ def x_obs_request_id(self):
172
+ r"""Gets the x_obs_request_id of this GetObjectResponse.
173
+
174
+ :return: The x_obs_request_id of this GetObjectResponse.
175
+ :rtype: str
176
+ """
177
+ return self._x_obs_request_id
178
+
179
+ @x_obs_request_id.setter
180
+ def x_obs_request_id(self, x_obs_request_id):
181
+ r"""Sets the x_obs_request_id of this GetObjectResponse.
182
+
183
+ :param x_obs_request_id: The x_obs_request_id of this GetObjectResponse.
184
+ :type x_obs_request_id: str
185
+ """
186
+ self._x_obs_request_id = x_obs_request_id
187
+
188
+ @property
189
+ def x_obs_server_side_encryption(self):
190
+ r"""Gets the x_obs_server_side_encryption of this GetObjectResponse.
191
+
192
+ :return: The x_obs_server_side_encryption of this GetObjectResponse.
193
+ :rtype: str
194
+ """
195
+ return self._x_obs_server_side_encryption
196
+
197
+ @x_obs_server_side_encryption.setter
198
+ def x_obs_server_side_encryption(self, x_obs_server_side_encryption):
199
+ r"""Sets the x_obs_server_side_encryption of this GetObjectResponse.
200
+
201
+ :param x_obs_server_side_encryption: The x_obs_server_side_encryption of this GetObjectResponse.
202
+ :type x_obs_server_side_encryption: str
203
+ """
204
+ self._x_obs_server_side_encryption = x_obs_server_side_encryption
205
+
206
+ @property
207
+ def x_obs_object_type(self):
208
+ r"""Gets the x_obs_object_type of this GetObjectResponse.
209
+
210
+ :return: The x_obs_object_type of this GetObjectResponse.
211
+ :rtype: str
212
+ """
213
+ return self._x_obs_object_type
214
+
215
+ @x_obs_object_type.setter
216
+ def x_obs_object_type(self, x_obs_object_type):
217
+ r"""Sets the x_obs_object_type of this GetObjectResponse.
218
+
219
+ :param x_obs_object_type: The x_obs_object_type of this GetObjectResponse.
220
+ :type x_obs_object_type: str
221
+ """
222
+ self._x_obs_object_type = x_obs_object_type
223
+
224
+ @property
225
+ def x_obs_next_append_position(self):
226
+ r"""Gets the x_obs_next_append_position of this GetObjectResponse.
227
+
228
+ :return: The x_obs_next_append_position of this GetObjectResponse.
229
+ :rtype: int
230
+ """
231
+ return self._x_obs_next_append_position
232
+
233
+ @x_obs_next_append_position.setter
234
+ def x_obs_next_append_position(self, x_obs_next_append_position):
235
+ r"""Sets the x_obs_next_append_position of this GetObjectResponse.
236
+
237
+ :param x_obs_next_append_position: The x_obs_next_append_position of this GetObjectResponse.
238
+ :type x_obs_next_append_position: int
239
+ """
240
+ self._x_obs_next_append_position = x_obs_next_append_position
241
+
242
+ @property
243
+ def connection(self):
244
+ r"""Gets the connection of this GetObjectResponse.
245
+
246
+ :return: The connection of this GetObjectResponse.
247
+ :rtype: str
248
+ """
249
+ return self._connection
250
+
251
+ @connection.setter
252
+ def connection(self, connection):
253
+ r"""Sets the connection of this GetObjectResponse.
254
+
255
+ :param connection: The connection of this GetObjectResponse.
256
+ :type connection: str
257
+ """
258
+ self._connection = connection
259
+
260
+ @property
261
+ def x_obs_server_side_encryption_customer_key_md5(self):
262
+ r"""Gets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectResponse.
263
+
264
+ :return: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectResponse.
265
+ :rtype: str
266
+ """
267
+ return self._x_obs_server_side_encryption_customer_key_md5
268
+
269
+ @x_obs_server_side_encryption_customer_key_md5.setter
270
+ def x_obs_server_side_encryption_customer_key_md5(self, x_obs_server_side_encryption_customer_key_md5):
271
+ r"""Sets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectResponse.
272
+
273
+ :param x_obs_server_side_encryption_customer_key_md5: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectResponse.
274
+ :type x_obs_server_side_encryption_customer_key_md5: str
275
+ """
276
+ self._x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5
277
+
278
+ @property
279
+ def x_obs_expiration(self):
280
+ r"""Gets the x_obs_expiration of this GetObjectResponse.
281
+
282
+ :return: The x_obs_expiration of this GetObjectResponse.
283
+ :rtype: str
284
+ """
285
+ return self._x_obs_expiration
286
+
287
+ @x_obs_expiration.setter
288
+ def x_obs_expiration(self, x_obs_expiration):
289
+ r"""Sets the x_obs_expiration of this GetObjectResponse.
290
+
291
+ :param x_obs_expiration: The x_obs_expiration of this GetObjectResponse.
292
+ :type x_obs_expiration: str
293
+ """
294
+ self._x_obs_expiration = x_obs_expiration
295
+
296
+ @property
297
+ def date(self):
298
+ r"""Gets the date of this GetObjectResponse.
299
+
300
+ :return: The date of this GetObjectResponse.
301
+ :rtype: str
302
+ """
303
+ return self._date
304
+
305
+ @date.setter
306
+ def date(self, date):
307
+ r"""Sets the date of this GetObjectResponse.
308
+
309
+ :param date: The date of this GetObjectResponse.
310
+ :type date: str
311
+ """
312
+ self._date = date
313
+
314
+ @property
315
+ def e_tag(self):
316
+ r"""Gets the e_tag of this GetObjectResponse.
317
+
318
+ :return: The e_tag of this GetObjectResponse.
319
+ :rtype: str
320
+ """
321
+ return self._e_tag
322
+
323
+ @e_tag.setter
324
+ def e_tag(self, e_tag):
325
+ r"""Sets the e_tag of this GetObjectResponse.
326
+
327
+ :param e_tag: The e_tag of this GetObjectResponse.
328
+ :type e_tag: str
329
+ """
330
+ self._e_tag = e_tag
331
+
332
+ @property
333
+ def x_obs_server_side_encryption_customer_algorithm(self):
334
+ r"""Gets the x_obs_server_side_encryption_customer_algorithm of this GetObjectResponse.
335
+
336
+ :return: The x_obs_server_side_encryption_customer_algorithm of this GetObjectResponse.
337
+ :rtype: str
338
+ """
339
+ return self._x_obs_server_side_encryption_customer_algorithm
340
+
341
+ @x_obs_server_side_encryption_customer_algorithm.setter
342
+ def x_obs_server_side_encryption_customer_algorithm(self, x_obs_server_side_encryption_customer_algorithm):
343
+ r"""Sets the x_obs_server_side_encryption_customer_algorithm of this GetObjectResponse.
344
+
345
+ :param x_obs_server_side_encryption_customer_algorithm: The x_obs_server_side_encryption_customer_algorithm of this GetObjectResponse.
346
+ :type x_obs_server_side_encryption_customer_algorithm: str
347
+ """
348
+ self._x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm
349
+
350
+ @property
351
+ def x_obs_server_side_encryption_kms_key_id(self):
352
+ r"""Gets the x_obs_server_side_encryption_kms_key_id of this GetObjectResponse.
353
+
354
+ :return: The x_obs_server_side_encryption_kms_key_id of this GetObjectResponse.
355
+ :rtype: str
356
+ """
357
+ return self._x_obs_server_side_encryption_kms_key_id
358
+
359
+ @x_obs_server_side_encryption_kms_key_id.setter
360
+ def x_obs_server_side_encryption_kms_key_id(self, x_obs_server_side_encryption_kms_key_id):
361
+ r"""Sets the x_obs_server_side_encryption_kms_key_id of this GetObjectResponse.
362
+
363
+ :param x_obs_server_side_encryption_kms_key_id: The x_obs_server_side_encryption_kms_key_id of this GetObjectResponse.
364
+ :type x_obs_server_side_encryption_kms_key_id: str
365
+ """
366
+ self._x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id
367
+
368
+ @property
369
+ def content_length(self):
370
+ r"""Gets the content_length of this GetObjectResponse.
371
+
372
+ :return: The content_length of this GetObjectResponse.
373
+ :rtype: str
374
+ """
375
+ return self._content_length
376
+
377
+ @content_length.setter
378
+ def content_length(self, content_length):
379
+ r"""Sets the content_length of this GetObjectResponse.
380
+
381
+ :param content_length: The content_length of this GetObjectResponse.
382
+ :type content_length: str
383
+ """
384
+ self._content_length = content_length
385
+
386
+ @property
387
+ def x_obs_website_redirect_location(self):
388
+ r"""Gets the x_obs_website_redirect_location of this GetObjectResponse.
389
+
390
+ :return: The x_obs_website_redirect_location of this GetObjectResponse.
391
+ :rtype: str
392
+ """
393
+ return self._x_obs_website_redirect_location
394
+
395
+ @x_obs_website_redirect_location.setter
396
+ def x_obs_website_redirect_location(self, x_obs_website_redirect_location):
397
+ r"""Sets the x_obs_website_redirect_location of this GetObjectResponse.
398
+
399
+ :param x_obs_website_redirect_location: The x_obs_website_redirect_location of this GetObjectResponse.
400
+ :type x_obs_website_redirect_location: str
401
+ """
402
+ self._x_obs_website_redirect_location = x_obs_website_redirect_location
403
+
404
+ @property
405
+ def x_obs_delete_marker(self):
406
+ r"""Gets the x_obs_delete_marker of this GetObjectResponse.
407
+
408
+ :return: The x_obs_delete_marker of this GetObjectResponse.
409
+ :rtype: bool
410
+ """
411
+ return self._x_obs_delete_marker
412
+
413
+ @x_obs_delete_marker.setter
414
+ def x_obs_delete_marker(self, x_obs_delete_marker):
415
+ r"""Sets the x_obs_delete_marker of this GetObjectResponse.
416
+
417
+ :param x_obs_delete_marker: The x_obs_delete_marker of this GetObjectResponse.
418
+ :type x_obs_delete_marker: bool
419
+ """
420
+ self._x_obs_delete_marker = x_obs_delete_marker
421
+
422
+ @property
423
+ def x_obs_version_id(self):
424
+ r"""Gets the x_obs_version_id of this GetObjectResponse.
425
+
426
+ :return: The x_obs_version_id of this GetObjectResponse.
427
+ :rtype: str
428
+ """
429
+ return self._x_obs_version_id
430
+
431
+ @x_obs_version_id.setter
432
+ def x_obs_version_id(self, x_obs_version_id):
433
+ r"""Sets the x_obs_version_id of this GetObjectResponse.
434
+
435
+ :param x_obs_version_id: The x_obs_version_id of this GetObjectResponse.
436
+ :type x_obs_version_id: str
437
+ """
438
+ self._x_obs_version_id = x_obs_version_id
439
+
440
+ def to_dict(self):
441
+ """Returns the model properties as a dict"""
442
+ result = {}
443
+
444
+ for attr, _ in six.iteritems(self.openapi_types):
445
+ value = getattr(self, attr)
446
+ if isinstance(value, list):
447
+ result[attr] = list(map(
448
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
449
+ value
450
+ ))
451
+ elif hasattr(value, "to_dict"):
452
+ result[attr] = value.to_dict()
453
+ elif isinstance(value, dict):
454
+ result[attr] = dict(map(
455
+ lambda item: (item[0], item[1].to_dict())
456
+ if hasattr(item[1], "to_dict") else item,
457
+ value.items()
458
+ ))
459
+ else:
460
+ if attr in self.sensitive_list:
461
+ result[attr] = "****"
462
+ else:
463
+ result[attr] = value
464
+
465
+ return result
466
+
467
+ def to_str(self):
468
+ """Returns the string representation of the model"""
469
+ import simplejson as json
470
+ if six.PY2:
471
+ import sys
472
+ reload(sys)
473
+ sys.setdefaultencoding("utf-8")
474
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
475
+
476
+ def __repr__(self):
477
+ """For `print`"""
478
+ return self.to_str()
479
+
480
+ def __eq__(self, other):
481
+ """Returns true if both objects are equal"""
482
+ if not isinstance(other, GetObjectResponse):
483
+ return False
484
+
485
+ return self.__dict__ == other.__dict__
486
+
487
+ def __ne__(self, other):
488
+ """Returns true if both objects are not equal"""
489
+ return not self == other
@@ -0,0 +1,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class Grant:
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 = "Grant"
18
+
19
+ sensitive_list = []
20
+
21
+ openapi_types = {
22
+ 'grantee': 'Grantee',
23
+ 'permission': 'str',
24
+ 'delivered': 'bool'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'grantee': 'Grantee',
29
+ 'permission': 'Permission',
30
+ 'delivered': 'Delivered'
31
+ }
32
+
33
+ def __init__(self, grantee=None, permission=None, delivered=None):
34
+ r"""Grant
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param grantee:
39
+ :type grantee: :class:`huaweicloudsdkobs.v1.Grantee`
40
+ :param permission: Permissions granted
41
+ :type permission: str
42
+ :param delivered: Indicates whether the bucket ACL is applied to objects in the bucket.
43
+ :type delivered: bool
44
+ """
45
+
46
+
47
+
48
+ self._grantee = None
49
+ self._permission = None
50
+ self._delivered = None
51
+ self.discriminator = None
52
+
53
+ if grantee is not None:
54
+ self.grantee = grantee
55
+ if permission is not None:
56
+ self.permission = permission
57
+ if delivered is not None:
58
+ self.delivered = delivered
59
+
60
+ @property
61
+ def grantee(self):
62
+ r"""Gets the grantee of this Grant.
63
+
64
+ :return: The grantee of this Grant.
65
+ :rtype: :class:`huaweicloudsdkobs.v1.Grantee`
66
+ """
67
+ return self._grantee
68
+
69
+ @grantee.setter
70
+ def grantee(self, grantee):
71
+ r"""Sets the grantee of this Grant.
72
+
73
+ :param grantee: The grantee of this Grant.
74
+ :type grantee: :class:`huaweicloudsdkobs.v1.Grantee`
75
+ """
76
+ self._grantee = grantee
77
+
78
+ @property
79
+ def permission(self):
80
+ r"""Gets the permission of this Grant.
81
+
82
+ Permissions granted
83
+
84
+ :return: The permission of this Grant.
85
+ :rtype: str
86
+ """
87
+ return self._permission
88
+
89
+ @permission.setter
90
+ def permission(self, permission):
91
+ r"""Sets the permission of this Grant.
92
+
93
+ Permissions granted
94
+
95
+ :param permission: The permission of this Grant.
96
+ :type permission: str
97
+ """
98
+ self._permission = permission
99
+
100
+ @property
101
+ def delivered(self):
102
+ r"""Gets the delivered of this Grant.
103
+
104
+ Indicates whether the bucket ACL is applied to objects in the bucket.
105
+
106
+ :return: The delivered of this Grant.
107
+ :rtype: bool
108
+ """
109
+ return self._delivered
110
+
111
+ @delivered.setter
112
+ def delivered(self, delivered):
113
+ r"""Sets the delivered of this Grant.
114
+
115
+ Indicates whether the bucket ACL is applied to objects in the bucket.
116
+
117
+ :param delivered: The delivered of this Grant.
118
+ :type delivered: bool
119
+ """
120
+ self._delivered = delivered
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, Grant):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ return not self == other