huaweicloudsdkgaussdb 3.1.102__py2.py3-none-any.whl → 3.1.103__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkgaussdb/v3/__init__.py +111 -1
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +2346 -272
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +2346 -272
- huaweicloudsdkgaussdb/v3/model/__init__.py +111 -1
- huaweicloudsdkgaussdb/v3/model/ch_database_config_check_result.py +170 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_config_response.py +142 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_configs_info.py +142 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_parameter_info.py +226 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_replication_info.py +254 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_table_config_check_result.py +170 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_table_repl_config_info.py +142 -0
- huaweicloudsdkgaussdb/v3/model/ch_database_tables_configs_info.py +142 -0
- huaweicloudsdkgaussdb/v3/model/ch_enlarge_volume_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/ch_instance_lts_configs.py +140 -0
- huaweicloudsdkgaussdb/v3/model/ch_instance_lts_configs_instance.py +318 -0
- huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance.py +1179 -0
- huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_groups.py +198 -0
- huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_ops_window.py +171 -0
- huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_param_group.py +144 -0
- huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_port_info.py +226 -0
- huaweicloudsdkgaussdb/v3/model/ch_lts_configs.py +202 -0
- huaweicloudsdkgaussdb/v3/model/ch_query_action_info.py +318 -0
- huaweicloudsdkgaussdb/v3/model/ch_slow_log_detail_response_slow_log_list.py +450 -0
- huaweicloudsdkgaussdb/v3/model/ch_slow_log_query_request_body.py +285 -0
- huaweicloudsdkgaussdb/v3/model/ch_slowlog_sensitive_response.py +114 -0
- huaweicloudsdkgaussdb/v3/model/check_ch_database_config_request_body.py +223 -0
- huaweicloudsdkgaussdb/v3/model/check_ch_database_table_config_request_body.py +251 -0
- huaweicloudsdkgaussdb/v3/model/check_click_house_data_base_config_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/check_click_house_data_base_config_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/check_click_house_table_config_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/check_click_house_table_config_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/click_house_database_user_info.py +199 -0
- huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_sinfo.py +170 -0
- huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_winfo.py +142 -0
- huaweicloudsdkgaussdb/v3/model/click_house_engine_info.py +142 -0
- huaweicloudsdkgaussdb/v3/model/click_house_node_info.py +979 -0
- huaweicloudsdkgaussdb/v3/model/click_house_node_info_datastore.py +170 -0
- huaweicloudsdkgaussdb/v3/model/click_house_node_info_response_body_node_list.py +170 -0
- huaweicloudsdkgaussdb/v3/model/click_house_node_info_volume.py +200 -0
- huaweicloudsdkgaussdb/v3/model/click_house_resize_flavor_request_body.py +171 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_database_replication_request_body.py +171 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_info.py +522 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_pay_info.py +226 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_tags_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/{sr_create_instance_rsp_instance_tags_info_tags.py → create_ch_instance_info_tags_info_tags.py} +11 -11
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body.py +376 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_ha.py +114 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_pay_info.py +231 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info.py +114 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info_sys_tags.py +142 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_volume.py +142 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body_log_configs.py +198 -0
- huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_click_house_instance_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_click_house_instance_response.py +141 -0
- huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body_log_configs.py +142 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_response.py +307 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_request.py +201 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_request.py +230 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_instance_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_click_house_instance_response.py +112 -0
- huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication.py +114 -0
- huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication.py +114 -0
- huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_request.py +230 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_database_users_user_details.py +198 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_request.py +260 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +4 -4
- huaweicloudsdkgaussdb/v3/model/update_ch_database_config_request_body.py +199 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_response.py +85 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_response.py +116 -0
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/RECORD +121 -11
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/top_level.txt +0 -0
@@ -9439,6 +9439,144 @@ class GaussDBAsyncClient(Client):
|
|
9439
9439
|
|
9440
9440
|
return http_info
|
9441
9441
|
|
9442
|
+
def check_click_house_data_base_config_async(self, request):
|
9443
|
+
"""数据同步库配置校验
|
9444
|
+
|
9445
|
+
数据同步库配置校验。
|
9446
|
+
|
9447
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
9448
|
+
|
9449
|
+
|
9450
|
+
:param request: Request instance for CheckClickHouseDataBaseConfig
|
9451
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CheckClickHouseDataBaseConfigRequest`
|
9452
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CheckClickHouseDataBaseConfigResponse`
|
9453
|
+
"""
|
9454
|
+
http_info = self._check_click_house_data_base_config_http_info(request)
|
9455
|
+
return self._call_api(**http_info)
|
9456
|
+
|
9457
|
+
def check_click_house_data_base_config_async_invoker(self, request):
|
9458
|
+
http_info = self._check_click_house_data_base_config_http_info(request)
|
9459
|
+
return AsyncInvoker(self, http_info)
|
9460
|
+
|
9461
|
+
def _check_click_house_data_base_config_http_info(self, request):
|
9462
|
+
http_info = {
|
9463
|
+
"method": "POST",
|
9464
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/database-check",
|
9465
|
+
"request_type": request.__class__.__name__,
|
9466
|
+
"response_type": "CheckClickHouseDataBaseConfigResponse"
|
9467
|
+
}
|
9468
|
+
|
9469
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
9470
|
+
|
9471
|
+
cname = None
|
9472
|
+
|
9473
|
+
collection_formats = {}
|
9474
|
+
|
9475
|
+
path_params = {}
|
9476
|
+
if 'instance_id' in local_var_params:
|
9477
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
9478
|
+
|
9479
|
+
query_params = []
|
9480
|
+
|
9481
|
+
header_params = {}
|
9482
|
+
if 'x_language' in local_var_params:
|
9483
|
+
header_params['X-Language'] = local_var_params['x_language']
|
9484
|
+
|
9485
|
+
form_params = {}
|
9486
|
+
|
9487
|
+
body = None
|
9488
|
+
if 'body' in local_var_params:
|
9489
|
+
body = local_var_params['body']
|
9490
|
+
if isinstance(request, SdkStreamRequest):
|
9491
|
+
body = request.get_file_stream()
|
9492
|
+
|
9493
|
+
response_headers = []
|
9494
|
+
|
9495
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9496
|
+
['application/json;charset=UTF-8'])
|
9497
|
+
|
9498
|
+
auth_settings = []
|
9499
|
+
|
9500
|
+
http_info["cname"] = cname
|
9501
|
+
http_info["collection_formats"] = collection_formats
|
9502
|
+
http_info["path_params"] = path_params
|
9503
|
+
http_info["query_params"] = query_params
|
9504
|
+
http_info["header_params"] = header_params
|
9505
|
+
http_info["post_params"] = form_params
|
9506
|
+
http_info["body"] = body
|
9507
|
+
http_info["response_headers"] = response_headers
|
9508
|
+
|
9509
|
+
return http_info
|
9510
|
+
|
9511
|
+
def check_click_house_table_config_async(self, request):
|
9512
|
+
"""数据同步表配置校验
|
9513
|
+
|
9514
|
+
数据同步表配置校验。
|
9515
|
+
|
9516
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
9517
|
+
|
9518
|
+
|
9519
|
+
:param request: Request instance for CheckClickHouseTableConfig
|
9520
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CheckClickHouseTableConfigRequest`
|
9521
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CheckClickHouseTableConfigResponse`
|
9522
|
+
"""
|
9523
|
+
http_info = self._check_click_house_table_config_http_info(request)
|
9524
|
+
return self._call_api(**http_info)
|
9525
|
+
|
9526
|
+
def check_click_house_table_config_async_invoker(self, request):
|
9527
|
+
http_info = self._check_click_house_table_config_http_info(request)
|
9528
|
+
return AsyncInvoker(self, http_info)
|
9529
|
+
|
9530
|
+
def _check_click_house_table_config_http_info(self, request):
|
9531
|
+
http_info = {
|
9532
|
+
"method": "POST",
|
9533
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/table-check",
|
9534
|
+
"request_type": request.__class__.__name__,
|
9535
|
+
"response_type": "CheckClickHouseTableConfigResponse"
|
9536
|
+
}
|
9537
|
+
|
9538
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
9539
|
+
|
9540
|
+
cname = None
|
9541
|
+
|
9542
|
+
collection_formats = {}
|
9543
|
+
|
9544
|
+
path_params = {}
|
9545
|
+
if 'instance_id' in local_var_params:
|
9546
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
9547
|
+
|
9548
|
+
query_params = []
|
9549
|
+
|
9550
|
+
header_params = {}
|
9551
|
+
if 'x_language' in local_var_params:
|
9552
|
+
header_params['X-Language'] = local_var_params['x_language']
|
9553
|
+
|
9554
|
+
form_params = {}
|
9555
|
+
|
9556
|
+
body = None
|
9557
|
+
if 'body' in local_var_params:
|
9558
|
+
body = local_var_params['body']
|
9559
|
+
if isinstance(request, SdkStreamRequest):
|
9560
|
+
body = request.get_file_stream()
|
9561
|
+
|
9562
|
+
response_headers = []
|
9563
|
+
|
9564
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9565
|
+
['application/json;charset=UTF-8'])
|
9566
|
+
|
9567
|
+
auth_settings = []
|
9568
|
+
|
9569
|
+
http_info["cname"] = cname
|
9570
|
+
http_info["collection_formats"] = collection_formats
|
9571
|
+
http_info["path_params"] = path_params
|
9572
|
+
http_info["query_params"] = query_params
|
9573
|
+
http_info["header_params"] = header_params
|
9574
|
+
http_info["post_params"] = form_params
|
9575
|
+
http_info["body"] = body
|
9576
|
+
http_info["response_headers"] = response_headers
|
9577
|
+
|
9578
|
+
return http_info
|
9579
|
+
|
9442
9580
|
def check_data_base_config_async(self, request):
|
9443
9581
|
"""HTAP数据同步库配置校验
|
9444
9582
|
|
@@ -9644,31 +9782,31 @@ class GaussDBAsyncClient(Client):
|
|
9644
9782
|
|
9645
9783
|
return http_info
|
9646
9784
|
|
9647
|
-
def
|
9648
|
-
"""
|
9785
|
+
def create_click_house_data_base_replication_async(self, request):
|
9786
|
+
"""创建数据同步
|
9649
9787
|
|
9650
|
-
|
9788
|
+
创建数据同步。
|
9651
9789
|
|
9652
9790
|
Please refer to HUAWEI cloud API Explorer for details.
|
9653
9791
|
|
9654
9792
|
|
9655
|
-
:param request: Request instance for
|
9656
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
9657
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
9793
|
+
:param request: Request instance for CreateClickHouseDataBaseReplication
|
9794
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CreateClickHouseDataBaseReplicationRequest`
|
9795
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CreateClickHouseDataBaseReplicationResponse`
|
9658
9796
|
"""
|
9659
|
-
http_info = self.
|
9797
|
+
http_info = self._create_click_house_data_base_replication_http_info(request)
|
9660
9798
|
return self._call_api(**http_info)
|
9661
9799
|
|
9662
|
-
def
|
9663
|
-
http_info = self.
|
9800
|
+
def create_click_house_data_base_replication_async_invoker(self, request):
|
9801
|
+
http_info = self._create_click_house_data_base_replication_http_info(request)
|
9664
9802
|
return AsyncInvoker(self, http_info)
|
9665
9803
|
|
9666
|
-
def
|
9804
|
+
def _create_click_house_data_base_replication_http_info(self, request):
|
9667
9805
|
http_info = {
|
9668
9806
|
"method": "POST",
|
9669
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/
|
9807
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication",
|
9670
9808
|
"request_type": request.__class__.__name__,
|
9671
|
-
"response_type": "
|
9809
|
+
"response_type": "CreateClickHouseDataBaseReplicationResponse"
|
9672
9810
|
}
|
9673
9811
|
|
9674
9812
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -9713,31 +9851,31 @@ class GaussDBAsyncClient(Client):
|
|
9713
9851
|
|
9714
9852
|
return http_info
|
9715
9853
|
|
9716
|
-
def
|
9854
|
+
def create_click_house_database_user_async(self, request):
|
9717
9855
|
"""创建数据库账号
|
9718
9856
|
|
9719
|
-
|
9857
|
+
创建数据库账号。
|
9720
9858
|
|
9721
9859
|
Please refer to HUAWEI cloud API Explorer for details.
|
9722
9860
|
|
9723
9861
|
|
9724
|
-
:param request: Request instance for
|
9725
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
9726
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
9862
|
+
:param request: Request instance for CreateClickHouseDatabaseUser
|
9863
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CreateClickHouseDatabaseUserRequest`
|
9864
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CreateClickHouseDatabaseUserResponse`
|
9727
9865
|
"""
|
9728
|
-
http_info = self.
|
9866
|
+
http_info = self._create_click_house_database_user_http_info(request)
|
9729
9867
|
return self._call_api(**http_info)
|
9730
9868
|
|
9731
|
-
def
|
9732
|
-
http_info = self.
|
9869
|
+
def create_click_house_database_user_async_invoker(self, request):
|
9870
|
+
http_info = self._create_click_house_database_user_http_info(request)
|
9733
9871
|
return AsyncInvoker(self, http_info)
|
9734
9872
|
|
9735
|
-
def
|
9873
|
+
def _create_click_house_database_user_http_info(self, request):
|
9736
9874
|
http_info = {
|
9737
9875
|
"method": "POST",
|
9738
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/
|
9876
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/users",
|
9739
9877
|
"request_type": request.__class__.__name__,
|
9740
|
-
"response_type": "
|
9878
|
+
"response_type": "CreateClickHouseDatabaseUserResponse"
|
9741
9879
|
}
|
9742
9880
|
|
9743
9881
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -9782,31 +9920,31 @@ class GaussDBAsyncClient(Client):
|
|
9782
9920
|
|
9783
9921
|
return http_info
|
9784
9922
|
|
9785
|
-
def
|
9786
|
-
"""
|
9923
|
+
def create_click_house_instance_async(self, request):
|
9924
|
+
"""创建实例
|
9787
9925
|
|
9788
|
-
|
9926
|
+
创建实例。
|
9789
9927
|
|
9790
9928
|
Please refer to HUAWEI cloud API Explorer for details.
|
9791
9929
|
|
9792
9930
|
|
9793
|
-
:param request: Request instance for
|
9794
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
9795
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
9931
|
+
:param request: Request instance for CreateClickHouseInstance
|
9932
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CreateClickHouseInstanceRequest`
|
9933
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CreateClickHouseInstanceResponse`
|
9796
9934
|
"""
|
9797
|
-
http_info = self.
|
9935
|
+
http_info = self._create_click_house_instance_http_info(request)
|
9798
9936
|
return self._call_api(**http_info)
|
9799
9937
|
|
9800
|
-
def
|
9801
|
-
http_info = self.
|
9938
|
+
def create_click_house_instance_async_invoker(self, request):
|
9939
|
+
http_info = self._create_click_house_instance_http_info(request)
|
9802
9940
|
return AsyncInvoker(self, http_info)
|
9803
9941
|
|
9804
|
-
def
|
9942
|
+
def _create_click_house_instance_http_info(self, request):
|
9805
9943
|
http_info = {
|
9806
9944
|
"method": "POST",
|
9807
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/
|
9945
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse",
|
9808
9946
|
"request_type": request.__class__.__name__,
|
9809
|
-
"response_type": "
|
9947
|
+
"response_type": "CreateClickHouseInstanceResponse"
|
9810
9948
|
}
|
9811
9949
|
|
9812
9950
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -9851,31 +9989,31 @@ class GaussDBAsyncClient(Client):
|
|
9851
9989
|
|
9852
9990
|
return http_info
|
9853
9991
|
|
9854
|
-
def
|
9855
|
-
"""
|
9992
|
+
def create_star_rocks_data_replication_async(self, request):
|
9993
|
+
"""创建StarRocks数据同步
|
9856
9994
|
|
9857
|
-
|
9995
|
+
创建StarRocks数据同步。
|
9858
9996
|
|
9859
9997
|
Please refer to HUAWEI cloud API Explorer for details.
|
9860
9998
|
|
9861
9999
|
|
9862
|
-
:param request: Request instance for
|
9863
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
9864
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
10000
|
+
:param request: Request instance for CreateStarRocksDataReplication
|
10001
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDataReplicationRequest`
|
10002
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDataReplicationResponse`
|
9865
10003
|
"""
|
9866
|
-
http_info = self.
|
10004
|
+
http_info = self._create_star_rocks_data_replication_http_info(request)
|
9867
10005
|
return self._call_api(**http_info)
|
9868
10006
|
|
9869
|
-
def
|
9870
|
-
http_info = self.
|
10007
|
+
def create_star_rocks_data_replication_async_invoker(self, request):
|
10008
|
+
http_info = self._create_star_rocks_data_replication_http_info(request)
|
9871
10009
|
return AsyncInvoker(self, http_info)
|
9872
10010
|
|
9873
|
-
def
|
10011
|
+
def _create_star_rocks_data_replication_http_info(self, request):
|
9874
10012
|
http_info = {
|
9875
|
-
"method": "
|
10013
|
+
"method": "POST",
|
9876
10014
|
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
|
9877
10015
|
"request_type": request.__class__.__name__,
|
9878
|
-
"response_type": "
|
10016
|
+
"response_type": "CreateStarRocksDataReplicationResponse"
|
9879
10017
|
}
|
9880
10018
|
|
9881
10019
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -9920,31 +10058,31 @@ class GaussDBAsyncClient(Client):
|
|
9920
10058
|
|
9921
10059
|
return http_info
|
9922
10060
|
|
9923
|
-
def
|
9924
|
-
"""
|
10061
|
+
def create_star_rocks_database_user_async(self, request):
|
10062
|
+
"""创建数据库账号
|
9925
10063
|
|
9926
|
-
|
10064
|
+
创建StarRocks数据库账号。
|
9927
10065
|
|
9928
10066
|
Please refer to HUAWEI cloud API Explorer for details.
|
9929
10067
|
|
9930
10068
|
|
9931
|
-
:param request: Request instance for
|
9932
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
9933
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
10069
|
+
:param request: Request instance for CreateStarRocksDatabaseUser
|
10070
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDatabaseUserRequest`
|
10071
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDatabaseUserResponse`
|
9934
10072
|
"""
|
9935
|
-
http_info = self.
|
10073
|
+
http_info = self._create_star_rocks_database_user_http_info(request)
|
9936
10074
|
return self._call_api(**http_info)
|
9937
10075
|
|
9938
|
-
def
|
9939
|
-
http_info = self.
|
10076
|
+
def create_star_rocks_database_user_async_invoker(self, request):
|
10077
|
+
http_info = self._create_star_rocks_database_user_http_info(request)
|
9940
10078
|
return AsyncInvoker(self, http_info)
|
9941
10079
|
|
9942
|
-
def
|
10080
|
+
def _create_star_rocks_database_user_http_info(self, request):
|
9943
10081
|
http_info = {
|
9944
|
-
"method": "
|
10082
|
+
"method": "POST",
|
9945
10083
|
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
|
9946
10084
|
"request_type": request.__class__.__name__,
|
9947
|
-
"response_type": "
|
10085
|
+
"response_type": "CreateStarRocksDatabaseUserResponse"
|
9948
10086
|
}
|
9949
10087
|
|
9950
10088
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -9958,8 +10096,6 @@ class GaussDBAsyncClient(Client):
|
|
9958
10096
|
path_params['instance_id'] = local_var_params['instance_id']
|
9959
10097
|
|
9960
10098
|
query_params = []
|
9961
|
-
if 'user_name' in local_var_params:
|
9962
|
-
query_params.append(('user_name', local_var_params['user_name']))
|
9963
10099
|
|
9964
10100
|
header_params = {}
|
9965
10101
|
if 'x_language' in local_var_params:
|
@@ -9968,13 +10104,15 @@ class GaussDBAsyncClient(Client):
|
|
9968
10104
|
form_params = {}
|
9969
10105
|
|
9970
10106
|
body = None
|
10107
|
+
if 'body' in local_var_params:
|
10108
|
+
body = local_var_params['body']
|
9971
10109
|
if isinstance(request, SdkStreamRequest):
|
9972
10110
|
body = request.get_file_stream()
|
9973
10111
|
|
9974
10112
|
response_headers = []
|
9975
10113
|
|
9976
10114
|
header_params['Content-Type'] = http_utils.select_header_content_type(
|
9977
|
-
['application/json'])
|
10115
|
+
['application/json;charset=UTF-8'])
|
9978
10116
|
|
9979
10117
|
auth_settings = []
|
9980
10118
|
|
@@ -9989,31 +10127,31 @@ class GaussDBAsyncClient(Client):
|
|
9989
10127
|
|
9990
10128
|
return http_info
|
9991
10129
|
|
9992
|
-
def
|
9993
|
-
"""
|
10130
|
+
def create_starrocks_instance_async(self, request):
|
10131
|
+
"""创建StarRocks实例
|
9994
10132
|
|
9995
|
-
|
10133
|
+
创建StarRocks实例。
|
9996
10134
|
|
9997
10135
|
Please refer to HUAWEI cloud API Explorer for details.
|
9998
10136
|
|
9999
10137
|
|
10000
|
-
:param request: Request instance for
|
10001
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
10002
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
10138
|
+
:param request: Request instance for CreateStarrocksInstance
|
10139
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarrocksInstanceRequest`
|
10140
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarrocksInstanceResponse`
|
10003
10141
|
"""
|
10004
|
-
http_info = self.
|
10142
|
+
http_info = self._create_starrocks_instance_http_info(request)
|
10005
10143
|
return self._call_api(**http_info)
|
10006
10144
|
|
10007
|
-
def
|
10008
|
-
http_info = self.
|
10145
|
+
def create_starrocks_instance_async_invoker(self, request):
|
10146
|
+
http_info = self._create_starrocks_instance_http_info(request)
|
10009
10147
|
return AsyncInvoker(self, http_info)
|
10010
10148
|
|
10011
|
-
def
|
10149
|
+
def _create_starrocks_instance_http_info(self, request):
|
10012
10150
|
http_info = {
|
10013
|
-
"method": "
|
10014
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks
|
10151
|
+
"method": "POST",
|
10152
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks",
|
10015
10153
|
"request_type": request.__class__.__name__,
|
10016
|
-
"response_type": "
|
10154
|
+
"response_type": "CreateStarrocksInstanceResponse"
|
10017
10155
|
}
|
10018
10156
|
|
10019
10157
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10025,8 +10163,6 @@ class GaussDBAsyncClient(Client):
|
|
10025
10163
|
path_params = {}
|
10026
10164
|
if 'instance_id' in local_var_params:
|
10027
10165
|
path_params['instance_id'] = local_var_params['instance_id']
|
10028
|
-
if 'starrocks_instance_id' in local_var_params:
|
10029
|
-
path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
|
10030
10166
|
|
10031
10167
|
query_params = []
|
10032
10168
|
|
@@ -10037,13 +10173,15 @@ class GaussDBAsyncClient(Client):
|
|
10037
10173
|
form_params = {}
|
10038
10174
|
|
10039
10175
|
body = None
|
10176
|
+
if 'body' in local_var_params:
|
10177
|
+
body = local_var_params['body']
|
10040
10178
|
if isinstance(request, SdkStreamRequest):
|
10041
10179
|
body = request.get_file_stream()
|
10042
10180
|
|
10043
10181
|
response_headers = []
|
10044
10182
|
|
10045
10183
|
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10046
|
-
['application/json'])
|
10184
|
+
['application/json;charset=UTF-8'])
|
10047
10185
|
|
10048
10186
|
auth_settings = []
|
10049
10187
|
|
@@ -10058,31 +10196,1963 @@ class GaussDBAsyncClient(Client):
|
|
10058
10196
|
|
10059
10197
|
return http_info
|
10060
10198
|
|
10061
|
-
def
|
10062
|
-
"""
|
10199
|
+
def delete_click_house_data_base_config_async(self, request):
|
10200
|
+
"""停止修改数据同步
|
10063
10201
|
|
10064
|
-
|
10202
|
+
停止修改数据同步。
|
10065
10203
|
|
10066
10204
|
Please refer to HUAWEI cloud API Explorer for details.
|
10067
10205
|
|
10068
10206
|
|
10069
|
-
:param request: Request instance for
|
10070
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
10071
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
10207
|
+
:param request: Request instance for DeleteClickHouseDataBaseConfig
|
10208
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseDataBaseConfigRequest`
|
10209
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseDataBaseConfigResponse`
|
10072
10210
|
"""
|
10073
|
-
http_info = self.
|
10211
|
+
http_info = self._delete_click_house_data_base_config_http_info(request)
|
10074
10212
|
return self._call_api(**http_info)
|
10075
10213
|
|
10076
|
-
def
|
10077
|
-
http_info = self.
|
10214
|
+
def delete_click_house_data_base_config_async_invoker(self, request):
|
10215
|
+
http_info = self._delete_click_house_data_base_config_http_info(request)
|
10078
10216
|
return AsyncInvoker(self, http_info)
|
10079
10217
|
|
10080
|
-
def
|
10218
|
+
def _delete_click_house_data_base_config_http_info(self, request):
|
10081
10219
|
http_info = {
|
10082
|
-
"method": "
|
10083
|
-
"resource_path": "/v3/{project_id}/
|
10220
|
+
"method": "DELETE",
|
10221
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/databases/replication/config",
|
10222
|
+
"request_type": request.__class__.__name__,
|
10223
|
+
"response_type": "DeleteClickHouseDataBaseConfigResponse"
|
10224
|
+
}
|
10225
|
+
|
10226
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10227
|
+
|
10228
|
+
cname = None
|
10229
|
+
|
10230
|
+
collection_formats = {}
|
10231
|
+
|
10232
|
+
path_params = {}
|
10233
|
+
if 'instance_id' in local_var_params:
|
10234
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10235
|
+
|
10236
|
+
query_params = []
|
10237
|
+
if 'database' in local_var_params:
|
10238
|
+
query_params.append(('database', local_var_params['database']))
|
10239
|
+
|
10240
|
+
header_params = {}
|
10241
|
+
if 'x_language' in local_var_params:
|
10242
|
+
header_params['X-Language'] = local_var_params['x_language']
|
10243
|
+
|
10244
|
+
form_params = {}
|
10245
|
+
|
10246
|
+
body = None
|
10247
|
+
if isinstance(request, SdkStreamRequest):
|
10248
|
+
body = request.get_file_stream()
|
10249
|
+
|
10250
|
+
response_headers = []
|
10251
|
+
|
10252
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10253
|
+
['application/json'])
|
10254
|
+
|
10255
|
+
auth_settings = []
|
10256
|
+
|
10257
|
+
http_info["cname"] = cname
|
10258
|
+
http_info["collection_formats"] = collection_formats
|
10259
|
+
http_info["path_params"] = path_params
|
10260
|
+
http_info["query_params"] = query_params
|
10261
|
+
http_info["header_params"] = header_params
|
10262
|
+
http_info["post_params"] = form_params
|
10263
|
+
http_info["body"] = body
|
10264
|
+
http_info["response_headers"] = response_headers
|
10265
|
+
|
10266
|
+
return http_info
|
10267
|
+
|
10268
|
+
def delete_click_house_data_base_replication_async(self, request):
|
10269
|
+
"""删除数据同步
|
10270
|
+
|
10271
|
+
删除数据同步。
|
10272
|
+
|
10273
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10274
|
+
|
10275
|
+
|
10276
|
+
:param request: Request instance for DeleteClickHouseDataBaseReplication
|
10277
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseDataBaseReplicationRequest`
|
10278
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseDataBaseReplicationResponse`
|
10279
|
+
"""
|
10280
|
+
http_info = self._delete_click_house_data_base_replication_http_info(request)
|
10281
|
+
return self._call_api(**http_info)
|
10282
|
+
|
10283
|
+
def delete_click_house_data_base_replication_async_invoker(self, request):
|
10284
|
+
http_info = self._delete_click_house_data_base_replication_http_info(request)
|
10285
|
+
return AsyncInvoker(self, http_info)
|
10286
|
+
|
10287
|
+
def _delete_click_house_data_base_replication_http_info(self, request):
|
10288
|
+
http_info = {
|
10289
|
+
"method": "DELETE",
|
10290
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/{database_name}",
|
10291
|
+
"request_type": request.__class__.__name__,
|
10292
|
+
"response_type": "DeleteClickHouseDataBaseReplicationResponse"
|
10293
|
+
}
|
10294
|
+
|
10295
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10296
|
+
|
10297
|
+
cname = None
|
10298
|
+
|
10299
|
+
collection_formats = {}
|
10300
|
+
|
10301
|
+
path_params = {}
|
10302
|
+
if 'instance_id' in local_var_params:
|
10303
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10304
|
+
if 'database_name' in local_var_params:
|
10305
|
+
path_params['database_name'] = local_var_params['database_name']
|
10306
|
+
|
10307
|
+
query_params = []
|
10308
|
+
|
10309
|
+
header_params = {}
|
10310
|
+
if 'x_language' in local_var_params:
|
10311
|
+
header_params['X-Language'] = local_var_params['x_language']
|
10312
|
+
|
10313
|
+
form_params = {}
|
10314
|
+
|
10315
|
+
body = None
|
10316
|
+
if isinstance(request, SdkStreamRequest):
|
10317
|
+
body = request.get_file_stream()
|
10318
|
+
|
10319
|
+
response_headers = []
|
10320
|
+
|
10321
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10322
|
+
['application/json'])
|
10323
|
+
|
10324
|
+
auth_settings = []
|
10325
|
+
|
10326
|
+
http_info["cname"] = cname
|
10327
|
+
http_info["collection_formats"] = collection_formats
|
10328
|
+
http_info["path_params"] = path_params
|
10329
|
+
http_info["query_params"] = query_params
|
10330
|
+
http_info["header_params"] = header_params
|
10331
|
+
http_info["post_params"] = form_params
|
10332
|
+
http_info["body"] = body
|
10333
|
+
http_info["response_headers"] = response_headers
|
10334
|
+
|
10335
|
+
return http_info
|
10336
|
+
|
10337
|
+
def delete_click_house_database_user_async(self, request):
|
10338
|
+
"""删除数据库账户
|
10339
|
+
|
10340
|
+
删除数据库账户。
|
10341
|
+
|
10342
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10343
|
+
|
10344
|
+
|
10345
|
+
:param request: Request instance for DeleteClickHouseDatabaseUser
|
10346
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseDatabaseUserRequest`
|
10347
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseDatabaseUserResponse`
|
10348
|
+
"""
|
10349
|
+
http_info = self._delete_click_house_database_user_http_info(request)
|
10350
|
+
return self._call_api(**http_info)
|
10351
|
+
|
10352
|
+
def delete_click_house_database_user_async_invoker(self, request):
|
10353
|
+
http_info = self._delete_click_house_database_user_http_info(request)
|
10354
|
+
return AsyncInvoker(self, http_info)
|
10355
|
+
|
10356
|
+
def _delete_click_house_database_user_http_info(self, request):
|
10357
|
+
http_info = {
|
10358
|
+
"method": "DELETE",
|
10359
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/users/{user_name}",
|
10360
|
+
"request_type": request.__class__.__name__,
|
10361
|
+
"response_type": "DeleteClickHouseDatabaseUserResponse"
|
10362
|
+
}
|
10363
|
+
|
10364
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10365
|
+
|
10366
|
+
cname = None
|
10367
|
+
|
10368
|
+
collection_formats = {}
|
10369
|
+
|
10370
|
+
path_params = {}
|
10371
|
+
if 'instance_id' in local_var_params:
|
10372
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10373
|
+
if 'user_name' in local_var_params:
|
10374
|
+
path_params['user_name'] = local_var_params['user_name']
|
10375
|
+
|
10376
|
+
query_params = []
|
10377
|
+
|
10378
|
+
header_params = {}
|
10379
|
+
if 'x_language' in local_var_params:
|
10380
|
+
header_params['X-Language'] = local_var_params['x_language']
|
10381
|
+
|
10382
|
+
form_params = {}
|
10383
|
+
|
10384
|
+
body = None
|
10385
|
+
if isinstance(request, SdkStreamRequest):
|
10386
|
+
body = request.get_file_stream()
|
10387
|
+
|
10388
|
+
response_headers = []
|
10389
|
+
|
10390
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10391
|
+
['application/json'])
|
10392
|
+
|
10393
|
+
auth_settings = []
|
10394
|
+
|
10395
|
+
http_info["cname"] = cname
|
10396
|
+
http_info["collection_formats"] = collection_formats
|
10397
|
+
http_info["path_params"] = path_params
|
10398
|
+
http_info["query_params"] = query_params
|
10399
|
+
http_info["header_params"] = header_params
|
10400
|
+
http_info["post_params"] = form_params
|
10401
|
+
http_info["body"] = body
|
10402
|
+
http_info["response_headers"] = response_headers
|
10403
|
+
|
10404
|
+
return http_info
|
10405
|
+
|
10406
|
+
def delete_click_house_instance_async(self, request):
|
10407
|
+
"""删除实例
|
10408
|
+
|
10409
|
+
删除实例。
|
10410
|
+
|
10411
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10412
|
+
|
10413
|
+
|
10414
|
+
:param request: Request instance for DeleteClickHouseInstance
|
10415
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseInstanceRequest`
|
10416
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseInstanceResponse`
|
10417
|
+
"""
|
10418
|
+
http_info = self._delete_click_house_instance_http_info(request)
|
10419
|
+
return self._call_api(**http_info)
|
10420
|
+
|
10421
|
+
def delete_click_house_instance_async_invoker(self, request):
|
10422
|
+
http_info = self._delete_click_house_instance_http_info(request)
|
10423
|
+
return AsyncInvoker(self, http_info)
|
10424
|
+
|
10425
|
+
def _delete_click_house_instance_http_info(self, request):
|
10426
|
+
http_info = {
|
10427
|
+
"method": "DELETE",
|
10428
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/{clickhouse_instance_id}",
|
10429
|
+
"request_type": request.__class__.__name__,
|
10430
|
+
"response_type": "DeleteClickHouseInstanceResponse"
|
10431
|
+
}
|
10432
|
+
|
10433
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10434
|
+
|
10435
|
+
cname = None
|
10436
|
+
|
10437
|
+
collection_formats = {}
|
10438
|
+
|
10439
|
+
path_params = {}
|
10440
|
+
if 'instance_id' in local_var_params:
|
10441
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10442
|
+
if 'clickhouse_instance_id' in local_var_params:
|
10443
|
+
path_params['clickhouse_instance_id'] = local_var_params['clickhouse_instance_id']
|
10444
|
+
|
10445
|
+
query_params = []
|
10446
|
+
|
10447
|
+
header_params = {}
|
10448
|
+
if 'x_language' in local_var_params:
|
10449
|
+
header_params['X-Language'] = local_var_params['x_language']
|
10450
|
+
|
10451
|
+
form_params = {}
|
10452
|
+
|
10453
|
+
body = None
|
10454
|
+
if isinstance(request, SdkStreamRequest):
|
10455
|
+
body = request.get_file_stream()
|
10456
|
+
|
10457
|
+
response_headers = []
|
10458
|
+
|
10459
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10460
|
+
['application/json'])
|
10461
|
+
|
10462
|
+
auth_settings = []
|
10463
|
+
|
10464
|
+
http_info["cname"] = cname
|
10465
|
+
http_info["collection_formats"] = collection_formats
|
10466
|
+
http_info["path_params"] = path_params
|
10467
|
+
http_info["query_params"] = query_params
|
10468
|
+
http_info["header_params"] = header_params
|
10469
|
+
http_info["post_params"] = form_params
|
10470
|
+
http_info["body"] = body
|
10471
|
+
http_info["response_headers"] = response_headers
|
10472
|
+
|
10473
|
+
return http_info
|
10474
|
+
|
10475
|
+
def delete_click_house_lts_config_async(self, request):
|
10476
|
+
"""批量解除LTS日志配置
|
10477
|
+
|
10478
|
+
批量解除LTS日志配置。
|
10479
|
+
|
10480
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10481
|
+
|
10482
|
+
|
10483
|
+
:param request: Request instance for DeleteClickHouseLtsConfig
|
10484
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseLtsConfigRequest`
|
10485
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseLtsConfigResponse`
|
10486
|
+
"""
|
10487
|
+
http_info = self._delete_click_house_lts_config_http_info(request)
|
10488
|
+
return self._call_api(**http_info)
|
10489
|
+
|
10490
|
+
def delete_click_house_lts_config_async_invoker(self, request):
|
10491
|
+
http_info = self._delete_click_house_lts_config_http_info(request)
|
10492
|
+
return AsyncInvoker(self, http_info)
|
10493
|
+
|
10494
|
+
def _delete_click_house_lts_config_http_info(self, request):
|
10495
|
+
http_info = {
|
10496
|
+
"method": "DELETE",
|
10497
|
+
"resource_path": "/v3/{project_id}/clickhouse/instances/logs/lts-configs",
|
10498
|
+
"request_type": request.__class__.__name__,
|
10499
|
+
"response_type": "DeleteClickHouseLtsConfigResponse"
|
10500
|
+
}
|
10501
|
+
|
10502
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10503
|
+
|
10504
|
+
cname = None
|
10505
|
+
|
10506
|
+
collection_formats = {}
|
10507
|
+
|
10508
|
+
path_params = {}
|
10509
|
+
|
10510
|
+
query_params = []
|
10511
|
+
|
10512
|
+
header_params = {}
|
10513
|
+
if 'x_language' in local_var_params:
|
10514
|
+
header_params['X-Language'] = local_var_params['x_language']
|
10515
|
+
|
10516
|
+
form_params = {}
|
10517
|
+
|
10518
|
+
body = None
|
10519
|
+
if 'body' in local_var_params:
|
10520
|
+
body = local_var_params['body']
|
10521
|
+
if isinstance(request, SdkStreamRequest):
|
10522
|
+
body = request.get_file_stream()
|
10523
|
+
|
10524
|
+
response_headers = []
|
10525
|
+
|
10526
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10527
|
+
['application/json;charset=UTF-8'])
|
10528
|
+
|
10529
|
+
auth_settings = []
|
10530
|
+
|
10531
|
+
http_info["cname"] = cname
|
10532
|
+
http_info["collection_formats"] = collection_formats
|
10533
|
+
http_info["path_params"] = path_params
|
10534
|
+
http_info["query_params"] = query_params
|
10535
|
+
http_info["header_params"] = header_params
|
10536
|
+
http_info["post_params"] = form_params
|
10537
|
+
http_info["body"] = body
|
10538
|
+
http_info["response_headers"] = response_headers
|
10539
|
+
|
10540
|
+
return http_info
|
10541
|
+
|
10542
|
+
def delete_star_rocks_data_replication_async(self, request):
|
10543
|
+
"""删除StarRocks数据同步
|
10544
|
+
|
10545
|
+
删除StarRocks数据同步。
|
10546
|
+
|
10547
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10548
|
+
|
10549
|
+
|
10550
|
+
:param request: Request instance for DeleteStarRocksDataReplication
|
10551
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplicationRequest`
|
10552
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplicationResponse`
|
10553
|
+
"""
|
10554
|
+
http_info = self._delete_star_rocks_data_replication_http_info(request)
|
10555
|
+
return self._call_api(**http_info)
|
10556
|
+
|
10557
|
+
def delete_star_rocks_data_replication_async_invoker(self, request):
|
10558
|
+
http_info = self._delete_star_rocks_data_replication_http_info(request)
|
10559
|
+
return AsyncInvoker(self, http_info)
|
10560
|
+
|
10561
|
+
def _delete_star_rocks_data_replication_http_info(self, request):
|
10562
|
+
http_info = {
|
10563
|
+
"method": "DELETE",
|
10564
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
|
10565
|
+
"request_type": request.__class__.__name__,
|
10566
|
+
"response_type": "DeleteStarRocksDataReplicationResponse"
|
10567
|
+
}
|
10568
|
+
|
10569
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10570
|
+
|
10571
|
+
cname = None
|
10572
|
+
|
10573
|
+
collection_formats = {}
|
10574
|
+
|
10575
|
+
path_params = {}
|
10576
|
+
if 'instance_id' in local_var_params:
|
10577
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10578
|
+
|
10579
|
+
query_params = []
|
10580
|
+
|
10581
|
+
header_params = {}
|
10582
|
+
if 'x_language' in local_var_params:
|
10583
|
+
header_params['X-Language'] = local_var_params['x_language']
|
10584
|
+
|
10585
|
+
form_params = {}
|
10586
|
+
|
10587
|
+
body = None
|
10588
|
+
if 'body' in local_var_params:
|
10589
|
+
body = local_var_params['body']
|
10590
|
+
if isinstance(request, SdkStreamRequest):
|
10591
|
+
body = request.get_file_stream()
|
10592
|
+
|
10593
|
+
response_headers = []
|
10594
|
+
|
10595
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10596
|
+
['application/json;charset=UTF-8'])
|
10597
|
+
|
10598
|
+
auth_settings = []
|
10599
|
+
|
10600
|
+
http_info["cname"] = cname
|
10601
|
+
http_info["collection_formats"] = collection_formats
|
10602
|
+
http_info["path_params"] = path_params
|
10603
|
+
http_info["query_params"] = query_params
|
10604
|
+
http_info["header_params"] = header_params
|
10605
|
+
http_info["post_params"] = form_params
|
10606
|
+
http_info["body"] = body
|
10607
|
+
http_info["response_headers"] = response_headers
|
10608
|
+
|
10609
|
+
return http_info
|
10610
|
+
|
10611
|
+
def delete_star_rocks_database_user_async(self, request):
|
10612
|
+
"""删除数据库账户
|
10613
|
+
|
10614
|
+
删除StarRocks数据库账户。
|
10615
|
+
|
10616
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10617
|
+
|
10618
|
+
|
10619
|
+
:param request: Request instance for DeleteStarRocksDatabaseUser
|
10620
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDatabaseUserRequest`
|
10621
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDatabaseUserResponse`
|
10622
|
+
"""
|
10623
|
+
http_info = self._delete_star_rocks_database_user_http_info(request)
|
10624
|
+
return self._call_api(**http_info)
|
10625
|
+
|
10626
|
+
def delete_star_rocks_database_user_async_invoker(self, request):
|
10627
|
+
http_info = self._delete_star_rocks_database_user_http_info(request)
|
10628
|
+
return AsyncInvoker(self, http_info)
|
10629
|
+
|
10630
|
+
def _delete_star_rocks_database_user_http_info(self, request):
|
10631
|
+
http_info = {
|
10632
|
+
"method": "DELETE",
|
10633
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
|
10634
|
+
"request_type": request.__class__.__name__,
|
10635
|
+
"response_type": "DeleteStarRocksDatabaseUserResponse"
|
10636
|
+
}
|
10637
|
+
|
10638
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10639
|
+
|
10640
|
+
cname = None
|
10641
|
+
|
10642
|
+
collection_formats = {}
|
10643
|
+
|
10644
|
+
path_params = {}
|
10645
|
+
if 'instance_id' in local_var_params:
|
10646
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10647
|
+
|
10648
|
+
query_params = []
|
10649
|
+
if 'user_name' in local_var_params:
|
10650
|
+
query_params.append(('user_name', local_var_params['user_name']))
|
10651
|
+
|
10652
|
+
header_params = {}
|
10653
|
+
if 'x_language' in local_var_params:
|
10654
|
+
header_params['X-Language'] = local_var_params['x_language']
|
10655
|
+
|
10656
|
+
form_params = {}
|
10657
|
+
|
10658
|
+
body = None
|
10659
|
+
if isinstance(request, SdkStreamRequest):
|
10660
|
+
body = request.get_file_stream()
|
10661
|
+
|
10662
|
+
response_headers = []
|
10663
|
+
|
10664
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10665
|
+
['application/json'])
|
10666
|
+
|
10667
|
+
auth_settings = []
|
10668
|
+
|
10669
|
+
http_info["cname"] = cname
|
10670
|
+
http_info["collection_formats"] = collection_formats
|
10671
|
+
http_info["path_params"] = path_params
|
10672
|
+
http_info["query_params"] = query_params
|
10673
|
+
http_info["header_params"] = header_params
|
10674
|
+
http_info["post_params"] = form_params
|
10675
|
+
http_info["body"] = body
|
10676
|
+
http_info["response_headers"] = response_headers
|
10677
|
+
|
10678
|
+
return http_info
|
10679
|
+
|
10680
|
+
def delete_starrocks_instance_async(self, request):
|
10681
|
+
"""删除StarRocks实例
|
10682
|
+
|
10683
|
+
删除StarRocks实例。
|
10684
|
+
|
10685
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10686
|
+
|
10687
|
+
|
10688
|
+
:param request: Request instance for DeleteStarrocksInstance
|
10689
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarrocksInstanceRequest`
|
10690
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarrocksInstanceResponse`
|
10691
|
+
"""
|
10692
|
+
http_info = self._delete_starrocks_instance_http_info(request)
|
10693
|
+
return self._call_api(**http_info)
|
10694
|
+
|
10695
|
+
def delete_starrocks_instance_async_invoker(self, request):
|
10696
|
+
http_info = self._delete_starrocks_instance_http_info(request)
|
10697
|
+
return AsyncInvoker(self, http_info)
|
10698
|
+
|
10699
|
+
def _delete_starrocks_instance_http_info(self, request):
|
10700
|
+
http_info = {
|
10701
|
+
"method": "DELETE",
|
10702
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}",
|
10703
|
+
"request_type": request.__class__.__name__,
|
10704
|
+
"response_type": "DeleteStarrocksInstanceResponse"
|
10705
|
+
}
|
10706
|
+
|
10707
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10708
|
+
|
10709
|
+
cname = None
|
10710
|
+
|
10711
|
+
collection_formats = {}
|
10712
|
+
|
10713
|
+
path_params = {}
|
10714
|
+
if 'instance_id' in local_var_params:
|
10715
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10716
|
+
if 'starrocks_instance_id' in local_var_params:
|
10717
|
+
path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
|
10718
|
+
|
10719
|
+
query_params = []
|
10720
|
+
|
10721
|
+
header_params = {}
|
10722
|
+
if 'x_language' in local_var_params:
|
10723
|
+
header_params['X-Language'] = local_var_params['x_language']
|
10724
|
+
|
10725
|
+
form_params = {}
|
10726
|
+
|
10727
|
+
body = None
|
10728
|
+
if isinstance(request, SdkStreamRequest):
|
10729
|
+
body = request.get_file_stream()
|
10730
|
+
|
10731
|
+
response_headers = []
|
10732
|
+
|
10733
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10734
|
+
['application/json'])
|
10735
|
+
|
10736
|
+
auth_settings = []
|
10737
|
+
|
10738
|
+
http_info["cname"] = cname
|
10739
|
+
http_info["collection_formats"] = collection_formats
|
10740
|
+
http_info["path_params"] = path_params
|
10741
|
+
http_info["query_params"] = query_params
|
10742
|
+
http_info["header_params"] = header_params
|
10743
|
+
http_info["post_params"] = form_params
|
10744
|
+
http_info["body"] = body
|
10745
|
+
http_info["response_headers"] = response_headers
|
10746
|
+
|
10747
|
+
return http_info
|
10748
|
+
|
10749
|
+
def list_click_house_data_base_async(self, request):
|
10750
|
+
"""查询数据库列表
|
10751
|
+
|
10752
|
+
查询数据库列表。
|
10753
|
+
|
10754
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10755
|
+
|
10756
|
+
|
10757
|
+
:param request: Request instance for ListClickHouseDataBase
|
10758
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseRequest`
|
10759
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseResponse`
|
10760
|
+
"""
|
10761
|
+
http_info = self._list_click_house_data_base_http_info(request)
|
10762
|
+
return self._call_api(**http_info)
|
10763
|
+
|
10764
|
+
def list_click_house_data_base_async_invoker(self, request):
|
10765
|
+
http_info = self._list_click_house_data_base_http_info(request)
|
10766
|
+
return AsyncInvoker(self, http_info)
|
10767
|
+
|
10768
|
+
def _list_click_house_data_base_http_info(self, request):
|
10769
|
+
http_info = {
|
10770
|
+
"method": "GET",
|
10771
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/databases",
|
10772
|
+
"request_type": request.__class__.__name__,
|
10773
|
+
"response_type": "ListClickHouseDataBaseResponse"
|
10774
|
+
}
|
10775
|
+
|
10776
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10777
|
+
|
10778
|
+
cname = None
|
10779
|
+
|
10780
|
+
collection_formats = {}
|
10781
|
+
|
10782
|
+
path_params = {}
|
10783
|
+
if 'instance_id' in local_var_params:
|
10784
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10785
|
+
|
10786
|
+
query_params = []
|
10787
|
+
if 'limit' in local_var_params:
|
10788
|
+
query_params.append(('limit', local_var_params['limit']))
|
10789
|
+
if 'offset' in local_var_params:
|
10790
|
+
query_params.append(('offset', local_var_params['offset']))
|
10791
|
+
if 'database_name' in local_var_params:
|
10792
|
+
query_params.append(('database_name', local_var_params['database_name']))
|
10793
|
+
|
10794
|
+
header_params = {}
|
10795
|
+
if 'x_language' in local_var_params:
|
10796
|
+
header_params['X-Language'] = local_var_params['x_language']
|
10797
|
+
|
10798
|
+
form_params = {}
|
10799
|
+
|
10800
|
+
body = None
|
10801
|
+
if isinstance(request, SdkStreamRequest):
|
10802
|
+
body = request.get_file_stream()
|
10803
|
+
|
10804
|
+
response_headers = []
|
10805
|
+
|
10806
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10807
|
+
['application/json'])
|
10808
|
+
|
10809
|
+
auth_settings = []
|
10810
|
+
|
10811
|
+
http_info["cname"] = cname
|
10812
|
+
http_info["collection_formats"] = collection_formats
|
10813
|
+
http_info["path_params"] = path_params
|
10814
|
+
http_info["query_params"] = query_params
|
10815
|
+
http_info["header_params"] = header_params
|
10816
|
+
http_info["post_params"] = form_params
|
10817
|
+
http_info["body"] = body
|
10818
|
+
http_info["response_headers"] = response_headers
|
10819
|
+
|
10820
|
+
return http_info
|
10821
|
+
|
10822
|
+
def list_click_house_data_base_parameter_async(self, request):
|
10823
|
+
"""查询数据同步的库参数配置
|
10824
|
+
|
10825
|
+
查询数据同步的库参数配置。
|
10826
|
+
|
10827
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10828
|
+
|
10829
|
+
|
10830
|
+
:param request: Request instance for ListClickHouseDataBaseParameter
|
10831
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseParameterRequest`
|
10832
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseParameterResponse`
|
10833
|
+
"""
|
10834
|
+
http_info = self._list_click_house_data_base_parameter_http_info(request)
|
10835
|
+
return self._call_api(**http_info)
|
10836
|
+
|
10837
|
+
def list_click_house_data_base_parameter_async_invoker(self, request):
|
10838
|
+
http_info = self._list_click_house_data_base_parameter_http_info(request)
|
10839
|
+
return AsyncInvoker(self, http_info)
|
10840
|
+
|
10841
|
+
def _list_click_house_data_base_parameter_http_info(self, request):
|
10842
|
+
http_info = {
|
10843
|
+
"method": "GET",
|
10844
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/database-parameter",
|
10845
|
+
"request_type": request.__class__.__name__,
|
10846
|
+
"response_type": "ListClickHouseDataBaseParameterResponse"
|
10847
|
+
}
|
10848
|
+
|
10849
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10850
|
+
|
10851
|
+
cname = None
|
10852
|
+
|
10853
|
+
collection_formats = {}
|
10854
|
+
|
10855
|
+
path_params = {}
|
10856
|
+
if 'instance_id' in local_var_params:
|
10857
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10858
|
+
|
10859
|
+
query_params = []
|
10860
|
+
|
10861
|
+
header_params = {}
|
10862
|
+
if 'x_language' in local_var_params:
|
10863
|
+
header_params['X-Language'] = local_var_params['x_language']
|
10864
|
+
|
10865
|
+
form_params = {}
|
10866
|
+
|
10867
|
+
body = None
|
10868
|
+
if isinstance(request, SdkStreamRequest):
|
10869
|
+
body = request.get_file_stream()
|
10870
|
+
|
10871
|
+
response_headers = []
|
10872
|
+
|
10873
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10874
|
+
['application/json'])
|
10875
|
+
|
10876
|
+
auth_settings = []
|
10877
|
+
|
10878
|
+
http_info["cname"] = cname
|
10879
|
+
http_info["collection_formats"] = collection_formats
|
10880
|
+
http_info["path_params"] = path_params
|
10881
|
+
http_info["query_params"] = query_params
|
10882
|
+
http_info["header_params"] = header_params
|
10883
|
+
http_info["post_params"] = form_params
|
10884
|
+
http_info["body"] = body
|
10885
|
+
http_info["response_headers"] = response_headers
|
10886
|
+
|
10887
|
+
return http_info
|
10888
|
+
|
10889
|
+
def list_click_house_data_base_replication_async(self, request):
|
10890
|
+
"""查询数据同步信息
|
10891
|
+
|
10892
|
+
查询数据同步信息。
|
10893
|
+
|
10894
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10895
|
+
|
10896
|
+
|
10897
|
+
:param request: Request instance for ListClickHouseDataBaseReplication
|
10898
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseReplicationRequest`
|
10899
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseReplicationResponse`
|
10900
|
+
"""
|
10901
|
+
http_info = self._list_click_house_data_base_replication_http_info(request)
|
10902
|
+
return self._call_api(**http_info)
|
10903
|
+
|
10904
|
+
def list_click_house_data_base_replication_async_invoker(self, request):
|
10905
|
+
http_info = self._list_click_house_data_base_replication_http_info(request)
|
10906
|
+
return AsyncInvoker(self, http_info)
|
10907
|
+
|
10908
|
+
def _list_click_house_data_base_replication_http_info(self, request):
|
10909
|
+
http_info = {
|
10910
|
+
"method": "GET",
|
10911
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication",
|
10912
|
+
"request_type": request.__class__.__name__,
|
10913
|
+
"response_type": "ListClickHouseDataBaseReplicationResponse"
|
10914
|
+
}
|
10915
|
+
|
10916
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10917
|
+
|
10918
|
+
cname = None
|
10919
|
+
|
10920
|
+
collection_formats = {}
|
10921
|
+
|
10922
|
+
path_params = {}
|
10923
|
+
if 'instance_id' in local_var_params:
|
10924
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10925
|
+
|
10926
|
+
query_params = []
|
10927
|
+
if 'limit' in local_var_params:
|
10928
|
+
query_params.append(('limit', local_var_params['limit']))
|
10929
|
+
if 'offset' in local_var_params:
|
10930
|
+
query_params.append(('offset', local_var_params['offset']))
|
10931
|
+
|
10932
|
+
header_params = {}
|
10933
|
+
if 'x_language' in local_var_params:
|
10934
|
+
header_params['X-Language'] = local_var_params['x_language']
|
10935
|
+
|
10936
|
+
form_params = {}
|
10937
|
+
|
10938
|
+
body = None
|
10939
|
+
if isinstance(request, SdkStreamRequest):
|
10940
|
+
body = request.get_file_stream()
|
10941
|
+
|
10942
|
+
response_headers = []
|
10943
|
+
|
10944
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10945
|
+
['application/json'])
|
10946
|
+
|
10947
|
+
auth_settings = []
|
10948
|
+
|
10949
|
+
http_info["cname"] = cname
|
10950
|
+
http_info["collection_formats"] = collection_formats
|
10951
|
+
http_info["path_params"] = path_params
|
10952
|
+
http_info["query_params"] = query_params
|
10953
|
+
http_info["header_params"] = header_params
|
10954
|
+
http_info["post_params"] = form_params
|
10955
|
+
http_info["body"] = body
|
10956
|
+
http_info["response_headers"] = response_headers
|
10957
|
+
|
10958
|
+
return http_info
|
10959
|
+
|
10960
|
+
def list_click_house_data_base_replication_config_async(self, request):
|
10961
|
+
"""查看数据同步配置
|
10962
|
+
|
10963
|
+
查看数据同步配置。
|
10964
|
+
|
10965
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
10966
|
+
|
10967
|
+
|
10968
|
+
:param request: Request instance for ListClickHouseDataBaseReplicationConfig
|
10969
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseReplicationConfigRequest`
|
10970
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseReplicationConfigResponse`
|
10971
|
+
"""
|
10972
|
+
http_info = self._list_click_house_data_base_replication_config_http_info(request)
|
10973
|
+
return self._call_api(**http_info)
|
10974
|
+
|
10975
|
+
def list_click_house_data_base_replication_config_async_invoker(self, request):
|
10976
|
+
http_info = self._list_click_house_data_base_replication_config_http_info(request)
|
10977
|
+
return AsyncInvoker(self, http_info)
|
10978
|
+
|
10979
|
+
def _list_click_house_data_base_replication_config_http_info(self, request):
|
10980
|
+
http_info = {
|
10981
|
+
"method": "GET",
|
10982
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/config",
|
10983
|
+
"request_type": request.__class__.__name__,
|
10984
|
+
"response_type": "ListClickHouseDataBaseReplicationConfigResponse"
|
10985
|
+
}
|
10986
|
+
|
10987
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
10988
|
+
|
10989
|
+
cname = None
|
10990
|
+
|
10991
|
+
collection_formats = {}
|
10992
|
+
|
10993
|
+
path_params = {}
|
10994
|
+
if 'instance_id' in local_var_params:
|
10995
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10996
|
+
|
10997
|
+
query_params = []
|
10998
|
+
if 'database_name' in local_var_params:
|
10999
|
+
query_params.append(('database_name', local_var_params['database_name']))
|
11000
|
+
|
11001
|
+
header_params = {}
|
11002
|
+
if 'x_language' in local_var_params:
|
11003
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11004
|
+
|
11005
|
+
form_params = {}
|
11006
|
+
|
11007
|
+
body = None
|
11008
|
+
if isinstance(request, SdkStreamRequest):
|
11009
|
+
body = request.get_file_stream()
|
11010
|
+
|
11011
|
+
response_headers = []
|
11012
|
+
|
11013
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11014
|
+
['application/json'])
|
11015
|
+
|
11016
|
+
auth_settings = []
|
11017
|
+
|
11018
|
+
http_info["cname"] = cname
|
11019
|
+
http_info["collection_formats"] = collection_formats
|
11020
|
+
http_info["path_params"] = path_params
|
11021
|
+
http_info["query_params"] = query_params
|
11022
|
+
http_info["header_params"] = header_params
|
11023
|
+
http_info["post_params"] = form_params
|
11024
|
+
http_info["body"] = body
|
11025
|
+
http_info["response_headers"] = response_headers
|
11026
|
+
|
11027
|
+
return http_info
|
11028
|
+
|
11029
|
+
def list_click_house_instance_async(self, request):
|
11030
|
+
"""查询实例详情
|
11031
|
+
|
11032
|
+
查询实例详情。
|
11033
|
+
|
11034
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11035
|
+
|
11036
|
+
|
11037
|
+
:param request: Request instance for ListClickHouseInstance
|
11038
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseInstanceRequest`
|
11039
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseInstanceResponse`
|
11040
|
+
"""
|
11041
|
+
http_info = self._list_click_house_instance_http_info(request)
|
11042
|
+
return self._call_api(**http_info)
|
11043
|
+
|
11044
|
+
def list_click_house_instance_async_invoker(self, request):
|
11045
|
+
http_info = self._list_click_house_instance_http_info(request)
|
11046
|
+
return AsyncInvoker(self, http_info)
|
11047
|
+
|
11048
|
+
def _list_click_house_instance_http_info(self, request):
|
11049
|
+
http_info = {
|
11050
|
+
"method": "GET",
|
11051
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/{clickhouse_instance_id}",
|
11052
|
+
"request_type": request.__class__.__name__,
|
11053
|
+
"response_type": "ListClickHouseInstanceResponse"
|
11054
|
+
}
|
11055
|
+
|
11056
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11057
|
+
|
11058
|
+
cname = None
|
11059
|
+
|
11060
|
+
collection_formats = {}
|
11061
|
+
|
11062
|
+
path_params = {}
|
11063
|
+
if 'instance_id' in local_var_params:
|
11064
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
11065
|
+
if 'clickhouse_instance_id' in local_var_params:
|
11066
|
+
path_params['clickhouse_instance_id'] = local_var_params['clickhouse_instance_id']
|
11067
|
+
|
11068
|
+
query_params = []
|
11069
|
+
|
11070
|
+
header_params = {}
|
11071
|
+
if 'x_language' in local_var_params:
|
11072
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11073
|
+
|
11074
|
+
form_params = {}
|
11075
|
+
|
11076
|
+
body = None
|
11077
|
+
if isinstance(request, SdkStreamRequest):
|
11078
|
+
body = request.get_file_stream()
|
11079
|
+
|
11080
|
+
response_headers = []
|
11081
|
+
|
11082
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11083
|
+
['application/json'])
|
11084
|
+
|
11085
|
+
auth_settings = []
|
11086
|
+
|
11087
|
+
http_info["cname"] = cname
|
11088
|
+
http_info["collection_formats"] = collection_formats
|
11089
|
+
http_info["path_params"] = path_params
|
11090
|
+
http_info["query_params"] = query_params
|
11091
|
+
http_info["header_params"] = header_params
|
11092
|
+
http_info["post_params"] = form_params
|
11093
|
+
http_info["body"] = body
|
11094
|
+
http_info["response_headers"] = response_headers
|
11095
|
+
|
11096
|
+
return http_info
|
11097
|
+
|
11098
|
+
def list_click_house_instance_node_async(self, request):
|
11099
|
+
"""查询错误日志、慢日志节点信息
|
11100
|
+
|
11101
|
+
查询错误日志、慢日志节点信息。
|
11102
|
+
|
11103
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11104
|
+
|
11105
|
+
|
11106
|
+
:param request: Request instance for ListClickHouseInstanceNode
|
11107
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseInstanceNodeRequest`
|
11108
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseInstanceNodeResponse`
|
11109
|
+
"""
|
11110
|
+
http_info = self._list_click_house_instance_node_http_info(request)
|
11111
|
+
return self._call_api(**http_info)
|
11112
|
+
|
11113
|
+
def list_click_house_instance_node_async_invoker(self, request):
|
11114
|
+
http_info = self._list_click_house_instance_node_http_info(request)
|
11115
|
+
return AsyncInvoker(self, http_info)
|
11116
|
+
|
11117
|
+
def _list_click_house_instance_node_http_info(self, request):
|
11118
|
+
http_info = {
|
11119
|
+
"method": "GET",
|
11120
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/nodes",
|
11121
|
+
"request_type": request.__class__.__name__,
|
11122
|
+
"response_type": "ListClickHouseInstanceNodeResponse"
|
11123
|
+
}
|
11124
|
+
|
11125
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11126
|
+
|
11127
|
+
cname = None
|
11128
|
+
|
11129
|
+
collection_formats = {}
|
11130
|
+
|
11131
|
+
path_params = {}
|
11132
|
+
if 'instance_id' in local_var_params:
|
11133
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
11134
|
+
|
11135
|
+
query_params = []
|
11136
|
+
|
11137
|
+
header_params = {}
|
11138
|
+
if 'x_language' in local_var_params:
|
11139
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11140
|
+
|
11141
|
+
form_params = {}
|
11142
|
+
|
11143
|
+
body = None
|
11144
|
+
if isinstance(request, SdkStreamRequest):
|
11145
|
+
body = request.get_file_stream()
|
11146
|
+
|
11147
|
+
response_headers = []
|
11148
|
+
|
11149
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11150
|
+
['application/json'])
|
11151
|
+
|
11152
|
+
auth_settings = []
|
11153
|
+
|
11154
|
+
http_info["cname"] = cname
|
11155
|
+
http_info["collection_formats"] = collection_formats
|
11156
|
+
http_info["path_params"] = path_params
|
11157
|
+
http_info["query_params"] = query_params
|
11158
|
+
http_info["header_params"] = header_params
|
11159
|
+
http_info["post_params"] = form_params
|
11160
|
+
http_info["body"] = body
|
11161
|
+
http_info["response_headers"] = response_headers
|
11162
|
+
|
11163
|
+
return http_info
|
11164
|
+
|
11165
|
+
def list_htap_data_store_async(self, request):
|
11166
|
+
"""HTAP引擎资源查询
|
11167
|
+
|
11168
|
+
HTAP引擎资源查询。
|
11169
|
+
|
11170
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11171
|
+
|
11172
|
+
|
11173
|
+
:param request: Request instance for ListHtapDataStore
|
11174
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapDataStoreRequest`
|
11175
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapDataStoreResponse`
|
11176
|
+
"""
|
11177
|
+
http_info = self._list_htap_data_store_http_info(request)
|
11178
|
+
return self._call_api(**http_info)
|
11179
|
+
|
11180
|
+
def list_htap_data_store_async_invoker(self, request):
|
11181
|
+
http_info = self._list_htap_data_store_http_info(request)
|
11182
|
+
return AsyncInvoker(self, http_info)
|
11183
|
+
|
11184
|
+
def _list_htap_data_store_http_info(self, request):
|
11185
|
+
http_info = {
|
11186
|
+
"method": "GET",
|
11187
|
+
"resource_path": "/v3/{project_id}/htap/datastores/{engine_name}",
|
11188
|
+
"request_type": request.__class__.__name__,
|
11189
|
+
"response_type": "ListHtapDataStoreResponse"
|
11190
|
+
}
|
11191
|
+
|
11192
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11193
|
+
|
11194
|
+
cname = None
|
11195
|
+
|
11196
|
+
collection_formats = {}
|
11197
|
+
|
11198
|
+
path_params = {}
|
11199
|
+
if 'engine_name' in local_var_params:
|
11200
|
+
path_params['engine_name'] = local_var_params['engine_name']
|
11201
|
+
|
11202
|
+
query_params = []
|
11203
|
+
|
11204
|
+
header_params = {}
|
11205
|
+
if 'x_language' in local_var_params:
|
11206
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11207
|
+
|
11208
|
+
form_params = {}
|
11209
|
+
|
11210
|
+
body = None
|
11211
|
+
if isinstance(request, SdkStreamRequest):
|
11212
|
+
body = request.get_file_stream()
|
11213
|
+
|
11214
|
+
response_headers = []
|
11215
|
+
|
11216
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11217
|
+
['application/json'])
|
11218
|
+
|
11219
|
+
auth_settings = []
|
11220
|
+
|
11221
|
+
http_info["cname"] = cname
|
11222
|
+
http_info["collection_formats"] = collection_formats
|
11223
|
+
http_info["path_params"] = path_params
|
11224
|
+
http_info["query_params"] = query_params
|
11225
|
+
http_info["header_params"] = header_params
|
11226
|
+
http_info["post_params"] = form_params
|
11227
|
+
http_info["body"] = body
|
11228
|
+
http_info["response_headers"] = response_headers
|
11229
|
+
|
11230
|
+
return http_info
|
11231
|
+
|
11232
|
+
def list_htap_flavor_async(self, request):
|
11233
|
+
"""HTAP查询规格信息
|
11234
|
+
|
11235
|
+
HTAP查询规格信息。
|
11236
|
+
|
11237
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11238
|
+
|
11239
|
+
|
11240
|
+
:param request: Request instance for ListHtapFlavor
|
11241
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapFlavorRequest`
|
11242
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapFlavorResponse`
|
11243
|
+
"""
|
11244
|
+
http_info = self._list_htap_flavor_http_info(request)
|
11245
|
+
return self._call_api(**http_info)
|
11246
|
+
|
11247
|
+
def list_htap_flavor_async_invoker(self, request):
|
11248
|
+
http_info = self._list_htap_flavor_http_info(request)
|
11249
|
+
return AsyncInvoker(self, http_info)
|
11250
|
+
|
11251
|
+
def _list_htap_flavor_http_info(self, request):
|
11252
|
+
http_info = {
|
11253
|
+
"method": "GET",
|
11254
|
+
"resource_path": "/v3/{project_id}/htap/flavors/{engine_name}",
|
11255
|
+
"request_type": request.__class__.__name__,
|
11256
|
+
"response_type": "ListHtapFlavorResponse"
|
11257
|
+
}
|
11258
|
+
|
11259
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11260
|
+
|
11261
|
+
cname = None
|
11262
|
+
|
11263
|
+
collection_formats = {}
|
11264
|
+
|
11265
|
+
path_params = {}
|
11266
|
+
if 'engine_name' in local_var_params:
|
11267
|
+
path_params['engine_name'] = local_var_params['engine_name']
|
11268
|
+
|
11269
|
+
query_params = []
|
11270
|
+
if 'availability_zone_mode' in local_var_params:
|
11271
|
+
query_params.append(('availability_zone_mode', local_var_params['availability_zone_mode']))
|
11272
|
+
if 'spec_code' in local_var_params:
|
11273
|
+
query_params.append(('spec_code', local_var_params['spec_code']))
|
11274
|
+
if 'version_name' in local_var_params:
|
11275
|
+
query_params.append(('version_name', local_var_params['version_name']))
|
11276
|
+
|
11277
|
+
header_params = {}
|
11278
|
+
if 'x_language' in local_var_params:
|
11279
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11280
|
+
|
11281
|
+
form_params = {}
|
11282
|
+
|
11283
|
+
body = None
|
11284
|
+
if isinstance(request, SdkStreamRequest):
|
11285
|
+
body = request.get_file_stream()
|
11286
|
+
|
11287
|
+
response_headers = []
|
11288
|
+
|
11289
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11290
|
+
['application/json'])
|
11291
|
+
|
11292
|
+
auth_settings = []
|
11293
|
+
|
11294
|
+
http_info["cname"] = cname
|
11295
|
+
http_info["collection_formats"] = collection_formats
|
11296
|
+
http_info["path_params"] = path_params
|
11297
|
+
http_info["query_params"] = query_params
|
11298
|
+
http_info["header_params"] = header_params
|
11299
|
+
http_info["post_params"] = form_params
|
11300
|
+
http_info["body"] = body
|
11301
|
+
http_info["response_headers"] = response_headers
|
11302
|
+
|
11303
|
+
return http_info
|
11304
|
+
|
11305
|
+
def list_htap_instance_info_async(self, request):
|
11306
|
+
"""查询HTAP实例列表
|
11307
|
+
|
11308
|
+
查询HTAP实例列表。
|
11309
|
+
|
11310
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11311
|
+
|
11312
|
+
|
11313
|
+
:param request: Request instance for ListHtapInstanceInfo
|
11314
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapInstanceInfoRequest`
|
11315
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapInstanceInfoResponse`
|
11316
|
+
"""
|
11317
|
+
http_info = self._list_htap_instance_info_http_info(request)
|
11318
|
+
return self._call_api(**http_info)
|
11319
|
+
|
11320
|
+
def list_htap_instance_info_async_invoker(self, request):
|
11321
|
+
http_info = self._list_htap_instance_info_http_info(request)
|
11322
|
+
return AsyncInvoker(self, http_info)
|
11323
|
+
|
11324
|
+
def _list_htap_instance_info_http_info(self, request):
|
11325
|
+
http_info = {
|
11326
|
+
"method": "GET",
|
11327
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/htap",
|
11328
|
+
"request_type": request.__class__.__name__,
|
11329
|
+
"response_type": "ListHtapInstanceInfoResponse"
|
11330
|
+
}
|
11331
|
+
|
11332
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11333
|
+
|
11334
|
+
cname = None
|
11335
|
+
|
11336
|
+
collection_formats = {}
|
11337
|
+
|
11338
|
+
path_params = {}
|
11339
|
+
if 'instance_id' in local_var_params:
|
11340
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
11341
|
+
|
11342
|
+
query_params = []
|
11343
|
+
|
11344
|
+
header_params = {}
|
11345
|
+
if 'x_language' in local_var_params:
|
11346
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11347
|
+
|
11348
|
+
form_params = {}
|
11349
|
+
|
11350
|
+
body = None
|
11351
|
+
if isinstance(request, SdkStreamRequest):
|
11352
|
+
body = request.get_file_stream()
|
11353
|
+
|
11354
|
+
response_headers = []
|
11355
|
+
|
11356
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11357
|
+
['application/json'])
|
11358
|
+
|
11359
|
+
auth_settings = []
|
11360
|
+
|
11361
|
+
http_info["cname"] = cname
|
11362
|
+
http_info["collection_formats"] = collection_formats
|
11363
|
+
http_info["path_params"] = path_params
|
11364
|
+
http_info["query_params"] = query_params
|
11365
|
+
http_info["header_params"] = header_params
|
11366
|
+
http_info["post_params"] = form_params
|
11367
|
+
http_info["body"] = body
|
11368
|
+
http_info["response_headers"] = response_headers
|
11369
|
+
|
11370
|
+
return http_info
|
11371
|
+
|
11372
|
+
def list_htap_storage_type_async(self, request):
|
11373
|
+
"""获取HTAP实例存储类型
|
11374
|
+
|
11375
|
+
获取HTAP实例存储类型。
|
11376
|
+
|
11377
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11378
|
+
|
11379
|
+
|
11380
|
+
:param request: Request instance for ListHtapStorageType
|
11381
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapStorageTypeRequest`
|
11382
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapStorageTypeResponse`
|
11383
|
+
"""
|
11384
|
+
http_info = self._list_htap_storage_type_http_info(request)
|
11385
|
+
return self._call_api(**http_info)
|
11386
|
+
|
11387
|
+
def list_htap_storage_type_async_invoker(self, request):
|
11388
|
+
http_info = self._list_htap_storage_type_http_info(request)
|
11389
|
+
return AsyncInvoker(self, http_info)
|
11390
|
+
|
11391
|
+
def _list_htap_storage_type_http_info(self, request):
|
11392
|
+
http_info = {
|
11393
|
+
"method": "GET",
|
11394
|
+
"resource_path": "/v3/{project_id}/htap/storage-type/{database}",
|
11395
|
+
"request_type": request.__class__.__name__,
|
11396
|
+
"response_type": "ListHtapStorageTypeResponse"
|
11397
|
+
}
|
11398
|
+
|
11399
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11400
|
+
|
11401
|
+
cname = None
|
11402
|
+
|
11403
|
+
collection_formats = {}
|
11404
|
+
|
11405
|
+
path_params = {}
|
11406
|
+
if 'database' in local_var_params:
|
11407
|
+
path_params['database'] = local_var_params['database']
|
11408
|
+
|
11409
|
+
query_params = []
|
11410
|
+
if 'version_name' in local_var_params:
|
11411
|
+
query_params.append(('version_name', local_var_params['version_name']))
|
11412
|
+
|
11413
|
+
header_params = {}
|
11414
|
+
if 'x_language' in local_var_params:
|
11415
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11416
|
+
|
11417
|
+
form_params = {}
|
11418
|
+
|
11419
|
+
body = None
|
11420
|
+
if isinstance(request, SdkStreamRequest):
|
11421
|
+
body = request.get_file_stream()
|
11422
|
+
|
11423
|
+
response_headers = []
|
11424
|
+
|
11425
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11426
|
+
['application/json'])
|
11427
|
+
|
11428
|
+
auth_settings = []
|
11429
|
+
|
11430
|
+
http_info["cname"] = cname
|
11431
|
+
http_info["collection_formats"] = collection_formats
|
11432
|
+
http_info["path_params"] = path_params
|
11433
|
+
http_info["query_params"] = query_params
|
11434
|
+
http_info["header_params"] = header_params
|
11435
|
+
http_info["post_params"] = form_params
|
11436
|
+
http_info["body"] = body
|
11437
|
+
http_info["response_headers"] = response_headers
|
11438
|
+
|
11439
|
+
return http_info
|
11440
|
+
|
11441
|
+
def list_star_rocks_data_bases_async(self, request):
|
11442
|
+
"""查询StarRocks数据库
|
11443
|
+
|
11444
|
+
查询StarRocks数据库。
|
11445
|
+
|
11446
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11447
|
+
|
11448
|
+
|
11449
|
+
:param request: Request instance for ListStarRocksDataBases
|
11450
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesRequest`
|
11451
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesResponse`
|
11452
|
+
"""
|
11453
|
+
http_info = self._list_star_rocks_data_bases_http_info(request)
|
11454
|
+
return self._call_api(**http_info)
|
11455
|
+
|
11456
|
+
def list_star_rocks_data_bases_async_invoker(self, request):
|
11457
|
+
http_info = self._list_star_rocks_data_bases_http_info(request)
|
11458
|
+
return AsyncInvoker(self, http_info)
|
11459
|
+
|
11460
|
+
def _list_star_rocks_data_bases_http_info(self, request):
|
11461
|
+
http_info = {
|
11462
|
+
"method": "GET",
|
11463
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases",
|
11464
|
+
"request_type": request.__class__.__name__,
|
11465
|
+
"response_type": "ListStarRocksDataBasesResponse"
|
11466
|
+
}
|
11467
|
+
|
11468
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11469
|
+
|
11470
|
+
cname = None
|
11471
|
+
|
11472
|
+
collection_formats = {}
|
11473
|
+
|
11474
|
+
path_params = {}
|
11475
|
+
if 'instance_id' in local_var_params:
|
11476
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
11477
|
+
|
11478
|
+
query_params = []
|
11479
|
+
if 'limit' in local_var_params:
|
11480
|
+
query_params.append(('limit', local_var_params['limit']))
|
11481
|
+
if 'offset' in local_var_params:
|
11482
|
+
query_params.append(('offset', local_var_params['offset']))
|
11483
|
+
if 'database_name' in local_var_params:
|
11484
|
+
query_params.append(('database_name', local_var_params['database_name']))
|
11485
|
+
|
11486
|
+
header_params = {}
|
11487
|
+
if 'x_language' in local_var_params:
|
11488
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11489
|
+
|
11490
|
+
form_params = {}
|
11491
|
+
|
11492
|
+
body = None
|
11493
|
+
if isinstance(request, SdkStreamRequest):
|
11494
|
+
body = request.get_file_stream()
|
11495
|
+
|
11496
|
+
response_headers = []
|
11497
|
+
|
11498
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11499
|
+
['application/json'])
|
11500
|
+
|
11501
|
+
auth_settings = []
|
11502
|
+
|
11503
|
+
http_info["cname"] = cname
|
11504
|
+
http_info["collection_formats"] = collection_formats
|
11505
|
+
http_info["path_params"] = path_params
|
11506
|
+
http_info["query_params"] = query_params
|
11507
|
+
http_info["header_params"] = header_params
|
11508
|
+
http_info["post_params"] = form_params
|
11509
|
+
http_info["body"] = body
|
11510
|
+
http_info["response_headers"] = response_headers
|
11511
|
+
|
11512
|
+
return http_info
|
11513
|
+
|
11514
|
+
def list_star_rocks_data_replication_config_async(self, request):
|
11515
|
+
"""查询StarRocks数据同步配置信息
|
11516
|
+
|
11517
|
+
查询StarRocks数据同步配置信息。
|
11518
|
+
|
11519
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11520
|
+
|
11521
|
+
|
11522
|
+
:param request: Request instance for ListStarRocksDataReplicationConfig
|
11523
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigRequest`
|
11524
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigResponse`
|
11525
|
+
"""
|
11526
|
+
http_info = self._list_star_rocks_data_replication_config_http_info(request)
|
11527
|
+
return self._call_api(**http_info)
|
11528
|
+
|
11529
|
+
def list_star_rocks_data_replication_config_async_invoker(self, request):
|
11530
|
+
http_info = self._list_star_rocks_data_replication_config_http_info(request)
|
11531
|
+
return AsyncInvoker(self, http_info)
|
11532
|
+
|
11533
|
+
def _list_star_rocks_data_replication_config_http_info(self, request):
|
11534
|
+
http_info = {
|
11535
|
+
"method": "GET",
|
11536
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/configuration",
|
11537
|
+
"request_type": request.__class__.__name__,
|
11538
|
+
"response_type": "ListStarRocksDataReplicationConfigResponse"
|
11539
|
+
}
|
11540
|
+
|
11541
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11542
|
+
|
11543
|
+
cname = None
|
11544
|
+
|
11545
|
+
collection_formats = {}
|
11546
|
+
|
11547
|
+
path_params = {}
|
11548
|
+
if 'instance_id' in local_var_params:
|
11549
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
11550
|
+
|
11551
|
+
query_params = []
|
11552
|
+
if 'task_name' in local_var_params:
|
11553
|
+
query_params.append(('task_name', local_var_params['task_name']))
|
11554
|
+
|
11555
|
+
header_params = {}
|
11556
|
+
if 'x_language' in local_var_params:
|
11557
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11558
|
+
|
11559
|
+
form_params = {}
|
11560
|
+
|
11561
|
+
body = None
|
11562
|
+
if isinstance(request, SdkStreamRequest):
|
11563
|
+
body = request.get_file_stream()
|
11564
|
+
|
11565
|
+
response_headers = []
|
11566
|
+
|
11567
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11568
|
+
['application/json'])
|
11569
|
+
|
11570
|
+
auth_settings = []
|
11571
|
+
|
11572
|
+
http_info["cname"] = cname
|
11573
|
+
http_info["collection_formats"] = collection_formats
|
11574
|
+
http_info["path_params"] = path_params
|
11575
|
+
http_info["query_params"] = query_params
|
11576
|
+
http_info["header_params"] = header_params
|
11577
|
+
http_info["post_params"] = form_params
|
11578
|
+
http_info["body"] = body
|
11579
|
+
http_info["response_headers"] = response_headers
|
11580
|
+
|
11581
|
+
return http_info
|
11582
|
+
|
11583
|
+
def list_star_rocks_data_replications_async(self, request):
|
11584
|
+
"""查询StarRocks数据同步状态信息
|
11585
|
+
|
11586
|
+
查询StarRocks数据同步状态信息。
|
11587
|
+
|
11588
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11589
|
+
|
11590
|
+
|
11591
|
+
:param request: Request instance for ListStarRocksDataReplications
|
11592
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsRequest`
|
11593
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsResponse`
|
11594
|
+
"""
|
11595
|
+
http_info = self._list_star_rocks_data_replications_http_info(request)
|
11596
|
+
return self._call_api(**http_info)
|
11597
|
+
|
11598
|
+
def list_star_rocks_data_replications_async_invoker(self, request):
|
11599
|
+
http_info = self._list_star_rocks_data_replications_http_info(request)
|
11600
|
+
return AsyncInvoker(self, http_info)
|
11601
|
+
|
11602
|
+
def _list_star_rocks_data_replications_http_info(self, request):
|
11603
|
+
http_info = {
|
11604
|
+
"method": "GET",
|
11605
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
|
11606
|
+
"request_type": request.__class__.__name__,
|
11607
|
+
"response_type": "ListStarRocksDataReplicationsResponse"
|
11608
|
+
}
|
11609
|
+
|
11610
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11611
|
+
|
11612
|
+
cname = None
|
11613
|
+
|
11614
|
+
collection_formats = {}
|
11615
|
+
|
11616
|
+
path_params = {}
|
11617
|
+
if 'instance_id' in local_var_params:
|
11618
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
11619
|
+
|
11620
|
+
query_params = []
|
11621
|
+
if 'limit' in local_var_params:
|
11622
|
+
query_params.append(('limit', local_var_params['limit']))
|
11623
|
+
if 'offset' in local_var_params:
|
11624
|
+
query_params.append(('offset', local_var_params['offset']))
|
11625
|
+
|
11626
|
+
header_params = {}
|
11627
|
+
if 'x_language' in local_var_params:
|
11628
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11629
|
+
|
11630
|
+
form_params = {}
|
11631
|
+
|
11632
|
+
body = None
|
11633
|
+
if isinstance(request, SdkStreamRequest):
|
11634
|
+
body = request.get_file_stream()
|
11635
|
+
|
11636
|
+
response_headers = []
|
11637
|
+
|
11638
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11639
|
+
['application/json'])
|
11640
|
+
|
11641
|
+
auth_settings = []
|
11642
|
+
|
11643
|
+
http_info["cname"] = cname
|
11644
|
+
http_info["collection_formats"] = collection_formats
|
11645
|
+
http_info["path_params"] = path_params
|
11646
|
+
http_info["query_params"] = query_params
|
11647
|
+
http_info["header_params"] = header_params
|
11648
|
+
http_info["post_params"] = form_params
|
11649
|
+
http_info["body"] = body
|
11650
|
+
http_info["response_headers"] = response_headers
|
11651
|
+
|
11652
|
+
return http_info
|
11653
|
+
|
11654
|
+
def list_star_rocks_db_parameters_async(self, request):
|
11655
|
+
"""查询StarRocks数据同步的库参数配置
|
11656
|
+
|
11657
|
+
查询StarRocks数据同步的库参数配置。
|
11658
|
+
|
11659
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11660
|
+
|
11661
|
+
|
11662
|
+
:param request: Request instance for ListStarRocksDbParameters
|
11663
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersRequest`
|
11664
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersResponse`
|
11665
|
+
"""
|
11666
|
+
http_info = self._list_star_rocks_db_parameters_http_info(request)
|
11667
|
+
return self._call_api(**http_info)
|
11668
|
+
|
11669
|
+
def list_star_rocks_db_parameters_async_invoker(self, request):
|
11670
|
+
http_info = self._list_star_rocks_db_parameters_http_info(request)
|
11671
|
+
return AsyncInvoker(self, http_info)
|
11672
|
+
|
11673
|
+
def _list_star_rocks_db_parameters_http_info(self, request):
|
11674
|
+
http_info = {
|
11675
|
+
"method": "GET",
|
11676
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-parameters",
|
11677
|
+
"request_type": request.__class__.__name__,
|
11678
|
+
"response_type": "ListStarRocksDbParametersResponse"
|
11679
|
+
}
|
11680
|
+
|
11681
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11682
|
+
|
11683
|
+
cname = None
|
11684
|
+
|
11685
|
+
collection_formats = {}
|
11686
|
+
|
11687
|
+
path_params = {}
|
11688
|
+
if 'instance_id' in local_var_params:
|
11689
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
11690
|
+
|
11691
|
+
query_params = []
|
11692
|
+
|
11693
|
+
header_params = {}
|
11694
|
+
if 'x_language' in local_var_params:
|
11695
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11696
|
+
|
11697
|
+
form_params = {}
|
11698
|
+
|
11699
|
+
body = None
|
11700
|
+
if isinstance(request, SdkStreamRequest):
|
11701
|
+
body = request.get_file_stream()
|
11702
|
+
|
11703
|
+
response_headers = []
|
11704
|
+
|
11705
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11706
|
+
['application/json'])
|
11707
|
+
|
11708
|
+
auth_settings = []
|
11709
|
+
|
11710
|
+
http_info["cname"] = cname
|
11711
|
+
http_info["collection_formats"] = collection_formats
|
11712
|
+
http_info["path_params"] = path_params
|
11713
|
+
http_info["query_params"] = query_params
|
11714
|
+
http_info["header_params"] = header_params
|
11715
|
+
http_info["post_params"] = form_params
|
11716
|
+
http_info["body"] = body
|
11717
|
+
http_info["response_headers"] = response_headers
|
11718
|
+
|
11719
|
+
return http_info
|
11720
|
+
|
11721
|
+
def list_starrocks_instance_info_async(self, request):
|
11722
|
+
"""查询StarRocks实例
|
11723
|
+
|
11724
|
+
查询StarRocks实例。
|
11725
|
+
|
11726
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11727
|
+
|
11728
|
+
|
11729
|
+
:param request: Request instance for ListStarrocksInstanceInfo
|
11730
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ListStarrocksInstanceInfoRequest`
|
11731
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarrocksInstanceInfoResponse`
|
11732
|
+
"""
|
11733
|
+
http_info = self._list_starrocks_instance_info_http_info(request)
|
11734
|
+
return self._call_api(**http_info)
|
11735
|
+
|
11736
|
+
def list_starrocks_instance_info_async_invoker(self, request):
|
11737
|
+
http_info = self._list_starrocks_instance_info_http_info(request)
|
11738
|
+
return AsyncInvoker(self, http_info)
|
11739
|
+
|
11740
|
+
def _list_starrocks_instance_info_http_info(self, request):
|
11741
|
+
http_info = {
|
11742
|
+
"method": "GET",
|
11743
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}",
|
11744
|
+
"request_type": request.__class__.__name__,
|
11745
|
+
"response_type": "ListStarrocksInstanceInfoResponse"
|
11746
|
+
}
|
11747
|
+
|
11748
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11749
|
+
|
11750
|
+
cname = None
|
11751
|
+
|
11752
|
+
collection_formats = {}
|
11753
|
+
|
11754
|
+
path_params = {}
|
11755
|
+
if 'instance_id' in local_var_params:
|
11756
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
11757
|
+
if 'starrocks_instance_id' in local_var_params:
|
11758
|
+
path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
|
11759
|
+
|
11760
|
+
query_params = []
|
11761
|
+
|
11762
|
+
header_params = {}
|
11763
|
+
if 'x_language' in local_var_params:
|
11764
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11765
|
+
|
11766
|
+
form_params = {}
|
11767
|
+
|
11768
|
+
body = None
|
11769
|
+
if isinstance(request, SdkStreamRequest):
|
11770
|
+
body = request.get_file_stream()
|
11771
|
+
|
11772
|
+
response_headers = []
|
11773
|
+
|
11774
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11775
|
+
['application/json'])
|
11776
|
+
|
11777
|
+
auth_settings = []
|
11778
|
+
|
11779
|
+
http_info["cname"] = cname
|
11780
|
+
http_info["collection_formats"] = collection_formats
|
11781
|
+
http_info["path_params"] = path_params
|
11782
|
+
http_info["query_params"] = query_params
|
11783
|
+
http_info["header_params"] = header_params
|
11784
|
+
http_info["post_params"] = form_params
|
11785
|
+
http_info["body"] = body
|
11786
|
+
http_info["response_headers"] = response_headers
|
11787
|
+
|
11788
|
+
return http_info
|
11789
|
+
|
11790
|
+
def pause_star_rocks_data_replication_async(self, request):
|
11791
|
+
"""暂停StarRocks数据同步
|
11792
|
+
|
11793
|
+
暂停StarRocks数据同步。
|
11794
|
+
|
11795
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11796
|
+
|
11797
|
+
|
11798
|
+
:param request: Request instance for PauseStarRocksDataReplication
|
11799
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.PauseStarRocksDataReplicationRequest`
|
11800
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.PauseStarRocksDataReplicationResponse`
|
11801
|
+
"""
|
11802
|
+
http_info = self._pause_star_rocks_data_replication_http_info(request)
|
11803
|
+
return self._call_api(**http_info)
|
11804
|
+
|
11805
|
+
def pause_star_rocks_data_replication_async_invoker(self, request):
|
11806
|
+
http_info = self._pause_star_rocks_data_replication_http_info(request)
|
11807
|
+
return AsyncInvoker(self, http_info)
|
11808
|
+
|
11809
|
+
def _pause_star_rocks_data_replication_http_info(self, request):
|
11810
|
+
http_info = {
|
11811
|
+
"method": "POST",
|
11812
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/pause",
|
11813
|
+
"request_type": request.__class__.__name__,
|
11814
|
+
"response_type": "PauseStarRocksDataReplicationResponse"
|
11815
|
+
}
|
11816
|
+
|
11817
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11818
|
+
|
11819
|
+
cname = None
|
11820
|
+
|
11821
|
+
collection_formats = {}
|
11822
|
+
|
11823
|
+
path_params = {}
|
11824
|
+
if 'instance_id' in local_var_params:
|
11825
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
11826
|
+
|
11827
|
+
query_params = []
|
11828
|
+
|
11829
|
+
header_params = {}
|
11830
|
+
if 'x_language' in local_var_params:
|
11831
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11832
|
+
|
11833
|
+
form_params = {}
|
11834
|
+
|
11835
|
+
body = None
|
11836
|
+
if 'body' in local_var_params:
|
11837
|
+
body = local_var_params['body']
|
11838
|
+
if isinstance(request, SdkStreamRequest):
|
11839
|
+
body = request.get_file_stream()
|
11840
|
+
|
11841
|
+
response_headers = []
|
11842
|
+
|
11843
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11844
|
+
['application/json;charset=UTF-8'])
|
11845
|
+
|
11846
|
+
auth_settings = []
|
11847
|
+
|
11848
|
+
http_info["cname"] = cname
|
11849
|
+
http_info["collection_formats"] = collection_formats
|
11850
|
+
http_info["path_params"] = path_params
|
11851
|
+
http_info["query_params"] = query_params
|
11852
|
+
http_info["header_params"] = header_params
|
11853
|
+
http_info["post_params"] = form_params
|
11854
|
+
http_info["body"] = body
|
11855
|
+
http_info["response_headers"] = response_headers
|
11856
|
+
|
11857
|
+
return http_info
|
11858
|
+
|
11859
|
+
def reboot_click_house_instance_async(self, request):
|
11860
|
+
"""重启实例
|
11861
|
+
|
11862
|
+
重启实例。
|
11863
|
+
|
11864
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11865
|
+
|
11866
|
+
|
11867
|
+
:param request: Request instance for RebootClickHouseInstance
|
11868
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.RebootClickHouseInstanceRequest`
|
11869
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.RebootClickHouseInstanceResponse`
|
11870
|
+
"""
|
11871
|
+
http_info = self._reboot_click_house_instance_http_info(request)
|
11872
|
+
return self._call_api(**http_info)
|
11873
|
+
|
11874
|
+
def reboot_click_house_instance_async_invoker(self, request):
|
11875
|
+
http_info = self._reboot_click_house_instance_http_info(request)
|
11876
|
+
return AsyncInvoker(self, http_info)
|
11877
|
+
|
11878
|
+
def _reboot_click_house_instance_http_info(self, request):
|
11879
|
+
http_info = {
|
11880
|
+
"method": "PUT",
|
11881
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/restart",
|
11882
|
+
"request_type": request.__class__.__name__,
|
11883
|
+
"response_type": "RebootClickHouseInstanceResponse"
|
11884
|
+
}
|
11885
|
+
|
11886
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11887
|
+
|
11888
|
+
cname = None
|
11889
|
+
|
11890
|
+
collection_formats = {}
|
11891
|
+
|
11892
|
+
path_params = {}
|
11893
|
+
if 'instance_id' in local_var_params:
|
11894
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
11895
|
+
|
11896
|
+
query_params = []
|
11897
|
+
|
11898
|
+
header_params = {}
|
11899
|
+
if 'x_language' in local_var_params:
|
11900
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11901
|
+
|
11902
|
+
form_params = {}
|
11903
|
+
|
11904
|
+
body = None
|
11905
|
+
if isinstance(request, SdkStreamRequest):
|
11906
|
+
body = request.get_file_stream()
|
11907
|
+
|
11908
|
+
response_headers = []
|
11909
|
+
|
11910
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11911
|
+
['application/json'])
|
11912
|
+
|
11913
|
+
auth_settings = []
|
11914
|
+
|
11915
|
+
http_info["cname"] = cname
|
11916
|
+
http_info["collection_formats"] = collection_formats
|
11917
|
+
http_info["path_params"] = path_params
|
11918
|
+
http_info["query_params"] = query_params
|
11919
|
+
http_info["header_params"] = header_params
|
11920
|
+
http_info["post_params"] = form_params
|
11921
|
+
http_info["body"] = body
|
11922
|
+
http_info["response_headers"] = response_headers
|
11923
|
+
|
11924
|
+
return http_info
|
11925
|
+
|
11926
|
+
def resize_click_house_flavor_async(self, request):
|
11927
|
+
"""实例规格变更
|
11928
|
+
|
11929
|
+
实例规格变更。
|
11930
|
+
|
11931
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
11932
|
+
|
11933
|
+
|
11934
|
+
:param request: Request instance for ResizeClickHouseFlavor
|
11935
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ResizeClickHouseFlavorRequest`
|
11936
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ResizeClickHouseFlavorResponse`
|
11937
|
+
"""
|
11938
|
+
http_info = self._resize_click_house_flavor_http_info(request)
|
11939
|
+
return self._call_api(**http_info)
|
11940
|
+
|
11941
|
+
def resize_click_house_flavor_async_invoker(self, request):
|
11942
|
+
http_info = self._resize_click_house_flavor_http_info(request)
|
11943
|
+
return AsyncInvoker(self, http_info)
|
11944
|
+
|
11945
|
+
def _resize_click_house_flavor_http_info(self, request):
|
11946
|
+
http_info = {
|
11947
|
+
"method": "POST",
|
11948
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/resize-flavor",
|
11949
|
+
"request_type": request.__class__.__name__,
|
11950
|
+
"response_type": "ResizeClickHouseFlavorResponse"
|
11951
|
+
}
|
11952
|
+
|
11953
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
11954
|
+
|
11955
|
+
cname = None
|
11956
|
+
|
11957
|
+
collection_formats = {}
|
11958
|
+
|
11959
|
+
path_params = {}
|
11960
|
+
if 'instance_id' in local_var_params:
|
11961
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
11962
|
+
|
11963
|
+
query_params = []
|
11964
|
+
|
11965
|
+
header_params = {}
|
11966
|
+
if 'x_language' in local_var_params:
|
11967
|
+
header_params['X-Language'] = local_var_params['x_language']
|
11968
|
+
|
11969
|
+
form_params = {}
|
11970
|
+
|
11971
|
+
body = None
|
11972
|
+
if 'body' in local_var_params:
|
11973
|
+
body = local_var_params['body']
|
11974
|
+
if isinstance(request, SdkStreamRequest):
|
11975
|
+
body = request.get_file_stream()
|
11976
|
+
|
11977
|
+
response_headers = []
|
11978
|
+
|
11979
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
11980
|
+
['application/json;charset=UTF-8'])
|
11981
|
+
|
11982
|
+
auth_settings = []
|
11983
|
+
|
11984
|
+
http_info["cname"] = cname
|
11985
|
+
http_info["collection_formats"] = collection_formats
|
11986
|
+
http_info["path_params"] = path_params
|
11987
|
+
http_info["query_params"] = query_params
|
11988
|
+
http_info["header_params"] = header_params
|
11989
|
+
http_info["post_params"] = form_params
|
11990
|
+
http_info["body"] = body
|
11991
|
+
http_info["response_headers"] = response_headers
|
11992
|
+
|
11993
|
+
return http_info
|
11994
|
+
|
11995
|
+
def resize_click_house_instance_async(self, request):
|
11996
|
+
"""实例磁盘扩容
|
11997
|
+
|
11998
|
+
实例磁盘扩容。
|
11999
|
+
|
12000
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
12001
|
+
|
12002
|
+
|
12003
|
+
:param request: Request instance for ResizeClickHouseInstance
|
12004
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ResizeClickHouseInstanceRequest`
|
12005
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ResizeClickHouseInstanceResponse`
|
12006
|
+
"""
|
12007
|
+
http_info = self._resize_click_house_instance_http_info(request)
|
12008
|
+
return self._call_api(**http_info)
|
12009
|
+
|
12010
|
+
def resize_click_house_instance_async_invoker(self, request):
|
12011
|
+
http_info = self._resize_click_house_instance_http_info(request)
|
12012
|
+
return AsyncInvoker(self, http_info)
|
12013
|
+
|
12014
|
+
def _resize_click_house_instance_http_info(self, request):
|
12015
|
+
http_info = {
|
12016
|
+
"method": "PUT",
|
12017
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/resize",
|
12018
|
+
"request_type": request.__class__.__name__,
|
12019
|
+
"response_type": "ResizeClickHouseInstanceResponse"
|
12020
|
+
}
|
12021
|
+
|
12022
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
12023
|
+
|
12024
|
+
cname = None
|
12025
|
+
|
12026
|
+
collection_formats = {}
|
12027
|
+
|
12028
|
+
path_params = {}
|
12029
|
+
if 'instance_id' in local_var_params:
|
12030
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
12031
|
+
|
12032
|
+
query_params = []
|
12033
|
+
|
12034
|
+
header_params = {}
|
12035
|
+
if 'x_language' in local_var_params:
|
12036
|
+
header_params['X-Language'] = local_var_params['x_language']
|
12037
|
+
|
12038
|
+
form_params = {}
|
12039
|
+
|
12040
|
+
body = None
|
12041
|
+
if 'body' in local_var_params:
|
12042
|
+
body = local_var_params['body']
|
12043
|
+
if isinstance(request, SdkStreamRequest):
|
12044
|
+
body = request.get_file_stream()
|
12045
|
+
|
12046
|
+
response_headers = []
|
12047
|
+
|
12048
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
12049
|
+
['application/json;charset=UTF-8'])
|
12050
|
+
|
12051
|
+
auth_settings = []
|
12052
|
+
|
12053
|
+
http_info["cname"] = cname
|
12054
|
+
http_info["collection_formats"] = collection_formats
|
12055
|
+
http_info["path_params"] = path_params
|
12056
|
+
http_info["query_params"] = query_params
|
12057
|
+
http_info["header_params"] = header_params
|
12058
|
+
http_info["post_params"] = form_params
|
12059
|
+
http_info["body"] = body
|
12060
|
+
http_info["response_headers"] = response_headers
|
12061
|
+
|
12062
|
+
return http_info
|
12063
|
+
|
12064
|
+
def restart_starrocks_instance_async(self, request):
|
12065
|
+
"""重启StarRocks实例
|
12066
|
+
|
12067
|
+
重启StarRocks实例。
|
12068
|
+
|
12069
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
12070
|
+
|
12071
|
+
|
12072
|
+
:param request: Request instance for RestartStarrocksInstance
|
12073
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksInstanceRequest`
|
12074
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksInstanceResponse`
|
12075
|
+
"""
|
12076
|
+
http_info = self._restart_starrocks_instance_http_info(request)
|
12077
|
+
return self._call_api(**http_info)
|
12078
|
+
|
12079
|
+
def restart_starrocks_instance_async_invoker(self, request):
|
12080
|
+
http_info = self._restart_starrocks_instance_http_info(request)
|
12081
|
+
return AsyncInvoker(self, http_info)
|
12082
|
+
|
12083
|
+
def _restart_starrocks_instance_http_info(self, request):
|
12084
|
+
http_info = {
|
12085
|
+
"method": "PUT",
|
12086
|
+
"resource_path": "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/restart",
|
12087
|
+
"request_type": request.__class__.__name__,
|
12088
|
+
"response_type": "RestartStarrocksInstanceResponse"
|
12089
|
+
}
|
12090
|
+
|
12091
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
12092
|
+
|
12093
|
+
cname = None
|
12094
|
+
|
12095
|
+
collection_formats = {}
|
12096
|
+
|
12097
|
+
path_params = {}
|
12098
|
+
if 'starrocks_instance_id' in local_var_params:
|
12099
|
+
path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
|
12100
|
+
|
12101
|
+
query_params = []
|
12102
|
+
|
12103
|
+
header_params = {}
|
12104
|
+
if 'x_language' in local_var_params:
|
12105
|
+
header_params['X-Language'] = local_var_params['x_language']
|
12106
|
+
|
12107
|
+
form_params = {}
|
12108
|
+
|
12109
|
+
body = None
|
12110
|
+
if isinstance(request, SdkStreamRequest):
|
12111
|
+
body = request.get_file_stream()
|
12112
|
+
|
12113
|
+
response_headers = []
|
12114
|
+
|
12115
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
12116
|
+
['application/json'])
|
12117
|
+
|
12118
|
+
auth_settings = []
|
12119
|
+
|
12120
|
+
http_info["cname"] = cname
|
12121
|
+
http_info["collection_formats"] = collection_formats
|
12122
|
+
http_info["path_params"] = path_params
|
12123
|
+
http_info["query_params"] = query_params
|
12124
|
+
http_info["header_params"] = header_params
|
12125
|
+
http_info["post_params"] = form_params
|
12126
|
+
http_info["body"] = body
|
12127
|
+
http_info["response_headers"] = response_headers
|
12128
|
+
|
12129
|
+
return http_info
|
12130
|
+
|
12131
|
+
def restart_starrocks_node_async(self, request):
|
12132
|
+
"""重启StarRocks节点
|
12133
|
+
|
12134
|
+
重启StarRocks节点。
|
12135
|
+
|
12136
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
12137
|
+
|
12138
|
+
|
12139
|
+
:param request: Request instance for RestartStarrocksNode
|
12140
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksNodeRequest`
|
12141
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksNodeResponse`
|
12142
|
+
"""
|
12143
|
+
http_info = self._restart_starrocks_node_http_info(request)
|
12144
|
+
return self._call_api(**http_info)
|
12145
|
+
|
12146
|
+
def restart_starrocks_node_async_invoker(self, request):
|
12147
|
+
http_info = self._restart_starrocks_node_http_info(request)
|
12148
|
+
return AsyncInvoker(self, http_info)
|
12149
|
+
|
12150
|
+
def _restart_starrocks_node_http_info(self, request):
|
12151
|
+
http_info = {
|
12152
|
+
"method": "PUT",
|
12153
|
+
"resource_path": "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/{starrocks_node_id}/restart",
|
10084
12154
|
"request_type": request.__class__.__name__,
|
10085
|
-
"response_type": "
|
12155
|
+
"response_type": "RestartStarrocksNodeResponse"
|
10086
12156
|
}
|
10087
12157
|
|
10088
12158
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10092,8 +12162,10 @@ class GaussDBAsyncClient(Client):
|
|
10092
12162
|
collection_formats = {}
|
10093
12163
|
|
10094
12164
|
path_params = {}
|
10095
|
-
if '
|
10096
|
-
path_params['
|
12165
|
+
if 'starrocks_node_id' in local_var_params:
|
12166
|
+
path_params['starrocks_node_id'] = local_var_params['starrocks_node_id']
|
12167
|
+
if 'starrocks_instance_id' in local_var_params:
|
12168
|
+
path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
|
10097
12169
|
|
10098
12170
|
query_params = []
|
10099
12171
|
|
@@ -10125,31 +12197,31 @@ class GaussDBAsyncClient(Client):
|
|
10125
12197
|
|
10126
12198
|
return http_info
|
10127
12199
|
|
10128
|
-
def
|
10129
|
-
"""
|
12200
|
+
def resume_star_rocks_data_replication_async(self, request):
|
12201
|
+
"""恢复StarRocks数据同步
|
10130
12202
|
|
10131
|
-
|
12203
|
+
恢复StarRocks数据同步。
|
10132
12204
|
|
10133
12205
|
Please refer to HUAWEI cloud API Explorer for details.
|
10134
12206
|
|
10135
12207
|
|
10136
|
-
:param request: Request instance for
|
10137
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
10138
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
12208
|
+
:param request: Request instance for ResumeStarRocksDataReplication
|
12209
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ResumeStarRocksDataReplicationRequest`
|
12210
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ResumeStarRocksDataReplicationResponse`
|
10139
12211
|
"""
|
10140
|
-
http_info = self.
|
12212
|
+
http_info = self._resume_star_rocks_data_replication_http_info(request)
|
10141
12213
|
return self._call_api(**http_info)
|
10142
12214
|
|
10143
|
-
def
|
10144
|
-
http_info = self.
|
12215
|
+
def resume_star_rocks_data_replication_async_invoker(self, request):
|
12216
|
+
http_info = self._resume_star_rocks_data_replication_http_info(request)
|
10145
12217
|
return AsyncInvoker(self, http_info)
|
10146
12218
|
|
10147
|
-
def
|
12219
|
+
def _resume_star_rocks_data_replication_http_info(self, request):
|
10148
12220
|
http_info = {
|
10149
|
-
"method": "
|
10150
|
-
"resource_path": "/v3/{project_id}/
|
12221
|
+
"method": "POST",
|
12222
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/resume",
|
10151
12223
|
"request_type": request.__class__.__name__,
|
10152
|
-
"response_type": "
|
12224
|
+
"response_type": "ResumeStarRocksDataReplicationResponse"
|
10153
12225
|
}
|
10154
12226
|
|
10155
12227
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10159,16 +12231,10 @@ class GaussDBAsyncClient(Client):
|
|
10159
12231
|
collection_formats = {}
|
10160
12232
|
|
10161
12233
|
path_params = {}
|
10162
|
-
if '
|
10163
|
-
path_params['
|
12234
|
+
if 'instance_id' in local_var_params:
|
12235
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10164
12236
|
|
10165
12237
|
query_params = []
|
10166
|
-
if 'availability_zone_mode' in local_var_params:
|
10167
|
-
query_params.append(('availability_zone_mode', local_var_params['availability_zone_mode']))
|
10168
|
-
if 'spec_code' in local_var_params:
|
10169
|
-
query_params.append(('spec_code', local_var_params['spec_code']))
|
10170
|
-
if 'version_name' in local_var_params:
|
10171
|
-
query_params.append(('version_name', local_var_params['version_name']))
|
10172
12238
|
|
10173
12239
|
header_params = {}
|
10174
12240
|
if 'x_language' in local_var_params:
|
@@ -10177,13 +12243,15 @@ class GaussDBAsyncClient(Client):
|
|
10177
12243
|
form_params = {}
|
10178
12244
|
|
10179
12245
|
body = None
|
12246
|
+
if 'body' in local_var_params:
|
12247
|
+
body = local_var_params['body']
|
10180
12248
|
if isinstance(request, SdkStreamRequest):
|
10181
12249
|
body = request.get_file_stream()
|
10182
12250
|
|
10183
12251
|
response_headers = []
|
10184
12252
|
|
10185
12253
|
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10186
|
-
['application/json'])
|
12254
|
+
['application/json;charset=UTF-8'])
|
10187
12255
|
|
10188
12256
|
auth_settings = []
|
10189
12257
|
|
@@ -10198,31 +12266,31 @@ class GaussDBAsyncClient(Client):
|
|
10198
12266
|
|
10199
12267
|
return http_info
|
10200
12268
|
|
10201
|
-
def
|
10202
|
-
"""
|
12269
|
+
def show_click_house_database_user_async(self, request):
|
12270
|
+
"""查询数据库账户
|
10203
12271
|
|
10204
|
-
|
12272
|
+
查询数据库账户。
|
10205
12273
|
|
10206
12274
|
Please refer to HUAWEI cloud API Explorer for details.
|
10207
12275
|
|
10208
12276
|
|
10209
|
-
:param request: Request instance for
|
10210
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
10211
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
12277
|
+
:param request: Request instance for ShowClickHouseDatabaseUser
|
12278
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseDatabaseUserRequest`
|
12279
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseDatabaseUserResponse`
|
10212
12280
|
"""
|
10213
|
-
http_info = self.
|
12281
|
+
http_info = self._show_click_house_database_user_http_info(request)
|
10214
12282
|
return self._call_api(**http_info)
|
10215
12283
|
|
10216
|
-
def
|
10217
|
-
http_info = self.
|
12284
|
+
def show_click_house_database_user_async_invoker(self, request):
|
12285
|
+
http_info = self._show_click_house_database_user_http_info(request)
|
10218
12286
|
return AsyncInvoker(self, http_info)
|
10219
12287
|
|
10220
|
-
def
|
12288
|
+
def _show_click_house_database_user_http_info(self, request):
|
10221
12289
|
http_info = {
|
10222
12290
|
"method": "GET",
|
10223
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/
|
12291
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/users",
|
10224
12292
|
"request_type": request.__class__.__name__,
|
10225
|
-
"response_type": "
|
12293
|
+
"response_type": "ShowClickHouseDatabaseUserResponse"
|
10226
12294
|
}
|
10227
12295
|
|
10228
12296
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10236,6 +12304,12 @@ class GaussDBAsyncClient(Client):
|
|
10236
12304
|
path_params['instance_id'] = local_var_params['instance_id']
|
10237
12305
|
|
10238
12306
|
query_params = []
|
12307
|
+
if 'limit' in local_var_params:
|
12308
|
+
query_params.append(('limit', local_var_params['limit']))
|
12309
|
+
if 'offset' in local_var_params:
|
12310
|
+
query_params.append(('offset', local_var_params['offset']))
|
12311
|
+
if 'user_name' in local_var_params:
|
12312
|
+
query_params.append(('user_name', local_var_params['user_name']))
|
10239
12313
|
|
10240
12314
|
header_params = {}
|
10241
12315
|
if 'x_language' in local_var_params:
|
@@ -10265,31 +12339,31 @@ class GaussDBAsyncClient(Client):
|
|
10265
12339
|
|
10266
12340
|
return http_info
|
10267
12341
|
|
10268
|
-
def
|
10269
|
-
"""
|
12342
|
+
def show_click_house_lts_config_async(self, request):
|
12343
|
+
"""查询实例LTS日志配置列表
|
10270
12344
|
|
10271
|
-
|
12345
|
+
查询实例LTS日志配置列表。
|
10272
12346
|
|
10273
12347
|
Please refer to HUAWEI cloud API Explorer for details.
|
10274
12348
|
|
10275
12349
|
|
10276
|
-
:param request: Request instance for
|
10277
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
10278
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
12350
|
+
:param request: Request instance for ShowClickHouseLtsConfig
|
12351
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseLtsConfigRequest`
|
12352
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseLtsConfigResponse`
|
10279
12353
|
"""
|
10280
|
-
http_info = self.
|
12354
|
+
http_info = self._show_click_house_lts_config_http_info(request)
|
10281
12355
|
return self._call_api(**http_info)
|
10282
12356
|
|
10283
|
-
def
|
10284
|
-
http_info = self.
|
12357
|
+
def show_click_house_lts_config_async_invoker(self, request):
|
12358
|
+
http_info = self._show_click_house_lts_config_http_info(request)
|
10285
12359
|
return AsyncInvoker(self, http_info)
|
10286
12360
|
|
10287
|
-
def
|
12361
|
+
def _show_click_house_lts_config_http_info(self, request):
|
10288
12362
|
http_info = {
|
10289
12363
|
"method": "GET",
|
10290
|
-
"resource_path": "/v3/{project_id}/
|
12364
|
+
"resource_path": "/v3/{project_id}/clickhouse/instances/logs/lts-configs",
|
10291
12365
|
"request_type": request.__class__.__name__,
|
10292
|
-
"response_type": "
|
12366
|
+
"response_type": "ShowClickHouseLtsConfigResponse"
|
10293
12367
|
}
|
10294
12368
|
|
10295
12369
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10299,12 +12373,18 @@ class GaussDBAsyncClient(Client):
|
|
10299
12373
|
collection_formats = {}
|
10300
12374
|
|
10301
12375
|
path_params = {}
|
10302
|
-
if 'database' in local_var_params:
|
10303
|
-
path_params['database'] = local_var_params['database']
|
10304
12376
|
|
10305
12377
|
query_params = []
|
10306
|
-
if '
|
10307
|
-
query_params.append(('
|
12378
|
+
if 'instance_id' in local_var_params:
|
12379
|
+
query_params.append(('instance_id', local_var_params['instance_id']))
|
12380
|
+
if 'enterprise_project_id' in local_var_params:
|
12381
|
+
query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
|
12382
|
+
if 'instance_name' in local_var_params:
|
12383
|
+
query_params.append(('instance_name', local_var_params['instance_name']))
|
12384
|
+
if 'limit' in local_var_params:
|
12385
|
+
query_params.append(('limit', local_var_params['limit']))
|
12386
|
+
if 'offset' in local_var_params:
|
12387
|
+
query_params.append(('offset', local_var_params['offset']))
|
10308
12388
|
|
10309
12389
|
header_params = {}
|
10310
12390
|
if 'x_language' in local_var_params:
|
@@ -10334,31 +12414,31 @@ class GaussDBAsyncClient(Client):
|
|
10334
12414
|
|
10335
12415
|
return http_info
|
10336
12416
|
|
10337
|
-
def
|
10338
|
-
"""
|
12417
|
+
def show_click_house_slow_log_detail_async(self, request):
|
12418
|
+
"""查询慢日志
|
10339
12419
|
|
10340
|
-
|
12420
|
+
获取内核慢日志信息。
|
10341
12421
|
|
10342
12422
|
Please refer to HUAWEI cloud API Explorer for details.
|
10343
12423
|
|
10344
12424
|
|
10345
|
-
:param request: Request instance for
|
10346
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
10347
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
12425
|
+
:param request: Request instance for ShowClickHouseSlowLogDetail
|
12426
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseSlowLogDetailRequest`
|
12427
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseSlowLogDetailResponse`
|
10348
12428
|
"""
|
10349
|
-
http_info = self.
|
12429
|
+
http_info = self._show_click_house_slow_log_detail_http_info(request)
|
10350
12430
|
return self._call_api(**http_info)
|
10351
12431
|
|
10352
|
-
def
|
10353
|
-
http_info = self.
|
12432
|
+
def show_click_house_slow_log_detail_async_invoker(self, request):
|
12433
|
+
http_info = self._show_click_house_slow_log_detail_http_info(request)
|
10354
12434
|
return AsyncInvoker(self, http_info)
|
10355
12435
|
|
10356
|
-
def
|
12436
|
+
def _show_click_house_slow_log_detail_http_info(self, request):
|
10357
12437
|
http_info = {
|
10358
|
-
"method": "
|
10359
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/
|
12438
|
+
"method": "POST",
|
12439
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/slow-logs",
|
10360
12440
|
"request_type": request.__class__.__name__,
|
10361
|
-
"response_type": "
|
12441
|
+
"response_type": "ShowClickHouseSlowLogDetailResponse"
|
10362
12442
|
}
|
10363
12443
|
|
10364
12444
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10372,12 +12452,6 @@ class GaussDBAsyncClient(Client):
|
|
10372
12452
|
path_params['instance_id'] = local_var_params['instance_id']
|
10373
12453
|
|
10374
12454
|
query_params = []
|
10375
|
-
if 'limit' in local_var_params:
|
10376
|
-
query_params.append(('limit', local_var_params['limit']))
|
10377
|
-
if 'offset' in local_var_params:
|
10378
|
-
query_params.append(('offset', local_var_params['offset']))
|
10379
|
-
if 'database_name' in local_var_params:
|
10380
|
-
query_params.append(('database_name', local_var_params['database_name']))
|
10381
12455
|
|
10382
12456
|
header_params = {}
|
10383
12457
|
if 'x_language' in local_var_params:
|
@@ -10386,13 +12460,15 @@ class GaussDBAsyncClient(Client):
|
|
10386
12460
|
form_params = {}
|
10387
12461
|
|
10388
12462
|
body = None
|
12463
|
+
if 'body' in local_var_params:
|
12464
|
+
body = local_var_params['body']
|
10389
12465
|
if isinstance(request, SdkStreamRequest):
|
10390
12466
|
body = request.get_file_stream()
|
10391
12467
|
|
10392
12468
|
response_headers = []
|
10393
12469
|
|
10394
12470
|
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10395
|
-
['application/json'])
|
12471
|
+
['application/json;charset=UTF-8'])
|
10396
12472
|
|
10397
12473
|
auth_settings = []
|
10398
12474
|
|
@@ -10407,31 +12483,31 @@ class GaussDBAsyncClient(Client):
|
|
10407
12483
|
|
10408
12484
|
return http_info
|
10409
12485
|
|
10410
|
-
def
|
10411
|
-
"""
|
12486
|
+
def show_click_house_slow_log_sensitive_status_async(self, request):
|
12487
|
+
"""查询慢日志脱敏状态
|
10412
12488
|
|
10413
|
-
|
12489
|
+
查询慢日志脱敏状态。
|
10414
12490
|
|
10415
12491
|
Please refer to HUAWEI cloud API Explorer for details.
|
10416
12492
|
|
10417
12493
|
|
10418
|
-
:param request: Request instance for
|
10419
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
10420
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
12494
|
+
:param request: Request instance for ShowClickHouseSlowLogSensitiveStatus
|
12495
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseSlowLogSensitiveStatusRequest`
|
12496
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseSlowLogSensitiveStatusResponse`
|
10421
12497
|
"""
|
10422
|
-
http_info = self.
|
12498
|
+
http_info = self._show_click_house_slow_log_sensitive_status_http_info(request)
|
10423
12499
|
return self._call_api(**http_info)
|
10424
12500
|
|
10425
|
-
def
|
10426
|
-
http_info = self.
|
12501
|
+
def show_click_house_slow_log_sensitive_status_async_invoker(self, request):
|
12502
|
+
http_info = self._show_click_house_slow_log_sensitive_status_http_info(request)
|
10427
12503
|
return AsyncInvoker(self, http_info)
|
10428
12504
|
|
10429
|
-
def
|
12505
|
+
def _show_click_house_slow_log_sensitive_status_http_info(self, request):
|
10430
12506
|
http_info = {
|
10431
12507
|
"method": "GET",
|
10432
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/
|
12508
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/slowlog-sensitive",
|
10433
12509
|
"request_type": request.__class__.__name__,
|
10434
|
-
"response_type": "
|
12510
|
+
"response_type": "ShowClickHouseSlowLogSensitiveStatusResponse"
|
10435
12511
|
}
|
10436
12512
|
|
10437
12513
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10445,8 +12521,6 @@ class GaussDBAsyncClient(Client):
|
|
10445
12521
|
path_params['instance_id'] = local_var_params['instance_id']
|
10446
12522
|
|
10447
12523
|
query_params = []
|
10448
|
-
if 'task_name' in local_var_params:
|
10449
|
-
query_params.append(('task_name', local_var_params['task_name']))
|
10450
12524
|
|
10451
12525
|
header_params = {}
|
10452
12526
|
if 'x_language' in local_var_params:
|
@@ -10476,31 +12550,31 @@ class GaussDBAsyncClient(Client):
|
|
10476
12550
|
|
10477
12551
|
return http_info
|
10478
12552
|
|
10479
|
-
def
|
10480
|
-
"""
|
12553
|
+
def show_star_rocks_database_user_async(self, request):
|
12554
|
+
"""查询数据库账户
|
10481
12555
|
|
10482
|
-
查询StarRocks
|
12556
|
+
查询StarRocks数据库账户。
|
10483
12557
|
|
10484
12558
|
Please refer to HUAWEI cloud API Explorer for details.
|
10485
12559
|
|
10486
12560
|
|
10487
|
-
:param request: Request instance for
|
10488
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
10489
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
12561
|
+
:param request: Request instance for ShowStarRocksDatabaseUser
|
12562
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUserRequest`
|
12563
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUserResponse`
|
10490
12564
|
"""
|
10491
|
-
http_info = self.
|
12565
|
+
http_info = self._show_star_rocks_database_user_http_info(request)
|
10492
12566
|
return self._call_api(**http_info)
|
10493
12567
|
|
10494
|
-
def
|
10495
|
-
http_info = self.
|
12568
|
+
def show_star_rocks_database_user_async_invoker(self, request):
|
12569
|
+
http_info = self._show_star_rocks_database_user_http_info(request)
|
10496
12570
|
return AsyncInvoker(self, http_info)
|
10497
12571
|
|
10498
|
-
def
|
12572
|
+
def _show_star_rocks_database_user_http_info(self, request):
|
10499
12573
|
http_info = {
|
10500
12574
|
"method": "GET",
|
10501
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/
|
12575
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
|
10502
12576
|
"request_type": request.__class__.__name__,
|
10503
|
-
"response_type": "
|
12577
|
+
"response_type": "ShowStarRocksDatabaseUserResponse"
|
10504
12578
|
}
|
10505
12579
|
|
10506
12580
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10514,6 +12588,8 @@ class GaussDBAsyncClient(Client):
|
|
10514
12588
|
path_params['instance_id'] = local_var_params['instance_id']
|
10515
12589
|
|
10516
12590
|
query_params = []
|
12591
|
+
if 'user_name' in local_var_params:
|
12592
|
+
query_params.append(('user_name', local_var_params['user_name']))
|
10517
12593
|
if 'limit' in local_var_params:
|
10518
12594
|
query_params.append(('limit', local_var_params['limit']))
|
10519
12595
|
if 'offset' in local_var_params:
|
@@ -10547,31 +12623,31 @@ class GaussDBAsyncClient(Client):
|
|
10547
12623
|
|
10548
12624
|
return http_info
|
10549
12625
|
|
10550
|
-
def
|
10551
|
-
"""
|
12626
|
+
def update_click_house_data_base_config_async(self, request):
|
12627
|
+
"""修改数据同步
|
10552
12628
|
|
10553
|
-
|
12629
|
+
修改数据同步。
|
10554
12630
|
|
10555
12631
|
Please refer to HUAWEI cloud API Explorer for details.
|
10556
12632
|
|
10557
12633
|
|
10558
|
-
:param request: Request instance for
|
10559
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
10560
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
12634
|
+
:param request: Request instance for UpdateClickHouseDataBaseConfig
|
12635
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseDataBaseConfigRequest`
|
12636
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseDataBaseConfigResponse`
|
10561
12637
|
"""
|
10562
|
-
http_info = self.
|
12638
|
+
http_info = self._update_click_house_data_base_config_http_info(request)
|
10563
12639
|
return self._call_api(**http_info)
|
10564
12640
|
|
10565
|
-
def
|
10566
|
-
http_info = self.
|
12641
|
+
def update_click_house_data_base_config_async_invoker(self, request):
|
12642
|
+
http_info = self._update_click_house_data_base_config_http_info(request)
|
10567
12643
|
return AsyncInvoker(self, http_info)
|
10568
12644
|
|
10569
|
-
def
|
12645
|
+
def _update_click_house_data_base_config_http_info(self, request):
|
10570
12646
|
http_info = {
|
10571
|
-
"method": "
|
10572
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/
|
12647
|
+
"method": "PUT",
|
12648
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/databases/replication/config",
|
10573
12649
|
"request_type": request.__class__.__name__,
|
10574
|
-
"response_type": "
|
12650
|
+
"response_type": "UpdateClickHouseDataBaseConfigResponse"
|
10575
12651
|
}
|
10576
12652
|
|
10577
12653
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10593,13 +12669,15 @@ class GaussDBAsyncClient(Client):
|
|
10593
12669
|
form_params = {}
|
10594
12670
|
|
10595
12671
|
body = None
|
12672
|
+
if 'body' in local_var_params:
|
12673
|
+
body = local_var_params['body']
|
10596
12674
|
if isinstance(request, SdkStreamRequest):
|
10597
12675
|
body = request.get_file_stream()
|
10598
12676
|
|
10599
12677
|
response_headers = []
|
10600
12678
|
|
10601
12679
|
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10602
|
-
['application/json'])
|
12680
|
+
['application/json;charset=UTF-8'])
|
10603
12681
|
|
10604
12682
|
auth_settings = []
|
10605
12683
|
|
@@ -10614,31 +12692,31 @@ class GaussDBAsyncClient(Client):
|
|
10614
12692
|
|
10615
12693
|
return http_info
|
10616
12694
|
|
10617
|
-
def
|
10618
|
-
"""
|
12695
|
+
def update_click_house_database_user_password_async(self, request):
|
12696
|
+
"""修改数据库账号密码
|
10619
12697
|
|
10620
|
-
|
12698
|
+
修改数据库账号密码。
|
10621
12699
|
|
10622
12700
|
Please refer to HUAWEI cloud API Explorer for details.
|
10623
12701
|
|
10624
12702
|
|
10625
|
-
:param request: Request instance for
|
10626
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
10627
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
12703
|
+
:param request: Request instance for UpdateClickHouseDatabaseUserPassword
|
12704
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseDatabaseUserPasswordRequest`
|
12705
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseDatabaseUserPasswordResponse`
|
10628
12706
|
"""
|
10629
|
-
http_info = self.
|
12707
|
+
http_info = self._update_click_house_database_user_password_http_info(request)
|
10630
12708
|
return self._call_api(**http_info)
|
10631
12709
|
|
10632
|
-
def
|
10633
|
-
http_info = self.
|
12710
|
+
def update_click_house_database_user_password_async_invoker(self, request):
|
12711
|
+
http_info = self._update_click_house_database_user_password_http_info(request)
|
10634
12712
|
return AsyncInvoker(self, http_info)
|
10635
12713
|
|
10636
|
-
def
|
12714
|
+
def _update_click_house_database_user_password_http_info(self, request):
|
10637
12715
|
http_info = {
|
10638
|
-
"method": "
|
10639
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/
|
12716
|
+
"method": "PUT",
|
12717
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/users/password",
|
10640
12718
|
"request_type": request.__class__.__name__,
|
10641
|
-
"response_type": "
|
12719
|
+
"response_type": "UpdateClickHouseDatabaseUserPasswordResponse"
|
10642
12720
|
}
|
10643
12721
|
|
10644
12722
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10650,8 +12728,6 @@ class GaussDBAsyncClient(Client):
|
|
10650
12728
|
path_params = {}
|
10651
12729
|
if 'instance_id' in local_var_params:
|
10652
12730
|
path_params['instance_id'] = local_var_params['instance_id']
|
10653
|
-
if 'starrocks_instance_id' in local_var_params:
|
10654
|
-
path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
|
10655
12731
|
|
10656
12732
|
query_params = []
|
10657
12733
|
|
@@ -10662,13 +12738,15 @@ class GaussDBAsyncClient(Client):
|
|
10662
12738
|
form_params = {}
|
10663
12739
|
|
10664
12740
|
body = None
|
12741
|
+
if 'body' in local_var_params:
|
12742
|
+
body = local_var_params['body']
|
10665
12743
|
if isinstance(request, SdkStreamRequest):
|
10666
12744
|
body = request.get_file_stream()
|
10667
12745
|
|
10668
12746
|
response_headers = []
|
10669
12747
|
|
10670
12748
|
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10671
|
-
['application/json'])
|
12749
|
+
['application/json;charset=UTF-8'])
|
10672
12750
|
|
10673
12751
|
auth_settings = []
|
10674
12752
|
|
@@ -10683,31 +12761,31 @@ class GaussDBAsyncClient(Client):
|
|
10683
12761
|
|
10684
12762
|
return http_info
|
10685
12763
|
|
10686
|
-
def
|
10687
|
-
"""
|
12764
|
+
def update_click_house_database_user_permission_async(self, request):
|
12765
|
+
"""修改数据库账号权限
|
10688
12766
|
|
10689
|
-
|
12767
|
+
修改数据库账号权限。
|
10690
12768
|
|
10691
12769
|
Please refer to HUAWEI cloud API Explorer for details.
|
10692
12770
|
|
10693
12771
|
|
10694
|
-
:param request: Request instance for
|
10695
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
10696
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
12772
|
+
:param request: Request instance for UpdateClickHouseDatabaseUserPermission
|
12773
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseDatabaseUserPermissionRequest`
|
12774
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseDatabaseUserPermissionResponse`
|
10697
12775
|
"""
|
10698
|
-
http_info = self.
|
12776
|
+
http_info = self._update_click_house_database_user_permission_http_info(request)
|
10699
12777
|
return self._call_api(**http_info)
|
10700
12778
|
|
10701
|
-
def
|
10702
|
-
http_info = self.
|
12779
|
+
def update_click_house_database_user_permission_async_invoker(self, request):
|
12780
|
+
http_info = self._update_click_house_database_user_permission_http_info(request)
|
10703
12781
|
return AsyncInvoker(self, http_info)
|
10704
12782
|
|
10705
|
-
def
|
12783
|
+
def _update_click_house_database_user_permission_http_info(self, request):
|
10706
12784
|
http_info = {
|
10707
12785
|
"method": "PUT",
|
10708
|
-
"resource_path": "/v3/{project_id}/instances/{
|
12786
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/users/permission",
|
10709
12787
|
"request_type": request.__class__.__name__,
|
10710
|
-
"response_type": "
|
12788
|
+
"response_type": "UpdateClickHouseDatabaseUserPermissionResponse"
|
10711
12789
|
}
|
10712
12790
|
|
10713
12791
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10717,8 +12795,8 @@ class GaussDBAsyncClient(Client):
|
|
10717
12795
|
collection_formats = {}
|
10718
12796
|
|
10719
12797
|
path_params = {}
|
10720
|
-
if '
|
10721
|
-
path_params['
|
12798
|
+
if 'instance_id' in local_var_params:
|
12799
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
10722
12800
|
|
10723
12801
|
query_params = []
|
10724
12802
|
|
@@ -10729,13 +12807,15 @@ class GaussDBAsyncClient(Client):
|
|
10729
12807
|
form_params = {}
|
10730
12808
|
|
10731
12809
|
body = None
|
12810
|
+
if 'body' in local_var_params:
|
12811
|
+
body = local_var_params['body']
|
10732
12812
|
if isinstance(request, SdkStreamRequest):
|
10733
12813
|
body = request.get_file_stream()
|
10734
12814
|
|
10735
12815
|
response_headers = []
|
10736
12816
|
|
10737
12817
|
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10738
|
-
['application/json'])
|
12818
|
+
['application/json;charset=UTF-8'])
|
10739
12819
|
|
10740
12820
|
auth_settings = []
|
10741
12821
|
|
@@ -10750,31 +12830,31 @@ class GaussDBAsyncClient(Client):
|
|
10750
12830
|
|
10751
12831
|
return http_info
|
10752
12832
|
|
10753
|
-
def
|
10754
|
-
"""
|
12833
|
+
def update_click_house_lts_config_async(self, request):
|
12834
|
+
"""批量创建LTS日志配置
|
10755
12835
|
|
10756
|
-
|
12836
|
+
批量创建LTS日志配置。
|
10757
12837
|
|
10758
12838
|
Please refer to HUAWEI cloud API Explorer for details.
|
10759
12839
|
|
10760
12840
|
|
10761
|
-
:param request: Request instance for
|
10762
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
10763
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
12841
|
+
:param request: Request instance for UpdateClickHouseLtsConfig
|
12842
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseLtsConfigRequest`
|
12843
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseLtsConfigResponse`
|
10764
12844
|
"""
|
10765
|
-
http_info = self.
|
12845
|
+
http_info = self._update_click_house_lts_config_http_info(request)
|
10766
12846
|
return self._call_api(**http_info)
|
10767
12847
|
|
10768
|
-
def
|
10769
|
-
http_info = self.
|
12848
|
+
def update_click_house_lts_config_async_invoker(self, request):
|
12849
|
+
http_info = self._update_click_house_lts_config_http_info(request)
|
10770
12850
|
return AsyncInvoker(self, http_info)
|
10771
12851
|
|
10772
|
-
def
|
12852
|
+
def _update_click_house_lts_config_http_info(self, request):
|
10773
12853
|
http_info = {
|
10774
|
-
"method": "
|
10775
|
-
"resource_path": "/v3/{project_id}/instances/
|
12854
|
+
"method": "POST",
|
12855
|
+
"resource_path": "/v3/{project_id}/clickhouse/instances/logs/lts-configs",
|
10776
12856
|
"request_type": request.__class__.__name__,
|
10777
|
-
"response_type": "
|
12857
|
+
"response_type": "UpdateClickHouseLtsConfigResponse"
|
10778
12858
|
}
|
10779
12859
|
|
10780
12860
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10784,10 +12864,6 @@ class GaussDBAsyncClient(Client):
|
|
10784
12864
|
collection_formats = {}
|
10785
12865
|
|
10786
12866
|
path_params = {}
|
10787
|
-
if 'starrocks_node_id' in local_var_params:
|
10788
|
-
path_params['starrocks_node_id'] = local_var_params['starrocks_node_id']
|
10789
|
-
if 'starrocks_instance_id' in local_var_params:
|
10790
|
-
path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
|
10791
12867
|
|
10792
12868
|
query_params = []
|
10793
12869
|
|
@@ -10798,13 +12874,15 @@ class GaussDBAsyncClient(Client):
|
|
10798
12874
|
form_params = {}
|
10799
12875
|
|
10800
12876
|
body = None
|
12877
|
+
if 'body' in local_var_params:
|
12878
|
+
body = local_var_params['body']
|
10801
12879
|
if isinstance(request, SdkStreamRequest):
|
10802
12880
|
body = request.get_file_stream()
|
10803
12881
|
|
10804
12882
|
response_headers = []
|
10805
12883
|
|
10806
12884
|
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10807
|
-
['application/json'])
|
12885
|
+
['application/json;charset=UTF-8'])
|
10808
12886
|
|
10809
12887
|
auth_settings = []
|
10810
12888
|
|
@@ -10819,31 +12897,31 @@ class GaussDBAsyncClient(Client):
|
|
10819
12897
|
|
10820
12898
|
return http_info
|
10821
12899
|
|
10822
|
-
def
|
10823
|
-
"""
|
12900
|
+
def update_click_house_slow_log_sensitive_status_async(self, request):
|
12901
|
+
"""修改慢日志脱敏状态
|
10824
12902
|
|
10825
|
-
|
12903
|
+
修改慢日志脱敏状态。
|
10826
12904
|
|
10827
12905
|
Please refer to HUAWEI cloud API Explorer for details.
|
10828
12906
|
|
10829
12907
|
|
10830
|
-
:param request: Request instance for
|
10831
|
-
:type request: :class:`huaweicloudsdkgaussdb.v3.
|
10832
|
-
:rtype: :class:`huaweicloudsdkgaussdb.v3.
|
12908
|
+
:param request: Request instance for UpdateClickHouseSlowLogSensitiveStatus
|
12909
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseSlowLogSensitiveStatusRequest`
|
12910
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseSlowLogSensitiveStatusResponse`
|
10833
12911
|
"""
|
10834
|
-
http_info = self.
|
12912
|
+
http_info = self._update_click_house_slow_log_sensitive_status_http_info(request)
|
10835
12913
|
return self._call_api(**http_info)
|
10836
12914
|
|
10837
|
-
def
|
10838
|
-
http_info = self.
|
12915
|
+
def update_click_house_slow_log_sensitive_status_async_invoker(self, request):
|
12916
|
+
http_info = self._update_click_house_slow_log_sensitive_status_http_info(request)
|
10839
12917
|
return AsyncInvoker(self, http_info)
|
10840
12918
|
|
10841
|
-
def
|
12919
|
+
def _update_click_house_slow_log_sensitive_status_http_info(self, request):
|
10842
12920
|
http_info = {
|
10843
|
-
"method": "
|
10844
|
-
"resource_path": "/v3/{project_id}/instances/{instance_id}/
|
12921
|
+
"method": "PUT",
|
12922
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/slowlog-sensitive",
|
10845
12923
|
"request_type": request.__class__.__name__,
|
10846
|
-
"response_type": "
|
12924
|
+
"response_type": "UpdateClickHouseSlowLogSensitiveStatusResponse"
|
10847
12925
|
}
|
10848
12926
|
|
10849
12927
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -10857,12 +12935,6 @@ class GaussDBAsyncClient(Client):
|
|
10857
12935
|
path_params['instance_id'] = local_var_params['instance_id']
|
10858
12936
|
|
10859
12937
|
query_params = []
|
10860
|
-
if 'user_name' in local_var_params:
|
10861
|
-
query_params.append(('user_name', local_var_params['user_name']))
|
10862
|
-
if 'limit' in local_var_params:
|
10863
|
-
query_params.append(('limit', local_var_params['limit']))
|
10864
|
-
if 'offset' in local_var_params:
|
10865
|
-
query_params.append(('offset', local_var_params['offset']))
|
10866
12938
|
|
10867
12939
|
header_params = {}
|
10868
12940
|
if 'x_language' in local_var_params:
|
@@ -10871,13 +12943,15 @@ class GaussDBAsyncClient(Client):
|
|
10871
12943
|
form_params = {}
|
10872
12944
|
|
10873
12945
|
body = None
|
12946
|
+
if 'body' in local_var_params:
|
12947
|
+
body = local_var_params['body']
|
10874
12948
|
if isinstance(request, SdkStreamRequest):
|
10875
12949
|
body = request.get_file_stream()
|
10876
12950
|
|
10877
12951
|
response_headers = []
|
10878
12952
|
|
10879
12953
|
header_params['Content-Type'] = http_utils.select_header_content_type(
|
10880
|
-
['application/json'])
|
12954
|
+
['application/json;charset=UTF-8'])
|
10881
12955
|
|
10882
12956
|
auth_settings = []
|
10883
12957
|
|