huaweicloudsdkgaussdb 3.1.97__py2.py3-none-any.whl → 3.1.98__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 +11 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +282 -0
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +282 -0
- huaweicloudsdkgaussdb/v3/model/__init__.py +11 -0
- huaweicloudsdkgaussdb/v3/model/modify_gauss_my_sql_proxy_route_mode_request_body.py +3 -3
- huaweicloudsdkgaussdb/v3/model/proxy_update_proxy_name_request.py +114 -0
- huaweicloudsdkgaussdb/v3/model/proxy_upgrade_proxy_version_request.py +142 -0
- huaweicloudsdkgaussdb/v3/model/proxy_upgrade_version_detail.py +202 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_version_request.py +199 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_version_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_name_request.py +196 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_name_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/upgrade_proxy_version_request.py +196 -0
- huaweicloudsdkgaussdb/v3/model/upgrade_proxy_version_response.py +116 -0
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/RECORD +21 -10
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.98.dist-info}/top_level.txt +0 -0
@@ -305,6 +305,9 @@ from huaweicloudsdkgaussdb.v3.model.project_quotas import ProjectQuotas
|
|
305
305
|
from huaweicloudsdkgaussdb.v3.model.project_tag_item import ProjectTagItem
|
306
306
|
from huaweicloudsdkgaussdb.v3.model.proxy_transaction_split_request import ProxyTransactionSplitRequest
|
307
307
|
from huaweicloudsdkgaussdb.v3.model.proxy_update_proxy_connection_pool_type_request import ProxyUpdateProxyConnectionPoolTypeRequest
|
308
|
+
from huaweicloudsdkgaussdb.v3.model.proxy_update_proxy_name_request import ProxyUpdateProxyNameRequest
|
309
|
+
from huaweicloudsdkgaussdb.v3.model.proxy_upgrade_proxy_version_request import ProxyUpgradeProxyVersionRequest
|
310
|
+
from huaweicloudsdkgaussdb.v3.model.proxy_upgrade_version_detail import ProxyUpgradeVersionDetail
|
308
311
|
from huaweicloudsdkgaussdb.v3.model.query_action import QueryAction
|
309
312
|
from huaweicloudsdkgaussdb.v3.model.quota import Quota
|
310
313
|
from huaweicloudsdkgaussdb.v3.model.readable_node_infos import ReadableNodeInfos
|
@@ -386,6 +389,10 @@ from huaweicloudsdkgaussdb.v3.model.show_intelligent_diagnosis_abnormal_count_of
|
|
386
389
|
from huaweicloudsdkgaussdb.v3.model.show_intelligent_diagnosis_abnormal_count_of_instances_response import ShowIntelligentDiagnosisAbnormalCountOfInstancesResponse
|
387
390
|
from huaweicloudsdkgaussdb.v3.model.show_intelligent_diagnosis_instance_infos_per_metric_request import ShowIntelligentDiagnosisInstanceInfosPerMetricRequest
|
388
391
|
from huaweicloudsdkgaussdb.v3.model.show_intelligent_diagnosis_instance_infos_per_metric_response import ShowIntelligentDiagnosisInstanceInfosPerMetricResponse
|
392
|
+
from huaweicloudsdkgaussdb.v3.model.show_proxy_ipgroup_request import ShowProxyIpgroupRequest
|
393
|
+
from huaweicloudsdkgaussdb.v3.model.show_proxy_ipgroup_response import ShowProxyIpgroupResponse
|
394
|
+
from huaweicloudsdkgaussdb.v3.model.show_proxy_version_request import ShowProxyVersionRequest
|
395
|
+
from huaweicloudsdkgaussdb.v3.model.show_proxy_version_response import ShowProxyVersionResponse
|
389
396
|
from huaweicloudsdkgaussdb.v3.model.show_restore_tables_request import ShowRestoreTablesRequest
|
390
397
|
from huaweicloudsdkgaussdb.v3.model.show_restore_tables_response import ShowRestoreTablesResponse
|
391
398
|
from huaweicloudsdkgaussdb.v3.model.show_sql_filter_control_request import ShowSqlFilterControlRequest
|
@@ -499,6 +506,8 @@ from huaweicloudsdkgaussdb.v3.model.update_new_node_auto_add_switch_response imp
|
|
499
506
|
from huaweicloudsdkgaussdb.v3.model.update_proxy_configuration_item import UpdateProxyConfigurationItem
|
500
507
|
from huaweicloudsdkgaussdb.v3.model.update_proxy_connection_pool_type_request import UpdateProxyConnectionPoolTypeRequest
|
501
508
|
from huaweicloudsdkgaussdb.v3.model.update_proxy_connection_pool_type_response import UpdateProxyConnectionPoolTypeResponse
|
509
|
+
from huaweicloudsdkgaussdb.v3.model.update_proxy_name_request import UpdateProxyNameRequest
|
510
|
+
from huaweicloudsdkgaussdb.v3.model.update_proxy_name_response import UpdateProxyNameResponse
|
502
511
|
from huaweicloudsdkgaussdb.v3.model.update_proxy_new_config_request_body import UpdateProxyNewConfigRequestBody
|
503
512
|
from huaweicloudsdkgaussdb.v3.model.update_proxy_new_configurations_request import UpdateProxyNewConfigurationsRequest
|
504
513
|
from huaweicloudsdkgaussdb.v3.model.update_proxy_new_configurations_response import UpdateProxyNewConfigurationsResponse
|
@@ -518,4 +527,6 @@ from huaweicloudsdkgaussdb.v3.model.update_transaction_split_status_response imp
|
|
518
527
|
from huaweicloudsdkgaussdb.v3.model.upgrade_database_request import UpgradeDatabaseRequest
|
519
528
|
from huaweicloudsdkgaussdb.v3.model.upgrade_gauss_my_sql_instance_database_request import UpgradeGaussMySqlInstanceDatabaseRequest
|
520
529
|
from huaweicloudsdkgaussdb.v3.model.upgrade_gauss_my_sql_instance_database_response import UpgradeGaussMySqlInstanceDatabaseResponse
|
530
|
+
from huaweicloudsdkgaussdb.v3.model.upgrade_proxy_version_request import UpgradeProxyVersionRequest
|
531
|
+
from huaweicloudsdkgaussdb.v3.model.upgrade_proxy_version_response import UpgradeProxyVersionResponse
|
521
532
|
|
@@ -5960,6 +5960,146 @@ class GaussDBAsyncClient(Client):
|
|
5960
5960
|
|
5961
5961
|
return http_info
|
5962
5962
|
|
5963
|
+
def show_proxy_ipgroup_async(self, request):
|
5964
|
+
"""查询代理实例访问控制
|
5965
|
+
|
5966
|
+
查询代理实例访问控制
|
5967
|
+
|
5968
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5969
|
+
|
5970
|
+
|
5971
|
+
:param request: Request instance for ShowProxyIpgroup
|
5972
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowProxyIpgroupRequest`
|
5973
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowProxyIpgroupResponse`
|
5974
|
+
"""
|
5975
|
+
http_info = self._show_proxy_ipgroup_http_info(request)
|
5976
|
+
return self._call_api(**http_info)
|
5977
|
+
|
5978
|
+
def show_proxy_ipgroup_async_invoker(self, request):
|
5979
|
+
http_info = self._show_proxy_ipgroup_http_info(request)
|
5980
|
+
return AsyncInvoker(self, http_info)
|
5981
|
+
|
5982
|
+
def _show_proxy_ipgroup_http_info(self, request):
|
5983
|
+
http_info = {
|
5984
|
+
"method": "GET",
|
5985
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/ipgroup",
|
5986
|
+
"request_type": request.__class__.__name__,
|
5987
|
+
"response_type": "ShowProxyIpgroupResponse"
|
5988
|
+
}
|
5989
|
+
|
5990
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5991
|
+
|
5992
|
+
cname = None
|
5993
|
+
|
5994
|
+
collection_formats = {}
|
5995
|
+
|
5996
|
+
path_params = {}
|
5997
|
+
if 'instance_id' in local_var_params:
|
5998
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
5999
|
+
if 'proxy_id' in local_var_params:
|
6000
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
6001
|
+
|
6002
|
+
query_params = []
|
6003
|
+
|
6004
|
+
header_params = {}
|
6005
|
+
if 'x_language' in local_var_params:
|
6006
|
+
header_params['X-Language'] = local_var_params['x_language']
|
6007
|
+
|
6008
|
+
form_params = {}
|
6009
|
+
|
6010
|
+
body = None
|
6011
|
+
if isinstance(request, SdkStreamRequest):
|
6012
|
+
body = request.get_file_stream()
|
6013
|
+
|
6014
|
+
response_headers = []
|
6015
|
+
|
6016
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6017
|
+
['application/json'])
|
6018
|
+
|
6019
|
+
auth_settings = []
|
6020
|
+
|
6021
|
+
http_info["cname"] = cname
|
6022
|
+
http_info["collection_formats"] = collection_formats
|
6023
|
+
http_info["path_params"] = path_params
|
6024
|
+
http_info["query_params"] = query_params
|
6025
|
+
http_info["header_params"] = header_params
|
6026
|
+
http_info["post_params"] = form_params
|
6027
|
+
http_info["body"] = body
|
6028
|
+
http_info["response_headers"] = response_headers
|
6029
|
+
|
6030
|
+
return http_info
|
6031
|
+
|
6032
|
+
def show_proxy_version_async(self, request):
|
6033
|
+
"""查询代理实例小版本
|
6034
|
+
|
6035
|
+
查询代理实例小版本
|
6036
|
+
|
6037
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6038
|
+
|
6039
|
+
|
6040
|
+
:param request: Request instance for ShowProxyVersion
|
6041
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowProxyVersionRequest`
|
6042
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowProxyVersionResponse`
|
6043
|
+
"""
|
6044
|
+
http_info = self._show_proxy_version_http_info(request)
|
6045
|
+
return self._call_api(**http_info)
|
6046
|
+
|
6047
|
+
def show_proxy_version_async_invoker(self, request):
|
6048
|
+
http_info = self._show_proxy_version_http_info(request)
|
6049
|
+
return AsyncInvoker(self, http_info)
|
6050
|
+
|
6051
|
+
def _show_proxy_version_http_info(self, request):
|
6052
|
+
http_info = {
|
6053
|
+
"method": "GET",
|
6054
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/{engine_name}/proxy-version",
|
6055
|
+
"request_type": request.__class__.__name__,
|
6056
|
+
"response_type": "ShowProxyVersionResponse"
|
6057
|
+
}
|
6058
|
+
|
6059
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6060
|
+
|
6061
|
+
cname = None
|
6062
|
+
|
6063
|
+
collection_formats = {}
|
6064
|
+
|
6065
|
+
path_params = {}
|
6066
|
+
if 'instance_id' in local_var_params:
|
6067
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
6068
|
+
if 'engine_name' in local_var_params:
|
6069
|
+
path_params['engine_name'] = local_var_params['engine_name']
|
6070
|
+
if 'proxy_id' in local_var_params:
|
6071
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
6072
|
+
|
6073
|
+
query_params = []
|
6074
|
+
|
6075
|
+
header_params = {}
|
6076
|
+
if 'x_language' in local_var_params:
|
6077
|
+
header_params['X-Language'] = local_var_params['x_language']
|
6078
|
+
|
6079
|
+
form_params = {}
|
6080
|
+
|
6081
|
+
body = None
|
6082
|
+
if isinstance(request, SdkStreamRequest):
|
6083
|
+
body = request.get_file_stream()
|
6084
|
+
|
6085
|
+
response_headers = []
|
6086
|
+
|
6087
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6088
|
+
['application/json'])
|
6089
|
+
|
6090
|
+
auth_settings = []
|
6091
|
+
|
6092
|
+
http_info["cname"] = cname
|
6093
|
+
http_info["collection_formats"] = collection_formats
|
6094
|
+
http_info["path_params"] = path_params
|
6095
|
+
http_info["query_params"] = query_params
|
6096
|
+
http_info["header_params"] = header_params
|
6097
|
+
http_info["post_params"] = form_params
|
6098
|
+
http_info["body"] = body
|
6099
|
+
http_info["response_headers"] = response_headers
|
6100
|
+
|
6101
|
+
return http_info
|
6102
|
+
|
5963
6103
|
def show_restore_tables_async(self, request):
|
5964
6104
|
"""查询表级时间点恢复可选表
|
5965
6105
|
|
@@ -7700,6 +7840,77 @@ class GaussDBAsyncClient(Client):
|
|
7700
7840
|
|
7701
7841
|
return http_info
|
7702
7842
|
|
7843
|
+
def update_proxy_name_async(self, request):
|
7844
|
+
"""修改代理实例名称
|
7845
|
+
|
7846
|
+
修改代理实例名称
|
7847
|
+
|
7848
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7849
|
+
|
7850
|
+
|
7851
|
+
:param request: Request instance for UpdateProxyName
|
7852
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateProxyNameRequest`
|
7853
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateProxyNameResponse`
|
7854
|
+
"""
|
7855
|
+
http_info = self._update_proxy_name_http_info(request)
|
7856
|
+
return self._call_api(**http_info)
|
7857
|
+
|
7858
|
+
def update_proxy_name_async_invoker(self, request):
|
7859
|
+
http_info = self._update_proxy_name_http_info(request)
|
7860
|
+
return AsyncInvoker(self, http_info)
|
7861
|
+
|
7862
|
+
def _update_proxy_name_http_info(self, request):
|
7863
|
+
http_info = {
|
7864
|
+
"method": "PUT",
|
7865
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/rename",
|
7866
|
+
"request_type": request.__class__.__name__,
|
7867
|
+
"response_type": "UpdateProxyNameResponse"
|
7868
|
+
}
|
7869
|
+
|
7870
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7871
|
+
|
7872
|
+
cname = None
|
7873
|
+
|
7874
|
+
collection_formats = {}
|
7875
|
+
|
7876
|
+
path_params = {}
|
7877
|
+
if 'instance_id' in local_var_params:
|
7878
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
7879
|
+
if 'proxy_id' in local_var_params:
|
7880
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
7881
|
+
|
7882
|
+
query_params = []
|
7883
|
+
|
7884
|
+
header_params = {}
|
7885
|
+
if 'x_language' in local_var_params:
|
7886
|
+
header_params['X-Language'] = local_var_params['x_language']
|
7887
|
+
|
7888
|
+
form_params = {}
|
7889
|
+
|
7890
|
+
body = None
|
7891
|
+
if 'body' in local_var_params:
|
7892
|
+
body = local_var_params['body']
|
7893
|
+
if isinstance(request, SdkStreamRequest):
|
7894
|
+
body = request.get_file_stream()
|
7895
|
+
|
7896
|
+
response_headers = []
|
7897
|
+
|
7898
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7899
|
+
['application/json'])
|
7900
|
+
|
7901
|
+
auth_settings = []
|
7902
|
+
|
7903
|
+
http_info["cname"] = cname
|
7904
|
+
http_info["collection_formats"] = collection_formats
|
7905
|
+
http_info["path_params"] = path_params
|
7906
|
+
http_info["query_params"] = query_params
|
7907
|
+
http_info["header_params"] = header_params
|
7908
|
+
http_info["post_params"] = form_params
|
7909
|
+
http_info["body"] = body
|
7910
|
+
http_info["response_headers"] = response_headers
|
7911
|
+
|
7912
|
+
return http_info
|
7913
|
+
|
7703
7914
|
def update_proxy_new_configurations_async(self, request):
|
7704
7915
|
"""修改代理实例参数
|
7705
7916
|
|
@@ -8051,6 +8262,77 @@ class GaussDBAsyncClient(Client):
|
|
8051
8262
|
|
8052
8263
|
return http_info
|
8053
8264
|
|
8265
|
+
def upgrade_proxy_version_async(self, request):
|
8266
|
+
"""升级数据库代理实例内核版本
|
8267
|
+
|
8268
|
+
升级数据库代理实例内核版本。
|
8269
|
+
|
8270
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8271
|
+
|
8272
|
+
|
8273
|
+
:param request: Request instance for UpgradeProxyVersion
|
8274
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpgradeProxyVersionRequest`
|
8275
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpgradeProxyVersionResponse`
|
8276
|
+
"""
|
8277
|
+
http_info = self._upgrade_proxy_version_http_info(request)
|
8278
|
+
return self._call_api(**http_info)
|
8279
|
+
|
8280
|
+
def upgrade_proxy_version_async_invoker(self, request):
|
8281
|
+
http_info = self._upgrade_proxy_version_http_info(request)
|
8282
|
+
return AsyncInvoker(self, http_info)
|
8283
|
+
|
8284
|
+
def _upgrade_proxy_version_http_info(self, request):
|
8285
|
+
http_info = {
|
8286
|
+
"method": "POST",
|
8287
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/upgrade-version",
|
8288
|
+
"request_type": request.__class__.__name__,
|
8289
|
+
"response_type": "UpgradeProxyVersionResponse"
|
8290
|
+
}
|
8291
|
+
|
8292
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8293
|
+
|
8294
|
+
cname = None
|
8295
|
+
|
8296
|
+
collection_formats = {}
|
8297
|
+
|
8298
|
+
path_params = {}
|
8299
|
+
if 'instance_id' in local_var_params:
|
8300
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8301
|
+
if 'proxy_id' in local_var_params:
|
8302
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
8303
|
+
|
8304
|
+
query_params = []
|
8305
|
+
|
8306
|
+
header_params = {}
|
8307
|
+
if 'x_language' in local_var_params:
|
8308
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8309
|
+
|
8310
|
+
form_params = {}
|
8311
|
+
|
8312
|
+
body = None
|
8313
|
+
if 'body' in local_var_params:
|
8314
|
+
body = local_var_params['body']
|
8315
|
+
if isinstance(request, SdkStreamRequest):
|
8316
|
+
body = request.get_file_stream()
|
8317
|
+
|
8318
|
+
response_headers = []
|
8319
|
+
|
8320
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8321
|
+
['application/json;charset=UTF-8'])
|
8322
|
+
|
8323
|
+
auth_settings = []
|
8324
|
+
|
8325
|
+
http_info["cname"] = cname
|
8326
|
+
http_info["collection_formats"] = collection_formats
|
8327
|
+
http_info["path_params"] = path_params
|
8328
|
+
http_info["query_params"] = query_params
|
8329
|
+
http_info["header_params"] = header_params
|
8330
|
+
http_info["post_params"] = form_params
|
8331
|
+
http_info["body"] = body
|
8332
|
+
http_info["response_headers"] = response_headers
|
8333
|
+
|
8334
|
+
return http_info
|
8335
|
+
|
8054
8336
|
def check_data_base_config_async(self, request):
|
8055
8337
|
"""HTAP数据同步库配置校验
|
8056
8338
|
|
@@ -5960,6 +5960,146 @@ class GaussDBClient(Client):
|
|
5960
5960
|
|
5961
5961
|
return http_info
|
5962
5962
|
|
5963
|
+
def show_proxy_ipgroup(self, request):
|
5964
|
+
"""查询代理实例访问控制
|
5965
|
+
|
5966
|
+
查询代理实例访问控制
|
5967
|
+
|
5968
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5969
|
+
|
5970
|
+
:param request: Request instance for ShowProxyIpgroup
|
5971
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowProxyIpgroupRequest`
|
5972
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowProxyIpgroupResponse`
|
5973
|
+
"""
|
5974
|
+
http_info = self._show_proxy_ipgroup_http_info(request)
|
5975
|
+
return self._call_api(**http_info)
|
5976
|
+
|
5977
|
+
def show_proxy_ipgroup_invoker(self, request):
|
5978
|
+
http_info = self._show_proxy_ipgroup_http_info(request)
|
5979
|
+
return SyncInvoker(self, http_info)
|
5980
|
+
|
5981
|
+
@classmethod
|
5982
|
+
def _show_proxy_ipgroup_http_info(cls, request):
|
5983
|
+
http_info = {
|
5984
|
+
"method": "GET",
|
5985
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/ipgroup",
|
5986
|
+
"request_type": request.__class__.__name__,
|
5987
|
+
"response_type": "ShowProxyIpgroupResponse"
|
5988
|
+
}
|
5989
|
+
|
5990
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5991
|
+
|
5992
|
+
cname = None
|
5993
|
+
|
5994
|
+
collection_formats = {}
|
5995
|
+
|
5996
|
+
path_params = {}
|
5997
|
+
if 'instance_id' in local_var_params:
|
5998
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
5999
|
+
if 'proxy_id' in local_var_params:
|
6000
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
6001
|
+
|
6002
|
+
query_params = []
|
6003
|
+
|
6004
|
+
header_params = {}
|
6005
|
+
if 'x_language' in local_var_params:
|
6006
|
+
header_params['X-Language'] = local_var_params['x_language']
|
6007
|
+
|
6008
|
+
form_params = {}
|
6009
|
+
|
6010
|
+
body = None
|
6011
|
+
if isinstance(request, SdkStreamRequest):
|
6012
|
+
body = request.get_file_stream()
|
6013
|
+
|
6014
|
+
response_headers = []
|
6015
|
+
|
6016
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6017
|
+
['application/json'])
|
6018
|
+
|
6019
|
+
auth_settings = []
|
6020
|
+
|
6021
|
+
http_info["cname"] = cname
|
6022
|
+
http_info["collection_formats"] = collection_formats
|
6023
|
+
http_info["path_params"] = path_params
|
6024
|
+
http_info["query_params"] = query_params
|
6025
|
+
http_info["header_params"] = header_params
|
6026
|
+
http_info["post_params"] = form_params
|
6027
|
+
http_info["body"] = body
|
6028
|
+
http_info["response_headers"] = response_headers
|
6029
|
+
|
6030
|
+
return http_info
|
6031
|
+
|
6032
|
+
def show_proxy_version(self, request):
|
6033
|
+
"""查询代理实例小版本
|
6034
|
+
|
6035
|
+
查询代理实例小版本
|
6036
|
+
|
6037
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
6038
|
+
|
6039
|
+
:param request: Request instance for ShowProxyVersion
|
6040
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.ShowProxyVersionRequest`
|
6041
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ShowProxyVersionResponse`
|
6042
|
+
"""
|
6043
|
+
http_info = self._show_proxy_version_http_info(request)
|
6044
|
+
return self._call_api(**http_info)
|
6045
|
+
|
6046
|
+
def show_proxy_version_invoker(self, request):
|
6047
|
+
http_info = self._show_proxy_version_http_info(request)
|
6048
|
+
return SyncInvoker(self, http_info)
|
6049
|
+
|
6050
|
+
@classmethod
|
6051
|
+
def _show_proxy_version_http_info(cls, request):
|
6052
|
+
http_info = {
|
6053
|
+
"method": "GET",
|
6054
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/{engine_name}/proxy-version",
|
6055
|
+
"request_type": request.__class__.__name__,
|
6056
|
+
"response_type": "ShowProxyVersionResponse"
|
6057
|
+
}
|
6058
|
+
|
6059
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
6060
|
+
|
6061
|
+
cname = None
|
6062
|
+
|
6063
|
+
collection_formats = {}
|
6064
|
+
|
6065
|
+
path_params = {}
|
6066
|
+
if 'instance_id' in local_var_params:
|
6067
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
6068
|
+
if 'engine_name' in local_var_params:
|
6069
|
+
path_params['engine_name'] = local_var_params['engine_name']
|
6070
|
+
if 'proxy_id' in local_var_params:
|
6071
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
6072
|
+
|
6073
|
+
query_params = []
|
6074
|
+
|
6075
|
+
header_params = {}
|
6076
|
+
if 'x_language' in local_var_params:
|
6077
|
+
header_params['X-Language'] = local_var_params['x_language']
|
6078
|
+
|
6079
|
+
form_params = {}
|
6080
|
+
|
6081
|
+
body = None
|
6082
|
+
if isinstance(request, SdkStreamRequest):
|
6083
|
+
body = request.get_file_stream()
|
6084
|
+
|
6085
|
+
response_headers = []
|
6086
|
+
|
6087
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
6088
|
+
['application/json'])
|
6089
|
+
|
6090
|
+
auth_settings = []
|
6091
|
+
|
6092
|
+
http_info["cname"] = cname
|
6093
|
+
http_info["collection_formats"] = collection_formats
|
6094
|
+
http_info["path_params"] = path_params
|
6095
|
+
http_info["query_params"] = query_params
|
6096
|
+
http_info["header_params"] = header_params
|
6097
|
+
http_info["post_params"] = form_params
|
6098
|
+
http_info["body"] = body
|
6099
|
+
http_info["response_headers"] = response_headers
|
6100
|
+
|
6101
|
+
return http_info
|
6102
|
+
|
5963
6103
|
def show_restore_tables(self, request):
|
5964
6104
|
"""查询表级时间点恢复可选表
|
5965
6105
|
|
@@ -7700,6 +7840,77 @@ class GaussDBClient(Client):
|
|
7700
7840
|
|
7701
7841
|
return http_info
|
7702
7842
|
|
7843
|
+
def update_proxy_name(self, request):
|
7844
|
+
"""修改代理实例名称
|
7845
|
+
|
7846
|
+
修改代理实例名称
|
7847
|
+
|
7848
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
7849
|
+
|
7850
|
+
:param request: Request instance for UpdateProxyName
|
7851
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpdateProxyNameRequest`
|
7852
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateProxyNameResponse`
|
7853
|
+
"""
|
7854
|
+
http_info = self._update_proxy_name_http_info(request)
|
7855
|
+
return self._call_api(**http_info)
|
7856
|
+
|
7857
|
+
def update_proxy_name_invoker(self, request):
|
7858
|
+
http_info = self._update_proxy_name_http_info(request)
|
7859
|
+
return SyncInvoker(self, http_info)
|
7860
|
+
|
7861
|
+
@classmethod
|
7862
|
+
def _update_proxy_name_http_info(cls, request):
|
7863
|
+
http_info = {
|
7864
|
+
"method": "PUT",
|
7865
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/rename",
|
7866
|
+
"request_type": request.__class__.__name__,
|
7867
|
+
"response_type": "UpdateProxyNameResponse"
|
7868
|
+
}
|
7869
|
+
|
7870
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
7871
|
+
|
7872
|
+
cname = None
|
7873
|
+
|
7874
|
+
collection_formats = {}
|
7875
|
+
|
7876
|
+
path_params = {}
|
7877
|
+
if 'instance_id' in local_var_params:
|
7878
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
7879
|
+
if 'proxy_id' in local_var_params:
|
7880
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
7881
|
+
|
7882
|
+
query_params = []
|
7883
|
+
|
7884
|
+
header_params = {}
|
7885
|
+
if 'x_language' in local_var_params:
|
7886
|
+
header_params['X-Language'] = local_var_params['x_language']
|
7887
|
+
|
7888
|
+
form_params = {}
|
7889
|
+
|
7890
|
+
body = None
|
7891
|
+
if 'body' in local_var_params:
|
7892
|
+
body = local_var_params['body']
|
7893
|
+
if isinstance(request, SdkStreamRequest):
|
7894
|
+
body = request.get_file_stream()
|
7895
|
+
|
7896
|
+
response_headers = []
|
7897
|
+
|
7898
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
7899
|
+
['application/json'])
|
7900
|
+
|
7901
|
+
auth_settings = []
|
7902
|
+
|
7903
|
+
http_info["cname"] = cname
|
7904
|
+
http_info["collection_formats"] = collection_formats
|
7905
|
+
http_info["path_params"] = path_params
|
7906
|
+
http_info["query_params"] = query_params
|
7907
|
+
http_info["header_params"] = header_params
|
7908
|
+
http_info["post_params"] = form_params
|
7909
|
+
http_info["body"] = body
|
7910
|
+
http_info["response_headers"] = response_headers
|
7911
|
+
|
7912
|
+
return http_info
|
7913
|
+
|
7703
7914
|
def update_proxy_new_configurations(self, request):
|
7704
7915
|
"""修改代理实例参数
|
7705
7916
|
|
@@ -8051,6 +8262,77 @@ class GaussDBClient(Client):
|
|
8051
8262
|
|
8052
8263
|
return http_info
|
8053
8264
|
|
8265
|
+
def upgrade_proxy_version(self, request):
|
8266
|
+
"""升级数据库代理实例内核版本
|
8267
|
+
|
8268
|
+
升级数据库代理实例内核版本。
|
8269
|
+
|
8270
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
8271
|
+
|
8272
|
+
:param request: Request instance for UpgradeProxyVersion
|
8273
|
+
:type request: :class:`huaweicloudsdkgaussdb.v3.UpgradeProxyVersionRequest`
|
8274
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.UpgradeProxyVersionResponse`
|
8275
|
+
"""
|
8276
|
+
http_info = self._upgrade_proxy_version_http_info(request)
|
8277
|
+
return self._call_api(**http_info)
|
8278
|
+
|
8279
|
+
def upgrade_proxy_version_invoker(self, request):
|
8280
|
+
http_info = self._upgrade_proxy_version_http_info(request)
|
8281
|
+
return SyncInvoker(self, http_info)
|
8282
|
+
|
8283
|
+
@classmethod
|
8284
|
+
def _upgrade_proxy_version_http_info(cls, request):
|
8285
|
+
http_info = {
|
8286
|
+
"method": "POST",
|
8287
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/upgrade-version",
|
8288
|
+
"request_type": request.__class__.__name__,
|
8289
|
+
"response_type": "UpgradeProxyVersionResponse"
|
8290
|
+
}
|
8291
|
+
|
8292
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
8293
|
+
|
8294
|
+
cname = None
|
8295
|
+
|
8296
|
+
collection_formats = {}
|
8297
|
+
|
8298
|
+
path_params = {}
|
8299
|
+
if 'instance_id' in local_var_params:
|
8300
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
8301
|
+
if 'proxy_id' in local_var_params:
|
8302
|
+
path_params['proxy_id'] = local_var_params['proxy_id']
|
8303
|
+
|
8304
|
+
query_params = []
|
8305
|
+
|
8306
|
+
header_params = {}
|
8307
|
+
if 'x_language' in local_var_params:
|
8308
|
+
header_params['X-Language'] = local_var_params['x_language']
|
8309
|
+
|
8310
|
+
form_params = {}
|
8311
|
+
|
8312
|
+
body = None
|
8313
|
+
if 'body' in local_var_params:
|
8314
|
+
body = local_var_params['body']
|
8315
|
+
if isinstance(request, SdkStreamRequest):
|
8316
|
+
body = request.get_file_stream()
|
8317
|
+
|
8318
|
+
response_headers = []
|
8319
|
+
|
8320
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
8321
|
+
['application/json;charset=UTF-8'])
|
8322
|
+
|
8323
|
+
auth_settings = []
|
8324
|
+
|
8325
|
+
http_info["cname"] = cname
|
8326
|
+
http_info["collection_formats"] = collection_formats
|
8327
|
+
http_info["path_params"] = path_params
|
8328
|
+
http_info["query_params"] = query_params
|
8329
|
+
http_info["header_params"] = header_params
|
8330
|
+
http_info["post_params"] = form_params
|
8331
|
+
http_info["body"] = body
|
8332
|
+
http_info["response_headers"] = response_headers
|
8333
|
+
|
8334
|
+
return http_info
|
8335
|
+
|
8054
8336
|
def check_data_base_config(self, request):
|
8055
8337
|
"""HTAP数据同步库配置校验
|
8056
8338
|
|
@@ -303,6 +303,9 @@ from huaweicloudsdkgaussdb.v3.model.project_quotas import ProjectQuotas
|
|
303
303
|
from huaweicloudsdkgaussdb.v3.model.project_tag_item import ProjectTagItem
|
304
304
|
from huaweicloudsdkgaussdb.v3.model.proxy_transaction_split_request import ProxyTransactionSplitRequest
|
305
305
|
from huaweicloudsdkgaussdb.v3.model.proxy_update_proxy_connection_pool_type_request import ProxyUpdateProxyConnectionPoolTypeRequest
|
306
|
+
from huaweicloudsdkgaussdb.v3.model.proxy_update_proxy_name_request import ProxyUpdateProxyNameRequest
|
307
|
+
from huaweicloudsdkgaussdb.v3.model.proxy_upgrade_proxy_version_request import ProxyUpgradeProxyVersionRequest
|
308
|
+
from huaweicloudsdkgaussdb.v3.model.proxy_upgrade_version_detail import ProxyUpgradeVersionDetail
|
306
309
|
from huaweicloudsdkgaussdb.v3.model.query_action import QueryAction
|
307
310
|
from huaweicloudsdkgaussdb.v3.model.quota import Quota
|
308
311
|
from huaweicloudsdkgaussdb.v3.model.readable_node_infos import ReadableNodeInfos
|
@@ -384,6 +387,10 @@ from huaweicloudsdkgaussdb.v3.model.show_intelligent_diagnosis_abnormal_count_of
|
|
384
387
|
from huaweicloudsdkgaussdb.v3.model.show_intelligent_diagnosis_abnormal_count_of_instances_response import ShowIntelligentDiagnosisAbnormalCountOfInstancesResponse
|
385
388
|
from huaweicloudsdkgaussdb.v3.model.show_intelligent_diagnosis_instance_infos_per_metric_request import ShowIntelligentDiagnosisInstanceInfosPerMetricRequest
|
386
389
|
from huaweicloudsdkgaussdb.v3.model.show_intelligent_diagnosis_instance_infos_per_metric_response import ShowIntelligentDiagnosisInstanceInfosPerMetricResponse
|
390
|
+
from huaweicloudsdkgaussdb.v3.model.show_proxy_ipgroup_request import ShowProxyIpgroupRequest
|
391
|
+
from huaweicloudsdkgaussdb.v3.model.show_proxy_ipgroup_response import ShowProxyIpgroupResponse
|
392
|
+
from huaweicloudsdkgaussdb.v3.model.show_proxy_version_request import ShowProxyVersionRequest
|
393
|
+
from huaweicloudsdkgaussdb.v3.model.show_proxy_version_response import ShowProxyVersionResponse
|
387
394
|
from huaweicloudsdkgaussdb.v3.model.show_restore_tables_request import ShowRestoreTablesRequest
|
388
395
|
from huaweicloudsdkgaussdb.v3.model.show_restore_tables_response import ShowRestoreTablesResponse
|
389
396
|
from huaweicloudsdkgaussdb.v3.model.show_sql_filter_control_request import ShowSqlFilterControlRequest
|
@@ -497,6 +504,8 @@ from huaweicloudsdkgaussdb.v3.model.update_new_node_auto_add_switch_response imp
|
|
497
504
|
from huaweicloudsdkgaussdb.v3.model.update_proxy_configuration_item import UpdateProxyConfigurationItem
|
498
505
|
from huaweicloudsdkgaussdb.v3.model.update_proxy_connection_pool_type_request import UpdateProxyConnectionPoolTypeRequest
|
499
506
|
from huaweicloudsdkgaussdb.v3.model.update_proxy_connection_pool_type_response import UpdateProxyConnectionPoolTypeResponse
|
507
|
+
from huaweicloudsdkgaussdb.v3.model.update_proxy_name_request import UpdateProxyNameRequest
|
508
|
+
from huaweicloudsdkgaussdb.v3.model.update_proxy_name_response import UpdateProxyNameResponse
|
500
509
|
from huaweicloudsdkgaussdb.v3.model.update_proxy_new_config_request_body import UpdateProxyNewConfigRequestBody
|
501
510
|
from huaweicloudsdkgaussdb.v3.model.update_proxy_new_configurations_request import UpdateProxyNewConfigurationsRequest
|
502
511
|
from huaweicloudsdkgaussdb.v3.model.update_proxy_new_configurations_response import UpdateProxyNewConfigurationsResponse
|
@@ -516,3 +525,5 @@ from huaweicloudsdkgaussdb.v3.model.update_transaction_split_status_response imp
|
|
516
525
|
from huaweicloudsdkgaussdb.v3.model.upgrade_database_request import UpgradeDatabaseRequest
|
517
526
|
from huaweicloudsdkgaussdb.v3.model.upgrade_gauss_my_sql_instance_database_request import UpgradeGaussMySqlInstanceDatabaseRequest
|
518
527
|
from huaweicloudsdkgaussdb.v3.model.upgrade_gauss_my_sql_instance_database_response import UpgradeGaussMySqlInstanceDatabaseResponse
|
528
|
+
from huaweicloudsdkgaussdb.v3.model.upgrade_proxy_version_request import UpgradeProxyVersionRequest
|
529
|
+
from huaweicloudsdkgaussdb.v3.model.upgrade_proxy_version_response import UpgradeProxyVersionResponse
|