huaweicloudsdkgaussdb 3.1.102__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.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/RECORD +121 -11
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowClickHouseSlowLogSensitiveStatusRequest:
|
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
|
+
'instance_id': 'str',
|
21
|
+
'x_language': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'instance_id': 'instance_id',
|
26
|
+
'x_language': 'X-Language'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, instance_id=None, x_language=None):
|
30
|
+
"""ShowClickHouseSlowLogSensitiveStatusRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param instance_id: ClickHouse实例ID,严格匹配UUID规则。
|
35
|
+
:type instance_id: str
|
36
|
+
:param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
37
|
+
:type x_language: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._instance_id = None
|
43
|
+
self._x_language = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.instance_id = instance_id
|
47
|
+
if x_language is not None:
|
48
|
+
self.x_language = x_language
|
49
|
+
|
50
|
+
@property
|
51
|
+
def instance_id(self):
|
52
|
+
"""Gets the instance_id of this ShowClickHouseSlowLogSensitiveStatusRequest.
|
53
|
+
|
54
|
+
ClickHouse实例ID,严格匹配UUID规则。
|
55
|
+
|
56
|
+
:return: The instance_id of this ShowClickHouseSlowLogSensitiveStatusRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._instance_id
|
60
|
+
|
61
|
+
@instance_id.setter
|
62
|
+
def instance_id(self, instance_id):
|
63
|
+
"""Sets the instance_id of this ShowClickHouseSlowLogSensitiveStatusRequest.
|
64
|
+
|
65
|
+
ClickHouse实例ID,严格匹配UUID规则。
|
66
|
+
|
67
|
+
:param instance_id: The instance_id of this ShowClickHouseSlowLogSensitiveStatusRequest.
|
68
|
+
:type instance_id: str
|
69
|
+
"""
|
70
|
+
self._instance_id = instance_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def x_language(self):
|
74
|
+
"""Gets the x_language of this ShowClickHouseSlowLogSensitiveStatusRequest.
|
75
|
+
|
76
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
77
|
+
|
78
|
+
:return: The x_language of this ShowClickHouseSlowLogSensitiveStatusRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._x_language
|
82
|
+
|
83
|
+
@x_language.setter
|
84
|
+
def x_language(self, x_language):
|
85
|
+
"""Sets the x_language of this ShowClickHouseSlowLogSensitiveStatusRequest.
|
86
|
+
|
87
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
88
|
+
|
89
|
+
:param x_language: The x_language of this ShowClickHouseSlowLogSensitiveStatusRequest.
|
90
|
+
:type x_language: str
|
91
|
+
"""
|
92
|
+
self._x_language = x_language
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, ShowClickHouseSlowLogSensitiveStatusRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ShowClickHouseSlowLogSensitiveStatusResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'open_slow_log_switch': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'open_slow_log_switch': 'open_slow_log_switch'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, open_slow_log_switch=None):
|
29
|
+
"""ShowClickHouseSlowLogSensitiveStatusResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param open_slow_log_switch: 慢日志脱敏开关。
|
34
|
+
:type open_slow_log_switch: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowClickHouseSlowLogSensitiveStatusResponse, self).__init__()
|
38
|
+
|
39
|
+
self._open_slow_log_switch = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if open_slow_log_switch is not None:
|
43
|
+
self.open_slow_log_switch = open_slow_log_switch
|
44
|
+
|
45
|
+
@property
|
46
|
+
def open_slow_log_switch(self):
|
47
|
+
"""Gets the open_slow_log_switch of this ShowClickHouseSlowLogSensitiveStatusResponse.
|
48
|
+
|
49
|
+
慢日志脱敏开关。
|
50
|
+
|
51
|
+
:return: The open_slow_log_switch of this ShowClickHouseSlowLogSensitiveStatusResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._open_slow_log_switch
|
55
|
+
|
56
|
+
@open_slow_log_switch.setter
|
57
|
+
def open_slow_log_switch(self, open_slow_log_switch):
|
58
|
+
"""Sets the open_slow_log_switch of this ShowClickHouseSlowLogSensitiveStatusResponse.
|
59
|
+
|
60
|
+
慢日志脱敏开关。
|
61
|
+
|
62
|
+
:param open_slow_log_switch: The open_slow_log_switch of this ShowClickHouseSlowLogSensitiveStatusResponse.
|
63
|
+
:type open_slow_log_switch: str
|
64
|
+
"""
|
65
|
+
self._open_slow_log_switch = open_slow_log_switch
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, ShowClickHouseSlowLogSensitiveStatusResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -17,7 +17,7 @@ class SrCreateInstanceRspInstanceTagsInfo:
|
|
17
17
|
sensitive_list = []
|
18
18
|
|
19
19
|
openapi_types = {
|
20
|
-
'tags': 'list[
|
20
|
+
'tags': 'list[CreateChInstanceInfoTagsInfoTags]',
|
21
21
|
'sys_tags': 'list[SrCreateInstanceRspInstanceTagsInfoSysTags]'
|
22
22
|
}
|
23
23
|
|
@@ -32,7 +32,7 @@ class SrCreateInstanceRspInstanceTagsInfo:
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
34
|
:param tags: 用户标签。默认为空。
|
35
|
-
:type tags: list[:class:`huaweicloudsdkgaussdb.v3.
|
35
|
+
:type tags: list[:class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoTagsInfoTags`]
|
36
36
|
:param sys_tags: 系统标签。
|
37
37
|
:type sys_tags: list[:class:`huaweicloudsdkgaussdb.v3.SrCreateInstanceRspInstanceTagsInfoSysTags`]
|
38
38
|
"""
|
@@ -55,7 +55,7 @@ class SrCreateInstanceRspInstanceTagsInfo:
|
|
55
55
|
用户标签。默认为空。
|
56
56
|
|
57
57
|
:return: The tags of this SrCreateInstanceRspInstanceTagsInfo.
|
58
|
-
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.
|
58
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoTagsInfoTags`]
|
59
59
|
"""
|
60
60
|
return self._tags
|
61
61
|
|
@@ -66,7 +66,7 @@ class SrCreateInstanceRspInstanceTagsInfo:
|
|
66
66
|
用户标签。默认为空。
|
67
67
|
|
68
68
|
:param tags: The tags of this SrCreateInstanceRspInstanceTagsInfo.
|
69
|
-
:type tags: list[:class:`huaweicloudsdkgaussdb.v3.
|
69
|
+
:type tags: list[:class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoTagsInfoTags`]
|
70
70
|
"""
|
71
71
|
self._tags = tags
|
72
72
|
|
@@ -0,0 +1,199 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateChDatabaseConfigRequestBody:
|
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_instance_id': 'str',
|
21
|
+
'source_node_id': 'str',
|
22
|
+
'database': 'str',
|
23
|
+
'value': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'source_instance_id': 'source_instance_id',
|
28
|
+
'source_node_id': 'source_node_id',
|
29
|
+
'database': 'database',
|
30
|
+
'value': 'value'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, source_instance_id=None, source_node_id=None, database=None, value=None):
|
34
|
+
"""UpdateChDatabaseConfigRequestBody
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param source_instance_id: 源实例ID,严格匹配UUID规则。
|
39
|
+
:type source_instance_id: str
|
40
|
+
:param source_node_id: 源实例节点ID。
|
41
|
+
:type source_node_id: str
|
42
|
+
:param database: 数据库名。
|
43
|
+
:type database: str
|
44
|
+
:param value: 配置值。仅支持修改同步范围,不支持修改白名单或黑名单类型。 例如:创建了白名单数据同步,调用本接口修改时, 支持 \"value\":\"{\\\"white_list\\\":\\\"test1,test2,test3\\\"}\" 不支持 \"value\":\"{\\\"black_list\\\":\\\"test1,test2,test3\\\"}\"
|
45
|
+
:type value: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._source_instance_id = None
|
51
|
+
self._source_node_id = None
|
52
|
+
self._database = None
|
53
|
+
self._value = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.source_instance_id = source_instance_id
|
57
|
+
if source_node_id is not None:
|
58
|
+
self.source_node_id = source_node_id
|
59
|
+
self.database = database
|
60
|
+
self.value = value
|
61
|
+
|
62
|
+
@property
|
63
|
+
def source_instance_id(self):
|
64
|
+
"""Gets the source_instance_id of this UpdateChDatabaseConfigRequestBody.
|
65
|
+
|
66
|
+
源实例ID,严格匹配UUID规则。
|
67
|
+
|
68
|
+
:return: The source_instance_id of this UpdateChDatabaseConfigRequestBody.
|
69
|
+
:rtype: str
|
70
|
+
"""
|
71
|
+
return self._source_instance_id
|
72
|
+
|
73
|
+
@source_instance_id.setter
|
74
|
+
def source_instance_id(self, source_instance_id):
|
75
|
+
"""Sets the source_instance_id of this UpdateChDatabaseConfigRequestBody.
|
76
|
+
|
77
|
+
源实例ID,严格匹配UUID规则。
|
78
|
+
|
79
|
+
:param source_instance_id: The source_instance_id of this UpdateChDatabaseConfigRequestBody.
|
80
|
+
:type source_instance_id: str
|
81
|
+
"""
|
82
|
+
self._source_instance_id = source_instance_id
|
83
|
+
|
84
|
+
@property
|
85
|
+
def source_node_id(self):
|
86
|
+
"""Gets the source_node_id of this UpdateChDatabaseConfigRequestBody.
|
87
|
+
|
88
|
+
源实例节点ID。
|
89
|
+
|
90
|
+
:return: The source_node_id of this UpdateChDatabaseConfigRequestBody.
|
91
|
+
:rtype: str
|
92
|
+
"""
|
93
|
+
return self._source_node_id
|
94
|
+
|
95
|
+
@source_node_id.setter
|
96
|
+
def source_node_id(self, source_node_id):
|
97
|
+
"""Sets the source_node_id of this UpdateChDatabaseConfigRequestBody.
|
98
|
+
|
99
|
+
源实例节点ID。
|
100
|
+
|
101
|
+
:param source_node_id: The source_node_id of this UpdateChDatabaseConfigRequestBody.
|
102
|
+
:type source_node_id: str
|
103
|
+
"""
|
104
|
+
self._source_node_id = source_node_id
|
105
|
+
|
106
|
+
@property
|
107
|
+
def database(self):
|
108
|
+
"""Gets the database of this UpdateChDatabaseConfigRequestBody.
|
109
|
+
|
110
|
+
数据库名。
|
111
|
+
|
112
|
+
:return: The database of this UpdateChDatabaseConfigRequestBody.
|
113
|
+
:rtype: str
|
114
|
+
"""
|
115
|
+
return self._database
|
116
|
+
|
117
|
+
@database.setter
|
118
|
+
def database(self, database):
|
119
|
+
"""Sets the database of this UpdateChDatabaseConfigRequestBody.
|
120
|
+
|
121
|
+
数据库名。
|
122
|
+
|
123
|
+
:param database: The database of this UpdateChDatabaseConfigRequestBody.
|
124
|
+
:type database: str
|
125
|
+
"""
|
126
|
+
self._database = database
|
127
|
+
|
128
|
+
@property
|
129
|
+
def value(self):
|
130
|
+
"""Gets the value of this UpdateChDatabaseConfigRequestBody.
|
131
|
+
|
132
|
+
配置值。仅支持修改同步范围,不支持修改白名单或黑名单类型。 例如:创建了白名单数据同步,调用本接口修改时, 支持 \"value\":\"{\\\"white_list\\\":\\\"test1,test2,test3\\\"}\" 不支持 \"value\":\"{\\\"black_list\\\":\\\"test1,test2,test3\\\"}\"
|
133
|
+
|
134
|
+
:return: The value of this UpdateChDatabaseConfigRequestBody.
|
135
|
+
:rtype: str
|
136
|
+
"""
|
137
|
+
return self._value
|
138
|
+
|
139
|
+
@value.setter
|
140
|
+
def value(self, value):
|
141
|
+
"""Sets the value of this UpdateChDatabaseConfigRequestBody.
|
142
|
+
|
143
|
+
配置值。仅支持修改同步范围,不支持修改白名单或黑名单类型。 例如:创建了白名单数据同步,调用本接口修改时, 支持 \"value\":\"{\\\"white_list\\\":\\\"test1,test2,test3\\\"}\" 不支持 \"value\":\"{\\\"black_list\\\":\\\"test1,test2,test3\\\"}\"
|
144
|
+
|
145
|
+
:param value: The value of this UpdateChDatabaseConfigRequestBody.
|
146
|
+
:type value: str
|
147
|
+
"""
|
148
|
+
self._value = value
|
149
|
+
|
150
|
+
def to_dict(self):
|
151
|
+
"""Returns the model properties as a dict"""
|
152
|
+
result = {}
|
153
|
+
|
154
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
155
|
+
value = getattr(self, attr)
|
156
|
+
if isinstance(value, list):
|
157
|
+
result[attr] = list(map(
|
158
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
159
|
+
value
|
160
|
+
))
|
161
|
+
elif hasattr(value, "to_dict"):
|
162
|
+
result[attr] = value.to_dict()
|
163
|
+
elif isinstance(value, dict):
|
164
|
+
result[attr] = dict(map(
|
165
|
+
lambda item: (item[0], item[1].to_dict())
|
166
|
+
if hasattr(item[1], "to_dict") else item,
|
167
|
+
value.items()
|
168
|
+
))
|
169
|
+
else:
|
170
|
+
if attr in self.sensitive_list:
|
171
|
+
result[attr] = "****"
|
172
|
+
else:
|
173
|
+
result[attr] = value
|
174
|
+
|
175
|
+
return result
|
176
|
+
|
177
|
+
def to_str(self):
|
178
|
+
"""Returns the string representation of the model"""
|
179
|
+
import simplejson as json
|
180
|
+
if six.PY2:
|
181
|
+
import sys
|
182
|
+
reload(sys)
|
183
|
+
sys.setdefaultencoding("utf-8")
|
184
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
185
|
+
|
186
|
+
def __repr__(self):
|
187
|
+
"""For `print`"""
|
188
|
+
return self.to_str()
|
189
|
+
|
190
|
+
def __eq__(self, other):
|
191
|
+
"""Returns true if both objects are equal"""
|
192
|
+
if not isinstance(other, UpdateChDatabaseConfigRequestBody):
|
193
|
+
return False
|
194
|
+
|
195
|
+
return self.__dict__ == other.__dict__
|
196
|
+
|
197
|
+
def __ne__(self, other):
|
198
|
+
"""Returns true if both objects are not equal"""
|
199
|
+
return not self == other
|
@@ -0,0 +1,168 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateClickHouseDataBaseConfigRequest:
|
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
|
+
'instance_id': 'str',
|
21
|
+
'x_language': 'str',
|
22
|
+
'body': 'UpdateChDatabaseConfigRequestBody'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'instance_id': 'instance_id',
|
27
|
+
'x_language': 'X-Language',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, instance_id=None, x_language=None, body=None):
|
32
|
+
"""UpdateClickHouseDataBaseConfigRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param instance_id: ClickHouse实例ID,严格匹配UUID规则。
|
37
|
+
:type instance_id: str
|
38
|
+
:param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
39
|
+
:type x_language: str
|
40
|
+
:param body: Body of the UpdateClickHouseDataBaseConfigRequest
|
41
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.UpdateChDatabaseConfigRequestBody`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._instance_id = None
|
47
|
+
self._x_language = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.instance_id = instance_id
|
52
|
+
if x_language is not None:
|
53
|
+
self.x_language = x_language
|
54
|
+
if body is not None:
|
55
|
+
self.body = body
|
56
|
+
|
57
|
+
@property
|
58
|
+
def instance_id(self):
|
59
|
+
"""Gets the instance_id of this UpdateClickHouseDataBaseConfigRequest.
|
60
|
+
|
61
|
+
ClickHouse实例ID,严格匹配UUID规则。
|
62
|
+
|
63
|
+
:return: The instance_id of this UpdateClickHouseDataBaseConfigRequest.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._instance_id
|
67
|
+
|
68
|
+
@instance_id.setter
|
69
|
+
def instance_id(self, instance_id):
|
70
|
+
"""Sets the instance_id of this UpdateClickHouseDataBaseConfigRequest.
|
71
|
+
|
72
|
+
ClickHouse实例ID,严格匹配UUID规则。
|
73
|
+
|
74
|
+
:param instance_id: The instance_id of this UpdateClickHouseDataBaseConfigRequest.
|
75
|
+
:type instance_id: str
|
76
|
+
"""
|
77
|
+
self._instance_id = instance_id
|
78
|
+
|
79
|
+
@property
|
80
|
+
def x_language(self):
|
81
|
+
"""Gets the x_language of this UpdateClickHouseDataBaseConfigRequest.
|
82
|
+
|
83
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
84
|
+
|
85
|
+
:return: The x_language of this UpdateClickHouseDataBaseConfigRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._x_language
|
89
|
+
|
90
|
+
@x_language.setter
|
91
|
+
def x_language(self, x_language):
|
92
|
+
"""Sets the x_language of this UpdateClickHouseDataBaseConfigRequest.
|
93
|
+
|
94
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
95
|
+
|
96
|
+
:param x_language: The x_language of this UpdateClickHouseDataBaseConfigRequest.
|
97
|
+
:type x_language: str
|
98
|
+
"""
|
99
|
+
self._x_language = x_language
|
100
|
+
|
101
|
+
@property
|
102
|
+
def body(self):
|
103
|
+
"""Gets the body of this UpdateClickHouseDataBaseConfigRequest.
|
104
|
+
|
105
|
+
:return: The body of this UpdateClickHouseDataBaseConfigRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateChDatabaseConfigRequestBody`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
"""Sets the body of this UpdateClickHouseDataBaseConfigRequest.
|
113
|
+
|
114
|
+
:param body: The body of this UpdateClickHouseDataBaseConfigRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.UpdateChDatabaseConfigRequestBody`
|
116
|
+
"""
|
117
|
+
self._body = body
|
118
|
+
|
119
|
+
def to_dict(self):
|
120
|
+
"""Returns the model properties as a dict"""
|
121
|
+
result = {}
|
122
|
+
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
124
|
+
value = getattr(self, attr)
|
125
|
+
if isinstance(value, list):
|
126
|
+
result[attr] = list(map(
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
128
|
+
value
|
129
|
+
))
|
130
|
+
elif hasattr(value, "to_dict"):
|
131
|
+
result[attr] = value.to_dict()
|
132
|
+
elif isinstance(value, dict):
|
133
|
+
result[attr] = dict(map(
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
136
|
+
value.items()
|
137
|
+
))
|
138
|
+
else:
|
139
|
+
if attr in self.sensitive_list:
|
140
|
+
result[attr] = "****"
|
141
|
+
else:
|
142
|
+
result[attr] = value
|
143
|
+
|
144
|
+
return result
|
145
|
+
|
146
|
+
def to_str(self):
|
147
|
+
"""Returns the string representation of the model"""
|
148
|
+
import simplejson as json
|
149
|
+
if six.PY2:
|
150
|
+
import sys
|
151
|
+
reload(sys)
|
152
|
+
sys.setdefaultencoding("utf-8")
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
154
|
+
|
155
|
+
def __repr__(self):
|
156
|
+
"""For `print`"""
|
157
|
+
return self.to_str()
|
158
|
+
|
159
|
+
def __eq__(self, other):
|
160
|
+
"""Returns true if both objects are equal"""
|
161
|
+
if not isinstance(other, UpdateClickHouseDataBaseConfigRequest):
|
162
|
+
return False
|
163
|
+
|
164
|
+
return self.__dict__ == other.__dict__
|
165
|
+
|
166
|
+
def __ne__(self, other):
|
167
|
+
"""Returns true if both objects are not equal"""
|
168
|
+
return not self == other
|