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