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.
- huaweicloudsdkobs/__init__.py +0 -0
- huaweicloudsdkobs/v1/__init__.py +66 -0
- huaweicloudsdkobs/v1/model/__init__.py +63 -0
- huaweicloudsdkobs/v1/model/access_control_list.py +113 -0
- huaweicloudsdkobs/v1/model/bucket.py +233 -0
- huaweicloudsdkobs/v1/model/buckets.py +117 -0
- huaweicloudsdkobs/v1/model/common_prefixes.py +113 -0
- huaweicloudsdkobs/v1/model/contents.py +287 -0
- huaweicloudsdkobs/v1/model/copy_object_request.py +839 -0
- huaweicloudsdkobs/v1/model/copy_object_response.py +443 -0
- huaweicloudsdkobs/v1/model/create_bucket_request.py +605 -0
- huaweicloudsdkobs/v1/model/create_bucket_request_body.py +117 -0
- huaweicloudsdkobs/v1/model/create_bucket_response.py +239 -0
- huaweicloudsdkobs/v1/model/delete_bucket_customdomain_request.py +173 -0
- huaweicloudsdkobs/v1/model/delete_bucket_customdomain_response.py +239 -0
- huaweicloudsdkobs/v1/model/delete_bucket_request.py +145 -0
- huaweicloudsdkobs/v1/model/delete_bucket_response.py +239 -0
- huaweicloudsdkobs/v1/model/delete_object.py +146 -0
- huaweicloudsdkobs/v1/model/delete_object_request.py +202 -0
- huaweicloudsdkobs/v1/model/delete_object_response.py +289 -0
- huaweicloudsdkobs/v1/model/delete_objects_request.py +226 -0
- huaweicloudsdkobs/v1/model/delete_objects_request_body.py +171 -0
- huaweicloudsdkobs/v1/model/delete_objects_response.py +318 -0
- huaweicloudsdkobs/v1/model/delete_result_deleted.py +204 -0
- huaweicloudsdkobs/v1/model/delete_result_error.py +175 -0
- huaweicloudsdkobs/v1/model/domains.py +173 -0
- huaweicloudsdkobs/v1/model/filter_object.py +113 -0
- huaweicloudsdkobs/v1/model/filter_rule.py +146 -0
- huaweicloudsdkobs/v1/model/function_stage_configuration.py +229 -0
- huaweicloudsdkobs/v1/model/get_bucket_acl_request.py +173 -0
- huaweicloudsdkobs/v1/model/get_bucket_acl_response.py +289 -0
- huaweicloudsdkobs/v1/model/get_bucket_customdomain_request.py +173 -0
- huaweicloudsdkobs/v1/model/get_bucket_customdomain_response.py +264 -0
- huaweicloudsdkobs/v1/model/get_bucket_metadata_request.py +203 -0
- huaweicloudsdkobs/v1/model/get_bucket_metadata_response.py +539 -0
- huaweicloudsdkobs/v1/model/get_bucket_notification_request.py +173 -0
- huaweicloudsdkobs/v1/model/get_bucket_notification_response.py +264 -0
- huaweicloudsdkobs/v1/model/get_object_metadata_request.py +405 -0
- huaweicloudsdkobs/v1/model/get_object_metadata_response.py +689 -0
- huaweicloudsdkobs/v1/model/get_object_request.py +666 -0
- huaweicloudsdkobs/v1/model/get_object_response.py +489 -0
- huaweicloudsdkobs/v1/model/grant.py +171 -0
- huaweicloudsdkobs/v1/model/grantee.py +146 -0
- huaweicloudsdkobs/v1/model/list_buckets_request.py +146 -0
- huaweicloudsdkobs/v1/model/list_buckets_response.py +314 -0
- huaweicloudsdkobs/v1/model/list_objects_request.py +348 -0
- huaweicloudsdkobs/v1/model/list_objects_response.py +546 -0
- huaweicloudsdkobs/v1/model/owner.py +117 -0
- huaweicloudsdkobs/v1/model/put_object_request.py +667 -0
- huaweicloudsdkobs/v1/model/put_object_response.py +389 -0
- huaweicloudsdkobs/v1/model/set_bucket_acl_request.py +227 -0
- huaweicloudsdkobs/v1/model/set_bucket_acl_request_body.py +138 -0
- huaweicloudsdkobs/v1/model/set_bucket_acl_response.py +239 -0
- huaweicloudsdkobs/v1/model/set_bucket_custom_domain_body.py +230 -0
- huaweicloudsdkobs/v1/model/set_bucket_customedomain_request.py +198 -0
- huaweicloudsdkobs/v1/model/set_bucket_customedomain_response.py +239 -0
- huaweicloudsdkobs/v1/model/set_bucket_notification_request.py +198 -0
- huaweicloudsdkobs/v1/model/set_bucket_notification_request_body.py +138 -0
- huaweicloudsdkobs/v1/model/set_bucket_notification_response.py +239 -0
- huaweicloudsdkobs/v1/model/topic_configuration.py +200 -0
- huaweicloudsdkobs/v1/model/topic_configuration_filter.py +113 -0
- huaweicloudsdkobs/v1/obs_async_client.py +1600 -0
- huaweicloudsdkobs/v1/obs_client.py +1597 -0
- huaweicloudsdkobs/v1/obs_credentials.py +69 -0
- huaweicloudsdkobs/v1/obs_signer.py +298 -0
- huaweicloudsdkobs/v1/region/__init__.py +0 -0
- huaweicloudsdkobs/v1/region/obs_region.py +88 -0
- huaweicloudsdkobs-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkobs-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkobs-3.1.160.dist-info/RECORD +72 -0
- huaweicloudsdkobs-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkobs-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,198 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SetBucketCustomedomainRequest:
|
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 = "SetBucketCustomedomainRequest"
|
18
|
+
|
19
|
+
sensitive_list = []
|
20
|
+
|
21
|
+
openapi_types = {
|
22
|
+
'date': 'str',
|
23
|
+
'bucket_name': 'str',
|
24
|
+
'customdomain': 'str',
|
25
|
+
'body': 'SetBucketCustomDomainBody'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'date': 'Date',
|
30
|
+
'bucket_name': 'bucket_name',
|
31
|
+
'customdomain': 'customdomain',
|
32
|
+
'body': 'body'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, date=None, bucket_name=None, customdomain=None, body=None):
|
36
|
+
r"""SetBucketCustomedomainRequest
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
: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.
|
41
|
+
:type date: str
|
42
|
+
:param bucket_name: Name of the requested bucket
|
43
|
+
:type bucket_name: str
|
44
|
+
:param customdomain: Custom domain name of the bucket. Type: string, which must meet the naming conventions of domain names. Specifications: The value contains a maximum of 256 bytes. Default value: none Restriction: A bucket can have a maximum of 30 domain names. A custom domain name can be used for only one bucket.
|
45
|
+
:type customdomain: str
|
46
|
+
:param body: Body of the SetBucketCustomedomainRequest
|
47
|
+
:type body: :class:`huaweicloudsdkobs.v1.SetBucketCustomDomainBody`
|
48
|
+
"""
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
self._date = None
|
53
|
+
self._bucket_name = None
|
54
|
+
self._customdomain = None
|
55
|
+
self._body = None
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
if date is not None:
|
59
|
+
self.date = date
|
60
|
+
self.bucket_name = bucket_name
|
61
|
+
self.customdomain = customdomain
|
62
|
+
if body is not None:
|
63
|
+
self.body = body
|
64
|
+
|
65
|
+
@property
|
66
|
+
def date(self):
|
67
|
+
r"""Gets the date of this SetBucketCustomedomainRequest.
|
68
|
+
|
69
|
+
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.
|
70
|
+
|
71
|
+
:return: The date of this SetBucketCustomedomainRequest.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._date
|
75
|
+
|
76
|
+
@date.setter
|
77
|
+
def date(self, date):
|
78
|
+
r"""Sets the date of this SetBucketCustomedomainRequest.
|
79
|
+
|
80
|
+
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.
|
81
|
+
|
82
|
+
:param date: The date of this SetBucketCustomedomainRequest.
|
83
|
+
:type date: str
|
84
|
+
"""
|
85
|
+
self._date = date
|
86
|
+
|
87
|
+
@property
|
88
|
+
def bucket_name(self):
|
89
|
+
r"""Gets the bucket_name of this SetBucketCustomedomainRequest.
|
90
|
+
|
91
|
+
Name of the requested bucket
|
92
|
+
|
93
|
+
:return: The bucket_name of this SetBucketCustomedomainRequest.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._bucket_name
|
97
|
+
|
98
|
+
@bucket_name.setter
|
99
|
+
def bucket_name(self, bucket_name):
|
100
|
+
r"""Sets the bucket_name of this SetBucketCustomedomainRequest.
|
101
|
+
|
102
|
+
Name of the requested bucket
|
103
|
+
|
104
|
+
:param bucket_name: The bucket_name of this SetBucketCustomedomainRequest.
|
105
|
+
:type bucket_name: str
|
106
|
+
"""
|
107
|
+
self._bucket_name = bucket_name
|
108
|
+
|
109
|
+
@property
|
110
|
+
def customdomain(self):
|
111
|
+
r"""Gets the customdomain of this SetBucketCustomedomainRequest.
|
112
|
+
|
113
|
+
Custom domain name of the bucket. Type: string, which must meet the naming conventions of domain names. Specifications: The value contains a maximum of 256 bytes. Default value: none Restriction: A bucket can have a maximum of 30 domain names. A custom domain name can be used for only one bucket.
|
114
|
+
|
115
|
+
:return: The customdomain of this SetBucketCustomedomainRequest.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._customdomain
|
119
|
+
|
120
|
+
@customdomain.setter
|
121
|
+
def customdomain(self, customdomain):
|
122
|
+
r"""Sets the customdomain of this SetBucketCustomedomainRequest.
|
123
|
+
|
124
|
+
Custom domain name of the bucket. Type: string, which must meet the naming conventions of domain names. Specifications: The value contains a maximum of 256 bytes. Default value: none Restriction: A bucket can have a maximum of 30 domain names. A custom domain name can be used for only one bucket.
|
125
|
+
|
126
|
+
:param customdomain: The customdomain of this SetBucketCustomedomainRequest.
|
127
|
+
:type customdomain: str
|
128
|
+
"""
|
129
|
+
self._customdomain = customdomain
|
130
|
+
|
131
|
+
@property
|
132
|
+
def body(self):
|
133
|
+
r"""Gets the body of this SetBucketCustomedomainRequest.
|
134
|
+
|
135
|
+
:return: The body of this SetBucketCustomedomainRequest.
|
136
|
+
:rtype: :class:`huaweicloudsdkobs.v1.SetBucketCustomDomainBody`
|
137
|
+
"""
|
138
|
+
return self._body
|
139
|
+
|
140
|
+
@body.setter
|
141
|
+
def body(self, body):
|
142
|
+
r"""Sets the body of this SetBucketCustomedomainRequest.
|
143
|
+
|
144
|
+
:param body: The body of this SetBucketCustomedomainRequest.
|
145
|
+
:type body: :class:`huaweicloudsdkobs.v1.SetBucketCustomDomainBody`
|
146
|
+
"""
|
147
|
+
self._body = body
|
148
|
+
|
149
|
+
def to_dict(self):
|
150
|
+
"""Returns the model properties as a dict"""
|
151
|
+
result = {}
|
152
|
+
|
153
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
154
|
+
value = getattr(self, attr)
|
155
|
+
if isinstance(value, list):
|
156
|
+
result[attr] = list(map(
|
157
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
158
|
+
value
|
159
|
+
))
|
160
|
+
elif hasattr(value, "to_dict"):
|
161
|
+
result[attr] = value.to_dict()
|
162
|
+
elif isinstance(value, dict):
|
163
|
+
result[attr] = dict(map(
|
164
|
+
lambda item: (item[0], item[1].to_dict())
|
165
|
+
if hasattr(item[1], "to_dict") else item,
|
166
|
+
value.items()
|
167
|
+
))
|
168
|
+
else:
|
169
|
+
if attr in self.sensitive_list:
|
170
|
+
result[attr] = "****"
|
171
|
+
else:
|
172
|
+
result[attr] = value
|
173
|
+
|
174
|
+
return result
|
175
|
+
|
176
|
+
def to_str(self):
|
177
|
+
"""Returns the string representation of the model"""
|
178
|
+
import simplejson as json
|
179
|
+
if six.PY2:
|
180
|
+
import sys
|
181
|
+
reload(sys)
|
182
|
+
sys.setdefaultencoding("utf-8")
|
183
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
184
|
+
|
185
|
+
def __repr__(self):
|
186
|
+
"""For `print`"""
|
187
|
+
return self.to_str()
|
188
|
+
|
189
|
+
def __eq__(self, other):
|
190
|
+
"""Returns true if both objects are equal"""
|
191
|
+
if not isinstance(other, SetBucketCustomedomainRequest):
|
192
|
+
return False
|
193
|
+
|
194
|
+
return self.__dict__ == other.__dict__
|
195
|
+
|
196
|
+
def __ne__(self, other):
|
197
|
+
"""Returns true if both objects are not equal"""
|
198
|
+
return not self == other
|
@@ -0,0 +1,239 @@
|
|
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 SetBucketCustomedomainResponse(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 = "SetBucketCustomedomainResponse"
|
19
|
+
|
20
|
+
sensitive_list = []
|
21
|
+
|
22
|
+
openapi_types = {
|
23
|
+
'x_obs_id_2': 'str',
|
24
|
+
'x_obs_request_id': 'str',
|
25
|
+
'e_tag': 'str',
|
26
|
+
'connection': 'str',
|
27
|
+
'content_length': 'str',
|
28
|
+
'date': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'x_obs_id_2': 'x-obs-id-2',
|
33
|
+
'x_obs_request_id': 'x-obs-request-id',
|
34
|
+
'e_tag': 'ETag',
|
35
|
+
'connection': 'Connection',
|
36
|
+
'content_length': 'Content-Length',
|
37
|
+
'date': 'Date'
|
38
|
+
}
|
39
|
+
|
40
|
+
def __init__(self, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None):
|
41
|
+
r"""SetBucketCustomedomainResponse
|
42
|
+
|
43
|
+
The model defined in huaweicloud sdk
|
44
|
+
|
45
|
+
:param x_obs_id_2:
|
46
|
+
:type x_obs_id_2: str
|
47
|
+
:param x_obs_request_id:
|
48
|
+
:type x_obs_request_id: str
|
49
|
+
:param e_tag:
|
50
|
+
:type e_tag: str
|
51
|
+
:param connection:
|
52
|
+
:type connection: str
|
53
|
+
:param content_length:
|
54
|
+
:type content_length: str
|
55
|
+
:param date:
|
56
|
+
:type date: str
|
57
|
+
"""
|
58
|
+
|
59
|
+
super(SetBucketCustomedomainResponse, self).__init__()
|
60
|
+
|
61
|
+
self._x_obs_id_2 = None
|
62
|
+
self._x_obs_request_id = None
|
63
|
+
self._e_tag = None
|
64
|
+
self._connection = None
|
65
|
+
self._content_length = None
|
66
|
+
self._date = None
|
67
|
+
self.discriminator = None
|
68
|
+
|
69
|
+
if x_obs_id_2 is not None:
|
70
|
+
self.x_obs_id_2 = x_obs_id_2
|
71
|
+
if x_obs_request_id is not None:
|
72
|
+
self.x_obs_request_id = x_obs_request_id
|
73
|
+
if e_tag is not None:
|
74
|
+
self.e_tag = e_tag
|
75
|
+
if connection is not None:
|
76
|
+
self.connection = connection
|
77
|
+
if content_length is not None:
|
78
|
+
self.content_length = content_length
|
79
|
+
if date is not None:
|
80
|
+
self.date = date
|
81
|
+
|
82
|
+
@property
|
83
|
+
def x_obs_id_2(self):
|
84
|
+
r"""Gets the x_obs_id_2 of this SetBucketCustomedomainResponse.
|
85
|
+
|
86
|
+
:return: The x_obs_id_2 of this SetBucketCustomedomainResponse.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._x_obs_id_2
|
90
|
+
|
91
|
+
@x_obs_id_2.setter
|
92
|
+
def x_obs_id_2(self, x_obs_id_2):
|
93
|
+
r"""Sets the x_obs_id_2 of this SetBucketCustomedomainResponse.
|
94
|
+
|
95
|
+
:param x_obs_id_2: The x_obs_id_2 of this SetBucketCustomedomainResponse.
|
96
|
+
:type x_obs_id_2: str
|
97
|
+
"""
|
98
|
+
self._x_obs_id_2 = x_obs_id_2
|
99
|
+
|
100
|
+
@property
|
101
|
+
def x_obs_request_id(self):
|
102
|
+
r"""Gets the x_obs_request_id of this SetBucketCustomedomainResponse.
|
103
|
+
|
104
|
+
:return: The x_obs_request_id of this SetBucketCustomedomainResponse.
|
105
|
+
:rtype: str
|
106
|
+
"""
|
107
|
+
return self._x_obs_request_id
|
108
|
+
|
109
|
+
@x_obs_request_id.setter
|
110
|
+
def x_obs_request_id(self, x_obs_request_id):
|
111
|
+
r"""Sets the x_obs_request_id of this SetBucketCustomedomainResponse.
|
112
|
+
|
113
|
+
:param x_obs_request_id: The x_obs_request_id of this SetBucketCustomedomainResponse.
|
114
|
+
:type x_obs_request_id: str
|
115
|
+
"""
|
116
|
+
self._x_obs_request_id = x_obs_request_id
|
117
|
+
|
118
|
+
@property
|
119
|
+
def e_tag(self):
|
120
|
+
r"""Gets the e_tag of this SetBucketCustomedomainResponse.
|
121
|
+
|
122
|
+
:return: The e_tag of this SetBucketCustomedomainResponse.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._e_tag
|
126
|
+
|
127
|
+
@e_tag.setter
|
128
|
+
def e_tag(self, e_tag):
|
129
|
+
r"""Sets the e_tag of this SetBucketCustomedomainResponse.
|
130
|
+
|
131
|
+
:param e_tag: The e_tag of this SetBucketCustomedomainResponse.
|
132
|
+
:type e_tag: str
|
133
|
+
"""
|
134
|
+
self._e_tag = e_tag
|
135
|
+
|
136
|
+
@property
|
137
|
+
def connection(self):
|
138
|
+
r"""Gets the connection of this SetBucketCustomedomainResponse.
|
139
|
+
|
140
|
+
:return: The connection of this SetBucketCustomedomainResponse.
|
141
|
+
:rtype: str
|
142
|
+
"""
|
143
|
+
return self._connection
|
144
|
+
|
145
|
+
@connection.setter
|
146
|
+
def connection(self, connection):
|
147
|
+
r"""Sets the connection of this SetBucketCustomedomainResponse.
|
148
|
+
|
149
|
+
:param connection: The connection of this SetBucketCustomedomainResponse.
|
150
|
+
:type connection: str
|
151
|
+
"""
|
152
|
+
self._connection = connection
|
153
|
+
|
154
|
+
@property
|
155
|
+
def content_length(self):
|
156
|
+
r"""Gets the content_length of this SetBucketCustomedomainResponse.
|
157
|
+
|
158
|
+
:return: The content_length of this SetBucketCustomedomainResponse.
|
159
|
+
:rtype: str
|
160
|
+
"""
|
161
|
+
return self._content_length
|
162
|
+
|
163
|
+
@content_length.setter
|
164
|
+
def content_length(self, content_length):
|
165
|
+
r"""Sets the content_length of this SetBucketCustomedomainResponse.
|
166
|
+
|
167
|
+
:param content_length: The content_length of this SetBucketCustomedomainResponse.
|
168
|
+
:type content_length: str
|
169
|
+
"""
|
170
|
+
self._content_length = content_length
|
171
|
+
|
172
|
+
@property
|
173
|
+
def date(self):
|
174
|
+
r"""Gets the date of this SetBucketCustomedomainResponse.
|
175
|
+
|
176
|
+
:return: The date of this SetBucketCustomedomainResponse.
|
177
|
+
:rtype: str
|
178
|
+
"""
|
179
|
+
return self._date
|
180
|
+
|
181
|
+
@date.setter
|
182
|
+
def date(self, date):
|
183
|
+
r"""Sets the date of this SetBucketCustomedomainResponse.
|
184
|
+
|
185
|
+
:param date: The date of this SetBucketCustomedomainResponse.
|
186
|
+
:type date: str
|
187
|
+
"""
|
188
|
+
self._date = date
|
189
|
+
|
190
|
+
def to_dict(self):
|
191
|
+
"""Returns the model properties as a dict"""
|
192
|
+
result = {}
|
193
|
+
|
194
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
195
|
+
value = getattr(self, attr)
|
196
|
+
if isinstance(value, list):
|
197
|
+
result[attr] = list(map(
|
198
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
199
|
+
value
|
200
|
+
))
|
201
|
+
elif hasattr(value, "to_dict"):
|
202
|
+
result[attr] = value.to_dict()
|
203
|
+
elif isinstance(value, dict):
|
204
|
+
result[attr] = dict(map(
|
205
|
+
lambda item: (item[0], item[1].to_dict())
|
206
|
+
if hasattr(item[1], "to_dict") else item,
|
207
|
+
value.items()
|
208
|
+
))
|
209
|
+
else:
|
210
|
+
if attr in self.sensitive_list:
|
211
|
+
result[attr] = "****"
|
212
|
+
else:
|
213
|
+
result[attr] = value
|
214
|
+
|
215
|
+
return result
|
216
|
+
|
217
|
+
def to_str(self):
|
218
|
+
"""Returns the string representation of the model"""
|
219
|
+
import simplejson as json
|
220
|
+
if six.PY2:
|
221
|
+
import sys
|
222
|
+
reload(sys)
|
223
|
+
sys.setdefaultencoding("utf-8")
|
224
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
225
|
+
|
226
|
+
def __repr__(self):
|
227
|
+
"""For `print`"""
|
228
|
+
return self.to_str()
|
229
|
+
|
230
|
+
def __eq__(self, other):
|
231
|
+
"""Returns true if both objects are equal"""
|
232
|
+
if not isinstance(other, SetBucketCustomedomainResponse):
|
233
|
+
return False
|
234
|
+
|
235
|
+
return self.__dict__ == other.__dict__
|
236
|
+
|
237
|
+
def __ne__(self, other):
|
238
|
+
"""Returns true if both objects are not equal"""
|
239
|
+
return not self == other
|
@@ -0,0 +1,198 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SetBucketNotificationRequest:
|
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 = "SetBucketNotificationRequest"
|
18
|
+
|
19
|
+
sensitive_list = []
|
20
|
+
|
21
|
+
openapi_types = {
|
22
|
+
'date': 'str',
|
23
|
+
'bucket_name': 'str',
|
24
|
+
'notification': 'str',
|
25
|
+
'body': 'SetBucketNotificationRequestBody'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'date': 'Date',
|
30
|
+
'bucket_name': 'bucket_name',
|
31
|
+
'notification': 'notification',
|
32
|
+
'body': 'body'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, date=None, bucket_name=None, notification=None, body=None):
|
36
|
+
r"""SetBucketNotificationRequest
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
: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.
|
41
|
+
:type date: str
|
42
|
+
:param bucket_name: Name of the requested bucket
|
43
|
+
:type bucket_name: str
|
44
|
+
:param notification: Indicates the notification configuration API of the bucket.
|
45
|
+
:type notification: str
|
46
|
+
:param body: Body of the SetBucketNotificationRequest
|
47
|
+
:type body: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequestBody`
|
48
|
+
"""
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
self._date = None
|
53
|
+
self._bucket_name = None
|
54
|
+
self._notification = None
|
55
|
+
self._body = None
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
if date is not None:
|
59
|
+
self.date = date
|
60
|
+
self.bucket_name = bucket_name
|
61
|
+
self.notification = notification
|
62
|
+
if body is not None:
|
63
|
+
self.body = body
|
64
|
+
|
65
|
+
@property
|
66
|
+
def date(self):
|
67
|
+
r"""Gets the date of this SetBucketNotificationRequest.
|
68
|
+
|
69
|
+
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.
|
70
|
+
|
71
|
+
:return: The date of this SetBucketNotificationRequest.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._date
|
75
|
+
|
76
|
+
@date.setter
|
77
|
+
def date(self, date):
|
78
|
+
r"""Sets the date of this SetBucketNotificationRequest.
|
79
|
+
|
80
|
+
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.
|
81
|
+
|
82
|
+
:param date: The date of this SetBucketNotificationRequest.
|
83
|
+
:type date: str
|
84
|
+
"""
|
85
|
+
self._date = date
|
86
|
+
|
87
|
+
@property
|
88
|
+
def bucket_name(self):
|
89
|
+
r"""Gets the bucket_name of this SetBucketNotificationRequest.
|
90
|
+
|
91
|
+
Name of the requested bucket
|
92
|
+
|
93
|
+
:return: The bucket_name of this SetBucketNotificationRequest.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._bucket_name
|
97
|
+
|
98
|
+
@bucket_name.setter
|
99
|
+
def bucket_name(self, bucket_name):
|
100
|
+
r"""Sets the bucket_name of this SetBucketNotificationRequest.
|
101
|
+
|
102
|
+
Name of the requested bucket
|
103
|
+
|
104
|
+
:param bucket_name: The bucket_name of this SetBucketNotificationRequest.
|
105
|
+
:type bucket_name: str
|
106
|
+
"""
|
107
|
+
self._bucket_name = bucket_name
|
108
|
+
|
109
|
+
@property
|
110
|
+
def notification(self):
|
111
|
+
r"""Gets the notification of this SetBucketNotificationRequest.
|
112
|
+
|
113
|
+
Indicates the notification configuration API of the bucket.
|
114
|
+
|
115
|
+
:return: The notification of this SetBucketNotificationRequest.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._notification
|
119
|
+
|
120
|
+
@notification.setter
|
121
|
+
def notification(self, notification):
|
122
|
+
r"""Sets the notification of this SetBucketNotificationRequest.
|
123
|
+
|
124
|
+
Indicates the notification configuration API of the bucket.
|
125
|
+
|
126
|
+
:param notification: The notification of this SetBucketNotificationRequest.
|
127
|
+
:type notification: str
|
128
|
+
"""
|
129
|
+
self._notification = notification
|
130
|
+
|
131
|
+
@property
|
132
|
+
def body(self):
|
133
|
+
r"""Gets the body of this SetBucketNotificationRequest.
|
134
|
+
|
135
|
+
:return: The body of this SetBucketNotificationRequest.
|
136
|
+
:rtype: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequestBody`
|
137
|
+
"""
|
138
|
+
return self._body
|
139
|
+
|
140
|
+
@body.setter
|
141
|
+
def body(self, body):
|
142
|
+
r"""Sets the body of this SetBucketNotificationRequest.
|
143
|
+
|
144
|
+
:param body: The body of this SetBucketNotificationRequest.
|
145
|
+
:type body: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequestBody`
|
146
|
+
"""
|
147
|
+
self._body = body
|
148
|
+
|
149
|
+
def to_dict(self):
|
150
|
+
"""Returns the model properties as a dict"""
|
151
|
+
result = {}
|
152
|
+
|
153
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
154
|
+
value = getattr(self, attr)
|
155
|
+
if isinstance(value, list):
|
156
|
+
result[attr] = list(map(
|
157
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
158
|
+
value
|
159
|
+
))
|
160
|
+
elif hasattr(value, "to_dict"):
|
161
|
+
result[attr] = value.to_dict()
|
162
|
+
elif isinstance(value, dict):
|
163
|
+
result[attr] = dict(map(
|
164
|
+
lambda item: (item[0], item[1].to_dict())
|
165
|
+
if hasattr(item[1], "to_dict") else item,
|
166
|
+
value.items()
|
167
|
+
))
|
168
|
+
else:
|
169
|
+
if attr in self.sensitive_list:
|
170
|
+
result[attr] = "****"
|
171
|
+
else:
|
172
|
+
result[attr] = value
|
173
|
+
|
174
|
+
return result
|
175
|
+
|
176
|
+
def to_str(self):
|
177
|
+
"""Returns the string representation of the model"""
|
178
|
+
import simplejson as json
|
179
|
+
if six.PY2:
|
180
|
+
import sys
|
181
|
+
reload(sys)
|
182
|
+
sys.setdefaultencoding("utf-8")
|
183
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
184
|
+
|
185
|
+
def __repr__(self):
|
186
|
+
"""For `print`"""
|
187
|
+
return self.to_str()
|
188
|
+
|
189
|
+
def __eq__(self, other):
|
190
|
+
"""Returns true if both objects are equal"""
|
191
|
+
if not isinstance(other, SetBucketNotificationRequest):
|
192
|
+
return False
|
193
|
+
|
194
|
+
return self.__dict__ == other.__dict__
|
195
|
+
|
196
|
+
def __ne__(self, other):
|
197
|
+
"""Returns true if both objects are not equal"""
|
198
|
+
return not self == other
|