huaweicloudsdkgaussdbforopengauss 3.1.127__py2.py3-none-any.whl → 3.1.128__py2.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.
- huaweicloudsdkgaussdbforopengauss/v3/__init__.py +50 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +1315 -46
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +1315 -46
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +50 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_response.py +232 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/can_be_rollbacked_hotfix_detail.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/can_be_upgraded_hotfix_detail.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/configurations_result.py +339 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request_body.py +722 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_response.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_result.py +544 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_instance_datastore_option.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/datastore_result.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles.py +201 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info_result.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_request.py +318 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_result.py +372 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_request.py +405 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_request.py +201 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_request.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_response.py +112 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_request.py +260 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_request.py +173 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_request.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_request.py +259 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result_v1.py +566 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_response.py +232 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_response.py +319 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_request.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_response.py +348 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_response.py +373 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +18 -10
- huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_request.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_response.py +203 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/RECORD +60 -10
- {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.127.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,201 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListDatabaseRolesRequest:
|
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
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'x_language': 'str',
|
21
|
+
'instance_id': 'str',
|
22
|
+
'offset': 'int',
|
23
|
+
'limit': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'x_language': 'X-Language',
|
28
|
+
'instance_id': 'instance_id',
|
29
|
+
'offset': 'offset',
|
30
|
+
'limit': 'limit'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, x_language=None, instance_id=None, offset=None, limit=None):
|
34
|
+
"""ListDatabaseRolesRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param x_language: 语言
|
39
|
+
:type x_language: str
|
40
|
+
:param instance_id: 实例ID。
|
41
|
+
:type instance_id: str
|
42
|
+
:param offset: 偏移量表示从此偏移量开始查询, offset大于等于0,默认0。
|
43
|
+
:type offset: int
|
44
|
+
:param limit: 每页显示的条目数量,取值范围[1, 100],默认10。
|
45
|
+
:type limit: int
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._x_language = None
|
51
|
+
self._instance_id = None
|
52
|
+
self._offset = None
|
53
|
+
self._limit = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if x_language is not None:
|
57
|
+
self.x_language = x_language
|
58
|
+
self.instance_id = instance_id
|
59
|
+
if offset is not None:
|
60
|
+
self.offset = offset
|
61
|
+
if limit is not None:
|
62
|
+
self.limit = limit
|
63
|
+
|
64
|
+
@property
|
65
|
+
def x_language(self):
|
66
|
+
"""Gets the x_language of this ListDatabaseRolesRequest.
|
67
|
+
|
68
|
+
语言
|
69
|
+
|
70
|
+
:return: The x_language of this ListDatabaseRolesRequest.
|
71
|
+
:rtype: str
|
72
|
+
"""
|
73
|
+
return self._x_language
|
74
|
+
|
75
|
+
@x_language.setter
|
76
|
+
def x_language(self, x_language):
|
77
|
+
"""Sets the x_language of this ListDatabaseRolesRequest.
|
78
|
+
|
79
|
+
语言
|
80
|
+
|
81
|
+
:param x_language: The x_language of this ListDatabaseRolesRequest.
|
82
|
+
:type x_language: str
|
83
|
+
"""
|
84
|
+
self._x_language = x_language
|
85
|
+
|
86
|
+
@property
|
87
|
+
def instance_id(self):
|
88
|
+
"""Gets the instance_id of this ListDatabaseRolesRequest.
|
89
|
+
|
90
|
+
实例ID。
|
91
|
+
|
92
|
+
:return: The instance_id of this ListDatabaseRolesRequest.
|
93
|
+
:rtype: str
|
94
|
+
"""
|
95
|
+
return self._instance_id
|
96
|
+
|
97
|
+
@instance_id.setter
|
98
|
+
def instance_id(self, instance_id):
|
99
|
+
"""Sets the instance_id of this ListDatabaseRolesRequest.
|
100
|
+
|
101
|
+
实例ID。
|
102
|
+
|
103
|
+
:param instance_id: The instance_id of this ListDatabaseRolesRequest.
|
104
|
+
:type instance_id: str
|
105
|
+
"""
|
106
|
+
self._instance_id = instance_id
|
107
|
+
|
108
|
+
@property
|
109
|
+
def offset(self):
|
110
|
+
"""Gets the offset of this ListDatabaseRolesRequest.
|
111
|
+
|
112
|
+
偏移量表示从此偏移量开始查询, offset大于等于0,默认0。
|
113
|
+
|
114
|
+
:return: The offset of this ListDatabaseRolesRequest.
|
115
|
+
:rtype: int
|
116
|
+
"""
|
117
|
+
return self._offset
|
118
|
+
|
119
|
+
@offset.setter
|
120
|
+
def offset(self, offset):
|
121
|
+
"""Sets the offset of this ListDatabaseRolesRequest.
|
122
|
+
|
123
|
+
偏移量表示从此偏移量开始查询, offset大于等于0,默认0。
|
124
|
+
|
125
|
+
:param offset: The offset of this ListDatabaseRolesRequest.
|
126
|
+
:type offset: int
|
127
|
+
"""
|
128
|
+
self._offset = offset
|
129
|
+
|
130
|
+
@property
|
131
|
+
def limit(self):
|
132
|
+
"""Gets the limit of this ListDatabaseRolesRequest.
|
133
|
+
|
134
|
+
每页显示的条目数量,取值范围[1, 100],默认10。
|
135
|
+
|
136
|
+
:return: The limit of this ListDatabaseRolesRequest.
|
137
|
+
:rtype: int
|
138
|
+
"""
|
139
|
+
return self._limit
|
140
|
+
|
141
|
+
@limit.setter
|
142
|
+
def limit(self, limit):
|
143
|
+
"""Sets the limit of this ListDatabaseRolesRequest.
|
144
|
+
|
145
|
+
每页显示的条目数量,取值范围[1, 100],默认10。
|
146
|
+
|
147
|
+
:param limit: The limit of this ListDatabaseRolesRequest.
|
148
|
+
:type limit: int
|
149
|
+
"""
|
150
|
+
self._limit = limit
|
151
|
+
|
152
|
+
def to_dict(self):
|
153
|
+
"""Returns the model properties as a dict"""
|
154
|
+
result = {}
|
155
|
+
|
156
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
157
|
+
value = getattr(self, attr)
|
158
|
+
if isinstance(value, list):
|
159
|
+
result[attr] = list(map(
|
160
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
161
|
+
value
|
162
|
+
))
|
163
|
+
elif hasattr(value, "to_dict"):
|
164
|
+
result[attr] = value.to_dict()
|
165
|
+
elif isinstance(value, dict):
|
166
|
+
result[attr] = dict(map(
|
167
|
+
lambda item: (item[0], item[1].to_dict())
|
168
|
+
if hasattr(item[1], "to_dict") else item,
|
169
|
+
value.items()
|
170
|
+
))
|
171
|
+
else:
|
172
|
+
if attr in self.sensitive_list:
|
173
|
+
result[attr] = "****"
|
174
|
+
else:
|
175
|
+
result[attr] = value
|
176
|
+
|
177
|
+
return result
|
178
|
+
|
179
|
+
def to_str(self):
|
180
|
+
"""Returns the string representation of the model"""
|
181
|
+
import simplejson as json
|
182
|
+
if six.PY2:
|
183
|
+
import sys
|
184
|
+
reload(sys)
|
185
|
+
sys.setdefaultencoding("utf-8")
|
186
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
187
|
+
|
188
|
+
def __repr__(self):
|
189
|
+
"""For `print`"""
|
190
|
+
return self.to_str()
|
191
|
+
|
192
|
+
def __eq__(self, other):
|
193
|
+
"""Returns true if both objects are equal"""
|
194
|
+
if not isinstance(other, ListDatabaseRolesRequest):
|
195
|
+
return False
|
196
|
+
|
197
|
+
return self.__dict__ == other.__dict__
|
198
|
+
|
199
|
+
def __ne__(self, other):
|
200
|
+
"""Returns true if both objects are not equal"""
|
201
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
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 ListDatabaseRolesResponse(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
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'roles': 'list[GaussDBListDatabaseRoles]',
|
22
|
+
'total_count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'roles': 'roles',
|
27
|
+
'total_count': 'total_count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, roles=None, total_count=None):
|
31
|
+
"""ListDatabaseRolesResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param roles: 列表中每个元素表示一个用户/角色。
|
36
|
+
:type roles: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBListDatabaseRoles`]
|
37
|
+
:param total_count: 数据库用户/角色总数。
|
38
|
+
:type total_count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListDatabaseRolesResponse, self).__init__()
|
42
|
+
|
43
|
+
self._roles = None
|
44
|
+
self._total_count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if roles is not None:
|
48
|
+
self.roles = roles
|
49
|
+
if total_count is not None:
|
50
|
+
self.total_count = total_count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def roles(self):
|
54
|
+
"""Gets the roles of this ListDatabaseRolesResponse.
|
55
|
+
|
56
|
+
列表中每个元素表示一个用户/角色。
|
57
|
+
|
58
|
+
:return: The roles of this ListDatabaseRolesResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBListDatabaseRoles`]
|
60
|
+
"""
|
61
|
+
return self._roles
|
62
|
+
|
63
|
+
@roles.setter
|
64
|
+
def roles(self, roles):
|
65
|
+
"""Sets the roles of this ListDatabaseRolesResponse.
|
66
|
+
|
67
|
+
列表中每个元素表示一个用户/角色。
|
68
|
+
|
69
|
+
:param roles: The roles of this ListDatabaseRolesResponse.
|
70
|
+
:type roles: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBListDatabaseRoles`]
|
71
|
+
"""
|
72
|
+
self._roles = roles
|
73
|
+
|
74
|
+
@property
|
75
|
+
def total_count(self):
|
76
|
+
"""Gets the total_count of this ListDatabaseRolesResponse.
|
77
|
+
|
78
|
+
数据库用户/角色总数。
|
79
|
+
|
80
|
+
:return: The total_count of this ListDatabaseRolesResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._total_count
|
84
|
+
|
85
|
+
@total_count.setter
|
86
|
+
def total_count(self, total_count):
|
87
|
+
"""Sets the total_count of this ListDatabaseRolesResponse.
|
88
|
+
|
89
|
+
数据库用户/角色总数。
|
90
|
+
|
91
|
+
:param total_count: The total_count of this ListDatabaseRolesResponse.
|
92
|
+
:type total_count: int
|
93
|
+
"""
|
94
|
+
self._total_count = total_count
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ListDatabaseRolesResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -0,0 +1,115 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListDatastoresDetailsRequest:
|
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
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'x_language': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'x_language': 'X-Language'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, x_language=None):
|
28
|
+
"""ListDatastoresDetailsRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param x_language: 语言
|
33
|
+
:type x_language: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._x_language = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if x_language is not None:
|
42
|
+
self.x_language = x_language
|
43
|
+
|
44
|
+
@property
|
45
|
+
def x_language(self):
|
46
|
+
"""Gets the x_language of this ListDatastoresDetailsRequest.
|
47
|
+
|
48
|
+
语言
|
49
|
+
|
50
|
+
:return: The x_language of this ListDatastoresDetailsRequest.
|
51
|
+
:rtype: str
|
52
|
+
"""
|
53
|
+
return self._x_language
|
54
|
+
|
55
|
+
@x_language.setter
|
56
|
+
def x_language(self, x_language):
|
57
|
+
"""Sets the x_language of this ListDatastoresDetailsRequest.
|
58
|
+
|
59
|
+
语言
|
60
|
+
|
61
|
+
:param x_language: The x_language of this ListDatastoresDetailsRequest.
|
62
|
+
:type x_language: str
|
63
|
+
"""
|
64
|
+
self._x_language = x_language
|
65
|
+
|
66
|
+
def to_dict(self):
|
67
|
+
"""Returns the model properties as a dict"""
|
68
|
+
result = {}
|
69
|
+
|
70
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
71
|
+
value = getattr(self, attr)
|
72
|
+
if isinstance(value, list):
|
73
|
+
result[attr] = list(map(
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
75
|
+
value
|
76
|
+
))
|
77
|
+
elif hasattr(value, "to_dict"):
|
78
|
+
result[attr] = value.to_dict()
|
79
|
+
elif isinstance(value, dict):
|
80
|
+
result[attr] = dict(map(
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
83
|
+
value.items()
|
84
|
+
))
|
85
|
+
else:
|
86
|
+
if attr in self.sensitive_list:
|
87
|
+
result[attr] = "****"
|
88
|
+
else:
|
89
|
+
result[attr] = value
|
90
|
+
|
91
|
+
return result
|
92
|
+
|
93
|
+
def to_str(self):
|
94
|
+
"""Returns the string representation of the model"""
|
95
|
+
import simplejson as json
|
96
|
+
if six.PY2:
|
97
|
+
import sys
|
98
|
+
reload(sys)
|
99
|
+
sys.setdefaultencoding("utf-8")
|
100
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
101
|
+
|
102
|
+
def __repr__(self):
|
103
|
+
"""For `print`"""
|
104
|
+
return self.to_str()
|
105
|
+
|
106
|
+
def __eq__(self, other):
|
107
|
+
"""Returns true if both objects are equal"""
|
108
|
+
if not isinstance(other, ListDatastoresDetailsRequest):
|
109
|
+
return False
|
110
|
+
|
111
|
+
return self.__dict__ == other.__dict__
|
112
|
+
|
113
|
+
def __ne__(self, other):
|
114
|
+
"""Returns true if both objects are not equal"""
|
115
|
+
return not self == other
|
@@ -0,0 +1,112 @@
|
|
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 ListDatastoresDetailsResponse(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
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'datastores': 'list[DatastoresResult]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'datastores': 'datastores'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, datastores=None):
|
29
|
+
"""ListDatastoresDetailsResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param datastores:
|
34
|
+
:type datastores: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoresResult`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ListDatastoresDetailsResponse, self).__init__()
|
38
|
+
|
39
|
+
self._datastores = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if datastores is not None:
|
43
|
+
self.datastores = datastores
|
44
|
+
|
45
|
+
@property
|
46
|
+
def datastores(self):
|
47
|
+
"""Gets the datastores of this ListDatastoresDetailsResponse.
|
48
|
+
|
49
|
+
:return: The datastores of this ListDatastoresDetailsResponse.
|
50
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoresResult`]
|
51
|
+
"""
|
52
|
+
return self._datastores
|
53
|
+
|
54
|
+
@datastores.setter
|
55
|
+
def datastores(self, datastores):
|
56
|
+
"""Sets the datastores of this ListDatastoresDetailsResponse.
|
57
|
+
|
58
|
+
:param datastores: The datastores of this ListDatastoresDetailsResponse.
|
59
|
+
:type datastores: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.DatastoresResult`]
|
60
|
+
"""
|
61
|
+
self._datastores = datastores
|
62
|
+
|
63
|
+
def to_dict(self):
|
64
|
+
"""Returns the model properties as a dict"""
|
65
|
+
result = {}
|
66
|
+
|
67
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
68
|
+
value = getattr(self, attr)
|
69
|
+
if isinstance(value, list):
|
70
|
+
result[attr] = list(map(
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
72
|
+
value
|
73
|
+
))
|
74
|
+
elif hasattr(value, "to_dict"):
|
75
|
+
result[attr] = value.to_dict()
|
76
|
+
elif isinstance(value, dict):
|
77
|
+
result[attr] = dict(map(
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
80
|
+
value.items()
|
81
|
+
))
|
82
|
+
else:
|
83
|
+
if attr in self.sensitive_list:
|
84
|
+
result[attr] = "****"
|
85
|
+
else:
|
86
|
+
result[attr] = value
|
87
|
+
|
88
|
+
return result
|
89
|
+
|
90
|
+
def to_str(self):
|
91
|
+
"""Returns the string representation of the model"""
|
92
|
+
import simplejson as json
|
93
|
+
if six.PY2:
|
94
|
+
import sys
|
95
|
+
reload(sys)
|
96
|
+
sys.setdefaultencoding("utf-8")
|
97
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
98
|
+
|
99
|
+
def __repr__(self):
|
100
|
+
"""For `print`"""
|
101
|
+
return self.to_str()
|
102
|
+
|
103
|
+
def __eq__(self, other):
|
104
|
+
"""Returns true if both objects are equal"""
|
105
|
+
if not isinstance(other, ListDatastoresDetailsResponse):
|
106
|
+
return False
|
107
|
+
|
108
|
+
return self.__dict__ == other.__dict__
|
109
|
+
|
110
|
+
def __ne__(self, other):
|
111
|
+
"""Returns true if both objects are not equal"""
|
112
|
+
return not self == other
|