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,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 GetBucketCustomdomainResponse(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 = "GetBucketCustomdomainResponse"
19
+
20
+ sensitive_list = []
21
+
22
+ openapi_types = {
23
+ 'domains': 'Domains',
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
+ 'domains': 'Domains',
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, domains=None, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None):
43
+ r"""GetBucketCustomdomainResponse
44
+
45
+ The model defined in huaweicloud sdk
46
+
47
+ :param domains:
48
+ :type domains: :class:`huaweicloudsdkobs.v1.Domains`
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(GetBucketCustomdomainResponse, self).__init__()
64
+
65
+ self._domains = 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 domains is not None:
75
+ self.domains = domains
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 domains(self):
91
+ r"""Gets the domains of this GetBucketCustomdomainResponse.
92
+
93
+ :return: The domains of this GetBucketCustomdomainResponse.
94
+ :rtype: :class:`huaweicloudsdkobs.v1.Domains`
95
+ """
96
+ return self._domains
97
+
98
+ @domains.setter
99
+ def domains(self, domains):
100
+ r"""Sets the domains of this GetBucketCustomdomainResponse.
101
+
102
+ :param domains: The domains of this GetBucketCustomdomainResponse.
103
+ :type domains: :class:`huaweicloudsdkobs.v1.Domains`
104
+ """
105
+ self._domains = domains
106
+
107
+ @property
108
+ def x_obs_id_2(self):
109
+ r"""Gets the x_obs_id_2 of this GetBucketCustomdomainResponse.
110
+
111
+ :return: The x_obs_id_2 of this GetBucketCustomdomainResponse.
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 GetBucketCustomdomainResponse.
119
+
120
+ :param x_obs_id_2: The x_obs_id_2 of this GetBucketCustomdomainResponse.
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 GetBucketCustomdomainResponse.
128
+
129
+ :return: The x_obs_request_id of this GetBucketCustomdomainResponse.
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 GetBucketCustomdomainResponse.
137
+
138
+ :param x_obs_request_id: The x_obs_request_id of this GetBucketCustomdomainResponse.
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 GetBucketCustomdomainResponse.
146
+
147
+ :return: The e_tag of this GetBucketCustomdomainResponse.
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 GetBucketCustomdomainResponse.
155
+
156
+ :param e_tag: The e_tag of this GetBucketCustomdomainResponse.
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 GetBucketCustomdomainResponse.
164
+
165
+ :return: The connection of this GetBucketCustomdomainResponse.
166
+ :rtype: str
167
+ """
168
+ return self._connection
169
+
170
+ @connection.setter
171
+ def connection(self, connection):
172
+ r"""Sets the connection of this GetBucketCustomdomainResponse.
173
+
174
+ :param connection: The connection of this GetBucketCustomdomainResponse.
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 GetBucketCustomdomainResponse.
182
+
183
+ :return: The content_length of this GetBucketCustomdomainResponse.
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 GetBucketCustomdomainResponse.
191
+
192
+ :param content_length: The content_length of this GetBucketCustomdomainResponse.
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 GetBucketCustomdomainResponse.
200
+
201
+ :return: The date of this GetBucketCustomdomainResponse.
202
+ :rtype: str
203
+ """
204
+ return self._date
205
+
206
+ @date.setter
207
+ def date(self, date):
208
+ r"""Sets the date of this GetBucketCustomdomainResponse.
209
+
210
+ :param date: The date of this GetBucketCustomdomainResponse.
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, GetBucketCustomdomainResponse):
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
@@ -0,0 +1,203 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class GetBucketMetadataRequest:
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 = "GetBucketMetadataRequest"
18
+
19
+ sensitive_list = []
20
+
21
+ openapi_types = {
22
+ 'bucket_name': 'str',
23
+ 'date': 'str',
24
+ 'origin': 'str',
25
+ 'access_control_request_headers': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'bucket_name': 'bucket_name',
30
+ 'date': 'Date',
31
+ 'origin': 'Origin',
32
+ 'access_control_request_headers': 'Access-Control-Request-Headers'
33
+ }
34
+
35
+ def __init__(self, bucket_name=None, date=None, origin=None, access_control_request_headers=None):
36
+ r"""GetBucketMetadataRequest
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param bucket_name: Name of the bucket.
41
+ :type bucket_name: str
42
+ :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.
43
+ :type date: str
44
+ :param origin: Origin (usually a domain name) specified by the pre-request (a cross-origin request). To obtain the CORS configuration information, you must add this header.
45
+ :type origin: str
46
+ :param access_control_request_headers: HTTP headers that can be contained in a request. To obtain the CORS configuration information, you can add this header.
47
+ :type access_control_request_headers: str
48
+ """
49
+
50
+
51
+
52
+ self._bucket_name = None
53
+ self._date = None
54
+ self._origin = None
55
+ self._access_control_request_headers = None
56
+ self.discriminator = None
57
+
58
+ self.bucket_name = bucket_name
59
+ if date is not None:
60
+ self.date = date
61
+ if origin is not None:
62
+ self.origin = origin
63
+ if access_control_request_headers is not None:
64
+ self.access_control_request_headers = access_control_request_headers
65
+
66
+ @property
67
+ def bucket_name(self):
68
+ r"""Gets the bucket_name of this GetBucketMetadataRequest.
69
+
70
+ Name of the bucket.
71
+
72
+ :return: The bucket_name of this GetBucketMetadataRequest.
73
+ :rtype: str
74
+ """
75
+ return self._bucket_name
76
+
77
+ @bucket_name.setter
78
+ def bucket_name(self, bucket_name):
79
+ r"""Sets the bucket_name of this GetBucketMetadataRequest.
80
+
81
+ Name of the bucket.
82
+
83
+ :param bucket_name: The bucket_name of this GetBucketMetadataRequest.
84
+ :type bucket_name: str
85
+ """
86
+ self._bucket_name = bucket_name
87
+
88
+ @property
89
+ def date(self):
90
+ r"""Gets the date of this GetBucketMetadataRequest.
91
+
92
+ 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.
93
+
94
+ :return: The date of this GetBucketMetadataRequest.
95
+ :rtype: str
96
+ """
97
+ return self._date
98
+
99
+ @date.setter
100
+ def date(self, date):
101
+ r"""Sets the date of this GetBucketMetadataRequest.
102
+
103
+ 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.
104
+
105
+ :param date: The date of this GetBucketMetadataRequest.
106
+ :type date: str
107
+ """
108
+ self._date = date
109
+
110
+ @property
111
+ def origin(self):
112
+ r"""Gets the origin of this GetBucketMetadataRequest.
113
+
114
+ Origin (usually a domain name) specified by the pre-request (a cross-origin request). To obtain the CORS configuration information, you must add this header.
115
+
116
+ :return: The origin of this GetBucketMetadataRequest.
117
+ :rtype: str
118
+ """
119
+ return self._origin
120
+
121
+ @origin.setter
122
+ def origin(self, origin):
123
+ r"""Sets the origin of this GetBucketMetadataRequest.
124
+
125
+ Origin (usually a domain name) specified by the pre-request (a cross-origin request). To obtain the CORS configuration information, you must add this header.
126
+
127
+ :param origin: The origin of this GetBucketMetadataRequest.
128
+ :type origin: str
129
+ """
130
+ self._origin = origin
131
+
132
+ @property
133
+ def access_control_request_headers(self):
134
+ r"""Gets the access_control_request_headers of this GetBucketMetadataRequest.
135
+
136
+ HTTP headers that can be contained in a request. To obtain the CORS configuration information, you can add this header.
137
+
138
+ :return: The access_control_request_headers of this GetBucketMetadataRequest.
139
+ :rtype: str
140
+ """
141
+ return self._access_control_request_headers
142
+
143
+ @access_control_request_headers.setter
144
+ def access_control_request_headers(self, access_control_request_headers):
145
+ r"""Sets the access_control_request_headers of this GetBucketMetadataRequest.
146
+
147
+ HTTP headers that can be contained in a request. To obtain the CORS configuration information, you can add this header.
148
+
149
+ :param access_control_request_headers: The access_control_request_headers of this GetBucketMetadataRequest.
150
+ :type access_control_request_headers: str
151
+ """
152
+ self._access_control_request_headers = access_control_request_headers
153
+
154
+ def to_dict(self):
155
+ """Returns the model properties as a dict"""
156
+ result = {}
157
+
158
+ for attr, _ in six.iteritems(self.openapi_types):
159
+ value = getattr(self, attr)
160
+ if isinstance(value, list):
161
+ result[attr] = list(map(
162
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
163
+ value
164
+ ))
165
+ elif hasattr(value, "to_dict"):
166
+ result[attr] = value.to_dict()
167
+ elif isinstance(value, dict):
168
+ result[attr] = dict(map(
169
+ lambda item: (item[0], item[1].to_dict())
170
+ if hasattr(item[1], "to_dict") else item,
171
+ value.items()
172
+ ))
173
+ else:
174
+ if attr in self.sensitive_list:
175
+ result[attr] = "****"
176
+ else:
177
+ result[attr] = value
178
+
179
+ return result
180
+
181
+ def to_str(self):
182
+ """Returns the string representation of the model"""
183
+ import simplejson as json
184
+ if six.PY2:
185
+ import sys
186
+ reload(sys)
187
+ sys.setdefaultencoding("utf-8")
188
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
189
+
190
+ def __repr__(self):
191
+ """For `print`"""
192
+ return self.to_str()
193
+
194
+ def __eq__(self, other):
195
+ """Returns true if both objects are equal"""
196
+ if not isinstance(other, GetBucketMetadataRequest):
197
+ return False
198
+
199
+ return self.__dict__ == other.__dict__
200
+
201
+ def __ne__(self, other):
202
+ """Returns true if both objects are not equal"""
203
+ return not self == other