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