huaweicloudsdkgaussdb 3.1.94__py2.py3-none-any.whl → 3.1.96__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 +97 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1591 -0
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1591 -0
- huaweicloudsdkgaussdb/v3/model/__init__.py +97 -0
- huaweicloudsdkgaussdb/v3/model/check_data_base_config_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/check_data_base_config_response.py +232 -0
- huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/check_table_config_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/check_table_config_response.py +203 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication.py +227 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_response.py +141 -0
- huaweicloudsdkgaussdb/v3/model/data_base_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/db_config.py +144 -0
- huaweicloudsdkgaussdb/v3/model/db_config_check_request_v3.py +285 -0
- huaweicloudsdkgaussdb/v3/model/db_config_check_result.py +173 -0
- huaweicloudsdkgaussdb/v3/model/db_parameter.py +231 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication.py +115 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/htap_flavor_info_flavors.py +318 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_available_zones.py +173 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_instance_state.py +202 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_instances.py +832 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_network.py +173 -0
- huaweicloudsdkgaussdb/v3/model/htap_storage_type_storage_type.py +173 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_data_store_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_data_store_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_flavor_request.py +230 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_flavor_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_request.py +229 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_request.py +170 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_response.py +336 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_request.py +200 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_request.py +142 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/param_group.py +144 -0
- huaweicloudsdkgaussdb/v3/model/query_action.py +318 -0
- huaweicloudsdkgaussdb/v3/model/readable_node_infos.py +173 -0
- huaweicloudsdkgaussdb/v3/model/resource_check.py +138 -0
- huaweicloudsdkgaussdb/v3/model/resource_check_resource.py +367 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_request.py +228 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_users_user_details.py +198 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance.py +538 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_engine.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_pay_info.py +231 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_sys_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_data_stores_datastores.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py +459 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_be_volume.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_engine.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_fe_volume.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_ha.py +114 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info.py +114 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info_sys_tags.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_info.py +228 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_sinfo.py +201 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_winfo.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_datastore.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_groups.py +231 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_instances.py +1292 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_nodes.py +1006 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_ops_window.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_port_info.py +115 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_sys_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_volume.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_replication_info.py +318 -0
- huaweicloudsdkgaussdb/v3/model/table_config_check_request_v3.py +285 -0
- huaweicloudsdkgaussdb/v3/model/table_config_check_result.py +173 -0
- huaweicloudsdkgaussdb/v3/model/table_repl_config.py +173 -0
- huaweicloudsdkgaussdb/v3/model/tables_config.py +144 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_response.py +116 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/RECORD +106 -9
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,171 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListHtapStorageTypeRequest:
|
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
|
+
'database': 'str',
|
21
|
+
'version_name': 'str',
|
22
|
+
'x_language': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'database': 'database',
|
27
|
+
'version_name': 'version_name',
|
28
|
+
'x_language': 'X-Language'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, database=None, version_name=None, x_language=None):
|
32
|
+
"""ListHtapStorageTypeRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param database: HTAP数据库名。 取值范围: - star-rocks - click-house
|
37
|
+
:type database: str
|
38
|
+
:param version_name: 数据库大版本号
|
39
|
+
:type version_name: str
|
40
|
+
:param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
41
|
+
:type x_language: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._database = None
|
47
|
+
self._version_name = None
|
48
|
+
self._x_language = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.database = database
|
52
|
+
self.version_name = version_name
|
53
|
+
if x_language is not None:
|
54
|
+
self.x_language = x_language
|
55
|
+
|
56
|
+
@property
|
57
|
+
def database(self):
|
58
|
+
"""Gets the database of this ListHtapStorageTypeRequest.
|
59
|
+
|
60
|
+
HTAP数据库名。 取值范围: - star-rocks - click-house
|
61
|
+
|
62
|
+
:return: The database of this ListHtapStorageTypeRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._database
|
66
|
+
|
67
|
+
@database.setter
|
68
|
+
def database(self, database):
|
69
|
+
"""Sets the database of this ListHtapStorageTypeRequest.
|
70
|
+
|
71
|
+
HTAP数据库名。 取值范围: - star-rocks - click-house
|
72
|
+
|
73
|
+
:param database: The database of this ListHtapStorageTypeRequest.
|
74
|
+
:type database: str
|
75
|
+
"""
|
76
|
+
self._database = database
|
77
|
+
|
78
|
+
@property
|
79
|
+
def version_name(self):
|
80
|
+
"""Gets the version_name of this ListHtapStorageTypeRequest.
|
81
|
+
|
82
|
+
数据库大版本号
|
83
|
+
|
84
|
+
:return: The version_name of this ListHtapStorageTypeRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._version_name
|
88
|
+
|
89
|
+
@version_name.setter
|
90
|
+
def version_name(self, version_name):
|
91
|
+
"""Sets the version_name of this ListHtapStorageTypeRequest.
|
92
|
+
|
93
|
+
数据库大版本号
|
94
|
+
|
95
|
+
:param version_name: The version_name of this ListHtapStorageTypeRequest.
|
96
|
+
:type version_name: str
|
97
|
+
"""
|
98
|
+
self._version_name = version_name
|
99
|
+
|
100
|
+
@property
|
101
|
+
def x_language(self):
|
102
|
+
"""Gets the x_language of this ListHtapStorageTypeRequest.
|
103
|
+
|
104
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
105
|
+
|
106
|
+
:return: The x_language of this ListHtapStorageTypeRequest.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._x_language
|
110
|
+
|
111
|
+
@x_language.setter
|
112
|
+
def x_language(self, x_language):
|
113
|
+
"""Sets the x_language of this ListHtapStorageTypeRequest.
|
114
|
+
|
115
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
116
|
+
|
117
|
+
:param x_language: The x_language of this ListHtapStorageTypeRequest.
|
118
|
+
:type x_language: str
|
119
|
+
"""
|
120
|
+
self._x_language = x_language
|
121
|
+
|
122
|
+
def to_dict(self):
|
123
|
+
"""Returns the model properties as a dict"""
|
124
|
+
result = {}
|
125
|
+
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
127
|
+
value = getattr(self, attr)
|
128
|
+
if isinstance(value, list):
|
129
|
+
result[attr] = list(map(
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
131
|
+
value
|
132
|
+
))
|
133
|
+
elif hasattr(value, "to_dict"):
|
134
|
+
result[attr] = value.to_dict()
|
135
|
+
elif isinstance(value, dict):
|
136
|
+
result[attr] = dict(map(
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
139
|
+
value.items()
|
140
|
+
))
|
141
|
+
else:
|
142
|
+
if attr in self.sensitive_list:
|
143
|
+
result[attr] = "****"
|
144
|
+
else:
|
145
|
+
result[attr] = value
|
146
|
+
|
147
|
+
return result
|
148
|
+
|
149
|
+
def to_str(self):
|
150
|
+
"""Returns the string representation of the model"""
|
151
|
+
import simplejson as json
|
152
|
+
if six.PY2:
|
153
|
+
import sys
|
154
|
+
reload(sys)
|
155
|
+
sys.setdefaultencoding("utf-8")
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
157
|
+
|
158
|
+
def __repr__(self):
|
159
|
+
"""For `print`"""
|
160
|
+
return self.to_str()
|
161
|
+
|
162
|
+
def __eq__(self, other):
|
163
|
+
"""Returns true if both objects are equal"""
|
164
|
+
if not isinstance(other, ListHtapStorageTypeRequest):
|
165
|
+
return False
|
166
|
+
|
167
|
+
return self.__dict__ == other.__dict__
|
168
|
+
|
169
|
+
def __ne__(self, other):
|
170
|
+
"""Returns true if both objects are not equal"""
|
171
|
+
return not self == other
|
@@ -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 ListHtapStorageTypeResponse(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
|
+
'storage_type': 'list[HtapStorageTypeStorageType]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'storage_type': 'storage_type'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, storage_type=None):
|
29
|
+
"""ListHtapStorageTypeResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param storage_type: 存储类型。
|
34
|
+
:type storage_type: list[:class:`huaweicloudsdkgaussdb.v3.HtapStorageTypeStorageType`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ListHtapStorageTypeResponse, self).__init__()
|
38
|
+
|
39
|
+
self._storage_type = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if storage_type is not None:
|
43
|
+
self.storage_type = storage_type
|
44
|
+
|
45
|
+
@property
|
46
|
+
def storage_type(self):
|
47
|
+
"""Gets the storage_type of this ListHtapStorageTypeResponse.
|
48
|
+
|
49
|
+
存储类型。
|
50
|
+
|
51
|
+
:return: The storage_type of this ListHtapStorageTypeResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.HtapStorageTypeStorageType`]
|
53
|
+
"""
|
54
|
+
return self._storage_type
|
55
|
+
|
56
|
+
@storage_type.setter
|
57
|
+
def storage_type(self, storage_type):
|
58
|
+
"""Sets the storage_type of this ListHtapStorageTypeResponse.
|
59
|
+
|
60
|
+
存储类型。
|
61
|
+
|
62
|
+
:param storage_type: The storage_type of this ListHtapStorageTypeResponse.
|
63
|
+
:type storage_type: list[:class:`huaweicloudsdkgaussdb.v3.HtapStorageTypeStorageType`]
|
64
|
+
"""
|
65
|
+
self._storage_type = storage_type
|
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, ListHtapStorageTypeResponse):
|
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,229 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListStarRocksDataBasesRequest:
|
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
|
+
'x_language': 'str',
|
21
|
+
'instance_id': 'str',
|
22
|
+
'limit': 'str',
|
23
|
+
'offset': 'str',
|
24
|
+
'database_name': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'x_language': 'X-Language',
|
29
|
+
'instance_id': 'instance_id',
|
30
|
+
'limit': 'limit',
|
31
|
+
'offset': 'offset',
|
32
|
+
'database_name': 'database_name'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, x_language=None, instance_id=None, limit=None, offset=None, database_name=None):
|
36
|
+
"""ListStarRocksDataBasesRequest
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
41
|
+
:type x_language: str
|
42
|
+
:param instance_id: StarRocks实例ID,严格匹配UUID规则。
|
43
|
+
:type instance_id: str
|
44
|
+
:param limit: 查询记录数
|
45
|
+
:type limit: str
|
46
|
+
:param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
47
|
+
:type offset: str
|
48
|
+
:param database_name: 查询的数据库名称,支持模糊搜索。
|
49
|
+
:type database_name: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._x_language = None
|
55
|
+
self._instance_id = None
|
56
|
+
self._limit = None
|
57
|
+
self._offset = None
|
58
|
+
self._database_name = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.x_language = x_language
|
62
|
+
self.instance_id = instance_id
|
63
|
+
if limit is not None:
|
64
|
+
self.limit = limit
|
65
|
+
if offset is not None:
|
66
|
+
self.offset = offset
|
67
|
+
if database_name is not None:
|
68
|
+
self.database_name = database_name
|
69
|
+
|
70
|
+
@property
|
71
|
+
def x_language(self):
|
72
|
+
"""Gets the x_language of this ListStarRocksDataBasesRequest.
|
73
|
+
|
74
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
75
|
+
|
76
|
+
:return: The x_language of this ListStarRocksDataBasesRequest.
|
77
|
+
:rtype: str
|
78
|
+
"""
|
79
|
+
return self._x_language
|
80
|
+
|
81
|
+
@x_language.setter
|
82
|
+
def x_language(self, x_language):
|
83
|
+
"""Sets the x_language of this ListStarRocksDataBasesRequest.
|
84
|
+
|
85
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
86
|
+
|
87
|
+
:param x_language: The x_language of this ListStarRocksDataBasesRequest.
|
88
|
+
:type x_language: str
|
89
|
+
"""
|
90
|
+
self._x_language = x_language
|
91
|
+
|
92
|
+
@property
|
93
|
+
def instance_id(self):
|
94
|
+
"""Gets the instance_id of this ListStarRocksDataBasesRequest.
|
95
|
+
|
96
|
+
StarRocks实例ID,严格匹配UUID规则。
|
97
|
+
|
98
|
+
:return: The instance_id of this ListStarRocksDataBasesRequest.
|
99
|
+
:rtype: str
|
100
|
+
"""
|
101
|
+
return self._instance_id
|
102
|
+
|
103
|
+
@instance_id.setter
|
104
|
+
def instance_id(self, instance_id):
|
105
|
+
"""Sets the instance_id of this ListStarRocksDataBasesRequest.
|
106
|
+
|
107
|
+
StarRocks实例ID,严格匹配UUID规则。
|
108
|
+
|
109
|
+
:param instance_id: The instance_id of this ListStarRocksDataBasesRequest.
|
110
|
+
:type instance_id: str
|
111
|
+
"""
|
112
|
+
self._instance_id = instance_id
|
113
|
+
|
114
|
+
@property
|
115
|
+
def limit(self):
|
116
|
+
"""Gets the limit of this ListStarRocksDataBasesRequest.
|
117
|
+
|
118
|
+
查询记录数
|
119
|
+
|
120
|
+
:return: The limit of this ListStarRocksDataBasesRequest.
|
121
|
+
:rtype: str
|
122
|
+
"""
|
123
|
+
return self._limit
|
124
|
+
|
125
|
+
@limit.setter
|
126
|
+
def limit(self, limit):
|
127
|
+
"""Sets the limit of this ListStarRocksDataBasesRequest.
|
128
|
+
|
129
|
+
查询记录数
|
130
|
+
|
131
|
+
:param limit: The limit of this ListStarRocksDataBasesRequest.
|
132
|
+
:type limit: str
|
133
|
+
"""
|
134
|
+
self._limit = limit
|
135
|
+
|
136
|
+
@property
|
137
|
+
def offset(self):
|
138
|
+
"""Gets the offset of this ListStarRocksDataBasesRequest.
|
139
|
+
|
140
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
141
|
+
|
142
|
+
:return: The offset of this ListStarRocksDataBasesRequest.
|
143
|
+
:rtype: str
|
144
|
+
"""
|
145
|
+
return self._offset
|
146
|
+
|
147
|
+
@offset.setter
|
148
|
+
def offset(self, offset):
|
149
|
+
"""Sets the offset of this ListStarRocksDataBasesRequest.
|
150
|
+
|
151
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
152
|
+
|
153
|
+
:param offset: The offset of this ListStarRocksDataBasesRequest.
|
154
|
+
:type offset: str
|
155
|
+
"""
|
156
|
+
self._offset = offset
|
157
|
+
|
158
|
+
@property
|
159
|
+
def database_name(self):
|
160
|
+
"""Gets the database_name of this ListStarRocksDataBasesRequest.
|
161
|
+
|
162
|
+
查询的数据库名称,支持模糊搜索。
|
163
|
+
|
164
|
+
:return: The database_name of this ListStarRocksDataBasesRequest.
|
165
|
+
:rtype: str
|
166
|
+
"""
|
167
|
+
return self._database_name
|
168
|
+
|
169
|
+
@database_name.setter
|
170
|
+
def database_name(self, database_name):
|
171
|
+
"""Sets the database_name of this ListStarRocksDataBasesRequest.
|
172
|
+
|
173
|
+
查询的数据库名称,支持模糊搜索。
|
174
|
+
|
175
|
+
:param database_name: The database_name of this ListStarRocksDataBasesRequest.
|
176
|
+
:type database_name: str
|
177
|
+
"""
|
178
|
+
self._database_name = database_name
|
179
|
+
|
180
|
+
def to_dict(self):
|
181
|
+
"""Returns the model properties as a dict"""
|
182
|
+
result = {}
|
183
|
+
|
184
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
185
|
+
value = getattr(self, attr)
|
186
|
+
if isinstance(value, list):
|
187
|
+
result[attr] = list(map(
|
188
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
189
|
+
value
|
190
|
+
))
|
191
|
+
elif hasattr(value, "to_dict"):
|
192
|
+
result[attr] = value.to_dict()
|
193
|
+
elif isinstance(value, dict):
|
194
|
+
result[attr] = dict(map(
|
195
|
+
lambda item: (item[0], item[1].to_dict())
|
196
|
+
if hasattr(item[1], "to_dict") else item,
|
197
|
+
value.items()
|
198
|
+
))
|
199
|
+
else:
|
200
|
+
if attr in self.sensitive_list:
|
201
|
+
result[attr] = "****"
|
202
|
+
else:
|
203
|
+
result[attr] = value
|
204
|
+
|
205
|
+
return result
|
206
|
+
|
207
|
+
def to_str(self):
|
208
|
+
"""Returns the string representation of the model"""
|
209
|
+
import simplejson as json
|
210
|
+
if six.PY2:
|
211
|
+
import sys
|
212
|
+
reload(sys)
|
213
|
+
sys.setdefaultencoding("utf-8")
|
214
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
215
|
+
|
216
|
+
def __repr__(self):
|
217
|
+
"""For `print`"""
|
218
|
+
return self.to_str()
|
219
|
+
|
220
|
+
def __eq__(self, other):
|
221
|
+
"""Returns true if both objects are equal"""
|
222
|
+
if not isinstance(other, ListStarRocksDataBasesRequest):
|
223
|
+
return False
|
224
|
+
|
225
|
+
return self.__dict__ == other.__dict__
|
226
|
+
|
227
|
+
def __ne__(self, other):
|
228
|
+
"""Returns true if both objects are not equal"""
|
229
|
+
return not self == other
|
@@ -0,0 +1,174 @@
|
|
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 ListStarRocksDataBasesResponse(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
|
+
'databases': 'list[str]',
|
22
|
+
'total_count': 'int',
|
23
|
+
'timestamp': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'databases': 'databases',
|
28
|
+
'total_count': 'total_count',
|
29
|
+
'timestamp': 'timestamp'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, databases=None, total_count=None, timestamp=None):
|
33
|
+
"""ListStarRocksDataBasesResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param databases: 数据库名称。
|
38
|
+
:type databases: list[str]
|
39
|
+
:param total_count: 数据库数量。
|
40
|
+
:type total_count: int
|
41
|
+
:param timestamp: 查询时间戳。
|
42
|
+
:type timestamp: int
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ListStarRocksDataBasesResponse, self).__init__()
|
46
|
+
|
47
|
+
self._databases = None
|
48
|
+
self._total_count = None
|
49
|
+
self._timestamp = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if databases is not None:
|
53
|
+
self.databases = databases
|
54
|
+
if total_count is not None:
|
55
|
+
self.total_count = total_count
|
56
|
+
if timestamp is not None:
|
57
|
+
self.timestamp = timestamp
|
58
|
+
|
59
|
+
@property
|
60
|
+
def databases(self):
|
61
|
+
"""Gets the databases of this ListStarRocksDataBasesResponse.
|
62
|
+
|
63
|
+
数据库名称。
|
64
|
+
|
65
|
+
:return: The databases of this ListStarRocksDataBasesResponse.
|
66
|
+
:rtype: list[str]
|
67
|
+
"""
|
68
|
+
return self._databases
|
69
|
+
|
70
|
+
@databases.setter
|
71
|
+
def databases(self, databases):
|
72
|
+
"""Sets the databases of this ListStarRocksDataBasesResponse.
|
73
|
+
|
74
|
+
数据库名称。
|
75
|
+
|
76
|
+
:param databases: The databases of this ListStarRocksDataBasesResponse.
|
77
|
+
:type databases: list[str]
|
78
|
+
"""
|
79
|
+
self._databases = databases
|
80
|
+
|
81
|
+
@property
|
82
|
+
def total_count(self):
|
83
|
+
"""Gets the total_count of this ListStarRocksDataBasesResponse.
|
84
|
+
|
85
|
+
数据库数量。
|
86
|
+
|
87
|
+
:return: The total_count of this ListStarRocksDataBasesResponse.
|
88
|
+
:rtype: int
|
89
|
+
"""
|
90
|
+
return self._total_count
|
91
|
+
|
92
|
+
@total_count.setter
|
93
|
+
def total_count(self, total_count):
|
94
|
+
"""Sets the total_count of this ListStarRocksDataBasesResponse.
|
95
|
+
|
96
|
+
数据库数量。
|
97
|
+
|
98
|
+
:param total_count: The total_count of this ListStarRocksDataBasesResponse.
|
99
|
+
:type total_count: int
|
100
|
+
"""
|
101
|
+
self._total_count = total_count
|
102
|
+
|
103
|
+
@property
|
104
|
+
def timestamp(self):
|
105
|
+
"""Gets the timestamp of this ListStarRocksDataBasesResponse.
|
106
|
+
|
107
|
+
查询时间戳。
|
108
|
+
|
109
|
+
:return: The timestamp of this ListStarRocksDataBasesResponse.
|
110
|
+
:rtype: int
|
111
|
+
"""
|
112
|
+
return self._timestamp
|
113
|
+
|
114
|
+
@timestamp.setter
|
115
|
+
def timestamp(self, timestamp):
|
116
|
+
"""Sets the timestamp of this ListStarRocksDataBasesResponse.
|
117
|
+
|
118
|
+
查询时间戳。
|
119
|
+
|
120
|
+
:param timestamp: The timestamp of this ListStarRocksDataBasesResponse.
|
121
|
+
:type timestamp: int
|
122
|
+
"""
|
123
|
+
self._timestamp = timestamp
|
124
|
+
|
125
|
+
def to_dict(self):
|
126
|
+
"""Returns the model properties as a dict"""
|
127
|
+
result = {}
|
128
|
+
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
130
|
+
value = getattr(self, attr)
|
131
|
+
if isinstance(value, list):
|
132
|
+
result[attr] = list(map(
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
134
|
+
value
|
135
|
+
))
|
136
|
+
elif hasattr(value, "to_dict"):
|
137
|
+
result[attr] = value.to_dict()
|
138
|
+
elif isinstance(value, dict):
|
139
|
+
result[attr] = dict(map(
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
142
|
+
value.items()
|
143
|
+
))
|
144
|
+
else:
|
145
|
+
if attr in self.sensitive_list:
|
146
|
+
result[attr] = "****"
|
147
|
+
else:
|
148
|
+
result[attr] = value
|
149
|
+
|
150
|
+
return result
|
151
|
+
|
152
|
+
def to_str(self):
|
153
|
+
"""Returns the string representation of the model"""
|
154
|
+
import simplejson as json
|
155
|
+
if six.PY2:
|
156
|
+
import sys
|
157
|
+
reload(sys)
|
158
|
+
sys.setdefaultencoding("utf-8")
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
160
|
+
|
161
|
+
def __repr__(self):
|
162
|
+
"""For `print`"""
|
163
|
+
return self.to_str()
|
164
|
+
|
165
|
+
def __eq__(self, other):
|
166
|
+
"""Returns true if both objects are equal"""
|
167
|
+
if not isinstance(other, ListStarRocksDataBasesResponse):
|
168
|
+
return False
|
169
|
+
|
170
|
+
return self.__dict__ == other.__dict__
|
171
|
+
|
172
|
+
def __ne__(self, other):
|
173
|
+
"""Returns true if both objects are not equal"""
|
174
|
+
return not self == other
|