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,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 UpdateClickHouseSlowLogSensitiveStatusResponse(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
|
+
"""UpdateClickHouseSlowLogSensitiveStatusResponse
|
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(UpdateClickHouseSlowLogSensitiveStatusResponse, 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 UpdateClickHouseSlowLogSensitiveStatusResponse.
|
48
|
+
|
49
|
+
慢日志脱敏开关。
|
50
|
+
|
51
|
+
:return: The open_slow_log_switch of this UpdateClickHouseSlowLogSensitiveStatusResponse.
|
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 UpdateClickHouseSlowLogSensitiveStatusResponse.
|
59
|
+
|
60
|
+
慢日志脱敏开关。
|
61
|
+
|
62
|
+
:param open_slow_log_switch: The open_slow_log_switch of this UpdateClickHouseSlowLogSensitiveStatusResponse.
|
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, UpdateClickHouseSlowLogSensitiveStatusResponse):
|
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
|
@@ -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 UpdateParamInfo:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'node_type': 'str',
|
21
|
+
'parameter_values': 'dict(str, str)'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'node_type': 'node_type',
|
26
|
+
'parameter_values': 'parameter_values'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, node_type=None, parameter_values=None):
|
30
|
+
"""UpdateParamInfo
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param node_type: 节点类型。取值范围: - be - fe
|
35
|
+
:type node_type: str
|
36
|
+
:param parameter_values: 参数名和参数值映射关系。用户可以基于默认参数模板的参数,自定义的参数值。不传入该参数,则保持原参数信息。
|
37
|
+
:type parameter_values: dict(str, str)
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._node_type = None
|
43
|
+
self._parameter_values = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.node_type = node_type
|
47
|
+
self.parameter_values = parameter_values
|
48
|
+
|
49
|
+
@property
|
50
|
+
def node_type(self):
|
51
|
+
"""Gets the node_type of this UpdateParamInfo.
|
52
|
+
|
53
|
+
节点类型。取值范围: - be - fe
|
54
|
+
|
55
|
+
:return: The node_type of this UpdateParamInfo.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._node_type
|
59
|
+
|
60
|
+
@node_type.setter
|
61
|
+
def node_type(self, node_type):
|
62
|
+
"""Sets the node_type of this UpdateParamInfo.
|
63
|
+
|
64
|
+
节点类型。取值范围: - be - fe
|
65
|
+
|
66
|
+
:param node_type: The node_type of this UpdateParamInfo.
|
67
|
+
:type node_type: str
|
68
|
+
"""
|
69
|
+
self._node_type = node_type
|
70
|
+
|
71
|
+
@property
|
72
|
+
def parameter_values(self):
|
73
|
+
"""Gets the parameter_values of this UpdateParamInfo.
|
74
|
+
|
75
|
+
参数名和参数值映射关系。用户可以基于默认参数模板的参数,自定义的参数值。不传入该参数,则保持原参数信息。
|
76
|
+
|
77
|
+
:return: The parameter_values of this UpdateParamInfo.
|
78
|
+
:rtype: dict(str, str)
|
79
|
+
"""
|
80
|
+
return self._parameter_values
|
81
|
+
|
82
|
+
@parameter_values.setter
|
83
|
+
def parameter_values(self, parameter_values):
|
84
|
+
"""Sets the parameter_values of this UpdateParamInfo.
|
85
|
+
|
86
|
+
参数名和参数值映射关系。用户可以基于默认参数模板的参数,自定义的参数值。不传入该参数,则保持原参数信息。
|
87
|
+
|
88
|
+
:param parameter_values: The parameter_values of this UpdateParamInfo.
|
89
|
+
:type parameter_values: dict(str, str)
|
90
|
+
"""
|
91
|
+
self._parameter_values = parameter_values
|
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, UpdateParamInfo):
|
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,168 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateStarrocksParamsRequest:
|
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': 'UpdateParamInfo'
|
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
|
+
"""UpdateStarrocksParamsRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param instance_id: 实例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 UpdateStarrocksParamsRequest
|
41
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.UpdateParamInfo`
|
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 UpdateStarrocksParamsRequest.
|
60
|
+
|
61
|
+
实例ID,严格匹配UUID规则。
|
62
|
+
|
63
|
+
:return: The instance_id of this UpdateStarrocksParamsRequest.
|
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 UpdateStarrocksParamsRequest.
|
71
|
+
|
72
|
+
实例ID,严格匹配UUID规则。
|
73
|
+
|
74
|
+
:param instance_id: The instance_id of this UpdateStarrocksParamsRequest.
|
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 UpdateStarrocksParamsRequest.
|
82
|
+
|
83
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
84
|
+
|
85
|
+
:return: The x_language of this UpdateStarrocksParamsRequest.
|
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 UpdateStarrocksParamsRequest.
|
93
|
+
|
94
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
95
|
+
|
96
|
+
:param x_language: The x_language of this UpdateStarrocksParamsRequest.
|
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 UpdateStarrocksParamsRequest.
|
104
|
+
|
105
|
+
:return: The body of this UpdateStarrocksParamsRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateParamInfo`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
"""Sets the body of this UpdateStarrocksParamsRequest.
|
113
|
+
|
114
|
+
:param body: The body of this UpdateStarrocksParamsRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.UpdateParamInfo`
|
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, UpdateStarrocksParamsRequest):
|
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
|
@@ -0,0 +1,145 @@
|
|
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 UpdateStarrocksParamsResponse(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
|
+
'job_id': 'str',
|
22
|
+
'restart_required': 'bool'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'job_id': 'job_id',
|
27
|
+
'restart_required': 'restart_required'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, job_id=None, restart_required=None):
|
31
|
+
"""UpdateStarrocksParamsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param job_id: 修改指定实例参数的任务ID。
|
36
|
+
:type job_id: str
|
37
|
+
:param restart_required: 是否需要重启。 true:是。 false:否。
|
38
|
+
:type restart_required: bool
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(UpdateStarrocksParamsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._job_id = None
|
44
|
+
self._restart_required = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if job_id is not None:
|
48
|
+
self.job_id = job_id
|
49
|
+
if restart_required is not None:
|
50
|
+
self.restart_required = restart_required
|
51
|
+
|
52
|
+
@property
|
53
|
+
def job_id(self):
|
54
|
+
"""Gets the job_id of this UpdateStarrocksParamsResponse.
|
55
|
+
|
56
|
+
修改指定实例参数的任务ID。
|
57
|
+
|
58
|
+
:return: The job_id of this UpdateStarrocksParamsResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._job_id
|
62
|
+
|
63
|
+
@job_id.setter
|
64
|
+
def job_id(self, job_id):
|
65
|
+
"""Sets the job_id of this UpdateStarrocksParamsResponse.
|
66
|
+
|
67
|
+
修改指定实例参数的任务ID。
|
68
|
+
|
69
|
+
:param job_id: The job_id of this UpdateStarrocksParamsResponse.
|
70
|
+
:type job_id: str
|
71
|
+
"""
|
72
|
+
self._job_id = job_id
|
73
|
+
|
74
|
+
@property
|
75
|
+
def restart_required(self):
|
76
|
+
"""Gets the restart_required of this UpdateStarrocksParamsResponse.
|
77
|
+
|
78
|
+
是否需要重启。 true:是。 false:否。
|
79
|
+
|
80
|
+
:return: The restart_required of this UpdateStarrocksParamsResponse.
|
81
|
+
:rtype: bool
|
82
|
+
"""
|
83
|
+
return self._restart_required
|
84
|
+
|
85
|
+
@restart_required.setter
|
86
|
+
def restart_required(self, restart_required):
|
87
|
+
"""Sets the restart_required of this UpdateStarrocksParamsResponse.
|
88
|
+
|
89
|
+
是否需要重启。 true:是。 false:否。
|
90
|
+
|
91
|
+
:param restart_required: The restart_required of this UpdateStarrocksParamsResponse.
|
92
|
+
:type restart_required: bool
|
93
|
+
"""
|
94
|
+
self._restart_required = restart_required
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, UpdateStarrocksParamsResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
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 UserSyncReq:
|
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
|
+
'action': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'action': 'action'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, action=None):
|
28
|
+
"""UserSyncReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param action: StarRocks账号同步动作。
|
33
|
+
:type action: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._action = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.action = action
|
42
|
+
|
43
|
+
@property
|
44
|
+
def action(self):
|
45
|
+
"""Gets the action of this UserSyncReq.
|
46
|
+
|
47
|
+
StarRocks账号同步动作。
|
48
|
+
|
49
|
+
:return: The action of this UserSyncReq.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._action
|
53
|
+
|
54
|
+
@action.setter
|
55
|
+
def action(self, action):
|
56
|
+
"""Sets the action of this UserSyncReq.
|
57
|
+
|
58
|
+
StarRocks账号同步动作。
|
59
|
+
|
60
|
+
:param action: The action of this UserSyncReq.
|
61
|
+
:type action: str
|
62
|
+
"""
|
63
|
+
self._action = action
|
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, UserSyncReq):
|
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
|
{huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkgaussdb
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.104
|
4
4
|
Summary: GaussDB
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
6
6
|
Author: HuaweiCloud SDK
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
23
23
|
Description-Content-Type: text/markdown
|
24
24
|
License-File: LICENSE
|
25
|
-
Requires-Dist: huaweicloudsdkcore >=3.1.
|
25
|
+
Requires-Dist: huaweicloudsdkcore >=3.1.104
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|