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,113 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CommonPrefixes:
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 = "CommonPrefixes"
18
+
19
+ sensitive_list = []
20
+
21
+ openapi_types = {
22
+ 'prefix': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'prefix': 'Prefix'
27
+ }
28
+
29
+ def __init__(self, prefix=None):
30
+ r"""CommonPrefixes
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param prefix:
35
+ :type prefix: str
36
+ """
37
+
38
+
39
+
40
+ self._prefix = None
41
+ self.discriminator = None
42
+
43
+ if prefix is not None:
44
+ self.prefix = prefix
45
+
46
+ @property
47
+ def prefix(self):
48
+ r"""Gets the prefix of this CommonPrefixes.
49
+
50
+ :return: The prefix of this CommonPrefixes.
51
+ :rtype: str
52
+ """
53
+ return self._prefix
54
+
55
+ @prefix.setter
56
+ def prefix(self, prefix):
57
+ r"""Sets the prefix of this CommonPrefixes.
58
+
59
+ :param prefix: The prefix of this CommonPrefixes.
60
+ :type prefix: str
61
+ """
62
+ self._prefix = prefix
63
+
64
+ def to_dict(self):
65
+ """Returns the model properties as a dict"""
66
+ result = {}
67
+
68
+ for attr, _ in six.iteritems(self.openapi_types):
69
+ value = getattr(self, attr)
70
+ if isinstance(value, list):
71
+ result[attr] = list(map(
72
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
73
+ value
74
+ ))
75
+ elif hasattr(value, "to_dict"):
76
+ result[attr] = value.to_dict()
77
+ elif isinstance(value, dict):
78
+ result[attr] = dict(map(
79
+ lambda item: (item[0], item[1].to_dict())
80
+ if hasattr(item[1], "to_dict") else item,
81
+ value.items()
82
+ ))
83
+ else:
84
+ if attr in self.sensitive_list:
85
+ result[attr] = "****"
86
+ else:
87
+ result[attr] = value
88
+
89
+ return result
90
+
91
+ def to_str(self):
92
+ """Returns the string representation of the model"""
93
+ import simplejson as json
94
+ if six.PY2:
95
+ import sys
96
+ reload(sys)
97
+ sys.setdefaultencoding("utf-8")
98
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
99
+
100
+ def __repr__(self):
101
+ """For `print`"""
102
+ return self.to_str()
103
+
104
+ def __eq__(self, other):
105
+ """Returns true if both objects are equal"""
106
+ if not isinstance(other, CommonPrefixes):
107
+ return False
108
+
109
+ return self.__dict__ == other.__dict__
110
+
111
+ def __ne__(self, other):
112
+ """Returns true if both objects are not equal"""
113
+ return not self == other
@@ -0,0 +1,287 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class Contents:
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 = "Contents"
18
+
19
+ sensitive_list = []
20
+
21
+ openapi_types = {
22
+ 'owner': 'Owner',
23
+ 'e_tag': 'str',
24
+ 'type': 'str',
25
+ 'key': 'str',
26
+ 'last_modified': 'str',
27
+ 'size': 'str',
28
+ 'storage_class': 'str'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'owner': 'Owner',
33
+ 'e_tag': 'ETag',
34
+ 'type': 'Type',
35
+ 'key': 'Key',
36
+ 'last_modified': 'LastModified',
37
+ 'size': 'Size',
38
+ 'storage_class': 'StorageClass'
39
+ }
40
+
41
+ def __init__(self, owner=None, e_tag=None, type=None, key=None, last_modified=None, size=None, storage_class=None):
42
+ r"""Contents
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param owner:
47
+ :type owner: :class:`huaweicloudsdkobs.v1.Owner`
48
+ :param e_tag: Base64-encoded 128-bit MD5 digest of an object. ETag is the unique identifier of the object content. It determines whether the object content changes. For example, when an object is uploaded, its ETag value is **A**, but when it is downloaded, its ETag value is **B**, this indicates that the object content changes. The ETag is a hash of the object. The ETag reflects changes only to the object content, rather than its metadata. An uploaded object or copied object has a unique ETag after being encrypted with MD5. (If the object is encrypted on the server side, the ETag value is not the MD5 digest of the object, but the unique identifier calculated through server-side encryption.)
49
+ :type e_tag: str
50
+ :param type: Object type. This parameter is returned when the object type is not **Normal**.
51
+ :type type: str
52
+ :param key: Name of the object
53
+ :type key: str
54
+ :param last_modified: Time (UTC) when the object was last modified
55
+ :type last_modified: str
56
+ :param size: Object size in bytes
57
+ :type size: str
58
+ :param storage_class: Storage class of the object
59
+ :type storage_class: str
60
+ """
61
+
62
+
63
+
64
+ self._owner = None
65
+ self._e_tag = None
66
+ self._type = None
67
+ self._key = None
68
+ self._last_modified = None
69
+ self._size = None
70
+ self._storage_class = None
71
+ self.discriminator = None
72
+
73
+ if owner is not None:
74
+ self.owner = owner
75
+ if e_tag is not None:
76
+ self.e_tag = e_tag
77
+ if type is not None:
78
+ self.type = type
79
+ if key is not None:
80
+ self.key = key
81
+ if last_modified is not None:
82
+ self.last_modified = last_modified
83
+ if size is not None:
84
+ self.size = size
85
+ if storage_class is not None:
86
+ self.storage_class = storage_class
87
+
88
+ @property
89
+ def owner(self):
90
+ r"""Gets the owner of this Contents.
91
+
92
+ :return: The owner of this Contents.
93
+ :rtype: :class:`huaweicloudsdkobs.v1.Owner`
94
+ """
95
+ return self._owner
96
+
97
+ @owner.setter
98
+ def owner(self, owner):
99
+ r"""Sets the owner of this Contents.
100
+
101
+ :param owner: The owner of this Contents.
102
+ :type owner: :class:`huaweicloudsdkobs.v1.Owner`
103
+ """
104
+ self._owner = owner
105
+
106
+ @property
107
+ def e_tag(self):
108
+ r"""Gets the e_tag of this Contents.
109
+
110
+ Base64-encoded 128-bit MD5 digest of an object. ETag is the unique identifier of the object content. It determines whether the object content changes. For example, when an object is uploaded, its ETag value is **A**, but when it is downloaded, its ETag value is **B**, this indicates that the object content changes. The ETag is a hash of the object. The ETag reflects changes only to the object content, rather than its metadata. An uploaded object or copied object has a unique ETag after being encrypted with MD5. (If the object is encrypted on the server side, the ETag value is not the MD5 digest of the object, but the unique identifier calculated through server-side encryption.)
111
+
112
+ :return: The e_tag of this Contents.
113
+ :rtype: str
114
+ """
115
+ return self._e_tag
116
+
117
+ @e_tag.setter
118
+ def e_tag(self, e_tag):
119
+ r"""Sets the e_tag of this Contents.
120
+
121
+ Base64-encoded 128-bit MD5 digest of an object. ETag is the unique identifier of the object content. It determines whether the object content changes. For example, when an object is uploaded, its ETag value is **A**, but when it is downloaded, its ETag value is **B**, this indicates that the object content changes. The ETag is a hash of the object. The ETag reflects changes only to the object content, rather than its metadata. An uploaded object or copied object has a unique ETag after being encrypted with MD5. (If the object is encrypted on the server side, the ETag value is not the MD5 digest of the object, but the unique identifier calculated through server-side encryption.)
122
+
123
+ :param e_tag: The e_tag of this Contents.
124
+ :type e_tag: str
125
+ """
126
+ self._e_tag = e_tag
127
+
128
+ @property
129
+ def type(self):
130
+ r"""Gets the type of this Contents.
131
+
132
+ Object type. This parameter is returned when the object type is not **Normal**.
133
+
134
+ :return: The type of this Contents.
135
+ :rtype: str
136
+ """
137
+ return self._type
138
+
139
+ @type.setter
140
+ def type(self, type):
141
+ r"""Sets the type of this Contents.
142
+
143
+ Object type. This parameter is returned when the object type is not **Normal**.
144
+
145
+ :param type: The type of this Contents.
146
+ :type type: str
147
+ """
148
+ self._type = type
149
+
150
+ @property
151
+ def key(self):
152
+ r"""Gets the key of this Contents.
153
+
154
+ Name of the object
155
+
156
+ :return: The key of this Contents.
157
+ :rtype: str
158
+ """
159
+ return self._key
160
+
161
+ @key.setter
162
+ def key(self, key):
163
+ r"""Sets the key of this Contents.
164
+
165
+ Name of the object
166
+
167
+ :param key: The key of this Contents.
168
+ :type key: str
169
+ """
170
+ self._key = key
171
+
172
+ @property
173
+ def last_modified(self):
174
+ r"""Gets the last_modified of this Contents.
175
+
176
+ Time (UTC) when the object was last modified
177
+
178
+ :return: The last_modified of this Contents.
179
+ :rtype: str
180
+ """
181
+ return self._last_modified
182
+
183
+ @last_modified.setter
184
+ def last_modified(self, last_modified):
185
+ r"""Sets the last_modified of this Contents.
186
+
187
+ Time (UTC) when the object was last modified
188
+
189
+ :param last_modified: The last_modified of this Contents.
190
+ :type last_modified: str
191
+ """
192
+ self._last_modified = last_modified
193
+
194
+ @property
195
+ def size(self):
196
+ r"""Gets the size of this Contents.
197
+
198
+ Object size in bytes
199
+
200
+ :return: The size of this Contents.
201
+ :rtype: str
202
+ """
203
+ return self._size
204
+
205
+ @size.setter
206
+ def size(self, size):
207
+ r"""Sets the size of this Contents.
208
+
209
+ Object size in bytes
210
+
211
+ :param size: The size of this Contents.
212
+ :type size: str
213
+ """
214
+ self._size = size
215
+
216
+ @property
217
+ def storage_class(self):
218
+ r"""Gets the storage_class of this Contents.
219
+
220
+ Storage class of the object
221
+
222
+ :return: The storage_class of this Contents.
223
+ :rtype: str
224
+ """
225
+ return self._storage_class
226
+
227
+ @storage_class.setter
228
+ def storage_class(self, storage_class):
229
+ r"""Sets the storage_class of this Contents.
230
+
231
+ Storage class of the object
232
+
233
+ :param storage_class: The storage_class of this Contents.
234
+ :type storage_class: str
235
+ """
236
+ self._storage_class = storage_class
237
+
238
+ def to_dict(self):
239
+ """Returns the model properties as a dict"""
240
+ result = {}
241
+
242
+ for attr, _ in six.iteritems(self.openapi_types):
243
+ value = getattr(self, attr)
244
+ if isinstance(value, list):
245
+ result[attr] = list(map(
246
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
247
+ value
248
+ ))
249
+ elif hasattr(value, "to_dict"):
250
+ result[attr] = value.to_dict()
251
+ elif isinstance(value, dict):
252
+ result[attr] = dict(map(
253
+ lambda item: (item[0], item[1].to_dict())
254
+ if hasattr(item[1], "to_dict") else item,
255
+ value.items()
256
+ ))
257
+ else:
258
+ if attr in self.sensitive_list:
259
+ result[attr] = "****"
260
+ else:
261
+ result[attr] = value
262
+
263
+ return result
264
+
265
+ def to_str(self):
266
+ """Returns the string representation of the model"""
267
+ import simplejson as json
268
+ if six.PY2:
269
+ import sys
270
+ reload(sys)
271
+ sys.setdefaultencoding("utf-8")
272
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
273
+
274
+ def __repr__(self):
275
+ """For `print`"""
276
+ return self.to_str()
277
+
278
+ def __eq__(self, other):
279
+ """Returns true if both objects are equal"""
280
+ if not isinstance(other, Contents):
281
+ return False
282
+
283
+ return self.__dict__ == other.__dict__
284
+
285
+ def __ne__(self, other):
286
+ """Returns true if both objects are not equal"""
287
+ return not self == other