huaweicloudsdkgaussdb 3.1.102__py2.py3-none-any.whl → 3.1.104__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +125 -1
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +2738 -317
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +2738 -317
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +125 -1
  5. huaweicloudsdkgaussdb/v3/model/ch_database_config_check_result.py +170 -0
  6. huaweicloudsdkgaussdb/v3/model/ch_database_config_response.py +142 -0
  7. huaweicloudsdkgaussdb/v3/model/ch_database_configs_info.py +142 -0
  8. huaweicloudsdkgaussdb/v3/model/ch_database_parameter_info.py +226 -0
  9. huaweicloudsdkgaussdb/v3/model/ch_database_replication_info.py +254 -0
  10. huaweicloudsdkgaussdb/v3/model/ch_database_table_config_check_result.py +170 -0
  11. huaweicloudsdkgaussdb/v3/model/ch_database_table_repl_config_info.py +142 -0
  12. huaweicloudsdkgaussdb/v3/model/ch_database_tables_configs_info.py +142 -0
  13. huaweicloudsdkgaussdb/v3/model/ch_enlarge_volume_request_body.py +114 -0
  14. huaweicloudsdkgaussdb/v3/model/ch_instance_lts_configs.py +140 -0
  15. huaweicloudsdkgaussdb/v3/model/ch_instance_lts_configs_instance.py +318 -0
  16. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance.py +1179 -0
  17. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_groups.py +198 -0
  18. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_ops_window.py +171 -0
  19. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_param_group.py +144 -0
  20. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_port_info.py +226 -0
  21. huaweicloudsdkgaussdb/v3/model/ch_lts_configs.py +202 -0
  22. huaweicloudsdkgaussdb/v3/model/ch_query_action_info.py +318 -0
  23. huaweicloudsdkgaussdb/v3/model/ch_slow_log_detail_response_slow_log_list.py +450 -0
  24. huaweicloudsdkgaussdb/v3/model/ch_slow_log_query_request_body.py +285 -0
  25. huaweicloudsdkgaussdb/v3/model/ch_slowlog_sensitive_response.py +114 -0
  26. huaweicloudsdkgaussdb/v3/model/check_ch_database_config_request_body.py +223 -0
  27. huaweicloudsdkgaussdb/v3/model/check_ch_database_table_config_request_body.py +251 -0
  28. huaweicloudsdkgaussdb/v3/model/check_click_house_data_base_config_request.py +168 -0
  29. huaweicloudsdkgaussdb/v3/model/check_click_house_data_base_config_response.py +145 -0
  30. huaweicloudsdkgaussdb/v3/model/check_click_house_table_config_request.py +168 -0
  31. huaweicloudsdkgaussdb/v3/model/check_click_house_table_config_response.py +145 -0
  32. huaweicloudsdkgaussdb/v3/model/check_starrocks_params_request.py +140 -0
  33. huaweicloudsdkgaussdb/v3/model/check_starrocks_params_request_body.py +114 -0
  34. huaweicloudsdkgaussdb/v3/model/check_starrocks_params_response.py +116 -0
  35. huaweicloudsdkgaussdb/v3/model/click_house_database_user_info.py +199 -0
  36. huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_sinfo.py +170 -0
  37. huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_winfo.py +142 -0
  38. huaweicloudsdkgaussdb/v3/model/click_house_engine_info.py +142 -0
  39. huaweicloudsdkgaussdb/v3/model/click_house_node_info.py +979 -0
  40. huaweicloudsdkgaussdb/v3/model/click_house_node_info_datastore.py +170 -0
  41. huaweicloudsdkgaussdb/v3/model/click_house_node_info_response_body_node_list.py +170 -0
  42. huaweicloudsdkgaussdb/v3/model/click_house_node_info_volume.py +200 -0
  43. huaweicloudsdkgaussdb/v3/model/click_house_resize_flavor_request_body.py +171 -0
  44. huaweicloudsdkgaussdb/v3/model/create_ch_database_replication_request_body.py +171 -0
  45. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info.py +522 -0
  46. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_pay_info.py +226 -0
  47. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_tags_info.py +144 -0
  48. huaweicloudsdkgaussdb/v3/model/{sr_create_instance_rsp_instance_tags_info_tags.py → create_ch_instance_info_tags_info_tags.py} +11 -11
  49. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body.py +376 -0
  50. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_ha.py +114 -0
  51. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_pay_info.py +231 -0
  52. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info.py +114 -0
  53. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info_sys_tags.py +142 -0
  54. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_volume.py +142 -0
  55. huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body.py +114 -0
  56. huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body_log_configs.py +198 -0
  57. huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_request.py +168 -0
  58. huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_response.py +116 -0
  59. huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_request.py +168 -0
  60. huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_response.py +116 -0
  61. huaweicloudsdkgaussdb/v3/model/create_click_house_instance_request.py +168 -0
  62. huaweicloudsdkgaussdb/v3/model/create_click_house_instance_response.py +141 -0
  63. huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body.py +114 -0
  64. huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body_log_configs.py +142 -0
  65. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_request.py +171 -0
  66. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_response.py +116 -0
  67. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_request.py +171 -0
  68. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_response.py +116 -0
  69. huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_request.py +171 -0
  70. huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_response.py +116 -0
  71. huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_request.py +171 -0
  72. huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_response.py +116 -0
  73. huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_request.py +140 -0
  74. huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_response.py +85 -0
  75. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_request.py +143 -0
  76. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_response.py +116 -0
  77. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_request.py +171 -0
  78. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_response.py +307 -0
  79. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_request.py +201 -0
  80. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_response.py +174 -0
  81. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_request.py +230 -0
  82. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_response.py +145 -0
  83. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_request.py +143 -0
  84. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_response.py +116 -0
  85. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_request.py +171 -0
  86. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_response.py +112 -0
  87. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication.py +114 -0
  88. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_request.py +167 -0
  89. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_response.py +116 -0
  90. huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_request.py +143 -0
  91. huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_response.py +116 -0
  92. huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_request.py +168 -0
  93. huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_response.py +116 -0
  94. huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_request.py +168 -0
  95. huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_response.py +116 -0
  96. huaweicloudsdkgaussdb/v3/model/resize_star_rocks_flavor_request.py +168 -0
  97. huaweicloudsdkgaussdb/v3/model/resize_star_rocks_flavor_response.py +116 -0
  98. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication.py +114 -0
  99. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_request.py +167 -0
  100. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_response.py +116 -0
  101. huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_request.py +230 -0
  102. huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_response.py +145 -0
  103. huaweicloudsdkgaussdb/v3/model/show_click_house_database_users_user_details.py +198 -0
  104. huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_request.py +260 -0
  105. huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_response.py +145 -0
  106. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_request.py +168 -0
  107. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_response.py +116 -0
  108. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_request.py +143 -0
  109. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_response.py +116 -0
  110. huaweicloudsdkgaussdb/v3/model/show_starrocks_params_request.py +229 -0
  111. huaweicloudsdkgaussdb/v3/model/show_starrocks_params_response.py +170 -0
  112. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +4 -4
  113. huaweicloudsdkgaussdb/v3/model/sr_flavor_resize_req.py +144 -0
  114. huaweicloudsdkgaussdb/v3/model/sync_star_rocks_users_request.py +168 -0
  115. huaweicloudsdkgaussdb/v3/model/sync_star_rocks_users_response.py +116 -0
  116. huaweicloudsdkgaussdb/v3/model/update_ch_database_config_request_body.py +199 -0
  117. huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_request.py +168 -0
  118. huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_response.py +116 -0
  119. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_request.py +168 -0
  120. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_response.py +116 -0
  121. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_request.py +168 -0
  122. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_response.py +116 -0
  123. huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_request.py +140 -0
  124. huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_response.py +85 -0
  125. huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_request.py +168 -0
  126. huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_response.py +116 -0
  127. huaweicloudsdkgaussdb/v3/model/update_param_info.py +142 -0
  128. huaweicloudsdkgaussdb/v3/model/update_starrocks_params_request.py +168 -0
  129. huaweicloudsdkgaussdb/v3/model/update_starrocks_params_response.py +145 -0
  130. huaweicloudsdkgaussdb/v3/model/user_sync_req.py +114 -0
  131. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/METADATA +2 -2
  132. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/RECORD +135 -11
  133. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/LICENSE +0 -0
  134. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/WHEEL +0 -0
  135. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/top_level.txt +0 -0
@@ -9439,31 +9439,31 @@ class GaussDBAsyncClient(Client):
9439
9439
 
9440
9440
  return http_info
9441
9441
 
9442
- def check_data_base_config_async(self, request):
9443
- """HTAP数据同步库配置校验
9442
+ def check_click_house_data_base_config_async(self, request):
9443
+ """数据同步库配置校验
9444
9444
 
9445
- HTAP数据同步库配置校验。
9445
+ 数据同步库配置校验。
9446
9446
 
9447
9447
  Please refer to HUAWEI cloud API Explorer for details.
9448
9448
 
9449
9449
 
9450
- :param request: Request instance for CheckDataBaseConfig
9451
- :type request: :class:`huaweicloudsdkgaussdb.v3.CheckDataBaseConfigRequest`
9452
- :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckDataBaseConfigResponse`
9450
+ :param request: Request instance for CheckClickHouseDataBaseConfig
9451
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CheckClickHouseDataBaseConfigRequest`
9452
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckClickHouseDataBaseConfigResponse`
9453
9453
  """
9454
- http_info = self._check_data_base_config_http_info(request)
9454
+ http_info = self._check_click_house_data_base_config_http_info(request)
9455
9455
  return self._call_api(**http_info)
9456
9456
 
9457
- def check_data_base_config_async_invoker(self, request):
9458
- http_info = self._check_data_base_config_http_info(request)
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
9459
  return AsyncInvoker(self, http_info)
9460
9460
 
9461
- def _check_data_base_config_http_info(self, request):
9461
+ def _check_click_house_data_base_config_http_info(self, request):
9462
9462
  http_info = {
9463
9463
  "method": "POST",
9464
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-config-check",
9464
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/database-check",
9465
9465
  "request_type": request.__class__.__name__,
9466
- "response_type": "CheckDataBaseConfigResponse"
9466
+ "response_type": "CheckClickHouseDataBaseConfigResponse"
9467
9467
  }
9468
9468
 
9469
9469
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -9508,31 +9508,31 @@ class GaussDBAsyncClient(Client):
9508
9508
 
9509
9509
  return http_info
9510
9510
 
9511
- def check_star_rocks_resource_async(self, request):
9512
- """StarRocks资源检查
9511
+ def check_click_house_table_config_async(self, request):
9512
+ """数据同步表配置校验
9513
9513
 
9514
- StarRocks资源检查。
9514
+ 数据同步表配置校验。
9515
9515
 
9516
9516
  Please refer to HUAWEI cloud API Explorer for details.
9517
9517
 
9518
9518
 
9519
- :param request: Request instance for CheckStarRocksResource
9520
- :type request: :class:`huaweicloudsdkgaussdb.v3.CheckStarRocksResourceRequest`
9521
- :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckStarRocksResourceResponse`
9519
+ :param request: Request instance for CheckClickHouseTableConfig
9520
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CheckClickHouseTableConfigRequest`
9521
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckClickHouseTableConfigResponse`
9522
9522
  """
9523
- http_info = self._check_star_rocks_resource_http_info(request)
9523
+ http_info = self._check_click_house_table_config_http_info(request)
9524
9524
  return self._call_api(**http_info)
9525
9525
 
9526
- def check_star_rocks_resource_async_invoker(self, request):
9527
- http_info = self._check_star_rocks_resource_http_info(request)
9526
+ def check_click_house_table_config_async_invoker(self, request):
9527
+ http_info = self._check_click_house_table_config_http_info(request)
9528
9528
  return AsyncInvoker(self, http_info)
9529
9529
 
9530
- def _check_star_rocks_resource_http_info(self, request):
9530
+ def _check_click_house_table_config_http_info(self, request):
9531
9531
  http_info = {
9532
9532
  "method": "POST",
9533
- "resource_path": "/v3/{project_id}/starrocks/resource-check",
9533
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/table-check",
9534
9534
  "request_type": request.__class__.__name__,
9535
- "response_type": "CheckStarRocksResourceResponse"
9535
+ "response_type": "CheckClickHouseTableConfigResponse"
9536
9536
  }
9537
9537
 
9538
9538
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -9542,6 +9542,8 @@ class GaussDBAsyncClient(Client):
9542
9542
  collection_formats = {}
9543
9543
 
9544
9544
  path_params = {}
9545
+ if 'instance_id' in local_var_params:
9546
+ path_params['instance_id'] = local_var_params['instance_id']
9545
9547
 
9546
9548
  query_params = []
9547
9549
 
@@ -9575,31 +9577,31 @@ class GaussDBAsyncClient(Client):
9575
9577
 
9576
9578
  return http_info
9577
9579
 
9578
- def check_table_config_async(self, request):
9579
- """HTAP数据同步表配置校验
9580
+ def check_data_base_config_async(self, request):
9581
+ """HTAP数据同步库配置校验
9580
9582
 
9581
- HTAP数据同步表配置校验。
9583
+ HTAP数据同步库配置校验。
9582
9584
 
9583
9585
  Please refer to HUAWEI cloud API Explorer for details.
9584
9586
 
9585
9587
 
9586
- :param request: Request instance for CheckTableConfig
9587
- :type request: :class:`huaweicloudsdkgaussdb.v3.CheckTableConfigRequest`
9588
- :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckTableConfigResponse`
9588
+ :param request: Request instance for CheckDataBaseConfig
9589
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CheckDataBaseConfigRequest`
9590
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckDataBaseConfigResponse`
9589
9591
  """
9590
- http_info = self._check_table_config_http_info(request)
9592
+ http_info = self._check_data_base_config_http_info(request)
9591
9593
  return self._call_api(**http_info)
9592
9594
 
9593
- def check_table_config_async_invoker(self, request):
9594
- http_info = self._check_table_config_http_info(request)
9595
+ def check_data_base_config_async_invoker(self, request):
9596
+ http_info = self._check_data_base_config_http_info(request)
9595
9597
  return AsyncInvoker(self, http_info)
9596
9598
 
9597
- def _check_table_config_http_info(self, request):
9599
+ def _check_data_base_config_http_info(self, request):
9598
9600
  http_info = {
9599
9601
  "method": "POST",
9600
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/table-config-check",
9602
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-config-check",
9601
9603
  "request_type": request.__class__.__name__,
9602
- "response_type": "CheckTableConfigResponse"
9604
+ "response_type": "CheckDataBaseConfigResponse"
9603
9605
  }
9604
9606
 
9605
9607
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -9644,31 +9646,31 @@ class GaussDBAsyncClient(Client):
9644
9646
 
9645
9647
  return http_info
9646
9648
 
9647
- def create_star_rocks_data_replication_async(self, request):
9648
- """创建StarRocks数据同步
9649
+ def check_star_rocks_resource_async(self, request):
9650
+ """StarRocks资源检查
9649
9651
 
9650
- 创建StarRocks数据同步。
9652
+ StarRocks资源检查。
9651
9653
 
9652
9654
  Please refer to HUAWEI cloud API Explorer for details.
9653
9655
 
9654
9656
 
9655
- :param request: Request instance for CreateStarRocksDataReplication
9656
- :type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDataReplicationRequest`
9657
- :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDataReplicationResponse`
9657
+ :param request: Request instance for CheckStarRocksResource
9658
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CheckStarRocksResourceRequest`
9659
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckStarRocksResourceResponse`
9658
9660
  """
9659
- http_info = self._create_star_rocks_data_replication_http_info(request)
9661
+ http_info = self._check_star_rocks_resource_http_info(request)
9660
9662
  return self._call_api(**http_info)
9661
9663
 
9662
- def create_star_rocks_data_replication_async_invoker(self, request):
9663
- http_info = self._create_star_rocks_data_replication_http_info(request)
9664
+ def check_star_rocks_resource_async_invoker(self, request):
9665
+ http_info = self._check_star_rocks_resource_http_info(request)
9664
9666
  return AsyncInvoker(self, http_info)
9665
9667
 
9666
- def _create_star_rocks_data_replication_http_info(self, request):
9668
+ def _check_star_rocks_resource_http_info(self, request):
9667
9669
  http_info = {
9668
9670
  "method": "POST",
9669
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
9671
+ "resource_path": "/v3/{project_id}/starrocks/resource-check",
9670
9672
  "request_type": request.__class__.__name__,
9671
- "response_type": "CreateStarRocksDataReplicationResponse"
9673
+ "response_type": "CheckStarRocksResourceResponse"
9672
9674
  }
9673
9675
 
9674
9676
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -9678,8 +9680,6 @@ class GaussDBAsyncClient(Client):
9678
9680
  collection_formats = {}
9679
9681
 
9680
9682
  path_params = {}
9681
- if 'instance_id' in local_var_params:
9682
- path_params['instance_id'] = local_var_params['instance_id']
9683
9683
 
9684
9684
  query_params = []
9685
9685
 
@@ -9713,31 +9713,31 @@ class GaussDBAsyncClient(Client):
9713
9713
 
9714
9714
  return http_info
9715
9715
 
9716
- def create_star_rocks_database_user_async(self, request):
9717
- """创建数据库账号
9716
+ def check_starrocks_params_async(self, request):
9717
+ """参数对比
9718
9718
 
9719
- 创建StarRocks数据库账号。
9719
+ 对比实例参数和默认模板的差异
9720
9720
 
9721
9721
  Please refer to HUAWEI cloud API Explorer for details.
9722
9722
 
9723
9723
 
9724
- :param request: Request instance for CreateStarRocksDatabaseUser
9725
- :type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDatabaseUserRequest`
9726
- :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDatabaseUserResponse`
9724
+ :param request: Request instance for CheckStarrocksParams
9725
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CheckStarrocksParamsRequest`
9726
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckStarrocksParamsResponse`
9727
9727
  """
