huaweicloudsdkgaussdb 3.1.123__py2.py3-none-any.whl → 3.1.125__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 +12 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +274 -0
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +274 -0
- huaweicloudsdkgaussdb/v3/model/__init__.py +12 -0
- huaweicloudsdkgaussdb/v3/model/download_slow_log_file_item.py +289 -0
- huaweicloudsdkgaussdb/v3/model/download_slow_log_file_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/download_slow_log_file_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/operate_multi_tenant_req.py +114 -0
- huaweicloudsdkgaussdb/v3/model/show_multi_tenant_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_multi_tenant_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_item.py +405 -0
- huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_request_body.py +344 -0
- huaweicloudsdkgaussdb/v3/model/show_slow_log_statistics_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/update_multi_tenant_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_multi_tenant_response.py +116 -0
- huaweicloudsdkgaussdb/v3/region/gaussdb_region.py +9 -0
- {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.125.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.125.dist-info}/RECORD +22 -10
- {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.125.dist-info}/WHEEL +1 -1
- {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.125.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.123.dist-info → huaweicloudsdkgaussdb-3.1.125.dist-info}/top_level.txt +0 -0
@@ -212,6 +212,9 @@ from huaweicloudsdkgaussdb.v3.model.delete_task_record_response import DeleteTas
|
|
212
212
|
from huaweicloudsdkgaussdb.v3.model.describe_backup_encrypt_status_request import DescribeBackupEncryptStatusRequest
|
213
213
|
from huaweicloudsdkgaussdb.v3.model.describe_backup_encrypt_status_response import DescribeBackupEncryptStatusResponse
|
214
214
|
from huaweicloudsdkgaussdb.v3.model.diagnosis_info import DiagnosisInfo
|
215
|
+
from huaweicloudsdkgaussdb.v3.model.download_slow_log_file_item import DownloadSlowLogFileItem
|
216
|
+
from huaweicloudsdkgaussdb.v3.model.download_slow_log_file_request import DownloadSlowLogFileRequest
|
217
|
+
from huaweicloudsdkgaussdb.v3.model.download_slow_log_file_response import DownloadSlowLogFileResponse
|
215
218
|
from huaweicloudsdkgaussdb.v3.model.enlarge_proxy_request import EnlargeProxyRequest
|
216
219
|
from huaweicloudsdkgaussdb.v3.model.enterprise_project_item import EnterpriseProjectItem
|
217
220
|
from huaweicloudsdkgaussdb.v3.model.expand_gauss_my_sql_instance_volume_request import ExpandGaussMySqlInstanceVolumeRequest
|
@@ -396,6 +399,7 @@ from huaweicloudsdkgaussdb.v3.model.node_sql_filter_rule_pattern import NodeSqlF
|
|
396
399
|
from huaweicloudsdkgaussdb.v3.model.nodes_weight import NodesWeight
|
397
400
|
from huaweicloudsdkgaussdb.v3.model.open_mysql_proxy_request_body import OpenMysqlProxyRequestBody
|
398
401
|
from huaweicloudsdkgaussdb.v3.model.operate_audit_log_request_v3_body import OperateAuditLogRequestV3Body
|
402
|
+
from huaweicloudsdkgaussdb.v3.model.operate_multi_tenant_req import OperateMultiTenantReq
|
399
403
|
from huaweicloudsdkgaussdb.v3.model.operate_sql_filter_control_req import OperateSqlFilterControlReq
|
400
404
|
from huaweicloudsdkgaussdb.v3.model.operate_sql_filter_rule_req import OperateSqlFilterRuleReq
|
401
405
|
from huaweicloudsdkgaussdb.v3.model.param_group import ParamGroup
|
@@ -532,6 +536,8 @@ from huaweicloudsdkgaussdb.v3.model.show_intelligent_diagnosis_instance_infos_pe
|
|
532
536
|
from huaweicloudsdkgaussdb.v3.model.show_intelligent_diagnosis_instance_infos_per_metric_response import ShowIntelligentDiagnosisInstanceInfosPerMetricResponse
|
533
537
|
from huaweicloudsdkgaussdb.v3.model.show_lts_configs_request import ShowLtsConfigsRequest
|
534
538
|
from huaweicloudsdkgaussdb.v3.model.show_lts_configs_response import ShowLtsConfigsResponse
|
539
|
+
from huaweicloudsdkgaussdb.v3.model.show_multi_tenant_request import ShowMultiTenantRequest
|
540
|
+
from huaweicloudsdkgaussdb.v3.model.show_multi_tenant_response import ShowMultiTenantResponse
|
535
541
|
from huaweicloudsdkgaussdb.v3.model.show_proxy_configurations_request import ShowProxyConfigurationsRequest
|
536
542
|
from huaweicloudsdkgaussdb.v3.model.show_proxy_configurations_response import ShowProxyConfigurationsResponse
|
537
543
|
from huaweicloudsdkgaussdb.v3.model.show_proxy_ipgroup_request import ShowProxyIpgroupRequest
|
@@ -542,6 +548,10 @@ from huaweicloudsdkgaussdb.v3.model.show_recycle_policy_request import ShowRecyc
|
|
542
548
|
from huaweicloudsdkgaussdb.v3.model.show_recycle_policy_response import ShowRecyclePolicyResponse
|
543
549
|
from huaweicloudsdkgaussdb.v3.model.show_restore_tables_request import ShowRestoreTablesRequest
|
544
550
|
from huaweicloudsdkgaussdb.v3.model.show_restore_tables_response import ShowRestoreTablesResponse
|
551
|
+
from huaweicloudsdkgaussdb.v3.model.show_slow_log_statistics_item import ShowSlowLogStatisticsItem
|
552
|
+
from huaweicloudsdkgaussdb.v3.model.show_slow_log_statistics_request import ShowSlowLogStatisticsRequest
|
553
|
+
from huaweicloudsdkgaussdb.v3.model.show_slow_log_statistics_request_body import ShowSlowLogStatisticsRequestBody
|
554
|
+
from huaweicloudsdkgaussdb.v3.model.show_slow_log_statistics_response import ShowSlowLogStatisticsResponse
|
545
555
|
from huaweicloudsdkgaussdb.v3.model.show_slowlog_sensitive_status_request import ShowSlowlogSensitiveStatusRequest
|
546
556
|
from huaweicloudsdkgaussdb.v3.model.show_slowlog_sensitive_status_response import ShowSlowlogSensitiveStatusResponse
|
547
557
|
from huaweicloudsdkgaussdb.v3.model.show_sql_filter_control_request import ShowSqlFilterControlRequest
|
@@ -666,6 +676,8 @@ from huaweicloudsdkgaussdb.v3.model.update_instance_configurations_request_body
|
|
666
676
|
from huaweicloudsdkgaussdb.v3.model.update_instance_configurations_response import UpdateInstanceConfigurationsResponse
|
667
677
|
from huaweicloudsdkgaussdb.v3.model.update_instance_monitor_request import UpdateInstanceMonitorRequest
|
668
678
|
from huaweicloudsdkgaussdb.v3.model.update_instance_monitor_response import UpdateInstanceMonitorResponse
|
679
|
+
from huaweicloudsdkgaussdb.v3.model.update_multi_tenant_request import UpdateMultiTenantRequest
|
680
|
+
from huaweicloudsdkgaussdb.v3.model.update_multi_tenant_response import UpdateMultiTenantResponse
|
669
681
|
from huaweicloudsdkgaussdb.v3.model.update_new_node_auto_add_switch_request import UpdateNewNodeAutoAddSwitchRequest
|
670
682
|
from huaweicloudsdkgaussdb.v3.model.update_new_node_auto_add_switch_request_body import UpdateNewNodeAutoAddSwitchRequestBody
|
671
683
|
from huaweicloudsdkgaussdb.v3.model.update_new_node_auto_add_switch_response import UpdateNewNodeAutoAddSwitchResponse
|
@@ -2220,6 +2220,75 @@ class GaussDBAsyncClient(Client):
|
|
2220
2220
|
|
2221
2221
|
return http_info
|
2222
2222
|
|
2223
|
+
def download_slow_log_file_async(self, request):
|
2224
|
+
"""获取慢日志下载链接
|
2225
|
+
|
2226
|
+
获取慢日志下载链接
|
2227
|
+
|
2228
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2229
|
+
|
2230
|
+
|
2231
|
+
:param request: Request instance for DownloadSlowLogFile
|
2232
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DownloadSlowLogFileRequest`
|
2233
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DownloadSlowLogFileResponse`
|
2234
|
+
"""
|
2235
|
+
http_info = self._download_slow_log_file_http_info(request)
|
2236
|
+
return self._call_api(**http_info)
|
2237
|
+
|
2238
|
+
def download_slow_log_file_async_invoker(self, request):
|
2239
|
+
http_info = self._download_slow_log_file_http_info(request)
|
2240
|
+
return AsyncInvoker(self, http_info)
|
2241
|
+
|
2242
|
+
def _download_slow_log_file_http_info(self, request):
|
2243
|
+
http_info = {
|
2244
|
+
"method": "POST",
|
2245
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/{node_id}/slowlog-download",
|
2246
|
+
"request_type": request.__class__.__name__,
|
2247
|
+
"response_type": "DownloadSlowLogFileResponse"
|
2248
|
+
}
|
2249
|
+
|
2250
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2251
|
+
|
2252
|
+
cname = None
|
2253
|
+
|
2254
|
+
collection_formats = {}
|
2255
|
+
|
2256
|
+
path_params = {}
|
2257
|
+
if 'instance_id' in local_var_params:
|
2258
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2259
|
+
if 'node_id' in local_var_params:
|
2260
|
+
path_params['node_id'] = local_var_params['node_id']
|
2261
|
+
|
2262
|
+
query_params = []
|
2263
|
+
|
2264
|
+
header_params = {}
|
2265
|
+
if 'x_language' in local_var_params:
|
2266
|
+
header_params['X-Language'] = local_var_params['x_language']
|
2267
|
+
|
2268
|
+
form_params = {}
|
2269
|
+
|
2270
|
+
body = None
|
2271
|
+
if isinstance(request, SdkStreamRequest):
|
2272
|
+
body = request.get_file_stream()
|
2273
|
+
|
2274
|
+
response_headers = []
|
2275
|
+
|
2276
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2277
|
+
['application/json'])
|
2278
|
+
|
2279
|
+
auth_settings = []
|
2280
|
+
|
2281
|
+
http_info["cname"] = cname
|
2282
|
+
http_info["collection_formats"] = collection_formats
|
2283
|
+
http_info["path_params"] = path_params
|
2284
|
+
http_info["query_params"] = query_params
|
2285
|
+
http_info["header_params"] = header_params
|
2286
|
+
http_info["post_params"] = form_params
|
2287
|
+
http_info["body"] = body
|
2288
|
+
http_info["response_headers"] = response_headers
|
2289
|
+
|
2290
|
+
return http_info
|
2291
|
+
|
2223
2292
|
def expand_gauss_my_sql_instance_volume_async(self, request):
|
2224
2293
|
"""包周期存储扩容
|
2225
2294
|
|
@@ -6721,6 +6790,73 @@ class GaussDBAsyncClient(Client):
|
|
6721
6790
|
|
6722
6791
|
return http_info
|
6723
6792
|
|
6793
|
+
def show_multi_tenant_async(self, request):
|
6794
|
+
"""查询多租特性开关状态
|
6795
|
+
|
6796
|
+
查询多租特性开关状态。
|
6797
|
+
|
6798
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6799
|
+
|
6800
|
+
|
6801
|
+
:param request: Request instance for ShowMultiTenant
|
6802
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowMultiTenantRequest`
|
6803
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowMultiTenantResponse`
|
6804
|
+
"""
|
6805
|
+
http_info = self._show_multi_tenant_http_info(request)
|
6806
|
+
return self._call_api(**http_info)
|
6807
|
+
|
6808
|
+
def show_multi_tenant_async_invoker(self, request):
|
6809
|
+
http_info = self._show_multi_tenant_http_info(request)
|
6810
|
+
return AsyncInvoker(self, http_info)
|
6811
|
+
|
6812
|
+
def _show_multi_tenant_http_info(self, request):
|
6813
|
+
http_info = {
|
6814
|
+
"method": "GET",
|
6815
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/multi-tenant",
|
6816
|
+
"request_type": request.__class__.__name__,
|
6817
|
+
"response_type": "ShowMultiTenantResponse"
|
6818
|
+
}
|
6819
|
+
|
6820
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6821
|
+
|
6822
|
+
cname = None
|
6823
|
+
|
6824
|
+
collection_formats = {}
|
6825
|
+
|
6826
|
+
path_params = {}
|
6827
|
+
if 'instance_id' in local_var_params:
|
6828
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
6829
|
+
|
6830
|
+
query_params = []
|
6831
|
+
|
6832
|
+
header_params = {}
|
6833
|
+
if 'x_language' in local_var_params:
|
6834
|
+
header_params['X-Language'] = local_var_params['x_language']
|
6835
|
+
|
6836
|
+
form_params = {}
|
6837
|
+
|
6838
|
+
body = None
|
6839
|
+
if isinstance(request, SdkStreamRequest):
|
6840
|
+
body = request.get_file_stream()
|
6841
|
+
|
6842
|
+
response_headers = []
|
6843
|
+
|
6844
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6845
|
+
['application/json'])
|
6846
|
+
|
6847
|
+
auth_settings = []
|
6848
|
+
|
6849
|
+
http_info["cname"] = cname
|
6850
|
+
http_info["collection_formats"] = collection_formats
|
6851
|
+
http_info["path_params"] = path_params
|
6852
|
+
http_info["query_params"] = query_params
|
6853
|
+
http_info["header_params"] = header_params
|
6854
|
+
http_info["post_params"] = form_params
|
6855
|
+
http_info["body"] = body
|
6856
|
+
http_info["response_headers"] = response_headers
|
6857
|
+
|
6858
|
+
return http_info
|
6859
|
+
|
6724
6860
|
def show_proxy_configurations_async(self, request):
|
6725
6861
|
"""查询数据库代理内核参数。
|
6726
6862
|
|
@@ -7076,6 +7212,75 @@ class GaussDBAsyncClient(Client):
|
|
7076
7212
|
|
7077
7213
|
return http_info
|
7078
7214
|
|
7215
|
+
def show_slow_log_statistics_async(self, request):
|
7216
|
+
"""查询慢日志统计信息
|
7217
|
+
|
7218
|
+
查询慢日志统计信息
|
7219
|
+
|
7220
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7221
|
+
|
7222
|
+
|
7223
|
+
:param request: Request instance for ShowSlowLogStatistics
|
7224
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowSlowLogStatisticsRequest`
|
7225
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowSlowLogStatisticsResponse`
|
7226
|
+
"""
|
7227
|
+
http_info = self._show_slow_log_statistics_http_info(request)
|
7228
|
+
return self._call_api(**http_info)
|
7229
|
+
|
7230
|
+
def show_slow_log_statistics_async_invoker(self, request):
|
7231
|
+
http_info = self._show_slow_log_statistics_http_info(request)
|
7232
|
+
return AsyncInvoker(self, http_info)
|
7233
|
+
|
7234
|
+
def _show_slow_log_statistics_http_info(self, request):
|
7235
|
+
http_info = {
|
7236
|
+
"method": "POST",
|
7237
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/slow-logs/statistics",
|
7238
|
+
"request_type": request.__class__.__name__,
|
7239
|
+
"response_type": "ShowSlowLogStatisticsResponse"
|
7240
|
+
}
|
7241
|
+
|
7242
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7243
|
+
|
7244
|
+
cname = None
|
7245
|
+
|
7246
|
+
collection_formats = {}
|
7247
|
+
|
7248
|
+
path_params = {}
|
7249
|
+
if 'instance_id' in local_var_params:
|
7250
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
7251
|
+
|
7252
|
+
query_params = []
|
7253
|
+
|
7254
|
+
header_params = {}
|
7255
|
+
if 'x_language' in local_var_params:
|
7256
|
+
header_params['X-Language'] = local_var_params['x_language']
|
7257
|
+
|
7258
|
+
form_params = {}
|
7259
|
+
|
7260
|
+
body = None
|
7261
|
+
if 'body' in local_var_params:
|
7262
|
+
body = local_var_params['body']
|
7263
|
+
if isinstance(request, SdkStreamRequest):
|
7264
|
+
body = request.get_file_stream()
|
7265
|
+
|
7266
|
+
response_headers = []
|
7267
|
+
|
7268
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7269
|
+
['application/json;charset=UTF-8'])
|
7270
|
+
|
7271
|
+
auth_settings = []
|
7272
|
+
|
7273
|
+
http_info["cname"] = cname
|
7274
|
+
http_info["collection_formats"] = collection_formats
|
7275
|
+
http_info["path_params"] = path_params
|
7276
|
+
http_info["query_params"] = query_params
|
7277
|
+
http_info["header_params"] = header_params
|
7278
|
+
http_info["post_params"] = form_params
|
7279
|
+
http_info["body"] = body
|
7280
|
+
http_info["response_headers"] = response_headers
|
7281
|
+
|
7282
|
+
return http_info
|
7283
|
+
|
7079
7284
|
def show_slowlog_sensitive_status_async(self, request):
|
7080
7285
|
"""查询慢日志脱敏状态
|
7081
7286
|
|
@@ -8666,6 +8871,75 @@ class GaussDBAsyncClient(Client):
|
|
8666
8871
|
|
8667
8872
|
return http_info
|
8668
8873
|
|
8874
|
+
def update_multi_tenant_async(self, request):
|
8875
|
+
"""开启或者关闭多租特性
|
8876
|
+
|
8877
|
+
开启或者关闭多租特性。
|
8878
|
+
|
8879
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8880
|
+
|
8881
|
+
|
8882
|
+
:param request: Request instance for UpdateMultiTenant
|
8883
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateMultiTenantRequest`
|
8884
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateMultiTenantResponse`
|
8885
|
+
"""
|
8886
|
+
http_info = self._update_multi_tenant_http_info(request)
|
8887
|
+
return self._call_api(**http_info)
|
8888
|
+
|
8889
|
+
def update_multi_tenant_async_invoker(self, request):
|
8890
|
+
http_info = self._update_multi_tenant_http_info(request)
|
8891
|
+
return AsyncInvoker(self, http_info)
|
8892
|
+
|
8893
|
+
def _update_multi_tenant_http_info(self, request):
|
8894
|
+
http_info = {
|
8895
|
+
"method": "PUT",
|
8896
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/multi-tenant",
|
8897
|
+
"request_type": request.__class__.__name__,
|
8898
|
+
"response_type": "UpdateMultiTenantResponse"
|
8899
|
+
}
|
8900
|
+
|
8901
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8902
|
+
|
8903
|
+
cname = None
|
8904
|
+
|
8905
|
+
collection_formats = {}
|
8906
|
+
|
8907
|
+
path_params = {}
|
8908
|
+
if 'instance_id' in local_var_params:
|
8909
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8910
|
+
|
8911
|
+
query_params = []
|
8912
|
+
|
8913
|
+
header_params = {}
|
8914
|
+
if 'x_language' in local_var_params:
|
8915
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8916
|
+
|
8917
|
+
form_params = {}
|
8918
|
+
|
8919
|
+
body = None
|
8920
|
+
if 'body' in local_var_params:
|
8921
|
+
body = local_var_params['body']
|
8922
|
+
if isinstance(request, SdkStreamRequest):
|
8923
|
+
body = request.get_file_stream()
|
8924
|
+
|
8925
|
+
response_headers = []
|
8926
|
+
|
8927
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8928
|
+
['application/json;charset=UTF-8'])
|
8929
|
+
|
8930
|
+
auth_settings = []
|
8931
|
+
|
8932
|
+
http_info["cname"] = cname
|
8933
|
+
http_info["collection_formats"] = collection_formats
|
8934
|
+
http_info["path_params"] = path_params
|
8935
|
+
http_info["query_params"] = query_params
|
8936
|
+
http_info["header_params"] = header_params
|
8937
|
+
http_info["post_params"] = form_params
|
8938
|
+
http_info["body"] = body
|
8939
|
+
http_info["response_headers"] = response_headers
|
8940
|
+
|
8941
|
+
return http_info
|
8942
|
+
|
8669
8943
|
def update_new_node_auto_add_switch_async(self, request):
|
8670
8944
|
"""开启或关闭新增节点自动加入该Proxy
|
8671
8945
|
|
@@ -2220,6 +2220,75 @@ class GaussDBClient(Client):
|
|
2220
2220
|
|
2221
2221
|
return http_info
|
2222
2222
|
|
2223
|
+
def download_slow_log_file(self, request):
|
2224
|
+
"""获取慢日志下载链接
|
2225
|
+
|
2226
|
+
获取慢日志下载链接
|
2227
|
+
|
2228
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2229
|
+
|
2230
|
+
:param request: Request instance for DownloadSlowLogFile
|
2231
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.DownloadSlowLogFileRequest`
|
2232
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DownloadSlowLogFileResponse`
|
2233
|
+
"""
|
2234
|
+
http_info = self._download_slow_log_file_http_info(request)
|
2235
|
+
return self._call_api(**http_info)
|
2236
|
+
|
2237
|
+
def download_slow_log_file_invoker(self, request):
|
2238
|
+
http_info = self._download_slow_log_file_http_info(request)
|
2239
|
+
return SyncInvoker(self, http_info)
|
2240
|
+
|
2241
|
+
@classmethod
|
2242
|
+
def _download_slow_log_file_http_info(cls, request):
|
2243
|
+
http_info = {
|
2244
|
+
"method": "POST",
|
2245
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/{node_id}/slowlog-download",
|
2246
|
+
"request_type": request.__class__.__name__,
|
2247
|
+
"response_type": "DownloadSlowLogFileResponse"
|
2248
|
+
}
|
2249
|
+
|
2250
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2251
|
+
|
2252
|
+
cname = None
|
2253
|
+
|
2254
|
+
collection_formats = {}
|
2255
|
+
|
2256
|
+
path_params = {}
|
2257
|
+
if 'instance_id' in local_var_params:
|
2258
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
2259
|
+
if 'node_id' in local_var_params:
|
2260
|
+
path_params['node_id'] = local_var_params['node_id']
|
2261
|
+
|
2262
|
+
query_params = []
|
2263
|
+
|
2264
|
+
header_params = {}
|
2265
|
+
if 'x_language' in local_var_params:
|
2266
|
+
header_params['X-Language'] = local_var_params['x_language']
|
2267
|
+
|
2268
|
+
form_params = {}
|
2269
|
+
|
2270
|
+
body = None
|
2271
|
+
if isinstance(request, SdkStreamRequest):
|
2272
|
+
body = request.get_file_stream()
|
2273
|
+
|
2274
|
+
response_headers = []
|
2275
|
+
|
2276
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2277
|
+
['application/json'])
|
2278
|
+
|
2279
|
+
auth_settings = []
|
2280
|
+
|
2281
|
+
http_info["cname"] = cname
|
2282
|
+
http_info["collection_formats"] = collection_formats
|
2283
|
+
http_info["path_params"] = path_params
|
2284
|
+
http_info["query_params"] = query_params
|
2285
|
+
http_info["header_params"] = header_params
|
2286
|
+
http_info["post_params"] = form_params
|
2287
|
+
http_info["body"] = body
|
2288
|
+
http_info["response_headers"] = response_headers
|
2289
|
+
|
2290
|
+
return http_info
|
2291
|
+
|
2223
2292
|
def expand_gauss_my_sql_instance_volume(self, request):
|
2224
2293
|
"""包周期存储扩容
|
2225
2294
|
|
@@ -6721,6 +6790,73 @@ class GaussDBClient(Client):
|
|
6721
6790
|
|
6722
6791
|
return http_info
|
6723
6792
|
|
6793
|
+
def show_multi_tenant(self, request):
|
6794
|
+
"""查询多租特性开关状态
|
6795
|
+
|
6796
|
+
查询多租特性开关状态。
|
6797
|
+
|
6798
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6799
|
+
|
6800
|
+
:param request: Request instance for ShowMultiTenant
|
6801
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowMultiTenantRequest`
|
6802
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowMultiTenantResponse`
|
6803
|
+
"""
|
6804
|
+
http_info = self._show_multi_tenant_http_info(request)
|
6805
|
+
return self._call_api(**http_info)
|
6806
|
+
|
6807
|
+
def show_multi_tenant_invoker(self, request):
|
6808
|
+
http_info = self._show_multi_tenant_http_info(request)
|
6809
|
+
return SyncInvoker(self, http_info)
|
6810
|
+
|
6811
|
+
@classmethod
|
6812
|
+
def _show_multi_tenant_http_info(cls, request):
|
6813
|
+
http_info = {
|
6814
|
+
"method": "GET",
|
6815
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/multi-tenant",
|
6816
|
+
"request_type": request.__class__.__name__,
|
6817
|
+
"response_type": "ShowMultiTenantResponse"
|
6818
|
+
}
|
6819
|
+
|
6820
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6821
|
+
|
6822
|
+
cname = None
|
6823
|
+
|
6824
|
+
collection_formats = {}
|
6825
|
+
|
6826
|
+
path_params = {}
|
6827
|
+
if 'instance_id' in local_var_params:
|
6828
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
6829
|
+
|
6830
|
+
query_params = []
|
6831
|
+
|
6832
|
+
header_params = {}
|
6833
|
+
if 'x_language' in local_var_params:
|
6834
|
+
header_params['X-Language'] = local_var_params['x_language']
|
6835
|
+
|
6836
|
+
form_params = {}
|
6837
|
+
|
6838
|
+
body = None
|
6839
|
+
if isinstance(request, SdkStreamRequest):
|
6840
|
+
body = request.get_file_stream()
|
6841
|
+
|
6842
|
+
response_headers = []
|
6843
|
+
|
6844
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6845
|
+
['application/json'])
|
6846
|
+
|
6847
|
+
auth_settings = []
|
6848
|
+
|
6849
|
+
http_info["cname"] = cname
|
6850
|
+
http_info["collection_formats"] = collection_formats
|
6851
|
+
http_info["path_params"] = path_params
|
6852
|
+
http_info["query_params"] = query_params
|
6853
|
+
http_info["header_params"] = header_params
|
6854
|
+
http_info["post_params"] = form_params
|
6855
|
+
http_info["body"] = body
|
6856
|
+
http_info["response_headers"] = response_headers
|
6857
|
+
|
6858
|
+
return http_info
|
6859
|
+
|
6724
6860
|
def show_proxy_configurations(self, request):
|
6725
6861
|
"""查询数据库代理内核参数。
|
6726
6862
|
|
@@ -7076,6 +7212,75 @@ class GaussDBClient(Client):
|
|
7076
7212
|
|
7077
7213
|
return http_info
|
7078
7214
|
|
7215
|
+
def show_slow_log_statistics(self, request):
|
7216
|
+
"""查询慢日志统计信息
|
7217
|
+
|
7218
|
+
查询慢日志统计信息
|
7219
|
+
|
7220
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7221
|
+
|
7222
|
+
:param request: Request instance for ShowSlowLogStatistics
|
7223
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowSlowLogStatisticsRequest`
|
7224
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowSlowLogStatisticsResponse`
|
7225
|
+
"""
|
7226
|
+
http_info = self._show_slow_log_statistics_http_info(request)
|
7227
|
+
return self._call_api(**http_info)
|
7228
|
+
|
7229
|
+
def show_slow_log_statistics_invoker(self, request):
|
7230
|
+
http_info = self._show_slow_log_statistics_http_info(request)
|
7231
|
+
return SyncInvoker(self, http_info)
|
7232
|
+
|
7233
|
+
@classmethod
|
7234
|
+
def _show_slow_log_statistics_http_info(cls, request):
|
7235
|
+
http_info = {
|
7236
|
+
"method": "POST",
|
7237
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/slow-logs/statistics",
|
7238
|
+
"request_type": request.__class__.__name__,
|
7239
|
+
"response_type": "ShowSlowLogStatisticsResponse"
|
7240
|
+
}
|
7241
|
+
|
7242
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7243
|
+
|
7244
|
+
cname = None
|
7245
|
+
|
7246
|
+
collection_formats = {}
|
7247
|
+
|
7248
|
+
path_params = {}
|
7249
|
+
if 'instance_id' in local_var_params:
|
7250
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
7251
|
+
|
7252
|
+
query_params = []
|
7253
|
+
|
7254
|
+
header_params = {}
|
7255
|
+
if 'x_language' in local_var_params:
|
7256
|
+
header_params['X-Language'] = local_var_params['x_language']
|
7257
|
+
|
7258
|
+
form_params = {}
|
7259
|
+
|
7260
|
+
body = None
|
7261
|
+
if 'body' in local_var_params:
|
7262
|
+
body = local_var_params['body']
|
7263
|
+
if isinstance(request, SdkStreamRequest):
|
7264
|
+
body = request.get_file_stream()
|
7265
|
+
|
7266
|
+
response_headers = []
|
7267
|
+
|
7268
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7269
|
+
['application/json;charset=UTF-8'])
|
7270
|
+
|
7271
|
+
auth_settings = []
|
7272
|
+
|
7273
|
+
http_info["cname"] = cname
|
7274
|
+
http_info["collection_formats"] = collection_formats
|
7275
|
+
http_info["path_params"] = path_params
|
7276
|
+
http_info["query_params"] = query_params
|
7277
|
+
http_info["header_params"] = header_params
|
7278
|
+
http_info["post_params"] = form_params
|
7279
|
+
http_info["body"] = body
|
7280
|
+
http_info["response_headers"] = response_headers
|
7281
|
+
|
7282
|
+
return http_info
|
7283
|
+
|
7079
7284
|
def show_slowlog_sensitive_status(self, request):
|
7080
7285
|
"""查询慢日志脱敏状态
|
7081
7286
|
|
@@ -8666,6 +8871,75 @@ class GaussDBClient(Client):
|
|
8666
8871
|
|
8667
8872
|
return http_info
|
8668
8873
|
|
8874
|
+
def update_multi_tenant(self, request):
|
8875
|
+
"""开启或者关闭多租特性
|
8876
|
+
|
8877
|
+
开启或者关闭多租特性。
|
8878
|
+
|
8879
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8880
|
+
|
8881
|
+
:param request: Request instance for UpdateMultiTenant
|
8882
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateMultiTenantRequest`
|
8883
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateMultiTenantResponse`
|
8884
|
+
"""
|
8885
|
+
http_info = self._update_multi_tenant_http_info(request)
|
8886
|
+
return self._call_api(**http_info)
|
8887
|
+
|
8888
|
+
def update_multi_tenant_invoker(self, request):
|
8889
|
+
http_info = self._update_multi_tenant_http_info(request)
|
8890
|
+
return SyncInvoker(self, http_info)
|
8891
|
+
|
8892
|
+
@classmethod
|
8893
|
+
def _update_multi_tenant_http_info(cls, request):
|
8894
|
+
http_info = {
|
8895
|
+
"method": "PUT",
|
8896
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/multi-tenant",
|
8897
|
+
"request_type": request.__class__.__name__,
|
8898
|
+
"response_type": "UpdateMultiTenantResponse"
|
8899
|
+
}
|
8900
|
+
|
8901
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8902
|
+
|
8903
|
+
cname = None
|
8904
|
+
|
8905
|
+
collection_formats = {}
|
8906
|
+
|
8907
|
+
path_params = {}
|
8908
|
+
if 'instance_id' in local_var_params:
|
8909
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8910
|
+
|
8911
|
+
query_params = []
|
8912
|
+
|
8913
|
+
header_params = {}
|
8914
|
+
if 'x_language' in local_var_params:
|
8915
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8916
|
+
|
8917
|
+
form_params = {}
|
8918
|
+
|
8919
|
+
body = None
|
8920
|
+
if 'body' in local_var_params:
|
8921
|
+
body = local_var_params['body']
|
8922
|
+
if isinstance(request, SdkStreamRequest):
|
8923
|
+
body = request.get_file_stream()
|
8924
|
+
|
8925
|
+
response_headers = []
|
8926
|
+
|
8927
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8928
|
+
['application/json;charset=UTF-8'])
|
8929
|
+
|
8930
|
+
auth_settings = []
|
8931
|
+
|
8932
|
+
http_info["cname"] = cname
|
8933
|
+
http_info["collection_formats"] = collection_formats
|
8934
|
+
http_info["path_params"] = path_params
|
8935
|
+
http_info["query_params"] = query_params
|
8936
|
+
http_info["header_params"] = header_params
|
8937
|
+
http_info["post_params"] = form_params
|
8938
|
+
http_info["body"] = body
|
8939
|
+
http_info["response_headers"] = response_headers
|
8940
|
+
|
8941
|
+
return http_info
|
8942
|
+
|
8669
8943
|
def update_new_node_auto_add_switch(self, request):
|
8670
8944
|
"""开启或关闭新增节点自动加入该Proxy
|
8671
8945
|
|