volcengine-python-sdk 4.0.26__py2.py3-none-any.whl → 4.0.27__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.
Potentially problematic release.
This version of volcengine-python-sdk might be problematic. Click here for more details.
- {volcengine_python_sdk-4.0.26.dist-info → volcengine_python_sdk-4.0.27.dist-info}/METADATA +1 -1
- {volcengine_python_sdk-4.0.26.dist-info → volcengine_python_sdk-4.0.27.dist-info}/RECORD +168 -44
- volcenginesdkacep/__init__.py +15 -0
- volcenginesdkacep/api/acep_api.py +485 -0
- volcenginesdkacep/models/__init__.py +15 -0
- volcenginesdkacep/models/backup_data_request.py +176 -0
- volcenginesdkacep/models/backup_data_response.py +149 -0
- volcenginesdkacep/models/delete_backup_data_request.py +150 -0
- volcenginesdkacep/models/delete_backup_data_response.py +123 -0
- volcenginesdkacep/models/detail_for_backup_data_output.py +201 -0
- volcenginesdkacep/models/detail_for_delete_backup_data_output.py +175 -0
- volcenginesdkacep/models/detail_for_restore_data_output.py +175 -0
- volcenginesdkacep/models/get_dc_bandwidth_daily_peak_request.py +204 -0
- volcenginesdkacep/models/get_dc_bandwidth_daily_peak_response.py +123 -0
- volcenginesdkacep/models/list_backup_data_request.py +254 -0
- volcenginesdkacep/models/list_backup_data_response.py +149 -0
- volcenginesdkacep/models/restore_data_request.py +203 -0
- volcenginesdkacep/models/restore_data_response.py +149 -0
- volcenginesdkacep/models/row_for_get_dc_bandwidth_daily_peak_output.py +253 -0
- volcenginesdkacep/models/row_for_list_backup_data_output.py +799 -0
- volcenginesdkclb/__init__.py +10 -0
- volcenginesdkclb/api/clb_api.py +194 -0
- volcenginesdkclb/models/__init__.py +10 -0
- volcenginesdkclb/models/access_log_for_describe_network_load_balancer_attributes_output.py +175 -0
- volcenginesdkclb/models/add_domain_extension_for_modify_listener_domain_extensions_input.py +175 -0
- volcenginesdkclb/models/convert_load_balancer_billing_type_request.py +27 -1
- volcenginesdkclb/models/describe_listener_attributes_response.py +27 -1
- volcenginesdkclb/models/describe_network_load_balancer_attributes_response.py +27 -1
- volcenginesdkclb/models/describe_nlb_server_groups_request.py +53 -1
- volcenginesdkclb/models/domain_extension_for_describe_listener_attributes_output.py +201 -0
- volcenginesdkclb/models/domain_extension_for_describe_listeners_output.py +201 -0
- volcenginesdkclb/models/listener_for_describe_listeners_output.py +27 -1
- volcenginesdkclb/models/modify_domain_extension_for_modify_listener_domain_extensions_input.py +175 -0
- volcenginesdkclb/models/modify_listener_domain_extensions_request.py +202 -0
- volcenginesdkclb/models/modify_listener_domain_extensions_response.py +123 -0
- volcenginesdkclb/models/modify_network_load_balancer_access_log_request.py +202 -0
- volcenginesdkclb/models/modify_network_load_balancer_access_log_response.py +123 -0
- volcenginesdkclb/models/remove_domain_extension_for_modify_listener_domain_extensions_input.py +123 -0
- volcenginesdkcore/api_client.py +1 -1
- volcenginesdkcore/configuration.py +1 -1
- volcenginesdkcore/interceptor/interceptors/build_request_interceptor.py +4 -0
- volcenginesdkcore/interceptor/interceptors/sign_request_interceptor.py +1 -1
- volcenginesdkdbw/__init__.py +18 -0
- volcenginesdkdbw/api/dbw_api.py +388 -0
- volcenginesdkdbw/models/__init__.py +18 -0
- volcenginesdkdbw/models/column_for_get_table_info_output.py +331 -0
- volcenginesdkdbw/models/execute_sql_request.py +231 -0
- volcenginesdkdbw/models/execute_sql_response.py +123 -0
- volcenginesdkdbw/models/foreign_key_for_get_table_info_output.py +279 -0
- volcenginesdkdbw/models/get_table_info_request.py +205 -0
- volcenginesdkdbw/models/get_table_info_response.py +123 -0
- volcenginesdkdbw/models/index_for_get_table_info_output.py +201 -0
- volcenginesdkdbw/models/item_for_list_databases_output.py +279 -0
- volcenginesdkdbw/models/list_databases_request.py +203 -0
- volcenginesdkdbw/models/list_databases_response.py +149 -0
- volcenginesdkdbw/models/list_tables_request.py +230 -0
- volcenginesdkdbw/models/list_tables_response.py +149 -0
- volcenginesdkdbw/models/partition_options_for_get_table_info_output.py +175 -0
- volcenginesdkdbw/models/result_for_execute_sql_output.py +305 -0
- volcenginesdkdbw/models/row_for_execute_sql_output.py +123 -0
- volcenginesdkdbw/models/running_info_for_execute_sql_output.py +201 -0
- volcenginesdkdbw/models/table_meta_for_get_table_info_output.py +383 -0
- volcenginesdkdbw/models/table_options_for_get_table_info_output.py +331 -0
- volcenginesdkgraph/__init__.py +48 -0
- volcenginesdkgraph/api/graph_api.py +951 -78
- volcenginesdkgraph/models/__init__.py +48 -0
- volcenginesdkgraph/models/availability_zone_for_list_graph_rag_service_output.py +253 -0
- volcenginesdkgraph/models/bg3_link_for_list_graph_rag_service_output.py +175 -0
- volcenginesdkgraph/models/bytestore_info_for_list_graph_rag_service_output.py +201 -0
- volcenginesdkgraph/models/conf_checker_for_get_conf_checker_output.py +409 -0
- volcenginesdkgraph/models/conf_checker_for_update_conf_checker_input.py +409 -0
- volcenginesdkgraph/models/conf_checker_for_validate_conf_checker_input.py +409 -0
- volcenginesdkgraph/models/convert_value_for_list_tablets_output.py +149 -0
- volcenginesdkgraph/models/create_instance_request.py +29 -3
- volcenginesdkgraph/models/first_for_list_tablet_task_output.py +175 -0
- volcenginesdkgraph/models/get_conf_checker_request.py +253 -0
- volcenginesdkgraph/models/get_conf_checker_response.py +123 -0
- volcenginesdkgraph/models/graphrag_add_knowledge_base_request.py +178 -0
- volcenginesdkgraph/models/graphrag_add_knowledge_base_response.py +95 -0
- volcenginesdkgraph/models/image_info_for_list_graph_rag_service_output.py +227 -0
- volcenginesdkgraph/models/info_for_list_graph_rag_service_output.py +175 -0
- volcenginesdkgraph/models/info_for_list_tablet_task_output.py +201 -0
- volcenginesdkgraph/models/ins_spec_for_list_graph_rag_service_output.py +175 -0
- volcenginesdkgraph/models/list_graph_rag_service_request.py +178 -0
- volcenginesdkgraph/models/list_graph_rag_service_response.py +149 -0
- volcenginesdkgraph/models/list_tablet_server_request.py +150 -0
- volcenginesdkgraph/models/list_tablet_server_response.py +149 -0
- volcenginesdkgraph/models/list_tablet_task_request.py +177 -0
- volcenginesdkgraph/models/list_tablet_task_response.py +123 -0
- volcenginesdkgraph/models/list_tablets_request.py +254 -0
- volcenginesdkgraph/models/list_tablets_response.py +123 -0
- volcenginesdkgraph/models/migrate_tablet_replica_request.py +257 -0
- volcenginesdkgraph/models/migrate_tablet_replica_response.py +123 -0
- volcenginesdkgraph/models/pending_schedule_replica_for_list_tablets_output.py +149 -0
- volcenginesdkgraph/models/replica_info_for_list_tablets_output.py +149 -0
- volcenginesdkgraph/models/replicas_to_close_for_list_tablet_task_output.py +227 -0
- volcenginesdkgraph/models/replicas_to_delete_for_list_tablet_task_output.py +227 -0
- volcenginesdkgraph/models/replicas_to_failover_by_promote_for_list_tablet_task_output.py +149 -0
- volcenginesdkgraph/models/replicas_to_failover_by_reopen_for_list_tablet_task_output.py +149 -0
- volcenginesdkgraph/models/replicas_to_open_or_add_for_list_tablet_task_output.py +227 -0
- volcenginesdkgraph/models/second_for_list_tablet_task_output.py +175 -0
- volcenginesdkgraph/models/storage_info_for_list_graph_rag_service_output.py +149 -0
- volcenginesdkgraph/models/tablet_info_for_list_tablets_output.py +149 -0
- volcenginesdkgraph/models/tablet_server_info_for_list_tablet_server_output.py +227 -0
- volcenginesdkgraph/models/tablet_task_info_for_list_tablet_task_output.py +435 -0
- volcenginesdkgraph/models/tablet_to_merge_for_list_tablet_task_output.py +149 -0
- volcenginesdkgraph/models/tablet_to_split_for_list_tablet_task_output.py +175 -0
- volcenginesdkgraph/models/tablets_to_delete_for_list_tablet_task_output.py +175 -0
- volcenginesdkgraph/models/tag_for_list_graph_rag_service_output.py +149 -0
- volcenginesdkgraph/models/update_conf_checker_request.py +123 -0
- volcenginesdkgraph/models/update_conf_checker_response.py +123 -0
- volcenginesdkgraph/models/validate_conf_checker_request.py +123 -0
- volcenginesdkgraph/models/validate_conf_checker_response.py +149 -0
- volcenginesdkgraph/models/value_for_list_tablets_output.py +201 -0
- volcenginesdkgraph/models/ve_graph_info_for_list_graph_rag_service_output.py +851 -0
- volcenginesdklivesaas/__init__.py +3 -0
- volcenginesdklivesaas/models/__init__.py +3 -0
- volcenginesdklivesaas/models/auto_start_config_for_create_activity_apiv2_input.py +175 -0
- volcenginesdklivesaas/models/auto_start_config_for_get_activity_basic_config_api_output.py +175 -0
- volcenginesdklivesaas/models/auto_start_config_for_update_activity_basic_config_api_input.py +175 -0
- volcenginesdklivesaas/models/create_activity_apiv2_request.py +27 -1
- volcenginesdklivesaas/models/get_activity_basic_config_api_response.py +79 -1
- volcenginesdklivesaas/models/update_activity_basic_config_api_request.py +53 -1
- volcenginesdkvefaas/__init__.py +4 -0
- volcenginesdkvefaas/api/vefaas_api.py +194 -0
- volcenginesdkvefaas/models/__init__.py +4 -0
- volcenginesdkvefaas/models/enable_user_cr_vpc_tunnel_request.py +124 -0
- volcenginesdkvefaas/models/enable_user_cr_vpc_tunnel_response.py +149 -0
- volcenginesdkvefaas/models/query_user_cr_vpc_tunnel_request.py +124 -0
- volcenginesdkvefaas/models/query_user_cr_vpc_tunnel_response.py +123 -0
- volcenginesdkvke/models/scheduled_instance_policy_for_create_scaling_policy_input.py +27 -1
- volcenginesdkvke/models/scheduled_instance_policy_for_list_scaling_policies_output.py +27 -1
- volcenginesdkvke/models/scheduled_instance_policy_for_update_scaling_policy_input.py +27 -1
- volcenginesdkvod20250101/__init__.py +26 -0
- volcenginesdkvod20250101/api/vod20250101_api.py +888 -112
- volcenginesdkvod20250101/models/__init__.py +26 -0
- volcenginesdkvod20250101/models/create_ai_termbase_request.py +256 -0
- volcenginesdkvod20250101/models/create_ai_termbase_response.py +123 -0
- volcenginesdkvod20250101/models/delete_ai_term_item_request.py +177 -0
- volcenginesdkvod20250101/models/delete_ai_term_item_response.py +95 -0
- volcenginesdkvod20250101/models/delete_ai_termbase_request.py +151 -0
- volcenginesdkvod20250101/models/delete_ai_termbase_response.py +95 -0
- volcenginesdkvod20250101/models/get_ai_termbase_request.py +151 -0
- volcenginesdkvod20250101/models/get_ai_termbase_response.py +123 -0
- volcenginesdkvod20250101/models/list_ai_termbase_request.py +124 -0
- volcenginesdkvod20250101/models/list_ai_termbase_response.py +123 -0
- volcenginesdkvod20250101/models/process_config_for_submit_ai_translation_workflow_input.py +53 -1
- volcenginesdkvod20250101/models/process_config_for_update_ai_translation_project_config_input.py +149 -0
- volcenginesdkvod20250101/models/scenario_for_create_ai_termbase_input.py +95 -0
- volcenginesdkvod20250101/models/set_ai_term_item_request.py +177 -0
- volcenginesdkvod20250101/models/set_ai_term_item_response.py +95 -0
- volcenginesdkvod20250101/models/term_item_for_create_ai_termbase_output.py +149 -0
- volcenginesdkvod20250101/models/term_item_for_get_ai_termbase_output.py +149 -0
- volcenginesdkvod20250101/models/term_item_for_list_ai_termbase_output.py +149 -0
- volcenginesdkvod20250101/models/term_item_for_set_ai_term_item_input.py +149 -0
- volcenginesdkvod20250101/models/termbase_config_for_submit_ai_translation_workflow_input.py +123 -0
- volcenginesdkvod20250101/models/termbase_for_create_ai_termbase_output.py +279 -0
- volcenginesdkvod20250101/models/termbase_for_get_ai_termbase_output.py +279 -0
- volcenginesdkvod20250101/models/termbase_for_list_ai_termbase_output.py +279 -0
- volcenginesdkvod20250101/models/translation_config_for_submit_ai_translation_workflow_input.py +27 -1
- volcenginesdkvod20250101/models/update_ai_termbase_request.py +203 -0
- volcenginesdkvod20250101/models/update_ai_termbase_response.py +95 -0
- volcenginesdkvod20250101/models/update_ai_translation_project_config_request.py +204 -0
- volcenginesdkvod20250101/models/update_ai_translation_project_config_response.py +95 -0
- {volcengine_python_sdk-4.0.26.dist-info → volcengine_python_sdk-4.0.27.dist-info}/WHEEL +0 -0
- {volcengine_python_sdk-4.0.26.dist-info → volcengine_python_sdk-4.0.27.dist-info}/licenses/LICENSE.txt +0 -0
- {volcengine_python_sdk-4.0.26.dist-info → volcengine_python_sdk-4.0.27.dist-info}/licenses/NOTICE.md +0 -0
- {volcengine_python_sdk-4.0.26.dist-info → volcengine_python_sdk-4.0.27.dist-info}/top_level.txt +0 -0
volcenginesdkdbw/api/dbw_api.py
CHANGED
|
@@ -324,6 +324,103 @@ class DBWApi(object):
|
|
|
324
324
|
_request_timeout=params.get('_request_timeout'),
|
|
325
325
|
collection_formats=collection_formats)
|
|
326
326
|
|
|
327
|
+
def execute_sql(self, body, **kwargs): # noqa: E501
|
|
328
|
+
"""execute_sql # noqa: E501
|
|
329
|
+
|
|
330
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
331
|
+
asynchronous HTTP request, please pass async_req=True
|
|
332
|
+
>>> thread = api.execute_sql(body, async_req=True)
|
|
333
|
+
>>> result = thread.get()
|
|
334
|
+
|
|
335
|
+
:param async_req bool
|
|
336
|
+
:param ExecuteSQLRequest body: (required)
|
|
337
|
+
:return: ExecuteSQLResponse
|
|
338
|
+
If the method is called asynchronously,
|
|
339
|
+
returns the request thread.
|
|
340
|
+
"""
|
|
341
|
+
kwargs['_return_http_data_only'] = True
|
|
342
|
+
if kwargs.get('async_req'):
|
|
343
|
+
return self.execute_sql_with_http_info(body, **kwargs) # noqa: E501
|
|
344
|
+
else:
|
|
345
|
+
(data) = self.execute_sql_with_http_info(body, **kwargs) # noqa: E501
|
|
346
|
+
return data
|
|
347
|
+
|
|
348
|
+
def execute_sql_with_http_info(self, body, **kwargs): # noqa: E501
|
|
349
|
+
"""execute_sql # noqa: E501
|
|
350
|
+
|
|
351
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
352
|
+
asynchronous HTTP request, please pass async_req=True
|
|
353
|
+
>>> thread = api.execute_sql_with_http_info(body, async_req=True)
|
|
354
|
+
>>> result = thread.get()
|
|
355
|
+
|
|
356
|
+
:param async_req bool
|
|
357
|
+
:param ExecuteSQLRequest body: (required)
|
|
358
|
+
:return: ExecuteSQLResponse
|
|
359
|
+
If the method is called asynchronously,
|
|
360
|
+
returns the request thread.
|
|
361
|
+
"""
|
|
362
|
+
|
|
363
|
+
all_params = ['body'] # noqa: E501
|
|
364
|
+
all_params.append('async_req')
|
|
365
|
+
all_params.append('_return_http_data_only')
|
|
366
|
+
all_params.append('_preload_content')
|
|
367
|
+
all_params.append('_request_timeout')
|
|
368
|
+
|
|
369
|
+
params = locals()
|
|
370
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
371
|
+
if key not in all_params:
|
|
372
|
+
raise TypeError(
|
|
373
|
+
"Got an unexpected keyword argument '%s'"
|
|
374
|
+
" to method execute_sql" % key
|
|
375
|
+
)
|
|
376
|
+
params[key] = val
|
|
377
|
+
del params['kwargs']
|
|
378
|
+
# verify the required parameter 'body' is set
|
|
379
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
380
|
+
params['body'] is None): # noqa: E501
|
|
381
|
+
raise ValueError("Missing the required parameter `body` when calling `execute_sql`") # noqa: E501
|
|
382
|
+
|
|
383
|
+
collection_formats = {}
|
|
384
|
+
|
|
385
|
+
path_params = {}
|
|
386
|
+
|
|
387
|
+
query_params = []
|
|
388
|
+
|
|
389
|
+
header_params = {}
|
|
390
|
+
|
|
391
|
+
form_params = []
|
|
392
|
+
local_var_files = {}
|
|
393
|
+
|
|
394
|
+
body_params = None
|
|
395
|
+
if 'body' in params:
|
|
396
|
+
body_params = params['body']
|
|
397
|
+
# HTTP header `Accept`
|
|
398
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
399
|
+
['application/json']) # noqa: E501
|
|
400
|
+
|
|
401
|
+
# HTTP header `Content-Type`
|
|
402
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
403
|
+
['application/json']) # noqa: E501
|
|
404
|
+
|
|
405
|
+
# Authentication setting
|
|
406
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
407
|
+
|
|
408
|
+
return self.api_client.call_api(
|
|
409
|
+
'/ExecuteSQL/2018-01-01/dbw/post/application_json/', 'POST',
|
|
410
|
+
path_params,
|
|
411
|
+
query_params,
|
|
412
|
+
header_params,
|
|
413
|
+
body=body_params,
|
|
414
|
+
post_params=form_params,
|
|
415
|
+
files=local_var_files,
|
|
416
|
+
response_type='ExecuteSQLResponse', # noqa: E501
|
|
417
|
+
auth_settings=auth_settings,
|
|
418
|
+
async_req=params.get('async_req'),
|
|
419
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
420
|
+
_preload_content=params.get('_preload_content', True),
|
|
421
|
+
_request_timeout=params.get('_request_timeout'),
|
|
422
|
+
collection_formats=collection_formats)
|
|
423
|
+
|
|
327
424
|
def generate_sql_from_nl(self, body, **kwargs): # noqa: E501
|
|
328
425
|
"""generate_sql_from_nl # noqa: E501
|
|
329
426
|
|
|
@@ -421,6 +518,200 @@ class DBWApi(object):
|
|
|
421
518
|
_request_timeout=params.get('_request_timeout'),
|
|
422
519
|
collection_formats=collection_formats)
|
|
423
520
|
|
|
521
|
+
def get_table_info(self, body, **kwargs): # noqa: E501
|
|
522
|
+
"""get_table_info # noqa: E501
|
|
523
|
+
|
|
524
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
525
|
+
asynchronous HTTP request, please pass async_req=True
|
|
526
|
+
>>> thread = api.get_table_info(body, async_req=True)
|
|
527
|
+
>>> result = thread.get()
|
|
528
|
+
|
|
529
|
+
:param async_req bool
|
|
530
|
+
:param GetTableInfoRequest body: (required)
|
|
531
|
+
:return: GetTableInfoResponse
|
|
532
|
+
If the method is called asynchronously,
|
|
533
|
+
returns the request thread.
|
|
534
|
+
"""
|
|
535
|
+
kwargs['_return_http_data_only'] = True
|
|
536
|
+
if kwargs.get('async_req'):
|
|
537
|
+
return self.get_table_info_with_http_info(body, **kwargs) # noqa: E501
|
|
538
|
+
else:
|
|
539
|
+
(data) = self.get_table_info_with_http_info(body, **kwargs) # noqa: E501
|
|
540
|
+
return data
|
|
541
|
+
|
|
542
|
+
def get_table_info_with_http_info(self, body, **kwargs): # noqa: E501
|
|
543
|
+
"""get_table_info # noqa: E501
|
|
544
|
+
|
|
545
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
546
|
+
asynchronous HTTP request, please pass async_req=True
|
|
547
|
+
>>> thread = api.get_table_info_with_http_info(body, async_req=True)
|
|
548
|
+
>>> result = thread.get()
|
|
549
|
+
|
|
550
|
+
:param async_req bool
|
|
551
|
+
:param GetTableInfoRequest body: (required)
|
|
552
|
+
:return: GetTableInfoResponse
|
|
553
|
+
If the method is called asynchronously,
|
|
554
|
+
returns the request thread.
|
|
555
|
+
"""
|
|
556
|
+
|
|
557
|
+
all_params = ['body'] # noqa: E501
|
|
558
|
+
all_params.append('async_req')
|
|
559
|
+
all_params.append('_return_http_data_only')
|
|
560
|
+
all_params.append('_preload_content')
|
|
561
|
+
all_params.append('_request_timeout')
|
|
562
|
+
|
|
563
|
+
params = locals()
|
|
564
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
565
|
+
if key not in all_params:
|
|
566
|
+
raise TypeError(
|
|
567
|
+
"Got an unexpected keyword argument '%s'"
|
|
568
|
+
" to method get_table_info" % key
|
|
569
|
+
)
|
|
570
|
+
params[key] = val
|
|
571
|
+
del params['kwargs']
|
|
572
|
+
# verify the required parameter 'body' is set
|
|
573
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
574
|
+
params['body'] is None): # noqa: E501
|
|
575
|
+
raise ValueError("Missing the required parameter `body` when calling `get_table_info`") # noqa: E501
|
|
576
|
+
|
|
577
|
+
collection_formats = {}
|
|
578
|
+
|
|
579
|
+
path_params = {}
|
|
580
|
+
|
|
581
|
+
query_params = []
|
|
582
|
+
|
|
583
|
+
header_params = {}
|
|
584
|
+
|
|
585
|
+
form_params = []
|
|
586
|
+
local_var_files = {}
|
|
587
|
+
|
|
588
|
+
body_params = None
|
|
589
|
+
if 'body' in params:
|
|
590
|
+
body_params = params['body']
|
|
591
|
+
# HTTP header `Accept`
|
|
592
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
593
|
+
['application/json']) # noqa: E501
|
|
594
|
+
|
|
595
|
+
# HTTP header `Content-Type`
|
|
596
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
597
|
+
['application/json']) # noqa: E501
|
|
598
|
+
|
|
599
|
+
# Authentication setting
|
|
600
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
601
|
+
|
|
602
|
+
return self.api_client.call_api(
|
|
603
|
+
'/GetTableInfo/2018-01-01/dbw/post/application_json/', 'POST',
|
|
604
|
+
path_params,
|
|
605
|
+
query_params,
|
|
606
|
+
header_params,
|
|
607
|
+
body=body_params,
|
|
608
|
+
post_params=form_params,
|
|
609
|
+
files=local_var_files,
|
|
610
|
+
response_type='GetTableInfoResponse', # noqa: E501
|
|
611
|
+
auth_settings=auth_settings,
|
|
612
|
+
async_req=params.get('async_req'),
|
|
613
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
614
|
+
_preload_content=params.get('_preload_content', True),
|
|
615
|
+
_request_timeout=params.get('_request_timeout'),
|
|
616
|
+
collection_formats=collection_formats)
|
|
617
|
+
|
|
618
|
+
def list_databases(self, body, **kwargs): # noqa: E501
|
|
619
|
+
"""list_databases # noqa: E501
|
|
620
|
+
|
|
621
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
622
|
+
asynchronous HTTP request, please pass async_req=True
|
|
623
|
+
>>> thread = api.list_databases(body, async_req=True)
|
|
624
|
+
>>> result = thread.get()
|
|
625
|
+
|
|
626
|
+
:param async_req bool
|
|
627
|
+
:param ListDatabasesRequest body: (required)
|
|
628
|
+
:return: ListDatabasesResponse
|
|
629
|
+
If the method is called asynchronously,
|
|
630
|
+
returns the request thread.
|
|
631
|
+
"""
|
|
632
|
+
kwargs['_return_http_data_only'] = True
|
|
633
|
+
if kwargs.get('async_req'):
|
|
634
|
+
return self.list_databases_with_http_info(body, **kwargs) # noqa: E501
|
|
635
|
+
else:
|
|
636
|
+
(data) = self.list_databases_with_http_info(body, **kwargs) # noqa: E501
|
|
637
|
+
return data
|
|
638
|
+
|
|
639
|
+
def list_databases_with_http_info(self, body, **kwargs): # noqa: E501
|
|
640
|
+
"""list_databases # noqa: E501
|
|
641
|
+
|
|
642
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
643
|
+
asynchronous HTTP request, please pass async_req=True
|
|
644
|
+
>>> thread = api.list_databases_with_http_info(body, async_req=True)
|
|
645
|
+
>>> result = thread.get()
|
|
646
|
+
|
|
647
|
+
:param async_req bool
|
|
648
|
+
:param ListDatabasesRequest body: (required)
|
|
649
|
+
:return: ListDatabasesResponse
|
|
650
|
+
If the method is called asynchronously,
|
|
651
|
+
returns the request thread.
|
|
652
|
+
"""
|
|
653
|
+
|
|
654
|
+
all_params = ['body'] # noqa: E501
|
|
655
|
+
all_params.append('async_req')
|
|
656
|
+
all_params.append('_return_http_data_only')
|
|
657
|
+
all_params.append('_preload_content')
|
|
658
|
+
all_params.append('_request_timeout')
|
|
659
|
+
|
|
660
|
+
params = locals()
|
|
661
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
662
|
+
if key not in all_params:
|
|
663
|
+
raise TypeError(
|
|
664
|
+
"Got an unexpected keyword argument '%s'"
|
|
665
|
+
" to method list_databases" % key
|
|
666
|
+
)
|
|
667
|
+
params[key] = val
|
|
668
|
+
del params['kwargs']
|
|
669
|
+
# verify the required parameter 'body' is set
|
|
670
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
671
|
+
params['body'] is None): # noqa: E501
|
|
672
|
+
raise ValueError("Missing the required parameter `body` when calling `list_databases`") # noqa: E501
|
|
673
|
+
|
|
674
|
+
collection_formats = {}
|
|
675
|
+
|
|
676
|
+
path_params = {}
|
|
677
|
+
|
|
678
|
+
query_params = []
|
|
679
|
+
|
|
680
|
+
header_params = {}
|
|
681
|
+
|
|
682
|
+
form_params = []
|
|
683
|
+
local_var_files = {}
|
|
684
|
+
|
|
685
|
+
body_params = None
|
|
686
|
+
if 'body' in params:
|
|
687
|
+
body_params = params['body']
|
|
688
|
+
# HTTP header `Accept`
|
|
689
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
690
|
+
['application/json']) # noqa: E501
|
|
691
|
+
|
|
692
|
+
# HTTP header `Content-Type`
|
|
693
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
694
|
+
['application/json']) # noqa: E501
|
|
695
|
+
|
|
696
|
+
# Authentication setting
|
|
697
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
698
|
+
|
|
699
|
+
return self.api_client.call_api(
|
|
700
|
+
'/ListDatabases/2018-01-01/dbw/post/application_json/', 'POST',
|
|
701
|
+
path_params,
|
|
702
|
+
query_params,
|
|
703
|
+
header_params,
|
|
704
|
+
body=body_params,
|
|
705
|
+
post_params=form_params,
|
|
706
|
+
files=local_var_files,
|
|
707
|
+
response_type='ListDatabasesResponse', # noqa: E501
|
|
708
|
+
auth_settings=auth_settings,
|
|
709
|
+
async_req=params.get('async_req'),
|
|
710
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
711
|
+
_preload_content=params.get('_preload_content', True),
|
|
712
|
+
_request_timeout=params.get('_request_timeout'),
|
|
713
|
+
collection_formats=collection_formats)
|
|
714
|
+
|
|
424
715
|
def list_slow_query_advice_api(self, body, **kwargs): # noqa: E501
|
|
425
716
|
"""list_slow_query_advice_api # noqa: E501
|
|
426
717
|
|
|
@@ -518,6 +809,103 @@ class DBWApi(object):
|
|
|
518
809
|
_request_timeout=params.get('_request_timeout'),
|
|
519
810
|
collection_formats=collection_formats)
|
|
520
811
|
|
|
812
|
+
def list_tables(self, body, **kwargs): # noqa: E501
|
|
813
|
+
"""list_tables # noqa: E501
|
|
814
|
+
|
|
815
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
816
|
+
asynchronous HTTP request, please pass async_req=True
|
|
817
|
+
>>> thread = api.list_tables(body, async_req=True)
|
|
818
|
+
>>> result = thread.get()
|
|
819
|
+
|
|
820
|
+
:param async_req bool
|
|
821
|
+
:param ListTablesRequest body: (required)
|
|
822
|
+
:return: ListTablesResponse
|
|
823
|
+
If the method is called asynchronously,
|
|
824
|
+
returns the request thread.
|
|
825
|
+
"""
|
|
826
|
+
kwargs['_return_http_data_only'] = True
|
|
827
|
+
if kwargs.get('async_req'):
|
|
828
|
+
return self.list_tables_with_http_info(body, **kwargs) # noqa: E501
|
|
829
|
+
else:
|
|
830
|
+
(data) = self.list_tables_with_http_info(body, **kwargs) # noqa: E501
|
|
831
|
+
return data
|
|
832
|
+
|
|
833
|
+
def list_tables_with_http_info(self, body, **kwargs): # noqa: E501
|
|
834
|
+
"""list_tables # noqa: E501
|
|
835
|
+
|
|
836
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
837
|
+
asynchronous HTTP request, please pass async_req=True
|
|
838
|
+
>>> thread = api.list_tables_with_http_info(body, async_req=True)
|
|
839
|
+
>>> result = thread.get()
|
|
840
|
+
|
|
841
|
+
:param async_req bool
|
|
842
|
+
:param ListTablesRequest body: (required)
|
|
843
|
+
:return: ListTablesResponse
|
|
844
|
+
If the method is called asynchronously,
|
|
845
|
+
returns the request thread.
|
|
846
|
+
"""
|
|
847
|
+
|
|
848
|
+
all_params = ['body'] # noqa: E501
|
|
849
|
+
all_params.append('async_req')
|
|
850
|
+
all_params.append('_return_http_data_only')
|
|
851
|
+
all_params.append('_preload_content')
|
|
852
|
+
all_params.append('_request_timeout')
|
|
853
|
+
|
|
854
|
+
params = locals()
|
|
855
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
856
|
+
if key not in all_params:
|
|
857
|
+
raise TypeError(
|
|
858
|
+
"Got an unexpected keyword argument '%s'"
|
|
859
|
+
" to method list_tables" % key
|
|
860
|
+
)
|
|
861
|
+
params[key] = val
|
|
862
|
+
del params['kwargs']
|
|
863
|
+
# verify the required parameter 'body' is set
|
|
864
|
+
if self.api_client.client_side_validation and ('body' not in params or
|
|
865
|
+
params['body'] is None): # noqa: E501
|
|
866
|
+
raise ValueError("Missing the required parameter `body` when calling `list_tables`") # noqa: E501
|
|
867
|
+
|
|
868
|
+
collection_formats = {}
|
|
869
|
+
|
|
870
|
+
path_params = {}
|
|
871
|
+
|
|
872
|
+
query_params = []
|
|
873
|
+
|
|
874
|
+
header_params = {}
|
|
875
|
+
|
|
876
|
+
form_params = []
|
|
877
|
+
local_var_files = {}
|
|
878
|
+
|
|
879
|
+
body_params = None
|
|
880
|
+
if 'body' in params:
|
|
881
|
+
body_params = params['body']
|
|
882
|
+
# HTTP header `Accept`
|
|
883
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
884
|
+
['application/json']) # noqa: E501
|
|
885
|
+
|
|
886
|
+
# HTTP header `Content-Type`
|
|
887
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
888
|
+
['application/json']) # noqa: E501
|
|
889
|
+
|
|
890
|
+
# Authentication setting
|
|
891
|
+
auth_settings = ['volcengineSign'] # noqa: E501
|
|
892
|
+
|
|
893
|
+
return self.api_client.call_api(
|
|
894
|
+
'/ListTables/2018-01-01/dbw/post/application_json/', 'POST',
|
|
895
|
+
path_params,
|
|
896
|
+
query_params,
|
|
897
|
+
header_params,
|
|
898
|
+
body=body_params,
|
|
899
|
+
post_params=form_params,
|
|
900
|
+
files=local_var_files,
|
|
901
|
+
response_type='ListTablesResponse', # noqa: E501
|
|
902
|
+
auth_settings=auth_settings,
|
|
903
|
+
async_req=params.get('async_req'),
|
|
904
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
905
|
+
_preload_content=params.get('_preload_content', True),
|
|
906
|
+
_request_timeout=params.get('_request_timeout'),
|
|
907
|
+
collection_formats=collection_formats)
|
|
908
|
+
|
|
521
909
|
def modify_audit_log_config(self, body, **kwargs): # noqa: E501
|
|
522
910
|
"""modify_audit_log_config # noqa: E501
|
|
523
911
|
|
|
@@ -18,6 +18,7 @@ from __future__ import absolute_import
|
|
|
18
18
|
from volcenginesdkdbw.models.advice_for_list_slow_query_advice_api_output import AdviceForListSlowQueryAdviceApiOutput
|
|
19
19
|
from volcenginesdkdbw.models.advices_by_group_for_list_slow_query_advice_api_output import AdvicesByGroupForListSlowQueryAdviceApiOutput
|
|
20
20
|
from volcenginesdkdbw.models.agg_for_list_slow_query_advice_api_output import AggForListSlowQueryAdviceApiOutput
|
|
21
|
+
from volcenginesdkdbw.models.column_for_get_table_info_output import ColumnForGetTableInfoOutput
|
|
21
22
|
from volcenginesdkdbw.models.convertadvice_for_list_slow_query_advice_api_output import ConvertadviceForListSlowQueryAdviceApiOutput
|
|
22
23
|
from volcenginesdkdbw.models.describe_audit_log_config_request import DescribeAuditLogConfigRequest
|
|
23
24
|
from volcenginesdkdbw.models.describe_audit_log_config_response import DescribeAuditLogConfigResponse
|
|
@@ -26,19 +27,36 @@ from volcenginesdkdbw.models.describe_audit_log_detail_response import DescribeA
|
|
|
26
27
|
from volcenginesdkdbw.models.describe_audit_log_detail_row_for_describe_audit_log_detail_output import DescribeAuditLogDetailRowForDescribeAuditLogDetailOutput
|
|
27
28
|
from volcenginesdkdbw.models.describe_slow_logs_request import DescribeSlowLogsRequest
|
|
28
29
|
from volcenginesdkdbw.models.describe_slow_logs_response import DescribeSlowLogsResponse
|
|
30
|
+
from volcenginesdkdbw.models.execute_sql_request import ExecuteSQLRequest
|
|
31
|
+
from volcenginesdkdbw.models.execute_sql_response import ExecuteSQLResponse
|
|
32
|
+
from volcenginesdkdbw.models.foreign_key_for_get_table_info_output import ForeignKeyForGetTableInfoOutput
|
|
29
33
|
from volcenginesdkdbw.models.generate_sql_from_nl_request import GenerateSQLFromNLRequest
|
|
30
34
|
from volcenginesdkdbw.models.generate_sql_from_nl_response import GenerateSQLFromNLResponse
|
|
35
|
+
from volcenginesdkdbw.models.get_table_info_request import GetTableInfoRequest
|
|
36
|
+
from volcenginesdkdbw.models.get_table_info_response import GetTableInfoResponse
|
|
37
|
+
from volcenginesdkdbw.models.index_for_get_table_info_output import IndexForGetTableInfoOutput
|
|
38
|
+
from volcenginesdkdbw.models.item_for_list_databases_output import ItemForListDatabasesOutput
|
|
39
|
+
from volcenginesdkdbw.models.list_databases_request import ListDatabasesRequest
|
|
40
|
+
from volcenginesdkdbw.models.list_databases_response import ListDatabasesResponse
|
|
31
41
|
from volcenginesdkdbw.models.list_slow_query_advice_api_request import ListSlowQueryAdviceApiRequest
|
|
32
42
|
from volcenginesdkdbw.models.list_slow_query_advice_api_response import ListSlowQueryAdviceApiResponse
|
|
43
|
+
from volcenginesdkdbw.models.list_tables_request import ListTablesRequest
|
|
44
|
+
from volcenginesdkdbw.models.list_tables_response import ListTablesResponse
|
|
33
45
|
from volcenginesdkdbw.models.lock_time_stats_for_list_slow_query_advice_api_output import LockTimeStatsForListSlowQueryAdviceApiOutput
|
|
34
46
|
from volcenginesdkdbw.models.modify_audit_log_config_request import ModifyAuditLogConfigRequest
|
|
35
47
|
from volcenginesdkdbw.models.modify_audit_log_config_response import ModifyAuditLogConfigResponse
|
|
48
|
+
from volcenginesdkdbw.models.partition_options_for_get_table_info_output import PartitionOptionsForGetTableInfoOutput
|
|
36
49
|
from volcenginesdkdbw.models.query_time_stats_for_list_slow_query_advice_api_output import QueryTimeStatsForListSlowQueryAdviceApiOutput
|
|
37
50
|
from volcenginesdkdbw.models.res_list_for_slow_query_advice_task_history_api_output import ResListForSlowQueryAdviceTaskHistoryApiOutput
|
|
51
|
+
from volcenginesdkdbw.models.result_for_execute_sql_output import ResultForExecuteSQLOutput
|
|
52
|
+
from volcenginesdkdbw.models.row_for_execute_sql_output import RowForExecuteSQLOutput
|
|
38
53
|
from volcenginesdkdbw.models.rows_examined_stats_for_list_slow_query_advice_api_output import RowsExaminedStatsForListSlowQueryAdviceApiOutput
|
|
39
54
|
from volcenginesdkdbw.models.rows_sent_stats_for_list_slow_query_advice_api_output import RowsSentStatsForListSlowQueryAdviceApiOutput
|
|
55
|
+
from volcenginesdkdbw.models.running_info_for_execute_sql_output import RunningInfoForExecuteSQLOutput
|
|
40
56
|
from volcenginesdkdbw.models.search_param_for_describe_audit_log_detail_input import SearchParamForDescribeAuditLogDetailInput
|
|
41
57
|
from volcenginesdkdbw.models.search_param_for_describe_slow_logs_input import SearchParamForDescribeSlowLogsInput
|
|
42
58
|
from volcenginesdkdbw.models.slow_log_for_describe_slow_logs_output import SlowLogForDescribeSlowLogsOutput
|
|
43
59
|
from volcenginesdkdbw.models.slow_query_advice_task_history_api_request import SlowQueryAdviceTaskHistoryApiRequest
|
|
44
60
|
from volcenginesdkdbw.models.slow_query_advice_task_history_api_response import SlowQueryAdviceTaskHistoryApiResponse
|
|
61
|
+
from volcenginesdkdbw.models.table_meta_for_get_table_info_output import TableMetaForGetTableInfoOutput
|
|
62
|
+
from volcenginesdkdbw.models.table_options_for_get_table_info_output import TableOptionsForGetTableInfoOutput
|