9728
- http_info = self._create_star_rocks_database_user_http_info(request)
9728
+ http_info = self._check_starrocks_params_http_info(request)
9729
9729
  return self._call_api(**http_info)
9730
9730
 
9731
- def create_star_rocks_database_user_async_invoker(self, request):
9732
- http_info = self._create_star_rocks_database_user_http_info(request)
9731
+ def check_starrocks_params_async_invoker(self, request):
9732
+ http_info = self._check_starrocks_params_http_info(request)
9733
9733
  return AsyncInvoker(self, http_info)
9734
9734
 
9735
- def _create_star_rocks_database_user_http_info(self, request):
9735
+ def _check_starrocks_params_http_info(self, request):
9736
9736
  http_info = {
9737
9737
  "method": "POST",
9738
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
9738
+ "resource_path": "/v3/{project_id}/configurations/starrocks/comparison",
9739
9739
  "request_type": request.__class__.__name__,
9740
- "response_type": "CreateStarRocksDatabaseUserResponse"
9740
+ "response_type": "CheckStarrocksParamsResponse"
9741
9741
  }
9742
9742
 
9743
9743
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -9747,8 +9747,6 @@ class GaussDBAsyncClient(Client):
9747
9747
  collection_formats = {}
9748
9748
 
9749
9749
  path_params = {}
9750
- if 'instance_id' in local_var_params:
9751
- path_params['instance_id'] = local_var_params['instance_id']
9752
9750
 
9753
9751
  query_params = []
9754
9752
 
@@ -9782,31 +9780,31 @@ class GaussDBAsyncClient(Client):
9782
9780
 
9783
9781
  return http_info
9784
9782
 
9785
- def create_starrocks_instance_async(self, request):
9786
- """创建StarRocks实例
9783
+ def check_table_config_async(self, request):
9784
+ """HTAP数据同步表配置校验
9787
9785
 
9788
- 创建StarRocks实例。
9786
+ HTAP数据同步表配置校验。
9789
9787
 
9790
9788
  Please refer to HUAWEI cloud API Explorer for details.
9791
9789
 
9792
9790
 
9793
- :param request: Request instance for CreateStarrocksInstance
9794
- :type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarrocksInstanceRequest`
9795
- :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarrocksInstanceResponse`
9791
+ :param request: Request instance for CheckTableConfig
9792
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CheckTableConfigRequest`
9793
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckTableConfigResponse`
9796
9794
  """
9797
- http_info = self._create_starrocks_instance_http_info(request)
9795
+ http_info = self._check_table_config_http_info(request)
9798
9796
  return self._call_api(**http_info)
9799
9797
 
9800
- def create_starrocks_instance_async_invoker(self, request):
9801
- http_info = self._create_starrocks_instance_http_info(request)
9798
+ def check_table_config_async_invoker(self, request):
9799
+ http_info = self._check_table_config_http_info(request)
9802
9800
  return AsyncInvoker(self, http_info)
9803
9801
 
9804
- def _create_starrocks_instance_http_info(self, request):
9802
+ def _check_table_config_http_info(self, request):
9805
9803
  http_info = {
9806
9804
  "method": "POST",
9807
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks",
9805
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/table-config-check",
9808
9806
  "request_type": request.__class__.__name__,
9809
- "response_type": "CreateStarrocksInstanceResponse"
9807
+ "response_type": "CheckTableConfigResponse"
9810
9808
  }
9811
9809
 
9812
9810
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -9851,31 +9849,31 @@ class GaussDBAsyncClient(Client):
9851
9849
 
9852
9850
  return http_info
9853
9851
 
9854
- def delete_star_rocks_data_replication_async(self, request):
9855
- """删除StarRocks数据同步
9852
+ def create_click_house_data_base_replication_async(self, request):
9853
+ """创建数据同步
9856
9854
 
9857
- 删除StarRocks数据同步。
9855
+ 创建数据同步。
9858
9856
 
9859
9857
  Please refer to HUAWEI cloud API Explorer for details.
9860
9858
 
9861
9859
 
9862
- :param request: Request instance for DeleteStarRocksDataReplication
9863
- :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplicationRequest`
9864
- :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplicationResponse`
9860
+ :param request: Request instance for CreateClickHouseDataBaseReplication
9861
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CreateClickHouseDataBaseReplicationRequest`
9862
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateClickHouseDataBaseReplicationResponse`
9865
9863
  """
9866
- http_info = self._delete_star_rocks_data_replication_http_info(request)
9864
+ http_info = self._create_click_house_data_base_replication_http_info(request)
9867
9865
  return self._call_api(**http_info)
9868
9866
 
9869
- def delete_star_rocks_data_replication_async_invoker(self, request):
9870
- http_info = self._delete_star_rocks_data_replication_http_info(request)
9867
+ def create_click_house_data_base_replication_async_invoker(self, request):
9868
+ http_info = self._create_click_house_data_base_replication_http_info(request)
9871
9869
  return AsyncInvoker(self, http_info)
9872
9870
 
9873
- def _delete_star_rocks_data_replication_http_info(self, request):
9871
+ def _create_click_house_data_base_replication_http_info(self, request):
9874
9872
  http_info = {
9875
- "method": "DELETE",
9876
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
9873
+ "method": "POST",
9874
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication",
9877
9875
  "request_type": request.__class__.__name__,
9878
- "response_type": "DeleteStarRocksDataReplicationResponse"
9876
+ "response_type": "CreateClickHouseDataBaseReplicationResponse"
9879
9877
  }
9880
9878
 
9881
9879
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -9920,31 +9918,31 @@ class GaussDBAsyncClient(Client):
9920
9918
 
9921
9919
  return http_info
9922
9920
 
9923
- def delete_star_rocks_database_user_async(self, request):
9924
- """删除数据库账户
9921
+ def create_click_house_database_user_async(self, request):
9922
+ """创建数据库账号
9925
9923
 
9926
- 删除StarRocks数据库账户。
9924
+ 创建数据库账号。
9927
9925
 
9928
9926
  Please refer to HUAWEI cloud API Explorer for details.
9929
9927
 
9930
9928
 
9931
- :param request: Request instance for DeleteStarRocksDatabaseUser
9932
- :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDatabaseUserRequest`
9933
- :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDatabaseUserResponse`
9929
+ :param request: Request instance for CreateClickHouseDatabaseUser
9930
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CreateClickHouseDatabaseUserRequest`
9931
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateClickHouseDatabaseUserResponse`
9934
9932
  """
9935
- http_info = self._delete_star_rocks_database_user_http_info(request)
9933
+ http_info = self._create_click_house_database_user_http_info(request)
9936
9934
  return self._call_api(**http_info)
9937
9935
 
9938
- def delete_star_rocks_database_user_async_invoker(self, request):
9939
- http_info = self._delete_star_rocks_database_user_http_info(request)
9936
+ def create_click_house_database_user_async_invoker(self, request):
9937
+ http_info = self._create_click_house_database_user_http_info(request)
9940
9938
  return AsyncInvoker(self, http_info)
9941
9939
 
9942
- def _delete_star_rocks_database_user_http_info(self, request):
9940
+ def _create_click_house_database_user_http_info(self, request):
9943
9941
  http_info = {
9944
- "method": "DELETE",
9945
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
9942
+ "method": "POST",
9943
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/users",
9946
9944
  "request_type": request.__class__.__name__,
9947
- "response_type": "DeleteStarRocksDatabaseUserResponse"
9945
+ "response_type": "CreateClickHouseDatabaseUserResponse"
9948
9946
  }
9949
9947
 
9950
9948
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -9958,8 +9956,6 @@ class GaussDBAsyncClient(Client):
9958
9956
  path_params['instance_id'] = local_var_params['instance_id']
9959
9957
 
9960
9958
  query_params = []
9961
- if 'user_name' in local_var_params:
9962
- query_params.append(('user_name', local_var_params['user_name']))
9963
9959
 
9964
9960
  header_params = {}
9965
9961
  if 'x_language' in local_var_params:
@@ -9968,13 +9964,15 @@ class GaussDBAsyncClient(Client):
9968
9964
  form_params = {}
9969
9965
 
9970
9966
  body = None
9967
+ if 'body' in local_var_params:
9968
+ body = local_var_params['body']
9971
9969
  if isinstance(request, SdkStreamRequest):
9972
9970
  body = request.get_file_stream()
9973
9971
 
9974
9972
  response_headers = []
9975
9973
 
9976
9974
  header_params['Content-Type'] = http_utils.select_header_content_type(
9977
- ['application/json'])
9975
+ ['application/json;charset=UTF-8'])
9978
9976
 
9979
9977
  auth_settings = []
9980
9978
 
@@ -9989,31 +9987,31 @@ class GaussDBAsyncClient(Client):
9989
9987
 
9990
9988
  return http_info
9991
9989
 
9992
- def delete_starrocks_instance_async(self, request):
9993
- """删除StarRocks实例
9990
+ def create_click_house_instance_async(self, request):
9991
+ """创建实例
9994
9992
 
9995
- 删除StarRocks实例。
9993
+ 创建实例。
9996
9994
 
9997
9995
  Please refer to HUAWEI cloud API Explorer for details.
9998
9996
 
9999
9997
 
10000
- :param request: Request instance for DeleteStarrocksInstance
10001
- :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarrocksInstanceRequest`
10002
- :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarrocksInstanceResponse`
9998
+ :param request: Request instance for CreateClickHouseInstance
9999
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CreateClickHouseInstanceRequest`
10000
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateClickHouseInstanceResponse`
10003
10001
  """
10004
- http_info = self._delete_starrocks_instance_http_info(request)
10002
+ http_info = self._create_click_house_instance_http_info(request)
10005
10003
  return self._call_api(**http_info)
10006
10004
 
10007
- def delete_starrocks_instance_async_invoker(self, request):
10008
- http_info = self._delete_starrocks_instance_http_info(request)
10005
+ def create_click_house_instance_async_invoker(self, request):
10006
+ http_info = self._create_click_house_instance_http_info(request)
10009
10007
  return AsyncInvoker(self, http_info)
10010
10008
 
10011
- def _delete_starrocks_instance_http_info(self, request):
10009
+ def _create_click_house_instance_http_info(self, request):
10012
10010
  http_info = {
10013
- "method": "DELETE",
10014
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}",
10011
+ "method": "POST",
10012
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse",
10015
10013
  "request_type": request.__class__.__name__,
10016
- "response_type": "DeleteStarrocksInstanceResponse"
10014
+ "response_type": "CreateClickHouseInstanceResponse"
10017
10015
  }
10018
10016
 
10019
10017
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -10025,8 +10023,6 @@ class GaussDBAsyncClient(Client):
10025
10023
  path_params = {}
10026
10024
  if 'instance_id' in local_var_params:
10027
10025
  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
10026
 
10031
10027
  query_params = []
10032
10028
 
@@ -10037,13 +10033,15 @@ class GaussDBAsyncClient(Client):
10037
10033
  form_params = {}
10038
10034
 
10039
10035
  body = None
10036
+ if 'body' in local_var_params:
10037
+ body = local_var_params['body']
10040
10038
  if isinstance(request, SdkStreamRequest):
10041
10039
  body = request.get_file_stream()
10042
10040
 
10043
10041
  response_headers = []
10044
10042
 
10045
10043
  header_params['Content-Type'] = http_utils.select_header_content_type(
10046
- ['application/json'])
10044
+ ['application/json;charset=UTF-8'])
10047
10045
 
10048
10046
  auth_settings = []
10049
10047
 
@@ -10058,31 +10056,31 @@ class GaussDBAsyncClient(Client):
10058
10056
 
10059
10057
  return http_info
10060
10058
 
10061
- def list_htap_data_store_async(self, request):
10062
- """HTAP引擎资源查询
10059
+ def create_star_rocks_data_replication_async(self, request):
10060
+ """创建StarRocks数据同步
10063
10061
 
10064
- HTAP引擎资源查询。
10062
+ 创建StarRocks数据同步。
10065
10063
 
10066
10064
  Please refer to HUAWEI cloud API Explorer for details.
10067
10065
 
10068
10066
 
10069
- :param request: Request instance for ListHtapDataStore
10070
- :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapDataStoreRequest`
10071
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapDataStoreResponse`
10067
+ :param request: Request instance for CreateStarRocksDataReplication
10068
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDataReplicationRequest`
10069
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDataReplicationResponse`
10072
10070
  """
10073
- http_info = self._list_htap_data_store_http_info(request)
10071
+ http_info = self._create_star_rocks_data_replication_http_info(request)
10074
10072
  return self._call_api(**http_info)
10075
10073
 
10076
- def list_htap_data_store_async_invoker(self, request):
10077
- http_info = self._list_htap_data_store_http_info(request)
10074
+ def create_star_rocks_data_replication_async_invoker(self, request):
10075
+ http_info = self._create_star_rocks_data_replication_http_info(request)
10078
10076
  return AsyncInvoker(self, http_info)
10079
10077
 
10080
- def _list_htap_data_store_http_info(self, request):
10078
+ def _create_star_rocks_data_replication_http_info(self, request):
10081
10079
  http_info = {
10082
- "method": "GET",
10083
- "resource_path": "/v3/{project_id}/htap/datastores/{engine_name}",
10080
+ "method": "POST",
10081
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
10084
10082
  "request_type": request.__class__.__name__,
10085
- "response_type": "ListHtapDataStoreResponse"
10083
+ "response_type": "CreateStarRocksDataReplicationResponse"
10086
10084
  }
10087
10085
 
10088
10086
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -10092,8 +10090,8 @@ class GaussDBAsyncClient(Client):
10092
10090
  collection_formats = {}
10093
10091
 
10094
10092
  path_params = {}
10095
- if 'engine_name' in local_var_params:
10096
- path_params['engine_name'] = local_var_params['engine_name']
10093
+ if 'instance_id' in local_var_params:
10094
+ path_params['instance_id'] = local_var_params['instance_id']
10097
10095
 
10098
10096
  query_params = []
10099
10097
 
@@ -10104,13 +10102,15 @@ class GaussDBAsyncClient(Client):
10104
10102
  form_params = {}
10105
10103
 
10106
10104
  body = None
10105
+ if 'body' in local_var_params:
10106
+ body = local_var_params['body']
10107
10107
  if isinstance(request, SdkStreamRequest):
10108
10108
  body = request.get_file_stream()
10109
10109
 
10110
10110
  response_headers = []
10111
10111
 
10112
10112
  header_params['Content-Type'] = http_utils.select_header_content_type(
10113
- ['application/json'])
10113
+ ['application/json;charset=UTF-8'])
10114
10114
 
10115
10115
  auth_settings = []
10116
10116
 
@@ -10125,31 +10125,31 @@ class GaussDBAsyncClient(Client):
10125
10125
 
10126
10126
  return http_info
10127
10127
 
10128
- def list_htap_flavor_async(self, request):
10129
- """HTAP查询规格信息
10128
+ def create_star_rocks_database_user_async(self, request):
10129
+ """创建数据库账号
10130
10130
 
10131
- HTAP查询规格信息。
10131
+ 创建StarRocks数据库账号。
10132
10132
 
10133
10133
  Please refer to HUAWEI cloud API Explorer for details.
10134
10134
 
10135
10135
 
10136
- :param request: Request instance for ListHtapFlavor
10137
- :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapFlavorRequest`
10138
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapFlavorResponse`
10136
+ :param request: Request instance for CreateStarRocksDatabaseUser
10137
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDatabaseUserRequest`
10138
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDatabaseUserResponse`
10139
10139
  """
10140
- http_info = self._list_htap_flavor_http_info(request)
10140
+ http_info = self._create_star_rocks_database_user_http_info(request)
10141
10141
  return self._call_api(**http_info)
10142
10142
 
10143
- def list_htap_flavor_async_invoker(self, request):
10144
- http_info = self._list_htap_flavor_http_info(request)
10143
+ def create_star_rocks_database_user_async_invoker(self, request):
10144
+ http_info = self._create_star_rocks_database_user_http_info(request)
10145
10145
  return AsyncInvoker(self, http_info)
10146
10146
 
10147
- def _list_htap_flavor_http_info(self, request):
10147
+ def _create_star_rocks_database_user_http_info(self, request):
10148
10148
  http_info = {
10149
- "method": "GET",
10150
- "resource_path": "/v3/{project_id}/htap/flavors/{engine_name}",
10149
+ "method": "POST",
10150
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
10151
10151
  "request_type": request.__class__.__name__,
10152
- "response_type": "ListHtapFlavorResponse"
10152
+ "response_type": "CreateStarRocksDatabaseUserResponse"
10153
10153
  }
10154
10154
 
10155
10155
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -10159,16 +10159,10 @@ class GaussDBAsyncClient(Client):
10159
10159
  collection_formats = {}
10160
10160
 
10161
10161
  path_params = {}
10162
- if 'engine_name' in local_var_params:
10163
- path_params['engine_name'] = local_var_params['engine_name']
10162
+ if 'instance_id' in local_var_params:
10163
+ path_params['instance_id'] = local_var_params['instance_id']
10164
10164
 
10165
10165
  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
10166
 
10173
10167
  header_params = {}
10174
10168
  if 'x_language' in local_var_params:
@@ -10177,13 +10171,15 @@ class GaussDBAsyncClient(Client):
10177
10171
  form_params = {}
