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,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class GetBucketNotificationRequest:
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 = "GetBucketNotificationRequest"
18
+
19
+ sensitive_list = []
20
+
21
+ openapi_types = {
22
+ 'date': 'str',
23
+ 'bucket_name': 'str',
24
+ 'notification': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'date': 'Date',
29
+ 'bucket_name': 'bucket_name',
30
+ 'notification': 'notification'
31
+ }
32
+
33
+ def __init__(self, date=None, bucket_name=None, notification=None):
34
+ r"""GetBucketNotificationRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :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.
39
+ :type date: str
40
+ :param bucket_name: Name of the requested bucket
41
+ :type bucket_name: str
42
+ :param notification: Indicates the notification configuration API of the bucket.
43
+ :type notification: str
44
+ """
45
+
46
+
47
+
48
+ self._date = None
49
+ self._bucket_name = None
50
+ self._notification = None
51
+ self.discriminator = None
52
+
53
+ if date is not None:
54
+ self.date = date
55
+ self.bucket_name = bucket_name
56
+ self.notification = notification
57
+
58
+ @property
59
+ def date(self):
60
+ r"""Gets the date of this GetBucketNotificationRequest.
61
+
62
+ 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.
63
+
64
+ :return: The date of this GetBucketNotificationRequest.
65
+ :rtype: str
66
+ """
67
+ return self._date
68
+
69
+ @date.setter
70
+ def date(self, date):
71
+ r"""Sets the date of this GetBucketNotificationRequest.
72
+
73
+ 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.
74
+
75
+ :param date: The date of this GetBucketNotificationRequest.
76
+ :type date: str
77
+ """
78
+ self._date = date
79
+
80
+ @property
81
+ def bucket_name(self):
82
+ r"""Gets the bucket_name of this GetBucketNotificationRequest.
83
+
84
+ Name of the requested bucket
85
+
86
+ :return: The bucket_name of this GetBucketNotificationRequest.
87
+ :rtype: str
88
+ """
89
+ return self._bucket_name
90
+
91
+ @bucket_name.setter
92
+ def bucket_name(self, bucket_name):
93
+ r"""Sets the bucket_name of this GetBucketNotificationRequest.
94
+
95
+ Name of the requested bucket
96
+
97
+ :param bucket_name: The bucket_name of this GetBucketNotificationRequest.
98
+ :type bucket_name: str
99
+ """
100
+ self._bucket_name = bucket_name
101
+
102
+ @property
103
+ def notification(self):
104
+ r"""Gets the notification of this GetBucketNotificationRequest.
105
+
106
+ Indicates the notification configuration API of the bucket.
107
+
108
+ :return: The notification of this GetBucketNotificationRequest.
109
+ :rtype: str
110
+ """
111
+ return self._notification
112
+
113
+ @notification.setter
114
+ def notification(self, notification):
115
+ r"""Sets the notification of this GetBucketNotificationRequest.
116
+
117
+ Indicates the notification configuration API of the bucket.
118
+
119
+ :param notification: The notification of this GetBucketNotificationRequest.
120
+ :type notification: str
121
+ """
122
+ self._notification = notification
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, GetBucketNotificationRequest):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -0,0 +1,264 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class GetBucketNotificationResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ xml_name = "GetBucketNotificationResponse"
19
+
20
+ sensitive_list = []
21
+
22
+ openapi_types = {
23
+ 'notification_configuration': 'SetBucketNotificationRequestBody',
24
+ 'x_obs_id_2': 'str',
25
+ 'x_obs_request_id': 'str',
26
+ 'e_tag': 'str',
27
+ 'connection': 'str',
28
+ 'content_length': 'str',
29
+ 'date': 'str'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'notification_configuration': 'NotificationConfiguration',
34
+ 'x_obs_id_2': 'x-obs-id-2',
35
+ 'x_obs_request_id': 'x-obs-request-id',
36
+ 'e_tag': 'ETag',
37
+ 'connection': 'Connection',
38
+ 'content_length': 'Content-Length',
39
+ 'date': 'Date'
40
+ }
41
+
42
+ def __init__(self, notification_configuration=None, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None):
43
+ r"""GetBucketNotificationResponse
44
+
45
+ The model defined in huaweicloud sdk
46
+
47
+ :param notification_configuration:
48
+ :type notification_configuration: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequestBody`
49
+ :param x_obs_id_2:
50
+ :type x_obs_id_2: str
51
+ :param x_obs_request_id:
52
+ :type x_obs_request_id: str
53
+ :param e_tag:
54
+ :type e_tag: str
55
+ :param connection:
56
+ :type connection: str
57
+ :param content_length:
58
+ :type content_length: str
59
+ :param date:
60
+ :type date: str
61
+ """
62
+
63
+ super(GetBucketNotificationResponse, self).__init__()
64
+
65
+ self._notification_configuration = None
66
+ self._x_obs_id_2 = None
67
+ self._x_obs_request_id = None
68
+ self._e_tag = None
69
+ self._connection = None
70
+ self._content_length = None
71
+ self._date = None
72
+ self.discriminator = None
73
+
74
+ if notification_configuration is not None:
75
+ self.notification_configuration = notification_configuration
76
+ if x_obs_id_2 is not None:
77
+ self.x_obs_id_2 = x_obs_id_2
78
+ if x_obs_request_id is not None:
79
+ self.x_obs_request_id = x_obs_request_id
80
+ if e_tag is not None:
81
+ self.e_tag = e_tag
82
+ if connection is not None:
83
+ self.connection = connection
84
+ if content_length is not None:
85
+ self.content_length = content_length
86
+ if date is not None:
87
+ self.date = date
88
+
89
+ @property
90
+ def notification_configuration(self):
91
+ r"""Gets the notification_configuration of this GetBucketNotificationResponse.
92
+
93
+ :return: The notification_configuration of this GetBucketNotificationResponse.
94
+ :rtype: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequestBody`
95
+ """
96
+ return self._notification_configuration
97
+
98
+ @notification_configuration.setter
99
+ def notification_configuration(self, notification_configuration):
100
+ r"""Sets the notification_configuration of this GetBucketNotificationResponse.
101
+
102
+ :param notification_configuration: The notification_configuration of this GetBucketNotificationResponse.
103
+ :type notification_configuration: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequestBody`
104
+ """
105
+ self._notification_configuration = notification_configuration
106
+
107
+ @property
108
+ def x_obs_id_2(self):
109
+ r"""Gets the x_obs_id_2 of this GetBucketNotificationResponse.
110
+
111
+ :return: The x_obs_id_2 of this GetBucketNotificationResponse.
112
+ :rtype: str
113
+ """
114
+ return self._x_obs_id_2
115
+
116
+ @x_obs_id_2.setter
117
+ def x_obs_id_2(self, x_obs_id_2):
118
+ r"""Sets the x_obs_id_2 of this GetBucketNotificationResponse.
119
+
120
+ :param x_obs_id_2: The x_obs_id_2 of this GetBucketNotificationResponse.
121
+ :type x_obs_id_2: str
122
+ """
123
+ self._x_obs_id_2 = x_obs_id_2
124
+
125
+ @property
126
+ def x_obs_request_id(self):
127
+ r"""Gets the x_obs_request_id of this GetBucketNotificationResponse.
128
+
129
+ :return: The x_obs_request_id of this GetBucketNotificationResponse.
130
+ :rtype: str
131
+ """
132
+ return self._x_obs_request_id
133
+
134
+ @x_obs_request_id.setter
135
+ def x_obs_request_id(self, x_obs_request_id):
136
+ r"""Sets the x_obs_request_id of this GetBucketNotificationResponse.
137
+
138
+ :param x_obs_request_id: The x_obs_request_id of this GetBucketNotificationResponse.
139
+ :type x_obs_request_id: str
140
+ """
141
+ self._x_obs_request_id = x_obs_request_id
142
+
143
+ @property
144
+ def e_tag(self):
145
+ r"""Gets the e_tag of this GetBucketNotificationResponse.
146
+
147
+ :return: The e_tag of this GetBucketNotificationResponse.
148
+ :rtype: str
149
+ """
150
+ return self._e_tag
151
+
152
+ @e_tag.setter
153
+ def e_tag(self, e_tag):
154
+ r"""Sets the e_tag of this GetBucketNotificationResponse.
155
+
156
+ :param e_tag: The e_tag of this GetBucketNotificationResponse.
157
+ :type e_tag: str
158
+ """
159
+ self._e_tag = e_tag
160
+
161
+ @property
162
+ def connection(self):
163
+ r"""Gets the connection of this GetBucketNotificationResponse.
164
+
165
+ :return: The connection of this GetBucketNotificationResponse.
166
+ :rtype: str
167
+ """
168
+ return self._connection
169
+
170
+ @connection.setter
171
+ def connection(self, connection):
172
+ r"""Sets the connection of this GetBucketNotificationResponse.
173
+
174
+ :param connection: The connection of this GetBucketNotificationResponse.
175
+ :type connection: str
176
+ """
177
+ self._connection = connection
178
+
179
+ @property
180
+ def content_length(self):
181
+ r"""Gets the content_length of this GetBucketNotificationResponse.
182
+
183
+ :return: The content_length of this GetBucketNotificationResponse.
184
+ :rtype: str
185
+ """
186
+ return self._content_length
187
+
188
+ @content_length.setter
189
+ def content_length(self, content_length):
190
+ r"""Sets the content_length of this GetBucketNotificationResponse.
191
+
192
+ :param content_length: The content_length of this GetBucketNotificationResponse.
193
+ :type content_length: str
194
+ """
195
+ self._content_length = content_length
196
+
197
+ @property
198
+ def date(self):
199
+ r"""Gets the date of this GetBucketNotificationResponse.
200
+
201
+ :return: The date of this GetBucketNotificationResponse.
202
+ :rtype: str
203
+ """
204
+ return self._date
205
+
206
+ @date.setter
207
+ def date(self, date):
208
+ r"""Sets the date of this GetBucketNotificationResponse.
209
+
210
+ :param date: The date of this GetBucketNotificationResponse.
211
+ :type date: str
212
+ """
213
+ self._date = date
214
+
215
+ def to_dict(self):
216
+ """Returns the model properties as a dict"""
217
+ result = {}
218
+
219
+ for attr, _ in six.iteritems(self.openapi_types):
220
+ value = getattr(self, attr)
221
+ if isinstance(value, list):
222
+ result[attr] = list(map(
223
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
224
+ value
225
+ ))
226
+ elif hasattr(value, "to_dict"):
227
+ result[attr] = value.to_dict()
228
+ elif isinstance(value, dict):
229
+ result[attr] = dict(map(
230
+ lambda item: (item[0], item[1].to_dict())
231
+ if hasattr(item[1], "to_dict") else item,
232
+ value.items()
233
+ ))
234
+ else:
235
+ if attr in self.sensitive_list:
236
+ result[attr] = "****"
237
+ else:
238
+ result[attr] = value
239
+
240
+ return result
241
+
242
+ def to_str(self):
243
+ """Returns the string representation of the model"""
244
+ import simplejson as json
245
+ if six.PY2:
246
+ import sys
247
+ reload(sys)
248
+ sys.setdefaultencoding("utf-8")
249
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
250
+
251
+ def __repr__(self):
252
+ """For `print`"""
253
+ return self.to_str()
254
+
255
+ def __eq__(self, other):
256
+ """Returns true if both objects are equal"""
257
+ if not isinstance(other, GetBucketNotificationResponse):
258
+ return False
259
+
260
+ return self.__dict__ == other.__dict__
261
+
262
+ def __ne__(self, other):
263
+ """Returns true if both objects are not equal"""
264
+ return not self == other