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,226 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ChDatabaseParameterInfo:
|
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
|
+
'param_name': 'str',
|
21
|
+
'data_type': 'str',
|
22
|
+
'default_value': 'str',
|
23
|
+
'value_range': 'str',
|
24
|
+
'description': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'param_name': 'param_name',
|
29
|
+
'data_type': 'data_type',
|
30
|
+
'default_value': 'default_value',
|
31
|
+
'value_range': 'value_range',
|
32
|
+
'description': 'description'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, param_name=None, data_type=None, default_value=None, value_range=None, description=None):
|
36
|
+
"""ChDatabaseParameterInfo
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param param_name: 参数名称。
|
41
|
+
:type param_name: str
|
42
|
+
:param data_type: 参数类型。
|
43
|
+
:type data_type: str
|
44
|
+
:param default_value: 参数默认值。
|
45
|
+
:type default_value: str
|
46
|
+
:param value_range: 参数取值范围。
|
47
|
+
:type value_range: str
|
48
|
+
:param description: 参数描述。
|
49
|
+
:type description: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._param_name = None
|
55
|
+
self._data_type = None
|
56
|
+
self._default_value = None
|
57
|
+
self._value_range = None
|
58
|
+
self._description = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.param_name = param_name
|
62
|
+
self.data_type = data_type
|
63
|
+
self.default_value = default_value
|
64
|
+
self.value_range = value_range
|
65
|
+
self.description = description
|
66
|
+
|
67
|
+
@property
|
68
|
+
def param_name(self):
|
69
|
+
"""Gets the param_name of this ChDatabaseParameterInfo.
|
70
|
+
|
71
|
+
参数名称。
|
72
|
+
|
73
|
+
:return: The param_name of this ChDatabaseParameterInfo.
|
74
|
+
:rtype: str
|
75
|
+
"""
|
76
|
+
return self._param_name
|
77
|
+
|
78
|
+
@param_name.setter
|
79
|
+
def param_name(self, param_name):
|
80
|
+
"""Sets the param_name of this ChDatabaseParameterInfo.
|
81
|
+
|
82
|
+
参数名称。
|
83
|
+
|
84
|
+
:param param_name: The param_name of this ChDatabaseParameterInfo.
|
85
|
+
:type param_name: str
|
86
|
+
"""
|
87
|
+
self._param_name = param_name
|
88
|
+
|
89
|
+
@property
|
90
|
+
def data_type(self):
|
91
|
+
"""Gets the data_type of this ChDatabaseParameterInfo.
|
92
|
+
|
93
|
+
参数类型。
|
94
|
+
|
95
|
+
:return: The data_type of this ChDatabaseParameterInfo.
|
96
|
+
:rtype: str
|
97
|
+
"""
|
98
|
+
return self._data_type
|
99
|
+
|
100
|
+
@data_type.setter
|
101
|
+
def data_type(self, data_type):
|
102
|
+
"""Sets the data_type of this ChDatabaseParameterInfo.
|
103
|
+
|
104
|
+
参数类型。
|
105
|
+
|
106
|
+
:param data_type: The data_type of this ChDatabaseParameterInfo.
|
107
|
+
:type data_type: str
|
108
|
+
"""
|
109
|
+
self._data_type = data_type
|
110
|
+
|
111
|
+
@property
|
112
|
+
def default_value(self):
|
113
|
+
"""Gets the default_value of this ChDatabaseParameterInfo.
|
114
|
+
|
115
|
+
参数默认值。
|
116
|
+
|
117
|
+
:return: The default_value of this ChDatabaseParameterInfo.
|
118
|
+
:rtype: str
|
119
|
+
"""
|
120
|
+
return self._default_value
|
121
|
+
|
122
|
+
@default_value.setter
|
123
|
+
def default_value(self, default_value):
|
124
|
+
"""Sets the default_value of this ChDatabaseParameterInfo.
|
125
|
+
|
126
|
+
参数默认值。
|
127
|
+
|
128
|
+
:param default_value: The default_value of this ChDatabaseParameterInfo.
|
129
|
+
:type default_value: str
|
130
|
+
"""
|
131
|
+
self._default_value = default_value
|
132
|
+
|
133
|
+
@property
|
134
|
+
def value_range(self):
|
135
|
+
"""Gets the value_range of this ChDatabaseParameterInfo.
|
136
|
+
|
137
|
+
参数取值范围。
|
138
|
+
|
139
|
+
:return: The value_range of this ChDatabaseParameterInfo.
|
140
|
+
:rtype: str
|
141
|
+
"""
|
142
|
+
return self._value_range
|
143
|
+
|
144
|
+
@value_range.setter
|
145
|
+
def value_range(self, value_range):
|
146
|
+
"""Sets the value_range of this ChDatabaseParameterInfo.
|
147
|
+
|
148
|
+
参数取值范围。
|
149
|
+
|
150
|
+
:param value_range: The value_range of this ChDatabaseParameterInfo.
|
151
|
+
:type value_range: str
|
152
|
+
"""
|
153
|
+
self._value_range = value_range
|
154
|
+
|
155
|
+
@property
|
156
|
+
def description(self):
|
157
|
+
"""Gets the description of this ChDatabaseParameterInfo.
|
158
|
+
|
159
|
+
参数描述。
|
160
|
+
|
161
|
+
:return: The description of this ChDatabaseParameterInfo.
|
162
|
+
:rtype: str
|
163
|
+
"""
|
164
|
+
return self._description
|
165
|
+
|
166
|
+
@description.setter
|
167
|
+
def description(self, description):
|
168
|
+
"""Sets the description of this ChDatabaseParameterInfo.
|
169
|
+
|
170
|
+
参数描述。
|
171
|
+
|
172
|
+
:param description: The description of this ChDatabaseParameterInfo.
|
173
|
+
:type description: str
|
174
|
+
"""
|
175
|
+
self._description = description
|
176
|
+
|
177
|
+
def to_dict(self):
|
178
|
+
"""Returns the model properties as a dict"""
|
179
|
+
result = {}
|
180
|
+
|
181
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
182
|
+
value = getattr(self, attr)
|
183
|
+
if isinstance(value, list):
|
184
|
+
result[attr] = list(map(
|
185
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
186
|
+
value
|
187
|
+
))
|
188
|
+
elif hasattr(value, "to_dict"):
|
189
|
+
result[attr] = value.to_dict()
|
190
|
+
elif isinstance(value, dict):
|
191
|
+
result[attr] = dict(map(
|
192
|
+
lambda item: (item[0], item[1].to_dict())
|
193
|
+
if hasattr(item[1], "to_dict") else item,
|
194
|
+
value.items()
|
195
|
+
))
|
196
|
+
else:
|
197
|
+
if attr in self.sensitive_list:
|
198
|
+
result[attr] = "****"
|
199
|
+
else:
|
200
|
+
result[attr] = value
|
201
|
+
|
202
|
+
return result
|
203
|
+
|
204
|
+
def to_str(self):
|
205
|
+
"""Returns the string representation of the model"""
|
206
|
+
import simplejson as json
|
207
|
+
if six.PY2:
|
208
|
+
import sys
|
209
|
+
reload(sys)
|
210
|
+
sys.setdefaultencoding("utf-8")
|
211
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
212
|
+
|
213
|
+
def __repr__(self):
|
214
|
+
"""For `print`"""
|
215
|
+
return self.to_str()
|
216
|
+
|
217
|
+
def __eq__(self, other):
|
218
|
+
"""Returns true if both objects are equal"""
|
219
|
+
if not isinstance(other, ChDatabaseParameterInfo):
|
220
|
+
return False
|
221
|
+
|
222
|
+
return self.__dict__ == other.__dict__
|
223
|
+
|
224
|
+
def __ne__(self, other):
|
225
|
+
"""Returns true if both objects are not equal"""
|
226
|
+
return not self == other
|
@@ -0,0 +1,254 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ChDatabaseReplicationInfo:
|
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
|
+
'source_database': 'str',
|
21
|
+
'target_database': 'str',
|
22
|
+
'status': 'str',
|
23
|
+
'stage': 'str',
|
24
|
+
'percentage': 'str',
|
25
|
+
'catchup_stage': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'source_database': 'source_database',
|
30
|
+
'target_database': 'target_database',
|
31
|
+
'status': 'status',
|
32
|
+
'stage': 'stage',
|
33
|
+
'percentage': 'percentage',
|
34
|
+
'catchup_stage': 'catchup_stage'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, source_database=None, target_database=None, status=None, stage=None, percentage=None, catchup_stage=None):
|
38
|
+
"""ChDatabaseReplicationInfo
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param source_database: 源数据库。
|
43
|
+
:type source_database: str
|
44
|
+
:param target_database: 目标数据库。
|
45
|
+
:type target_database: str
|
46
|
+
:param status: 当前状态。 取值范围: - normal:正常 - abnormal:异常
|
47
|
+
:type status: str
|
48
|
+
:param stage: 同步阶段。 取值范围: - wait:等待同步 - failed:同步失败 - incremental:增量同步 - full:全量同步 - other:其他
|
49
|
+
:type stage: str
|
50
|
+
:param percentage: 进度百分比。
|
51
|
+
:type percentage: str
|
52
|
+
:param catchup_stage: 追赶阶段。 取值范围: - wait:等待同步 - failed:同步失败 - incremental:增量同步 - full:全量同步 - other:其他
|
53
|
+
:type catchup_stage: str
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._source_database = None
|
59
|
+
self._target_database = None
|
60
|
+
self._status = None
|
61
|
+
self._stage = None
|
62
|
+
self._percentage = None
|
63
|
+
self._catchup_stage = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
self.source_database = source_database
|
67
|
+
self.target_database = target_database
|
68
|
+
self.status = status
|
69
|
+
self.stage = stage
|
70
|
+
self.percentage = percentage
|
71
|
+
self.catchup_stage = catchup_stage
|
72
|
+
|
73
|
+
@property
|
74
|
+
def source_database(self):
|
75
|
+
"""Gets the source_database of this ChDatabaseReplicationInfo.
|
76
|
+
|
77
|
+
源数据库。
|
78
|
+
|
79
|
+
:return: The source_database of this ChDatabaseReplicationInfo.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._source_database
|
83
|
+
|
84
|
+
@source_database.setter
|
85
|
+
def source_database(self, source_database):
|
86
|
+
"""Sets the source_database of this ChDatabaseReplicationInfo.
|
87
|
+
|
88
|
+
源数据库。
|
89
|
+
|
90
|
+
:param source_database: The source_database of this ChDatabaseReplicationInfo.
|
91
|
+
:type source_database: str
|
92
|
+
"""
|
93
|
+
self._source_database = source_database
|
94
|
+
|
95
|
+
@property
|
96
|
+
def target_database(self):
|
97
|
+
"""Gets the target_database of this ChDatabaseReplicationInfo.
|
98
|
+
|
99
|
+
目标数据库。
|
100
|
+
|
101
|
+
:return: The target_database of this ChDatabaseReplicationInfo.
|
102
|
+
:rtype: str
|
103
|
+
"""
|
104
|
+
return self._target_database
|
105
|
+
|
106
|
+
@target_database.setter
|
107
|
+
def target_database(self, target_database):
|
108
|
+
"""Sets the target_database of this ChDatabaseReplicationInfo.
|
109
|
+
|
110
|
+
目标数据库。
|
111
|
+
|
112
|
+
:param target_database: The target_database of this ChDatabaseReplicationInfo.
|
113
|
+
:type target_database: str
|
114
|
+
"""
|
115
|
+
self._target_database = target_database
|
116
|
+
|
117
|
+
@property
|
118
|
+
def status(self):
|
119
|
+
"""Gets the status of this ChDatabaseReplicationInfo.
|
120
|
+
|
121
|
+
当前状态。 取值范围: - normal:正常 - abnormal:异常
|
122
|
+
|
123
|
+
:return: The status of this ChDatabaseReplicationInfo.
|
124
|
+
:rtype: str
|
125
|
+
"""
|
126
|
+
return self._status
|
127
|
+
|
128
|
+
@status.setter
|
129
|
+
def status(self, status):
|
130
|
+
"""Sets the status of this ChDatabaseReplicationInfo.
|
131
|
+
|
132
|
+
当前状态。 取值范围: - normal:正常 - abnormal:异常
|
133
|
+
|
134
|
+
:param status: The status of this ChDatabaseReplicationInfo.
|
135
|
+
:type status: str
|
136
|
+
"""
|
137
|
+
self._status = status
|
138
|
+
|
139
|
+
@property
|
140
|
+
def stage(self):
|
141
|
+
"""Gets the stage of this ChDatabaseReplicationInfo.
|
142
|
+
|
143
|
+
同步阶段。 取值范围: - wait:等待同步 - failed:同步失败 - incremental:增量同步 - full:全量同步 - other:其他
|
144
|
+
|
145
|
+
:return: The stage of this ChDatabaseReplicationInfo.
|
146
|
+
:rtype: str
|
147
|
+
"""
|
148
|
+
return self._stage
|
149
|
+
|
150
|
+
@stage.setter
|
151
|
+
def stage(self, stage):
|
152
|
+
"""Sets the stage of this ChDatabaseReplicationInfo.
|
153
|
+
|
154
|
+
同步阶段。 取值范围: - wait:等待同步 - failed:同步失败 - incremental:增量同步 - full:全量同步 - other:其他
|
155
|
+
|
156
|
+
:param stage: The stage of this ChDatabaseReplicationInfo.
|
157
|
+
:type stage: str
|
158
|
+
"""
|
159
|
+
self._stage = stage
|
160
|
+
|
161
|
+
@property
|
162
|
+
def percentage(self):
|
163
|
+
"""Gets the percentage of this ChDatabaseReplicationInfo.
|
164
|
+
|
165
|
+
进度百分比。
|
166
|
+
|
167
|
+
:return: The percentage of this ChDatabaseReplicationInfo.
|
168
|
+
:rtype: str
|
169
|
+
"""
|
170
|
+
return self._percentage
|
171
|
+
|
172
|
+
@percentage.setter
|
173
|
+
def percentage(self, percentage):
|
174
|
+
"""Sets the percentage of this ChDatabaseReplicationInfo.
|
175
|
+
|
176
|
+
进度百分比。
|
177
|
+
|
178
|
+
:param percentage: The percentage of this ChDatabaseReplicationInfo.
|
179
|
+
:type percentage: str
|
180
|
+
"""
|
181
|
+
self._percentage = percentage
|
182
|
+
|
183
|
+
@property
|
184
|
+
def catchup_stage(self):
|
185
|
+
"""Gets the catchup_stage of this ChDatabaseReplicationInfo.
|
186
|
+
|
187
|
+
追赶阶段。 取值范围: - wait:等待同步 - failed:同步失败 - incremental:增量同步 - full:全量同步 - other:其他
|
188
|
+
|
189
|
+
:return: The catchup_stage of this ChDatabaseReplicationInfo.
|
190
|
+
:rtype: str
|
191
|
+
"""
|
192
|
+
return self._catchup_stage
|
193
|
+
|
194
|
+
@catchup_stage.setter
|
195
|
+
def catchup_stage(self, catchup_stage):
|
196
|
+
"""Sets the catchup_stage of this ChDatabaseReplicationInfo.
|
197
|
+
|
198
|
+
追赶阶段。 取值范围: - wait:等待同步 - failed:同步失败 - incremental:增量同步 - full:全量同步 - other:其他
|
199
|
+
|
200
|
+
:param catchup_stage: The catchup_stage of this ChDatabaseReplicationInfo.
|
201
|
+
:type catchup_stage: str
|
202
|
+
"""
|
203
|
+
self._catchup_stage = catchup_stage
|
204
|
+
|
205
|
+
def to_dict(self):
|
206
|
+
"""Returns the model properties as a dict"""
|
207
|
+
result = {}
|
208
|
+
|
209
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
210
|
+
value = getattr(self, attr)
|
211
|
+
if isinstance(value, list):
|
212
|
+
result[attr] = list(map(
|
213
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
214
|
+
value
|
215
|
+
))
|
216
|
+
elif hasattr(value, "to_dict"):
|
217
|
+
result[attr] = value.to_dict()
|
218
|
+
elif isinstance(value, dict):
|
219
|
+
result[attr] = dict(map(
|
220
|
+
lambda item: (item[0], item[1].to_dict())
|
221
|
+
if hasattr(item[1], "to_dict") else item,
|
222
|
+
value.items()
|
223
|
+
))
|
224
|
+
else:
|
225
|
+
if attr in self.sensitive_list:
|
226
|
+
result[attr] = "****"
|
227
|
+
else:
|
228
|
+
result[attr] = value
|
229
|
+
|
230
|
+
return result
|
231
|
+
|
232
|
+
def to_str(self):
|
233
|
+
"""Returns the string representation of the model"""
|
234
|
+
import simplejson as json
|
235
|
+
if six.PY2:
|
236
|
+
import sys
|
237
|
+
reload(sys)
|
238
|
+
sys.setdefaultencoding("utf-8")
|
239
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
240
|
+
|
241
|
+
def __repr__(self):
|
242
|
+
"""For `print`"""
|
243
|
+
return self.to_str()
|
244
|
+
|
245
|
+
def __eq__(self, other):
|
246
|
+
"""Returns true if both objects are equal"""
|
247
|
+
if not isinstance(other, ChDatabaseReplicationInfo):
|
248
|
+
return False
|
249
|
+
|
250
|
+
return self.__dict__ == other.__dict__
|
251
|
+
|
252
|
+
def __ne__(self, other):
|
253
|
+
"""Returns true if both objects are not equal"""
|
254
|
+
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 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
|