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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +97 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1591 -0
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1591 -0
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +97 -0
  5. huaweicloudsdkgaussdb/v3/model/check_data_base_config_request.py +167 -0
  6. huaweicloudsdkgaussdb/v3/model/check_data_base_config_response.py +232 -0
  7. huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_request.py +140 -0
  8. huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_response.py +116 -0
  9. huaweicloudsdkgaussdb/v3/model/check_table_config_request.py +167 -0
  10. huaweicloudsdkgaussdb/v3/model/check_table_config_response.py +203 -0
  11. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication.py +227 -0
  12. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_request.py +167 -0
  13. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_response.py +116 -0
  14. huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_request.py +168 -0
  15. huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_response.py +116 -0
  16. huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_request.py +168 -0
  17. huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_response.py +141 -0
  18. huaweicloudsdkgaussdb/v3/model/data_base_info.py +144 -0
  19. huaweicloudsdkgaussdb/v3/model/db_config.py +144 -0
  20. huaweicloudsdkgaussdb/v3/model/db_config_check_request_v3.py +285 -0
  21. huaweicloudsdkgaussdb/v3/model/db_config_check_result.py +173 -0
  22. huaweicloudsdkgaussdb/v3/model/db_parameter.py +231 -0
  23. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication.py +115 -0
  24. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_request.py +167 -0
  25. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_response.py +116 -0
  26. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_request.py +171 -0
  27. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_response.py +116 -0
  28. huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_request.py +171 -0
  29. huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_response.py +116 -0
  30. huaweicloudsdkgaussdb/v3/model/htap_flavor_info_flavors.py +318 -0
  31. huaweicloudsdkgaussdb/v3/model/htap_instance_list_available_zones.py +173 -0
  32. huaweicloudsdkgaussdb/v3/model/htap_instance_list_instance_state.py +202 -0
  33. huaweicloudsdkgaussdb/v3/model/htap_instance_list_instances.py +832 -0
  34. huaweicloudsdkgaussdb/v3/model/htap_instance_list_network.py +173 -0
  35. huaweicloudsdkgaussdb/v3/model/htap_storage_type_storage_type.py +173 -0
  36. huaweicloudsdkgaussdb/v3/model/list_htap_data_store_request.py +143 -0
  37. huaweicloudsdkgaussdb/v3/model/list_htap_data_store_response.py +116 -0
  38. huaweicloudsdkgaussdb/v3/model/list_htap_flavor_request.py +230 -0
  39. huaweicloudsdkgaussdb/v3/model/list_htap_flavor_response.py +116 -0
  40. huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_request.py +143 -0
  41. huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_response.py +174 -0
  42. huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_request.py +171 -0
  43. huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_response.py +116 -0
  44. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_request.py +229 -0
  45. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_response.py +174 -0
  46. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_request.py +170 -0
  47. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_response.py +336 -0
  48. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_request.py +200 -0
  49. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_response.py +174 -0
  50. huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_request.py +142 -0
  51. huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_response.py +116 -0
  52. huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_request.py +171 -0
  53. huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_response.py +116 -0
  54. huaweicloudsdkgaussdb/v3/model/param_group.py +144 -0
  55. huaweicloudsdkgaussdb/v3/model/query_action.py +318 -0
  56. huaweicloudsdkgaussdb/v3/model/readable_node_infos.py +173 -0
  57. huaweicloudsdkgaussdb/v3/model/resource_check.py +138 -0
  58. huaweicloudsdkgaussdb/v3/model/resource_check_resource.py +367 -0
  59. huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_request.py +143 -0
  60. huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_response.py +116 -0
  61. huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_request.py +171 -0
  62. huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_response.py +116 -0
  63. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_request.py +228 -0
  64. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_response.py +145 -0
  65. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_users_user_details.py +198 -0
  66. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance.py +538 -0
  67. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_engine.py +144 -0
  68. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_pay_info.py +231 -0
  69. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +144 -0
  70. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_sys_tags.py +144 -0
  71. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_tags.py +144 -0
  72. huaweicloudsdkgaussdb/v3/model/sr_data_stores_datastores.py +173 -0
  73. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py +459 -0
  74. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_be_volume.py +142 -0
  75. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_engine.py +142 -0
  76. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_fe_volume.py +142 -0
  77. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_ha.py +114 -0
  78. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info.py +114 -0
  79. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info_sys_tags.py +142 -0
  80. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_info.py +228 -0
  81. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_sinfo.py +201 -0
  82. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_winfo.py +142 -0
  83. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_datastore.py +173 -0
  84. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_groups.py +231 -0
  85. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_instances.py +1292 -0
  86. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_nodes.py +1006 -0
  87. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_ops_window.py +173 -0
  88. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_port_info.py +115 -0
  89. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info.py +144 -0
  90. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_sys_tags.py +144 -0
  91. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_tags.py +144 -0
  92. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_volume.py +144 -0
  93. huaweicloudsdkgaussdb/v3/model/star_rocks_replication_info.py +318 -0
  94. huaweicloudsdkgaussdb/v3/model/table_config_check_request_v3.py +285 -0
  95. huaweicloudsdkgaussdb/v3/model/table_config_check_result.py +173 -0
  96. huaweicloudsdkgaussdb/v3/model/table_repl_config.py +173 -0
  97. huaweicloudsdkgaussdb/v3/model/tables_config.py +144 -0
  98. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_request.py +168 -0
  99. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_response.py +116 -0
  100. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_request.py +168 -0
  101. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_response.py +116 -0
  102. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/METADATA +2 -2
  103. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/RECORD +106 -9
  104. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/LICENSE +0 -0
  105. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/WHEEL +0 -0
  106. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/top_level.txt +0 -0
