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,226 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteObjectsRequest:
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 = "DeleteObjectsRequest"
18
+
19
+ sensitive_list = []
20
+
21
+ openapi_types = {
22
+ 'content_md5': 'str',
23
+ 'date': 'str',
24
+ 'bucket_name': 'str',
25
+ 'delete': 'str',
26
+ 'body': 'DeleteObjectsRequestBody'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'content_md5': 'Content-MD5',
31
+ 'date': 'Date',
32
+ 'bucket_name': 'bucket_name',
33
+ 'delete': 'delete',
34
+ 'body': 'body'
35
+ }
36
+
37
+ def __init__(self, content_md5=None, date=None, bucket_name=None, delete=None, body=None):
38
+ r"""DeleteObjectsRequest
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param content_md5: Base64-encoded 128-bit MD5 digest of the message according to RFC 1864.
43
+ :type content_md5: str
44
+ :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.
45
+ :type date: str
46
+ :param bucket_name: Name of the requested bucket
47
+ :type bucket_name: str
48
+ :param delete: Indicates the batch deletion API.
49
+ :type delete: str
50
+ :param body: Body of the DeleteObjectsRequest
51
+ :type body: :class:`huaweicloudsdkobs.v1.DeleteObjectsRequestBody`
52
+ """
53
+
54
+
55
+
56
+ self._content_md5 = None
57
+ self._date = None
58
+ self._bucket_name = None
59
+ self._delete = None
60
+ self._body = None
61
+ self.discriminator = None
62
+
63
+ self.content_md5 = content_md5
64
+ if date is not None:
65
+ self.date = date
66
+ self.bucket_name = bucket_name
67
+ self.delete = delete
68
+ if body is not None:
69
+ self.body = body
70
+
71
+ @property
72
+ def content_md5(self):
73
+ r"""Gets the content_md5 of this DeleteObjectsRequest.
74
+
75
+ Base64-encoded 128-bit MD5 digest of the message according to RFC 1864.
76
+
77
+ :return: The content_md5 of this DeleteObjectsRequest.
78
+ :rtype: str
79
+ """
80
+ return self._content_md5
81
+
82
+ @content_md5.setter
83
+ def content_md5(self, content_md5):
84
+ r"""Sets the content_md5 of this DeleteObjectsRequest.
85
+
86
+ Base64-encoded 128-bit MD5 digest of the message according to RFC 1864.
87
+
88
+ :param content_md5: The content_md5 of this DeleteObjectsRequest.
89
+ :type content_md5: str
90
+ """
91
+ self._content_md5 = content_md5
92
+
93
+ @property
94
+ def date(self):
95
+ r"""Gets the date of this DeleteObjectsRequest.
96
+
97
+ 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.
98
+
99
+ :return: The date of this DeleteObjectsRequest.
100
+ :rtype: str
101
+ """
102
+ return self._date
103
+
104
+ @date.setter
105
+ def date(self, date):
106
+ r"""Sets the date of this DeleteObjectsRequest.
107
+
108
+ 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.
109
+
110
+ :param date: The date of this DeleteObjectsRequest.
111
+ :type date: str
112
+ """
113
+ self._date = date
114
+
115
+ @property
116
+ def bucket_name(self):
117
+ r"""Gets the bucket_name of this DeleteObjectsRequest.
118
+
119
+ Name of the requested bucket
120
+
121
+ :return: The bucket_name of this DeleteObjectsRequest.
122
+ :rtype: str
123
+ """
124
+ return self._bucket_name
125
+
126
+ @bucket_name.setter
127
+ def bucket_name(self, bucket_name):
128
+ r"""Sets the bucket_name of this DeleteObjectsRequest.
129
+
130
+ Name of the requested bucket
131
+
132
+ :param bucket_name: The bucket_name of this DeleteObjectsRequest.
133
+ :type bucket_name: str
134
+ """
135
+ self._bucket_name = bucket_name
136
+
137
+ @property
138
+ def delete(self):
139
+ r"""Gets the delete of this DeleteObjectsRequest.
140
+
141
+ Indicates the batch deletion API.
142
+
143
+ :return: The delete of this DeleteObjectsRequest.
144
+ :rtype: str
145
+ """
146
+ return self._delete
147
+
148
+ @delete.setter
149
+ def delete(self, delete):
150
+ r"""Sets the delete of this DeleteObjectsRequest.
151
+
152
+ Indicates the batch deletion API.
153
+
154
+ :param delete: The delete of this DeleteObjectsRequest.
155
+ :type delete: str
156
+ """
157
+ self._delete = delete
158
+
159
+ @property
160
+ def body(self):
161
+ r"""Gets the body of this DeleteObjectsRequest.
162
+
163
+ :return: The body of this DeleteObjectsRequest.
164
+ :rtype: :class:`huaweicloudsdkobs.v1.DeleteObjectsRequestBody`
165
+ """
166
+ return self._body
167
+
168
+ @body.setter
169
+ def body(self, body):
170
+ r"""Sets the body of this DeleteObjectsRequest.
171
+
172
+ :param body: The body of this DeleteObjectsRequest.
173
+ :type body: :class:`huaweicloudsdkobs.v1.DeleteObjectsRequestBody`
174
+ """
175
+ self._body = body
176
+
177
+ def to_dict(self):
178
+ """Returns the model properties as a dict"""
179
+ result = {}
180
+
181
+ for attr, _ in six.iteritems(self.openapi_types):
182
+ value = getattr(self, attr)
183
+ if isinstance(value, list):
184
+ result[attr] = list(map(
185
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
186
+ value
187
+ ))
188
+ elif hasattr(value, "to_dict"):
189
+ result[attr] = value.to_dict()
190
+ elif isinstance(value, dict):
191
+ result[attr] = dict(map(
192
+ lambda item: (item[0], item[1].to_dict())
193
+ if hasattr(item[1], "to_dict") else item,
194
+ value.items()
195
+ ))
196
+ else:
197
+ if attr in self.sensitive_list:
198
+ result[attr] = "****"
199
+ else:
200
+ result[attr] = value
201
+
202
+ return result
203
+
204
+ def to_str(self):
205
+ """Returns the string representation of the model"""
206
+ import simplejson as json
207
+ if six.PY2:
208
+ import sys
209
+ reload(sys)
210
+ sys.setdefaultencoding("utf-8")
211
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
212
+
213
+ def __repr__(self):
214
+ """For `print`"""
215
+ return self.to_str()
216
+
217
+ def __eq__(self, other):
218
+ """Returns true if both objects are equal"""
219
+ if not isinstance(other, DeleteObjectsRequest):
220
+ return False
221
+
222
+ return self.__dict__ == other.__dict__
223
+
224
+ def __ne__(self, other):
225
+ """Returns true if both objects are not equal"""
226
+ 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 DeleteObjectsRequestBody:
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 = "Delete"
18
+
19
+ sensitive_list = []
20
+
21
+ openapi_types = {
22
+ 'quiet': 'bool',
23
+ 'encoding_type': 'str',
24
+ 'object': 'list[DeleteObject]'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'quiet': 'Quiet',
29
+ 'encoding_type': 'EncodingType',
30
+ 'object': 'Object'
31
+ }
32
+
33
+ def __init__(self, quiet=None, encoding_type=None, object=None):
34
+ r"""DeleteObjectsRequestBody
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param quiet: Specifies the **quiet** mode that makes OBS only return the list of objects whose deletion failed. This field is valid when set to **true**, or OBS ignores it.
39
+ :type quiet: bool
40
+ :param encoding_type: Specifies the encoding type of the object key to delete and that in the response. If an object key contains control characters that are not supported by XML 1.0 standards, you can set this element to specify how the object key is encoded.
41
+ :type encoding_type: str
42
+ :param object:
43
+ :type object: list[:class:`huaweicloudsdkobs.v1.DeleteObject`]
44
+ """
45
+
46
+
47
+
48
+ self._quiet = None
49
+ self._encoding_type = None
50
+ self._object = None
51
+ self.discriminator = None
52
+
53
+ if quiet is not None:
54
+ self.quiet = quiet
55
+ if encoding_type is not None:
56
+ self.encoding_type = encoding_type
57
+ if object is not None:
58
+ self.object = object
59
+
60
+ @property
61
+ def quiet(self):
62
+ r"""Gets the quiet of this DeleteObjectsRequestBody.
63
+
64
+ Specifies the **quiet** mode that makes OBS only return the list of objects whose deletion failed. This field is valid when set to **true**, or OBS ignores it.
65
+
66
+ :return: The quiet of this DeleteObjectsRequestBody.
67
+ :rtype: bool
68
+ """
69
+ return self._quiet
70
+
71
+ @quiet.setter
72
+ def quiet(self, quiet):
73
+ r"""Sets the quiet of this DeleteObjectsRequestBody.
74
+
75
+ Specifies the **quiet** mode that makes OBS only return the list of objects whose deletion failed. This field is valid when set to **true**, or OBS ignores it.
76
+
77
+ :param quiet: The quiet of this DeleteObjectsRequestBody.
78
+ :type quiet: bool
79
+ """
80
+ self._quiet = quiet
81
+
82
+ @property
83
+ def encoding_type(self):
84
+ r"""Gets the encoding_type of this DeleteObjectsRequestBody.
85
+
86
+ Specifies the encoding type of the object key to delete and that in the response. If an object key contains control characters that are not supported by XML 1.0 standards, you can set this element to specify how the object key is encoded.
87
+
88
+ :return: The encoding_type of this DeleteObjectsRequestBody.
89
+ :rtype: str
90
+ """
91
+ return self._encoding_type
92
+
93
+ @encoding_type.setter
94
+ def encoding_type(self, encoding_type):
95
+ r"""Sets the encoding_type of this DeleteObjectsRequestBody.
96
+
97
+ Specifies the encoding type of the object key to delete and that in the response. If an object key contains control characters that are not supported by XML 1.0 standards, you can set this element to specify how the object key is encoded.
98
+
99
+ :param encoding_type: The encoding_type of this DeleteObjectsRequestBody.
100
+ :type encoding_type: str
101
+ """
102
+ self._encoding_type = encoding_type
103
+
104
+ @property
105
+ def object(self):
106
+ r"""Gets the object of this DeleteObjectsRequestBody.
107
+
108
+ :return: The object of this DeleteObjectsRequestBody.
109
+ :rtype: list[:class:`huaweicloudsdkobs.v1.DeleteObject`]
110
+ """
111
+ return self._object
112
+
113
+ @object.setter
114
+ def object(self, object):
115
+ r"""Sets the object of this DeleteObjectsRequestBody.
116
+
117
+ :param object: The object of this DeleteObjectsRequestBody.
118
+ :type object: list[:class:`huaweicloudsdkobs.v1.DeleteObject`]
119
+ """
120
+ self._object = object
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, DeleteObjectsRequestBody):
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