huaweicloudsdkgaussdb 3.1.95__py2.py3-none-any.whl → 3.1.96__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +69 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1101 -66
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1101 -66
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +69 -0
  5. huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_request.py +140 -0
  6. huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_response.py +116 -0
  7. huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_request.py +168 -0
  8. huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_response.py +116 -0
  9. huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_request.py +168 -0
  10. huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_response.py +141 -0
  11. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_request.py +171 -0
  12. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_response.py +116 -0
  13. huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_request.py +171 -0
  14. huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_response.py +116 -0
  15. huaweicloudsdkgaussdb/v3/model/htap_flavor_info_flavors.py +318 -0
  16. huaweicloudsdkgaussdb/v3/model/htap_instance_list_available_zones.py +173 -0
  17. huaweicloudsdkgaussdb/v3/model/htap_instance_list_instance_state.py +202 -0
  18. huaweicloudsdkgaussdb/v3/model/htap_instance_list_instances.py +832 -0
  19. huaweicloudsdkgaussdb/v3/model/htap_instance_list_network.py +173 -0
  20. huaweicloudsdkgaussdb/v3/model/htap_storage_type_storage_type.py +173 -0
  21. huaweicloudsdkgaussdb/v3/model/list_htap_data_store_request.py +143 -0
  22. huaweicloudsdkgaussdb/v3/model/list_htap_data_store_response.py +116 -0
  23. huaweicloudsdkgaussdb/v3/model/list_htap_flavor_request.py +230 -0
  24. huaweicloudsdkgaussdb/v3/model/list_htap_flavor_response.py +116 -0
  25. huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_request.py +143 -0
  26. huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_response.py +174 -0
  27. huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_request.py +171 -0
  28. huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_response.py +116 -0
  29. huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_request.py +171 -0
  30. huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_response.py +116 -0
  31. huaweicloudsdkgaussdb/v3/model/param_group.py +144 -0
  32. huaweicloudsdkgaussdb/v3/model/query_action.py +318 -0
  33. huaweicloudsdkgaussdb/v3/model/readable_node_infos.py +173 -0
  34. huaweicloudsdkgaussdb/v3/model/resource_check.py +138 -0
  35. huaweicloudsdkgaussdb/v3/model/resource_check_resource.py +367 -0
  36. huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_request.py +143 -0
  37. huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_response.py +116 -0
  38. huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_request.py +171 -0
  39. huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_response.py +116 -0
  40. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_request.py +228 -0
  41. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_response.py +145 -0
  42. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_users_user_details.py +198 -0
  43. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance.py +538 -0
  44. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_engine.py +144 -0
  45. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_pay_info.py +231 -0
  46. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +144 -0
  47. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_sys_tags.py +144 -0
  48. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_tags.py +144 -0
  49. huaweicloudsdkgaussdb/v3/model/sr_data_stores_datastores.py +173 -0
  50. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py +459 -0
  51. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_be_volume.py +142 -0
  52. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_engine.py +142 -0
  53. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_fe_volume.py +142 -0
  54. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_ha.py +114 -0
  55. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info.py +114 -0
  56. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info_sys_tags.py +142 -0
  57. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_info.py +228 -0
  58. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_sinfo.py +201 -0
  59. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_winfo.py +142 -0
  60. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_datastore.py +173 -0
  61. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_groups.py +231 -0
  62. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_instances.py +1292 -0
  63. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_nodes.py +1006 -0
  64. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_ops_window.py +173 -0
  65. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_port_info.py +115 -0
  66. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info.py +144 -0
  67. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_sys_tags.py +144 -0
  68. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_tags.py +144 -0
  69. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_volume.py +144 -0
  70. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_request.py +168 -0
  71. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_response.py +116 -0
  72. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_request.py +168 -0
  73. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_response.py +116 -0
  74. {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/METADATA +2 -2
  75. {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/RECORD +78 -9
  76. {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/LICENSE +0 -0
  77. {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/WHEEL +0 -0
  78. {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/top_level.txt +0 -0
@@ -8120,6 +8120,73 @@ class GaussDBAsyncClient(Client):
8120
8120
 
8121
8121
  return http_info
8122
8122
 
8123
+ def check_star_rocks_resource_async(self, request):
8124
+ """StarRocks资源检查
8125
+
8126
+ StarRocks资源检查。
8127
+
8128
+ Please refer to HUAWEI cloud API Explorer for details.
8129
+
8130
+
8131
+ :param request: Request instance for CheckStarRocksResource
8132
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CheckStarRocksResourceRequest`
8133
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckStarRocksResourceResponse`
8134
+ """
8135
+ http_info = self._check_star_rocks_resource_http_info(request)
8136
+ return self._call_api(**http_info)
8137
+
8138
+ def check_star_rocks_resource_async_invoker(self, request):
8139
+ http_info = self._check_star_rocks_resource_http_info(request)
8140
+ return AsyncInvoker(self, http_info)
8141
+
8142
+ def _check_star_rocks_resource_http_info(self, request):
8143
+ http_info = {
8144
+ "method": "POST",
8145
+ "resource_path": "/v3/{project_id}/starrocks/resource-check",
8146
+ "request_type": request.__class__.__name__,
8147
+ "response_type": "CheckStarRocksResourceResponse"
8148
+ }
8149
+
8150
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8151
+
8152
+ cname = None
8153
+
8154
+ collection_formats = {}
8155
+
8156
+ path_params = {}
8157
+
8158
+ query_params = []
8159
+
8160
+ header_params = {}
8161
+ if 'x_language' in local_var_params:
8162
+ header_params['X-Language'] = local_var_params['x_language']
8163
+
8164
+ form_params = {}
8165
+
8166
+ body = None
8167
+ if 'body' in local_var_params:
8168
+ body = local_var_params['body']
8169
+ if isinstance(request, SdkStreamRequest):
8170
+ body = request.get_file_stream()
8171
+
8172
+ response_headers = []
8173
+
8174
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8175
+ ['application/json;charset=UTF-8'])
8176
+
8177
+ auth_settings = []
8178
+
8179
+ http_info["cname"] = cname
8180
+ http_info["collection_formats"] = collection_formats
8181
+ http_info["path_params"] = path_params
8182
+ http_info["query_params"] = query_params
8183
+ http_info["header_params"] = header_params
8184
+ http_info["post_params"] = form_params
8185
+ http_info["body"] = body
8186
+ http_info["response_headers"] = response_headers
8187
+
8188
+ return http_info
8189
+
8123
8190
  def check_table_config_async(self, request):
8124
8191
  """HTAP数据同步表配置校验
8125
8192
 
@@ -8258,6 +8325,144 @@ class GaussDBAsyncClient(Client):
8258
8325
 
8259
8326
  return http_info
8260
8327
 
8328
+ def create_star_rocks_database_user_async(self, request):
8329
+ """创建数据库账号
8330
+
8331
+ 创建StarRocks数据库账号。
8332
+
8333
+ Please refer to HUAWEI cloud API Explorer for details.
8334
+
8335
+
8336
+ :param request: Request instance for CreateStarRocksDatabaseUser
8337
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDatabaseUserRequest`
8338
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDatabaseUserResponse`
8339
+ """
8340
+ http_info = self._create_star_rocks_database_user_http_info(request)
8341
+ return self._call_api(**http_info)
8342
+
8343
+ def create_star_rocks_database_user_async_invoker(self, request):
8344
+ http_info = self._create_star_rocks_database_user_http_info(request)
8345
+ return AsyncInvoker(self, http_info)
8346
+
8347
+ def _create_star_rocks_database_user_http_info(self, request):
8348
+ http_info = {
8349
+ "method": "POST",
8350
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
8351
+ "request_type": request.__class__.__name__,
8352
+ "response_type": "CreateStarRocksDatabaseUserResponse"
8353
+ }
8354
+
8355
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8356
+
8357
+ cname = None
8358
+
8359
+ collection_formats = {}
8360
+
8361
+ path_params = {}
8362
+ if 'instance_id' in local_var_params:
8363
+ path_params['instance_id'] = local_var_params['instance_id']
8364
+
8365
+ query_params = []
8366
+
8367
+ header_params = {}
8368
+ if 'x_language' in local_var_params:
8369
+ header_params['X-Language'] = local_var_params['x_language']
8370
+
8371
+ form_params = {}
8372
+
8373
+ body = None
8374
+ if 'body' in local_var_params:
8375
+ body = local_var_params['body']
8376
+ if isinstance(request, SdkStreamRequest):
8377
+ body = request.get_file_stream()
8378
+
8379
+ response_headers = []
8380
+
8381
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8382
+ ['application/json;charset=UTF-8'])
8383
+
8384
+ auth_settings = []
8385
+
8386
+ http_info["cname"] = cname
8387
+ http_info["collection_formats"] = collection_formats
8388
+ http_info["path_params"] = path_params
8389
+ http_info["query_params"] = query_params
8390
+ http_info["header_params"] = header_params
8391
+ http_info["post_params"] = form_params
8392
+ http_info["body"] = body
8393
+ http_info["response_headers"] = response_headers
8394
+
8395
+ return http_info
8396
+
8397
+ def create_starrocks_instance_async(self, request):
8398
+ """创建StarRocks实例
8399
+
8400
+ 创建StarRocks实例。
8401
+
8402
+ Please refer to HUAWEI cloud API Explorer for details.
8403
+
8404
+
8405
+ :param request: Request instance for CreateStarrocksInstance
8406
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarrocksInstanceRequest`
8407
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarrocksInstanceResponse`
8408
+ """
8409
+ http_info = self._create_starrocks_instance_http_info(request)
8410
+ return self._call_api(**http_info)
8411
+
8412
+ def create_starrocks_instance_async_invoker(self, request):
8413
+ http_info = self._create_starrocks_instance_http_info(request)
8414
+ return AsyncInvoker(self, http_info)
8415
+
8416
+ def _create_starrocks_instance_http_info(self, request):
8417
+ http_info = {
8418
+ "method": "POST",
8419
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks",
8420
+ "request_type": request.__class__.__name__,
8421
+ "response_type": "CreateStarrocksInstanceResponse"
8422
+ }
8423
+
8424
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8425
+
8426
+ cname = None
8427
+
8428
+ collection_formats = {}
8429
+
8430
+ path_params = {}
8431
+ if 'instance_id' in local_var_params:
8432
+ path_params['instance_id'] = local_var_params['instance_id']
8433
+
8434
+ query_params = []
8435
+
8436
+ header_params = {}
8437
+ if 'x_language' in local_var_params:
8438
+ header_params['X-Language'] = local_var_params['x_language']
8439
+
8440
+ form_params = {}
8441
+
8442
+ body = None
8443
+ if 'body' in local_var_params:
8444
+ body = local_var_params['body']
8445
+ if isinstance(request, SdkStreamRequest):
8446
+ body = request.get_file_stream()
8447
+
8448
+ response_headers = []
8449
+
8450
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8451
+ ['application/json;charset=UTF-8'])
8452
+
8453
+ auth_settings = []
8454
+
8455
+ http_info["cname"] = cname
8456
+ http_info["collection_formats"] = collection_formats
8457
+ http_info["path_params"] = path_params
8458
+ http_info["query_params"] = query_params
8459
+ http_info["header_params"] = header_params
8460
+ http_info["post_params"] = form_params
8461
+ http_info["body"] = body
8462
+ http_info["response_headers"] = response_headers
8463
+
8464
+ return http_info
8465
+
8261
8466
  def delete_star_rocks_data_replication_async(self, request):
8262
8467
  """删除StarRocks数据同步
8263
8468
 
@@ -8327,31 +8532,31 @@ class GaussDBAsyncClient(Client):
8327
8532
 
8328
8533
  return http_info
8329
8534
 
8330
- def list_star_rocks_data_bases_async(self, request):
8331
- """查询StarRocks数据库
8535
+ def delete_star_rocks_database_user_async(self, request):
8536
+ """删除数据库账户
8332
8537
 
8333
- 查询StarRocks数据库。
8538
+ 删除StarRocks数据库账户。
8334
8539
 
8335
8540
  Please refer to HUAWEI cloud API Explorer for details.
8336
8541
 
8337
8542
 
8338
- :param request: Request instance for ListStarRocksDataBases
8339
- :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesRequest`
8340
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesResponse`
8543
+ :param request: Request instance for DeleteStarRocksDatabaseUser
8544
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDatabaseUserRequest`
8545
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDatabaseUserResponse`
8341
8546
  """
8342
- http_info = self._list_star_rocks_data_bases_http_info(request)
8547
+ http_info = self._delete_star_rocks_database_user_http_info(request)
8343
8548
  return self._call_api(**http_info)
8344
8549
 
8345
- def list_star_rocks_data_bases_async_invoker(self, request):
8346
- http_info = self._list_star_rocks_data_bases_http_info(request)
8550
+ def delete_star_rocks_database_user_async_invoker(self, request):
8551
+ http_info = self._delete_star_rocks_database_user_http_info(request)
8347
8552
  return AsyncInvoker(self, http_info)
8348
8553
 
8349
- def _list_star_rocks_data_bases_http_info(self, request):
8554
+ def _delete_star_rocks_database_user_http_info(self, request):
8350
8555
  http_info = {
8351
- "method": "GET",
8352
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases",
8556
+ "method": "DELETE",
8557
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
8353
8558
  "request_type": request.__class__.__name__,
8354
- "response_type": "ListStarRocksDataBasesResponse"
8559
+ "response_type": "DeleteStarRocksDatabaseUserResponse"
8355
8560
  }
8356
8561
 
8357
8562
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -8365,12 +8570,8 @@ class GaussDBAsyncClient(Client):
8365
8570
  path_params['instance_id'] = local_var_params['instance_id']
8366
8571
 
8367
8572
  query_params = []
8368
- if 'limit' in local_var_params:
8369
- query_params.append(('limit', local_var_params['limit']))
8370
- if 'offset' in local_var_params:
8371
- query_params.append(('offset', local_var_params['offset']))
8372
- if 'database_name' in local_var_params:
8373
- query_params.append(('database_name', local_var_params['database_name']))
8573
+ if 'user_name' in local_var_params:
8574
+ query_params.append(('user_name', local_var_params['user_name']))
8374
8575
 
8375
8576
  header_params = {}
8376
8577
  if 'x_language' in local_var_params:
@@ -8400,31 +8601,31 @@ class GaussDBAsyncClient(Client):
8400
8601
 
8401
8602
  return http_info
8402
8603
 
8403
- def list_star_rocks_data_replication_config_async(self, request):
8404
- """查询StarRocks数据同步配置信息
8604
+ def delete_starrocks_instance_async(self, request):
8605
+ """删除StarRocks实例
8405
8606
 
8406
- 查询StarRocks数据同步配置信息。
8607
+ 删除StarRocks实例。
8407
8608
 
8408
8609
  Please refer to HUAWEI cloud API Explorer for details.
8409
8610
 
8410
8611
 
8411
- :param request: Request instance for ListStarRocksDataReplicationConfig
8412
- :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigRequest`
8413
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigResponse`
8612
+ :param request: Request instance for DeleteStarrocksInstance
8613
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarrocksInstanceRequest`
8614
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarrocksInstanceResponse`
8414
8615
  """
8415
- http_info = self._list_star_rocks_data_replication_config_http_info(request)
8616
+ http_info = self._delete_starrocks_instance_http_info(request)
8416
8617
  return self._call_api(**http_info)
8417
8618
 
8418
- def list_star_rocks_data_replication_config_async_invoker(self, request):
8419
- http_info = self._list_star_rocks_data_replication_config_http_info(request)
8619
+ def delete_starrocks_instance_async_invoker(self, request):
8620
+ http_info = self._delete_starrocks_instance_http_info(request)
8420
8621
  return AsyncInvoker(self, http_info)
8421
8622
 
8422
- def _list_star_rocks_data_replication_config_http_info(self, request):
8623
+ def _delete_starrocks_instance_http_info(self, request):
8423
8624
  http_info = {
8424
- "method": "GET",
8425
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/configuration",
8625
+ "method": "DELETE",
8626
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}",
8426
8627
  "request_type": request.__class__.__name__,
8427
- "response_type": "ListStarRocksDataReplicationConfigResponse"
8628
+ "response_type": "DeleteStarrocksInstanceResponse"
8428
8629
  }
8429
8630
 
8430
8631
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -8436,10 +8637,10 @@ class GaussDBAsyncClient(Client):
8436
8637
  path_params = {}
8437
8638
  if 'instance_id' in local_var_params:
8438
8639
  path_params['instance_id'] = local_var_params['instance_id']
8640
+ if 'starrocks_instance_id' in local_var_params:
8641
+ path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
8439
8642
 
8440
8643
  query_params = []
8441
- if 'task_name' in local_var_params:
8442
- query_params.append(('task_name', local_var_params['task_name']))
8443
8644
 
8444
8645
  header_params = {}
8445
8646
  if 'x_language' in local_var_params:
@@ -8469,31 +8670,31 @@ class GaussDBAsyncClient(Client):
8469
8670
 
8470
8671
  return http_info
8471
8672
 
8472
- def list_star_rocks_data_replications_async(self, request):
8473
- """查询StarRocks数据同步状态信息
8673
+ def list_htap_data_store_async(self, request):
8674
+ """HTAP引擎资源查询
8474
8675
 
8475
- 查询StarRocks数据同步状态信息。
8676
+ HTAP引擎资源查询。
8476
8677
 
8477
8678
  Please refer to HUAWEI cloud API Explorer for details.
8478
8679
 
8479
8680
 
8480
- :param request: Request instance for ListStarRocksDataReplications
8481
- :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsRequest`
8482
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsResponse`
8681
+ :param request: Request instance for ListHtapDataStore
8682
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapDataStoreRequest`
8683
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapDataStoreResponse`
8483
8684
  """
8484
- http_info = self._list_star_rocks_data_replications_http_info(request)
8685
+ http_info = self._list_htap_data_store_http_info(request)
8485
8686
  return self._call_api(**http_info)
8486
8687
 
8487
- def list_star_rocks_data_replications_async_invoker(self, request):
8488
- http_info = self._list_star_rocks_data_replications_http_info(request)
8688
+ def list_htap_data_store_async_invoker(self, request):
8689
+ http_info = self._list_htap_data_store_http_info(request)
8489
8690
  return AsyncInvoker(self, http_info)
8490
8691
 
8491
- def _list_star_rocks_data_replications_http_info(self, request):
8692
+ def _list_htap_data_store_http_info(self, request):
8492
8693
  http_info = {
8493
8694
  "method": "GET",
8494
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
8695
+ "resource_path": "/v3/{project_id}/htap/datastores/{engine_name}",
8495
8696
  "request_type": request.__class__.__name__,
8496
- "response_type": "ListStarRocksDataReplicationsResponse"
8697
+ "response_type": "ListHtapDataStoreResponse"
8497
8698
  }
8498
8699
 
8499
8700
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -8503,14 +8704,10 @@ class GaussDBAsyncClient(Client):
8503
8704
  collection_formats = {}
8504
8705
 
8505
8706
  path_params = {}
8506
- if 'instance_id' in local_var_params:
8507
- path_params['instance_id'] = local_var_params['instance_id']
8707
+ if 'engine_name' in local_var_params:
8708
+ path_params['engine_name'] = local_var_params['engine_name']
8508
8709
 
8509
8710
  query_params = []
8510
- if 'limit' in local_var_params:
8511
- query_params.append(('limit', local_var_params['limit']))
8512
- if 'offset' in local_var_params:
8513
- query_params.append(('offset', local_var_params['offset']))
8514
8711
 
8515
8712
  header_params = {}
8516
8713
  if 'x_language' in local_var_params:
@@ -8540,31 +8737,31 @@ class GaussDBAsyncClient(Client):
8540
8737
 
8541
8738
  return http_info
8542
8739
 
8543
- def list_star_rocks_db_parameters_async(self, request):
8544
- """查询StarRocks数据同步的库参数配置
8740
+ def list_htap_flavor_async(self, request):
8741
+ """HTAP查询规格信息
8545
8742
 
8546
- 查询StarRocks数据同步的库参数配置。
8743
+ HTAP查询规格信息。
8547
8744
 
8548
8745
  Please refer to HUAWEI cloud API Explorer for details.
8549
8746
 
8550
8747
 
8551
- :param request: Request instance for ListStarRocksDbParameters
8552
- :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersRequest`
8553
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersResponse`
8748
+ :param request: Request instance for ListHtapFlavor
8749
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapFlavorRequest`
8750
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapFlavorResponse`
8554
8751
  """
8555
- http_info = self._list_star_rocks_db_parameters_http_info(request)
8752
+ http_info = self._list_htap_flavor_http_info(request)
8556
8753
  return self._call_api(**http_info)
8557
8754
 
8558
- def list_star_rocks_db_parameters_async_invoker(self, request):
8559
- http_info = self._list_star_rocks_db_parameters_http_info(request)
8755
+ def list_htap_flavor_async_invoker(self, request):
8756
+ http_info = self._list_htap_flavor_http_info(request)
8560
8757
  return AsyncInvoker(self, http_info)
8561
8758
 
8562
- def _list_star_rocks_db_parameters_http_info(self, request):
8759
+ def _list_htap_flavor_http_info(self, request):
8563
8760
  http_info = {
8564
8761
  "method": "GET",
8565
- "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-parameters",
8762
+ "resource_path": "/v3/{project_id}/htap/flavors/{engine_name}",
8566
8763
  "request_type": request.__class__.__name__,
8567
- "response_type": "ListStarRocksDbParametersResponse"
8764
+ "response_type": "ListHtapFlavorResponse"
8568
8765
  }
8569
8766
 
8570
8767
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -8574,10 +8771,16 @@ class GaussDBAsyncClient(Client):
8574
8771
  collection_formats = {}
8575
8772
 
8576
8773
  path_params = {}
8577
- if 'instance_id' in local_var_params:
8578
- path_params['instance_id'] = local_var_params['instance_id']
8774
+ if 'engine_name' in local_var_params:
8775
+ path_params['engine_name'] = local_var_params['engine_name']
8579
8776
 
8580
8777
  query_params = []
8778
+ if 'availability_zone_mode' in local_var_params:
8779
+ query_params.append(('availability_zone_mode', local_var_params['availability_zone_mode']))
8780
+ if 'spec_code' in local_var_params:
8781
+ query_params.append(('spec_code', local_var_params['spec_code']))
8782
+ if 'version_name' in local_var_params:
8783
+ query_params.append(('version_name', local_var_params['version_name']))
8581
8784
 
8582
8785
  header_params = {}
8583
8786
  if 'x_language' in local_var_params:
@@ -8607,6 +8810,838 @@ class GaussDBAsyncClient(Client):
8607
8810
 
8608
8811
  return http_info
8609
8812
 
8813
+ def list_htap_instance_info_async(self, request):
8814
+ """查询HTAP实例列表
8815
+
8816
+ 查询HTAP实例列表。
8817
+
8818
+ Please refer to HUAWEI cloud API Explorer for details.
8819
+
8820
+
8821
+ :param request: Request instance for ListHtapInstanceInfo
8822
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapInstanceInfoRequest`
8823
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapInstanceInfoResponse`
8824
+ """
8825
+ http_info = self._list_htap_instance_info_http_info(request)
8826
+ return self._call_api(**http_info)
8827
+
8828
+ def list_htap_instance_info_async_invoker(self, request):
8829
+ http_info = self._list_htap_instance_info_http_info(request)
8830
+ return AsyncInvoker(self, http_info)
8831
+
8832
+ def _list_htap_instance_info_http_info(self, request):
8833
+ http_info = {
8834
+ "method": "GET",
8835
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/htap",
8836
+ "request_type": request.__class__.__name__,
8837
+ "response_type": "ListHtapInstanceInfoResponse"
8838
+ }
8839
+
8840
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8841
+
8842
+ cname = None
8843
+
8844
+ collection_formats = {}
8845
+
8846
+ path_params = {}
8847
+ if 'instance_id' in local_var_params:
8848
+ path_params['instance_id'] = local_var_params['instance_id']
8849
+
8850
+ query_params = []
8851
+
8852
+ header_params = {}
8853
+ if 'x_language' in local_var_params:
8854
+ header_params['X-Language'] = local_var_params['x_language']
8855
+
8856
+ form_params = {}
8857
+
8858
+ body = None
8859
+ if isinstance(request, SdkStreamRequest):
8860
+ body = request.get_file_stream()
8861
+
8862
+ response_headers = []
8863
+
8864
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8865
+ ['application/json'])
8866
+
8867
+ auth_settings = []
8868
+
8869
+ http_info["cname"] = cname
8870
+ http_info["collection_formats"] = collection_formats
8871
+ http_info["path_params"] = path_params
8872
+ http_info["query_params"] = query_params
8873
+ http_info["header_params"] = header_params
8874
+ http_info["post_params"] = form_params
8875
+ http_info["body"] = body
8876
+ http_info["response_headers"] = response_headers
8877
+
8878
+ return http_info
8879
+
8880
+ def list_htap_storage_type_async(self, request):
8881
+ """获取HTAP实例存储类型
8882
+
8883
+ 获取HTAP实例存储类型。
8884
+
8885
+ Please refer to HUAWEI cloud API Explorer for details.
8886
+
8887
+
8888
+ :param request: Request instance for ListHtapStorageType
8889
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapStorageTypeRequest`
8890
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapStorageTypeResponse`
8891
+ """
8892
+ http_info = self._list_htap_storage_type_http_info(request)
8893
+ return self._call_api(**http_info)
8894
+
8895
+ def list_htap_storage_type_async_invoker(self, request):
8896
+ http_info = self._list_htap_storage_type_http_info(request)
8897
+ return AsyncInvoker(self, http_info)
8898
+
8899
+ def _list_htap_storage_type_http_info(self, request):
8900
+ http_info = {
8901
+ "method": "GET",
8902
+ "resource_path": "/v3/{project_id}/htap/storage-type/{database}",
8903
+ "request_type": request.__class__.__name__,
8904
+ "response_type": "ListHtapStorageTypeResponse"
8905
+ }
8906
+
8907
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8908
+
8909
+ cname = None
8910
+
8911
+ collection_formats = {}
8912
+
8913
+ path_params = {}
8914
+ if 'database' in local_var_params:
8915
+ path_params['database'] = local_var_params['database']
8916
+
8917
+ query_params = []
8918
+ if 'version_name' in local_var_params:
8919
+ query_params.append(('version_name', local_var_params['version_name']))
8920
+
8921
+ header_params = {}
8922
+ if 'x_language' in local_var_params:
8923
+ header_params['X-Language'] = local_var_params['x_language']
8924
+
8925
+ form_params = {}
8926
+
8927
+ body = None
8928
+ if isinstance(request, SdkStreamRequest):
8929
+ body = request.get_file_stream()
8930
+
8931
+ response_headers = []
8932
+
8933
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8934
+ ['application/json'])
8935
+
8936
+ auth_settings = []
8937
+
8938
+ http_info["cname"] = cname
8939
+ http_info["collection_formats"] = collection_formats
8940
+ http_info["path_params"] = path_params
8941
+ http_info["query_params"] = query_params
8942
+ http_info["header_params"] = header_params
8943
+ http_info["post_params"] = form_params
8944
+ http_info["body"] = body
8945
+ http_info["response_headers"] = response_headers
8946
+
8947
+ return http_info
8948
+
8949
+ def list_star_rocks_data_bases_async(self, request):
8950
+ """查询StarRocks数据库
8951
+
8952
+ 查询StarRocks数据库。
8953
+
8954
+ Please refer to HUAWEI cloud API Explorer for details.
8955
+
8956
+
8957
+ :param request: Request instance for ListStarRocksDataBases
8958
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesRequest`
8959
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesResponse`
8960
+ """
8961
+ http_info = self._list_star_rocks_data_bases_http_info(request)
8962
+ return self._call_api(**http_info)
8963
+
8964
+ def list_star_rocks_data_bases_async_invoker(self, request):
8965
+ http_info = self._list_star_rocks_data_bases_http_info(request)
8966
+ return AsyncInvoker(self, http_info)
8967
+
8968
+ def _list_star_rocks_data_bases_http_info(self, request):
8969
+ http_info = {
8970
+ "method": "GET",
8971
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases",
8972
+ "request_type": request.__class__.__name__,
8973
+ "response_type": "ListStarRocksDataBasesResponse"
8974
+ }
8975
+
8976
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8977
+
8978
+ cname = None
8979
+
8980
+ collection_formats = {}
8981
+
8982
+ path_params = {}
8983
+ if 'instance_id' in local_var_params:
8984
+ path_params['instance_id'] = local_var_params['instance_id']
8985
+
8986
+ query_params = []
8987
+ if 'limit' in local_var_params:
8988
+ query_params.append(('limit', local_var_params['limit']))
8989
+ if 'offset' in local_var_params:
8990
+ query_params.append(('offset', local_var_params['offset']))
8991
+ if 'database_name' in local_var_params:
8992
+ query_params.append(('database_name', local_var_params['database_name']))
8993
+
8994
+ header_params = {}
8995
+ if 'x_language' in local_var_params:
8996
+ header_params['X-Language'] = local_var_params['x_language']
8997
+
8998
+ form_params = {}
8999
+
9000
+ body = None
9001
+ if isinstance(request, SdkStreamRequest):
9002
+ body = request.get_file_stream()
9003
+
9004
+ response_headers = []
9005
+
9006
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9007
+ ['application/json'])
9008
+
9009
+ auth_settings = []
9010
+
9011
+ http_info["cname"] = cname
9012
+ http_info["collection_formats"] = collection_formats
9013
+ http_info["path_params"] = path_params
9014
+ http_info["query_params"] = query_params
9015
+ http_info["header_params"] = header_params
9016
+ http_info["post_params"] = form_params
9017
+ http_info["body"] = body
9018
+ http_info["response_headers"] = response_headers
9019
+
9020
+ return http_info
9021
+
9022
+ def list_star_rocks_data_replication_config_async(self, request):
9023
+ """查询StarRocks数据同步配置信息
9024
+
9025
+ 查询StarRocks数据同步配置信息。
9026
+
9027
+ Please refer to HUAWEI cloud API Explorer for details.
9028
+
9029
+
9030
+ :param request: Request instance for ListStarRocksDataReplicationConfig
9031
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigRequest`
9032
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigResponse`
9033
+ """
9034
+ http_info = self._list_star_rocks_data_replication_config_http_info(request)
9035
+ return self._call_api(**http_info)
9036
+
9037
+ def list_star_rocks_data_replication_config_async_invoker(self, request):
9038
+ http_info = self._list_star_rocks_data_replication_config_http_info(request)
9039
+ return AsyncInvoker(self, http_info)
9040
+
9041
+ def _list_star_rocks_data_replication_config_http_info(self, request):
9042
+ http_info = {
9043
+ "method": "GET",
9044
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/configuration",
9045
+ "request_type": request.__class__.__name__,
9046
+ "response_type": "ListStarRocksDataReplicationConfigResponse"
9047
+ }
9048
+
9049
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9050
+
9051
+ cname = None
9052
+
9053
+ collection_formats = {}
9054
+
9055
+ path_params = {}
9056
+ if 'instance_id' in local_var_params:
9057
+ path_params['instance_id'] = local_var_params['instance_id']
9058
+
9059
+ query_params = []
9060
+ if 'task_name' in local_var_params:
9061
+ query_params.append(('task_name', local_var_params['task_name']))
9062
+
9063
+ header_params = {}
9064
+ if 'x_language' in local_var_params:
9065
+ header_params['X-Language'] = local_var_params['x_language']
9066
+
9067
+ form_params = {}
9068
+
9069
+ body = None
9070
+ if isinstance(request, SdkStreamRequest):
9071
+ body = request.get_file_stream()
9072
+
9073
+ response_headers = []
9074
+
9075
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9076
+ ['application/json'])
9077
+
9078
+ auth_settings = []
9079
+
9080
+ http_info["cname"] = cname
9081
+ http_info["collection_formats"] = collection_formats
9082
+ http_info["path_params"] = path_params
9083
+ http_info["query_params"] = query_params
9084
+ http_info["header_params"] = header_params
9085
+ http_info["post_params"] = form_params
9086
+ http_info["body"] = body
9087
+ http_info["response_headers"] = response_headers
9088
+
9089
+ return http_info
9090
+
9091
+ def list_star_rocks_data_replications_async(self, request):
9092
+ """查询StarRocks数据同步状态信息
9093
+
9094
+ 查询StarRocks数据同步状态信息。
9095
+
9096
+ Please refer to HUAWEI cloud API Explorer for details.
9097
+
9098
+
9099
+ :param request: Request instance for ListStarRocksDataReplications
9100
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsRequest`
9101
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsResponse`
9102
+ """
9103
+ http_info = self._list_star_rocks_data_replications_http_info(request)
9104
+ return self._call_api(**http_info)
9105
+
9106
+ def list_star_rocks_data_replications_async_invoker(self, request):
9107
+ http_info = self._list_star_rocks_data_replications_http_info(request)
9108
+ return AsyncInvoker(self, http_info)
9109
+
9110
+ def _list_star_rocks_data_replications_http_info(self, request):
9111
+ http_info = {
9112
+ "method": "GET",
9113
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
9114
+ "request_type": request.__class__.__name__,
9115
+ "response_type": "ListStarRocksDataReplicationsResponse"
9116
+ }
9117
+
9118
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9119
+
9120
+ cname = None
9121
+
9122
+ collection_formats = {}
9123
+
9124
+ path_params = {}
9125
+ if 'instance_id' in local_var_params:
9126
+ path_params['instance_id'] = local_var_params['instance_id']
9127
+
9128
+ query_params = []
9129
+ if 'limit' in local_var_params:
9130
+ query_params.append(('limit', local_var_params['limit']))
9131
+ if 'offset' in local_var_params:
9132
+ query_params.append(('offset', local_var_params['offset']))
9133
+
9134
+ header_params = {}
9135
+ if 'x_language' in local_var_params:
9136
+ header_params['X-Language'] = local_var_params['x_language']
9137
+
9138
+ form_params = {}
9139
+
9140
+ body = None
9141
+ if isinstance(request, SdkStreamRequest):
9142
+ body = request.get_file_stream()
9143
+
9144
+ response_headers = []
9145
+
9146
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9147
+ ['application/json'])
9148
+
9149
+ auth_settings = []
9150
+
9151
+ http_info["cname"] = cname
9152
+ http_info["collection_formats"] = collection_formats
9153
+ http_info["path_params"] = path_params
9154
+ http_info["query_params"] = query_params
9155
+ http_info["header_params"] = header_params
9156
+ http_info["post_params"] = form_params
9157
+ http_info["body"] = body
9158
+ http_info["response_headers"] = response_headers
9159
+
9160
+ return http_info
9161
+
9162
+ def list_star_rocks_db_parameters_async(self, request):
9163
+ """查询StarRocks数据同步的库参数配置
9164
+
9165
+ 查询StarRocks数据同步的库参数配置。
9166
+
9167
+ Please refer to HUAWEI cloud API Explorer for details.
9168
+
9169
+
9170
+ :param request: Request instance for ListStarRocksDbParameters
9171
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersRequest`
9172
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersResponse`
9173
+ """
9174
+ http_info = self._list_star_rocks_db_parameters_http_info(request)
9175
+ return self._call_api(**http_info)
9176
+
9177
+ def list_star_rocks_db_parameters_async_invoker(self, request):
9178
+ http_info = self._list_star_rocks_db_parameters_http_info(request)
9179
+ return AsyncInvoker(self, http_info)
9180
+
9181
+ def _list_star_rocks_db_parameters_http_info(self, request):
9182
+ http_info = {
9183
+ "method": "GET",
9184
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-parameters",
9185
+ "request_type": request.__class__.__name__,
9186
+ "response_type": "ListStarRocksDbParametersResponse"
9187
+ }
9188
+
9189
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9190
+
9191
+ cname = None
9192
+
9193
+ collection_formats = {}
9194
+
9195
+ path_params = {}
9196
+ if 'instance_id' in local_var_params:
9197
+ path_params['instance_id'] = local_var_params['instance_id']
9198
+
9199
+ query_params = []
9200
+
9201
+ header_params = {}
9202
+ if 'x_language' in local_var_params:
9203
+ header_params['X-Language'] = local_var_params['x_language']
9204
+
9205
+ form_params = {}
9206
+
9207
+ body = None
9208
+ if isinstance(request, SdkStreamRequest):
9209
+ body = request.get_file_stream()
9210
+
9211
+ response_headers = []
9212
+
9213
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9214
+ ['application/json'])
9215
+
9216
+ auth_settings = []
9217
+
9218
+ http_info["cname"] = cname
9219
+ http_info["collection_formats"] = collection_formats
9220
+ http_info["path_params"] = path_params
9221
+ http_info["query_params"] = query_params
9222
+ http_info["header_params"] = header_params
9223
+ http_info["post_params"] = form_params
9224
+ http_info["body"] = body
9225
+ http_info["response_headers"] = response_headers
9226
+
9227
+ return http_info
9228
+
9229
+ def list_starrocks_instance_info_async(self, request):
9230
+ """查询StarRocks实例
9231
+
9232
+ 查询StarRocks实例。
9233
+
9234
+ Please refer to HUAWEI cloud API Explorer for details.
9235
+
9236
+
9237
+ :param request: Request instance for ListStarrocksInstanceInfo
9238
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarrocksInstanceInfoRequest`
9239
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarrocksInstanceInfoResponse`
9240
+ """
9241
+ http_info = self._list_starrocks_instance_info_http_info(request)
9242
+ return self._call_api(**http_info)
9243
+
9244
+ def list_starrocks_instance_info_async_invoker(self, request):
9245
+ http_info = self._list_starrocks_instance_info_http_info(request)
9246
+ return AsyncInvoker(self, http_info)
9247
+
9248
+ def _list_starrocks_instance_info_http_info(self, request):
9249
+ http_info = {
9250
+ "method": "GET",
9251
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}",
9252
+ "request_type": request.__class__.__name__,
9253
+ "response_type": "ListStarrocksInstanceInfoResponse"
9254
+ }
9255
+
9256
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9257
+
9258
+ cname = None
9259
+
9260
+ collection_formats = {}
9261
+
9262
+ path_params = {}
9263
+ if 'instance_id' in local_var_params:
9264
+ path_params['instance_id'] = local_var_params['instance_id']
9265
+ if 'starrocks_instance_id' in local_var_params:
9266
+ path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
9267
+
9268
+ query_params = []
9269
+
9270
+ header_params = {}
9271
+ if 'x_language' in local_var_params:
9272
+ header_params['X-Language'] = local_var_params['x_language']
9273
+
9274
+ form_params = {}
9275
+
9276
+ body = None
9277
+ if isinstance(request, SdkStreamRequest):
9278
+ body = request.get_file_stream()
9279
+
9280
+ response_headers = []
9281
+
9282
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9283
+ ['application/json'])
9284
+
9285
+ auth_settings = []
9286
+
9287
+ http_info["cname"] = cname
9288
+ http_info["collection_formats"] = collection_formats
9289
+ http_info["path_params"] = path_params
9290
+ http_info["query_params"] = query_params
9291
+ http_info["header_params"] = header_params
9292
+ http_info["post_params"] = form_params
9293
+ http_info["body"] = body
9294
+ http_info["response_headers"] = response_headers
9295
+
9296
+ return http_info
9297
+
9298
+ def restart_starrocks_instance_async(self, request):
9299
+ """重启StarRocks实例
9300
+
9301
+ 重启StarRocks实例。
9302
+
9303
+ Please refer to HUAWEI cloud API Explorer for details.
9304
+
9305
+
9306
+ :param request: Request instance for RestartStarrocksInstance
9307
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksInstanceRequest`
9308
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksInstanceResponse`
9309
+ """
9310
+ http_info = self._restart_starrocks_instance_http_info(request)
9311
+ return self._call_api(**http_info)
9312
+
9313
+ def restart_starrocks_instance_async_invoker(self, request):
9314
+ http_info = self._restart_starrocks_instance_http_info(request)
9315
+ return AsyncInvoker(self, http_info)
9316
+
9317
+ def _restart_starrocks_instance_http_info(self, request):
9318
+ http_info = {
9319
+ "method": "PUT",
9320
+ "resource_path": "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/restart",
9321
+ "request_type": request.__class__.__name__,
9322
+ "response_type": "RestartStarrocksInstanceResponse"
9323
+ }
9324
+
9325
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9326
+
9327
+ cname = None
9328
+
9329
+ collection_formats = {}
9330
+
9331
+ path_params = {}
9332
+ if 'starrocks_instance_id' in local_var_params:
9333
+ path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
9334
+
9335
+ query_params = []
9336
+
9337
+ header_params = {}
9338
+ if 'x_language' in local_var_params:
9339
+ header_params['X-Language'] = local_var_params['x_language']
9340
+
9341
+ form_params = {}
9342
+
9343
+ body = None
9344
+ if isinstance(request, SdkStreamRequest):
9345
+ body = request.get_file_stream()
9346
+
9347
+ response_headers = []
9348
+
9349
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9350
+ ['application/json'])
9351
+
9352
+ auth_settings = []
9353
+
9354
+ http_info["cname"] = cname
9355
+ http_info["collection_formats"] = collection_formats
9356
+ http_info["path_params"] = path_params
9357
+ http_info["query_params"] = query_params
9358
+ http_info["header_params"] = header_params
9359
+ http_info["post_params"] = form_params
9360
+ http_info["body"] = body
9361
+ http_info["response_headers"] = response_headers
9362
+
9363
+ return http_info
9364
+
9365
+ def restart_starrocks_node_async(self, request):
9366
+ """重启StarRocks节点
9367
+
9368
+ 重启StarRocks节点。
9369
+
9370
+ Please refer to HUAWEI cloud API Explorer for details.
9371
+
9372
+
9373
+ :param request: Request instance for RestartStarrocksNode
9374
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksNodeRequest`
9375
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksNodeResponse`
9376
+ """
9377
+ http_info = self._restart_starrocks_node_http_info(request)
9378
+ return self._call_api(**http_info)
9379
+
9380
+ def restart_starrocks_node_async_invoker(self, request):
9381
+ http_info = self._restart_starrocks_node_http_info(request)
9382
+ return AsyncInvoker(self, http_info)
9383
+
9384
+ def _restart_starrocks_node_http_info(self, request):
9385
+ http_info = {
9386
+ "method": "PUT",
9387
+ "resource_path": "/v3/{project_id}/instances/{starrocks_instance_id}/starrocks/{starrocks_node_id}/restart",
9388
+ "request_type": request.__class__.__name__,
9389
+ "response_type": "RestartStarrocksNodeResponse"
9390
+ }
9391
+
9392
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9393
+
9394
+ cname = None
9395
+
9396
+ collection_formats = {}
9397
+
9398
+ path_params = {}
9399
+ if 'starrocks_node_id' in local_var_params:
9400
+ path_params['starrocks_node_id'] = local_var_params['starrocks_node_id']
9401
+ if 'starrocks_instance_id' in local_var_params:
9402
+ path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
9403
+
9404
+ query_params = []
9405
+
9406
+ header_params = {}
9407
+ if 'x_language' in local_var_params:
9408
+ header_params['X-Language'] = local_var_params['x_language']
9409
+
9410
+ form_params = {}
9411
+
9412
+ body = None
9413
+ if isinstance(request, SdkStreamRequest):
9414
+ body = request.get_file_stream()
9415
+
9416
+ response_headers = []
9417
+
9418
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9419
+ ['application/json'])
9420
+
9421
+ auth_settings = []
9422
+
9423
+ http_info["cname"] = cname
9424
+ http_info["collection_formats"] = collection_formats
9425
+ http_info["path_params"] = path_params
9426
+ http_info["query_params"] = query_params
9427
+ http_info["header_params"] = header_params
9428
+ http_info["post_params"] = form_params
9429
+ http_info["body"] = body
9430
+ http_info["response_headers"] = response_headers
9431
+
9432
+ return http_info
9433
+
9434
+ def show_star_rocks_database_user_async(self, request):
9435
+ """查询数据库账户
9436
+
9437
+ 查询StarRocks数据库账户。
9438
+
9439
+ Please refer to HUAWEI cloud API Explorer for details.
9440
+
9441
+
9442
+ :param request: Request instance for ShowStarRocksDatabaseUser
9443
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUserRequest`
9444
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUserResponse`
9445
+ """
9446
+ http_info = self._show_star_rocks_database_user_http_info(request)
9447
+ return self._call_api(**http_info)
9448
+
9449
+ def show_star_rocks_database_user_async_invoker(self, request):
9450
+ http_info = self._show_star_rocks_database_user_http_info(request)
9451
+ return AsyncInvoker(self, http_info)
9452
+
9453
+ def _show_star_rocks_database_user_http_info(self, request):
9454
+ http_info = {
9455
+ "method": "GET",
9456
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
9457
+ "request_type": request.__class__.__name__,
9458
+ "response_type": "ShowStarRocksDatabaseUserResponse"
9459
+ }
9460
+
9461
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9462
+
9463
+ cname = None
9464
+
9465
+ collection_formats = {}
9466
+
9467
+ path_params = {}
9468
+ if 'instance_id' in local_var_params:
9469
+ path_params['instance_id'] = local_var_params['instance_id']
9470
+
9471
+ query_params = []
9472
+ if 'user_name' in local_var_params:
9473
+ query_params.append(('user_name', local_var_params['user_name']))
9474
+ if 'limit' in local_var_params:
9475
+ query_params.append(('limit', local_var_params['limit']))
9476
+ if 'offset' in local_var_params:
9477
+ query_params.append(('offset', local_var_params['offset']))
9478
+
9479
+ header_params = {}
9480
+ if 'x_language' in local_var_params:
9481
+ header_params['X-Language'] = local_var_params['x_language']
9482
+
9483
+ form_params = {}
9484
+
9485
+ body = None
9486
+ if isinstance(request, SdkStreamRequest):
9487
+ body = request.get_file_stream()
9488
+
9489
+ response_headers = []
9490
+
9491
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9492
+ ['application/json'])
9493
+
9494
+ auth_settings = []
9495
+
9496
+ http_info["cname"] = cname
9497
+ http_info["collection_formats"] = collection_formats
9498
+ http_info["path_params"] = path_params
9499
+ http_info["query_params"] = query_params
9500
+ http_info["header_params"] = header_params
9501
+ http_info["post_params"] = form_params
9502
+ http_info["body"] = body
9503
+ http_info["response_headers"] = response_headers
9504
+
9505
+ return http_info
9506
+
9507
+ def update_star_rocks_database_user_password_async(self, request):
9508
+ """修改数据库账号密码
9509
+
9510
+ 修改StarRocks数据库账号密码。
9511
+
9512
+ Please refer to HUAWEI cloud API Explorer for details.
9513
+
9514
+
9515
+ :param request: Request instance for UpdateStarRocksDatabaseUserPassword
9516
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateStarRocksDatabaseUserPasswordRequest`
9517
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateStarRocksDatabaseUserPasswordResponse`
9518
+ """
9519
+ http_info = self._update_star_rocks_database_user_password_http_info(request)
9520
+ return self._call_api(**http_info)
9521
+
9522
+ def update_star_rocks_database_user_password_async_invoker(self, request):
9523
+ http_info = self._update_star_rocks_database_user_password_http_info(request)
9524
+ return AsyncInvoker(self, http_info)
9525
+
9526
+ def _update_star_rocks_database_user_password_http_info(self, request):
9527
+ http_info = {
9528
+ "method": "PUT",
9529
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users/password",
9530
+ "request_type": request.__class__.__name__,
9531
+ "response_type": "UpdateStarRocksDatabaseUserPasswordResponse"
9532
+ }
9533
+
9534
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9535
+
9536
+ cname = None
9537
+
9538
+ collection_formats = {}
9539
+
9540
+ path_params = {}
9541
+ if 'instance_id' in local_var_params:
9542
+ path_params['instance_id'] = local_var_params['instance_id']
9543
+
9544
+ query_params = []
9545
+
9546
+ header_params = {}
9547
+ if 'x_language' in local_var_params:
9548
+ header_params['X-Language'] = local_var_params['x_language']
9549
+
9550
+ form_params = {}
9551
+
9552
+ body = None
9553
+ if 'body' in local_var_params:
9554
+ body = local_var_params['body']
9555
+ if isinstance(request, SdkStreamRequest):
9556
+ body = request.get_file_stream()
9557
+
9558
+ response_headers = []
9559
+
9560
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9561
+ ['application/json;charset=UTF-8'])
9562
+
9563
+ auth_settings = []
9564
+
9565
+ http_info["cname"] = cname
9566
+ http_info["collection_formats"] = collection_formats
9567
+ http_info["path_params"] = path_params
9568
+ http_info["query_params"] = query_params
9569
+ http_info["header_params"] = header_params
9570
+ http_info["post_params"] = form_params
9571
+ http_info["body"] = body
9572
+ http_info["response_headers"] = response_headers
9573
+
9574
+ return http_info
9575
+
9576
+ def update_star_rocks_database_user_permission_async(self, request):
9577
+ """修改数据库账号权限
9578
+
9579
+ 修改StarRocks数据库账号权限。
9580
+
9581
+ Please refer to HUAWEI cloud API Explorer for details.
9582
+
9583
+
9584
+ :param request: Request instance for UpdateStarRocksDatabaseUserPermission
9585
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateStarRocksDatabaseUserPermissionRequest`
9586
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateStarRocksDatabaseUserPermissionResponse`
9587
+ """
9588
+ http_info = self._update_star_rocks_database_user_permission_http_info(request)
9589
+ return self._call_api(**http_info)
9590
+
9591
+ def update_star_rocks_database_user_permission_async_invoker(self, request):
9592
+ http_info = self._update_star_rocks_database_user_permission_http_info(request)
9593
+ return AsyncInvoker(self, http_info)
9594
+
9595
+ def _update_star_rocks_database_user_permission_http_info(self, request):
9596
+ http_info = {
9597
+ "method": "PUT",
9598
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users/permission",
9599
+ "request_type": request.__class__.__name__,
9600
+ "response_type": "UpdateStarRocksDatabaseUserPermissionResponse"
9601
+ }
9602
+
9603
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9604
+
9605
+ cname = None
9606
+
9607
+ collection_formats = {}
9608
+
9609
+ path_params = {}
9610
+ if 'instance_id' in local_var_params:
9611
+ path_params['instance_id'] = local_var_params['instance_id']
9612
+
9613
+ query_params = []
9614
+
9615
+ header_params = {}
9616
+ if 'x_language' in local_var_params:
9617
+ header_params['X-Language'] = local_var_params['x_language']
9618
+
9619
+ form_params = {}
9620
+
9621
+ body = None
9622
+ if 'body' in local_var_params:
9623
+ body = local_var_params['body']
9624
+ if isinstance(request, SdkStreamRequest):
9625
+ body = request.get_file_stream()
9626
+
9627
+ response_headers = []
9628
+
9629
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9630
+ ['application/json;charset=UTF-8'])
9631
+
9632
+ auth_settings = []
9633
+
9634
+ http_info["cname"] = cname
9635
+ http_info["collection_formats"] = collection_formats
9636
+ http_info["path_params"] = path_params
9637
+ http_info["query_params"] = query_params
9638
+ http_info["header_params"] = header_params
9639
+ http_info["post_params"] = form_params
9640
+ http_info["body"] = body
9641
+ http_info["response_headers"] = response_headers
9642
+
9643
+ return http_info
9644
+
8610
9645
  def delete_sql_filter_rule_async(self, request):
8611
9646
  """删除SQL限流规则
8612
9647