huaweicloudsdkgaussdb 3.1.101__py2.py3-none-any.whl → 3.1.103__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 +111 -1
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +2346 -272
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +2346 -272
- huaweicloudsdkgaussdb/v3/model/__init__.py +111 -1
- huaweicloudsdkgaussdb/v3/model/ch_database_config_check_result.py +170 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_config_response.py +142 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_configs_info.py +142 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_parameter_info.py +226 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_replication_info.py +254 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_table_config_check_result.py +170 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_table_repl_config_info.py +142 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_tables_configs_info.py +142 -0
- huaweicloudsdkgaussdb/v3/model/ch_enlarge_volume_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/ch_instance_lts_configs.py +140 -0
- huaweicloudsdkgaussdb/v3/model/ch_instance_lts_configs_instance.py +318 -0
- huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance.py +1179 -0
- huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_groups.py +198 -0
- huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_ops_window.py +171 -0
- huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_param_group.py +144 -0
- huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_port_info.py +226 -0
- huaweicloudsdkgaussdb/v3/model/ch_lts_configs.py +202 -0
- huaweicloudsdkgaussdb/v3/model/ch_query_action_info.py +318 -0
- huaweicloudsdkgaussdb/v3/model/ch_slow_log_detail_response_slow_log_list.py +450 -0
- huaweicloudsdkgaussdb/v3/model/ch_slow_log_query_request_body.py +285 -0
- huaweicloudsdkgaussdb/v3/model/ch_slowlog_sensitive_response.py +114 -0
- huaweicloudsdkgaussdb/v3/model/check_ch_database_config_request_body.py +223 -0
- huaweicloudsdkgaussdb/v3/model/check_ch_database_table_config_request_body.py +251 -0
- huaweicloudsdkgaussdb/v3/model/check_click_house_data_base_config_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/check_click_house_data_base_config_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/check_click_house_table_config_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/check_click_house_table_config_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/click_house_database_user_info.py +199 -0
- huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_sinfo.py +170 -0
- huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_winfo.py +142 -0
- huaweicloudsdkgaussdb/v3/model/click_house_engine_info.py +142 -0
- huaweicloudsdkgaussdb/v3/model/click_house_node_info.py +979 -0
- huaweicloudsdkgaussdb/v3/model/click_house_node_info_datastore.py +170 -0
- huaweicloudsdkgaussdb/v3/model/click_house_node_info_response_body_node_list.py +170 -0
- huaweicloudsdkgaussdb/v3/model/click_house_node_info_volume.py +200 -0
- huaweicloudsdkgaussdb/v3/model/click_house_resize_flavor_request_body.py +171 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_database_replication_request_body.py +171 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_info.py +522 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_pay_info.py +226 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_tags_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/{sr_create_instance_rsp_instance_tags_info_tags.py → create_ch_instance_info_tags_info_tags.py} +11 -11
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body.py +376 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_ha.py +114 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_pay_info.py +231 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info.py +114 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info_sys_tags.py +142 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_volume.py +142 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body_log_configs.py +198 -0
- huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_click_house_instance_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_click_house_instance_response.py +141 -0
- huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body_log_configs.py +142 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_response.py +307 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_request.py +201 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_request.py +230 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_instance_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_instance_response.py +112 -0
- huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication.py +114 -0
- huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication.py +114 -0
- huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_request.py +230 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_database_users_user_details.py +198 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_request.py +260 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +4 -4
- huaweicloudsdkgaussdb/v3/model/update_ch_database_config_request_body.py +199 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_response.py +116 -0
- {huaweicloudsdkgaussdb-3.1.101.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.101.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/RECORD +121 -11
- {huaweicloudsdkgaussdb-3.1.101.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.101.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.101.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,170 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ClickHouseNodeInfoDatastore:
|
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
|
+
'id': 'str',
|
21
|
+
'type': 'str',
|
22
|
+
'version': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'id': 'id',
|
27
|
+
'type': 'type',
|
28
|
+
'version': 'version'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, id=None, type=None, version=None):
|
32
|
+
"""ClickHouseNodeInfoDatastore
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param id: 引擎ID。
|
37
|
+
:type id: str
|
38
|
+
:param type: 引擎类型,现在只支持click-house。
|
39
|
+
:type type: str
|
40
|
+
:param version: 引擎版本。
|
41
|
+
:type version: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._id = None
|
47
|
+
self._type = None
|
48
|
+
self._version = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.id = id
|
52
|
+
self.type = type
|
53
|
+
self.version = version
|
54
|
+
|
55
|
+
@property
|
56
|
+
def id(self):
|
57
|
+
"""Gets the id of this ClickHouseNodeInfoDatastore.
|
58
|
+
|
59
|
+
引擎ID。
|
60
|
+
|
61
|
+
:return: The id of this ClickHouseNodeInfoDatastore.
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._id
|
65
|
+
|
66
|
+
@id.setter
|
67
|
+
def id(self, id):
|
68
|
+
"""Sets the id of this ClickHouseNodeInfoDatastore.
|
69
|
+
|
70
|
+
引擎ID。
|
71
|
+
|
72
|
+
:param id: The id of this ClickHouseNodeInfoDatastore.
|
73
|
+
:type id: str
|
74
|
+
"""
|
75
|
+
self._id = id
|
76
|
+
|
77
|
+
@property
|
78
|
+
def type(self):
|
79
|
+
"""Gets the type of this ClickHouseNodeInfoDatastore.
|
80
|
+
|
81
|
+
引擎类型,现在只支持click-house。
|
82
|
+
|
83
|
+
:return: The type of this ClickHouseNodeInfoDatastore.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._type
|
87
|
+
|
88
|
+
@type.setter
|
89
|
+
def type(self, type):
|
90
|
+
"""Sets the type of this ClickHouseNodeInfoDatastore.
|
91
|
+
|
92
|
+
引擎类型,现在只支持click-house。
|
93
|
+
|
94
|
+
:param type: The type of this ClickHouseNodeInfoDatastore.
|
95
|
+
:type type: str
|
96
|
+
"""
|
97
|
+
self._type = type
|
98
|
+
|
99
|
+
@property
|
100
|
+
def version(self):
|
101
|
+
"""Gets the version of this ClickHouseNodeInfoDatastore.
|
102
|
+
|
103
|
+
引擎版本。
|
104
|
+
|
105
|
+
:return: The version of this ClickHouseNodeInfoDatastore.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._version
|
109
|
+
|
110
|
+
@version.setter
|
111
|
+
def version(self, version):
|
112
|
+
"""Sets the version of this ClickHouseNodeInfoDatastore.
|
113
|
+
|
114
|
+
引擎版本。
|
115
|
+
|
116
|
+
:param version: The version of this ClickHouseNodeInfoDatastore.
|
117
|
+
:type version: str
|
118
|
+
"""
|
119
|
+
self._version = version
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, ClickHouseNodeInfoDatastore):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|
@@ -0,0 +1,170 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ClickHouseNodeInfoResponseBodyNodeList:
|
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
|
+
'node_id': 'str',
|
21
|
+
'node_name': 'str',
|
22
|
+
'role': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'node_id': 'node_id',
|
27
|
+
'node_name': 'node_name',
|
28
|
+
'role': 'role'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, node_id=None, node_name=None, role=None):
|
32
|
+
"""ClickHouseNodeInfoResponseBodyNodeList
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param node_id: ClickHouse实例节点id。
|
37
|
+
:type node_id: str
|
38
|
+
:param node_name: ClickHouse实例节点名称。
|
39
|
+
:type node_name: str
|
40
|
+
:param role: 节点主备角色。
|
41
|
+
:type role: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._node_id = None
|
47
|
+
self._node_name = None
|
48
|
+
self._role = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.node_id = node_id
|
52
|
+
self.node_name = node_name
|
53
|
+
self.role = role
|
54
|
+
|
55
|
+
@property
|
56
|
+
def node_id(self):
|
57
|
+
"""Gets the node_id of this ClickHouseNodeInfoResponseBodyNodeList.
|
58
|
+
|
59
|
+
ClickHouse实例节点id。
|
60
|
+
|
61
|
+
:return: The node_id of this ClickHouseNodeInfoResponseBodyNodeList.
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._node_id
|
65
|
+
|
66
|
+
@node_id.setter
|
67
|
+
def node_id(self, node_id):
|
68
|
+
"""Sets the node_id of this ClickHouseNodeInfoResponseBodyNodeList.
|
69
|
+
|
70
|
+
ClickHouse实例节点id。
|
71
|
+
|
72
|
+
:param node_id: The node_id of this ClickHouseNodeInfoResponseBodyNodeList.
|
73
|
+
:type node_id: str
|
74
|
+
"""
|
75
|
+
self._node_id = node_id
|
76
|
+
|
77
|
+
@property
|
78
|
+
def node_name(self):
|
79
|
+
"""Gets the node_name of this ClickHouseNodeInfoResponseBodyNodeList.
|
80
|
+
|
81
|
+
ClickHouse实例节点名称。
|
82
|
+
|
83
|
+
:return: The node_name of this ClickHouseNodeInfoResponseBodyNodeList.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._node_name
|
87
|
+
|
88
|
+
@node_name.setter
|
89
|
+
def node_name(self, node_name):
|
90
|
+
"""Sets the node_name of this ClickHouseNodeInfoResponseBodyNodeList.
|
91
|
+
|
92
|
+
ClickHouse实例节点名称。
|
93
|
+
|
94
|
+
:param node_name: The node_name of this ClickHouseNodeInfoResponseBodyNodeList.
|
95
|
+
:type node_name: str
|
96
|
+
"""
|
97
|
+
self._node_name = node_name
|
98
|
+
|
99
|
+
@property
|
100
|
+
def role(self):
|
101
|
+
"""Gets the role of this ClickHouseNodeInfoResponseBodyNodeList.
|
102
|
+
|
103
|
+
节点主备角色。
|
104
|
+
|
105
|
+
:return: The role of this ClickHouseNodeInfoResponseBodyNodeList.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._role
|
109
|
+
|
110
|
+
@role.setter
|
111
|
+
def role(self, role):
|
112
|
+
"""Sets the role of this ClickHouseNodeInfoResponseBodyNodeList.
|
113
|
+
|
114
|
+
节点主备角色。
|
115
|
+
|
116
|
+
:param role: The role of this ClickHouseNodeInfoResponseBodyNodeList.
|
117
|
+
:type role: str
|
118
|
+
"""
|
119
|
+
self._role = role
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, ClickHouseNodeInfoResponseBodyNodeList):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|
@@ -0,0 +1,200 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ClickHouseNodeInfoVolume:
|
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
|
+
'type': 'str',
|
21
|
+
'size': 'str',
|
22
|
+
'used': 'str',
|
23
|
+
'iops': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'type': 'type',
|
28
|
+
'size': 'size',
|
29
|
+
'used': 'used',
|
30
|
+
'iops': 'iops'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, type=None, size=None, used=None, iops=None):
|
34
|
+
"""ClickHouseNodeInfoVolume
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param type: 实例节点存储类型。 取值范围: - SSD:超高IO - ESSD:极速型SSD
|
39
|
+
:type type: str
|
40
|
+
:param size: 实例节点存储大小。
|
41
|
+
:type size: str
|
42
|
+
:param used: 实例节点存储使用大小。
|
43
|
+
:type used: str
|
44
|
+
:param iops: 实例节点存储IOPS大小。
|
45
|
+
:type iops: int
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._type = None
|
51
|
+
self._size = None
|
52
|
+
self._used = None
|
53
|
+
self._iops = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.type = type
|
57
|
+
self.size = size
|
58
|
+
if used is not None:
|
59
|
+
self.used = used
|
60
|
+
if iops is not None:
|
61
|
+
self.iops = iops
|
62
|
+
|
63
|
+
@property
|
64
|
+
def type(self):
|
65
|
+
"""Gets the type of this ClickHouseNodeInfoVolume.
|
66
|
+
|
67
|
+
实例节点存储类型。 取值范围: - SSD:超高IO - ESSD:极速型SSD
|
68
|
+
|
69
|
+
:return: The type of this ClickHouseNodeInfoVolume.
|
70
|
+
:rtype: str
|
71
|
+
"""
|
72
|
+
return self._type
|
73
|
+
|
74
|
+
@type.setter
|
75
|
+
def type(self, type):
|
76
|
+
"""Sets the type of this ClickHouseNodeInfoVolume.
|
77
|
+
|
78
|
+
实例节点存储类型。 取值范围: - SSD:超高IO - ESSD:极速型SSD
|
79
|
+
|
80
|
+
:param type: The type of this ClickHouseNodeInfoVolume.
|
81
|
+
:type type: str
|
82
|
+
"""
|
83
|
+
self._type = type
|
84
|
+
|
85
|
+
@property
|
86
|
+
def size(self):
|
87
|
+
"""Gets the size of this ClickHouseNodeInfoVolume.
|
88
|
+
|
89
|
+
实例节点存储大小。
|
90
|
+
|
91
|
+
:return: The size of this ClickHouseNodeInfoVolume.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._size
|
95
|
+
|
96
|
+
@size.setter
|
97
|
+
def size(self, size):
|
98
|
+
"""Sets the size of this ClickHouseNodeInfoVolume.
|
99
|
+
|
100
|
+
实例节点存储大小。
|
101
|
+
|
102
|
+
:param size: The size of this ClickHouseNodeInfoVolume.
|
103
|
+
:type size: str
|
104
|
+
"""
|
105
|
+
self._size = size
|
106
|
+
|
107
|
+
@property
|
108
|
+
def used(self):
|
109
|
+
"""Gets the used of this ClickHouseNodeInfoVolume.
|
110
|
+
|
111
|
+
实例节点存储使用大小。
|
112
|
+
|
113
|
+
:return: The used of this ClickHouseNodeInfoVolume.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._used
|
117
|
+
|
118
|
+
@used.setter
|
119
|
+
def used(self, used):
|
120
|
+
"""Sets the used of this ClickHouseNodeInfoVolume.
|
121
|
+
|
122
|
+
实例节点存储使用大小。
|
123
|
+
|
124
|
+
:param used: The used of this ClickHouseNodeInfoVolume.
|
125
|
+
:type used: str
|
126
|
+
"""
|
127
|
+
self._used = used
|
128
|
+
|
129
|
+
@property
|
130
|
+
def iops(self):
|
131
|
+
"""Gets the iops of this ClickHouseNodeInfoVolume.
|
132
|
+
|
133
|
+
实例节点存储IOPS大小。
|
134
|
+
|
135
|
+
:return: The iops of this ClickHouseNodeInfoVolume.
|
136
|
+
:rtype: int
|
137
|
+
"""
|
138
|
+
return self._iops
|
139
|
+
|
140
|
+
@iops.setter
|
141
|
+
def iops(self, iops):
|
142
|
+
"""Sets the iops of this ClickHouseNodeInfoVolume.
|
143
|
+
|
144
|
+
实例节点存储IOPS大小。
|
145
|
+
|
146
|
+
:param iops: The iops of this ClickHouseNodeInfoVolume.
|
147
|
+
:type iops: int
|
148
|
+
"""
|
149
|
+
self._iops = iops
|
150
|
+
|
151
|
+
def to_dict(self):
|
152
|
+
"""Returns the model properties as a dict"""
|
153
|
+
result = {}
|
154
|
+
|
155
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
156
|
+
value = getattr(self, attr)
|
157
|
+
if isinstance(value, list):
|
158
|
+
result[attr] = list(map(
|
159
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
160
|
+
value
|
161
|
+
))
|
162
|
+
elif hasattr(value, "to_dict"):
|
163
|
+
result[attr] = value.to_dict()
|
164
|
+
elif isinstance(value, dict):
|
165
|
+
result[attr] = dict(map(
|
166
|
+
lambda item: (item[0], item[1].to_dict())
|
167
|
+
if hasattr(item[1], "to_dict") else item,
|
168
|
+
value.items()
|
169
|
+
))
|
170
|
+
else:
|
171
|
+
if attr in self.sensitive_list:
|
172
|
+
result[attr] = "****"
|
173
|
+
else:
|
174
|
+
result[attr] = value
|
175
|
+
|
176
|
+
return result
|
177
|
+
|
178
|
+
def to_str(self):
|
179
|
+
"""Returns the string representation of the model"""
|
180
|
+
import simplejson as json
|
181
|
+
if six.PY2:
|
182
|
+
import sys
|
183
|
+
reload(sys)
|
184
|
+
sys.setdefaultencoding("utf-8")
|
185
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
186
|
+
|
187
|
+
def __repr__(self):
|
188
|
+
"""For `print`"""
|
189
|
+
return self.to_str()
|
190
|
+
|
191
|
+
def __eq__(self, other):
|
192
|
+
"""Returns true if both objects are equal"""
|
193
|
+
if not isinstance(other, ClickHouseNodeInfoVolume):
|
194
|
+
return False
|
195
|
+
|
196
|
+
return self.__dict__ == other.__dict__
|
197
|
+
|
198
|
+
def __ne__(self, other):
|
199
|
+
"""Returns true if both objects are not equal"""
|
200
|
+
return not self == other
|
@@ -0,0 +1,171 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ClickHouseResizeFlavorRequestBody:
|
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
|
+
'flavor_ref': 'str',
|
21
|
+
'delay': 'bool',
|
22
|
+
'instance_id': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'flavor_ref': 'flavor_ref',
|
27
|
+
'delay': 'delay',
|
28
|
+
'instance_id': 'instance_id'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, flavor_ref=None, delay=None, instance_id=None):
|
32
|
+
"""ClickHouseResizeFlavorRequestBody
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param flavor_ref: 规格ID。可通过“查询规格信息”接口获取。 仅允许使用对应数据库,和对应实例类型的规格ID。
|
37
|
+
:type flavor_ref: str
|
38
|
+
:param delay: 是否延迟变更。默认false。
|
39
|
+
:type delay: bool
|
40
|
+
:param instance_id: 实例ID,严格匹配UUID规则。
|
41
|
+
:type instance_id: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._flavor_ref = None
|
47
|
+
self._delay = None
|
48
|
+
self._instance_id = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.flavor_ref = flavor_ref
|
52
|
+
self.delay = delay
|
53
|
+
if instance_id is not None:
|
54
|
+
self.instance_id = instance_id
|
55
|
+
|
56
|
+
@property
|
57
|
+
def flavor_ref(self):
|
58
|
+
"""Gets the flavor_ref of this ClickHouseResizeFlavorRequestBody.
|
59
|
+
|
60
|
+
规格ID。可通过“查询规格信息”接口获取。 仅允许使用对应数据库,和对应实例类型的规格ID。
|
61
|
+
|
62
|
+
:return: The flavor_ref of this ClickHouseResizeFlavorRequestBody.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._flavor_ref
|
66
|
+
|
67
|
+
@flavor_ref.setter
|
68
|
+
def flavor_ref(self, flavor_ref):
|
69
|
+
"""Sets the flavor_ref of this ClickHouseResizeFlavorRequestBody.
|
70
|
+
|
71
|
+
规格ID。可通过“查询规格信息”接口获取。 仅允许使用对应数据库,和对应实例类型的规格ID。
|
72
|
+
|
73
|
+
:param flavor_ref: The flavor_ref of this ClickHouseResizeFlavorRequestBody.
|
74
|
+
:type flavor_ref: str
|
75
|
+
"""
|
76
|
+
self._flavor_ref = flavor_ref
|
77
|
+
|
78
|
+
@property
|
79
|
+
def delay(self):
|
80
|
+
"""Gets the delay of this ClickHouseResizeFlavorRequestBody.
|
81
|
+
|
82
|
+
是否延迟变更。默认false。
|
83
|
+
|
84
|
+
:return: The delay of this ClickHouseResizeFlavorRequestBody.
|
85
|
+
:rtype: bool
|
86
|
+
"""
|
87
|
+
return self._delay
|
88
|
+
|
89
|
+
@delay.setter
|
90
|
+
def delay(self, delay):
|
91
|
+
"""Sets the delay of this ClickHouseResizeFlavorRequestBody.
|
92
|
+
|
93
|
+
是否延迟变更。默认false。
|
94
|
+
|
95
|
+
:param delay: The delay of this ClickHouseResizeFlavorRequestBody.
|
96
|
+
:type delay: bool
|
97
|
+
"""
|
98
|
+
self._delay = delay
|
99
|
+
|
100
|
+
@property
|
101
|
+
def instance_id(self):
|
102
|
+
"""Gets the instance_id of this ClickHouseResizeFlavorRequestBody.
|
103
|
+
|
104
|
+
实例ID,严格匹配UUID规则。
|
105
|
+
|
106
|
+
:return: The instance_id of this ClickHouseResizeFlavorRequestBody.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._instance_id
|
110
|
+
|
111
|
+
@instance_id.setter
|
112
|
+
def instance_id(self, instance_id):
|
113
|
+
"""Sets the instance_id of this ClickHouseResizeFlavorRequestBody.
|
114
|
+
|
115
|
+
实例ID,严格匹配UUID规则。
|
116
|
+
|
117
|
+
:param instance_id: The instance_id of this ClickHouseResizeFlavorRequestBody.
|
118
|
+
:type instance_id: str
|
119
|
+
"""
|
120
|
+
self._instance_id = instance_id
|
121
|
+
|
122
|
+
def to_dict(self):
|
123
|
+
"""Returns the model properties as a dict"""
|
124
|
+
result = {}
|
125
|
+
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
127
|
+
value = getattr(self, attr)
|
128
|
+
if isinstance(value, list):
|
129
|
+
result[attr] = list(map(
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
131
|
+
value
|
132
|
+
))
|
133
|
+
elif hasattr(value, "to_dict"):
|
134
|
+
result[attr] = value.to_dict()
|
135
|
+
elif isinstance(value, dict):
|
136
|
+
result[attr] = dict(map(
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
139
|
+
value.items()
|
140
|
+
))
|
141
|
+
else:
|
142
|
+
if attr in self.sensitive_list:
|
143
|
+
result[attr] = "****"
|
144
|
+
else:
|
145
|
+
result[attr] = value
|
146
|
+
|
147
|
+
return result
|
148
|
+
|
149
|
+
def to_str(self):
|
150
|
+
"""Returns the string representation of the model"""
|
151
|
+
import simplejson as json
|
152
|
+
if six.PY2:
|
153
|
+
import sys
|
154
|
+
reload(sys)
|
155
|
+
sys.setdefaultencoding("utf-8")
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
157
|
+
|
158
|
+
def __repr__(self):
|
159
|
+
"""For `print`"""
|
160
|
+
return self.to_str()
|
161
|
+
|
162
|
+
def __eq__(self, other):
|
163
|
+
"""Returns true if both objects are equal"""
|
164
|
+
if not isinstance(other, ClickHouseResizeFlavorRequestBody):
|
165
|
+
return False
|
166
|
+
|
167
|
+
return self.__dict__ == other.__dict__
|
168
|
+
|
169
|
+
def __ne__(self, other):
|
170
|
+
"""Returns true if both objects are not equal"""
|
171
|
+
return not self == other
|