@@ -8051,6 +8051,1597 @@ class GaussDBClient(Client):
8051
8051
 
8052
8052
  return http_info
8053
8053
 
8054
+ def check_data_base_config(self, request):
8055
+ """HTAP数据同步库配置校验
8056
+
8057
+ HTAP数据同步库配置校验。
8058
+
8059
+ Please refer to HUAWEI cloud API Explorer for details.
8060
+
8061
+ :param request: Request instance for CheckDataBaseConfig
8062
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CheckDataBaseConfigRequest`
8063
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckDataBaseConfigResponse`
8064
+ """
8065
+ http_info = self._check_data_base_config_http_info(request)
8066
+ return self._call_api(**http_info)
8067
+
8068
+ def check_data_base_config_invoker(self, request):
8069
+ http_info = self._check_data_base_config_http_info(request)
8070
+ return SyncInvoker(self, http_info)
8071
+
8072
+ @classmethod
8073
+ def _check_data_base_config_http_info(cls, request):
8074
+ http_info = {
8075
+ "method": "POST",
8076
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/database-config-check",
8077
+ "request_type": request.__class__.__name__,
8078
+ "response_type": "CheckDataBaseConfigResponse"
8079
+ }
8080
+
8081
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8082
+
8083
+ cname = None
8084
+
8085
+ collection_formats = {}
8086
+
8087
+ path_params = {}
8088
+ if 'instance_id' in local_var_params:
8089
+ path_params['instance_id'] = local_var_params['instance_id']
8090
+
8091
+ query_params = []
8092
+
8093
+ header_params = {}
8094
+ if 'x_language' in local_var_params:
8095
+ header_params['X-Language'] = local_var_params['x_language']
8096
+
8097
+ form_params = {}
8098
+
8099
+ body = None
8100
+ if 'body' in local_var_params:
8101
+ body = local_var_params['body']
8102
+ if isinstance(request, SdkStreamRequest):
8103
+ body = request.get_file_stream()
8104
+
8105
+ response_headers = []
8106
+
8107
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8108
+ ['application/json;charset=UTF-8'])
8109
+
8110
+ auth_settings = []
8111
+
8112
+ http_info["cname"] = cname
8113
+ http_info["collection_formats"] = collection_formats
8114
+ http_info["path_params"] = path_params
8115
+ http_info["query_params"] = query_params
8116
+ http_info["header_params"] = header_params
8117
+ http_info["post_params"] = form_params
8118
+ http_info["body"] = body
8119
+ http_info["response_headers"] = response_headers
8120
+
8121
+ return http_info
8122
+
8123
+ def check_star_rocks_resource(self, request):
8124
+ """StarRocks资源检查
8125
+
8126
+ StarRocks资源检查。
8127
+
8128
+ Please refer to HUAWEI cloud API Explorer for details.
8129
+
8130
+ :param request: Request instance for CheckStarRocksResource
8131
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CheckStarRocksResourceRequest`
8132
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckStarRocksResourceResponse`
8133
+ """
8134
+ http_info = self._check_star_rocks_resource_http_info(request)
8135
+ return self._call_api(**http_info)
8136
+
8137
+ def check_star_rocks_resource_invoker(self, request):
8138
+ http_info = self._check_star_rocks_resource_http_info(request)
8139
+ return SyncInvoker(self, http_info)
8140
+
8141
+ @classmethod
8142
+ def _check_star_rocks_resource_http_info(cls, request):
8143
+ http_info = {
8144
+ "method": "POST",
8145
+ "resource_path": "/v3/{project_id}/starrocks/resource-check",
8146
+ "request_type": request.__class__.__name__,
8147
+ "response_type": "CheckStarRocksResourceResponse"
8148
+ }
8149
+
8150
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8151
+
8152
+ cname = None
8153
+
8154
+ collection_formats = {}
8155
+
8156
+ path_params = {}
8157
+
8158
+ query_params = []
8159
+
8160
+ header_params = {}
8161
+ if 'x_language' in local_var_params:
8162
+ header_params['X-Language'] = local_var_params['x_language']
8163
+
8164
+ form_params = {}
8165
+
8166
+ body = None
8167
+ if 'body' in local_var_params:
8168
+ body = local_var_params['body']
8169
+ if isinstance(request, SdkStreamRequest):
8170
+ body = request.get_file_stream()
8171
+
8172
+ response_headers = []
8173
+
8174
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8175
+ ['application/json;charset=UTF-8'])
8176
+
8177
+ auth_settings = []
8178
+
8179
+ http_info["cname"] = cname
8180
+ http_info["collection_formats"] = collection_formats
8181
+ http_info["path_params"] = path_params
8182
+ http_info["query_params"] = query_params
8183
+ http_info["header_params"] = header_params
8184
+ http_info["post_params"] = form_params
8185
+ http_info["body"] = body
8186
+ http_info["response_headers"] = response_headers
8187
+
8188
+ return http_info
8189
+
8190
+ def check_table_config(self, request):
8191
+ """HTAP数据同步表配置校验
8192
+
8193
+ HTAP数据同步表配置校验。
8194
+
8195
+ Please refer to HUAWEI cloud API Explorer for details.
8196
+
8197
+ :param request: Request instance for CheckTableConfig
8198
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CheckTableConfigRequest`
8199
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckTableConfigResponse`
8200
+ """
8201
+ http_info = self._check_table_config_http_info(request)
8202
+ return self._call_api(**http_info)
8203
+
8204
+ def check_table_config_invoker(self, request):
8205
+ http_info = self._check_table_config_http_info(request)
8206
+ return SyncInvoker(self, http_info)
8207
+
8208
+ @classmethod
8209
+ def _check_table_config_http_info(cls, request):
8210
+ http_info = {
8211
+ "method": "POST",
8212
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication/table-config-check",
8213
+ "request_type": request.__class__.__name__,
8214
+ "response_type": "CheckTableConfigResponse"
8215
+ }
8216
+
8217
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8218
+
8219
+ cname = None
8220
+
8221
+ collection_formats = {}
8222
+
8223
+ path_params = {}
8224
+ if 'instance_id' in local_var_params:
8225
+ path_params['instance_id'] = local_var_params['instance_id']
8226
+
8227
+ query_params = []
8228
+
8229
+ header_params = {}
8230
+ if 'x_language' in local_var_params:
8231
+ header_params['X-Language'] = local_var_params['x_language']
8232
+
8233
+ form_params = {}
8234
+
8235
+ body = None
8236
+ if 'body' in local_var_params:
8237
+ body = local_var_params['body']
8238
+ if isinstance(request, SdkStreamRequest):
8239
+ body = request.get_file_stream()
8240
+
8241
+ response_headers = []
8242
+
8243
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8244
+ ['application/json;charset=UTF-8'])
8245
+
8246
+ auth_settings = []
8247
+
8248
+ http_info["cname"] = cname
8249
+ http_info["collection_formats"] = collection_formats
8250
+ http_info["path_params"] = path_params
8251
+ http_info["query_params"] = query_params
8252
+ http_info["header_params"] = header_params
8253
+ http_info["post_params"] = form_params
8254
+ http_info["body"] = body
8255
+ http_info["response_headers"] = response_headers
8256
+
8257
+ return http_info
8258
+
8259
+ def create_star_rocks_data_replication(self, request):
8260
+ """创建StarRocks数据同步
8261
+
8262
+ 创建StarRocks数据同步。
8263
+
8264
+ Please refer to HUAWEI cloud API Explorer for details.
8265
+
8266
+ :param request: Request instance for CreateStarRocksDataReplication
8267
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDataReplicationRequest`
8268
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDataReplicationResponse`
8269
+ """
8270
+ http_info = self._create_star_rocks_data_replication_http_info(request)
8271
+ return self._call_api(**http_info)
8272
+
8273
+ def create_star_rocks_data_replication_invoker(self, request):
8274
+ http_info = self._create_star_rocks_data_replication_http_info(request)
8275
+ return SyncInvoker(self, http_info)
8276
+
8277
+ @classmethod
8278
+ def _create_star_rocks_data_replication_http_info(cls, request):
8279
+ http_info = {
8280
+ "method": "POST",
8281
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
8282
+ "request_type": request.__class__.__name__,
8283
+ "response_type": "CreateStarRocksDataReplicationResponse"
8284
+ }
8285
+
8286
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8287
+
8288
+ cname = None
8289
+
8290
+ collection_formats = {}
8291
+
8292
+ path_params = {}
8293
+ if 'instance_id' in local_var_params:
8294
+ path_params['instance_id'] = local_var_params['instance_id']
8295
+
8296
+ query_params = []
8297
+
8298
+ header_params = {}
8299
+ if 'x_language' in local_var_params:
8300
+ header_params['X-Language'] = local_var_params['x_language']
8301
+
8302
+ form_params = {}
8303
+
8304
+ body = None
8305
+ if 'body' in local_var_params:
8306
+ body = local_var_params['body']
8307
+ if isinstance(request, SdkStreamRequest):
8308
+ body = request.get_file_stream()
8309
+
8310
+ response_headers = []
8311
+
8312
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8313
+ ['application/json;charset=UTF-8'])
8314
+
8315
+ auth_settings = []
8316
+
8317
+ http_info["cname"] = cname
8318
+ http_info["collection_formats"] = collection_formats
8319
+ http_info["path_params"] = path_params
8320
+ http_info["query_params"] = query_params
8321
+ http_info["header_params"] = header_params
8322
+ http_info["post_params"] = form_params
8323
+ http_info["body"] = body
8324
+ http_info["response_headers"] = response_headers
8325
+
8326
+ return http_info
8327
+
8328
+ def create_star_rocks_database_user(self, request):
8329
+ """创建数据库账号
8330
+
8331
+ 创建StarRocks数据库账号。
8332
+
8333
+ Please refer to HUAWEI cloud API Explorer for details.
8334
+
8335
+ :param request: Request instance for CreateStarRocksDatabaseUser
8336
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDatabaseUserRequest`
8337
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDatabaseUserResponse`
8338
+ """
8339
+ http_info = self._create_star_rocks_database_user_http_info(request)
8340
+ return self._call_api(**http_info)
8341
+
8342
+ def create_star_rocks_database_user_invoker(self, request):
8343
+ http_info = self._create_star_rocks_database_user_http_info(request)
8344
+ return SyncInvoker(self, http_info)
8345
+
8346
+ @classmethod
8347
+ def _create_star_rocks_database_user_http_info(cls, 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(self, request):
8398
+ """创建StarRocks实例
8399
+
8400
+ 创建StarRocks实例。
8401
+
8402
+ Please refer to HUAWEI cloud API Explorer for details.
8403
+
8404
+ :param request: Request instance for CreateStarrocksInstance
8405
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CreateStarrocksInstanceRequest`
8406
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarrocksInstanceResponse`
8407
+ """
8408
+ http_info = self._create_starrocks_instance_http_info(request)
8409
+ return self._call_api(**http_info)
8410
+
8411
+ def create_starrocks_instance_invoker(self, request):
8412
+ http_info = self._create_starrocks_instance_http_info(request)
8413
+ return SyncInvoker(self, http_info)
8414
+
8415
+ @classmethod
8416
+ def _create_starrocks_instance_http_info(cls, request):
8417
+ http_info = {
8418
+ "method": "POST",
8419
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks",
8420
+ "request_type": request.__class__.__name__,
8421
+ "response_type": "CreateStarrocksInstanceResponse"
8422
+ }
8423
+
8424
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8425
+
8426
+ cname = None
8427
+
8428
+ collection_formats = {}
8429
+
8430
+ path_params = {}
8431
+ if 'instance_id' in local_var_params:
8432
+ path_params['instance_id'] = local_var_params['instance_id']
8433
+
8434
+ query_params = []
8435
+
8436
+ header_params = {}
8437
+ if 'x_language' in local_var_params:
8438
+ header_params['X-Language'] = local_var_params['x_language']
8439
+
8440
+ form_params = {}
8441
+
8442
+ body = None
8443
+ if 'body' in local_var_params:
8444
+ body = local_var_params['body']
8445
+ if isinstance(request, SdkStreamRequest):
8446
+ body = request.get_file_stream()
8447
+
8448
+ response_headers = []
8449
+
8450
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8451
+ ['application/json;charset=UTF-8'])
8452
+
8453
+ auth_settings = []
8454
+
8455
+ http_info["cname"] = cname
8456
+ http_info["collection_formats"] = collection_formats
8457
+ http_info["path_params"] = path_params
8458
+ http_info["query_params"] = query_params
8459
+ http_info["header_params"] = header_params
8460
+ http_info["post_params"] = form_params
8461
+ http_info["body"] = body
8462
+ http_info["response_headers"] = response_headers
8463
+
8464
+ return http_info
8465
+
8466
+ def delete_star_rocks_data_replication(self, request):
8467
+ """删除StarRocks数据同步
8468
+
8469
+ 删除StarRocks数据同步。
8470
+
8471
+ Please refer to HUAWEI cloud API Explorer for details.
8472
+
8473
+ :param request: Request instance for DeleteStarRocksDataReplication
8474
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplicationRequest`
8475
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplicationResponse`
8476
+ """
8477
+ http_info = self._delete_star_rocks_data_replication_http_info(request)
8478
+ return self._call_api(**http_info)
8479
+
8480
+ def delete_star_rocks_data_replication_invoker(self, request):
8481
+ http_info = self._delete_star_rocks_data_replication_http_info(request)
8482
+ return SyncInvoker(self, http_info)
8483
+
8484
+ @classmethod
8485
+ def _delete_star_rocks_data_replication_http_info(cls, request):
8486
+ http_info = {
8487
+ "method": "DELETE",
8488
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/databases/replication",
8489
+ "request_type": request.__class__.__name__,
8490
+ "response_type": "DeleteStarRocksDataReplicationResponse"
8491
+ }
8492
+
8493
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8494
+
8495
+ cname = None
8496
+
8497
+ collection_formats = {}
8498
+
8499
+ path_params = {}
8500
+ if 'instance_id' in local_var_params:
8501
+ path_params['instance_id'] = local_var_params['instance_id']
8502
+
8503
+ query_params = []
8504
+
8505
+ header_params = {}
8506
+ if 'x_language' in local_var_params:
8507
+ header_params['X-Language'] = local_var_params['x_language']
8508
+
8509
+ form_params = {}
8510
+
8511
+ body = None
8512
+ if 'body' in local_var_params:
8513
+ body = local_var_params['body']
8514
+ if isinstance(request, SdkStreamRequest):
8515
+ body = request.get_file_stream()
8516
+
8517
+ response_headers = []
8518
+
8519
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8520
+ ['application/json;charset=UTF-8'])
8521
+
8522
+ auth_settings = []
8523
+
8524
+ http_info["cname"] = cname
8525
+ http_info["collection_formats"] = collection_formats
8526
+ http_info["path_params"] = path_params
8527
+ http_info["query_params"] = query_params
8528
+ http_info["header_params"] = header_params
8529
+ http_info["post_params"] = form_params
8530
+ http_info["body"] = body
8531
+ http_info["response_headers"] = response_headers
8532
+
8533
+ return http_info
8534
+
8535
+ def delete_star_rocks_database_user(self, request):
8536
+ """删除数据库账户
8537
+
8538
+ 删除StarRocks数据库账户。
8539
+
8540
+ Please refer to HUAWEI cloud API Explorer for details.
8541
+
8542
+ :param request: Request instance for DeleteStarRocksDatabaseUser
8543
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDatabaseUserRequest`
8544
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDatabaseUserResponse`
8545
+ """
8546
+ http_info = self._delete_star_rocks_database_user_http_info(request)
8547
+ return self._call_api(**http_info)
8548
+
8549
+ def delete_star_rocks_database_user_invoker(self, request):
8550
+ http_info = self._delete_star_rocks_database_user_http_info(request)
8551
+ return SyncInvoker(self, http_info)
8552
+
8553
+ @classmethod
8554
+ def _delete_star_rocks_database_user_http_info(cls, request):
8555
+ http_info = {
8556
+ "method": "DELETE",
8557
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users",
8558
+ "request_type": request.__class__.__name__,
8559
+ "response_type": "DeleteStarRocksDatabaseUserResponse"
8560
+ }
8561
+
8562
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8563
+
8564
+ cname = None
8565
+
8566
+ collection_formats = {}
8567
+
8568
+ path_params = {}
8569
+ if 'instance_id' in local_var_params:
8570
+ path_params['instance_id'] = local_var_params['instance_id']
8571
+
8572
+ query_params = []
8573
+ if 'user_name' in local_var_params:
8574
+ query_params.append(('user_name', local_var_params['user_name']))
8575
+
8576
+ header_params = {}
8577
+ if 'x_language' in local_var_params:
8578
+ header_params['X-Language'] = local_var_params['x_language']
8579
+
8580
+ form_params = {}
8581
+
8582
+ body = None
8583
+ if isinstance(request, SdkStreamRequest):
8584
+ body = request.get_file_stream()
8585
+
8586
+ response_headers = []
8587
+
8588
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8589
+ ['application/json'])
8590
+
8591
+ auth_settings = []
8592
+
8593
+ http_info["cname"] = cname
8594
+ http_info["collection_formats"] = collection_formats
8595
+ http_info["path_params"] = path_params
8596
+ http_info["query_params"] = query_params
8597
+ http_info["header_params"] = header_params
8598
+ http_info["post_params"] = form_params
8599
+ http_info["body"] = body
8600
+ http_info["response_headers"] = response_headers
8601
+
8602
+ return http_info
8603
+
8604
+ def delete_starrocks_instance(self, request):
8605
+ """删除StarRocks实例
8606
+
8607
+ 删除StarRocks实例。
8608
+
8609
+ Please refer to HUAWEI cloud API Explorer for details.
8610
+
8611
+ :param request: Request instance for DeleteStarrocksInstance
8612
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteStarrocksInstanceRequest`
8613
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarrocksInstanceResponse`
8614
+ """
8615
+ http_info = self._delete_starrocks_instance_http_info(request)
8616
+ return self._call_api(**http_info)
8617
+
8618
+ def delete_starrocks_instance_invoker(self, request):
8619
+ http_info = self._delete_starrocks_instance_http_info(request)
8620
+ return SyncInvoker(self, http_info)
8621
+
8622
+ @classmethod
8623
+ def _delete_starrocks_instance_http_info(cls, request):
8624
+ http_info = {
8625
+ "method": "DELETE",
8626
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/{starrocks_instance_id}",
8627
+ "request_type": request.__class__.__name__,
8628
+ "response_type": "DeleteStarrocksInstanceResponse"
8629
+ }
8630
+
8631
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8632
+
8633
+ cname = None
8634
+
8635
+ collection_formats = {}
8636
+
8637
+ path_params = {}
8638
+ if 'instance_id' in local_var_params:
8639
+ path_params['instance_id'] = local_var_params['instance_id']
8640
+ if 'starrocks_instance_id' in local_var_params:
8641
+ path_params['starrocks_instance_id'] = local_var_params['starrocks_instance_id']
8642
+
8643
+ query_params = []
8644
+
8645
+ header_params = {}
8646
+ if 'x_language' in local_var_params:
8647
+ header_params['X-Language'] = local_var_params['x_language']
8648
+
8649
+ form_params = {}
8650
+
8651
+ body = None
8652
+ if isinstance(request, SdkStreamRequest):
8653
+ body = request.get_file_stream()
8654
+
8655
+ response_headers = []
8656
+
8657
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8658
+ ['application/json'])
8659
+
8660
+ auth_settings = []
8661
+
8662
+ http_info["cname"] = cname
8663
+ http_info["collection_formats"] = collection_formats
8664
+ http_info["path_params"] = path_params
8665
+ http_info["query_params"] = query_params
8666
+ http_info["header_params"] = header_params
8667
+ http_info["post_params"] = form_params
8668
+ http_info["body"] = body
8669
+ http_info["response_headers"] = response_headers
8670
+
8671
+ return http_info
8672
+
8673
+ def list_htap_data_store(self, request):
8674
+ """HTAP引擎资源查询
8675
+
8676
+ HTAP引擎资源查询。
8677
+
8678
+ Please refer to HUAWEI cloud API Explorer for details.
8679
+
8680
+ :param request: Request instance for ListHtapDataStore
8681
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapDataStoreRequest`
8682
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapDataStoreResponse`
8683
+ """
8684
+ http_info = self._list_htap_data_store_http_info(request)
8685
+ return self._call_api(**http_info)
8686
+
8687
+ def list_htap_data_store_invoker(self, request):
8688
+ http_info = self._list_htap_data_store_http_info(request)
8689
+ return SyncInvoker(self, http_info)
8690
+
8691
+ @classmethod
8692
+ def _list_htap_data_store_http_info(cls, request):
8693
+ http_info = {
8694
+ "method": "GET",
8695
+ "resource_path": "/v3/{project_id}/htap/datastores/{engine_name}",
8696
+ "request_type": request.__class__.__name__,
8697
+ "response_type": "ListHtapDataStoreResponse"
8698
+ }
8699
+
8700
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8701
+
8702
+ cname = None
8703
+
8704
+ collection_formats = {}
8705
+
8706
+ path_params = {}
8707
+ if 'engine_name' in local_var_params:
8708
+ path_params['engine_name'] = local_var_params['engine_name']
8709
+
8710
+ query_params = []
8711
+
8712
+ header_params = {}
8713
+ if 'x_language' in local_var_params:
8714
+ header_params['X-Language'] = local_var_params['x_language']
8715
+
8716
+ form_params = {}
8717
+
8718
+ body = None
8719
+ if isinstance(request, SdkStreamRequest):
8720
+ body = request.get_file_stream()
8721
+
8722
+ response_headers = []
8723
+
8724
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8725
+ ['application/json'])
8726
+
8727
+ auth_settings = []
8728
+
8729
+ http_info["cname"] = cname
8730
+ http_info["collection_formats"] = collection_formats
8731
+ http_info["path_params"] = path_params
8732
+ http_info["query_params"] = query_params
8733
+ http_info["header_params"] = header_params
8734
+ http_info["post_params"] = form_params
8735
+ http_info["body"] = body
8736
+ http_info["response_headers"] = response_headers
8737
+
8738
+ return http_info
8739
+
8740
+ def list_htap_flavor(self, request):
8741
+ """HTAP查询规格信息
8742
+
8743
+ HTAP查询规格信息。
8744
+
8745
+ Please refer to HUAWEI cloud API Explorer for details.
8746
+
8747
+ :param request: Request instance for ListHtapFlavor
8748
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapFlavorRequest`
8749
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapFlavorResponse`
8750
+ """
8751
+ http_info = self._list_htap_flavor_http_info(request)
8752
+ return self._call_api(**http_info)
8753
+
8754
+ def list_htap_flavor_invoker(self, request):
8755
+ http_info = self._list_htap_flavor_http_info(request)
8756
+ return SyncInvoker(self, http_info)
8757
+
8758
+ @classmethod
8759
+ def _list_htap_flavor_http_info(cls, request):
8760
+ http_info = {
8761
+ "method": "GET",
8762
+ "resource_path": "/v3/{project_id}/htap/flavors/{engine_name}",
8763
+ "request_type": request.__class__.__name__,
8764
+ "response_type": "ListHtapFlavorResponse"
8765
+ }
8766
+
8767
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8768
+
8769
+ cname = None
8770
+
8771
+ collection_formats = {}
8772
+
8773
+ path_params = {}
8774
+ if 'engine_name' in local_var_params:
8775
+ path_params['engine_name'] = local_var_params['engine_name']
8776
+
8777
+ query_params = []
8778
+ if 'availability_zone_mode' in local_var_params:
8779
+ query_params.append(('availability_zone_mode', local_var_params['availability_zone_mode']))
8780
+ if 'spec_code' in local_var_params:
8781
+ query_params.append(('spec_code', local_var_params['spec_code']))
8782
+ if 'version_name' in local_var_params:
8783
+ query_params.append(('version_name', local_var_params['version_name']))
8784
+
8785
+ header_params = {}
8786
+ if 'x_language' in local_var_params:
8787
+ header_params['X-Language'] = local_var_params['x_language']
8788
+
8789
+ form_params = {}
8790
+
8791
+ body = None
8792
+ if isinstance(request, SdkStreamRequest):
8793
+ body = request.get_file_stream()
8794
+
8795
+ response_headers = []
8796
+
8797
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8798
+ ['application/json'])
8799
+
8800
+ auth_settings = []
8801
+
8802
+ http_info["cname"] = cname
8803
+ http_info["collection_formats"] = collection_formats
8804
+ http_info["path_params"] = path_params
8805
+ http_info["query_params"] = query_params
8806
+ http_info["header_params"] = header_params
8807
+ http_info["post_params"] = form_params
8808
+ http_info["body"] = body
8809
+ http_info["response_headers"] = response_headers
8810
+
8811
+ return http_info
8812
+
8813
+ def list_htap_instance_info(self, request):
8814
+ """查询HTAP实例列表
8815
+
8816
+ 查询HTAP实例列表。
8817
+
8818
+ Please refer to HUAWEI cloud API Explorer for details.
8819
+
8820
+ :param request: Request instance for ListHtapInstanceInfo
8821
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapInstanceInfoRequest`
8822
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapInstanceInfoResponse`
8823
+ """
8824
+ http_info = self._list_htap_instance_info_http_info(request)
8825
+ return self._call_api(**http_info)
8826
+
8827
+ def list_htap_instance_info_invoker(self, request):
8828
+ http_info = self._list_htap_instance_info_http_info(request)
8829
+ return SyncInvoker(self, http_info)
8830
+
8831
+ @classmethod
8832
+ def _list_htap_instance_info_http_info(cls, 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(self, request):
8881
+ """获取HTAP实例存储类型
8882
+
8883
+ 获取HTAP实例存储类型。
8884
+
8885
+ Please refer to HUAWEI cloud API Explorer for details.
8886
+
8887
+ :param request: Request instance for ListHtapStorageType
8888
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListHtapStorageTypeRequest`
8889
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListHtapStorageTypeResponse`
8890
+ """
8891
+ http_info = self._list_htap_storage_type_http_info(request)
8892
+ return self._call_api(**http_info)
8893
+
8894
+ def list_htap_storage_type_invoker(self, request):
8895
+ http_info = self._list_htap_storage_type_http_info(request)
8896
+ return SyncInvoker(self, http_info)
8897
+
8898
+ @classmethod
8899
+ def _list_htap_storage_type_http_info(cls, 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(self, request):
8950
+ """查询StarRocks数据库
8951
+
8952
+ 查询StarRocks数据库。
8953
+
8954
+ Please refer to HUAWEI cloud API Explorer for details.
8955
+
8956
+ :param request: Request instance for ListStarRocksDataBases
8957
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesRequest`
8958
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataBasesResponse`
8959
+ """
8960
+ http_info = self._list_star_rocks_data_bases_http_info(request)
8961
+ return self._call_api(**http_info)
8962
+
8963
+ def list_star_rocks_data_bases_invoker(self, request):
8964
+ http_info = self._list_star_rocks_data_bases_http_info(request)
8965
+ return SyncInvoker(self, http_info)
8966
+
8967
+ @classmethod
8968
+ def _list_star_rocks_data_bases_http_info(cls, 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(self, request):
9023
+ """查询StarRocks数据同步配置信息
9024
+
9025
+ 查询StarRocks数据同步配置信息。
9026
+
9027
+ Please refer to HUAWEI cloud API Explorer for details.
9028
+
9029
+ :param request: Request instance for ListStarRocksDataReplicationConfig
9030
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigRequest`
9031
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationConfigResponse`
9032
+ """
9033
+ http_info = self._list_star_rocks_data_replication_config_http_info(request)
9034
+ return self._call_api(**http_info)
9035
+
9036
+ def list_star_rocks_data_replication_config_invoker(self, request):
9037
+ http_info = self._list_star_rocks_data_replication_config_http_info(request)
9038
+ return SyncInvoker(self, http_info)
9039
+
9040
+ @classmethod
9041
+ def _list_star_rocks_data_replication_config_http_info(cls, 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(self, request):
9092
+ """查询StarRocks数据同步状态信息
9093
+
9094
+ 查询StarRocks数据同步状态信息。
9095
+
9096
+ Please refer to HUAWEI cloud API Explorer for details.
9097
+
9098
+ :param request: Request instance for ListStarRocksDataReplications
9099
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsRequest`
9100
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDataReplicationsResponse`
9101
+ """
9102
+ http_info = self._list_star_rocks_data_replications_http_info(request)
9103
+ return self._call_api(**http_info)
9104
+
9105
+ def list_star_rocks_data_replications_invoker(self, request):
9106
+ http_info = self._list_star_rocks_data_replications_http_info(request)
9107
+ return SyncInvoker(self, http_info)
9108
+
9109
+ @classmethod
9110
+ def _list_star_rocks_data_replications_http_info(cls, 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(self, request):
9163
+ """查询StarRocks数据同步的库参数配置
9164
+
9165
+ 查询StarRocks数据同步的库参数配置。
9166
+
9167
+ Please refer to HUAWEI cloud API Explorer for details.
9168
+
9169
+ :param request: Request instance for ListStarRocksDbParameters
9170
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersRequest`
9171
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarRocksDbParametersResponse`
9172
+ """
9173
+ http_info = self._list_star_rocks_db_parameters_http_info(request)
9174
+ return self._call_api(**http_info)
9175
+
9176
+ def list_star_rocks_db_parameters_invoker(self, request):
9177
+ http_info = self._list_star_rocks_db_parameters_http_info(request)
9178
+ return SyncInvoker(self, http_info)
9179
+
9180
+ @classmethod
9181
+ def _list_star_rocks_db_parameters_http_info(cls, 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(self, request):
9230
+ """查询StarRocks实例
9231
+
9232
+ 查询StarRocks实例。
9233
+
9234
+ Please refer to HUAWEI cloud API Explorer for details.
9235
+
9236
+ :param request: Request instance for ListStarrocksInstanceInfo
9237
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListStarrocksInstanceInfoRequest`
9238
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListStarrocksInstanceInfoResponse`
9239
+ """
9240
+ http_info = self._list_starrocks_instance_info_http_info(request)
9241
+ return self._call_api(**http_info)
9242
+
9243
+ def list_starrocks_instance_info_invoker(self, request):
9244
+ http_info = self._list_starrocks_instance_info_http_info(request)
9245
+ return SyncInvoker(self, http_info)
9246
+
9247
+ @classmethod
9248
+ def _list_starrocks_instance_info_http_info(cls, 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(self, request):
9299
+ """重启StarRocks实例
9300
+
9301
+ 重启StarRocks实例。
9302
+
9303
+ Please refer to HUAWEI cloud API Explorer for details.
9304
+
9305
+ :param request: Request instance for RestartStarrocksInstance
9306
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksInstanceRequest`
9307
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksInstanceResponse`
9308
+ """
9309
+ http_info = self._restart_starrocks_instance_http_info(request)
9310
+ return self._call_api(**http_info)
9311
+
9312
+ def restart_starrocks_instance_invoker(self, request):
9313
+ http_info = self._restart_starrocks_instance_http_info(request)
9314
+ return SyncInvoker(self, http_info)
9315
+
9316
+ @classmethod
9317
+ def _restart_starrocks_instance_http_info(cls, 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(self, request):
9366
+ """重启StarRocks节点
9367
+
9368
+ 重启StarRocks节点。
9369
+
9370
+ Please refer to HUAWEI cloud API Explorer for details.
9371
+
9372
+ :param request: Request instance for RestartStarrocksNode
9373
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksNodeRequest`
9374
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartStarrocksNodeResponse`
9375
+ """
9376
+ http_info = self._restart_starrocks_node_http_info(request)
9377
+ return self._call_api(**http_info)
9378
+
9379
+ def restart_starrocks_node_invoker(self, request):
9380
+ http_info = self._restart_starrocks_node_http_info(request)
9381
+ return SyncInvoker(self, http_info)
9382
+
9383
+ @classmethod
9384
+ def _restart_starrocks_node_http_info(cls, 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(self, request):
9435
+ """查询数据库账户
9436
+
9437
+ 查询StarRocks数据库账户。
9438
+
9439
+ Please refer to HUAWEI cloud API Explorer for details.
9440
+
9441
+ :param request: Request instance for ShowStarRocksDatabaseUser
9442
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUserRequest`
9443
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUserResponse`
9444
+ """
9445
+ http_info = self._show_star_rocks_database_user_http_info(request)
9446
+ return self._call_api(**http_info)
9447
+
9448
+ def show_star_rocks_database_user_invoker(self, request):
9449
+ http_info = self._show_star_rocks_database_user_http_info(request)
9450
+ return SyncInvoker(self, http_info)
9451
+
9452
+ @classmethod
9453
+ def _show_star_rocks_database_user_http_info(cls, 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(self, request):
9508
+ """修改数据库账号密码
9509
+
9510
+ 修改StarRocks数据库账号密码。
9511
+
9512
+ Please refer to HUAWEI cloud API Explorer for details.
9513
+
9514
+ :param request: Request instance for UpdateStarRocksDatabaseUserPassword
9515
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateStarRocksDatabaseUserPasswordRequest`
9516
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateStarRocksDatabaseUserPasswordResponse`
9517
+ """
9518
+ http_info = self._update_star_rocks_database_user_password_http_info(request)
9519
+ return self._call_api(**http_info)
9520
+
9521
+ def update_star_rocks_database_user_password_invoker(self, request):
9522
+ http_info = self._update_star_rocks_database_user_password_http_info(request)
9523
+ return SyncInvoker(self, http_info)
9524
+
9525
+ @classmethod
9526
+ def _update_star_rocks_database_user_password_http_info(cls, 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(self, request):
9577
+ """修改数据库账号权限
9578
+
9579
+ 修改StarRocks数据库账号权限。
9580
+
9581
+ Please refer to HUAWEI cloud API Explorer for details.
9582
+
9583
+ :param request: Request instance for UpdateStarRocksDatabaseUserPermission
9584
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateStarRocksDatabaseUserPermissionRequest`
9585
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateStarRocksDatabaseUserPermissionResponse`
9586
+ """
9587
+ http_info = self._update_star_rocks_database_user_permission_http_info(request)
9588
+ return self._call_api(**http_info)
9589
+
9590
+ def update_star_rocks_database_user_permission_invoker(self, request):
9591
+ http_info = self._update_star_rocks_database_user_permission_http_info(request)
9592
+ return SyncInvoker(self, http_info)
9593
+
9594
+ @classmethod
9595
+ def _update_star_rocks_database_user_permission_http_info(cls, request):
9596
+ http_info = {
9597
+ "method": "PUT",
9598
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/starrocks/users/permission",
9599
+ "request_type": request.__class__.__name__,
9600
+ "response_type": "UpdateStarRocksDatabaseUserPermissionResponse"
9601
+ }
9602
+
9603
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9604
+
9605
+ cname = None
9606
+
9607
+ collection_formats = {}
9608
+
9609
+ path_params = {}
9610
+ if 'instance_id' in local_var_params:
9611
+ path_params['instance_id'] = local_var_params['instance_id']
9612
+
9613
+ query_params = []
9614
+
9615
+ header_params = {}
9616
+ if 'x_language' in local_var_params:
9617
+ header_params['X-Language'] = local_var_params['x_language']
9618
+
9619
+ form_params = {}
9620
+
9621
+ body = None
9622
+ if 'body' in local_var_params:
9623
+ body = local_var_params['body']
9624
+ if isinstance(request, SdkStreamRequest):
9625
+ body = request.get_file_stream()
9626
+
9627
+ response_headers = []
9628
+
9629
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9630
+ ['application/json;charset=UTF-8'])
9631
+
9632
+ auth_settings = []
9633
+
9634
+ http_info["cname"] = cname
9635
+ http_info["collection_formats"] = collection_formats
9636
+ http_info["path_params"] = path_params
9637
+ http_info["query_params"] = query_params
9638
+ http_info["header_params"] = header_params
9639
+ http_info["post_params"] = form_params
9640
+ http_info["body"] = body
9641
+ http_info["response_headers"] = response_headers
9642
+
9643
+ return http_info
9644
+
8054
9645
  def delete_sql_filter_rule(self, request):
8055
9646
  """删除SQL限流规则
8056
9647