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,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SrDataStoresDatastores:
|
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
|
+
'id': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'kernel_version': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'id': 'id',
|
27
|
+
'name': 'name',
|
28
|
+
'kernel_version': 'kernel_version'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, id=None, name=None, kernel_version=None):
|
32
|
+
"""SrDataStoresDatastores
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param id: 数据库版本ID,该字段不会有重复。
|
37
|
+
:type id: str
|
38
|
+
:param name: 数据库版本号,只返回两位数的大版本号。
|
39
|
+
:type name: str
|
40
|
+
:param kernel_version: 数据库内核版本号,返回完整的四位版本号。
|
41
|
+
:type kernel_version: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._id = None
|
47
|
+
self._name = None
|
48
|
+
self._kernel_version = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if id is not None:
|
52
|
+
self.id = id
|
53
|
+
if name is not None:
|
54
|
+
self.name = name
|
55
|
+
if kernel_version is not None:
|
56
|
+
self.kernel_version = kernel_version
|
57
|
+
|
58
|
+
@property
|
59
|
+
def id(self):
|
60
|
+
"""Gets the id of this SrDataStoresDatastores.
|
61
|
+
|
62
|
+
数据库版本ID,该字段不会有重复。
|
63
|
+
|
64
|
+
:return: The id of this SrDataStoresDatastores.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._id
|
68
|
+
|
69
|
+
@id.setter
|
70
|
+
def id(self, id):
|
71
|
+
"""Sets the id of this SrDataStoresDatastores.
|
72
|
+
|
73
|
+
数据库版本ID,该字段不会有重复。
|
74
|
+
|
75
|
+
:param id: The id of this SrDataStoresDatastores.
|
76
|
+
:type id: str
|
77
|
+
"""
|
78
|
+
self._id = id
|
79
|
+
|
80
|
+
@property
|
81
|
+
def name(self):
|
82
|
+
"""Gets the name of this SrDataStoresDatastores.
|
83
|
+
|
84
|
+
数据库版本号,只返回两位数的大版本号。
|
85
|
+
|
86
|
+
:return: The name of this SrDataStoresDatastores.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._name
|
90
|
+
|
91
|
+
@name.setter
|
92
|
+
def name(self, name):
|
93
|
+
"""Sets the name of this SrDataStoresDatastores.
|
94
|
+
|
95
|
+
数据库版本号,只返回两位数的大版本号。
|
96
|
+
|
97
|
+
:param name: The name of this SrDataStoresDatastores.
|
98
|
+
:type name: str
|
99
|
+
"""
|
100
|
+
self._name = name
|
101
|
+
|
102
|
+
@property
|
103
|
+
def kernel_version(self):
|
104
|
+
"""Gets the kernel_version of this SrDataStoresDatastores.
|
105
|
+
|
106
|
+
数据库内核版本号,返回完整的四位版本号。
|
107
|
+
|
108
|
+
:return: The kernel_version of this SrDataStoresDatastores.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._kernel_version
|
112
|
+
|
113
|
+
@kernel_version.setter
|
114
|
+
def kernel_version(self, kernel_version):
|
115
|
+
"""Sets the kernel_version of this SrDataStoresDatastores.
|
116
|
+
|
117
|
+
数据库内核版本号,返回完整的四位版本号。
|
118
|
+
|
119
|
+
:param kernel_version: The kernel_version of this SrDataStoresDatastores.
|
120
|
+
:type kernel_version: str
|
121
|
+
"""
|
122
|
+
self._kernel_version = kernel_version
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, SrDataStoresDatastores):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -0,0 +1,459 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class StarRocksCreateRequest:
|
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
|
+
'name': 'str',
|
21
|
+
'engine': 'StarRocksCreateRequestEngine',
|
22
|
+
'ha': 'StarRocksCreateRequestHa',
|
23
|
+
'fe_flavor_id': 'str',
|
24
|
+
'be_flavor_id': 'str',
|
25
|
+
'db_root_pwd': 'str',
|
26
|
+
'fe_count': 'int',
|
27
|
+
'be_count': 'int',
|
28
|
+
'az_mode': 'str',
|
29
|
+
'fe_volume': 'StarRocksCreateRequestFeVolume',
|
30
|
+
'be_volume': 'StarRocksCreateRequestBeVolume',
|
31
|
+
'az_code': 'str',
|
32
|
+
'time_zone': 'str',
|
33
|
+
'tags_info': 'StarRocksCreateRequestTagsInfo'
|
34
|
+
}
|
35
|
+
|
36
|
+
attribute_map = {
|
37
|
+
'name': 'name',
|
38
|
+
'engine': 'engine',
|
39
|
+
'ha': 'ha',
|
40
|
+
'fe_flavor_id': 'fe_flavor_id',
|
41
|
+
'be_flavor_id': 'be_flavor_id',
|
42
|
+
'db_root_pwd': 'db_root_pwd',
|
43
|
+
'fe_count': 'fe_count',
|
44
|
+
'be_count': 'be_count',
|
45
|
+
'az_mode': 'az_mode',
|
46
|
+
'fe_volume': 'fe_volume',
|
47
|
+
'be_volume': 'be_volume',
|
48
|
+
'az_code': 'az_code',
|
49
|
+
'time_zone': 'time_zone',
|
50
|
+
'tags_info': 'tags_info'
|
51
|
+
}
|
52
|
+
|
53
|
+
def __init__(self, name=None, engine=None, ha=None, fe_flavor_id=None, be_flavor_id=None, db_root_pwd=None, fe_count=None, be_count=None, az_mode=None, fe_volume=None, be_volume=None, az_code=None, time_zone=None, tags_info=None):
|
54
|
+
"""StarRocksCreateRequest
|
55
|
+
|
56
|
+
The model defined in huaweicloud sdk
|
57
|
+
|
58
|
+
:param name: 实例名称。同一租户下,同类型的实例名可重名。 取值范围:最小为4个字符,最大为64个字符且不超过64个字节,必须以字母开头,区分大小写,可以包含字母、数字、中划线、下划线,不能包含其他特殊字符。不支持中文名。
|
59
|
+
:type name: str
|
60
|
+
:param engine:
|
61
|
+
:type engine: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestEngine`
|
62
|
+
:param ha:
|
63
|
+
:type ha: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestHa`
|
64
|
+
:param fe_flavor_id: FE节点规格ID。使用可通过查询HTAP规格响应消息中的“id”。
|
65
|
+
:type fe_flavor_id: str
|
66
|
+
:param be_flavor_id: BE节点规格ID。使用可通过查询HTAP规格响应消息中的“id”。
|
67
|
+
:type be_flavor_id: str
|
68
|
+
:param db_root_pwd: 数据库密码。 取值范围:至少包含以下字符的三种:大小写字母、数字和特殊符号~!@#$%^*-_=+?,()&|.,长度8~32个字符。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。如果您输入弱密码,系统会自动判定密码非法。
|
69
|
+
:type db_root_pwd: str
|
70
|
+
:param fe_count: FE节点数。 - 单机时固定为1 - 集群时取值[3, 10]
|
71
|
+
:type fe_count: int
|
72
|
+
:param be_count: BE节点数。 - 单机时固定为1 - 集群时取值[3, 10]
|
73
|
+
:type be_count: int
|
74
|
+
:param az_mode: 可用区类型。 当前仅支持single。
|
75
|
+
:type az_mode: str
|
76
|
+
:param fe_volume:
|
77
|
+
:type fe_volume: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestFeVolume`
|
78
|
+
:param be_volume:
|
79
|
+
:type be_volume: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestBeVolume`
|
80
|
+
:param az_code: 可用区代码。
|
81
|
+
:type az_code: str
|
82
|
+
:param time_zone: 时区。默认时区为UTC+08:00。
|
83
|
+
:type time_zone: str
|
84
|
+
:param tags_info:
|
85
|
+
:type tags_info: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestTagsInfo`
|
86
|
+
"""
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
self._name = None
|
91
|
+
self._engine = None
|
92
|
+
self._ha = None
|
93
|
+
self._fe_flavor_id = None
|
94
|
+
self._be_flavor_id = None
|
95
|
+
self._db_root_pwd = None
|
96
|
+
self._fe_count = None
|
97
|
+
self._be_count = None
|
98
|
+
self._az_mode = None
|
99
|
+
self._fe_volume = None
|
100
|
+
self._be_volume = None
|
101
|
+
self._az_code = None
|
102
|
+
self._time_zone = None
|
103
|
+
self._tags_info = None
|
104
|
+
self.discriminator = None
|
105
|
+
|
106
|
+
self.name = name
|
107
|
+
self.engine = engine
|
108
|
+
self.ha = ha
|
109
|
+
self.fe_flavor_id = fe_flavor_id
|
110
|
+
self.be_flavor_id = be_flavor_id
|
111
|
+
self.db_root_pwd = db_root_pwd
|
112
|
+
self.fe_count = fe_count
|
113
|
+
self.be_count = be_count
|
114
|
+
self.az_mode = az_mode
|
115
|
+
self.fe_volume = fe_volume
|
116
|
+
self.be_volume = be_volume
|
117
|
+
self.az_code = az_code
|
118
|
+
if time_zone is not None:
|
119
|
+
self.time_zone = time_zone
|
120
|
+
self.tags_info = tags_info
|
121
|
+
|
122
|
+
@property
|
123
|
+
def name(self):
|
124
|
+
"""Gets the name of this StarRocksCreateRequest.
|
125
|
+
|
126
|
+
实例名称。同一租户下,同类型的实例名可重名。 取值范围:最小为4个字符,最大为64个字符且不超过64个字节,必须以字母开头,区分大小写,可以包含字母、数字、中划线、下划线,不能包含其他特殊字符。不支持中文名。
|
127
|
+
|
128
|
+
:return: The name of this StarRocksCreateRequest.
|
129
|
+
:rtype: str
|
130
|
+
"""
|
131
|
+
return self._name
|
132
|
+
|
133
|
+
@name.setter
|
134
|
+
def name(self, name):
|
135
|
+
"""Sets the name of this StarRocksCreateRequest.
|
136
|
+
|
137
|
+
实例名称。同一租户下,同类型的实例名可重名。 取值范围:最小为4个字符,最大为64个字符且不超过64个字节,必须以字母开头,区分大小写,可以包含字母、数字、中划线、下划线,不能包含其他特殊字符。不支持中文名。
|
138
|
+
|
139
|
+
:param name: The name of this StarRocksCreateRequest.
|
140
|
+
:type name: str
|
141
|
+
"""
|
142
|
+
self._name = name
|
143
|
+
|
144
|
+
@property
|
145
|
+
def engine(self):
|
146
|
+
"""Gets the engine of this StarRocksCreateRequest.
|
147
|
+
|
148
|
+
:return: The engine of this StarRocksCreateRequest.
|
149
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestEngine`
|
150
|
+
"""
|
151
|
+
return self._engine
|
152
|
+
|
153
|
+
@engine.setter
|
154
|
+
def engine(self, engine):
|
155
|
+
"""Sets the engine of this StarRocksCreateRequest.
|
156
|
+
|
157
|
+
:param engine: The engine of this StarRocksCreateRequest.
|
158
|
+
:type engine: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestEngine`
|
159
|
+
"""
|
160
|
+
self._engine = engine
|
161
|
+
|
162
|
+
@property
|
163
|
+
def ha(self):
|
164
|
+
"""Gets the ha of this StarRocksCreateRequest.
|
165
|
+
|
166
|
+
:return: The ha of this StarRocksCreateRequest.
|
167
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestHa`
|
168
|
+
"""
|
169
|
+
return self._ha
|
170
|
+
|
171
|
+
@ha.setter
|
172
|
+
def ha(self, ha):
|
173
|
+
"""Sets the ha of this StarRocksCreateRequest.
|
174
|
+
|
175
|
+
:param ha: The ha of this StarRocksCreateRequest.
|
176
|
+
:type ha: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestHa`
|
177
|
+
"""
|
178
|
+
self._ha = ha
|
179
|
+
|
180
|
+
@property
|
181
|
+
def fe_flavor_id(self):
|
182
|
+
"""Gets the fe_flavor_id of this StarRocksCreateRequest.
|
183
|
+
|
184
|
+
FE节点规格ID。使用可通过查询HTAP规格响应消息中的“id”。
|
185
|
+
|
186
|
+
:return: The fe_flavor_id of this StarRocksCreateRequest.
|
187
|
+
:rtype: str
|
188
|
+
"""
|
189
|
+
return self._fe_flavor_id
|
190
|
+
|
191
|
+
@fe_flavor_id.setter
|
192
|
+
def fe_flavor_id(self, fe_flavor_id):
|
193
|
+
"""Sets the fe_flavor_id of this StarRocksCreateRequest.
|
194
|
+
|
195
|
+
FE节点规格ID。使用可通过查询HTAP规格响应消息中的“id”。
|
196
|
+
|
197
|
+
:param fe_flavor_id: The fe_flavor_id of this StarRocksCreateRequest.
|
198
|
+
:type fe_flavor_id: str
|
199
|
+
"""
|
200
|
+
self._fe_flavor_id = fe_flavor_id
|
201
|
+
|
202
|
+
@property
|
203
|
+
def be_flavor_id(self):
|
204
|
+
"""Gets the be_flavor_id of this StarRocksCreateRequest.
|
205
|
+
|
206
|
+
BE节点规格ID。使用可通过查询HTAP规格响应消息中的“id”。
|
207
|
+
|
208
|
+
:return: The be_flavor_id of this StarRocksCreateRequest.
|
209
|
+
:rtype: str
|
210
|
+
"""
|
211
|
+
return self._be_flavor_id
|
212
|
+
|
213
|
+
@be_flavor_id.setter
|
214
|
+
def be_flavor_id(self, be_flavor_id):
|
215
|
+
"""Sets the be_flavor_id of this StarRocksCreateRequest.
|
216
|
+
|
217
|
+
BE节点规格ID。使用可通过查询HTAP规格响应消息中的“id”。
|
218
|
+
|
219
|
+
:param be_flavor_id: The be_flavor_id of this StarRocksCreateRequest.
|
220
|
+
:type be_flavor_id: str
|
221
|
+
"""
|
222
|
+
self._be_flavor_id = be_flavor_id
|
223
|
+
|
224
|
+
@property
|
225
|
+
def db_root_pwd(self):
|
226
|
+
"""Gets the db_root_pwd of this StarRocksCreateRequest.
|
227
|
+
|
228
|
+
数据库密码。 取值范围:至少包含以下字符的三种:大小写字母、数字和特殊符号~!@#$%^*-_=+?,()&|.,长度8~32个字符。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。如果您输入弱密码,系统会自动判定密码非法。
|
229
|
+
|
230
|
+
:return: The db_root_pwd of this StarRocksCreateRequest.
|
231
|
+
:rtype: str
|
232
|
+
"""
|
233
|
+
return self._db_root_pwd
|
234
|
+
|
235
|
+
@db_root_pwd.setter
|
236
|
+
def db_root_pwd(self, db_root_pwd):
|
237
|
+
"""Sets the db_root_pwd of this StarRocksCreateRequest.
|
238
|
+
|
239
|
+
数据库密码。 取值范围:至少包含以下字符的三种:大小写字母、数字和特殊符号~!@#$%^*-_=+?,()&|.,长度8~32个字符。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。如果您输入弱密码,系统会自动判定密码非法。
|
240
|
+
|
241
|
+
:param db_root_pwd: The db_root_pwd of this StarRocksCreateRequest.
|
242
|
+
:type db_root_pwd: str
|
243
|
+
"""
|
244
|
+
self._db_root_pwd = db_root_pwd
|
245
|
+
|
246
|
+
@property
|
247
|
+
def fe_count(self):
|
248
|
+
"""Gets the fe_count of this StarRocksCreateRequest.
|
249
|
+
|
250
|
+
FE节点数。 - 单机时固定为1 - 集群时取值[3, 10]
|
251
|
+
|
252
|
+
:return: The fe_count of this StarRocksCreateRequest.
|
253
|
+
:rtype: int
|
254
|
+
"""
|
255
|
+
return self._fe_count
|
256
|
+
|
257
|
+
@fe_count.setter
|
258
|
+
def fe_count(self, fe_count):
|
259
|
+
"""Sets the fe_count of this StarRocksCreateRequest.
|
260
|
+
|
261
|
+
FE节点数。 - 单机时固定为1 - 集群时取值[3, 10]
|
262
|
+
|
263
|
+
:param fe_count: The fe_count of this StarRocksCreateRequest.
|
264
|
+
:type fe_count: int
|
265
|
+
"""
|
266
|
+
self._fe_count = fe_count
|
267
|
+
|
268
|
+
@property
|
269
|
+
def be_count(self):
|
270
|
+
"""Gets the be_count of this StarRocksCreateRequest.
|
271
|
+
|
272
|
+
BE节点数。 - 单机时固定为1 - 集群时取值[3, 10]
|
273
|
+
|
274
|
+
:return: The be_count of this StarRocksCreateRequest.
|
275
|
+
:rtype: int
|
276
|
+
"""
|
277
|
+
return self._be_count
|
278
|
+
|
279
|
+
@be_count.setter
|
280
|
+
def be_count(self, be_count):
|
281
|
+
"""Sets the be_count of this StarRocksCreateRequest.
|
282
|
+
|
283
|
+
BE节点数。 - 单机时固定为1 - 集群时取值[3, 10]
|
284
|
+
|
285
|
+
:param be_count: The be_count of this StarRocksCreateRequest.
|
286
|
+
:type be_count: int
|
287
|
+
"""
|
288
|
+
self._be_count = be_count
|
289
|
+
|
290
|
+
@property
|
291
|
+
def az_mode(self):
|
292
|
+
"""Gets the az_mode of this StarRocksCreateRequest.
|
293
|
+
|
294
|
+
可用区类型。 当前仅支持single。
|
295
|
+
|
296
|
+
:return: The az_mode of this StarRocksCreateRequest.
|
297
|
+
:rtype: str
|
298
|
+
"""
|
299
|
+
return self._az_mode
|
300
|
+
|
301
|
+
@az_mode.setter
|
302
|
+
def az_mode(self, az_mode):
|
303
|
+
"""Sets the az_mode of this StarRocksCreateRequest.
|
304
|
+
|
305
|
+
可用区类型。 当前仅支持single。
|
306
|
+
|
307
|
+
:param az_mode: The az_mode of this StarRocksCreateRequest.
|
308
|
+
:type az_mode: str
|
309
|
+
"""
|
310
|
+
self._az_mode = az_mode
|
311
|
+
|
312
|
+
@property
|
313
|
+
def fe_volume(self):
|
314
|
+
"""Gets the fe_volume of this StarRocksCreateRequest.
|
315
|
+
|
316
|
+
:return: The fe_volume of this StarRocksCreateRequest.
|
317
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestFeVolume`
|
318
|
+
"""
|
319
|
+
return self._fe_volume
|
320
|
+
|
321
|
+
@fe_volume.setter
|
322
|
+
def fe_volume(self, fe_volume):
|
323
|
+
"""Sets the fe_volume of this StarRocksCreateRequest.
|
324
|
+
|
325
|
+
:param fe_volume: The fe_volume of this StarRocksCreateRequest.
|
326
|
+
:type fe_volume: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestFeVolume`
|
327
|
+
"""
|
328
|
+
self._fe_volume = fe_volume
|
329
|
+
|
330
|
+
@property
|
331
|
+
def be_volume(self):
|
332
|
+
"""Gets the be_volume of this StarRocksCreateRequest.
|
333
|
+
|
334
|
+
:return: The be_volume of this StarRocksCreateRequest.
|
335
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestBeVolume`
|
336
|
+
"""
|
337
|
+
return self._be_volume
|
338
|
+
|
339
|
+
@be_volume.setter
|
340
|
+
def be_volume(self, be_volume):
|
341
|
+
"""Sets the be_volume of this StarRocksCreateRequest.
|
342
|
+
|
343
|
+
:param be_volume: The be_volume of this StarRocksCreateRequest.
|
344
|
+
:type be_volume: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestBeVolume`
|
345
|
+
"""
|
346
|
+
self._be_volume = be_volume
|
347
|
+
|
348
|
+
@property
|
349
|
+
def az_code(self):
|
350
|
+
"""Gets the az_code of this StarRocksCreateRequest.
|
351
|
+
|
352
|
+
可用区代码。
|
353
|
+
|
354
|
+
:return: The az_code of this StarRocksCreateRequest.
|
355
|
+
:rtype: str
|
356
|
+
"""
|
357
|
+
return self._az_code
|
358
|
+
|
359
|
+
@az_code.setter
|
360
|
+
def az_code(self, az_code):
|
361
|
+
"""Sets the az_code of this StarRocksCreateRequest.
|
362
|
+
|
363
|
+
可用区代码。
|
364
|
+
|
365
|
+
:param az_code: The az_code of this StarRocksCreateRequest.
|
366
|
+
:type az_code: str
|
367
|
+
"""
|
368
|
+
self._az_code = az_code
|
369
|
+
|
370
|
+
@property
|
371
|
+
def time_zone(self):
|
372
|
+
"""Gets the time_zone of this StarRocksCreateRequest.
|
373
|
+
|
374
|
+
时区。默认时区为UTC+08:00。
|
375
|
+
|
376
|
+
:return: The time_zone of this StarRocksCreateRequest.
|
377
|
+
:rtype: str
|
378
|
+
"""
|
379
|
+
return self._time_zone
|
380
|
+
|
381
|
+
@time_zone.setter
|
382
|
+
def time_zone(self, time_zone):
|
383
|
+
"""Sets the time_zone of this StarRocksCreateRequest.
|
384
|
+
|
385
|
+
时区。默认时区为UTC+08:00。
|
386
|
+
|
387
|
+
:param time_zone: The time_zone of this StarRocksCreateRequest.
|
388
|
+
:type time_zone: str
|
389
|
+
"""
|
390
|
+
self._time_zone = time_zone
|
391
|
+
|
392
|
+
@property
|
393
|
+
def tags_info(self):
|
394
|
+
"""Gets the tags_info of this StarRocksCreateRequest.
|
395
|
+
|
396
|
+
:return: The tags_info of this StarRocksCreateRequest.
|
397
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestTagsInfo`
|
398
|
+
"""
|
399
|
+
return self._tags_info
|
400
|
+
|
401
|
+
@tags_info.setter
|
402
|
+
def tags_info(self, tags_info):
|
403
|
+
"""Sets the tags_info of this StarRocksCreateRequest.
|
404
|
+
|
405
|
+
:param tags_info: The tags_info of this StarRocksCreateRequest.
|
406
|
+
:type tags_info: :class:`huaweicloudsdkgaussdb.v3.StarRocksCreateRequestTagsInfo`
|
407
|
+
"""
|
408
|
+
self._tags_info = tags_info
|
409
|
+
|
410
|
+
def to_dict(self):
|
411
|
+
"""Returns the model properties as a dict"""
|
412
|
+
result = {}
|
413
|
+
|
414
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
415
|
+
value = getattr(self, attr)
|
416
|
+
if isinstance(value, list):
|
417
|
+
result[attr] = list(map(
|
418
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
419
|
+
value
|
420
|
+
))
|
421
|
+
elif hasattr(value, "to_dict"):
|
422
|
+
result[attr] = value.to_dict()
|
423
|
+
elif isinstance(value, dict):
|
424
|
+
result[attr] = dict(map(
|
425
|
+
lambda item: (item[0], item[1].to_dict())
|
426
|
+
if hasattr(item[1], "to_dict") else item,
|
427
|
+
value.items()
|
428
|
+
))
|
429
|
+
else:
|
430
|
+
if attr in self.sensitive_list:
|
431
|
+
result[attr] = "****"
|
432
|
+
else:
|
433
|
+
result[attr] = value
|
434
|
+
|
435
|
+
return result
|
436
|
+
|
437
|
+
def to_str(self):
|
438
|
+
"""Returns the string representation of the model"""
|
439
|
+
import simplejson as json
|
440
|
+
if six.PY2:
|
441
|
+
import sys
|
442
|
+
reload(sys)
|
443
|
+
sys.setdefaultencoding("utf-8")
|
444
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
445
|
+
|
446
|
+
def __repr__(self):
|
447
|
+
"""For `print`"""
|
448
|
+
return self.to_str()
|
449
|
+
|
450
|
+
def __eq__(self, other):
|
451
|
+
"""Returns true if both objects are equal"""
|
452
|
+
if not isinstance(other, StarRocksCreateRequest):
|
453
|
+
return False
|
454
|
+
|
455
|
+
return self.__dict__ == other.__dict__
|
456
|
+
|
457
|
+
def __ne__(self, other):
|
458
|
+
"""Returns true if both objects are not equal"""
|
459
|
+
return not self == other
|