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,138 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SetBucketAclRequestBody:
|
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 = "AccessControlPolicy"
|
18
|
+
|
19
|
+
sensitive_list = []
|
20
|
+
|
21
|
+
openapi_types = {
|
22
|
+
'owner': 'Owner',
|
23
|
+
'access_control_list': 'AccessControlList'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'owner': 'Owner',
|
28
|
+
'access_control_list': 'AccessControlList'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, owner=None, access_control_list=None):
|
32
|
+
r"""SetBucketAclRequestBody
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param owner:
|
37
|
+
:type owner: :class:`huaweicloudsdkobs.v1.Owner`
|
38
|
+
:param access_control_list:
|
39
|
+
:type access_control_list: :class:`huaweicloudsdkobs.v1.AccessControlList`
|
40
|
+
"""
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
self._owner = None
|
45
|
+
self._access_control_list = None
|
46
|
+
self.discriminator = None
|
47
|
+
|
48
|
+
if owner is not None:
|
49
|
+
self.owner = owner
|
50
|
+
if access_control_list is not None:
|
51
|
+
self.access_control_list = access_control_list
|
52
|
+
|
53
|
+
@property
|
54
|
+
def owner(self):
|
55
|
+
r"""Gets the owner of this SetBucketAclRequestBody.
|
56
|
+
|
57
|
+
:return: The owner of this SetBucketAclRequestBody.
|
58
|
+
:rtype: :class:`huaweicloudsdkobs.v1.Owner`
|
59
|
+
"""
|
60
|
+
return self._owner
|
61
|
+
|
62
|
+
@owner.setter
|
63
|
+
def owner(self, owner):
|
64
|
+
r"""Sets the owner of this SetBucketAclRequestBody.
|
65
|
+
|
66
|
+
:param owner: The owner of this SetBucketAclRequestBody.
|
67
|
+
:type owner: :class:`huaweicloudsdkobs.v1.Owner`
|
68
|
+
"""
|
69
|
+
self._owner = owner
|
70
|
+
|
71
|
+
@property
|
72
|
+
def access_control_list(self):
|
73
|
+
r"""Gets the access_control_list of this SetBucketAclRequestBody.
|
74
|
+
|
75
|
+
:return: The access_control_list of this SetBucketAclRequestBody.
|
76
|
+
:rtype: :class:`huaweicloudsdkobs.v1.AccessControlList`
|
77
|
+
"""
|
78
|
+
return self._access_control_list
|
79
|
+
|
80
|
+
@access_control_list.setter
|
81
|
+
def access_control_list(self, access_control_list):
|
82
|
+
r"""Sets the access_control_list of this SetBucketAclRequestBody.
|
83
|
+
|
84
|
+
:param access_control_list: The access_control_list of this SetBucketAclRequestBody.
|
85
|
+
:type access_control_list: :class:`huaweicloudsdkobs.v1.AccessControlList`
|
86
|
+
"""
|
87
|
+
self._access_control_list = access_control_list
|
88
|
+
|
89
|
+
def to_dict(self):
|
90
|
+
"""Returns the model properties as a dict"""
|
91
|
+
result = {}
|
92
|
+
|
93
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
94
|
+
value = getattr(self, attr)
|
95
|
+
if isinstance(value, list):
|
96
|
+
result[attr] = list(map(
|
97
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
98
|
+
value
|
99
|
+
))
|
100
|
+
elif hasattr(value, "to_dict"):
|
101
|
+
result[attr] = value.to_dict()
|
102
|
+
elif isinstance(value, dict):
|
103
|
+
result[attr] = dict(map(
|
104
|
+
lambda item: (item[0], item[1].to_dict())
|
105
|
+
if hasattr(item[1], "to_dict") else item,
|
106
|
+
value.items()
|
107
|
+
))
|
108
|
+
else:
|
109
|
+
if attr in self.sensitive_list:
|
110
|
+
result[attr] = "****"
|
111
|
+
else:
|
112
|
+
result[attr] = value
|
113
|
+
|
114
|
+
return result
|
115
|
+
|
116
|
+
def to_str(self):
|
117
|
+
"""Returns the string representation of the model"""
|
118
|
+
import simplejson as json
|
119
|
+
if six.PY2:
|
120
|
+
import sys
|
121
|
+
reload(sys)
|
122
|
+
sys.setdefaultencoding("utf-8")
|
123
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
124
|
+
|
125
|
+
def __repr__(self):
|
126
|
+
"""For `print`"""
|
127
|
+
return self.to_str()
|
128
|
+
|
129
|
+
def __eq__(self, other):
|
130
|
+
"""Returns true if both objects are equal"""
|
131
|
+
if not isinstance(other, SetBucketAclRequestBody):
|
132
|
+
return False
|
133
|
+
|
134
|
+
return self.__dict__ == other.__dict__
|
135
|
+
|
136
|
+
def __ne__(self, other):
|
137
|
+
"""Returns true if both objects are not equal"""
|
138
|
+
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 SetBucketAclResponse(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 = "SetBucketAclResponse"
|
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"""SetBucketAclResponse
|
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(SetBucketAclResponse, 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 SetBucketAclResponse.
|
85
|
+
|
86
|
+
:return: The x_obs_id_2 of this SetBucketAclResponse.
|
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 SetBucketAclResponse.
|
94
|
+
|
95
|
+
:param x_obs_id_2: The x_obs_id_2 of this SetBucketAclResponse.
|
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 SetBucketAclResponse.
|
103
|
+
|
104
|
+
:return: The x_obs_request_id of this SetBucketAclResponse.
|
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 SetBucketAclResponse.
|
112
|
+
|
113
|
+
:param x_obs_request_id: The x_obs_request_id of this SetBucketAclResponse.
|
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 SetBucketAclResponse.
|
121
|
+
|
122
|
+
:return: The e_tag of this SetBucketAclResponse.
|
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 SetBucketAclResponse.
|
130
|
+
|
131
|
+
:param e_tag: The e_tag of this SetBucketAclResponse.
|
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 SetBucketAclResponse.
|
139
|
+
|
140
|
+
:return: The connection of this SetBucketAclResponse.
|
141
|
+
:rtype: str
|
142
|
+
"""
|
143
|
+
return self._connection
|
144
|
+
|
145
|
+
@connection.setter
|
146
|
+
def connection(self, connection):
|
147
|
+
r"""Sets the connection of this SetBucketAclResponse.
|
148
|
+
|
149
|
+
:param connection: The connection of this SetBucketAclResponse.
|
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 SetBucketAclResponse.
|
157
|
+
|
158
|
+
:return: The content_length of this SetBucketAclResponse.
|
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 SetBucketAclResponse.
|
166
|
+
|
167
|
+
:param content_length: The content_length of this SetBucketAclResponse.
|
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 SetBucketAclResponse.
|
175
|
+
|
176
|
+
:return: The date of this SetBucketAclResponse.
|
177
|
+
:rtype: str
|
178
|
+
"""
|
179
|
+
return self._date
|
180
|
+
|
181
|
+
@date.setter
|
182
|
+
def date(self, date):
|
183
|
+
r"""Sets the date of this SetBucketAclResponse.
|
184
|
+
|
185
|
+
:param date: The date of this SetBucketAclResponse.
|
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, SetBucketAclResponse):
|
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,230 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SetBucketCustomDomainBody:
|
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 = "CustomDomainConfiguration"
|
18
|
+
|
19
|
+
sensitive_list = []
|
20
|
+
|
21
|
+
openapi_types = {
|
22
|
+
'name': 'str',
|
23
|
+
'certificate_id': 'str',
|
24
|
+
'certificate': 'str',
|
25
|
+
'certificate_chain': 'str',
|
26
|
+
'private_key': 'str'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'name': 'Name',
|
31
|
+
'certificate_id': 'CertificateId',
|
32
|
+
'certificate': 'Certificate',
|
33
|
+
'certificate_chain': 'CertificateChain',
|
34
|
+
'private_key': 'PrivateKey'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, name=None, certificate_id=None, certificate=None, certificate_chain=None, private_key=None):
|
38
|
+
r"""SetBucketCustomDomainBody
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param name: Certificate name, a string of 3 to 63 characters.
|
43
|
+
:type name: str
|
44
|
+
:param certificate_id: Certificate id.
|
45
|
+
:type certificate_id: str
|
46
|
+
:param certificate: Indicates the certificate content, including the intermediate certificate and root certificate. If the certificate_chain field is set to a certificate chain, this field uses only the certificate itself. The carriage return line feed must be replaced with the escape character \\n or \\r\\n.
|
47
|
+
:type certificate: str
|
48
|
+
:param certificate_chain: Indicates the certificate content, including the intermediate certificate and root certificate. If the certificate_chain field is set to a certificate chain, this field uses only the certificate itself. The carriage return line feed must be replaced with the escape character \\n or \\r\\n.
|
49
|
+
:type certificate_chain: str
|
50
|
+
:param private_key: Private key of the certificate. The private key with password protection cannot be uploaded. The carriage return line feed must be replaced with the escape character \\n or \\r\\n.
|
51
|
+
:type private_key: str
|
52
|
+
"""
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
self._name = None
|
57
|
+
self._certificate_id = None
|
58
|
+
self._certificate = None
|
59
|
+
self._certificate_chain = None
|
60
|
+
self._private_key = None
|
61
|
+
self.discriminator = None
|
62
|
+
|
63
|
+
self.name = name
|
64
|
+
if certificate_id is not None:
|
65
|
+
self.certificate_id = certificate_id
|
66
|
+
self.certificate = certificate
|
67
|
+
if certificate_chain is not None:
|
68
|
+
self.certificate_chain = certificate_chain
|
69
|
+
self.private_key = private_key
|
70
|
+
|
71
|
+
@property
|
72
|
+
def name(self):
|
73
|
+
r"""Gets the name of this SetBucketCustomDomainBody.
|
74
|
+
|
75
|
+
Certificate name, a string of 3 to 63 characters.
|
76
|
+
|
77
|
+
:return: The name of this SetBucketCustomDomainBody.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._name
|
81
|
+
|
82
|
+
@name.setter
|
83
|
+
def name(self, name):
|
84
|
+
r"""Sets the name of this SetBucketCustomDomainBody.
|
85
|
+
|
86
|
+
Certificate name, a string of 3 to 63 characters.
|
87
|
+
|
88
|
+
:param name: The name of this SetBucketCustomDomainBody.
|
89
|
+
:type name: str
|
90
|
+
"""
|
91
|
+
self._name = name
|
92
|
+
|
93
|
+
@property
|
94
|
+
def certificate_id(self):
|
95
|
+
r"""Gets the certificate_id of this SetBucketCustomDomainBody.
|
96
|
+
|
97
|
+
Certificate id.
|
98
|
+
|
99
|
+
:return: The certificate_id of this SetBucketCustomDomainBody.
|
100
|
+
:rtype: str
|
101
|
+
"""
|
102
|
+
return self._certificate_id
|
103
|
+
|
104
|
+
@certificate_id.setter
|
105
|
+
def certificate_id(self, certificate_id):
|
106
|
+
r"""Sets the certificate_id of this SetBucketCustomDomainBody.
|
107
|
+
|
108
|
+
Certificate id.
|
109
|
+
|
110
|
+
:param certificate_id: The certificate_id of this SetBucketCustomDomainBody.
|
111
|
+
:type certificate_id: str
|
112
|
+
"""
|
113
|
+
self._certificate_id = certificate_id
|
114
|
+
|
115
|
+
@property
|
116
|
+
def certificate(self):
|
117
|
+
r"""Gets the certificate of this SetBucketCustomDomainBody.
|
118
|
+
|
119
|
+
Indicates the certificate content, including the intermediate certificate and root certificate. If the certificate_chain field is set to a certificate chain, this field uses only the certificate itself. The carriage return line feed must be replaced with the escape character \\n or \\r\\n.
|
120
|
+
|
121
|
+
:return: The certificate of this SetBucketCustomDomainBody.
|
122
|
+
:rtype: str
|
123
|
+
"""
|
124
|
+
return self._certificate
|
125
|
+
|
126
|
+
@certificate.setter
|
127
|
+
def certificate(self, certificate):
|
128
|
+
r"""Sets the certificate of this SetBucketCustomDomainBody.
|
129
|
+
|
130
|
+
Indicates the certificate content, including the intermediate certificate and root certificate. If the certificate_chain field is set to a certificate chain, this field uses only the certificate itself. The carriage return line feed must be replaced with the escape character \\n or \\r\\n.
|
131
|
+
|
132
|
+
:param certificate: The certificate of this SetBucketCustomDomainBody.
|
133
|
+
:type certificate: str
|
134
|
+
"""
|
135
|
+
self._certificate = certificate
|
136
|
+
|
137
|
+
@property
|
138
|
+
def certificate_chain(self):
|
139
|
+
r"""Gets the certificate_chain of this SetBucketCustomDomainBody.
|
140
|
+
|
141
|
+
Indicates the certificate content, including the intermediate certificate and root certificate. If the certificate_chain field is set to a certificate chain, this field uses only the certificate itself. The carriage return line feed must be replaced with the escape character \\n or \\r\\n.
|
142
|
+
|
143
|
+
:return: The certificate_chain of this SetBucketCustomDomainBody.
|
144
|
+
:rtype: str
|
145
|
+
"""
|
146
|
+
return self._certificate_chain
|
147
|
+
|
148
|
+
@certificate_chain.setter
|
149
|
+
def certificate_chain(self, certificate_chain):
|
150
|
+
r"""Sets the certificate_chain of this SetBucketCustomDomainBody.
|
151
|
+
|
152
|
+
Indicates the certificate content, including the intermediate certificate and root certificate. If the certificate_chain field is set to a certificate chain, this field uses only the certificate itself. The carriage return line feed must be replaced with the escape character \\n or \\r\\n.
|
153
|
+
|
154
|
+
:param certificate_chain: The certificate_chain of this SetBucketCustomDomainBody.
|
155
|
+
:type certificate_chain: str
|
156
|
+
"""
|
157
|
+
self._certificate_chain = certificate_chain
|
158
|
+
|
159
|
+
@property
|
160
|
+
def private_key(self):
|
161
|
+
r"""Gets the private_key of this SetBucketCustomDomainBody.
|
162
|
+
|
163
|
+
Private key of the certificate. The private key with password protection cannot be uploaded. The carriage return line feed must be replaced with the escape character \\n or \\r\\n.
|
164
|
+
|
165
|
+
:return: The private_key of this SetBucketCustomDomainBody.
|
166
|
+
:rtype: str
|
167
|
+
"""
|
168
|
+
return self._private_key
|
169
|
+
|
170
|
+
@private_key.setter
|
171
|
+
def private_key(self, private_key):
|
172
|
+
r"""Sets the private_key of this SetBucketCustomDomainBody.
|
173
|
+
|
174
|
+
Private key of the certificate. The private key with password protection cannot be uploaded. The carriage return line feed must be replaced with the escape character \\n or \\r\\n.
|
175
|
+
|
176
|
+
:param private_key: The private_key of this SetBucketCustomDomainBody.
|
177
|
+
:type private_key: str
|
178
|
+
"""
|
179
|
+
self._private_key = private_key
|
180
|
+
|
181
|
+
def to_dict(self):
|
182
|
+
"""Returns the model properties as a dict"""
|
183
|
+
result = {}
|
184
|
+
|
185
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
186
|
+
value = getattr(self, attr)
|
187
|
+
if isinstance(value, list):
|
188
|
+
result[attr] = list(map(
|
189
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
190
|
+
value
|
191
|
+
))
|
192
|
+
elif hasattr(value, "to_dict"):
|
193
|
+
result[attr] = value.to_dict()
|
194
|
+
elif isinstance(value, dict):
|
195
|
+
result[attr] = dict(map(
|
196
|
+
lambda item: (item[0], item[1].to_dict())
|
197
|
+
if hasattr(item[1], "to_dict") else item,
|
198
|
+
value.items()
|
199
|
+
))
|
200
|
+
else:
|
201
|
+
if attr in self.sensitive_list:
|
202
|
+
result[attr] = "****"
|
203
|
+
else:
|
204
|
+
result[attr] = value
|
205
|
+
|
206
|
+
return result
|
207
|
+
|
208
|
+
def to_str(self):
|
209
|
+
"""Returns the string representation of the model"""
|
210
|
+
import simplejson as json
|
211
|
+
if six.PY2:
|
212
|
+
import sys
|
213
|
+
reload(sys)
|
214
|
+
sys.setdefaultencoding("utf-8")
|
215
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
216
|
+
|
217
|
+
def __repr__(self):
|
218
|
+
"""For `print`"""
|
219
|
+
return self.to_str()
|
220
|
+
|
221
|
+
def __eq__(self, other):
|
222
|
+
"""Returns true if both objects are equal"""
|
223
|
+
if not isinstance(other, SetBucketCustomDomainBody):
|
224
|
+
return False
|
225
|
+
|
226
|
+
return self.__dict__ == other.__dict__
|
227
|
+
|
228
|
+
def __ne__(self, other):
|
229
|
+
"""Returns true if both objects are not equal"""
|
230
|
+
return not self == other
|