huaweicloudsdkgaussdb 3.1.145__py2.py3-none-any.whl → 3.1.146__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkgaussdb/v3/__init__.py +7 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +211 -0
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +211 -0
- huaweicloudsdkgaussdb/v3/model/__init__.py +7 -0
- huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_req.py +202 -0
- huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/modify_auto_expand_policy_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/modify_node_data_ip_request.py +3 -3
- huaweicloudsdkgaussdb/v3/model/show_auto_expand_policy_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_auto_expand_policy_response.py +203 -0
- huaweicloudsdkgaussdb/v3/model/show_restore_available_tables_request.py +257 -0
- huaweicloudsdkgaussdb/v3/model/show_restore_available_tables_response.py +145 -0
- {huaweicloudsdkgaussdb-3.1.145.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.145.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/RECORD +17 -10
- {huaweicloudsdkgaussdb-3.1.145.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.145.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.145.dist-info → huaweicloudsdkgaussdb-3.1.146.dist-info}/top_level.txt +0 -0
@@ -340,6 +340,9 @@ from huaweicloudsdkgaussdb.v3.model.lts_log_error_query_request import LtsLogErr
|
|
340
340
|
from huaweicloudsdkgaussdb.v3.model.lts_log_slow_detail import LtsLogSlowDetail
|
341
341
|
from huaweicloudsdkgaussdb.v3.model.lts_log_slow_query_request import LtsLogSlowQueryRequest
|
342
342
|
from huaweicloudsdkgaussdb.v3.model.modify_alias_request import ModifyAliasRequest
|
343
|
+
from huaweicloudsdkgaussdb.v3.model.modify_auto_expand_policy_req import ModifyAutoExpandPolicyReq
|
344
|
+
from huaweicloudsdkgaussdb.v3.model.modify_auto_expand_policy_request import ModifyAutoExpandPolicyRequest
|
345
|
+
from huaweicloudsdkgaussdb.v3.model.modify_auto_expand_policy_response import ModifyAutoExpandPolicyResponse
|
343
346
|
from huaweicloudsdkgaussdb.v3.model.modify_backup_encrypt_status_request import ModifyBackupEncryptStatusRequest
|
344
347
|
from huaweicloudsdkgaussdb.v3.model.modify_backup_encrypt_status_response import ModifyBackupEncryptStatusResponse
|
345
348
|
from huaweicloudsdkgaussdb.v3.model.modify_bind_eip_request import ModifyBindEipRequest
|
@@ -492,6 +495,8 @@ from huaweicloudsdkgaussdb.v3.model.set_sql_filter_rule_request import SetSqlFil
|
|
492
495
|
from huaweicloudsdkgaussdb.v3.model.set_sql_filter_rule_response import SetSqlFilterRuleResponse
|
493
496
|
from huaweicloudsdkgaussdb.v3.model.show_audit_log_request import ShowAuditLogRequest
|
494
497
|
from huaweicloudsdkgaussdb.v3.model.show_audit_log_response import ShowAuditLogResponse
|
498
|
+
from huaweicloudsdkgaussdb.v3.model.show_auto_expand_policy_request import ShowAutoExpandPolicyRequest
|
499
|
+
from huaweicloudsdkgaussdb.v3.model.show_auto_expand_policy_response import ShowAutoExpandPolicyResponse
|
495
500
|
from huaweicloudsdkgaussdb.v3.model.show_auto_scaling_history_request import ShowAutoScalingHistoryRequest
|
496
501
|
from huaweicloudsdkgaussdb.v3.model.show_auto_scaling_history_response import ShowAutoScalingHistoryResponse
|
497
502
|
from huaweicloudsdkgaussdb.v3.model.show_auto_scaling_policy_request import ShowAutoScalingPolicyRequest
|
@@ -557,6 +562,8 @@ from huaweicloudsdkgaussdb.v3.model.show_proxy_version_request import ShowProxyV
|
|
557
562
|
from huaweicloudsdkgaussdb.v3.model.show_proxy_version_response import ShowProxyVersionResponse
|
558
563
|
from huaweicloudsdkgaussdb.v3.model.show_recycle_policy_request import ShowRecyclePolicyRequest
|
559
564
|
from huaweicloudsdkgaussdb.v3.model.show_recycle_policy_response import ShowRecyclePolicyResponse
|
565
|
+
from huaweicloudsdkgaussdb.v3.model.show_restore_available_tables_request import ShowRestoreAvailableTablesRequest
|
566
|
+
from huaweicloudsdkgaussdb.v3.model.show_restore_available_tables_response import ShowRestoreAvailableTablesResponse
|
560
567
|
from huaweicloudsdkgaussdb.v3.model.show_restore_tables_request import ShowRestoreTablesRequest
|
561
568
|
from huaweicloudsdkgaussdb.v3.model.show_restore_tables_response import ShowRestoreTablesResponse
|
562
569
|
from huaweicloudsdkgaussdb.v3.model.show_slow_log_statistics_item import ShowSlowLogStatisticsItem
|
@@ -4374,6 +4374,75 @@ class GaussDBAsyncClient(Client):
|
|
4374
4374
|
|
4375
4375
|
return http_info
|
4376
4376
|
|
4377
|
+
def modify_auto_expand_policy_async(self, request):
|
4378
|
+
r"""修改存储空间自动扩容策略。
|
4379
|
+
|
4380
|
+
修改存储空间自动扩容策略。
|
4381
|
+
|
4382
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4383
|
+
|
4384
|
+
|
4385
|
+
:param request: Request instance for ModifyAutoExpandPolicy
|
4386
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ModifyAutoExpandPolicyRequest`
|
4387
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ModifyAutoExpandPolicyResponse`
|
4388
|
+
"""
|
4389
|
+
http_info = self._modify_auto_expand_policy_http_info(request)
|
4390
|
+
return self._call_api(**http_info)
|
4391
|
+
|
4392
|
+
def modify_auto_expand_policy_async_invoker(self, request):
|
4393
|
+
http_info = self._modify_auto_expand_policy_http_info(request)
|
4394
|
+
return AsyncInvoker(self, http_info)
|
4395
|
+
|
4396
|
+
def _modify_auto_expand_policy_http_info(self, request):
|
4397
|
+
http_info = {
|
4398
|
+
"method": "PUT",
|
4399
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/storage/auto-expand-policy",
|
4400
|
+
"request_type": request.__class__.__name__,
|
4401
|
+
"response_type": "ModifyAutoExpandPolicyResponse"
|
4402
|
+
}
|
4403
|
+
|
4404
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4405
|
+
|
4406
|
+
cname = None
|
4407
|
+
|
4408
|
+
collection_formats = {}
|
4409
|
+
|
4410
|
+
path_params = {}
|
4411
|
+
if 'instance_id' in local_var_params:
|
4412
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
4413
|
+
|
4414
|
+
query_params = []
|
4415
|
+
|
4416
|
+
header_params = {}
|
4417
|
+
if 'x_language' in local_var_params:
|
4418
|
+
header_params['X-Language'] = local_var_params['x_language']
|
4419
|
+
|
4420
|
+
form_params = {}
|
4421
|
+
|
4422
|
+
body = None
|
4423
|
+
if 'body' in local_var_params:
|
4424
|
+
body = local_var_params['body']
|
4425
|
+
if isinstance(request, SdkStreamRequest):
|
4426
|
+
body = request.get_file_stream()
|
4427
|
+
|
4428
|
+
response_headers = []
|
4429
|
+
|
4430
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4431
|
+
['application/json;charset=UTF-8'])
|
4432
|
+
|
4433
|
+
auth_settings = []
|
4434
|
+
|
4435
|
+
http_info["cname"] = cname
|
4436
|
+
http_info["collection_formats"] = collection_formats
|
4437
|
+
http_info["path_params"] = path_params
|
4438
|
+
http_info["query_params"] = query_params
|
4439
|
+
http_info["header_params"] = header_params
|
4440
|
+
http_info["post_params"] = form_params
|
4441
|
+
http_info["body"] = body
|
4442
|
+
http_info["response_headers"] = response_headers
|
4443
|
+
|
4444
|
+
return http_info
|
4445
|
+
|
4377
4446
|
def modify_backup_encrypt_status_async(self, request):
|
4378
4447
|
r"""打开或关闭备份加密
|
4379
4448
|
|
@@ -5478,6 +5547,73 @@ class GaussDBAsyncClient(Client):
|
|
5478
5547
|
|
5479
5548
|
return http_info
|
5480
5549
|
|
5550
|
+
def show_auto_expand_policy_async(self, request):
|
5551
|
+
r"""查询存储空间自动扩容策略。
|
5552
|
+
|
5553
|
+
查询存储空间自动扩容策略。
|
5554
|
+
|
5555
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5556
|
+
|
5557
|
+
|
5558
|
+
:param request: Request instance for ShowAutoExpandPolicy
|
5559
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowAutoExpandPolicyRequest`
|
5560
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAutoExpandPolicyResponse`
|
5561
|
+
"""
|
5562
|
+
http_info = self._show_auto_expand_policy_http_info(request)
|
5563
|
+
return self._call_api(**http_info)
|
5564
|
+
|
5565
|
+
def show_auto_expand_policy_async_invoker(self, request):
|
5566
|
+
http_info = self._show_auto_expand_policy_http_info(request)
|
5567
|
+
return AsyncInvoker(self, http_info)
|
5568
|
+
|
5569
|
+
def _show_auto_expand_policy_http_info(self, request):
|
5570
|
+
http_info = {
|
5571
|
+
"method": "GET",
|
5572
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/storage/auto-expand-policy",
|
5573
|
+
"request_type": request.__class__.__name__,
|
5574
|
+
"response_type": "ShowAutoExpandPolicyResponse"
|
5575
|
+
}
|
5576
|
+
|
5577
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5578
|
+
|
5579
|
+
cname = None
|
5580
|
+
|
5581
|
+
collection_formats = {}
|
5582
|
+
|
5583
|
+
path_params = {}
|
5584
|
+
if 'instance_id' in local_var_params:
|
5585
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
5586
|
+
|
5587
|
+
query_params = []
|
5588
|
+
|
5589
|
+
header_params = {}
|
5590
|
+
if 'x_language' in local_var_params:
|
5591
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5592
|
+
|
5593
|
+
form_params = {}
|
5594
|
+
|
5595
|
+
body = None
|
5596
|
+
if isinstance(request, SdkStreamRequest):
|
5597
|
+
body = request.get_file_stream()
|
5598
|
+
|
5599
|
+
response_headers = []
|
5600
|
+
|
5601
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5602
|
+
['application/json'])
|
5603
|
+
|
5604
|
+
auth_settings = []
|
5605
|
+
|
5606
|
+
http_info["cname"] = cname
|
5607
|
+
http_info["collection_formats"] = collection_formats
|
5608
|
+
http_info["path_params"] = path_params
|
5609
|
+
http_info["query_params"] = query_params
|
5610
|
+
http_info["header_params"] = header_params
|
5611
|
+
http_info["post_params"] = form_params
|
5612
|
+
http_info["body"] = body
|
5613
|
+
http_info["response_headers"] = response_headers
|
5614
|
+
|
5615
|
+
return http_info
|
5616
|
+
|
5481
5617
|
def show_auto_scaling_history_async(self, request):
|
5482
5618
|
r"""查询自动变配历史记录.
|
5483
5619
|
|
@@ -7420,6 +7556,81 @@ class GaussDBAsyncClient(Client):
|
|
7420
7556
|
|
7421
7557
|
return http_info
|
7422
7558
|
|
7559
|
+
def show_restore_available_tables_async(self, request):
|
7560
|
+
r"""查询表级时间点恢复可选表
|
7561
|
+
|
7562
|
+
查询表级时间点恢复可选表。
|
7563
|
+
|
7564
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7565
|
+
|
7566
|
+
|
7567
|
+
:param request: Request instance for ShowRestoreAvailableTables
|
7568
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreAvailableTablesRequest`
|
7569
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreAvailableTablesResponse`
|
7570
|
+
"""
|
7571
|
+
http_info = self._show_restore_available_tables_http_info(request)
|
7572
|
+
return self._call_api(**http_info)
|
7573
|
+
|
7574
|
+
def show_restore_available_tables_async_invoker(self, request):
|
7575
|
+
http_info = self._show_restore_available_tables_http_info(request)
|
7576
|
+
return AsyncInvoker(self, http_info)
|
7577
|
+
|
7578
|
+
def _show_restore_available_tables_http_info(self, request):
|
7579
|
+
http_info = {
|
7580
|
+
"method": "GET",
|
7581
|
+
"resource_path": "/v3.1/{project_id}/instances/{instance_id}/backups/restore/tables",
|
7582
|
+
"request_type": request.__class__.__name__,
|
7583
|
+
"response_type": "ShowRestoreAvailableTablesResponse"
|
7584
|
+
}
|
7585
|
+
|
7586
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7587
|
+
|
7588
|
+
cname = None
|
7589
|
+
|
7590
|
+
collection_formats = {}
|
7591
|
+
|
7592
|
+
path_params = {}
|
7593
|
+
if 'instance_id' in local_var_params:
|
7594
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
7595
|
+
|
7596
|
+
query_params = []
|
7597
|
+
if 'restore_time' in local_var_params:
|
7598
|
+
query_params.append(('restore_time', local_var_params['restore_time']))
|
7599
|
+
if 'last_table_info' in local_var_params:
|
7600
|
+
query_params.append(('last_table_info', local_var_params['last_table_info']))
|
7601
|
+
if 'database_name' in local_var_params:
|
7602
|
+
query_params.append(('database_name', local_var_params['database_name']))
|
7603
|
+
if 'table_name' in local_var_params:
|
7604
|
+
query_params.append(('table_name', local_var_params['table_name']))
|
7605
|
+
|
7606
|
+
header_params = {}
|
7607
|
+
if 'x_language' in local_var_params:
|
7608
|
+
header_params['X-Language'] = local_var_params['x_language']
|
7609
|
+
|
7610
|
+
form_params = {}
|
7611
|
+
|
7612
|
+
body = None
|
7613
|
+
if isinstance(request, SdkStreamRequest):
|
7614
|
+
body = request.get_file_stream()
|
7615
|
+
|
7616
|
+
response_headers = []
|
7617
|
+
|
7618
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7619
|
+
['application/json'])
|
7620
|
+
|
7621
|
+
auth_settings = []
|
7622
|
+
|
7623
|
+
http_info["cname"] = cname
|
7624
|
+
http_info["collection_formats"] = collection_formats
|
7625
|
+
http_info["path_params"] = path_params
|
7626
|
+
http_info["query_params"] = query_params
|
7627
|
+
http_info["header_params"] = header_params
|
7628
|
+
http_info["post_params"] = form_params
|
7629
|
+
http_info["body"] = body
|
7630
|
+
http_info["response_headers"] = response_headers
|
7631
|
+
|
7632
|
+
return http_info
|
7633
|
+
|
7423
7634
|
def show_restore_tables_async(self, request):
|
7424
7635
|
r"""查询表级时间点恢复可选表
|
7425
7636
|
|
@@ -4374,6 +4374,75 @@ class GaussDBClient(Client):
|
|
4374
4374
|
|
4375
4375
|
return http_info
|
4376
4376
|
|
4377
|
+
def modify_auto_expand_policy(self, request):
|
4378
|
+
r"""修改存储空间自动扩容策略。
|
4379
|
+
|
4380
|
+
修改存储空间自动扩容策略。
|
4381
|
+
|
4382
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4383
|
+
|
4384
|
+
:param request: Request instance for ModifyAutoExpandPolicy
|
4385
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ModifyAutoExpandPolicyRequest`
|
4386
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ModifyAutoExpandPolicyResponse`
|
4387
|
+
"""
|
4388
|
+
http_info = self._modify_auto_expand_policy_http_info(request)
|
4389
|
+
return self._call_api(**http_info)
|
4390
|
+
|
4391
|
+
def modify_auto_expand_policy_invoker(self, request):
|
4392
|
+
http_info = self._modify_auto_expand_policy_http_info(request)
|
4393
|
+
return SyncInvoker(self, http_info)
|
4394
|
+
|
4395
|
+
@classmethod
|
4396
|
+
def _modify_auto_expand_policy_http_info(cls, request):
|
4397
|
+
http_info = {
|
4398
|
+
"method": "PUT",
|
4399
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/storage/auto-expand-policy",
|
4400
|
+
"request_type": request.__class__.__name__,
|
4401
|
+
"response_type": "ModifyAutoExpandPolicyResponse"
|
4402
|
+
}
|
4403
|
+
|
4404
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4405
|
+
|
4406
|
+
cname = None
|
4407
|
+
|
4408
|
+
collection_formats = {}
|
4409
|
+
|
4410
|
+
path_params = {}
|
4411
|
+
if 'instance_id' in local_var_params:
|
4412
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
4413
|
+
|
4414
|
+
query_params = []
|
4415
|
+
|
4416
|
+
header_params = {}
|
4417
|
+
if 'x_language' in local_var_params:
|
4418
|
+
header_params['X-Language'] = local_var_params['x_language']
|
4419
|
+
|
4420
|
+
form_params = {}
|
4421
|
+
|
4422
|
+
body = None
|
4423
|
+
if 'body' in local_var_params:
|
4424
|
+
body = local_var_params['body']
|
4425
|
+
if isinstance(request, SdkStreamRequest):
|
4426
|
+
body = request.get_file_stream()
|
4427
|
+
|
4428
|
+
response_headers = []
|
4429
|
+
|
4430
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4431
|
+
['application/json;charset=UTF-8'])
|
4432
|
+
|
4433
|
+
auth_settings = []
|
4434
|
+
|
4435
|
+
http_info["cname"] = cname
|
4436
|
+
http_info["collection_formats"] = collection_formats
|
4437
|
+
http_info["path_params"] = path_params
|
4438
|
+
http_info["query_params"] = query_params
|
4439
|
+
http_info["header_params"] = header_params
|
4440
|
+
http_info["post_params"] = form_params
|
4441
|
+
http_info["body"] = body
|
4442
|
+
http_info["response_headers"] = response_headers
|
4443
|
+
|
4444
|
+
return http_info
|
4445
|
+
|
4377
4446
|
def modify_backup_encrypt_status(self, request):
|
4378
4447
|
r"""打开或关闭备份加密
|
4379
4448
|
|
@@ -5478,6 +5547,73 @@ class GaussDBClient(Client):
|
|
5478
5547
|
|
5479
5548
|
return http_info
|
5480
5549
|
|
5550
|
+
def show_auto_expand_policy(self, request):
|
5551
|
+
r"""查询存储空间自动扩容策略。
|
5552
|
+
|
5553
|
+
查询存储空间自动扩容策略。
|
5554
|
+
|
5555
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5556
|
+
|
5557
|
+
:param request: Request instance for ShowAutoExpandPolicy
|
5558
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowAutoExpandPolicyRequest`
|
5559
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAutoExpandPolicyResponse`
|
5560
|
+
"""
|
5561
|
+
http_info = self._show_auto_expand_policy_http_info(request)
|
5562
|
+
return self._call_api(**http_info)
|
5563
|
+
|
5564
|
+
def show_auto_expand_policy_invoker(self, request):
|
5565
|
+
http_info = self._show_auto_expand_policy_http_info(request)
|
5566
|
+
return SyncInvoker(self, http_info)
|
5567
|
+
|
5568
|
+
@classmethod
|
5569
|
+
def _show_auto_expand_policy_http_info(cls, request):
|
5570
|
+
http_info = {
|
5571
|
+
"method": "GET",
|
5572
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/storage/auto-expand-policy",
|
5573
|
+
"request_type": request.__class__.__name__,
|
5574
|
+
"response_type": "ShowAutoExpandPolicyResponse"
|
5575
|
+
}
|
5576
|
+
|
5577
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5578
|
+
|
5579
|
+
cname = None
|
5580
|
+
|
5581
|
+
collection_formats = {}
|
5582
|
+
|
5583
|
+
path_params = {}
|
5584
|
+
if 'instance_id' in local_var_params:
|
5585
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
5586
|
+
|
5587
|
+
query_params = []
|
5588
|
+
|
5589
|
+
header_params = {}
|
5590
|
+
if 'x_language' in local_var_params:
|
5591
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5592
|
+
|
5593
|
+
form_params = {}
|
5594
|
+
|
5595
|
+
body = None
|
5596
|
+
if isinstance(request, SdkStreamRequest):
|
5597
|
+
body = request.get_file_stream()
|
5598
|
+
|
5599
|
+
response_headers = []
|
5600
|
+
|
5601
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5602
|
+
['application/json'])
|
5603
|
+
|
5604
|
+
auth_settings = []
|
5605
|
+
|
5606
|
+
http_info["cname"] = cname
|
5607
|
+
http_info["collection_formats"] = collection_formats
|
5608
|
+
http_info["path_params"] = path_params
|
5609
|
+
http_info["query_params"] = query_params
|
5610
|
+
http_info["header_params"] = header_params
|
5611
|
+
http_info["post_params"] = form_params
|
5612
|
+
http_info["body"] = body
|
5613
|
+
http_info["response_headers"] = response_headers
|
5614
|
+
|
5615
|
+
return http_info
|
5616
|
+
|
5481
5617
|
def show_auto_scaling_history(self, request):
|
5482
5618
|
r"""查询自动变配历史记录.
|
5483
5619
|
|
@@ -7420,6 +7556,81 @@ class GaussDBClient(Client):
|
|
7420
7556
|
|
7421
7557
|
return http_info
|
7422
7558
|
|
7559
|
+
def show_restore_available_tables(self, request):
|
7560
|
+
r"""查询表级时间点恢复可选表
|
7561
|
+
|
7562
|
+
查询表级时间点恢复可选表。
|
7563
|
+
|
7564
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7565
|
+
|
7566
|
+
:param request: Request instance for ShowRestoreAvailableTables
|
7567
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreAvailableTablesRequest`
|
7568
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreAvailableTablesResponse`
|
7569
|
+
"""
|
7570
|
+
http_info = self._show_restore_available_tables_http_info(request)
|
7571
|
+
return self._call_api(**http_info)
|
7572
|
+
|
7573
|
+
def show_restore_available_tables_invoker(self, request):
|
7574
|
+
http_info = self._show_restore_available_tables_http_info(request)
|
7575
|
+
return SyncInvoker(self, http_info)
|
7576
|
+
|
7577
|
+
@classmethod
|
7578
|
+
def _show_restore_available_tables_http_info(cls, request):
|
7579
|
+
http_info = {
|
7580
|
+
"method": "GET",
|
7581
|
+
"resource_path": "/v3.1/{project_id}/instances/{instance_id}/backups/restore/tables",
|
7582
|
+
"request_type": request.__class__.__name__,
|
7583
|
+
"response_type": "ShowRestoreAvailableTablesResponse"
|
7584
|
+
}
|
7585
|
+
|
7586
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7587
|
+
|
7588
|
+
cname = None
|
7589
|
+
|
7590
|
+
collection_formats = {}
|
7591
|
+
|
7592
|
+
path_params = {}
|
7593
|
+
if 'instance_id' in local_var_params:
|
7594
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
7595
|
+
|
7596
|
+
query_params = []
|
7597
|
+
if 'restore_time' in local_var_params:
|
7598
|
+
query_params.append(('restore_time', local_var_params['restore_time']))
|
7599
|
+
if 'last_table_info' in local_var_params:
|
7600
|
+
query_params.append(('last_table_info', local_var_params['last_table_info']))
|
7601
|
+
if 'database_name' in local_var_params:
|
7602
|
+
query_params.append(('database_name', local_var_params['database_name']))
|
7603
|
+
if 'table_name' in local_var_params:
|
7604
|
+
query_params.append(('table_name', local_var_params['table_name']))
|
7605
|
+
|
7606
|
+
header_params = {}
|
7607
|
+
if 'x_language' in local_var_params:
|
7608
|
+
header_params['X-Language'] = local_var_params['x_language']
|
7609
|
+
|
7610
|
+
form_params = {}
|
7611
|
+
|
7612
|
+
body = None
|
7613
|
+
if isinstance(request, SdkStreamRequest):
|
7614
|
+
body = request.get_file_stream()
|
7615
|
+
|
7616
|
+
response_headers = []
|
7617
|
+
|
7618
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7619
|
+
['application/json'])
|
7620
|
+
|
7621
|
+
auth_settings = []
|
7622
|
+
|
7623
|
+
http_info["cname"] = cname
|
7624
|
+
http_info["collection_formats"] = collection_formats
|
7625
|
+
http_info["path_params"] = path_params
|
7626
|
+
http_info["query_params"] = query_params
|
7627
|
+
http_info["header_params"] = header_params
|
7628
|
+
http_info["post_params"] = form_params
|
7629
|
+
http_info["body"] = body
|
7630
|
+
http_info["response_headers"] = response_headers
|
7631
|
+
|
7632
|
+
return http_info
|
7633
|
+
|
7423
7634
|
def show_restore_tables(self, request):
|
7424
7635
|
r"""查询表级时间点恢复可选表
|
7425
7636
|
|
@@ -338,6 +338,9 @@ from huaweicloudsdkgaussdb.v3.model.lts_log_error_query_request import LtsLogErr
|
|
338
338
|
from huaweicloudsdkgaussdb.v3.model.lts_log_slow_detail import LtsLogSlowDetail
|
339
339
|
from huaweicloudsdkgaussdb.v3.model.lts_log_slow_query_request import LtsLogSlowQueryRequest
|
340
340
|
from huaweicloudsdkgaussdb.v3.model.modify_alias_request import ModifyAliasRequest
|
341
|
+
from huaweicloudsdkgaussdb.v3.model.modify_auto_expand_policy_req import ModifyAutoExpandPolicyReq
|
342
|
+
from huaweicloudsdkgaussdb.v3.model.modify_auto_expand_policy_request import ModifyAutoExpandPolicyRequest
|
343
|
+
from huaweicloudsdkgaussdb.v3.model.modify_auto_expand_policy_response import ModifyAutoExpandPolicyResponse
|
341
344
|
from huaweicloudsdkgaussdb.v3.model.modify_backup_encrypt_status_request import ModifyBackupEncryptStatusRequest
|
342
345
|
from huaweicloudsdkgaussdb.v3.model.modify_backup_encrypt_status_response import ModifyBackupEncryptStatusResponse
|
343
346
|
from huaweicloudsdkgaussdb.v3.model.modify_bind_eip_request import ModifyBindEipRequest
|
@@ -490,6 +493,8 @@ from huaweicloudsdkgaussdb.v3.model.set_sql_filter_rule_request import SetSqlFil
|
|
490
493
|
from huaweicloudsdkgaussdb.v3.model.set_sql_filter_rule_response import SetSqlFilterRuleResponse
|
491
494
|
from huaweicloudsdkgaussdb.v3.model.show_audit_log_request import ShowAuditLogRequest
|
492
495
|
from huaweicloudsdkgaussdb.v3.model.show_audit_log_response import ShowAuditLogResponse
|
496
|
+
from huaweicloudsdkgaussdb.v3.model.show_auto_expand_policy_request import ShowAutoExpandPolicyRequest
|
497
|
+
from huaweicloudsdkgaussdb.v3.model.show_auto_expand_policy_response import ShowAutoExpandPolicyResponse
|
493
498
|
from huaweicloudsdkgaussdb.v3.model.show_auto_scaling_history_request import ShowAutoScalingHistoryRequest
|
494
499
|
from huaweicloudsdkgaussdb.v3.model.show_auto_scaling_history_response import ShowAutoScalingHistoryResponse
|
495
500
|
from huaweicloudsdkgaussdb.v3.model.show_auto_scaling_policy_request import ShowAutoScalingPolicyRequest
|
@@ -555,6 +560,8 @@ from huaweicloudsdkgaussdb.v3.model.show_proxy_version_request import ShowProxyV
|
|
555
560
|
from huaweicloudsdkgaussdb.v3.model.show_proxy_version_response import ShowProxyVersionResponse
|
556
561
|
from huaweicloudsdkgaussdb.v3.model.show_recycle_policy_request import ShowRecyclePolicyRequest
|
557
562
|
from huaweicloudsdkgaussdb.v3.model.show_recycle_policy_response import ShowRecyclePolicyResponse
|
563
|
+
from huaweicloudsdkgaussdb.v3.model.show_restore_available_tables_request import ShowRestoreAvailableTablesRequest
|
564
|
+
from huaweicloudsdkgaussdb.v3.model.show_restore_available_tables_response import ShowRestoreAvailableTablesResponse
|
558
565
|
from huaweicloudsdkgaussdb.v3.model.show_restore_tables_request import ShowRestoreTablesRequest
|
559
566
|
from huaweicloudsdkgaussdb.v3.model.show_restore_tables_response import ShowRestoreTablesResponse
|
560
567
|
from huaweicloudsdkgaussdb.v3.model.show_slow_log_statistics_item import ShowSlowLogStatisticsItem
|