10178
10172
 
10179
10173
  body = None
10174
+ if 'body' in local_var_params:
10175
+ body = local_var_params['body']
10180
10176
  if isinstance(request, SdkStreamRequest):
10181
10177
  body = request.get_file_stream()
10182
10178
 
10183
10179
  response_headers = []
10184
10180
 
10185
10181
  header_params['Content-Type'] = http_utils.select_header_content_type(
10186
- ['application/json'])
10182
+ ['application/json;charset=UTF-8'])
10187
10183
 
10188
10184
  auth_settings = []
10189
10185
 
@@ -10198,31 +10194,2387 @@ class GaussDBAsyncClient(Client):
10198
10194
 
10199
10195
  return http_info
10200
10196
 
10201
- def list_htap_instance_info_async(self, request):
10202
- """查询HTAP实例列表
10197
+ def create_starrocks_instance_async(self, request):
10198
+ """创建StarRocks实例
10203
10199
 
10204
- 查询HTAP实例列表。
10200
+ 创建StarRocks实例。
10205
10201
 
10206
10202
  Please refer to HUAWEI cloud API Explorer for details.
10207
10203
 
10208
10204
 
10209
- :param request: Request instance for ListHtapInstanceInfo
10210
- :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapInstanceInfoRequest`
10211
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapInstanceInfoResponse`
10205
+ :param request: Request instance for CreateStarrocksInstance
10206
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarrocksInstanceRequest`
10207
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarrocksInstanceResponse`
10212
10208
  """
10213
- http_info = self._list_htap_instance_info_http_info(request)
10209
+ http_info = self._create_starrocks_instance_http_info(request)
10210
+ return self._call_api(**http_info)
10211
+
10212
+ def create_starrocks_instance_async_invoker(self, request):
10213
+ http_info = self._create_starrocks_instance_http_info(request)
10214
+ return AsyncInvoker(self, http_info)
10215
+
10216
+ def _create_starrocks_instance_http_info(self, request):
10217
+ http_info = {
10218
+ "method": "POST",
10219
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks",
10220
+ "request_type": request.__class__.__name__,
10221
+ "response_type": "CreateStarrocksInstanceResponse"
10222
+ }
10223
+
10224
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
10225
+
10226
+ cname = None
10227
+
10228
+ collection_formats = {}
10229
+
10230
+ path_params = {}
10231
+ if 'instance_id' in local_var_params:
10232
+ path_params['instance_id'] = local_var_params['instance_id']
10233
+
10234
+ query_params = []
10235
+
10236
+ header_params = {}
10237
+ if 'x_language' in local_var_params:
10238
+ header_params['X-Language'] = local_var_params['x_language']
10239
+
10240
+ form_params = {}
10241
+
10242
+ body = None
10243
+ if 'body' in local_var_params:
10244
+ body = local_var_params['body']
10245
+ if isinstance(request, SdkStreamRequest):
10246
+ body = request.get_file_stream()
10247
+
10248
+ response_headers = []
10249
+
10250
+ header_params['Content-Type'] = http_utils.select_header_content_type(
10251
+ ['application/json;charset=UTF-8'])
10252
+
10253
+ auth_settings = []
10254
+
10255
+ http_info["cname"] = cname
10256
+ http_info["collection_formats"] = collection_formats
10257
+ http_info["path_params"] = path_params
10258
+ http_info["query_params"] = query_params
10259
+ http_info["header_params"] = header_params
10260
+ http_info["post_params"] = form_params
10261
+ http_info["body"] = body
10262
+ http_info["response_headers"] = response_headers
10263
+
10264
+ return http_info
10265
+
10266
+ def delete_click_house_data_base_config_async(self, request):
10267
+ """停止修改数据同步
10268
+
10269
+ 停止修改数据同步。
10270
+
10271
+ Please refer to HUAWEI cloud API Explorer for details.
10272
+
10273
+
10274
+ :param request: Request instance for DeleteClickHouseDataBaseConfig
10275
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseDataBaseConfigRequest`
10276
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseDataBaseConfigResponse`
10277
+ """
10278
+ http_info = self._delete_click_house_data_base_config_http_info(request)
10279
+ return self._call_api(**http_info)
10280
+
10281
+ def delete_click_house_data_base_config_async_invoker(self, request):
10282
+ http_info = self._delete_click_house_data_base_config_http_info(request)
10283
+ return AsyncInvoker(self, http_info)
10284
+
10285
+ def _delete_click_house_data_base_config_http_info(self, request):
10286
+ http_info = {
10287
+ "method": "DELETE",
10288
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/databases/replication/config",
10289
+ "request_type": request.__class__.__name__,
10290
+ "response_type": "DeleteClickHouseDataBaseConfigResponse"
10291
+ }
10292
+
10293
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
10294
+
10295
+ cname = None
10296
+
10297
+ collection_formats = {}
10298
+
10299
+ path_params = {}
10300
+ if 'instance_id' in local_var_params:
10301
+ path_params['instance_id'] = local_var_params['instance_id']
10302
+
10303
+ query_params = []
10304
+ if 'database' in local_var_params:
10305
+ query_params.append(('database', local_var_params['database']))
10306
+
10307
+ header_params = {}
10308
+ if 'x_language' in local_var_params:
10309
+ header_params['X-Language'] = local_var_params['x_language']
10310
+
10311
+ form_params = {}
10312
+
10313
+ body = None
10314
+ if isinstance(request, SdkStreamRequest):
10315
+ body = request.get_file_stream()
10316
+
10317
+ response_headers = []
10318
+
10319
+ header_params['Content-Type'] = http_utils.select_header_content_type(
10320
+ ['application/json'])
10321
+
10322
+ auth_settings = []
10323
+
10324
+ http_info["cname"] = cname
10325
+ http_info["collection_formats"] = collection_formats
10326
+ http_info["path_params"] = path_params
10327
+ http_info["query_params"] = query_params
10328
+ http_info["header_params"] = header_params
10329
+ http_info["post_params"] = form_params
10330
+ http_info["body"] = body
10331
+ http_info["response_headers"] = response_headers
10332
+
10333
+ return http_info
10334
+
10335
+ def delete_click_house_data_base_replication_async(self, request):
10336
+ """删除数据同步
10337
+
10338
+ 删除数据同步。
10339
+
10340
+ Please refer to HUAWEI cloud API Explorer for details.
10341
+
10342
+
10343
+ :param request: Request instance for DeleteClickHouseDataBaseReplication
10344
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseDataBaseReplicationRequest`
10345
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseDataBaseReplicationResponse`
10346
+ """
10347
+ http_info = self._delete_click_house_data_base_replication_http_info(request)
10348
+ return self._call_api(**http_info)
10349
+
10350
+ def delete_click_house_data_base_replication_async_invoker(self, request):
10351
+ http_info = self._delete_click_house_data_base_replication_http_info(request)
10352
+ return AsyncInvoker(self, http_info)
10353
+
10354
+ def _delete_click_house_data_base_replication_http_info(self, request):
10355
+ http_info = {
10356
+ "method": "DELETE",
10357
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/{database_name}",
10358
+ "request_type": request.__class__.__name__,
10359
+ "response_type": "DeleteClickHouseDataBaseReplicationResponse"
10360
+ }
10361
+
10362
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
10363
+
10364
+ cname = None
10365
+
10366
+ collection_formats = {}
10367
+
10368
+ path_params = {}
10369
+ if 'instance_id' in local_var_params:
10370
+ path_params['instance_id'] = local_var_params['instance_id']
10371
+ if 'database_name' in local_var_params:
10372
+ path_params['database_name'] = local_var_params['database_name']
10373
+
10374
+ query_params = []
10375
+
10376
+ header_params = {}
10377
+ if 'x_language' in local_var_params:
10378
+ header_params['X-Language'] = local_var_params['x_language']
10379
+
10380
+ form_params = {}
10381
+
10382
+ body = None
10383
+ if isinstance(request, SdkStreamRequest):
10384
+ body = request.get_file_stream()
10385
+
10386
+ response_headers = []
10387
+
10388
+ header_params['Content-Type'] = http_utils.select_header_content_type(
10389
+ ['application/json'])
10390
+
10391
+ auth_settings = []
10392
+
10393
+ http_info["cname"] = cname
10394
+ http_info["collection_formats"] = collection_formats
10395
+ http_info["path_params"] = path_params
10396
+ http_info["query_params"] = query_params
10397
+ http_info["header_params"] = header_params
10398
+ http_info["post_params"] = form_params
10399
+ http_info["body"] = body
10400
+ http_info["response_headers"] = response_headers
10401
+
10402
+ return http_info
10403
+
10404
+ def delete_click_house_database_user_async(self, request):
10405
+ """删除数据库账户
10406
+
10407
+ 删除数据库账户。
10408
+
10409
+ Please refer to HUAWEI cloud API Explorer for details.
10410
+
10411
+
10412
+ :param request: Request instance for DeleteClickHouseDatabaseUser
10413
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseDatabaseUserRequest`
10414
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseDatabaseUserResponse`
10415
+ """
10416
+ http_info = self._delete_click_house_database_user_http_info(request)
10417
+ return self._call_api(**http_info)
10418
+
10419
+ def delete_click_house_database_user_async_invoker(self, request):
10420
+ http_info = self._delete_click_house_database_user_http_info(request)
10421
+ return AsyncInvoker(self, http_info)
10422
+
10423
+ def _delete_click_house_database_user_http_info(self, request):
10424
+ http_info = {
10425
+ "method": "DELETE",
10426
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/users/{user_name}",
10427
+ "request_type": request.__class__.__name__,
10428
+ "response_type": "DeleteClickHouseDatabaseUserResponse"
10429
+ }
10430
+
10431
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
10432
+
10433
+ cname = None
10434
+
10435
+ collection_formats = {}
10436
+
10437
+ path_params = {}
10438
+ if 'instance_id' in local_var_params:
10439
+ path_params['instance_id'] = local_var_params['instance_id']
10440
+ if 'user_name' in local_var_params:
10441
+ path_params['user_name'] = local_var_params['user_name']
10442
+
10443
+ query_params = []
10444
+
10445
+ header_params = {}
10446
+ if 'x_language' in local_var_params:
10447
+ header_params['X-Language'] = local_var_params['x_language']
10448
+
10449
+ form_params = {}
10450
+
10451
+ body = None
10452
+ if isinstance(request, SdkStreamRequest):
10453
+ body = request.get_file_stream()
10454
+
10455
+ response_headers = []
10456
+
10457
+ header_params['Content-Type'] = http_utils.select_header_content_type(
10458
+ ['application/json'])
10459
+
10460
+ auth_settings = []
10461
+
10462
+ http_info["cname"] = cname
10463
+ http_info["collection_formats"] = collection_formats
10464
+ http_info["path_params"] = path_params
10465
+ http_info["query_params"] = query_params
10466
+ http_info["header_params"] = header_params
10467
+ http_info["post_params"] = form_params
10468
+ http_info["body"] = body
10469
+ http_info["response_headers"] = response_headers
10470
+
10471
+ return http_info
10472
+
10473
+ def delete_click_house_instance_async(self, request):
10474
+ """删除实例
10475
+
10476
+ 删除实例。
10477
+
10478
+ Please refer to HUAWEI cloud API Explorer for details.
10479
+
10480
+
10481
+ :param request: Request instance for DeleteClickHouseInstance
10482
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseInstanceRequest`
10483
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseInstanceResponse`
10484
+ """
10485
+ http_info = self._delete_click_house_instance_http_info(request)
10486
+ return self._call_api(**http_info)
10487
+
10488
+ def delete_click_house_instance_async_invoker(self, request):
10489
+ http_info = self._delete_click_house_instance_http_info(request)
10490
+ return AsyncInvoker(self, http_info)
10491
+
10492
+ def _delete_click_house_instance_http_info(self, request):
10493
+ http_info = {
10494
+ "method": "DELETE",
10495
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/{clickhouse_instance_id}",
10496
+ "request_type": request.__class__.__name__,
10497
+ "response_type": "DeleteClickHouseInstanceResponse"
10498
+ }
10499
+
10500
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
10501
+
10502
+ cname = None
10503
+
10504
+ collection_formats = {}
10505
+
10506
+ path_params = {}
10507
+ if 'instance_id' in local_var_params:
10508
+ path_params['instance_id'] = local_var_params['instance_id']
10509
+ if 'clickhouse_instance_id' in local_var_params:
10510
+ path_params['clickhouse_instance_id'] = local_var_params['clickhouse_instance_id']
10511
+
10512
+ query_params = []
10513
+
10514
+ header_params = {}
10515
+ if 'x_language' in local_var_params:
10516
+ header_params['X-Language'] = local_var_params['x_language']
10517
+
10518
+ form_params = {}
10519
+
10520
+ body = None
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'])
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_click_house_lts_config_async(self, request):
10543
+ """批量解除LTS日志配置
10544
+
10545
+ 批量解除LTS日志配置。
10546
+
10547
+ Please refer to HUAWEI cloud API Explorer for details.
10548
+
10549
+
10550
+ :param request: Request instance for DeleteClickHouseLtsConfig
10551
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseLtsConfigRequest`
10552
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteClickHouseLtsConfigResponse`
10553
+ """
10554
+ http_info = self._delete_click_house_lts_config_http_info(request)
10555
+ return self._call_api(**http_info)
10556
+
10557
+ def delete_click_house_lts_config_async_invoker(self, request):
10558
+ http_info = self._delete_click_house_lts_config_http_info(request)
10559
+ return AsyncInvoker(self, http_info)
10560
+
10561
+ def _delete_click_house_lts_config_http_info(self, request):
10562
+ http_info = {
10563
+ "method": "DELETE",
10564
+ "resource_path": "/v3/{project_id}/clickhouse/instances/logs/lts-configs",
10565
+ "request_type": request.__class__.__name__,
10566
+ "response_type": "DeleteClickHouseLtsConfigResponse"
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
+
10577
+ query_params = []
10578
+
10579
+ header_params = {}
10580
+ if 'x_language' in local_var_params:
10581
+ header_params['X-Language'] = local_var_params['x_language']
10582
+
10583
+ form_params = {}
10584
+
10585
+ body = None
10586
+ if 'body' in local_var_params:
10587
+ body = local_var_params['body']
10588
+ if isinstance(request, SdkStreamRequest):
10589
+ body = request.get_file_stream()
10590
+
10591
+ response_headers = []
10592
+
10593
+ header_params['Content-Type'] = http_utils.select_header_content_type(
10594
+ ['application/json;charset=UTF-8'])
10595
+
10596
+ auth_settings = []
10597
+
10598
+ http_info["cname"] = cname
10599
+ http_info["collection_formats"] = collection_formats
10600
+ http_info["path_params"] = path_params
10601
+ http_info["query_params"] = query_params
10602
+ http_info["header_params"] = header_params
10603
+ http_info["post_params"] = form_params
10604
+ http_info["body"] = body
10605
+ http_info["response_headers"] = response_headers
10606
+
10607
+ return http_info
10608
+
10609
+ def delete_star_rocks_data_replication_async(self, request):
10610
+ """删除StarRocks数据同步
10611
+
10612
+ 删除StarRocks数据同步。
10613
+
10614
+ Please refer to HUAWEI cloud API Explorer for details.
10615
+
10616
+
10617
+ :param request: Request instance for DeleteStarRocksDataReplication
10618
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplicationRequest`
10619
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplicationResponse`
10620
+ """
10621
+ http_info = self._delete_star_rocks_data_replication_http_info(request)
10622
+ return self._call_api(**http_info)
10623
+
10624
+ def delete_star_rocks_data_replication_async_invoker(self, request):
10625
+ http_info = self._delete_star_rocks_data_replication_http_info(request)
10626
+ return AsyncInvoker(self, http_info)
10627
+
10628
+ def _delete_star_rocks_data_replication_http_info(self, request):
10629
+ http_info = {
10630
+ "method": "DELETE",
10631
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
10632
+ "request_type": request.__class__.__name__,
10633
+ "response_type": "DeleteStarRocksDataReplicationResponse"
10634
+ }
10635
+
10636
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
10637
+
10638
+ cname = None
10639
+
10640
+ collection_formats = {}
10641
+
10642
+ path_params = {}
10643
+ if 'instance_id' in local_var_params:
10644
+ path_params['instance_id'] = local_var_params['instance_id']
10645
+
10646
+ query_params = []
10647
+
10648
+ header_params = {}
10649
+ if 'x_language' in local_var_params:
10650
+ header_params['X-Language'] = local_var_params['x_language']
10651
+
10652
+ form_params = {}
10653
+
10654
+ body = None
10655
+ if 'body' in local_var_params:
10656
+ body = local_var_params['body']
10657
+ if isinstance(request, SdkStreamRequest):
10658
+ body = request.get_file_stream()
10659
+
10660
+ response_headers = []
10661
+
10662
+ header_params['Content-Type'] = http_utils.select_header_content_type(
10663
+ ['application/json;charset=UTF-8'])
10664
+
10665
+ auth_settings = []
10666
+
10667
+ http_info["cname"] = cname
10668
+ http_info["collection_formats"] = collection_formats
10669
+ http_info["path_params"] = path_params
10670
+ http_info["query_params"] = query_params
10671
+ http_info["header_params"] = header_params
10672
+ http_info["post_params"] = form_params
10673
+ http_info["body"] = body
10674
+ http_info["response_headers"] = response_headers
10675
+
10676
+ return http_info
10677
+
10678
+ def delete_star_rocks_database_user_async(self, request):
10679
+ """删除数据库账户
10680
+
10681
+ 删除StarRocks数据库账户。
10682
+
10683
+ Please refer to HUAWEI cloud API Explorer for details.
10684
+
10685
+
10686
+ :param request: Request instance for DeleteStarRocksDatabaseUser
10687
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDatabaseUserRequest`
10688
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDatabaseUserResponse`
10689
+ """
10690
+ http_info = self._delete_star_rocks_database_user_http_info(request)
10691
+ return self._call_api(**http_info)
10692
+
10693
+ def delete_star_rocks_database_user_async_invoker(self, request):
10694
+ http_info = self._delete_star_rocks_database_user_http_info(request)
10695
+ return AsyncInvoker(self, http_info)
10696
+
10697
+ def _delete_star_rocks_database_user_http_info(self, request):
10698
+ http_info = {
10699
+ "method": "DELETE",
10700
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
10701
+ "request_type": request.__class__.__name__,
10702
+ "response_type": "DeleteStarRocksDatabaseUserResponse"
10703
+ }
10704
+
10705
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
10706
+
10707
+ cname = None
10708
+
10709
+ collection_formats = {}
10710
+
10711
+ path_params = {}
10712
+ if 'instance_id' in local_var_params:
10713
+ path_params['instance_id'] = local_var_params['instance_id']
10714
+
10715
+ query_params = []
10716
+ if 'user_name' in local_var_params:
10717
+ query_params.append(('user_name', local_var_params['user_name']))
10718
+
10719
+ header_params = {}
10720
+ if 'x_language' in local_var_params:
10721
+ header_params['X-Language'] = local_var_params['x_language']
10722
+
10723
+ form_params = {}
10724
+
10725
+ body = None
10726
+ if isinstance(request, SdkStreamRequest):
10727
+ body = request.get_file_stream()
10728
+
10729
+ response_headers = []
10730
+
10731
+ header_params['Content-Type'] = http_utils.select_header_content_type(
10732
+ ['application/json'])
10733
+
10734
+ auth_settings = []
10735
+
10736
+ http_info["cname"] = cname
10737
+ http_info["collection_formats"] = collection_formats
10738
+ http_info["path_params"] = path_params
10739
+ http_info["query_params"] = query_params
10740
+ http_info["header_params"] = header_params
10741
+ http_info["post_params"] = form_params
10742
+ http_info["body"] = body
10743
+ http_info["response_headers"] = response_headers
10744
+
10745
+ return http_info
10746
+
10747
+ def delete_starrocks_instance_async(self, request):
10748
+ """删除StarRocks实例
10749
+
10750
+ 删除StarRocks实例。
10751
+
10752
+ Please refer to HUAWEI cloud API Explorer for details.
10753
+
10754
+
10755
+ :param request: Request instance for DeleteStarrocksInstance
10756
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarrocksInstanceRequest`
10757
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarrocksInstanceResponse`
10758
+ """
10759
+ http_info = self._delete_starrocks_instance_http_info(request)
10760
+ return self._call_api(**http_info)
10761
+
10762
+ def delete_starrocks_instance_async_invoker(self, request):
10763
+ http_info = self._delete_starrocks_instance_http_info(request)
10764
+ return AsyncInvoker(self, http_info)
10765
+
10766
+ def _delete_starrocks_instance_http_info(self, request):
10767
+ http_info = {
10768
+ "method": "DELETE",
10769
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}",
10770
+ "request_type": request.__class__.__name__,
10771
+ "response_type": "DeleteStarrocksInstanceResponse"
10772
+ }
10773
+
10774
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
10775
+
10776
+ cname = None
10777
+
10778
+ collection_formats = {}
10779
+
10780
+ path_params = {}
10781
+ if 'instance_id' in local_var_params:
10782
+ path_params['instance_id'] = local_var_params['instance_id']
10783
+ if 'starrocks_instance_id' in local_var_params:
10784
+ path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
10785
+
10786
+ query_params = []
10787
+
10788
+ header_params = {}
10789
+ if 'x_language' in local_var_params:
10790
+ header_params['X-Language'] = local_var_params['x_language']
10791
+
10792
+ form_params = {}
10793
+
10794
+ body = None
10795
+ if isinstance(request, SdkStreamRequest):
10796
+ body = request.get_file_stream()
10797
+
10798
+ response_headers = []
10799
+
10800
+ header_params['Content-Type'] = http_utils.select_header_content_type(
10801
+ ['application/json'])
10802
+
10803
+ auth_settings = []
10804
+
10805
+ http_info["cname"] = cname
10806
+ http_info["collection_formats"] = collection_formats
10807
+ http_info["path_params"] = path_params
10808
+ http_info["query_params"] = query_params
10809
+ http_info["header_params"] = header_params
10810
+ http_info["post_params"] = form_params
10811
+ http_info["body"] = body
10812
+ http_info["response_headers"] = response_headers
10813
+
10814
+ return http_info
10815
+
10816
+ def list_click_house_data_base_async(self, request):
10817
+ """查询数据库列表
10818
+
10819
+ 查询数据库列表。
10820
+
10821
+ Please refer to HUAWEI cloud API Explorer for details.
10822
+
10823
+
10824
+ :param request: Request instance for ListClickHouseDataBase
10825
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseRequest`
10826
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseResponse`
10827
+ """
10828
+ http_info = self._list_click_house_data_base_http_info(request)
10829
+ return self._call_api(**http_info)
10830
+
10831
+ def list_click_house_data_base_async_invoker(self, request):
10832
+ http_info = self._list_click_house_data_base_http_info(request)
10833
+ return AsyncInvoker(self, http_info)
10834
+
10835
+ def _list_click_house_data_base_http_info(self, request):
10836
+ http_info = {
10837
+ "method": "GET",
10838
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/databases",
10839
+ "request_type": request.__class__.__name__,
10840
+ "response_type": "ListClickHouseDataBaseResponse"
10841
+ }
10842
+
10843
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
10844
+
10845
+ cname = None
10846
+
10847
+ collection_formats = {}
10848
+
10849
+ path_params = {}
10850
+ if 'instance_id' in local_var_params:
10851
+ path_params['instance_id'] = local_var_params['instance_id']
10852
+
10853
+ query_params = []
10854
+ if 'limit' in local_var_params:
10855
+ query_params.append(('limit', local_var_params['limit']))
10856
+ if 'offset' in local_var_params:
10857
+ query_params.append(('offset', local_var_params['offset']))
10858
+ if 'database_name' in local_var_params:
10859
+ query_params.append(('database_name', local_var_params['database_name']))
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_parameter_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 ListClickHouseDataBaseParameter
10898
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseParameterRequest`
10899
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseParameterResponse`
10900
+ """
10901
+ http_info = self._list_click_house_data_base_parameter_http_info(request)
10902
+ return self._call_api(**http_info)
10903
+
10904
+ def list_click_house_data_base_parameter_async_invoker(self, request):
10905
+ http_info = self._list_click_house_data_base_parameter_http_info(request)
10906
+ return AsyncInvoker(self, http_info)
10907
+
10908
+ def _list_click_house_data_base_parameter_http_info(self, request):
10909
+ http_info = {
10910
+ "method": "GET",
10911
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/database-parameter",
10912
+ "request_type": request.__class__.__name__,
10913
+ "response_type": "ListClickHouseDataBaseParameterResponse"
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
+
10928
+ header_params = {}
10929
+ if 'x_language' in local_var_params:
10930
+ header_params['X-Language'] = local_var_params['x_language']
10931
+
10932
+ form_params = {}
10933
+
10934
+ body = None
10935
+ if isinstance(request, SdkStreamRequest):
10936
+ body = request.get_file_stream()
10937
+
10938
+ response_headers = []
10939
+
10940
+ header_params['Content-Type'] = http_utils.select_header_content_type(
10941
+ ['application/json'])
10942
+
10943
+ auth_settings = []
10944
+
10945
+ http_info["cname"] = cname
10946
+ http_info["collection_formats"] = collection_formats
10947
+ http_info["path_params"] = path_params
10948
+ http_info["query_params"] = query_params
10949
+ http_info["header_params"] = header_params
10950
+ http_info["post_params"] = form_params
10951
+ http_info["body"] = body
10952
+ http_info["response_headers"] = response_headers
10953
+
10954
+ return http_info
10955
+
10956
+ def list_click_house_data_base_replication_async(self, request):
10957
+ """查询数据同步信息
10958
+
10959
+ 查询数据同步信息。
10960
+
10961
+ Please refer to HUAWEI cloud API Explorer for details.
10962
+
10963
+
10964
+ :param request: Request instance for ListClickHouseDataBaseReplication
10965
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseReplicationRequest`
10966
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseReplicationResponse`
10967
+ """
10968
+ http_info = self._list_click_house_data_base_replication_http_info(request)
10969
+ return self._call_api(**http_info)
10970
+
10971
+ def list_click_house_data_base_replication_async_invoker(self, request):
10972
+ http_info = self._list_click_house_data_base_replication_http_info(request)
10973
+ return AsyncInvoker(self, http_info)
10974
+
10975
+ def _list_click_house_data_base_replication_http_info(self, request):
10976
+ http_info = {
10977
+ "method": "GET",
10978
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication",
10979
+ "request_type": request.__class__.__name__,
10980
+ "response_type": "ListClickHouseDataBaseReplicationResponse"
10981
+ }
10982
+
10983
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
10984
+
10985
+ cname = None
10986
+
10987
+ collection_formats = {}
10988
+
10989
+ path_params = {}
10990
+ if 'instance_id' in local_var_params:
10991
+ path_params['instance_id'] = local_var_params['instance_id']
10992
+
10993
+ query_params = []
10994
+ if 'limit' in local_var_params:
10995
+ query_params.append(('limit', local_var_params['limit']))
10996
+ if 'offset' in local_var_params:
10997
+ query_params.append(('offset', local_var_params['offset']))
10998
+
10999
+ header_params = {}
11000
+ if 'x_language' in local_var_params:
11001
+ header_params['X-Language'] = local_var_params['x_language']
11002
+
11003
+ form_params = {}
11004
+
11005
+ body = None
11006
+ if isinstance(request, SdkStreamRequest):
11007
+ body = request.get_file_stream()
11008
+
11009
+ response_headers = []
11010
+
11011
+ header_params['Content-Type'] = http_utils.select_header_content_type(
11012
+ ['application/json'])
11013
+
11014
+ auth_settings = []
11015
+
11016
+ http_info["cname"] = cname
11017
+ http_info["collection_formats"] = collection_formats
11018
+ http_info["path_params"] = path_params
11019
+ http_info["query_params"] = query_params
11020
+ http_info["header_params"] = header_params
11021
+ http_info["post_params"] = form_params
11022
+ http_info["body"] = body
11023
+ http_info["response_headers"] = response_headers
11024
+
11025
+ return http_info
11026
+
11027
+ def list_click_house_data_base_replication_config_async(self, request):
11028
+ """查看数据同步配置
11029
+
11030
+ 查看数据同步配置。
11031
+
11032
+ Please refer to HUAWEI cloud API Explorer for details.
11033
+
11034
+
11035
+ :param request: Request instance for ListClickHouseDataBaseReplicationConfig
11036
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseReplicationConfigRequest`
11037
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseDataBaseReplicationConfigResponse`
11038
+ """
11039
+ http_info = self._list_click_house_data_base_replication_config_http_info(request)
11040
+ return self._call_api(**http_info)
11041
+
11042
+ def list_click_house_data_base_replication_config_async_invoker(self, request):
11043
+ http_info = self._list_click_house_data_base_replication_config_http_info(request)
11044
+ return AsyncInvoker(self, http_info)
11045
+
11046
+ def _list_click_house_data_base_replication_config_http_info(self, request):
11047
+ http_info = {
11048
+ "method": "GET",
11049
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/replication/config",
11050
+ "request_type": request.__class__.__name__,
11051
+ "response_type": "ListClickHouseDataBaseReplicationConfigResponse"
11052
+ }
11053
+
11054
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
11055
+
11056
+ cname = None
11057
+
11058
+ collection_formats = {}
11059
+
11060
+ path_params = {}
11061
+ if 'instance_id' in local_var_params:
11062
+ path_params['instance_id'] = local_var_params['instance_id']
11063
+
11064
+ query_params = []
11065
+ if 'database_name' in local_var_params:
11066
+ query_params.append(('database_name', local_var_params['database_name']))
11067
+
11068
+ header_params = {}
11069
+ if 'x_language' in local_var_params:
11070
+ header_params['X-Language'] = local_var_params['x_language']
11071
+
11072
+ form_params = {}
11073
+
11074
+ body = None
11075
+ if isinstance(request, SdkStreamRequest):
11076
+ body = request.get_file_stream()
11077
+
11078
+ response_headers = []
11079
+
11080
+ header_params['Content-Type'] = http_utils.select_header_content_type(
11081
+ ['application/json'])
11082
+
11083
+ auth_settings = []
11084
+
11085
+ http_info["cname"] = cname
11086
+ http_info["collection_formats"] = collection_formats
11087
+ http_info["path_params"] = path_params
11088
+ http_info["query_params"] = query_params
11089
+ http_info["header_params"] = header_params
11090
+ http_info["post_params"] = form_params
11091
+ http_info["body"] = body
11092
+ http_info["response_headers"] = response_headers
11093
+
11094
+ return http_info
11095
+
11096
+ def list_click_house_instance_async(self, request):
11097
+ """查询实例详情
11098
+
11099
+ 查询实例详情。
11100
+
11101
+ Please refer to HUAWEI cloud API Explorer for details.
11102
+
11103
+
11104
+ :param request: Request instance for ListClickHouseInstance
11105
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseInstanceRequest`
11106
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseInstanceResponse`
11107
+ """
11108
+ http_info = self._list_click_house_instance_http_info(request)
11109
+ return self._call_api(**http_info)
11110
+
11111
+ def list_click_house_instance_async_invoker(self, request):
11112
+ http_info = self._list_click_house_instance_http_info(request)
11113
+ return AsyncInvoker(self, http_info)
11114
+
11115
+ def _list_click_house_instance_http_info(self, request):
11116
+ http_info = {
11117
+ "method": "GET",
11118
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/{clickhouse_instance_id}",
11119
+ "request_type": request.__class__.__name__,
11120
+ "response_type": "ListClickHouseInstanceResponse"
11121
+ }
11122
+
11123
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
11124
+
11125
+ cname = None
11126
+
11127
+ collection_formats = {}
11128
+
11129
+ path_params = {}
11130
+ if 'instance_id' in local_var_params:
11131
+ path_params['instance_id'] = local_var_params['instance_id']
11132
+ if 'clickhouse_instance_id' in local_var_params:
11133
+ path_params['clickhouse_instance_id'] = local_var_params['clickhouse_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_click_house_instance_node_async(self, request):
11166
+ """查询错误日志、慢日志节点信息
11167
+
11168
+ 查询错误日志、慢日志节点信息。
11169
+
11170
+ Please refer to HUAWEI cloud API Explorer for details.
11171
+
11172
+
11173
+ :param request: Request instance for ListClickHouseInstanceNode
11174
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseInstanceNodeRequest`
11175
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListClickHouseInstanceNodeResponse`
11176
+ """
11177
+ http_info = self._list_click_house_instance_node_http_info(request)
11178
+ return self._call_api(**http_info)
11179
+
11180
+ def list_click_house_instance_node_async_invoker(self, request):
11181
+ http_info = self._list_click_house_instance_node_http_info(request)
11182
+ return AsyncInvoker(self, http_info)
11183
+
11184
+ def _list_click_house_instance_node_http_info(self, request):
11185
+ http_info = {
11186
+ "method": "GET",
11187
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/nodes",
11188
+ "request_type": request.__class__.__name__,
11189
+ "response_type": "ListClickHouseInstanceNodeResponse"
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 'instance_id' in local_var_params:
11200
+ path_params['instance_id'] = local_var_params['instance_id']
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_data_store_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 ListHtapDataStore
11241
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapDataStoreRequest`
11242
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapDataStoreResponse`
11243
+ """
11244
+ http_info = self._list_htap_data_store_http_info(request)
11245
+ return self._call_api(**http_info)
11246
+
11247
+ def list_htap_data_store_async_invoker(self, request):
11248
+ http_info = self._list_htap_data_store_http_info(request)
11249
+ return AsyncInvoker(self, http_info)
11250
+
11251
+ def _list_htap_data_store_http_info(self, request):
11252
+ http_info = {
11253
+ "method": "GET",
11254
+ "resource_path": "/v3/{project_id}/htap/datastores/{engine_name}",
11255
+ "request_type": request.__class__.__name__,
11256
+ "response_type": "ListHtapDataStoreResponse"
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
+
11271
+ header_params = {}
11272
+ if 'x_language' in local_var_params:
11273
+ header_params['X-Language'] = local_var_params['x_language']
11274
+
11275
+ form_params = {}
11276
+
11277
+ body = None
11278
+ if isinstance(request, SdkStreamRequest):
11279
+ body = request.get_file_stream()
11280
+
11281
+ response_headers = []
11282
+
11283
+ header_params['Content-Type'] = http_utils.select_header_content_type(
11284
+ ['application/json'])
11285
+
11286
+ auth_settings = []
11287
+
11288
+ http_info["cname"] = cname
11289
+ http_info["collection_formats"] = collection_formats
11290
+ http_info["path_params"] = path_params
11291
+ http_info["query_params"] = query_params
11292
+ http_info["header_params"] = header_params
11293
+ http_info["post_params"] = form_params
11294
+ http_info["body"] = body
11295
+ http_info["response_headers"] = response_headers
11296
+
11297
+ return http_info
11298
+
11299
+ def list_htap_flavor_async(self, request):
11300
+ """HTAP查询规格信息
11301
+
11302
+ HTAP查询规格信息。
11303
+
11304
+ Please refer to HUAWEI cloud API Explorer for details.
11305
+
11306
+
11307
+ :param request: Request instance for ListHtapFlavor
11308
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapFlavorRequest`
11309
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapFlavorResponse`
11310
+ """
11311
+ http_info = self._list_htap_flavor_http_info(request)
11312
+ return self._call_api(**http_info)
11313
+
11314
+ def list_htap_flavor_async_invoker(self, request):
11315
+ http_info = self._list_htap_flavor_http_info(request)
11316
+ return AsyncInvoker(self, http_info)
11317
+
11318
+ def _list_htap_flavor_http_info(self, request):
11319
+ http_info = {
11320
+ "method": "GET",
11321
+ "resource_path": "/v3/{project_id}/htap/flavors/{engine_name}",
11322
+ "request_type": request.__class__.__name__,
11323
+ "response_type": "ListHtapFlavorResponse"
11324
+ }
11325
+
11326
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
11327
+
11328
+ cname = None
11329
+
11330
+ collection_formats = {}
11331
+
11332
+ path_params = {}
11333
+ if 'engine_name' in local_var_params:
11334
+ path_params['engine_name'] = local_var_params['engine_name']
11335
+
11336
+ query_params = []
11337
+ if 'availability_zone_mode' in local_var_params:
11338
+ query_params.append(('availability_zone_mode', local_var_params['availability_zone_mode']))
11339
+ if 'spec_code' in local_var_params:
11340
+ query_params.append(('spec_code', local_var_params['spec_code']))
11341
+ if 'version_name' in local_var_params:
11342
+ query_params.append(('version_name', local_var_params['version_name']))
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_instance_info_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 ListHtapInstanceInfo
11381
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapInstanceInfoRequest`
11382
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapInstanceInfoResponse`
11383
+ """
11384
+ http_info = self._list_htap_instance_info_http_info(request)
11385
+ return self._call_api(**http_info)
11386
+
11387
+ def list_htap_instance_info_async_invoker(self, request):
11388
+ http_info = self._list_htap_instance_info_http_info(request)
11389
+ return AsyncInvoker(self, http_info)
11390
+
11391
+ def _list_htap_instance_info_http_info(self, request):
11392
+ http_info = {
11393
+ "method": "GET",
11394
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/htap",
11395
+ "request_type": request.__class__.__name__,
11396
+ "response_type": "ListHtapInstanceInfoResponse"
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 'instance_id' in local_var_params:
11407
+ path_params['instance_id'] = local_var_params['instance_id']
11408
+
11409
+ query_params = []
11410
+
11411
+ header_params = {}
11412
+ if 'x_language' in local_var_params:
11413
+ header_params['X-Language'] = local_var_params['x_language']
11414
+
11415
+ form_params = {}
11416
+
11417
+ body = None
11418
+ if isinstance(request, SdkStreamRequest):
11419
+ body = request.get_file_stream()
11420
+
11421
+ response_headers = []
11422
+
11423
+ header_params['Content-Type'] = http_utils.select_header_content_type(
11424
+ ['application/json'])
11425
+
11426
+ auth_settings = []
11427
+
11428
+ http_info["cname"] = cname
11429
+ http_info["collection_formats"] = collection_formats
11430
+ http_info["path_params"] = path_params
11431
+ http_info["query_params"] = query_params
11432
+ http_info["header_params"] = header_params
11433
+ http_info["post_params"] = form_params
11434
+ http_info["body"] = body
11435
+ http_info["response_headers"] = response_headers
11436
+
11437
+ return http_info
11438
+
11439
+ def list_htap_storage_type_async(self, request):
11440
+ """获取HTAP实例存储类型
11441
+
11442
+ 获取HTAP实例存储类型。
11443
+
11444
+ Please refer to HUAWEI cloud API Explorer for details.
11445
+
11446
+
11447
+ :param request: Request instance for ListHtapStorageType
11448
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapStorageTypeRequest`
11449
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapStorageTypeResponse`
11450
+ """
11451
+ http_info = self._list_htap_storage_type_http_info(request)
11452
+ return self._call_api(**http_info)
11453
+
11454
+ def list_htap_storage_type_async_invoker(self, request):
11455
+ http_info = self._list_htap_storage_type_http_info(request)
11456
+ return AsyncInvoker(self, http_info)
11457
+
11458
+ def _list_htap_storage_type_http_info(self, request):
11459
+ http_info = {
11460
+ "method": "GET",
11461
+ "resource_path": "/v3/{project_id}/htap/storage-type/{database}",
11462
+ "request_type": request.__class__.__name__,
11463
+ "response_type": "ListHtapStorageTypeResponse"
11464
+ }
11465
+
11466
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
11467
+
11468
+ cname = None
11469
+
11470
+ collection_formats = {}
11471
+
11472
+ path_params = {}
11473
+ if 'database' in local_var_params:
11474
+ path_params['database'] = local_var_params['database']
11475
+
11476
+ query_params = []
11477
+ if 'version_name' in local_var_params:
11478
+ query_params.append(('version_name', local_var_params['version_name']))
11479
+
11480
+ header_params = {}
11481
+ if 'x_language' in local_var_params:
11482
+ header_params['X-Language'] = local_var_params['x_language']
11483
+
11484
+ form_params = {}
11485
+
11486
+ body = None
11487
+ if isinstance(request, SdkStreamRequest):
11488
+ body = request.get_file_stream()
11489
+
11490
+ response_headers = []
11491
+
11492
+ header_params['Content-Type'] = http_utils.select_header_content_type(
11493
+ ['application/json'])
11494
+
11495
+ auth_settings = []
11496
+
11497
+ http_info["cname"] = cname
11498
+ http_info["collection_formats"] = collection_formats
11499
+ http_info["path_params"] = path_params
11500
+ http_info["query_params"] = query_params
11501
+ http_info["header_params"] = header_params
11502
+ http_info["post_params"] = form_params
11503
+ http_info["body"] = body
11504
+ http_info["response_headers"] = response_headers
11505
+
11506
+ return http_info
11507
+
11508
+ def list_star_rocks_data_bases_async(self, request):
11509
+ """查询StarRocks数据库
11510
+
11511
+ 查询StarRocks数据库。
11512
+
11513
+ Please refer to HUAWEI cloud API Explorer for details.
11514
+
11515
+
11516
+ :param request: Request instance for ListStarRocksDataBases
11517
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesRequest`
11518
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesResponse`
11519
+ """
11520
+ http_info = self._list_star_rocks_data_bases_http_info(request)
11521
+ return self._call_api(**http_info)
11522
+
11523
+ def list_star_rocks_data_bases_async_invoker(self, request):
11524
+ http_info = self._list_star_rocks_data_bases_http_info(request)
11525
+ return AsyncInvoker(self, http_info)
11526
+
11527
+ def _list_star_rocks_data_bases_http_info(self, request):
11528
+ http_info = {
11529
+ "method": "GET",
11530
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases",
11531
+ "request_type": request.__class__.__name__,
11532
+ "response_type": "ListStarRocksDataBasesResponse"
11533
+ }
11534
+
11535
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
11536
+
11537
+ cname = None
11538
+
11539
+ collection_formats = {}
11540
+
11541
+ path_params = {}
11542
+ if 'instance_id' in local_var_params:
11543
+ path_params['instance_id'] = local_var_params['instance_id']
11544
+
11545
+ query_params = []
11546
+ if 'limit' in local_var_params:
11547
+ query_params.append(('limit', local_var_params['limit']))
11548
+ if 'offset' in local_var_params:
11549
+ query_params.append(('offset', local_var_params['offset']))
11550
+ if 'database_name' in local_var_params:
11551
+ query_params.append(('database_name', local_var_params['database_name']))
11552
+
11553
+ header_params = {}
11554
+ if 'x_language' in local_var_params:
11555
+ header_params['X-Language'] = local_var_params['x_language']
11556
+
11557
+ form_params = {}
11558
+
11559
+ body = None
11560
+ if isinstance(request, SdkStreamRequest):
11561
+ body = request.get_file_stream()
11562
+
11563
+ response_headers = []
11564
+
11565
+ header_params['Content-Type'] = http_utils.select_header_content_type(
11566
+ ['application/json'])
11567
+
11568
+ auth_settings = []
11569
+
11570
+ http_info["cname"] = cname
11571
+ http_info["collection_formats"] = collection_formats
11572
+ http_info["path_params"] = path_params
11573
+ http_info["query_params"] = query_params
11574
+ http_info["header_params"] = header_params
11575
+ http_info["post_params"] = form_params
11576
+ http_info["body"] = body
11577
+ http_info["response_headers"] = response_headers
11578
+
11579
+ return http_info
11580
+
11581
+ def list_star_rocks_data_replication_config_async(self, request):
11582
+ """查询StarRocks数据同步配置信息
11583
+
11584
+ 查询StarRocks数据同步配置信息。
11585
+
11586
+ Please refer to HUAWEI cloud API Explorer for details.
11587
+
11588
+
11589
+ :param request: Request instance for ListStarRocksDataReplicationConfig
11590
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigRequest`
11591
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigResponse`
11592
+ """
11593
+ http_info = self._list_star_rocks_data_replication_config_http_info(request)
11594
+ return self._call_api(**http_info)
11595
+
11596
+ def list_star_rocks_data_replication_config_async_invoker(self, request):
11597
+ http_info = self._list_star_rocks_data_replication_config_http_info(request)
11598
+ return AsyncInvoker(self, http_info)
11599
+
11600
+ def _list_star_rocks_data_replication_config_http_info(self, request):
11601
+ http_info = {
11602
+ "method": "GET",
11603
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/configuration",
11604
+ "request_type": request.__class__.__name__,
11605
+ "response_type": "ListStarRocksDataReplicationConfigResponse"
11606
+ }
11607
+
11608
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
11609
+
11610
+ cname = None
11611
+
11612
+ collection_formats = {}
11613
+
11614
+ path_params = {}
11615
+ if 'instance_id' in local_var_params:
11616
+ path_params['instance_id'] = local_var_params['instance_id']
11617
+
11618
+ query_params = []
11619
+ if 'task_name' in local_var_params:
11620
+ query_params.append(('task_name', local_var_params['task_name']))
11621
+
11622
+ header_params = {}
11623
+ if 'x_language' in local_var_params:
11624
+ header_params['X-Language'] = local_var_params['x_language']
11625
+
11626
+ form_params = {}
11627
+
11628
+ body = None
11629
+ if isinstance(request, SdkStreamRequest):
11630
+ body = request.get_file_stream()
11631
+
11632
+ response_headers = []
11633
+
11634
+ header_params['Content-Type'] = http_utils.select_header_content_type(
11635
+ ['application/json'])
11636
+
11637
+ auth_settings = []
11638
+
11639
+ http_info["cname"] = cname
11640
+ http_info["collection_formats"] = collection_formats
11641
+ http_info["path_params"] = path_params
11642
+ http_info["query_params"] = query_params
11643
+ http_info["header_params"] = header_params
11644
+ http_info["post_params"] = form_params
11645
+ http_info["body"] = body
11646
+ http_info["response_headers"] = response_headers
11647
+
11648
+ return http_info
11649
+
11650
+ def list_star_rocks_data_replications_async(self, request):
11651
+ """查询StarRocks数据同步状态信息
11652
+
11653
+ 查询StarRocks数据同步状态信息。
11654
+
11655
+ Please refer to HUAWEI cloud API Explorer for details.
11656
+
11657
+
11658
+ :param request: Request instance for ListStarRocksDataReplications
11659
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsRequest`
11660
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsResponse`
11661
+ """
11662
+ http_info = self._list_star_rocks_data_replications_http_info(request)
11663
+ return self._call_api(**http_info)
11664
+
11665
+ def list_star_rocks_data_replications_async_invoker(self, request):
11666
+ http_info = self._list_star_rocks_data_replications_http_info(request)
11667
+ return AsyncInvoker(self, http_info)
11668
+
11669
+ def _list_star_rocks_data_replications_http_info(self, request):
11670
+ http_info = {
11671
+ "method": "GET",
11672
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
11673
+ "request_type": request.__class__.__name__,
11674
+ "response_type": "ListStarRocksDataReplicationsResponse"
11675
+ }
11676
+
11677
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
11678
+
11679
+ cname = None
11680
+
11681
+ collection_formats = {}
11682
+
11683
+ path_params = {}
11684
+ if 'instance_id' in local_var_params:
11685
+ path_params['instance_id'] = local_var_params['instance_id']
11686
+
11687
+ query_params = []
11688
+ if 'limit' in local_var_params:
11689
+ query_params.append(('limit', local_var_params['limit']))
11690
+ if 'offset' in local_var_params:
11691
+ query_params.append(('offset', local_var_params['offset']))
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_star_rocks_db_parameters_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 ListStarRocksDbParameters
11730
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersRequest`
11731
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersResponse`
11732
+ """
11733
+ http_info = self._list_star_rocks_db_parameters_http_info(request)
11734
+ return self._call_api(**http_info)
11735
+
11736
+ def list_star_rocks_db_parameters_async_invoker(self, request):
11737
+ http_info = self._list_star_rocks_db_parameters_http_info(request)
11738
+ return AsyncInvoker(self, http_info)
11739
+
11740
+ def _list_star_rocks_db_parameters_http_info(self, request):
11741
+ http_info = {
11742
+ "method": "GET",
11743
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-parameters",
11744
+ "request_type": request.__class__.__name__,
11745
+ "response_type": "ListStarRocksDbParametersResponse"
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
+
11758
+ query_params = []
11759
+
11760
+ header_params = {}
11761
+ if 'x_language' in local_var_params:
11762
+ header_params['X-Language'] = local_var_params['x_language']
11763
+
11764
+ form_params = {}
11765
+
11766
+ body = None
11767
+ if isinstance(request, SdkStreamRequest):
11768
+ body = request.get_file_stream()
11769
+
11770
+ response_headers = []
11771
+
11772
+ header_params['Content-Type'] = http_utils.select_header_content_type(
11773
+ ['application/json'])
11774
+
11775
+ auth_settings = []
11776
+
11777
+ http_info["cname"] = cname
11778
+ http_info["collection_formats"] = collection_formats
11779
+ http_info["path_params"] = path_params
11780
+ http_info["query_params"] = query_params
11781
+ http_info["header_params"] = header_params
11782
+ http_info["post_params"] = form_params
11783
+ http_info["body"] = body
11784
+ http_info["response_headers"] = response_headers
11785
+
11786
+ return http_info
11787
+
11788
+ def list_starrocks_instance_info_async(self, request):
11789
+ """查询StarRocks实例
11790
+
11791
+ 查询StarRocks实例。
11792
+
11793
+ Please refer to HUAWEI cloud API Explorer for details.
11794
+
11795
+
11796
+ :param request: Request instance for ListStarrocksInstanceInfo
11797
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarrocksInstanceInfoRequest`
11798
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarrocksInstanceInfoResponse`
11799
+ """
11800
+ http_info = self._list_starrocks_instance_info_http_info(request)
11801
+ return self._call_api(**http_info)
11802
+
11803
+ def list_starrocks_instance_info_async_invoker(self, request):
11804
+ http_info = self._list_starrocks_instance_info_http_info(request)
11805
+ return AsyncInvoker(self, http_info)
11806
+
11807
+ def _list_starrocks_instance_info_http_info(self, request):
11808
+ http_info = {
11809
+ "method": "GET",
11810
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}",
11811
+ "request_type": request.__class__.__name__,
11812
+ "response_type": "ListStarrocksInstanceInfoResponse"
11813
+ }
11814
+
11815
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
11816
+
11817
+ cname = None
11818
+
11819
+ collection_formats = {}
11820
+
11821
+ path_params = {}
11822
+ if 'instance_id' in local_var_params:
11823
+ path_params['instance_id'] = local_var_params['instance_id']
11824
+ if 'starrocks_instance_id' in local_var_params:
11825
+ path_params['starrocks_instance_id'] = local_var_params['starrocks_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 isinstance(request, SdkStreamRequest):
11837
+ body = request.get_file_stream()
11838
+
11839
+ response_headers = []
11840
+
11841
+ header_params['Content-Type'] = http_utils.select_header_content_type(
11842
+ ['application/json'])
11843
+
11844
+ auth_settings = []
11845
+
11846
+ http_info["cname"] = cname
11847
+ http_info["collection_formats"] = collection_formats
11848
+ http_info["path_params"] = path_params
11849
+ http_info["query_params"] = query_params
11850
+ http_info["header_params"] = header_params
11851
+ http_info["post_params"] = form_params
11852
+ http_info["body"] = body
11853
+ http_info["response_headers"] = response_headers
11854
+
11855
+ return http_info
11856
+
11857
+ def pause_star_rocks_data_replication_async(self, request):
11858
+ """暂停StarRocks数据同步
11859
+
11860
+ 暂停StarRocks数据同步。
11861
+
11862
+ Please refer to HUAWEI cloud API Explorer for details.
11863
+
11864
+
11865
+ :param request: Request instance for PauseStarRocksDataReplication
11866
+ :type request: :class:`huaweicloudsdkgaussdb.v3.PauseStarRocksDataReplicationRequest`
11867
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.PauseStarRocksDataReplicationResponse`
11868
+ """
11869
+ http_info = self._pause_star_rocks_data_replication_http_info(request)
11870
+ return self._call_api(**http_info)
11871
+
11872
+ def pause_star_rocks_data_replication_async_invoker(self, request):
11873
+ http_info = self._pause_star_rocks_data_replication_http_info(request)
11874
+ return AsyncInvoker(self, http_info)
11875
+
11876
+ def _pause_star_rocks_data_replication_http_info(self, request):
11877
+ http_info = {
11878
+ "method": "POST",
11879
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/pause",
11880
+ "request_type": request.__class__.__name__,
11881
+ "response_type": "PauseStarRocksDataReplicationResponse"
11882
+ }
11883
+
11884
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
11885
+
11886
+ cname = None
11887
+
11888
+ collection_formats = {}
11889
+
11890
+ path_params = {}
11891
+ if 'instance_id' in local_var_params:
11892
+ path_params['instance_id'] = local_var_params['instance_id']
11893
+
11894
+ query_params = []
11895
+
11896
+ header_params = {}
11897
+ if 'x_language' in local_var_params:
11898
+ header_params['X-Language'] = local_var_params['x_language']
11899
+
11900
+ form_params = {}
11901
+
11902
+ body = None
11903
+ if 'body' in local_var_params:
11904
+ body = local_var_params['body']
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;charset=UTF-8'])
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 reboot_click_house_instance_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 RebootClickHouseInstance
11935
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RebootClickHouseInstanceRequest`
11936
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RebootClickHouseInstanceResponse`
11937
+ """
11938
+ http_info = self._reboot_click_house_instance_http_info(request)
11939
+ return self._call_api(**http_info)
11940
+
11941
+ def reboot_click_house_instance_async_invoker(self, request):
11942
+ http_info = self._reboot_click_house_instance_http_info(request)
11943
+ return AsyncInvoker(self, http_info)
11944
+
11945
+ def _reboot_click_house_instance_http_info(self, request):
11946
+ http_info = {
11947
+ "method": "PUT",
11948
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/restart",
11949
+ "request_type": request.__class__.__name__,
11950
+ "response_type": "RebootClickHouseInstanceResponse"
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 isinstance(request, SdkStreamRequest):
11973
+ body = request.get_file_stream()
11974
+
11975
+ response_headers = []
11976
+
11977
+ header_params['Content-Type'] = http_utils.select_header_content_type(
11978
+ ['application/json'])
11979
+
11980
+ auth_settings = []
11981
+
11982
+ http_info["cname"] = cname
11983
+ http_info["collection_formats"] = collection_formats
11984
+ http_info["path_params"] = path_params
11985
+ http_info["query_params"] = query_params
11986
+ http_info["header_params"] = header_params
11987
+ http_info["post_params"] = form_params
11988
+ http_info["body"] = body
11989
+ http_info["response_headers"] = response_headers
11990
+
11991
+ return http_info
11992
+
11993
+ def resize_click_house_flavor_async(self, request):
11994
+ """实例规格变更
11995
+
11996
+ 实例规格变更。
11997
+
11998
+ Please refer to HUAWEI cloud API Explorer for details.
11999
+
12000
+
12001
+ :param request: Request instance for ResizeClickHouseFlavor
12002
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ResizeClickHouseFlavorRequest`
12003
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ResizeClickHouseFlavorResponse`
12004
+ """
12005
+ http_info = self._resize_click_house_flavor_http_info(request)
12006
+ return self._call_api(**http_info)
12007
+
12008
+ def resize_click_house_flavor_async_invoker(self, request):
12009
+ http_info = self._resize_click_house_flavor_http_info(request)
12010
+ return AsyncInvoker(self, http_info)
12011
+
12012
+ def _resize_click_house_flavor_http_info(self, request):
12013
+ http_info = {
12014
+ "method": "POST",
12015
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/resize-flavor",
12016
+ "request_type": request.__class__.__name__,
12017
+ "response_type": "ResizeClickHouseFlavorResponse"
12018
+ }
12019
+
12020
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
12021
+
12022
+ cname = None
12023
+
12024
+ collection_formats = {}
12025
+
12026
+ path_params = {}
12027
+ if 'instance_id' in local_var_params:
12028
+ path_params['instance_id'] = local_var_params['instance_id']
12029
+
12030
+ query_params = []
12031
+
12032
+ header_params = {}
12033
+ if 'x_language' in local_var_params:
12034
+ header_params['X-Language'] = local_var_params['x_language']
12035
+
12036
+ form_params = {}
12037
+
12038
+ body = None
12039
+ if 'body' in local_var_params:
12040
+ body = local_var_params['body']
12041
+ if isinstance(request, SdkStreamRequest):
12042
+ body = request.get_file_stream()
12043
+
12044
+ response_headers = []
12045
+
12046
+ header_params['Content-Type'] = http_utils.select_header_content_type(
12047
+ ['application/json;charset=UTF-8'])
12048
+
12049
+ auth_settings = []
12050
+
12051
+ http_info["cname"] = cname
12052
+ http_info["collection_formats"] = collection_formats
12053
+ http_info["path_params"] = path_params
12054
+ http_info["query_params"] = query_params
12055
+ http_info["header_params"] = header_params
12056
+ http_info["post_params"] = form_params
12057
+ http_info["body"] = body
12058
+ http_info["response_headers"] = response_headers
12059
+
12060
+ return http_info
12061
+
12062
+ def resize_click_house_instance_async(self, request):
12063
+ """实例磁盘扩容
12064
+
12065
+ 实例磁盘扩容。
12066
+
12067
+ Please refer to HUAWEI cloud API Explorer for details.
12068
+
12069
+
12070
+ :param request: Request instance for ResizeClickHouseInstance
12071
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ResizeClickHouseInstanceRequest`
12072
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ResizeClickHouseInstanceResponse`
12073
+ """
12074
+ http_info = self._resize_click_house_instance_http_info(request)
12075
+ return self._call_api(**http_info)
12076
+
12077
+ def resize_click_house_instance_async_invoker(self, request):
12078
+ http_info = self._resize_click_house_instance_http_info(request)
12079
+ return AsyncInvoker(self, http_info)
12080
+
12081
+ def _resize_click_house_instance_http_info(self, request):
12082
+ http_info = {
12083
+ "method": "PUT",
12084
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/resize",
12085
+ "request_type": request.__class__.__name__,
12086
+ "response_type": "ResizeClickHouseInstanceResponse"
12087
+ }
12088
+
12089
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
12090
+
12091
+ cname = None
12092
+
12093
+ collection_formats = {}
12094
+
12095
+ path_params = {}
12096
+ if 'instance_id' in local_var_params:
12097
+ path_params['instance_id'] = local_var_params['instance_id']
12098
+
12099
+ query_params = []
12100
+
12101
+ header_params = {}
12102
+ if 'x_language' in local_var_params:
12103
+ header_params['X-Language'] = local_var_params['x_language']
12104
+
12105
+ form_params = {}
12106
+
12107
+ body = None
12108
+ if 'body' in local_var_params:
12109
+ body = local_var_params['body']
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;charset=UTF-8'])
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 resize_star_rocks_flavor_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 ResizeStarRocksFlavor
12140
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ResizeStarRocksFlavorRequest`
12141
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ResizeStarRocksFlavorResponse`
12142
+ """
12143
+ http_info = self._resize_star_rocks_flavor_http_info(request)
12144
+ return self._call_api(**http_info)
12145
+
12146
+ def resize_star_rocks_flavor_async_invoker(self, request):
12147
+ http_info = self._resize_star_rocks_flavor_http_info(request)
12148
+ return AsyncInvoker(self, http_info)
12149
+
12150
+ def _resize_star_rocks_flavor_http_info(self, request):
12151
+ http_info = {
12152
+ "method": "POST",
12153
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/resize-flavor",
12154
+ "request_type": request.__class__.__name__,
12155
+ "response_type": "ResizeStarRocksFlavorResponse"
12156
+ }
12157
+
12158
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
12159
+
12160
+ cname = None
12161
+
12162
+ collection_formats = {}
12163
+
12164
+ path_params = {}
12165
+ if 'instance_id' in local_var_params:
12166
+ path_params['instance_id'] = local_var_params['instance_id']
12167
+
12168
+ query_params = []
12169
+
12170
+ header_params = {}
12171
+ if 'x_language' in local_var_params:
12172
+ header_params['X-Language'] = local_var_params['x_language']
12173
+
12174
+ form_params = {}
12175
+
12176
+ body = None
12177
+ if 'body' in local_var_params:
12178
+ body = local_var_params['body']
12179
+ if isinstance(request, SdkStreamRequest):
12180
+ body = request.get_file_stream()
12181
+
12182
+ response_headers = []
12183
+
12184
+ header_params['Content-Type'] = http_utils.select_header_content_type(
12185
+ ['application/json;charset=UTF-8'])
12186
+
12187
+ auth_settings = []
12188
+
12189
+ http_info["cname"] = cname
12190
+ http_info["collection_formats"] = collection_formats
12191
+ http_info["path_params"] = path_params
12192
+ http_info["query_params"] = query_params
12193
+ http_info["header_params"] = header_params
12194
+ http_info["post_params"] = form_params
12195
+ http_info["body"] = body
12196
+ http_info["response_headers"] = response_headers
12197
+
12198
+ return http_info
12199
+
12200
+ def restart_starrocks_instance_async(self, request):
12201
+ """重启StarRocks实例
12202
+
12203
+ 重启StarRocks实例。
12204
+
12205
+ Please refer to HUAWEI cloud API Explorer for details.
12206
+
12207
+
12208
+ :param request: Request instance for RestartStarrocksInstance
12209
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksInstanceRequest`
12210
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksInstanceResponse`
12211
+ """
12212
+ http_info = self._restart_starrocks_instance_http_info(request)
12213
+ return self._call_api(**http_info)
12214
+
12215
+ def restart_starrocks_instance_async_invoker(self, request):
12216
+ http_info = self._restart_starrocks_instance_http_info(request)
12217
+ return AsyncInvoker(self, http_info)
12218
+
12219
+ def _restart_starrocks_instance_http_info(self, request):
12220
+ http_info = {
12221
+ "method": "PUT",
12222
+ "resource_path": "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/restart",
12223
+ "request_type": request.__class__.__name__,
12224
+ "response_type": "RestartStarrocksInstanceResponse"
12225
+ }
12226
+
12227
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
12228
+
12229
+ cname = None
12230
+
12231
+ collection_formats = {}
12232
+
12233
+ path_params = {}
12234
+ if 'starrocks_instance_id' in local_var_params:
12235
+ path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
12236
+
12237
+ query_params = []
12238
+
12239
+ header_params = {}
12240
+ if 'x_language' in local_var_params:
12241
+ header_params['X-Language'] = local_var_params['x_language']
12242
+
12243
+ form_params = {}
12244
+
12245
+ body = None
12246
+ if isinstance(request, SdkStreamRequest):
12247
+ body = request.get_file_stream()
12248
+
12249
+ response_headers = []
12250
+
12251
+ header_params['Content-Type'] = http_utils.select_header_content_type(
12252
+ ['application/json'])
12253
+
12254
+ auth_settings = []
12255
+
12256
+ http_info["cname"] = cname
12257
+ http_info["collection_formats"] = collection_formats
12258
+ http_info["path_params"] = path_params
12259
+ http_info["query_params"] = query_params
12260
+ http_info["header_params"] = header_params
12261
+ http_info["post_params"] = form_params
12262
+ http_info["body"] = body
12263
+ http_info["response_headers"] = response_headers
12264
+
12265
+ return http_info
12266
+
12267
+ def restart_starrocks_node_async(self, request):
12268
+ """重启StarRocks节点
12269
+
12270
+ 重启StarRocks节点。
12271
+
12272
+ Please refer to HUAWEI cloud API Explorer for details.
12273
+
12274
+
12275
+ :param request: Request instance for RestartStarrocksNode
12276
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksNodeRequest`
12277
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksNodeResponse`
12278
+ """
12279
+ http_info = self._restart_starrocks_node_http_info(request)
10214
12280
  return self._call_api(**http_info)
10215
12281
 
10216
- def list_htap_instance_info_async_invoker(self, request):
10217
- http_info = self._list_htap_instance_info_http_info(request)
12282
+ def restart_starrocks_node_async_invoker(self, request):
12283
+ http_info = self._restart_starrocks_node_http_info(request)
10218
12284
  return AsyncInvoker(self, http_info)
10219
12285
 
10220
- def _list_htap_instance_info_http_info(self, request):
12286
+ def _restart_starrocks_node_http_info(self, request):
12287
+ http_info = {
12288
+ "method": "PUT",
12289
+ "resource_path": "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/{starrocks_node_id}/restart",
12290
+ "request_type": request.__class__.__name__,
12291
+ "response_type": "RestartStarrocksNodeResponse"
12292
+ }
12293
+
12294
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
12295
+
12296
+ cname = None
12297
+
12298
+ collection_formats = {}
12299
+
12300
+ path_params = {}
12301
+ if 'starrocks_node_id' in local_var_params:
12302
+ path_params['starrocks_node_id'] = local_var_params['starrocks_node_id']
12303
+ if 'starrocks_instance_id' in local_var_params:
12304
+ path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
12305
+
12306
+ query_params = []
12307
+
12308
+ header_params = {}
12309
+ if 'x_language' in local_var_params:
12310
+ header_params['X-Language'] = local_var_params['x_language']
12311
+
12312
+ form_params = {}
12313
+
12314
+ body = None
12315
+ if isinstance(request, SdkStreamRequest):
12316
+ body = request.get_file_stream()
12317
+
12318
+ response_headers = []
12319
+
12320
+ header_params['Content-Type'] = http_utils.select_header_content_type(
12321
+ ['application/json'])
12322
+
12323
+ auth_settings = []
12324
+
12325
+ http_info["cname"] = cname
12326
+ http_info["collection_formats"] = collection_formats
12327
+ http_info["path_params"] = path_params
12328
+ http_info["query_params"] = query_params
12329
+ http_info["header_params"] = header_params
12330
+ http_info["post_params"] = form_params
12331
+ http_info["body"] = body
12332
+ http_info["response_headers"] = response_headers
12333
+
12334
+ return http_info
12335
+
12336
+ def resume_star_rocks_data_replication_async(self, request):
12337
+ """恢复StarRocks数据同步
12338
+
12339
+ 恢复StarRocks数据同步。
12340
+
12341
+ Please refer to HUAWEI cloud API Explorer for details.
12342
+
12343
+
12344
+ :param request: Request instance for ResumeStarRocksDataReplication
12345
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ResumeStarRocksDataReplicationRequest`
12346
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ResumeStarRocksDataReplicationResponse`
12347
+ """
12348
+ http_info = self._resume_star_rocks_data_replication_http_info(request)
12349
+ return self._call_api(**http_info)
12350
+
12351
+ def resume_star_rocks_data_replication_async_invoker(self, request):
12352
+ http_info = self._resume_star_rocks_data_replication_http_info(request)
12353
+ return AsyncInvoker(self, http_info)
12354
+
12355
+ def _resume_star_rocks_data_replication_http_info(self, request):
12356
+ http_info = {
12357
+ "method": "POST",
12358
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/resume",
12359
+ "request_type": request.__class__.__name__,
12360
+ "response_type": "ResumeStarRocksDataReplicationResponse"
12361
+ }
12362
+
12363
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
12364
+
12365
+ cname = None
12366
+
12367
+ collection_formats = {}
12368
+
12369
+ path_params = {}
12370
+ if 'instance_id' in local_var_params:
12371
+ path_params['instance_id'] = local_var_params['instance_id']
12372
+
12373
+ query_params = []
12374
+
12375
+ header_params = {}
12376
+ if 'x_language' in local_var_params:
12377
+ header_params['X-Language'] = local_var_params['x_language']
12378
+
12379
+ form_params = {}
12380
+
12381
+ body = None
12382
+ if 'body' in local_var_params:
12383
+ body = local_var_params['body']
12384
+ if isinstance(request, SdkStreamRequest):
12385
+ body = request.get_file_stream()
12386
+
12387
+ response_headers = []
12388
+
12389
+ header_params['Content-Type'] = http_utils.select_header_content_type(
12390
+ ['application/json;charset=UTF-8'])
12391
+
12392
+ auth_settings = []
12393
+
12394
+ http_info["cname"] = cname
12395
+ http_info["collection_formats"] = collection_formats
12396
+ http_info["path_params"] = path_params
12397
+ http_info["query_params"] = query_params
12398
+ http_info["header_params"] = header_params
12399
+ http_info["post_params"] = form_params
12400
+ http_info["body"] = body
12401
+ http_info["response_headers"] = response_headers
12402
+
12403
+ return http_info
12404
+
12405
+ def show_click_house_database_user_async(self, request):
12406
+ """查询数据库账户
12407
+
12408
+ 查询数据库账户。
12409
+
12410
+ Please refer to HUAWEI cloud API Explorer for details.
12411
+
12412
+
12413
+ :param request: Request instance for ShowClickHouseDatabaseUser
12414
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseDatabaseUserRequest`
12415
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseDatabaseUserResponse`
12416
+ """
12417
+ http_info = self._show_click_house_database_user_http_info(request)
12418
+ return self._call_api(**http_info)
12419
+
12420
+ def show_click_house_database_user_async_invoker(self, request):
12421
+ http_info = self._show_click_house_database_user_http_info(request)
12422
+ return AsyncInvoker(self, http_info)
12423
+
12424
+ def _show_click_house_database_user_http_info(self, request):
10221
12425
  http_info = {
10222
12426
  "method": "GET",
10223
- "resource_path": "/v3/{project_id}/instances/{instance_id}/htap",
12427
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/users",
12428
+ "request_type": request.__class__.__name__,
12429
+ "response_type": "ShowClickHouseDatabaseUserResponse"
12430
+ }
12431
+
12432
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
12433
+
12434
+ cname = None
12435
+
12436
+ collection_formats = {}
12437
+
12438
+ path_params = {}
12439
+ if 'instance_id' in local_var_params:
12440
+ path_params['instance_id'] = local_var_params['instance_id']
12441
+
12442
+ query_params = []
12443
+ if 'limit' in local_var_params:
12444
+ query_params.append(('limit', local_var_params['limit']))
12445
+ if 'offset' in local_var_params:
12446
+ query_params.append(('offset', local_var_params['offset']))
12447
+ if 'user_name' in local_var_params:
12448
+ query_params.append(('user_name', local_var_params['user_name']))
12449
+
12450
+ header_params = {}
12451
+ if 'x_language' in local_var_params:
12452
+ header_params['X-Language'] = local_var_params['x_language']
12453
+
12454
+ form_params = {}
12455
+
12456
+ body = None
12457
+ if isinstance(request, SdkStreamRequest):
12458
+ body = request.get_file_stream()
12459
+
12460
+ response_headers = []
12461
+
12462
+ header_params['Content-Type'] = http_utils.select_header_content_type(
12463
+ ['application/json'])
12464
+
12465
+ auth_settings = []
12466
+
12467
+ http_info["cname"] = cname
12468
+ http_info["collection_formats"] = collection_formats
12469
+ http_info["path_params"] = path_params
12470
+ http_info["query_params"] = query_params
12471
+ http_info["header_params"] = header_params
12472
+ http_info["post_params"] = form_params
12473
+ http_info["body"] = body
12474
+ http_info["response_headers"] = response_headers
12475
+
12476
+ return http_info
12477
+
12478
+ def show_click_house_lts_config_async(self, request):
12479
+ """查询实例LTS日志配置列表
12480
+
12481
+ 查询实例LTS日志配置列表。
12482
+
12483
+ Please refer to HUAWEI cloud API Explorer for details.
12484
+
12485
+
12486
+ :param request: Request instance for ShowClickHouseLtsConfig
12487
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseLtsConfigRequest`
12488
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseLtsConfigResponse`
12489
+ """
12490
+ http_info = self._show_click_house_lts_config_http_info(request)
12491
+ return self._call_api(**http_info)
12492
+
12493
+ def show_click_house_lts_config_async_invoker(self, request):
12494
+ http_info = self._show_click_house_lts_config_http_info(request)
12495
+ return AsyncInvoker(self, http_info)
12496
+
12497
+ def _show_click_house_lts_config_http_info(self, request):
12498
+ http_info = {
12499
+ "method": "GET",
12500
+ "resource_path": "/v3/{project_id}/clickhouse/instances/logs/lts-configs",
12501
+ "request_type": request.__class__.__name__,
12502
+ "response_type": "ShowClickHouseLtsConfigResponse"
12503
+ }
12504
+
12505
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
12506
+
12507
+ cname = None
12508
+
12509
+ collection_formats = {}
12510
+
12511
+ path_params = {}
12512
+
12513
+ query_params = []
12514
+ if 'instance_id' in local_var_params:
12515
+ query_params.append(('instance_id', local_var_params['instance_id']))
12516
+ if 'enterprise_project_id' in local_var_params:
12517
+ query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
12518
+ if 'instance_name' in local_var_params:
12519
+ query_params.append(('instance_name', local_var_params['instance_name']))
12520
+ if 'limit' in local_var_params:
12521
+ query_params.append(('limit', local_var_params['limit']))
12522
+ if 'offset' in local_var_params:
12523
+ query_params.append(('offset', local_var_params['offset']))
12524
+
12525
+ header_params = {}
12526
+ if 'x_language' in local_var_params:
12527
+ header_params['X-Language'] = local_var_params['x_language']
12528
+
12529
+ form_params = {}
12530
+
12531
+ body = None
12532
+ if isinstance(request, SdkStreamRequest):
12533
+ body = request.get_file_stream()
12534
+
12535
+ response_headers = []
12536
+
12537
+ header_params['Content-Type'] = http_utils.select_header_content_type(
12538
+ ['application/json'])
12539
+
12540
+ auth_settings = []
12541
+
12542
+ http_info["cname"] = cname
12543
+ http_info["collection_formats"] = collection_formats
12544
+ http_info["path_params"] = path_params
12545
+ http_info["query_params"] = query_params
12546
+ http_info["header_params"] = header_params
12547
+ http_info["post_params"] = form_params
12548
+ http_info["body"] = body
12549
+ http_info["response_headers"] = response_headers
12550
+
12551
+ return http_info
12552
+
12553
+ def show_click_house_slow_log_detail_async(self, request):
12554
+ """查询慢日志
12555
+
12556
+ 获取内核慢日志信息。
12557
+
12558
+ Please refer to HUAWEI cloud API Explorer for details.
12559
+
12560
+
12561
+ :param request: Request instance for ShowClickHouseSlowLogDetail
12562
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseSlowLogDetailRequest`
12563
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseSlowLogDetailResponse`
12564
+ """
12565
+ http_info = self._show_click_house_slow_log_detail_http_info(request)
12566
+ return self._call_api(**http_info)
12567
+
12568
+ def show_click_house_slow_log_detail_async_invoker(self, request):
12569
+ http_info = self._show_click_house_slow_log_detail_http_info(request)
12570
+ return AsyncInvoker(self, http_info)
12571
+
12572
+ def _show_click_house_slow_log_detail_http_info(self, request):
12573
+ http_info = {
12574
+ "method": "POST",
12575
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/slow-logs",
10224
12576
  "request_type": request.__class__.__name__,
10225
- "response_type": "ListHtapInstanceInfoResponse"
12577
+ "response_type": "ShowClickHouseSlowLogDetailResponse"
10226
12578
  }
10227
12579
 
10228
12580
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -10244,13 +12596,15 @@ class GaussDBAsyncClient(Client):
10244
12596
  form_params = {}
10245
12597
 
10246
12598
  body = None
12599
+ if 'body' in local_var_params:
12600
+ body = local_var_params['body']
10247
12601
  if isinstance(request, SdkStreamRequest):
10248
12602
  body = request.get_file_stream()
10249
12603
 
10250
12604
  response_headers = []
10251
12605
 
10252
12606
  header_params['Content-Type'] = http_utils.select_header_content_type(
10253
- ['application/json'])
12607
+ ['application/json;charset=UTF-8'])
10254
12608
 
10255
12609
  auth_settings = []
10256
12610
 
@@ -10265,31 +12619,31 @@ class GaussDBAsyncClient(Client):
10265
12619
 
10266
12620
  return http_info
10267
12621
 
10268
- def list_htap_storage_type_async(self, request):
10269
- """获取HTAP实例存储类型
12622
+ def show_click_house_slow_log_sensitive_status_async(self, request):
12623
+ """查询慢日志脱敏状态
10270
12624
 
10271
- 获取HTAP实例存储类型。
12625
+ 查询慢日志脱敏状态。
10272
12626
 
10273
12627
  Please refer to HUAWEI cloud API Explorer for details.
10274
12628
 
10275
12629
 
10276
- :param request: Request instance for ListHtapStorageType
10277
- :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapStorageTypeRequest`
10278
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapStorageTypeResponse`
12630
+ :param request: Request instance for ShowClickHouseSlowLogSensitiveStatus
12631
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseSlowLogSensitiveStatusRequest`
12632
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowClickHouseSlowLogSensitiveStatusResponse`
10279
12633
  """
10280
- http_info = self._list_htap_storage_type_http_info(request)
12634
+ http_info = self._show_click_house_slow_log_sensitive_status_http_info(request)
10281
12635
  return self._call_api(**http_info)
10282
12636
 
10283
- def list_htap_storage_type_async_invoker(self, request):
10284
- http_info = self._list_htap_storage_type_http_info(request)
12637
+ def show_click_house_slow_log_sensitive_status_async_invoker(self, request):
12638
+ http_info = self._show_click_house_slow_log_sensitive_status_http_info(request)
10285
12639
  return AsyncInvoker(self, http_info)
10286
12640
 
10287
- def _list_htap_storage_type_http_info(self, request):
12641
+ def _show_click_house_slow_log_sensitive_status_http_info(self, request):
10288
12642
  http_info = {
10289
12643
  "method": "GET",
10290
- "resource_path": "/v3/{project_id}/htap/storage-type/{database}",
12644
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/slowlog-sensitive",
10291
12645
  "request_type": request.__class__.__name__,
10292
- "response_type": "ListHtapStorageTypeResponse"
12646
+ "response_type": "ShowClickHouseSlowLogSensitiveStatusResponse"
10293
12647
  }
10294
12648
 
10295
12649
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -10299,12 +12653,10 @@ class GaussDBAsyncClient(Client):
10299
12653
  collection_formats = {}
10300
12654
 
10301
12655
  path_params = {}
10302
- if 'database' in local_var_params:
10303
- path_params['database'] = local_var_params['database']
12656
+ if 'instance_id' in local_var_params:
12657
+ path_params['instance_id'] = local_var_params['instance_id']
10304
12658
 
10305
12659
  query_params = []
10306
- if 'version_name' in local_var_params:
10307
- query_params.append(('version_name', local_var_params['version_name']))
10308
12660
 
10309
12661
  header_params = {}
10310
12662
  if 'x_language' in local_var_params:
@@ -10334,31 +12686,31 @@ class GaussDBAsyncClient(Client):
10334
12686
 
10335
12687
  return http_info
10336
12688
 
10337
- def list_star_rocks_data_bases_async(self, request):
10338
- """查询StarRocks数据库
12689
+ def show_star_rocks_database_user_async(self, request):
12690
+ """查询数据库账户
10339
12691
 
10340
- 查询StarRocks数据库。
12692
+ 查询StarRocks数据库账户。
10341
12693
 
10342
12694
  Please refer to HUAWEI cloud API Explorer for details.
10343
12695
 
10344
12696
 
10345
- :param request: Request instance for ListStarRocksDataBases
10346
- :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesRequest`
10347
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesResponse`
12697
+ :param request: Request instance for ShowStarRocksDatabaseUser
12698
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUserRequest`
12699
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUserResponse`
10348
12700
  """
10349
- http_info = self._list_star_rocks_data_bases_http_info(request)
12701
+ http_info = self._show_star_rocks_database_user_http_info(request)
10350
12702
  return self._call_api(**http_info)
10351
12703
 
10352
- def list_star_rocks_data_bases_async_invoker(self, request):
10353
- http_info = self._list_star_rocks_data_bases_http_info(request)
12704
+ def show_star_rocks_database_user_async_invoker(self, request):
12705
+ http_info = self._show_star_rocks_database_user_http_info(request)
10354
12706
  return AsyncInvoker(self, http_info)
10355
12707
 
10356
- def _list_star_rocks_data_bases_http_info(self, request):
12708
+ def _show_star_rocks_database_user_http_info(self, request):
10357
12709
  http_info = {
10358
12710
  "method": "GET",
10359
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases",
12711
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
10360
12712
  "request_type": request.__class__.__name__,
10361
- "response_type": "ListStarRocksDataBasesResponse"
12713
+ "response_type": "ShowStarRocksDatabaseUserResponse"
10362
12714
  }
10363
12715
 
10364
12716
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -10372,12 +12724,12 @@ class GaussDBAsyncClient(Client):
10372
12724
  path_params['instance_id'] = local_var_params['instance_id']
10373
12725
 
10374
12726
  query_params = []
12727
+ if 'user_name' in local_var_params:
12728
+ query_params.append(('user_name', local_var_params['user_name']))
10375
12729
  if 'limit' in local_var_params:
10376
12730
  query_params.append(('limit', local_var_params['limit']))
10377
12731
  if 'offset' in local_var_params:
10378
12732
  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
12733
 
10382
12734
  header_params = {}
10383
12735
  if 'x_language' in local_var_params:
@@ -10407,31 +12759,31 @@ class GaussDBAsyncClient(Client):
10407
12759
 
10408
12760
  return http_info
10409
12761
 
10410
- def list_star_rocks_data_replication_config_async(self, request):
10411
- """查询StarRocks数据同步配置信息
12762
+ def show_starrocks_params_async(self, request):
12763
+ """查询参数
10412
12764
 
10413
- 查询StarRocks数据同步配置信息。
12765
+ 按节点类型查询参数
10414
12766
 
10415
12767
  Please refer to HUAWEI cloud API Explorer for details.
10416
12768
 
10417
12769
 
10418
- :param request: Request instance for ListStarRocksDataReplicationConfig
10419
- :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigRequest`
10420
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigResponse`
12770
+ :param request: Request instance for ShowStarrocksParams
12771
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowStarrocksParamsRequest`
12772
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowStarrocksParamsResponse`
10421
12773
  """
10422
- http_info = self._list_star_rocks_data_replication_config_http_info(request)
12774
+ http_info = self._show_starrocks_params_http_info(request)
10423
12775
  return self._call_api(**http_info)
10424
12776
 
10425
- def list_star_rocks_data_replication_config_async_invoker(self, request):
10426
- http_info = self._list_star_rocks_data_replication_config_http_info(request)
12777
+ def show_starrocks_params_async_invoker(self, request):
12778
+ http_info = self._show_starrocks_params_http_info(request)
10427
12779
  return AsyncInvoker(self, http_info)
10428
12780
 
10429
- def _list_star_rocks_data_replication_config_http_info(self, request):
12781
+ def _show_starrocks_params_http_info(self, request):
10430
12782
  http_info = {
10431
12783
  "method": "GET",
10432
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/configuration",
12784
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/configurations",
10433
12785
  "request_type": request.__class__.__name__,
10434
- "response_type": "ListStarRocksDataReplicationConfigResponse"
12786
+ "response_type": "ShowStarrocksParamsResponse"
10435
12787
  }
10436
12788
 
10437
12789
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -10445,8 +12797,12 @@ class GaussDBAsyncClient(Client):
10445
12797
  path_params['instance_id'] = local_var_params['instance_id']
10446
12798
 
10447
12799
  query_params = []
10448
- if 'task_name' in local_var_params:
10449
- query_params.append(('task_name', local_var_params['task_name']))
12800
+ if 'node_type' in local_var_params:
12801
+ query_params.append(('node_type', local_var_params['node_type']))
12802
+ if 'offset' in local_var_params:
12803
+ query_params.append(('offset', local_var_params['offset']))
12804
+ if 'limit' in local_var_params:
12805
+ query_params.append(('limit', local_var_params['limit']))
10450
12806
 
10451
12807
  header_params = {}
10452
12808
  if 'x_language' in local_var_params:
@@ -10476,31 +12832,31 @@ class GaussDBAsyncClient(Client):
10476
12832
 
10477
12833
  return http_info
10478
12834
 
10479
- def list_star_rocks_data_replications_async(self, request):
10480
- """查询StarRocks数据同步状态信息
12835
+ def sync_star_rocks_users_async(self, request):
12836
+ """StarRocks实例开启行列分流
10481
12837
 
10482
- 查询StarRocks数据同步状态信息。
12838
+ StarRocks实例开启行列分流。
10483
12839
 
10484
12840
  Please refer to HUAWEI cloud API Explorer for details.
10485
12841
 
10486
12842
 
10487
- :param request: Request instance for ListStarRocksDataReplications
10488
- :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsRequest`
10489
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsResponse`
12843
+ :param request: Request instance for SyncStarRocksUsers
12844
+ :type request: :class:`huaweicloudsdkgaussdb.v3.SyncStarRocksUsersRequest`
12845
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.SyncStarRocksUsersResponse`
10490
12846
  """
10491
- http_info = self._list_star_rocks_data_replications_http_info(request)
12847
+ http_info = self._sync_star_rocks_users_http_info(request)
10492
12848
  return self._call_api(**http_info)
10493
12849
 
10494
- def list_star_rocks_data_replications_async_invoker(self, request):
10495
- http_info = self._list_star_rocks_data_replications_http_info(request)
12850
+ def sync_star_rocks_users_async_invoker(self, request):
12851
+ http_info = self._sync_star_rocks_users_http_info(request)
10496
12852
  return AsyncInvoker(self, http_info)
10497
12853
 
10498
- def _list_star_rocks_data_replications_http_info(self, request):
12854
+ def _sync_star_rocks_users_http_info(self, request):
10499
12855
  http_info = {
10500
- "method": "GET",
10501
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
12856
+ "method": "POST",
12857
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users/sync",
10502
12858
  "request_type": request.__class__.__name__,
10503
- "response_type": "ListStarRocksDataReplicationsResponse"
12859
+ "response_type": "SyncStarRocksUsersResponse"
10504
12860
  }
10505
12861
 
10506
12862
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -10514,10 +12870,6 @@ class GaussDBAsyncClient(Client):
10514
12870
  path_params['instance_id'] = local_var_params['instance_id']
10515
12871
 
10516
12872
  query_params = []
10517
- if 'limit' in local_var_params:
10518
- query_params.append(('limit', local_var_params['limit']))
10519
- if 'offset' in local_var_params:
10520
- query_params.append(('offset', local_var_params['offset']))
10521
12873
 
10522
12874
  header_params = {}
10523
12875
  if 'x_language' in local_var_params:
@@ -10526,13 +12878,15 @@ class GaussDBAsyncClient(Client):
10526
12878
  form_params = {}
10527
12879
 
10528
12880
  body = None
12881
+ if 'body' in local_var_params:
12882
+ body = local_var_params['body']
10529
12883
  if isinstance(request, SdkStreamRequest):
10530
12884
  body = request.get_file_stream()
10531
12885
 
10532
12886
  response_headers = []
10533
12887
 
10534
12888
  header_params['Content-Type'] = http_utils.select_header_content_type(
10535
- ['application/json'])
12889
+ ['application/json;charset=UTF-8'])
10536
12890
 
10537
12891
  auth_settings = []
10538
12892
 
@@ -10547,31 +12901,31 @@ class GaussDBAsyncClient(Client):
10547
12901
 
10548
12902
  return http_info
10549
12903
 
10550
- def list_star_rocks_db_parameters_async(self, request):
10551
- """查询StarRocks数据同步的库参数配置
12904
+ def update_click_house_data_base_config_async(self, request):
12905
+ """修改数据同步
10552
12906
 
10553
- 查询StarRocks数据同步的库参数配置。
12907
+ 修改数据同步。
10554
12908
 
10555
12909
  Please refer to HUAWEI cloud API Explorer for details.
10556
12910
 
10557
12911
 
10558
- :param request: Request instance for ListStarRocksDbParameters
10559
- :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersRequest`
10560
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersResponse`
12912
+ :param request: Request instance for UpdateClickHouseDataBaseConfig
12913
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseDataBaseConfigRequest`
12914
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseDataBaseConfigResponse`
10561
12915
  """
10562
- http_info = self._list_star_rocks_db_parameters_http_info(request)
12916
+ http_info = self._update_click_house_data_base_config_http_info(request)
10563
12917
  return self._call_api(**http_info)
10564
12918
 
10565
- def list_star_rocks_db_parameters_async_invoker(self, request):
10566
- http_info = self._list_star_rocks_db_parameters_http_info(request)
12919
+ def update_click_house_data_base_config_async_invoker(self, request):
12920
+ http_info = self._update_click_house_data_base_config_http_info(request)
10567
12921
  return AsyncInvoker(self, http_info)
10568
12922
 
10569
- def _list_star_rocks_db_parameters_http_info(self, request):
12923
+ def _update_click_house_data_base_config_http_info(self, request):
10570
12924
  http_info = {
10571
- "method": "GET",
10572
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-parameters",
12925
+ "method": "PUT",
12926
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/databases/replication/config",
10573
12927
  "request_type": request.__class__.__name__,
10574
- "response_type": "ListStarRocksDbParametersResponse"
12928
+ "response_type": "UpdateClickHouseDataBaseConfigResponse"
10575
12929
  }
10576
12930
 
10577
12931
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -10593,13 +12947,15 @@ class GaussDBAsyncClient(Client):
10593
12947
  form_params = {}
10594
12948
 
10595
12949
  body = None
12950
+ if 'body' in local_var_params:
12951
+ body = local_var_params['body']
10596
12952
  if isinstance(request, SdkStreamRequest):
10597
12953
  body = request.get_file_stream()
10598
12954
 
10599
12955
  response_headers = []
10600
12956
 
10601
12957
  header_params['Content-Type'] = http_utils.select_header_content_type(
10602
- ['application/json'])
12958
+ ['application/json;charset=UTF-8'])
10603
12959
 
10604
12960
  auth_settings = []
10605
12961
 
@@ -10614,31 +12970,31 @@ class GaussDBAsyncClient(Client):
10614
12970
 
10615
12971
  return http_info
10616
12972
 
10617
- def list_starrocks_instance_info_async(self, request):
10618
- """查询StarRocks实例
12973
+ def update_click_house_database_user_password_async(self, request):
12974
+ """修改数据库账号密码
10619
12975
 
10620
- 查询StarRocks实例。
12976
+ 修改数据库账号密码。
10621
12977
 
10622
12978
  Please refer to HUAWEI cloud API Explorer for details.
10623
12979
 
10624
12980
 
10625
- :param request: Request instance for ListStarrocksInstanceInfo
10626
- :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarrocksInstanceInfoRequest`
10627
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarrocksInstanceInfoResponse`
12981
+ :param request: Request instance for UpdateClickHouseDatabaseUserPassword
12982
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseDatabaseUserPasswordRequest`
12983
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseDatabaseUserPasswordResponse`
10628
12984
  """
10629
- http_info = self._list_starrocks_instance_info_http_info(request)
12985
+ http_info = self._update_click_house_database_user_password_http_info(request)
10630
12986
  return self._call_api(**http_info)
10631
12987
 
10632
- def list_starrocks_instance_info_async_invoker(self, request):
10633
- http_info = self._list_starrocks_instance_info_http_info(request)
12988
+ def update_click_house_database_user_password_async_invoker(self, request):
12989
+ http_info = self._update_click_house_database_user_password_http_info(request)
10634
12990
  return AsyncInvoker(self, http_info)
10635
12991
 
10636
- def _list_starrocks_instance_info_http_info(self, request):
12992
+ def _update_click_house_database_user_password_http_info(self, request):
10637
12993
  http_info = {
10638
- "method": "GET",
10639
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}",
12994
+ "method": "PUT",
12995
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/users/password",
10640
12996
  "request_type": request.__class__.__name__,
10641
- "response_type": "ListStarrocksInstanceInfoResponse"
12997
+ "response_type": "UpdateClickHouseDatabaseUserPasswordResponse"
10642
12998
  }
10643
12999
 
10644
13000
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -10650,8 +13006,6 @@ class GaussDBAsyncClient(Client):
10650
13006
  path_params = {}
10651
13007
  if 'instance_id' in local_var_params:
10652
13008
  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
13009
 
10656
13010
  query_params = []
10657
13011
 
@@ -10662,13 +13016,15 @@ class GaussDBAsyncClient(Client):
10662
13016
  form_params = {}
10663
13017
 
10664
13018
  body = None
13019
+ if 'body' in local_var_params:
13020
+ body = local_var_params['body']
10665
13021
  if isinstance(request, SdkStreamRequest):
10666
13022
  body = request.get_file_stream()
10667
13023
 
10668
13024
  response_headers = []
10669
13025
 
10670
13026
  header_params['Content-Type'] = http_utils.select_header_content_type(
10671
- ['application/json'])
13027
+ ['application/json;charset=UTF-8'])
10672
13028
 
10673
13029
  auth_settings = []
10674
13030
 
@@ -10683,31 +13039,31 @@ class GaussDBAsyncClient(Client):
10683
13039
 
10684
13040
  return http_info
10685
13041
 
10686
- def restart_starrocks_instance_async(self, request):
10687
- """重启StarRocks实例
13042
+ def update_click_house_database_user_permission_async(self, request):
13043
+ """修改数据库账号权限
10688
13044
 
10689
- 重启StarRocks实例。
13045
+ 修改数据库账号权限。
10690
13046
 
10691
13047
  Please refer to HUAWEI cloud API Explorer for details.
10692
13048
 
10693
13049
 
10694
- :param request: Request instance for RestartStarrocksInstance
10695
- :type request: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksInstanceRequest`
10696
- :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksInstanceResponse`
13050
+ :param request: Request instance for UpdateClickHouseDatabaseUserPermission
13051
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseDatabaseUserPermissionRequest`
13052
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseDatabaseUserPermissionResponse`
10697
13053
  """
10698
- http_info = self._restart_starrocks_instance_http_info(request)
13054
+ http_info = self._update_click_house_database_user_permission_http_info(request)
10699
13055
  return self._call_api(**http_info)
10700
13056
 
10701
- def restart_starrocks_instance_async_invoker(self, request):
10702
- http_info = self._restart_starrocks_instance_http_info(request)
13057
+ def update_click_house_database_user_permission_async_invoker(self, request):
13058
+ http_info = self._update_click_house_database_user_permission_http_info(request)
10703
13059
  return AsyncInvoker(self, http_info)
10704
13060
 
10705
- def _restart_starrocks_instance_http_info(self, request):
13061
+ def _update_click_house_database_user_permission_http_info(self, request):
10706
13062
  http_info = {
10707
13063
  "method": "PUT",
10708
- "resource_path": "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/restart",
13064
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/users/permission",
10709
13065
  "request_type": request.__class__.__name__,
10710
- "response_type": "RestartStarrocksInstanceResponse"
13066
+ "response_type": "UpdateClickHouseDatabaseUserPermissionResponse"
10711
13067
  }
10712
13068
 
10713
13069
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -10717,8 +13073,8 @@ class GaussDBAsyncClient(Client):
10717
13073
  collection_formats = {}
10718
13074
 
10719
13075
  path_params = {}
10720
- if 'starrocks_instance_id' in local_var_params:
10721
- path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
13076
+ if 'instance_id' in local_var_params:
13077
+ path_params['instance_id'] = local_var_params['instance_id']
10722
13078
 
10723
13079
  query_params = []
10724
13080
 
@@ -10729,13 +13085,15 @@ class GaussDBAsyncClient(Client):
10729
13085
  form_params = {}
10730
13086
 
10731
13087
  body = None
13088
+ if 'body' in local_var_params:
13089
+ body = local_var_params['body']
10732
13090
  if isinstance(request, SdkStreamRequest):
10733
13091
  body = request.get_file_stream()
10734
13092
 
10735
13093
  response_headers = []
10736
13094
 
10737
13095
  header_params['Content-Type'] = http_utils.select_header_content_type(
10738
- ['application/json'])
13096
+ ['application/json;charset=UTF-8'])
10739
13097
 
10740
13098
  auth_settings = []
10741
13099
 
@@ -10750,31 +13108,31 @@ class GaussDBAsyncClient(Client):
10750
13108
 
10751
13109
  return http_info
10752
13110
 
10753
- def restart_starrocks_node_async(self, request):
10754
- """重启StarRocks节点
13111
+ def update_click_house_lts_config_async(self, request):
13112
+ """批量创建LTS日志配置
10755
13113
 
10756
- 重启StarRocks节点。
13114
+ 批量创建LTS日志配置。
10757
13115
 
10758
13116
  Please refer to HUAWEI cloud API Explorer for details.
10759
13117
 
10760
13118
 
10761
- :param request: Request instance for RestartStarrocksNode
10762
- :type request: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksNodeRequest`
10763
- :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksNodeResponse`
13119
+ :param request: Request instance for UpdateClickHouseLtsConfig
13120
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseLtsConfigRequest`
13121
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseLtsConfigResponse`
10764
13122
  """
10765
- http_info = self._restart_starrocks_node_http_info(request)
13123
+ http_info = self._update_click_house_lts_config_http_info(request)
10766
13124
  return self._call_api(**http_info)
10767
13125
 
10768
- def restart_starrocks_node_async_invoker(self, request):
10769
- http_info = self._restart_starrocks_node_http_info(request)
13126
+ def update_click_house_lts_config_async_invoker(self, request):
13127
+ http_info = self._update_click_house_lts_config_http_info(request)
10770
13128
  return AsyncInvoker(self, http_info)
10771
13129
 
10772
- def _restart_starrocks_node_http_info(self, request):
13130
+ def _update_click_house_lts_config_http_info(self, request):
10773
13131
  http_info = {
10774
- "method": "PUT",
10775
- "resource_path": "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/{starrocks_node_id}/restart",
13132
+ "method": "POST",
13133
+ "resource_path": "/v3/{project_id}/clickhouse/instances/logs/lts-configs",
10776
13134
  "request_type": request.__class__.__name__,
10777
- "response_type": "RestartStarrocksNodeResponse"
13135
+ "response_type": "UpdateClickHouseLtsConfigResponse"
10778
13136
  }
10779
13137
 
10780
13138
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -10784,10 +13142,6 @@ class GaussDBAsyncClient(Client):
10784
13142
  collection_formats = {}
10785
13143
 
10786
13144
  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
13145
 
10792
13146
  query_params = []
10793
13147
 
@@ -10798,13 +13152,15 @@ class GaussDBAsyncClient(Client):
10798
13152
  form_params = {}
10799
13153
 
10800
13154
  body = None
13155
+ if 'body' in local_var_params:
13156
+ body = local_var_params['body']
10801
13157
  if isinstance(request, SdkStreamRequest):
10802
13158
  body = request.get_file_stream()
10803
13159
 
10804
13160
  response_headers = []
10805
13161
 
10806
13162
  header_params['Content-Type'] = http_utils.select_header_content_type(
10807
- ['application/json'])
13163
+ ['application/json;charset=UTF-8'])
10808
13164
 
10809
13165
  auth_settings = []
10810
13166
 
@@ -10819,31 +13175,31 @@ class GaussDBAsyncClient(Client):
10819
13175
 
10820
13176
  return http_info
10821
13177
 
10822
- def show_star_rocks_database_user_async(self, request):
10823
- """查询数据库账户
13178
+ def update_click_house_slow_log_sensitive_status_async(self, request):
13179
+ """修改慢日志脱敏状态
10824
13180
 
10825
- 查询StarRocks数据库账户。
13181
+ 修改慢日志脱敏状态。
10826
13182
 
10827
13183
  Please refer to HUAWEI cloud API Explorer for details.
10828
13184
 
10829
13185
 
10830
- :param request: Request instance for ShowStarRocksDatabaseUser
10831
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUserRequest`
10832
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUserResponse`
13186
+ :param request: Request instance for UpdateClickHouseSlowLogSensitiveStatus
13187
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseSlowLogSensitiveStatusRequest`
13188
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateClickHouseSlowLogSensitiveStatusResponse`
10833
13189
  """
10834
- http_info = self._show_star_rocks_database_user_http_info(request)
13190
+ http_info = self._update_click_house_slow_log_sensitive_status_http_info(request)
10835
13191
  return self._call_api(**http_info)
10836
13192
 
10837
- def show_star_rocks_database_user_async_invoker(self, request):
10838
- http_info = self._show_star_rocks_database_user_http_info(request)
13193
+ def update_click_house_slow_log_sensitive_status_async_invoker(self, request):
13194
+ http_info = self._update_click_house_slow_log_sensitive_status_http_info(request)
10839
13195
  return AsyncInvoker(self, http_info)
10840
13196
 
10841
- def _show_star_rocks_database_user_http_info(self, request):
13197
+ def _update_click_house_slow_log_sensitive_status_http_info(self, request):
10842
13198
  http_info = {
10843
- "method": "GET",
10844
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
13199
+ "method": "PUT",
13200
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/clickhouse/slowlog-sensitive",
10845
13201
  "request_type": request.__class__.__name__,
10846
- "response_type": "ShowStarRocksDatabaseUserResponse"
13202
+ "response_type": "UpdateClickHouseSlowLogSensitiveStatusResponse"
10847
13203
  }
10848
13204
 
10849
13205
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -10857,12 +13213,6 @@ class GaussDBAsyncClient(Client):
10857
13213
  path_params['instance_id'] = local_var_params['instance_id']
10858
13214
 
10859
13215
  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
13216
 
10867
13217
  header_params = {}
10868
13218
  if 'x_language' in local_var_params:
@@ -10871,13 +13221,15 @@ class GaussDBAsyncClient(Client):
10871
13221
  form_params = {}
10872
13222
 
10873
13223
  body = None
13224
+ if 'body' in local_var_params:
13225
+ body = local_var_params['body']
10874
13226
  if isinstance(request, SdkStreamRequest):
10875
13227
  body = request.get_file_stream()
10876
13228
 
10877
13229
  response_headers = []
10878
13230
 
10879
13231
  header_params['Content-Type'] = http_utils.select_header_content_type(
10880
- ['application/json'])
13232
+ ['application/json;charset=UTF-8'])
10881
13233
 
10882
13234
  auth_settings = []
10883
13235
 
@@ -11030,6 +13382,75 @@ class GaussDBAsyncClient(Client):
11030
13382
 
11031
13383
  return http_info
11032
13384
 
13385
+ def update_starrocks_params_async(self, request):
13386
+ """修改参数
13387
+
13388
+ 按节点类型修改节点参数
13389
+
13390
+ Please refer to HUAWEI cloud API Explorer for details.
13391
+
13392
+
13393
+ :param request: Request instance for UpdateStarrocksParams
13394
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateStarrocksParamsRequest`
13395
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateStarrocksParamsResponse`
13396
+ """
13397
+ http_info = self._update_starrocks_params_http_info(request)
13398
+ return self._call_api(**http_info)
13399
+
13400
+ def update_starrocks_params_async_invoker(self, request):
13401
+ http_info = self._update_starrocks_params_http_info(request)
13402
+ return AsyncInvoker(self, http_info)
13403
+
13404
+ def _update_starrocks_params_http_info(self, request):
13405
+ http_info = {
13406
+ "method": "PUT",
13407
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/configurations",
13408
+ "request_type": request.__class__.__name__,
13409
+ "response_type": "UpdateStarrocksParamsResponse"
13410
+ }
13411
+
13412
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
13413
+
13414
+ cname = None
13415
+
13416
+ collection_formats = {}
13417
+
13418
+ path_params = {}
13419
+ if 'instance_id' in local_var_params:
13420
+ path_params['instance_id'] = local_var_params['instance_id']
13421
+
13422
+ query_params = []
13423
+
13424
+ header_params = {}
13425
+ if 'x_language' in local_var_params:
13426
+ header_params['X-Language'] = local_var_params['x_language']
13427
+
13428
+ form_params = {}
13429
+
13430
+ body = None
13431
+ if 'body' in local_var_params:
13432
+ body = local_var_params['body']
13433
+ if isinstance(request, SdkStreamRequest):
13434
+ body = request.get_file_stream()
13435
+
13436
+ response_headers = []
13437
+
13438
+ header_params['Content-Type'] = http_utils.select_header_content_type(
13439
+ ['application/json;charset=UTF-8'])
13440
+
13441
+ auth_settings = []
13442
+
13443
+ http_info["cname"] = cname
13444
+ http_info["collection_formats"] = collection_formats
13445
+ http_info["path_params"] = path_params
13446
+ http_info["query_params"] = query_params
13447
+ http_info["header_params"] = header_params
13448
+ http_info["post_params"] = form_params
13449
+ http_info["body"] = body
13450
+ http_info["response_headers"] = response_headers
13451
+
13452
+ return http_info
13453
+
11033
13454
  def delete_sql_filter_rule_async(self, request):
11034
13455
  """删除SQL限流规则
11035
13456