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
@@ -8051,6 +8051,1597 @@ class GaussDBAsyncClient(Client):
|
|
8051
8051
|
|
8052
8052
|
return http_info
|
8053
8053
|
|
8054
|
+
def check_data_base_config_async(self, request):
|
8055
|
+
"""HTAP数据同步库配置校验
|
8056
|
+
|
8057
|
+
HTAP数据同步库配置校验。
|
8058
|
+
|
8059
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8060
|
+
|
8061
|
+
|
8062
|
+
:param request: Request instance for CheckDataBaseConfig
|
8063
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CheckDataBaseConfigRequest`
|
8064
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CheckDataBaseConfigResponse`
|
8065
|
+
"""
|
8066
|
+
http_info = self._check_data_base_config_http_info(request)
|
8067
|
+
return self._call_api(**http_info)
|
8068
|
+
|
8069
|
+
def check_data_base_config_async_invoker(self, request):
|
8070
|
+
http_info = self._check_data_base_config_http_info(request)
|
8071
|
+
return AsyncInvoker(self, http_info)
|
8072
|
+
|
8073
|
+
def _check_data_base_config_http_info(self, request):
|
8074
|
+
http_info = {
|
8075
|
+
"method": "POST",
|
8076
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-config-check",
|
8077
|
+
"request_type": request.__class__.__name__,
|
8078
|
+
"response_type": "CheckDataBaseConfigResponse"
|
8079
|
+
}
|
8080
|
+
|
8081
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8082
|
+
|
8083
|
+
cname = None
|
8084
|
+
|
8085
|
+
collection_formats = {}
|
8086
|
+
|
8087
|
+
path_params = {}
|
8088
|
+
if 'instance_id' in local_var_params:
|
8089
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8090
|
+
|
8091
|
+
query_params = []
|
8092
|
+
|
8093
|
+
header_params = {}
|
8094
|
+
if 'x_language' in local_var_params:
|
8095
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8096
|
+
|
8097
|
+
form_params = {}
|
8098
|
+
|
8099
|
+
body = None
|
8100
|
+
if 'body' in local_var_params:
|
8101
|
+
body = local_var_params['body']
|
8102
|
+
if isinstance(request, SdkStreamRequest):
|
8103
|
+
body = request.get_file_stream()
|
8104
|
+
|
8105
|
+
response_headers = []
|
8106
|
+
|
8107
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8108
|
+
['application/json;charset=UTF-8'])
|
8109
|
+
|
8110
|
+
auth_settings = []
|
8111
|
+
|
8112
|
+
http_info["cname"] = cname
|
8113
|
+
http_info["collection_formats"] = collection_formats
|
8114
|
+
http_info["path_params"] = path_params
|
8115
|
+
http_info["query_params"] = query_params
|
8116
|
+
http_info["header_params"] = header_params
|
8117
|
+
http_info["post_params"] = form_params
|
8118
|
+
http_info["body"] = body
|
8119
|
+
http_info["response_headers"] = response_headers
|
8120
|
+
|
8121
|
+
return http_info
|
8122
|
+
|
8123
|
+
def check_star_rocks_resource_async(self, request):
|
8124
|
+
"""StarRocks资源检查
|
8125
|
+
|
8126
|
+
StarRocks资源检查。
|
8127
|
+
|
8128
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8129
|
+
|
8130
|
+
|
8131
|
+
:param request: Request instance for CheckStarRocksResource
|
8132
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CheckStarRocksResourceRequest`
|
8133
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CheckStarRocksResourceResponse`
|
8134
|
+
"""
|
8135
|
+
http_info = self._check_star_rocks_resource_http_info(request)
|
8136
|
+
return self._call_api(**http_info)
|
8137
|
+
|
8138
|
+
def check_star_rocks_resource_async_invoker(self, request):
|
8139
|
+
http_info = self._check_star_rocks_resource_http_info(request)
|
8140
|
+
return AsyncInvoker(self, http_info)
|
8141
|
+
|
8142
|
+
def _check_star_rocks_resource_http_info(self, request):
|
8143
|
+
http_info = {
|
8144
|
+
"method": "POST",
|
8145
|
+
"resource_path": "/v3/{project_id}/starrocks/resource-check",
|
8146
|
+
"request_type": request.__class__.__name__,
|
8147
|
+
"response_type": "CheckStarRocksResourceResponse"
|
8148
|
+
}
|
8149
|
+
|
8150
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8151
|
+
|
8152
|
+
cname = None
|
8153
|
+
|
8154
|
+
collection_formats = {}
|
8155
|
+
|
8156
|
+
path_params = {}
|
8157
|
+
|
8158
|
+
query_params = []
|
8159
|
+
|
8160
|
+
header_params = {}
|
8161
|
+
if 'x_language' in local_var_params:
|
8162
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8163
|
+
|
8164
|
+
form_params = {}
|
8165
|
+
|
8166
|
+
body = None
|
8167
|
+
if 'body' in local_var_params:
|
8168
|
+
body = local_var_params['body']
|
8169
|
+
if isinstance(request, SdkStreamRequest):
|
8170
|
+
body = request.get_file_stream()
|
8171
|
+
|
8172
|
+
response_headers = []
|
8173
|
+
|
8174
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8175
|
+
['application/json;charset=UTF-8'])
|
8176
|
+
|
8177
|
+
auth_settings = []
|
8178
|
+
|
8179
|
+
http_info["cname"] = cname
|
8180
|
+
http_info["collection_formats"] = collection_formats
|
8181
|
+
http_info["path_params"] = path_params
|
8182
|
+
http_info["query_params"] = query_params
|
8183
|
+
http_info["header_params"] = header_params
|
8184
|
+
http_info["post_params"] = form_params
|
8185
|
+
http_info["body"] = body
|
8186
|
+
http_info["response_headers"] = response_headers
|
8187
|
+
|
8188
|
+
return http_info
|
8189
|
+
|
8190
|
+
def check_table_config_async(self, request):
|
8191
|
+
"""HTAP数据同步表配置校验
|
8192
|
+
|
8193
|
+
HTAP数据同步表配置校验。
|
8194
|
+
|
8195
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8196
|
+
|
8197
|
+
|
8198
|
+
:param request: Request instance for CheckTableConfig
|
8199
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CheckTableConfigRequest`
|
8200
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CheckTableConfigResponse`
|
8201
|
+
"""
|
8202
|
+
http_info = self._check_table_config_http_info(request)
|
8203
|
+
return self._call_api(**http_info)
|
8204
|
+
|
8205
|
+
def check_table_config_async_invoker(self, request):
|
8206
|
+
http_info = self._check_table_config_http_info(request)
|
8207
|
+
return AsyncInvoker(self, http_info)
|
8208
|
+
|
8209
|
+
def _check_table_config_http_info(self, request):
|
8210
|
+
http_info = {
|
8211
|
+
"method": "POST",
|
8212
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/table-config-check",
|
8213
|
+
"request_type": request.__class__.__name__,
|
8214
|
+
"response_type": "CheckTableConfigResponse"
|
8215
|
+
}
|
8216
|
+
|
8217
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8218
|
+
|
8219
|
+
cname = None
|
8220
|
+
|
8221
|
+
collection_formats = {}
|
8222
|
+
|
8223
|
+
path_params = {}
|
8224
|
+
if 'instance_id' in local_var_params:
|
8225
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8226
|
+
|
8227
|
+
query_params = []
|
8228
|
+
|
8229
|
+
header_params = {}
|
8230
|
+
if 'x_language' in local_var_params:
|
8231
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8232
|
+
|
8233
|
+
form_params = {}
|
8234
|
+
|
8235
|
+
body = None
|
8236
|
+
if 'body' in local_var_params:
|
8237
|
+
body = local_var_params['body']
|
8238
|
+
if isinstance(request, SdkStreamRequest):
|
8239
|
+
body = request.get_file_stream()
|
8240
|
+
|
8241
|
+
response_headers = []
|
8242
|
+
|
8243
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8244
|
+
['application/json;charset=UTF-8'])
|
8245
|
+
|
8246
|
+
auth_settings = []
|
8247
|
+
|
8248
|
+
http_info["cname"] = cname
|
8249
|
+
http_info["collection_formats"] = collection_formats
|
8250
|
+
http_info["path_params"] = path_params
|
8251
|
+
http_info["query_params"] = query_params
|
8252
|
+
http_info["header_params"] = header_params
|
8253
|
+
http_info["post_params"] = form_params
|
8254
|
+
http_info["body"] = body
|
8255
|
+
http_info["response_headers"] = response_headers
|
8256
|
+
|
8257
|
+
return http_info
|
8258
|
+
|
8259
|
+
def create_star_rocks_data_replication_async(self, request):
|
8260
|
+
"""创建StarRocks数据同步
|
8261
|
+
|
8262
|
+
创建StarRocks数据同步。
|
8263
|
+
|
8264
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8265
|
+
|
8266
|
+
|
8267
|
+
:param request: Request instance for CreateStarRocksDataReplication
|
8268
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDataReplicationRequest`
|
8269
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDataReplicationResponse`
|
8270
|
+
"""
|
8271
|
+
http_info = self._create_star_rocks_data_replication_http_info(request)
|
8272
|
+
return self._call_api(**http_info)
|
8273
|
+
|
8274
|
+
def create_star_rocks_data_replication_async_invoker(self, request):
|
8275
|
+
http_info = self._create_star_rocks_data_replication_http_info(request)
|
8276
|
+
return AsyncInvoker(self, http_info)
|
8277
|
+
|
8278
|
+
def _create_star_rocks_data_replication_http_info(self, request):
|
8279
|
+
http_info = {
|
8280
|
+
"method": "POST",
|
8281
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
|
8282
|
+
"request_type": request.__class__.__name__,
|
8283
|
+
"response_type": "CreateStarRocksDataReplicationResponse"
|
8284
|
+
}
|
8285
|
+
|
8286
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8287
|
+
|
8288
|
+
cname = None
|
8289
|
+
|
8290
|
+
collection_formats = {}
|
8291
|
+
|
8292
|
+
path_params = {}
|
8293
|
+
if 'instance_id' in local_var_params:
|
8294
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8295
|
+
|
8296
|
+
query_params = []
|
8297
|
+
|
8298
|
+
header_params = {}
|
8299
|
+
if 'x_language' in local_var_params:
|
8300
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8301
|
+
|
8302
|
+
form_params = {}
|
8303
|
+
|
8304
|
+
body = None
|
8305
|
+
if 'body' in local_var_params:
|
8306
|
+
body = local_var_params['body']
|
8307
|
+
if isinstance(request, SdkStreamRequest):
|
8308
|
+
body = request.get_file_stream()
|
8309
|
+
|
8310
|
+
response_headers = []
|
8311
|
+
|
8312
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8313
|
+
['application/json;charset=UTF-8'])
|
8314
|
+
|
8315
|
+
auth_settings = []
|
8316
|
+
|
8317
|
+
http_info["cname"] = cname
|
8318
|
+
http_info["collection_formats"] = collection_formats
|
8319
|
+
http_info["path_params"] = path_params
|
8320
|
+
http_info["query_params"] = query_params
|
8321
|
+
http_info["header_params"] = header_params
|
8322
|
+
http_info["post_params"] = form_params
|
8323
|
+
http_info["body"] = body
|
8324
|
+
http_info["response_headers"] = response_headers
|
8325
|
+
|
8326
|
+
return http_info
|
8327
|
+
|
8328
|
+
def create_star_rocks_database_user_async(self, request):
|
8329
|
+
"""创建数据库账号
|
8330
|
+
|
8331
|
+
创建StarRocks数据库账号。
|
8332
|
+
|
8333
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8334
|
+
|
8335
|
+
|
8336
|
+
:param request: Request instance for CreateStarRocksDatabaseUser
|
8337
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDatabaseUserRequest`
|
8338
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDatabaseUserResponse`
|
8339
|
+
"""
|
8340
|
+
http_info = self._create_star_rocks_database_user_http_info(request)
|
8341
|
+
return self._call_api(**http_info)
|
8342
|
+
|
8343
|
+
def create_star_rocks_database_user_async_invoker(self, request):
|
8344
|
+
http_info = self._create_star_rocks_database_user_http_info(request)
|
8345
|
+
return AsyncInvoker(self, http_info)
|
8346
|
+
|
8347
|
+
def _create_star_rocks_database_user_http_info(self, request):
|
8348
|
+
http_info = {
|
8349
|
+
"method": "POST",
|
8350
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
|
8351
|
+
"request_type": request.__class__.__name__,
|
8352
|
+
"response_type": "CreateStarRocksDatabaseUserResponse"
|
8353
|
+
}
|
8354
|
+
|
8355
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8356
|
+
|
8357
|
+
cname = None
|
8358
|
+
|
8359
|
+
collection_formats = {}
|
8360
|
+
|
8361
|
+
path_params = {}
|
8362
|
+
if 'instance_id' in local_var_params:
|
8363
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8364
|
+
|
8365
|
+
query_params = []
|
8366
|
+
|
8367
|
+
header_params = {}
|
8368
|
+
if 'x_language' in local_var_params:
|
8369
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8370
|
+
|
8371
|
+
form_params = {}
|
8372
|
+
|
8373
|
+
body = None
|
8374
|
+
if 'body' in local_var_params:
|
8375
|
+
body = local_var_params['body']
|
8376
|
+
if isinstance(request, SdkStreamRequest):
|
8377
|
+
body = request.get_file_stream()
|
8378
|
+
|
8379
|
+
response_headers = []
|
8380
|
+
|
8381
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8382
|
+
['application/json;charset=UTF-8'])
|
8383
|
+
|
8384
|
+
auth_settings = []
|
8385
|
+
|
8386
|
+
http_info["cname"] = cname
|
8387
|
+
http_info["collection_formats"] = collection_formats
|
8388
|
+
http_info["path_params"] = path_params
|
8389
|
+
http_info["query_params"] = query_params
|
8390
|
+
http_info["header_params"] = header_params
|
8391
|
+
http_info["post_params"] = form_params
|
8392
|
+
http_info["body"] = body
|
8393
|
+
http_info["response_headers"] = response_headers
|
8394
|
+
|
8395
|
+
return http_info
|
8396
|
+
|
8397
|
+
def create_starrocks_instance_async(self, request):
|
8398
|
+
"""创建StarRocks实例
|
8399
|
+
|
8400
|
+
创建StarRocks实例。
|
8401
|
+
|
8402
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8403
|
+
|
8404
|
+
|
8405
|
+
:param request: Request instance for CreateStarrocksInstance
|
8406
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarrocksInstanceRequest`
|
8407
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarrocksInstanceResponse`
|
8408
|
+
"""
|
8409
|
+
http_info = self._create_starrocks_instance_http_info(request)
|
8410
|
+
return self._call_api(**http_info)
|
8411
|
+
|
8412
|
+
def create_starrocks_instance_async_invoker(self, request):
|
8413
|
+
http_info = self._create_starrocks_instance_http_info(request)
|
8414
|
+
return AsyncInvoker(self, http_info)
|
8415
|
+
|
8416
|
+
def _create_starrocks_instance_http_info(self, request):
|
8417
|
+
http_info = {
|
8418
|
+
"method": "POST",
|
8419
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks",
|
8420
|
+
"request_type": request.__class__.__name__,
|
8421
|
+
"response_type": "CreateStarrocksInstanceResponse"
|
8422
|
+
}
|
8423
|
+
|
8424
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8425
|
+
|
8426
|
+
cname = None
|
8427
|
+
|
8428
|
+
collection_formats = {}
|
8429
|
+
|
8430
|
+
path_params = {}
|
8431
|
+
if 'instance_id' in local_var_params:
|
8432
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8433
|
+
|
8434
|
+
query_params = []
|
8435
|
+
|
8436
|
+
header_params = {}
|
8437
|
+
if 'x_language' in local_var_params:
|
8438
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8439
|
+
|
8440
|
+
form_params = {}
|
8441
|
+
|
8442
|
+
body = None
|
8443
|
+
if 'body' in local_var_params:
|
8444
|
+
body = local_var_params['body']
|
8445
|
+
if isinstance(request, SdkStreamRequest):
|
8446
|
+
body = request.get_file_stream()
|
8447
|
+
|
8448
|
+
response_headers = []
|
8449
|
+
|
8450
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8451
|
+
['application/json;charset=UTF-8'])
|
8452
|
+
|
8453
|
+
auth_settings = []
|
8454
|
+
|
8455
|
+
http_info["cname"] = cname
|
8456
|
+
http_info["collection_formats"] = collection_formats
|
8457
|
+
http_info["path_params"] = path_params
|
8458
|
+
http_info["query_params"] = query_params
|
8459
|
+
http_info["header_params"] = header_params
|
8460
|
+
http_info["post_params"] = form_params
|
8461
|
+
http_info["body"] = body
|
8462
|
+
http_info["response_headers"] = response_headers
|
8463
|
+
|
8464
|
+
return http_info
|
8465
|
+
|
8466
|
+
def delete_star_rocks_data_replication_async(self, request):
|
8467
|
+
"""删除StarRocks数据同步
|
8468
|
+
|
8469
|
+
删除StarRocks数据同步。
|
8470
|
+
|
8471
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8472
|
+
|
8473
|
+
|
8474
|
+
:param request: Request instance for DeleteStarRocksDataReplication
|
8475
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplicationRequest`
|
8476
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplicationResponse`
|
8477
|
+
"""
|
8478
|
+
http_info = self._delete_star_rocks_data_replication_http_info(request)
|
8479
|
+
return self._call_api(**http_info)
|
8480
|
+
|
8481
|
+
def delete_star_rocks_data_replication_async_invoker(self, request):
|
8482
|
+
http_info = self._delete_star_rocks_data_replication_http_info(request)
|
8483
|
+
return AsyncInvoker(self, http_info)
|
8484
|
+
|
8485
|
+
def _delete_star_rocks_data_replication_http_info(self, request):
|
8486
|
+
http_info = {
|
8487
|
+
"method": "DELETE",
|
8488
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
|
8489
|
+
"request_type": request.__class__.__name__,
|
8490
|
+
"response_type": "DeleteStarRocksDataReplicationResponse"
|
8491
|
+
}
|
8492
|
+
|
8493
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8494
|
+
|
8495
|
+
cname = None
|
8496
|
+
|
8497
|
+
collection_formats = {}
|
8498
|
+
|
8499
|
+
path_params = {}
|
8500
|
+
if 'instance_id' in local_var_params:
|
8501
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8502
|
+
|
8503
|
+
query_params = []
|
8504
|
+
|
8505
|
+
header_params = {}
|
8506
|
+
if 'x_language' in local_var_params:
|
8507
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8508
|
+
|
8509
|
+
form_params = {}
|
8510
|
+
|
8511
|
+
body = None
|
8512
|
+
if 'body' in local_var_params:
|
8513
|
+
body = local_var_params['body']
|
8514
|
+
if isinstance(request, SdkStreamRequest):
|
8515
|
+
body = request.get_file_stream()
|
8516
|
+
|
8517
|
+
response_headers = []
|
8518
|
+
|
8519
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8520
|
+
['application/json;charset=UTF-8'])
|
8521
|
+
|
8522
|
+
auth_settings = []
|
8523
|
+
|
8524
|
+
http_info["cname"] = cname
|
8525
|
+
http_info["collection_formats"] = collection_formats
|
8526
|
+
http_info["path_params"] = path_params
|
8527
|
+
http_info["query_params"] = query_params
|
8528
|
+
http_info["header_params"] = header_params
|
8529
|
+
http_info["post_params"] = form_params
|
8530
|
+
http_info["body"] = body
|
8531
|
+
http_info["response_headers"] = response_headers
|
8532
|
+
|
8533
|
+
return http_info
|
8534
|
+
|
8535
|
+
def delete_star_rocks_database_user_async(self, request):
|
8536
|
+
"""删除数据库账户
|
8537
|
+
|
8538
|
+
删除StarRocks数据库账户。
|
8539
|
+
|
8540
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8541
|
+
|
8542
|
+
|
8543
|
+
:param request: Request instance for DeleteStarRocksDatabaseUser
|
8544
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDatabaseUserRequest`
|
8545
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDatabaseUserResponse`
|
8546
|
+
"""
|
8547
|
+
http_info = self._delete_star_rocks_database_user_http_info(request)
|
8548
|
+
return self._call_api(**http_info)
|
8549
|
+
|
8550
|
+
def delete_star_rocks_database_user_async_invoker(self, request):
|
8551
|
+
http_info = self._delete_star_rocks_database_user_http_info(request)
|
8552
|
+
return AsyncInvoker(self, http_info)
|
8553
|
+
|
8554
|
+
def _delete_star_rocks_database_user_http_info(self, request):
|
8555
|
+
http_info = {
|
8556
|
+
"method": "DELETE",
|
8557
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
|
8558
|
+
"request_type": request.__class__.__name__,
|
8559
|
+
"response_type": "DeleteStarRocksDatabaseUserResponse"
|
8560
|
+
}
|
8561
|
+
|
8562
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8563
|
+
|
8564
|
+
cname = None
|
8565
|
+
|
8566
|
+
collection_formats = {}
|
8567
|
+
|
8568
|
+
path_params = {}
|
8569
|
+
if 'instance_id' in local_var_params:
|
8570
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8571
|
+
|
8572
|
+
query_params = []
|
8573
|
+
if 'user_name' in local_var_params:
|
8574
|
+
query_params.append(('user_name', local_var_params['user_name']))
|
8575
|
+
|
8576
|
+
header_params = {}
|
8577
|
+
if 'x_language' in local_var_params:
|
8578
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8579
|
+
|
8580
|
+
form_params = {}
|
8581
|
+
|
8582
|
+
body = None
|
8583
|
+
if isinstance(request, SdkStreamRequest):
|
8584
|
+
body = request.get_file_stream()
|
8585
|
+
|
8586
|
+
response_headers = []
|
8587
|
+
|
8588
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8589
|
+
['application/json'])
|
8590
|
+
|
8591
|
+
auth_settings = []
|
8592
|
+
|
8593
|
+
http_info["cname"] = cname
|
8594
|
+
http_info["collection_formats"] = collection_formats
|
8595
|
+
http_info["path_params"] = path_params
|
8596
|
+
http_info["query_params"] = query_params
|
8597
|
+
http_info["header_params"] = header_params
|
8598
|
+
http_info["post_params"] = form_params
|
8599
|
+
http_info["body"] = body
|
8600
|
+
http_info["response_headers"] = response_headers
|
8601
|
+
|
8602
|
+
return http_info
|
8603
|
+
|
8604
|
+
def delete_starrocks_instance_async(self, request):
|
8605
|
+
"""删除StarRocks实例
|
8606
|
+
|
8607
|
+
删除StarRocks实例。
|
8608
|
+
|
8609
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8610
|
+
|
8611
|
+
|
8612
|
+
:param request: Request instance for DeleteStarrocksInstance
|
8613
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarrocksInstanceRequest`
|
8614
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarrocksInstanceResponse`
|
8615
|
+
"""
|
8616
|
+
http_info = self._delete_starrocks_instance_http_info(request)
|
8617
|
+
return self._call_api(**http_info)
|
8618
|
+
|
8619
|
+
def delete_starrocks_instance_async_invoker(self, request):
|
8620
|
+
http_info = self._delete_starrocks_instance_http_info(request)
|
8621
|
+
return AsyncInvoker(self, http_info)
|
8622
|
+
|
8623
|
+
def _delete_starrocks_instance_http_info(self, request):
|
8624
|
+
http_info = {
|
8625
|
+
"method": "DELETE",
|
8626
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}",
|
8627
|
+
"request_type": request.__class__.__name__,
|
8628
|
+
"response_type": "DeleteStarrocksInstanceResponse"
|
8629
|
+
}
|
8630
|
+
|
8631
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8632
|
+
|
8633
|
+
cname = None
|
8634
|
+
|
8635
|
+
collection_formats = {}
|
8636
|
+
|
8637
|
+
path_params = {}
|
8638
|
+
if 'instance_id' in local_var_params:
|
8639
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8640
|
+
if 'starrocks_instance_id' in local_var_params:
|
8641
|
+
path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
|
8642
|
+
|
8643
|
+
query_params = []
|
8644
|
+
|
8645
|
+
header_params = {}
|
8646
|
+
if 'x_language' in local_var_params:
|
8647
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8648
|
+
|
8649
|
+
form_params = {}
|
8650
|
+
|
8651
|
+
body = None
|
8652
|
+
if isinstance(request, SdkStreamRequest):
|
8653
|
+
body = request.get_file_stream()
|
8654
|
+
|
8655
|
+
response_headers = []
|
8656
|
+
|
8657
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8658
|
+
['application/json'])
|
8659
|
+
|
8660
|
+
auth_settings = []
|
8661
|
+
|
8662
|
+
http_info["cname"] = cname
|
8663
|
+
http_info["collection_formats"] = collection_formats
|
8664
|
+
http_info["path_params"] = path_params
|
8665
|
+
http_info["query_params"] = query_params
|
8666
|
+
http_info["header_params"] = header_params
|
8667
|
+
http_info["post_params"] = form_params
|
8668
|
+
http_info["body"] = body
|
8669
|
+
http_info["response_headers"] = response_headers
|
8670
|
+
|
8671
|
+
return http_info
|
8672
|
+
|
8673
|
+
def list_htap_data_store_async(self, request):
|
8674
|
+
"""HTAP引擎资源查询
|
8675
|
+
|
8676
|
+
HTAP引擎资源查询。
|
8677
|
+
|
8678
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8679
|
+
|
8680
|
+
|
8681
|
+
:param request: Request instance for ListHtapDataStore
|
8682
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapDataStoreRequest`
|
8683
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapDataStoreResponse`
|
8684
|
+
"""
|
8685
|
+
http_info = self._list_htap_data_store_http_info(request)
|
8686
|
+
return self._call_api(**http_info)
|
8687
|
+
|
8688
|
+
def list_htap_data_store_async_invoker(self, request):
|
8689
|
+
http_info = self._list_htap_data_store_http_info(request)
|
8690
|
+
return AsyncInvoker(self, http_info)
|
8691
|
+
|
8692
|
+
def _list_htap_data_store_http_info(self, request):
|
8693
|
+
http_info = {
|
8694
|
+
"method": "GET",
|
8695
|
+
"resource_path": "/v3/{project_id}/htap/datastores/{engine_name}",
|
8696
|
+
"request_type": request.__class__.__name__,
|
8697
|
+
"response_type": "ListHtapDataStoreResponse"
|
8698
|
+
}
|
8699
|
+
|
8700
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8701
|
+
|
8702
|
+
cname = None
|
8703
|
+
|
8704
|
+
collection_formats = {}
|
8705
|
+
|
8706
|
+
path_params = {}
|
8707
|
+
if 'engine_name' in local_var_params:
|
8708
|
+
path_params['engine_name'] = local_var_params['engine_name']
|
8709
|
+
|
8710
|
+
query_params = []
|
8711
|
+
|
8712
|
+
header_params = {}
|
8713
|
+
if 'x_language' in local_var_params:
|
8714
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8715
|
+
|
8716
|
+
form_params = {}
|
8717
|
+
|
8718
|
+
body = None
|
8719
|
+
if isinstance(request, SdkStreamRequest):
|
8720
|
+
body = request.get_file_stream()
|
8721
|
+
|
8722
|
+
response_headers = []
|
8723
|
+
|
8724
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8725
|
+
['application/json'])
|
8726
|
+
|
8727
|
+
auth_settings = []
|
8728
|
+
|
8729
|
+
http_info["cname"] = cname
|
8730
|
+
http_info["collection_formats"] = collection_formats
|
8731
|
+
http_info["path_params"] = path_params
|
8732
|
+
http_info["query_params"] = query_params
|
8733
|
+
http_info["header_params"] = header_params
|
8734
|
+
http_info["post_params"] = form_params
|
8735
|
+
http_info["body"] = body
|
8736
|
+
http_info["response_headers"] = response_headers
|
8737
|
+
|
8738
|
+
return http_info
|
8739
|
+
|
8740
|
+
def list_htap_flavor_async(self, request):
|
8741
|
+
"""HTAP查询规格信息
|
8742
|
+
|
8743
|
+
HTAP查询规格信息。
|
8744
|
+
|
8745
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8746
|
+
|
8747
|
+
|
8748
|
+
:param request: Request instance for ListHtapFlavor
|
8749
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapFlavorRequest`
|
8750
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapFlavorResponse`
|
8751
|
+
"""
|
8752
|
+
http_info = self._list_htap_flavor_http_info(request)
|
8753
|
+
return self._call_api(**http_info)
|
8754
|
+
|
8755
|
+
def list_htap_flavor_async_invoker(self, request):
|
8756
|
+
http_info = self._list_htap_flavor_http_info(request)
|
8757
|
+
return AsyncInvoker(self, http_info)
|
8758
|
+
|
8759
|
+
def _list_htap_flavor_http_info(self, request):
|
8760
|
+
http_info = {
|
8761
|
+
"method": "GET",
|
8762
|
+
"resource_path": "/v3/{project_id}/htap/flavors/{engine_name}",
|
8763
|
+
"request_type": request.__class__.__name__,
|
8764
|
+
"response_type": "ListHtapFlavorResponse"
|
8765
|
+
}
|
8766
|
+
|
8767
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8768
|
+
|
8769
|
+
cname = None
|
8770
|
+
|
8771
|
+
collection_formats = {}
|
8772
|
+
|
8773
|
+
path_params = {}
|
8774
|
+
if 'engine_name' in local_var_params:
|
8775
|
+
path_params['engine_name'] = local_var_params['engine_name']
|
8776
|
+
|
8777
|
+
query_params = []
|
8778
|
+
if 'availability_zone_mode' in local_var_params:
|
8779
|
+
query_params.append(('availability_zone_mode', local_var_params['availability_zone_mode']))
|
8780
|
+
if 'spec_code' in local_var_params:
|
8781
|
+
query_params.append(('spec_code', local_var_params['spec_code']))
|
8782
|
+
if 'version_name' in local_var_params:
|
8783
|
+
query_params.append(('version_name', local_var_params['version_name']))
|
8784
|
+
|
8785
|
+
header_params = {}
|
8786
|
+
if 'x_language' in local_var_params:
|
8787
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8788
|
+
|
8789
|
+
form_params = {}
|
8790
|
+
|
8791
|
+
body = None
|
8792
|
+
if isinstance(request, SdkStreamRequest):
|
8793
|
+
body = request.get_file_stream()
|
8794
|
+
|
8795
|
+
response_headers = []
|
8796
|
+
|
8797
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8798
|
+
['application/json'])
|
8799
|
+
|
8800
|
+
auth_settings = []
|
8801
|
+
|
8802
|
+
http_info["cname"] = cname
|
8803
|
+
http_info["collection_formats"] = collection_formats
|
8804
|
+
http_info["path_params"] = path_params
|
8805
|
+
http_info["query_params"] = query_params
|
8806
|
+
http_info["header_params"] = header_params
|
8807
|
+
http_info["post_params"] = form_params
|
8808
|
+
http_info["body"] = body
|
8809
|
+
http_info["response_headers"] = response_headers
|
8810
|
+
|
8811
|
+
return http_info
|
8812
|
+
|
8813
|
+
def list_htap_instance_info_async(self, request):
|
8814
|
+
"""查询HTAP实例列表
|
8815
|
+
|
8816
|
+
查询HTAP实例列表。
|
8817
|
+
|
8818
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8819
|
+
|
8820
|
+
|
8821
|
+
:param request: Request instance for ListHtapInstanceInfo
|
8822
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapInstanceInfoRequest`
|
8823
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapInstanceInfoResponse`
|
8824
|
+
"""
|
8825
|
+
http_info = self._list_htap_instance_info_http_info(request)
|
8826
|
+
return self._call_api(**http_info)
|
8827
|
+
|
8828
|
+
def list_htap_instance_info_async_invoker(self, request):
|
8829
|
+
http_info = self._list_htap_instance_info_http_info(request)
|
8830
|
+
return AsyncInvoker(self, http_info)
|
8831
|
+
|
8832
|
+
def _list_htap_instance_info_http_info(self, request):
|
8833
|
+
http_info = {
|
8834
|
+
"method": "GET",
|
8835
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/htap",
|
8836
|
+
"request_type": request.__class__.__name__,
|
8837
|
+
"response_type": "ListHtapInstanceInfoResponse"
|
8838
|
+
}
|
8839
|
+
|
8840
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8841
|
+
|
8842
|
+
cname = None
|
8843
|
+
|
8844
|
+
collection_formats = {}
|
8845
|
+
|
8846
|
+
path_params = {}
|
8847
|
+
if 'instance_id' in local_var_params:
|
8848
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8849
|
+
|
8850
|
+
query_params = []
|
8851
|
+
|
8852
|
+
header_params = {}
|
8853
|
+
if 'x_language' in local_var_params:
|
8854
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8855
|
+
|
8856
|
+
form_params = {}
|
8857
|
+
|
8858
|
+
body = None
|
8859
|
+
if isinstance(request, SdkStreamRequest):
|
8860
|
+
body = request.get_file_stream()
|
8861
|
+
|
8862
|
+
response_headers = []
|
8863
|
+
|
8864
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8865
|
+
['application/json'])
|
8866
|
+
|
8867
|
+
auth_settings = []
|
8868
|
+
|
8869
|
+
http_info["cname"] = cname
|
8870
|
+
http_info["collection_formats"] = collection_formats
|
8871
|
+
http_info["path_params"] = path_params
|
8872
|
+
http_info["query_params"] = query_params
|
8873
|
+
http_info["header_params"] = header_params
|
8874
|
+
http_info["post_params"] = form_params
|
8875
|
+
http_info["body"] = body
|
8876
|
+
http_info["response_headers"] = response_headers
|
8877
|
+
|
8878
|
+
return http_info
|
8879
|
+
|
8880
|
+
def list_htap_storage_type_async(self, request):
|
8881
|
+
"""获取HTAP实例存储类型
|
8882
|
+
|
8883
|
+
获取HTAP实例存储类型。
|
8884
|
+
|
8885
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8886
|
+
|
8887
|
+
|
8888
|
+
:param request: Request instance for ListHtapStorageType
|
8889
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapStorageTypeRequest`
|
8890
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapStorageTypeResponse`
|
8891
|
+
"""
|
8892
|
+
http_info = self._list_htap_storage_type_http_info(request)
|
8893
|
+
return self._call_api(**http_info)
|
8894
|
+
|
8895
|
+
def list_htap_storage_type_async_invoker(self, request):
|
8896
|
+
http_info = self._list_htap_storage_type_http_info(request)
|
8897
|
+
return AsyncInvoker(self, http_info)
|
8898
|
+
|
8899
|
+
def _list_htap_storage_type_http_info(self, request):
|
8900
|
+
http_info = {
|
8901
|
+
"method": "GET",
|
8902
|
+
"resource_path": "/v3/{project_id}/htap/storage-type/{database}",
|
8903
|
+
"request_type": request.__class__.__name__,
|
8904
|
+
"response_type": "ListHtapStorageTypeResponse"
|
8905
|
+
}
|
8906
|
+
|
8907
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8908
|
+
|
8909
|
+
cname = None
|
8910
|
+
|
8911
|
+
collection_formats = {}
|
8912
|
+
|
8913
|
+
path_params = {}
|
8914
|
+
if 'database' in local_var_params:
|
8915
|
+
path_params['database'] = local_var_params['database']
|
8916
|
+
|
8917
|
+
query_params = []
|
8918
|
+
if 'version_name' in local_var_params:
|
8919
|
+
query_params.append(('version_name', local_var_params['version_name']))
|
8920
|
+
|
8921
|
+
header_params = {}
|
8922
|
+
if 'x_language' in local_var_params:
|
8923
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8924
|
+
|
8925
|
+
form_params = {}
|
8926
|
+
|
8927
|
+
body = None
|
8928
|
+
if isinstance(request, SdkStreamRequest):
|
8929
|
+
body = request.get_file_stream()
|
8930
|
+
|
8931
|
+
response_headers = []
|
8932
|
+
|
8933
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8934
|
+
['application/json'])
|
8935
|
+
|
8936
|
+
auth_settings = []
|
8937
|
+
|
8938
|
+
http_info["cname"] = cname
|
8939
|
+
http_info["collection_formats"] = collection_formats
|
8940
|
+
http_info["path_params"] = path_params
|
8941
|
+
http_info["query_params"] = query_params
|
8942
|
+
http_info["header_params"] = header_params
|
8943
|
+
http_info["post_params"] = form_params
|
8944
|
+
http_info["body"] = body
|
8945
|
+
http_info["response_headers"] = response_headers
|
8946
|
+
|
8947
|
+
return http_info
|
8948
|
+
|
8949
|
+
def list_star_rocks_data_bases_async(self, request):
|
8950
|
+
"""查询StarRocks数据库
|
8951
|
+
|
8952
|
+
查询StarRocks数据库。
|
8953
|
+
|
8954
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8955
|
+
|
8956
|
+
|
8957
|
+
:param request: Request instance for ListStarRocksDataBases
|
8958
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesRequest`
|
8959
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesResponse`
|
8960
|
+
"""
|
8961
|
+
http_info = self._list_star_rocks_data_bases_http_info(request)
|
8962
|
+
return self._call_api(**http_info)
|
8963
|
+
|
8964
|
+
def list_star_rocks_data_bases_async_invoker(self, request):
|
8965
|
+
http_info = self._list_star_rocks_data_bases_http_info(request)
|
8966
|
+
return AsyncInvoker(self, http_info)
|
8967
|
+
|
8968
|
+
def _list_star_rocks_data_bases_http_info(self, request):
|
8969
|
+
http_info = {
|
8970
|
+
"method": "GET",
|
8971
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases",
|
8972
|
+
"request_type": request.__class__.__name__,
|
8973
|
+
"response_type": "ListStarRocksDataBasesResponse"
|
8974
|
+
}
|
8975
|
+
|
8976
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8977
|
+
|
8978
|
+
cname = None
|
8979
|
+
|
8980
|
+
collection_formats = {}
|
8981
|
+
|
8982
|
+
path_params = {}
|
8983
|
+
if 'instance_id' in local_var_params:
|
8984
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8985
|
+
|
8986
|
+
query_params = []
|
8987
|
+
if 'limit' in local_var_params:
|
8988
|
+
query_params.append(('limit', local_var_params['limit']))
|
8989
|
+
if 'offset' in local_var_params:
|
8990
|
+
query_params.append(('offset', local_var_params['offset']))
|
8991
|
+
if 'database_name' in local_var_params:
|
8992
|
+
query_params.append(('database_name', local_var_params['database_name']))
|
8993
|
+
|
8994
|
+
header_params = {}
|
8995
|
+
if 'x_language' in local_var_params:
|
8996
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8997
|
+
|
8998
|
+
form_params = {}
|
8999
|
+
|
9000
|
+
body = None
|
9001
|
+
if isinstance(request, SdkStreamRequest):
|
9002
|
+
body = request.get_file_stream()
|
9003
|
+
|
9004
|
+
response_headers = []
|
9005
|
+
|
9006
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9007
|
+
['application/json'])
|
9008
|
+
|
9009
|
+
auth_settings = []
|
9010
|
+
|
9011
|
+
http_info["cname"] = cname
|
9012
|
+
http_info["collection_formats"] = collection_formats
|
9013
|
+
http_info["path_params"] = path_params
|
9014
|
+
http_info["query_params"] = query_params
|
9015
|
+
http_info["header_params"] = header_params
|
9016
|
+
http_info["post_params"] = form_params
|
9017
|
+
http_info["body"] = body
|
9018
|
+
http_info["response_headers"] = response_headers
|
9019
|
+
|
9020
|
+
return http_info
|
9021
|
+
|
9022
|
+
def list_star_rocks_data_replication_config_async(self, request):
|
9023
|
+
"""查询StarRocks数据同步配置信息
|
9024
|
+
|
9025
|
+
查询StarRocks数据同步配置信息。
|
9026
|
+
|
9027
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
9028
|
+
|
9029
|
+
|
9030
|
+
:param request: Request instance for ListStarRocksDataReplicationConfig
|
9031
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigRequest`
|
9032
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigResponse`
|
9033
|
+
"""
|
9034
|
+
http_info = self._list_star_rocks_data_replication_config_http_info(request)
|
9035
|
+
return self._call_api(**http_info)
|
9036
|
+
|
9037
|
+
def list_star_rocks_data_replication_config_async_invoker(self, request):
|
9038
|
+
http_info = self._list_star_rocks_data_replication_config_http_info(request)
|
9039
|
+
return AsyncInvoker(self, http_info)
|
9040
|
+
|
9041
|
+
def _list_star_rocks_data_replication_config_http_info(self, request):
|
9042
|
+
http_info = {
|
9043
|
+
"method": "GET",
|
9044
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/configuration",
|
9045
|
+
"request_type": request.__class__.__name__,
|
9046
|
+
"response_type": "ListStarRocksDataReplicationConfigResponse"
|
9047
|
+
}
|
9048
|
+
|
9049
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
9050
|
+
|
9051
|
+
cname = None
|
9052
|
+
|
9053
|
+
collection_formats = {}
|
9054
|
+
|
9055
|
+
path_params = {}
|
9056
|
+
if 'instance_id' in local_var_params:
|
9057
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
9058
|
+
|
9059
|
+
query_params = []
|
9060
|
+
if 'task_name' in local_var_params:
|
9061
|
+
query_params.append(('task_name', local_var_params['task_name']))
|
9062
|
+
|
9063
|
+
header_params = {}
|
9064
|
+
if 'x_language' in local_var_params:
|
9065
|
+
header_params['X-Language'] = local_var_params['x_language']
|
9066
|
+
|
9067
|
+
form_params = {}
|
9068
|
+
|
9069
|
+
body = None
|
9070
|
+
if isinstance(request, SdkStreamRequest):
|
9071
|
+
body = request.get_file_stream()
|
9072
|
+
|
9073
|
+
response_headers = []
|
9074
|
+
|
9075
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9076
|
+
['application/json'])
|
9077
|
+
|
9078
|
+
auth_settings = []
|
9079
|
+
|
9080
|
+
http_info["cname"] = cname
|
9081
|
+
http_info["collection_formats"] = collection_formats
|
9082
|
+
http_info["path_params"] = path_params
|
9083
|
+
http_info["query_params"] = query_params
|
9084
|
+
http_info["header_params"] = header_params
|
9085
|
+
http_info["post_params"] = form_params
|
9086
|
+
http_info["body"] = body
|
9087
|
+
http_info["response_headers"] = response_headers
|
9088
|
+
|
9089
|
+
return http_info
|
9090
|
+
|
9091
|
+
def list_star_rocks_data_replications_async(self, request):
|
9092
|
+
"""查询StarRocks数据同步状态信息
|
9093
|
+
|
9094
|
+
查询StarRocks数据同步状态信息。
|
9095
|
+
|
9096
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
9097
|
+
|
9098
|
+
|
9099
|
+
:param request: Request instance for ListStarRocksDataReplications
|
9100
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsRequest`
|
9101
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsResponse`
|
9102
|
+
"""
|
9103
|
+
http_info = self._list_star_rocks_data_replications_http_info(request)
|
9104
|
+
return self._call_api(**http_info)
|
9105
|
+
|
9106
|
+
def list_star_rocks_data_replications_async_invoker(self, request):
|
9107
|
+
http_info = self._list_star_rocks_data_replications_http_info(request)
|
9108
|
+
return AsyncInvoker(self, http_info)
|
9109
|
+
|
9110
|
+
def _list_star_rocks_data_replications_http_info(self, request):
|
9111
|
+
http_info = {
|
9112
|
+
"method": "GET",
|
9113
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
|
9114
|
+
"request_type": request.__class__.__name__,
|
9115
|
+
"response_type": "ListStarRocksDataReplicationsResponse"
|
9116
|
+
}
|
9117
|
+
|
9118
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
9119
|
+
|
9120
|
+
cname = None
|
9121
|
+
|
9122
|
+
collection_formats = {}
|
9123
|
+
|
9124
|
+
path_params = {}
|
9125
|
+
if 'instance_id' in local_var_params:
|
9126
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
9127
|
+
|
9128
|
+
query_params = []
|
9129
|
+
if 'limit' in local_var_params:
|
9130
|
+
query_params.append(('limit', local_var_params['limit']))
|
9131
|
+
if 'offset' in local_var_params:
|
9132
|
+
query_params.append(('offset', local_var_params['offset']))
|
9133
|
+
|
9134
|
+
header_params = {}
|
9135
|
+
if 'x_language' in local_var_params:
|
9136
|
+
header_params['X-Language'] = local_var_params['x_language']
|
9137
|
+
|
9138
|
+
form_params = {}
|
9139
|
+
|
9140
|
+
body = None
|
9141
|
+
if isinstance(request, SdkStreamRequest):
|
9142
|
+
body = request.get_file_stream()
|
9143
|
+
|
9144
|
+
response_headers = []
|
9145
|
+
|
9146
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9147
|
+
['application/json'])
|
9148
|
+
|
9149
|
+
auth_settings = []
|
9150
|
+
|
9151
|
+
http_info["cname"] = cname
|
9152
|
+
http_info["collection_formats"] = collection_formats
|
9153
|
+
http_info["path_params"] = path_params
|
9154
|
+
http_info["query_params"] = query_params
|
9155
|
+
http_info["header_params"] = header_params
|
9156
|
+
http_info["post_params"] = form_params
|
9157
|
+
http_info["body"] = body
|
9158
|
+
http_info["response_headers"] = response_headers
|
9159
|
+
|
9160
|
+
return http_info
|
9161
|
+
|
9162
|
+
def list_star_rocks_db_parameters_async(self, request):
|
9163
|
+
"""查询StarRocks数据同步的库参数配置
|
9164
|
+
|
9165
|
+
查询StarRocks数据同步的库参数配置。
|
9166
|
+
|
9167
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
9168
|
+
|
9169
|
+
|
9170
|
+
:param request: Request instance for ListStarRocksDbParameters
|
9171
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersRequest`
|
9172
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersResponse`
|
9173
|
+
"""
|
9174
|
+
http_info = self._list_star_rocks_db_parameters_http_info(request)
|
9175
|
+
return self._call_api(**http_info)
|
9176
|
+
|
9177
|
+
def list_star_rocks_db_parameters_async_invoker(self, request):
|
9178
|
+
http_info = self._list_star_rocks_db_parameters_http_info(request)
|
9179
|
+
return AsyncInvoker(self, http_info)
|
9180
|
+
|
9181
|
+
def _list_star_rocks_db_parameters_http_info(self, request):
|
9182
|
+
http_info = {
|
9183
|
+
"method": "GET",
|
9184
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-parameters",
|
9185
|
+
"request_type": request.__class__.__name__,
|
9186
|
+
"response_type": "ListStarRocksDbParametersResponse"
|
9187
|
+
}
|
9188
|
+
|
9189
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
9190
|
+
|
9191
|
+
cname = None
|
9192
|
+
|
9193
|
+
collection_formats = {}
|
9194
|
+
|
9195
|
+
path_params = {}
|
9196
|
+
if 'instance_id' in local_var_params:
|
9197
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
9198
|
+
|
9199
|
+
query_params = []
|
9200
|
+
|
9201
|
+
header_params = {}
|
9202
|
+
if 'x_language' in local_var_params:
|
9203
|
+
header_params['X-Language'] = local_var_params['x_language']
|
9204
|
+
|
9205
|
+
form_params = {}
|
9206
|
+
|
9207
|
+
body = None
|
9208
|
+
if isinstance(request, SdkStreamRequest):
|
9209
|
+
body = request.get_file_stream()
|
9210
|
+
|
9211
|
+
response_headers = []
|
9212
|
+
|
9213
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9214
|
+
['application/json'])
|
9215
|
+
|
9216
|
+
auth_settings = []
|
9217
|
+
|
9218
|
+
http_info["cname"] = cname
|
9219
|
+
http_info["collection_formats"] = collection_formats
|
9220
|
+
http_info["path_params"] = path_params
|
9221
|
+
http_info["query_params"] = query_params
|
9222
|
+
http_info["header_params"] = header_params
|
9223
|
+
http_info["post_params"] = form_params
|
9224
|
+
http_info["body"] = body
|
9225
|
+
http_info["response_headers"] = response_headers
|
9226
|
+
|
9227
|
+
return http_info
|
9228
|
+
|
9229
|
+
def list_starrocks_instance_info_async(self, request):
|
9230
|
+
"""查询StarRocks实例
|
9231
|
+
|
9232
|
+
查询StarRocks实例。
|
9233
|
+
|
9234
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
9235
|
+
|
9236
|
+
|
9237
|
+
:param request: Request instance for ListStarrocksInstanceInfo
|
9238
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListStarrocksInstanceInfoRequest`
|
9239
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarrocksInstanceInfoResponse`
|
9240
|
+
"""
|
9241
|
+
http_info = self._list_starrocks_instance_info_http_info(request)
|
9242
|
+
return self._call_api(**http_info)
|
9243
|
+
|
9244
|
+
def list_starrocks_instance_info_async_invoker(self, request):
|
9245
|
+
http_info = self._list_starrocks_instance_info_http_info(request)
|
9246
|
+
return AsyncInvoker(self, http_info)
|
9247
|
+
|
9248
|
+
def _list_starrocks_instance_info_http_info(self, request):
|
9249
|
+
http_info = {
|
9250
|
+
"method": "GET",
|
9251
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}",
|
9252
|
+
"request_type": request.__class__.__name__,
|
9253
|
+
"response_type": "ListStarrocksInstanceInfoResponse"
|
9254
|
+
}
|
9255
|
+
|
9256
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
9257
|
+
|
9258
|
+
cname = None
|
9259
|
+
|
9260
|
+
collection_formats = {}
|
9261
|
+
|
9262
|
+
path_params = {}
|
9263
|
+
if 'instance_id' in local_var_params:
|
9264
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
9265
|
+
if 'starrocks_instance_id' in local_var_params:
|
9266
|
+
path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
|
9267
|
+
|
9268
|
+
query_params = []
|
9269
|
+
|
9270
|
+
header_params = {}
|
9271
|
+
if 'x_language' in local_var_params:
|
9272
|
+
header_params['X-Language'] = local_var_params['x_language']
|
9273
|
+
|
9274
|
+
form_params = {}
|
9275
|
+
|
9276
|
+
body = None
|
9277
|
+
if isinstance(request, SdkStreamRequest):
|
9278
|
+
body = request.get_file_stream()
|
9279
|
+
|
9280
|
+
response_headers = []
|
9281
|
+
|
9282
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9283
|
+
['application/json'])
|
9284
|
+
|
9285
|
+
auth_settings = []
|
9286
|
+
|
9287
|
+
http_info["cname"] = cname
|
9288
|
+
http_info["collection_formats"] = collection_formats
|
9289
|
+
http_info["path_params"] = path_params
|
9290
|
+
http_info["query_params"] = query_params
|
9291
|
+
http_info["header_params"] = header_params
|
9292
|
+
http_info["post_params"] = form_params
|
9293
|
+
http_info["body"] = body
|
9294
|
+
http_info["response_headers"] = response_headers
|
9295
|
+
|
9296
|
+
return http_info
|
9297
|
+
|
9298
|
+
def restart_starrocks_instance_async(self, request):
|
9299
|
+
"""重启StarRocks实例
|
9300
|
+
|
9301
|
+
重启StarRocks实例。
|
9302
|
+
|
9303
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
9304
|
+
|
9305
|
+
|
9306
|
+
:param request: Request instance for RestartStarrocksInstance
|
9307
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksInstanceRequest`
|
9308
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksInstanceResponse`
|
9309
|
+
"""
|
9310
|
+
http_info = self._restart_starrocks_instance_http_info(request)
|
9311
|
+
return self._call_api(**http_info)
|
9312
|
+
|
9313
|
+
def restart_starrocks_instance_async_invoker(self, request):
|
9314
|
+
http_info = self._restart_starrocks_instance_http_info(request)
|
9315
|
+
return AsyncInvoker(self, http_info)
|
9316
|
+
|
9317
|
+
def _restart_starrocks_instance_http_info(self, request):
|
9318
|
+
http_info = {
|
9319
|
+
"method": "PUT",
|
9320
|
+
"resource_path": "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/restart",
|
9321
|
+
"request_type": request.__class__.__name__,
|
9322
|
+
"response_type": "RestartStarrocksInstanceResponse"
|
9323
|
+
}
|
9324
|
+
|
9325
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
9326
|
+
|
9327
|
+
cname = None
|
9328
|
+
|
9329
|
+
collection_formats = {}
|
9330
|
+
|
9331
|
+
path_params = {}
|
9332
|
+
if 'starrocks_instance_id' in local_var_params:
|
9333
|
+
path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
|
9334
|
+
|
9335
|
+
query_params = []
|
9336
|
+
|
9337
|
+
header_params = {}
|
9338
|
+
if 'x_language' in local_var_params:
|
9339
|
+
header_params['X-Language'] = local_var_params['x_language']
|
9340
|
+
|
9341
|
+
form_params = {}
|
9342
|
+
|
9343
|
+
body = None
|
9344
|
+
if isinstance(request, SdkStreamRequest):
|
9345
|
+
body = request.get_file_stream()
|
9346
|
+
|
9347
|
+
response_headers = []
|
9348
|
+
|
9349
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9350
|
+
['application/json'])
|
9351
|
+
|
9352
|
+
auth_settings = []
|
9353
|
+
|
9354
|
+
http_info["cname"] = cname
|
9355
|
+
http_info["collection_formats"] = collection_formats
|
9356
|
+
http_info["path_params"] = path_params
|
9357
|
+
http_info["query_params"] = query_params
|
9358
|
+
http_info["header_params"] = header_params
|
9359
|
+
http_info["post_params"] = form_params
|
9360
|
+
http_info["body"] = body
|
9361
|
+
http_info["response_headers"] = response_headers
|
9362
|
+
|
9363
|
+
return http_info
|
9364
|
+
|
9365
|
+
def restart_starrocks_node_async(self, request):
|
9366
|
+
"""重启StarRocks节点
|
9367
|
+
|
9368
|
+
重启StarRocks节点。
|
9369
|
+
|
9370
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
9371
|
+
|
9372
|
+
|
9373
|
+
:param request: Request instance for RestartStarrocksNode
|
9374
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksNodeRequest`
|
9375
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksNodeResponse`
|
9376
|
+
"""
|
9377
|
+
http_info = self._restart_starrocks_node_http_info(request)
|
9378
|
+
return self._call_api(**http_info)
|
9379
|
+
|
9380
|
+
def restart_starrocks_node_async_invoker(self, request):
|
9381
|
+
http_info = self._restart_starrocks_node_http_info(request)
|
9382
|
+
return AsyncInvoker(self, http_info)
|
9383
|
+
|
9384
|
+
def _restart_starrocks_node_http_info(self, request):
|
9385
|
+
http_info = {
|
9386
|
+
"method": "PUT",
|
9387
|
+
"resource_path": "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/{starrocks_node_id}/restart",
|
9388
|
+
"request_type": request.__class__.__name__,
|
9389
|
+
"response_type": "RestartStarrocksNodeResponse"
|
9390
|
+
}
|
9391
|
+
|
9392
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
9393
|
+
|
9394
|
+
cname = None
|
9395
|
+
|
9396
|
+
collection_formats = {}
|
9397
|
+
|
9398
|
+
path_params = {}
|
9399
|
+
if 'starrocks_node_id' in local_var_params:
|
9400
|
+
path_params['starrocks_node_id'] = local_var_params['starrocks_node_id']
|
9401
|
+
if 'starrocks_instance_id' in local_var_params:
|
9402
|
+
path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
|
9403
|
+
|
9404
|
+
query_params = []
|
9405
|
+
|
9406
|
+
header_params = {}
|
9407
|
+
if 'x_language' in local_var_params:
|
9408
|
+
header_params['X-Language'] = local_var_params['x_language']
|
9409
|
+
|
9410
|
+
form_params = {}
|
9411
|
+
|
9412
|
+
body = None
|
9413
|
+
if isinstance(request, SdkStreamRequest):
|
9414
|
+
body = request.get_file_stream()
|
9415
|
+
|
9416
|
+
response_headers = []
|
9417
|
+
|
9418
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9419
|
+
['application/json'])
|
9420
|
+
|
9421
|
+
auth_settings = []
|
9422
|
+
|
9423
|
+
http_info["cname"] = cname
|
9424
|
+
http_info["collection_formats"] = collection_formats
|
9425
|
+
http_info["path_params"] = path_params
|
9426
|
+
http_info["query_params"] = query_params
|
9427
|
+
http_info["header_params"] = header_params
|
9428
|
+
http_info["post_params"] = form_params
|
9429
|
+
http_info["body"] = body
|
9430
|
+
http_info["response_headers"] = response_headers
|
9431
|
+
|
9432
|
+
return http_info
|
9433
|
+
|
9434
|
+
def show_star_rocks_database_user_async(self, request):
|
9435
|
+
"""查询数据库账户
|
9436
|
+
|
9437
|
+
查询StarRocks数据库账户。
|
9438
|
+
|
9439
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
9440
|
+
|
9441
|
+
|
9442
|
+
:param request: Request instance for ShowStarRocksDatabaseUser
|
9443
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUserRequest`
|
9444
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUserResponse`
|
9445
|
+
"""
|
9446
|
+
http_info = self._show_star_rocks_database_user_http_info(request)
|
9447
|
+
return self._call_api(**http_info)
|
9448
|
+
|
9449
|
+
def show_star_rocks_database_user_async_invoker(self, request):
|
9450
|
+
http_info = self._show_star_rocks_database_user_http_info(request)
|
9451
|
+
return AsyncInvoker(self, http_info)
|
9452
|
+
|
9453
|
+
def _show_star_rocks_database_user_http_info(self, request):
|
9454
|
+
http_info = {
|
9455
|
+
"method": "GET",
|
9456
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
|
9457
|
+
"request_type": request.__class__.__name__,
|
9458
|
+
"response_type": "ShowStarRocksDatabaseUserResponse"
|
9459
|
+
}
|
9460
|
+
|
9461
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
9462
|
+
|
9463
|
+
cname = None
|
9464
|
+
|
9465
|
+
collection_formats = {}
|
9466
|
+
|
9467
|
+
path_params = {}
|
9468
|
+
if 'instance_id' in local_var_params:
|
9469
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
9470
|
+
|
9471
|
+
query_params = []
|
9472
|
+
if 'user_name' in local_var_params:
|
9473
|
+
query_params.append(('user_name', local_var_params['user_name']))
|
9474
|
+
if 'limit' in local_var_params:
|
9475
|
+
query_params.append(('limit', local_var_params['limit']))
|
9476
|
+
if 'offset' in local_var_params:
|
9477
|
+
query_params.append(('offset', local_var_params['offset']))
|
9478
|
+
|
9479
|
+
header_params = {}
|
9480
|
+
if 'x_language' in local_var_params:
|
9481
|
+
header_params['X-Language'] = local_var_params['x_language']
|
9482
|
+
|
9483
|
+
form_params = {}
|
9484
|
+
|
9485
|
+
body = None
|
9486
|
+
if isinstance(request, SdkStreamRequest):
|
9487
|
+
body = request.get_file_stream()
|
9488
|
+
|
9489
|
+
response_headers = []
|
9490
|
+
|
9491
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9492
|
+
['application/json'])
|
9493
|
+
|
9494
|
+
auth_settings = []
|
9495
|
+
|
9496
|
+
http_info["cname"] = cname
|
9497
|
+
http_info["collection_formats"] = collection_formats
|
9498
|
+
http_info["path_params"] = path_params
|
9499
|
+
http_info["query_params"] = query_params
|
9500
|
+
http_info["header_params"] = header_params
|
9501
|
+
http_info["post_params"] = form_params
|
9502
|
+
http_info["body"] = body
|
9503
|
+
http_info["response_headers"] = response_headers
|
9504
|
+
|
9505
|
+
return http_info
|
9506
|
+
|
9507
|
+
def update_star_rocks_database_user_password_async(self, request):
|
9508
|
+
"""修改数据库账号密码
|
9509
|
+
|
9510
|
+
修改StarRocks数据库账号密码。
|
9511
|
+
|
9512
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
9513
|
+
|
9514
|
+
|
9515
|
+
:param request: Request instance for UpdateStarRocksDatabaseUserPassword
|
9516
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateStarRocksDatabaseUserPasswordRequest`
|
9517
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateStarRocksDatabaseUserPasswordResponse`
|
9518
|
+
"""
|
9519
|
+
http_info = self._update_star_rocks_database_user_password_http_info(request)
|
9520
|
+
return self._call_api(**http_info)
|
9521
|
+
|
9522
|
+
def update_star_rocks_database_user_password_async_invoker(self, request):
|
9523
|
+
http_info = self._update_star_rocks_database_user_password_http_info(request)
|
9524
|
+
return AsyncInvoker(self, http_info)
|
9525
|
+
|
9526
|
+
def _update_star_rocks_database_user_password_http_info(self, request):
|
9527
|
+
http_info = {
|
9528
|
+
"method": "PUT",
|
9529
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users/password",
|
9530
|
+
"request_type": request.__class__.__name__,
|
9531
|
+
"response_type": "UpdateStarRocksDatabaseUserPasswordResponse"
|
9532
|
+
}
|
9533
|
+
|
9534
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
9535
|
+
|
9536
|
+
cname = None
|
9537
|
+
|
9538
|
+
collection_formats = {}
|
9539
|
+
|
9540
|
+
path_params = {}
|
9541
|
+
if 'instance_id' in local_var_params:
|
9542
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
9543
|
+
|
9544
|
+
query_params = []
|
9545
|
+
|
9546
|
+
header_params = {}
|
9547
|
+
if 'x_language' in local_var_params:
|
9548
|
+
header_params['X-Language'] = local_var_params['x_language']
|
9549
|
+
|
9550
|
+
form_params = {}
|
9551
|
+
|
9552
|
+
body = None
|
9553
|
+
if 'body' in local_var_params:
|
9554
|
+
body = local_var_params['body']
|
9555
|
+
if isinstance(request, SdkStreamRequest):
|
9556
|
+
body = request.get_file_stream()
|
9557
|
+
|
9558
|
+
response_headers = []
|
9559
|
+
|
9560
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9561
|
+
['application/json;charset=UTF-8'])
|
9562
|
+
|
9563
|
+
auth_settings = []
|
9564
|
+
|
9565
|
+
http_info["cname"] = cname
|
9566
|
+
http_info["collection_formats"] = collection_formats
|
9567
|
+
http_info["path_params"] = path_params
|
9568
|
+
http_info["query_params"] = query_params
|
9569
|
+
http_info["header_params"] = header_params
|
9570
|
+
http_info["post_params"] = form_params
|
9571
|
+
http_info["body"] = body
|
9572
|
+
http_info["response_headers"] = response_headers
|
9573
|
+
|
9574
|
+
return http_info
|
9575
|
+
|
9576
|
+
def update_star_rocks_database_user_permission_async(self, request):
|
9577
|
+
"""修改数据库账号权限
|
9578
|
+
|
9579
|
+
修改StarRocks数据库账号权限。
|
9580
|
+
|
9581
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
9582
|
+
|
9583
|
+
|
9584
|
+
:param request: Request instance for UpdateStarRocksDatabaseUserPermission
|
9585
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateStarRocksDatabaseUserPermissionRequest`
|
9586
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateStarRocksDatabaseUserPermissionResponse`
|
9587
|
+
"""
|
9588
|
+
http_info = self._update_star_rocks_database_user_permission_http_info(request)
|
9589
|
+
return self._call_api(**http_info)
|
9590
|
+
|
9591
|
+
def update_star_rocks_database_user_permission_async_invoker(self, request):
|
9592
|
+
http_info = self._update_star_rocks_database_user_permission_http_info(request)
|
9593
|
+
return AsyncInvoker(self, http_info)
|
9594
|
+
|
9595
|
+
def _update_star_rocks_database_user_permission_http_info(self, request):
|
9596
|
+
http_info = {
|
9597
|
+
"method": "PUT",
|
9598
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users/permission",
|
9599
|
+
"request_type": request.__class__.__name__,
|
9600
|
+
"response_type": "UpdateStarRocksDatabaseUserPermissionResponse"
|
9601
|
+
}
|
9602
|
+
|
9603
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
9604
|
+
|
9605
|
+
cname = None
|
9606
|
+
|
9607
|
+
collection_formats = {}
|
9608
|
+
|
9609
|
+
path_params = {}
|
9610
|
+
if 'instance_id' in local_var_params:
|
9611
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
9612
|
+
|
9613
|
+
query_params = []
|
9614
|
+
|
9615
|
+
header_params = {}
|
9616
|
+
if 'x_language' in local_var_params:
|
9617
|
+
header_params['X-Language'] = local_var_params['x_language']
|
9618
|
+
|
9619
|
+
form_params = {}
|
9620
|
+
|
9621
|
+
body = None
|
9622
|
+
if 'body' in local_var_params:
|
9623
|
+
body = local_var_params['body']
|
9624
|
+
if isinstance(request, SdkStreamRequest):
|
9625
|
+
body = request.get_file_stream()
|
9626
|
+
|
9627
|
+
response_headers = []
|
9628
|
+
|
9629
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9630
|
+
['application/json;charset=UTF-8'])
|
9631
|
+
|
9632
|
+
auth_settings = []
|
9633
|
+
|
9634
|
+
http_info["cname"] = cname
|
9635
|
+
http_info["collection_formats"] = collection_formats
|
9636
|
+
http_info["path_params"] = path_params
|
9637
|
+
http_info["query_params"] = query_params
|
9638
|
+
http_info["header_params"] = header_params
|
9639
|
+
http_info["post_params"] = form_params
|
9640
|
+
http_info["body"] = body
|
9641
|
+
http_info["response_headers"] = response_headers
|
9642
|
+
|
9643
|
+
return http_info
|
9644
|
+
|
8054
9645
|
def delete_sql_filter_rule_async(self, request):
|
8055
9646
|
"""删除SQL限流规则
|
8056
9647
|
|