huaweicloudsdkgaussdb 3.1.94__py2.py3-none-any.whl → 3.1.96__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.
- huaweicloudsdkgaussdb/v3/__init__.py +97 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1591 -0
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1591 -0
- huaweicloudsdkgaussdb/v3/model/__init__.py +97 -0
- huaweicloudsdkgaussdb/v3/model/check_data_base_config_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/check_data_base_config_response.py +232 -0
- huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/check_table_config_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/check_table_config_response.py +203 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication.py +227 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_response.py +141 -0
- huaweicloudsdkgaussdb/v3/model/data_base_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/db_config.py +144 -0
- huaweicloudsdkgaussdb/v3/model/db_config_check_request_v3.py +285 -0
- huaweicloudsdkgaussdb/v3/model/db_config_check_result.py +173 -0
- huaweicloudsdkgaussdb/v3/model/db_parameter.py +231 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication.py +115 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/htap_flavor_info_flavors.py +318 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_available_zones.py +173 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_instance_state.py +202 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_instances.py +832 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_network.py +173 -0
- huaweicloudsdkgaussdb/v3/model/htap_storage_type_storage_type.py +173 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_data_store_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_data_store_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_flavor_request.py +230 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_flavor_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_request.py +229 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_request.py +170 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_response.py +336 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_request.py +200 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_request.py +142 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/param_group.py +144 -0
- huaweicloudsdkgaussdb/v3/model/query_action.py +318 -0
- huaweicloudsdkgaussdb/v3/model/readable_node_infos.py +173 -0
- huaweicloudsdkgaussdb/v3/model/resource_check.py +138 -0
- huaweicloudsdkgaussdb/v3/model/resource_check_resource.py +367 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_request.py +228 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_users_user_details.py +198 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance.py +538 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_engine.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_pay_info.py +231 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_sys_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_data_stores_datastores.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py +459 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_be_volume.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_engine.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_fe_volume.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_ha.py +114 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info.py +114 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info_sys_tags.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_info.py +228 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_sinfo.py +201 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_winfo.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_datastore.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_groups.py +231 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_instances.py +1292 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_nodes.py +1006 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_ops_window.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_port_info.py +115 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_sys_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_volume.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_replication_info.py +318 -0
- huaweicloudsdkgaussdb/v3/model/table_config_check_request_v3.py +285 -0
- huaweicloudsdkgaussdb/v3/model/table_config_check_result.py +173 -0
- huaweicloudsdkgaussdb/v3/model/table_repl_config.py +173 -0
- huaweicloudsdkgaussdb/v3/model/tables_config.py +144 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_response.py +116 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/RECORD +106 -9
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class HtapInstanceListNetwork:
|
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
|
+
'vpc_id': 'str',
|
21
|
+
'sub_net_id': 'str',
|
22
|
+
'security_group_id': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'vpc_id': 'vpc_id',
|
27
|
+
'sub_net_id': 'sub_net_id',
|
28
|
+
'security_group_id': 'security_group_id'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, vpc_id=None, sub_net_id=None, security_group_id=None):
|
32
|
+
"""HtapInstanceListNetwork
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param vpc_id: 虚拟私有云ID。
|
37
|
+
:type vpc_id: str
|
38
|
+
:param sub_net_id: 子网ID。
|
39
|
+
:type sub_net_id: str
|
40
|
+
:param security_group_id: 安全组ID。
|
41
|
+
:type security_group_id: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._vpc_id = None
|
47
|
+
self._sub_net_id = None
|
48
|
+
self._security_group_id = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if vpc_id is not None:
|
52
|
+
self.vpc_id = vpc_id
|
53
|
+
if sub_net_id is not None:
|
54
|
+
self.sub_net_id = sub_net_id
|
55
|
+
if security_group_id is not None:
|
56
|
+
self.security_group_id = security_group_id
|
57
|
+
|
58
|
+
@property
|
59
|
+
def vpc_id(self):
|
60
|
+
"""Gets the vpc_id of this HtapInstanceListNetwork.
|
61
|
+
|
62
|
+
虚拟私有云ID。
|
63
|
+
|
64
|
+
:return: The vpc_id of this HtapInstanceListNetwork.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._vpc_id
|
68
|
+
|
69
|
+
@vpc_id.setter
|
70
|
+
def vpc_id(self, vpc_id):
|
71
|
+
"""Sets the vpc_id of this HtapInstanceListNetwork.
|
72
|
+
|
73
|
+
虚拟私有云ID。
|
74
|
+
|
75
|
+
:param vpc_id: The vpc_id of this HtapInstanceListNetwork.
|
76
|
+
:type vpc_id: str
|
77
|
+
"""
|
78
|
+
self._vpc_id = vpc_id
|
79
|
+
|
80
|
+
@property
|
81
|
+
def sub_net_id(self):
|
82
|
+
"""Gets the sub_net_id of this HtapInstanceListNetwork.
|
83
|
+
|
84
|
+
子网ID。
|
85
|
+
|
86
|
+
:return: The sub_net_id of this HtapInstanceListNetwork.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._sub_net_id
|
90
|
+
|
91
|
+
@sub_net_id.setter
|
92
|
+
def sub_net_id(self, sub_net_id):
|
93
|
+
"""Sets the sub_net_id of this HtapInstanceListNetwork.
|
94
|
+
|
95
|
+
子网ID。
|
96
|
+
|
97
|
+
:param sub_net_id: The sub_net_id of this HtapInstanceListNetwork.
|
98
|
+
:type sub_net_id: str
|
99
|
+
"""
|
100
|
+
self._sub_net_id = sub_net_id
|
101
|
+
|
102
|
+
@property
|
103
|
+
def security_group_id(self):
|
104
|
+
"""Gets the security_group_id of this HtapInstanceListNetwork.
|
105
|
+
|
106
|
+
安全组ID。
|
107
|
+
|
108
|
+
:return: The security_group_id of this HtapInstanceListNetwork.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._security_group_id
|
112
|
+
|
113
|
+
@security_group_id.setter
|
114
|
+
def security_group_id(self, security_group_id):
|
115
|
+
"""Sets the security_group_id of this HtapInstanceListNetwork.
|
116
|
+
|
117
|
+
安全组ID。
|
118
|
+
|
119
|
+
:param security_group_id: The security_group_id of this HtapInstanceListNetwork.
|
120
|
+
:type security_group_id: str
|
121
|
+
"""
|
122
|
+
self._security_group_id = security_group_id
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, HtapInstanceListNetwork):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class HtapStorageTypeStorageType:
|
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
|
+
'name': 'str',
|
21
|
+
'az_status': 'dict(str, str)',
|
22
|
+
'min_volume_size': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'name': 'name',
|
27
|
+
'az_status': 'az_status',
|
28
|
+
'min_volume_size': 'min_volume_size'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, name=None, az_status=None, min_volume_size=None):
|
32
|
+
"""HtapStorageTypeStorageType
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param name: 存储介质名。
|
37
|
+
:type name: str
|
38
|
+
:param az_status: 可支持可用区信息。
|
39
|
+
:type az_status: dict(str, str)
|
40
|
+
:param min_volume_size: 最小可提供磁盘大小。
|
41
|
+
:type min_volume_size: int
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._name = None
|
47
|
+
self._az_status = None
|
48
|
+
self._min_volume_size = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if name is not None:
|
52
|
+
self.name = name
|
53
|
+
if az_status is not None:
|
54
|
+
self.az_status = az_status
|
55
|
+
if min_volume_size is not None:
|
56
|
+
self.min_volume_size = min_volume_size
|
57
|
+
|
58
|
+
@property
|
59
|
+
def name(self):
|
60
|
+
"""Gets the name of this HtapStorageTypeStorageType.
|
61
|
+
|
62
|
+
存储介质名。
|
63
|
+
|
64
|
+
:return: The name of this HtapStorageTypeStorageType.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._name
|
68
|
+
|
69
|
+
@name.setter
|
70
|
+
def name(self, name):
|
71
|
+
"""Sets the name of this HtapStorageTypeStorageType.
|
72
|
+
|
73
|
+
存储介质名。
|
74
|
+
|
75
|
+
:param name: The name of this HtapStorageTypeStorageType.
|
76
|
+
:type name: str
|
77
|
+
"""
|
78
|
+
self._name = name
|
79
|
+
|
80
|
+
@property
|
81
|
+
def az_status(self):
|
82
|
+
"""Gets the az_status of this HtapStorageTypeStorageType.
|
83
|
+
|
84
|
+
可支持可用区信息。
|
85
|
+
|
86
|
+
:return: The az_status of this HtapStorageTypeStorageType.
|
87
|
+
:rtype: dict(str, str)
|
88
|
+
"""
|
89
|
+
return self._az_status
|
90
|
+
|
91
|
+
@az_status.setter
|
92
|
+
def az_status(self, az_status):
|
93
|
+
"""Sets the az_status of this HtapStorageTypeStorageType.
|
94
|
+
|
95
|
+
可支持可用区信息。
|
96
|
+
|
97
|
+
:param az_status: The az_status of this HtapStorageTypeStorageType.
|
98
|
+
:type az_status: dict(str, str)
|
99
|
+
"""
|
100
|
+
self._az_status = az_status
|
101
|
+
|
102
|
+
@property
|
103
|
+
def min_volume_size(self):
|
104
|
+
"""Gets the min_volume_size of this HtapStorageTypeStorageType.
|
105
|
+
|
106
|
+
最小可提供磁盘大小。
|
107
|
+
|
108
|
+
:return: The min_volume_size of this HtapStorageTypeStorageType.
|
109
|
+
:rtype: int
|
110
|
+
"""
|
111
|
+
return self._min_volume_size
|
112
|
+
|
113
|
+
@min_volume_size.setter
|
114
|
+
def min_volume_size(self, min_volume_size):
|
115
|
+
"""Sets the min_volume_size of this HtapStorageTypeStorageType.
|
116
|
+
|
117
|
+
最小可提供磁盘大小。
|
118
|
+
|
119
|
+
:param min_volume_size: The min_volume_size of this HtapStorageTypeStorageType.
|
120
|
+
:type min_volume_size: int
|
121
|
+
"""
|
122
|
+
self._min_volume_size = min_volume_size
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, HtapStorageTypeStorageType):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListHtapDataStoreRequest:
|
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
|
+
'engine_name': 'str',
|
21
|
+
'x_language': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'engine_name': 'engine_name',
|
26
|
+
'x_language': 'X-Language'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, engine_name=None, x_language=None):
|
30
|
+
"""ListHtapDataStoreRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param engine_name: HTAP引擎名。 取值范围: - star-rocks - click-house
|
35
|
+
:type engine_name: str
|
36
|
+
:param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
37
|
+
:type x_language: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._engine_name = None
|
43
|
+
self._x_language = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.engine_name = engine_name
|
47
|
+
if x_language is not None:
|
48
|
+
self.x_language = x_language
|
49
|
+
|
50
|
+
@property
|
51
|
+
def engine_name(self):
|
52
|
+
"""Gets the engine_name of this ListHtapDataStoreRequest.
|
53
|
+
|
54
|
+
HTAP引擎名。 取值范围: - star-rocks - click-house
|
55
|
+
|
56
|
+
:return: The engine_name of this ListHtapDataStoreRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._engine_name
|
60
|
+
|
61
|
+
@engine_name.setter
|
62
|
+
def engine_name(self, engine_name):
|
63
|
+
"""Sets the engine_name of this ListHtapDataStoreRequest.
|
64
|
+
|
65
|
+
HTAP引擎名。 取值范围: - star-rocks - click-house
|
66
|
+
|
67
|
+
:param engine_name: The engine_name of this ListHtapDataStoreRequest.
|
68
|
+
:type engine_name: str
|
69
|
+
"""
|
70
|
+
self._engine_name = engine_name
|
71
|
+
|
72
|
+
@property
|
73
|
+
def x_language(self):
|
74
|
+
"""Gets the x_language of this ListHtapDataStoreRequest.
|
75
|
+
|
76
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
77
|
+
|
78
|
+
:return: The x_language of this ListHtapDataStoreRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._x_language
|
82
|
+
|
83
|
+
@x_language.setter
|
84
|
+
def x_language(self, x_language):
|
85
|
+
"""Sets the x_language of this ListHtapDataStoreRequest.
|
86
|
+
|
87
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
88
|
+
|
89
|
+
:param x_language: The x_language of this ListHtapDataStoreRequest.
|
90
|
+
:type x_language: str
|
91
|
+
"""
|
92
|
+
self._x_language = x_language
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, ListHtapDataStoreRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
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 ListHtapDataStoreResponse(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[SrDataStoresDatastores]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'datastores': 'datastores'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, datastores=None):
|
29
|
+
"""ListHtapDataStoreResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param datastores: 数据库信息列表。
|
34
|
+
:type datastores: list[:class:`huaweicloudsdkgaussdb.v3.SrDataStoresDatastores`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ListHtapDataStoreResponse, 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 ListHtapDataStoreResponse.
|
48
|
+
|
49
|
+
数据库信息列表。
|
50
|
+
|
51
|
+
:return: The datastores of this ListHtapDataStoreResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.SrDataStoresDatastores`]
|
53
|
+
"""
|
54
|
+
return self._datastores
|
55
|
+
|
56
|
+
@datastores.setter
|
57
|
+
def datastores(self, datastores):
|
58
|
+
"""Sets the datastores of this ListHtapDataStoreResponse.
|
59
|
+
|
60
|
+
数据库信息列表。
|
61
|
+
|
62
|
+
:param datastores: The datastores of this ListHtapDataStoreResponse.
|
63
|
+
:type datastores: list[:class:`huaweicloudsdkgaussdb.v3.SrDataStoresDatastores`]
|
64
|
+
"""
|
65
|
+
self._datastores = datastores
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, ListHtapDataStoreResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|