huaweicloudsdkgaussdb 3.1.102__py2.py3-none-any.whl → 3.1.104__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 +125 -1
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +2738 -317
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +2738 -317
- huaweicloudsdkgaussdb/v3/model/__init__.py +125 -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/check_starrocks_params_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/check_starrocks_params_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/check_starrocks_params_response.py +116 -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/resize_star_rocks_flavor_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/resize_star_rocks_flavor_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/show_starrocks_params_request.py +229 -0
- huaweicloudsdkgaussdb/v3/model/show_starrocks_params_response.py +170 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +4 -4
- huaweicloudsdkgaussdb/v3/model/sr_flavor_resize_req.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sync_star_rocks_users_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/sync_star_rocks_users_response.py +116 -0
- 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/v3/model/update_param_info.py +142 -0
- huaweicloudsdkgaussdb/v3/model/update_starrocks_params_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_starrocks_params_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/user_sync_req.py +114 -0
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/RECORD +135 -11
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.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 ChDatabaseTableConfigCheckResult:
|
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
|
+
'table_name': 'str',
|
21
|
+
'table_config': 'str',
|
22
|
+
'check_result': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'table_name': 'table_name',
|
27
|
+
'table_config': 'table_config',
|
28
|
+
'check_result': 'check_result'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, table_name=None, table_config=None, check_result=None):
|
32
|
+
"""ChDatabaseTableConfigCheckResult
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param table_name: 数据库表名。
|
37
|
+
:type table_name: str
|
38
|
+
:param table_config: 表配置项。 允许输入的列操作有:PARTITION BY, COLUMNS, ORDER BY, SAMPLE BY, PRIMARY KEY, TTL
|
39
|
+
:type table_config: str
|
40
|
+
:param check_result: 校验结果。
|
41
|
+
:type check_result: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._table_name = None
|
47
|
+
self._table_config = None
|
48
|
+
self._check_result = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.table_name = table_name
|
52
|
+
self.table_config = table_config
|
53
|
+
self.check_result = check_result
|
54
|
+
|
55
|
+
@property
|
56
|
+
def table_name(self):
|
57
|
+
"""Gets the table_name of this ChDatabaseTableConfigCheckResult.
|
58
|
+
|
59
|
+
数据库表名。
|
60
|
+
|
61
|
+
:return: The table_name of this ChDatabaseTableConfigCheckResult.
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._table_name
|
65
|
+
|
66
|
+
@table_name.setter
|
67
|
+
def table_name(self, table_name):
|
68
|
+
"""Sets the table_name of this ChDatabaseTableConfigCheckResult.
|
69
|
+
|
70
|
+
数据库表名。
|
71
|
+
|
72
|
+
:param table_name: The table_name of this ChDatabaseTableConfigCheckResult.
|
73
|
+
:type table_name: str
|
74
|
+
"""
|
75
|
+
self._table_name = table_name
|
76
|
+
|
77
|
+
@property
|
78
|
+
def table_config(self):
|
79
|
+
"""Gets the table_config of this ChDatabaseTableConfigCheckResult.
|
80
|
+
|
81
|
+
表配置项。 允许输入的列操作有:PARTITION BY, COLUMNS, ORDER BY, SAMPLE BY, PRIMARY KEY, TTL
|
82
|
+
|
83
|
+
:return: The table_config of this ChDatabaseTableConfigCheckResult.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._table_config
|
87
|
+
|
88
|
+
@table_config.setter
|
89
|
+
def table_config(self, table_config):
|
90
|
+
"""Sets the table_config of this ChDatabaseTableConfigCheckResult.
|
91
|
+
|
92
|
+
表配置项。 允许输入的列操作有:PARTITION BY, COLUMNS, ORDER BY, SAMPLE BY, PRIMARY KEY, TTL
|
93
|
+
|
94
|
+
:param table_config: The table_config of this ChDatabaseTableConfigCheckResult.
|
95
|
+
:type table_config: str
|
96
|
+
"""
|
97
|
+
self._table_config = table_config
|
98
|
+
|
99
|
+
@property
|
100
|
+
def check_result(self):
|
101
|
+
"""Gets the check_result of this ChDatabaseTableConfigCheckResult.
|
102
|
+
|
103
|
+
校验结果。
|
104
|
+
|
105
|
+
:return: The check_result of this ChDatabaseTableConfigCheckResult.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._check_result
|
109
|
+
|
110
|
+
@check_result.setter
|
111
|
+
def check_result(self, check_result):
|
112
|
+
"""Sets the check_result of this ChDatabaseTableConfigCheckResult.
|
113
|
+
|
114
|
+
校验结果。
|
115
|
+
|
116
|
+
:param check_result: The check_result of this ChDatabaseTableConfigCheckResult.
|
117
|
+
:type check_result: str
|
118
|
+
"""
|
119
|
+
self._check_result = check_result
|
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, ChDatabaseTableConfigCheckResult):
|
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,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ChDatabaseTableReplConfigInfo:
|
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
|
+
'repl_type': 'str',
|
21
|
+
'tables': 'list[str]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'repl_type': 'repl_type',
|
26
|
+
'tables': 'tables'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, repl_type=None, tables=None):
|
30
|
+
"""ChDatabaseTableReplConfigInfo
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param repl_type: 表同步类型。 取值范围: - white_list:白名单,此时表范围不能为空。 - black_list:黑名单,此时表范围为空则选择所有表。
|
35
|
+
:type repl_type: str
|
36
|
+
:param tables: 白名单或黑名单的表范围。
|
37
|
+
:type tables: list[str]
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._repl_type = None
|
43
|
+
self._tables = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.repl_type = repl_type
|
47
|
+
self.tables = tables
|
48
|
+
|
49
|
+
@property
|
50
|
+
def repl_type(self):
|
51
|
+
"""Gets the repl_type of this ChDatabaseTableReplConfigInfo.
|
52
|
+
|
53
|
+
表同步类型。 取值范围: - white_list:白名单,此时表范围不能为空。 - black_list:黑名单,此时表范围为空则选择所有表。
|
54
|
+
|
55
|
+
:return: The repl_type of this ChDatabaseTableReplConfigInfo.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._repl_type
|
59
|
+
|
60
|
+
@repl_type.setter
|
61
|
+
def repl_type(self, repl_type):
|
62
|
+
"""Sets the repl_type of this ChDatabaseTableReplConfigInfo.
|
63
|
+
|
64
|
+
表同步类型。 取值范围: - white_list:白名单,此时表范围不能为空。 - black_list:黑名单,此时表范围为空则选择所有表。
|
65
|
+
|
66
|
+
:param repl_type: The repl_type of this ChDatabaseTableReplConfigInfo.
|
67
|
+
:type repl_type: str
|
68
|
+
"""
|
69
|
+
self._repl_type = repl_type
|
70
|
+
|
71
|
+
@property
|
72
|
+
def tables(self):
|
73
|
+
"""Gets the tables of this ChDatabaseTableReplConfigInfo.
|
74
|
+
|
75
|
+
白名单或黑名单的表范围。
|
76
|
+
|
77
|
+
:return: The tables of this ChDatabaseTableReplConfigInfo.
|
78
|
+
:rtype: list[str]
|
79
|
+
"""
|
80
|
+
return self._tables
|
81
|
+
|
82
|
+
@tables.setter
|
83
|
+
def tables(self, tables):
|
84
|
+
"""Sets the tables of this ChDatabaseTableReplConfigInfo.
|
85
|
+
|
86
|
+
白名单或黑名单的表范围。
|
87
|
+
|
88
|
+
:param tables: The tables of this ChDatabaseTableReplConfigInfo.
|
89
|
+
:type tables: list[str]
|
90
|
+
"""
|
91
|
+
self._tables = tables
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, ChDatabaseTableReplConfigInfo):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ChDatabaseTablesConfigsInfo:
|
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
|
+
'table_name': 'str',
|
21
|
+
'table_config': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'table_name': 'table_name',
|
26
|
+
'table_config': 'table_config'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, table_name=None, table_config=None):
|
30
|
+
"""ChDatabaseTablesConfigsInfo
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param table_name: 数据库表名。
|
35
|
+
:type table_name: str
|
36
|
+
:param table_config: 表配置值。 允许输入的列操作有:PARTITION BY, COLUMNS, ORDER BY, SAMPLE BY, PRIMARY KEY, TTL
|
37
|
+
:type table_config: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._table_name = None
|
43
|
+
self._table_config = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.table_name = table_name
|
47
|
+
self.table_config = table_config
|
48
|
+
|
49
|
+
@property
|
50
|
+
def table_name(self):
|
51
|
+
"""Gets the table_name of this ChDatabaseTablesConfigsInfo.
|
52
|
+
|
53
|
+
数据库表名。
|
54
|
+
|
55
|
+
:return: The table_name of this ChDatabaseTablesConfigsInfo.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._table_name
|
59
|
+
|
60
|
+
@table_name.setter
|
61
|
+
def table_name(self, table_name):
|
62
|
+
"""Sets the table_name of this ChDatabaseTablesConfigsInfo.
|
63
|
+
|
64
|
+
数据库表名。
|
65
|
+
|
66
|
+
:param table_name: The table_name of this ChDatabaseTablesConfigsInfo.
|
67
|
+
:type table_name: str
|
68
|
+
"""
|
69
|
+
self._table_name = table_name
|
70
|
+
|
71
|
+
@property
|
72
|
+
def table_config(self):
|
73
|
+
"""Gets the table_config of this ChDatabaseTablesConfigsInfo.
|
74
|
+
|
75
|
+
表配置值。 允许输入的列操作有:PARTITION BY, COLUMNS, ORDER BY, SAMPLE BY, PRIMARY KEY, TTL
|
76
|
+
|
77
|
+
:return: The table_config of this ChDatabaseTablesConfigsInfo.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._table_config
|
81
|
+
|
82
|
+
@table_config.setter
|
83
|
+
def table_config(self, table_config):
|
84
|
+
"""Sets the table_config of this ChDatabaseTablesConfigsInfo.
|
85
|
+
|
86
|
+
表配置值。 允许输入的列操作有:PARTITION BY, COLUMNS, ORDER BY, SAMPLE BY, PRIMARY KEY, TTL
|
87
|
+
|
88
|
+
:param table_config: The table_config of this ChDatabaseTablesConfigsInfo.
|
89
|
+
:type table_config: str
|
90
|
+
"""
|
91
|
+
self._table_config = table_config
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, ChDatabaseTablesConfigsInfo):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ChEnlargeVolumeRequestBody:
|
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
|
+
'size_in_gb': 'int'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'size_in_gb': 'size_in_gb'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, size_in_gb=None):
|
28
|
+
"""ChEnlargeVolumeRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param size_in_gb: 磁盘容量。取值范围:50GB~32000GB。
|
33
|
+
:type size_in_gb: int
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._size_in_gb = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.size_in_gb = size_in_gb
|
42
|
+
|
43
|
+
@property
|
44
|
+
def size_in_gb(self):
|
45
|
+
"""Gets the size_in_gb of this ChEnlargeVolumeRequestBody.
|
46
|
+
|
47
|
+
磁盘容量。取值范围:50GB~32000GB。
|
48
|
+
|
49
|
+
:return: The size_in_gb of this ChEnlargeVolumeRequestBody.
|
50
|
+
:rtype: int
|
51
|
+
"""
|
52
|
+
return self._size_in_gb
|
53
|
+
|
54
|
+
@size_in_gb.setter
|
55
|
+
def size_in_gb(self, size_in_gb):
|
56
|
+
"""Sets the size_in_gb of this ChEnlargeVolumeRequestBody.
|
57
|
+
|
58
|
+
磁盘容量。取值范围:50GB~32000GB。
|
59
|
+
|
60
|
+
:param size_in_gb: The size_in_gb of this ChEnlargeVolumeRequestBody.
|
61
|
+
:type size_in_gb: int
|
62
|
+
"""
|
63
|
+
self._size_in_gb = size_in_gb
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, ChEnlargeVolumeRequestBody):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|
@@ -0,0 +1,140 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ChInstanceLtsConfigs:
|
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
|
+
'lts_configs': 'list[ChLtsConfigs]',
|
21
|
+
'instance': 'ChInstanceLtsConfigsInstance'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'lts_configs': 'lts_configs',
|
26
|
+
'instance': 'instance'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, lts_configs=None, instance=None):
|
30
|
+
"""ChInstanceLtsConfigs
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param lts_configs: 实例LTS配置信息。
|
35
|
+
:type lts_configs: list[:class:`huaweicloudsdkgaussdb.v3.ChLtsConfigs`]
|
36
|
+
:param instance:
|
37
|
+
:type instance: :class:`huaweicloudsdkgaussdb.v3.ChInstanceLtsConfigsInstance`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._lts_configs = None
|
43
|
+
self._instance = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if lts_configs is not None:
|
47
|
+
self.lts_configs = lts_configs
|
48
|
+
if instance is not None:
|
49
|
+
self.instance = instance
|
50
|
+
|
51
|
+
@property
|
52
|
+
def lts_configs(self):
|
53
|
+
"""Gets the lts_configs of this ChInstanceLtsConfigs.
|
54
|
+
|
55
|
+
实例LTS配置信息。
|
56
|
+
|
57
|
+
:return: The lts_configs of this ChInstanceLtsConfigs.
|
58
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.ChLtsConfigs`]
|
59
|
+
"""
|
60
|
+
return self._lts_configs
|
61
|
+
|
62
|
+
@lts_configs.setter
|
63
|
+
def lts_configs(self, lts_configs):
|
64
|
+
"""Sets the lts_configs of this ChInstanceLtsConfigs.
|
65
|
+
|
66
|
+
实例LTS配置信息。
|
67
|
+
|
68
|
+
:param lts_configs: The lts_configs of this ChInstanceLtsConfigs.
|
69
|
+
:type lts_configs: list[:class:`huaweicloudsdkgaussdb.v3.ChLtsConfigs`]
|
70
|
+
"""
|
71
|
+
self._lts_configs = lts_configs
|
72
|
+
|
73
|
+
@property
|
74
|
+
def instance(self):
|
75
|
+
"""Gets the instance of this ChInstanceLtsConfigs.
|
76
|
+
|
77
|
+
:return: The instance of this ChInstanceLtsConfigs.
|
78
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ChInstanceLtsConfigsInstance`
|
79
|
+
"""
|
80
|
+
return self._instance
|
81
|
+
|
82
|
+
@instance.setter
|
83
|
+
def instance(self, instance):
|
84
|
+
"""Sets the instance of this ChInstanceLtsConfigs.
|
85
|
+
|
86
|
+
:param instance: The instance of this ChInstanceLtsConfigs.
|
87
|
+
:type instance: :class:`huaweicloudsdkgaussdb.v3.ChInstanceLtsConfigsInstance`
|
88
|
+
"""
|
89
|
+
self._instance = instance
|
90
|
+
|
91
|
+
def to_dict(self):
|
92
|
+
"""Returns the model properties as a dict"""
|
93
|
+
result = {}
|
94
|
+
|
95
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
96
|
+
value = getattr(self, attr)
|
97
|
+
if isinstance(value, list):
|
98
|
+
result[attr] = list(map(
|
99
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
100
|
+
value
|
101
|
+
))
|
102
|
+
elif hasattr(value, "to_dict"):
|
103
|
+
result[attr] = value.to_dict()
|
104
|
+
elif isinstance(value, dict):
|
105
|
+
result[attr] = dict(map(
|
106
|
+
lambda item: (item[0], item[1].to_dict())
|
107
|
+
if hasattr(item[1], "to_dict") else item,
|
108
|
+
value.items()
|
109
|
+
))
|
110
|
+
else:
|
111
|
+
if attr in self.sensitive_list:
|
112
|
+
result[attr] = "****"
|
113
|
+
else:
|
114
|
+
result[attr] = value
|
115
|
+
|
116
|
+
return result
|
117
|
+
|
118
|
+
def to_str(self):
|
119
|
+
"""Returns the string representation of the model"""
|
120
|
+
import simplejson as json
|
121
|
+
if six.PY2:
|
122
|
+
import sys
|
123
|
+
reload(sys)
|
124
|
+
sys.setdefaultencoding("utf-8")
|
125
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
126
|
+
|
127
|
+
def __repr__(self):
|
128
|
+
"""For `print`"""
|
129
|
+
return self.to_str()
|
130
|
+
|
131
|
+
def __eq__(self, other):
|
132
|
+
"""Returns true if both objects are equal"""
|
133
|
+
if not isinstance(other, ChInstanceLtsConfigs):
|
134
|
+
return False
|
135
|
+
|
136
|
+
return self.__dict__ == other.__dict__
|
137
|
+
|
138
|
+
def __ne__(self, other):
|
139
|
+
"""Returns true if both objects are not equal"""
|
140
|
+
return not self == other
|