huaweicloudsdkgaussdb 3.1.97__py2.py3-none-any.whl → 3.1.99__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +63 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1823 -435
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1823 -435
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +63 -0
  5. huaweicloudsdkgaussdb/v3/model/auto_scaling_record_info.py +318 -0
  6. huaweicloudsdkgaussdb/v3/model/create_lts_configs.py +114 -0
  7. huaweicloudsdkgaussdb/v3/model/create_lts_configs_request.py +140 -0
  8. huaweicloudsdkgaussdb/v3/model/create_lts_configs_response.py +85 -0
  9. huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request.py +140 -0
  10. huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request_body.py +114 -0
  11. huaweicloudsdkgaussdb/v3/model/delete_lts_configs_response.py +85 -0
  12. huaweicloudsdkgaussdb/v3/model/instance_delete_lts_config.py +142 -0
  13. huaweicloudsdkgaussdb/v3/model/instance_lts_basic_info.py +318 -0
  14. huaweicloudsdkgaussdb/v3/model/instance_save_lts_config.py +198 -0
  15. huaweicloudsdkgaussdb/v3/model/ip_group_item.py +142 -0
  16. huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_request.py +172 -0
  17. huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_response.py +145 -0
  18. huaweicloudsdkgaussdb/v3/model/list_recycle_instances_request.py +173 -0
  19. huaweicloudsdkgaussdb/v3/model/list_recycle_instances_response.py +145 -0
  20. huaweicloudsdkgaussdb/v3/model/lts_config.py +202 -0
  21. huaweicloudsdkgaussdb/v3/model/lts_configs_v3.py +140 -0
  22. huaweicloudsdkgaussdb/v3/model/modify_gauss_my_sql_proxy_route_mode_request_body.py +3 -3
  23. huaweicloudsdkgaussdb/v3/model/modify_node_priority_request.py +196 -0
  24. huaweicloudsdkgaussdb/v3/model/modify_node_priority_request_body.py +114 -0
  25. huaweicloudsdkgaussdb/v3/model/modify_node_priority_response.py +116 -0
  26. huaweicloudsdkgaussdb/v3/model/mysql_update_instance_name_request.py +32 -3
  27. huaweicloudsdkgaussdb/v3/model/proxy_configuration.py +260 -0
  28. huaweicloudsdkgaussdb/v3/model/proxy_ip_group_detail.py +170 -0
  29. huaweicloudsdkgaussdb/v3/model/proxy_update_proxy_name_request.py +114 -0
  30. huaweicloudsdkgaussdb/v3/model/proxy_upgrade_proxy_version_request.py +142 -0
  31. huaweicloudsdkgaussdb/v3/model/proxy_upgrade_version_detail.py +202 -0
  32. huaweicloudsdkgaussdb/v3/model/recycle_instance_v3.py +579 -0
  33. huaweicloudsdkgaussdb/v3/model/recycle_policy.py +114 -0
  34. huaweicloudsdkgaussdb/v3/model/rename_instance_node_request.py +168 -0
  35. huaweicloudsdkgaussdb/v3/model/rename_instance_node_request_body.py +114 -0
  36. huaweicloudsdkgaussdb/v3/model/rename_instance_node_response.py +116 -0
  37. huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_request.py +171 -0
  38. huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_response.py +116 -0
  39. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request.py +140 -0
  40. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request_body.py +111 -0
  41. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_response.py +85 -0
  42. huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_request.py +201 -0
  43. huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_response.py +145 -0
  44. huaweicloudsdkgaussdb/v3/model/show_instance_eip_request.py +143 -0
  45. huaweicloudsdkgaussdb/v3/model/show_instance_eip_response.py +493 -0
  46. huaweicloudsdkgaussdb/v3/model/show_lts_configs_request.py +260 -0
  47. huaweicloudsdkgaussdb/v3/model/show_lts_configs_response.py +145 -0
  48. huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_request.py +258 -0
  49. huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_response.py +145 -0
  50. huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_request.py +171 -0
  51. huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_response.py +170 -0
  52. huaweicloudsdkgaussdb/v3/model/show_proxy_version_request.py +199 -0
  53. huaweicloudsdkgaussdb/v3/model/show_proxy_version_response.py +174 -0
  54. huaweicloudsdkgaussdb/v3/model/show_recycle_policy_request.py +115 -0
  55. huaweicloudsdkgaussdb/v3/model/show_recycle_policy_response.py +112 -0
  56. huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_request.py +143 -0
  57. huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_response.py +116 -0
  58. huaweicloudsdkgaussdb/v3/model/single_node_info.py +142 -0
  59. huaweicloudsdkgaussdb/v3/model/template_apply_history.py +231 -0
  60. huaweicloudsdkgaussdb/v3/model/update_proxy_name_request.py +196 -0
  61. huaweicloudsdkgaussdb/v3/model/update_proxy_name_response.py +116 -0
  62. huaweicloudsdkgaussdb/v3/model/update_serverless_policy.py +142 -0
  63. huaweicloudsdkgaussdb/v3/model/update_serverless_policy_request.py +168 -0
  64. huaweicloudsdkgaussdb/v3/model/update_serverless_policy_response.py +85 -0
  65. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request.py +168 -0
  66. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request_body.py +114 -0
  67. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_response.py +85 -0
  68. huaweicloudsdkgaussdb/v3/model/upgrade_proxy_version_request.py +196 -0
  69. huaweicloudsdkgaussdb/v3/model/upgrade_proxy_version_response.py +116 -0
  70. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/METADATA +2 -2
  71. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/RECORD +74 -11
  72. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/LICENSE +0 -0
  73. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/WHEEL +0 -0
  74. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/top_level.txt +0 -0
@@ -1268,6 +1268,73 @@ class GaussDBAsyncClient(Client):
1268
1268
 
1269
1269
  return http_info
1270
1270
 
1271
+ def create_lts_configs_async(self, request):
1272
+ """批量创建LTS日志配置
1273
+
1274
+ 批量创建LTS日志配置
1275
+
1276
+ Please refer to HUAWEI cloud API Explorer for details.
1277
+
1278
+
1279
+ :param request: Request instance for CreateLtsConfigs
1280
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CreateLtsConfigsRequest`
1281
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateLtsConfigsResponse`
1282
+ """
1283
+ http_info = self._create_lts_configs_http_info(request)
1284
+ return self._call_api(**http_info)
1285
+
1286
+ def create_lts_configs_async_invoker(self, request):
1287
+ http_info = self._create_lts_configs_http_info(request)
1288
+ return AsyncInvoker(self, http_info)
1289
+
1290
+ def _create_lts_configs_http_info(self, request):
1291
+ http_info = {
1292
+ "method": "POST",
1293
+ "resource_path": "/v3/{project_id}/logs/lts-configs",
1294
+ "request_type": request.__class__.__name__,
1295
+ "response_type": "CreateLtsConfigsResponse"
1296
+ }
1297
+
1298
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1299
+
1300
+ cname = None
1301
+
1302
+ collection_formats = {}
1303
+
1304
+ path_params = {}
1305
+
1306
+ query_params = []
1307
+
1308
+ header_params = {}
1309
+ if 'x_language' in local_var_params:
1310
+ header_params['X-Language'] = local_var_params['x_language']
1311
+
1312
+ form_params = {}
1313
+
1314
+ body = None
1315
+ if 'body' in local_var_params:
1316
+ body = local_var_params['body']
1317
+ if isinstance(request, SdkStreamRequest):
1318
+ body = request.get_file_stream()
1319
+
1320
+ response_headers = []
1321
+
1322
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1323
+ ['application/json;charset=UTF-8'])
1324
+
1325
+ auth_settings = []
1326
+
1327
+ http_info["cname"] = cname
1328
+ http_info["collection_formats"] = collection_formats
1329
+ http_info["path_params"] = path_params
1330
+ http_info["query_params"] = query_params
1331
+ http_info["header_params"] = header_params
1332
+ http_info["post_params"] = form_params
1333
+ http_info["body"] = body
1334
+ http_info["response_headers"] = response_headers
1335
+
1336
+ return http_info
1337
+
1271
1338
  def create_restore_tables_async(self, request):
1272
1339
  """表级时间点恢复
1273
1340
 
@@ -1883,6 +1950,73 @@ class GaussDBAsyncClient(Client):
1883
1950
 
1884
1951
  return http_info
1885
1952
 
1953
+ def delete_lts_configs_async(self, request):
1954
+ """批量删除LTS日志配置
1955
+
1956
+ 批量删除LTS日志配置
1957
+
1958
+ Please refer to HUAWEI cloud API Explorer for details.
1959
+
1960
+
1961
+ :param request: Request instance for DeleteLtsConfigs
1962
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteLtsConfigsRequest`
1963
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteLtsConfigsResponse`
1964
+ """
1965
+ http_info = self._delete_lts_configs_http_info(request)
1966
+ return self._call_api(**http_info)
1967
+
1968
+ def delete_lts_configs_async_invoker(self, request):
1969
+ http_info = self._delete_lts_configs_http_info(request)
1970
+ return AsyncInvoker(self, http_info)
1971
+
1972
+ def _delete_lts_configs_http_info(self, request):
1973
+ http_info = {
1974
+ "method": "DELETE",
1975
+ "resource_path": "/v3/{project_id}/logs/lts-configs",
1976
+ "request_type": request.__class__.__name__,
1977
+ "response_type": "DeleteLtsConfigsResponse"
1978
+ }
1979
+
1980
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1981
+
1982
+ cname = None
1983
+
1984
+ collection_formats = {}
1985
+
1986
+ path_params = {}
1987
+
1988
+ query_params = []
1989
+
1990
+ header_params = {}
1991
+ if 'x_language' in local_var_params:
1992
+ header_params['X-Language'] = local_var_params['x_language']
1993
+
1994
+ form_params = {}
1995
+
1996
+ body = None
1997
+ if 'body' in local_var_params:
1998
+ body = local_var_params['body']
1999
+ if isinstance(request, SdkStreamRequest):
2000
+ body = request.get_file_stream()
2001
+
2002
+ response_headers = []
2003
+
2004
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2005
+ ['application/json;charset=UTF-8'])
2006
+
2007
+ auth_settings = []
2008
+
2009
+ http_info["cname"] = cname
2010
+ http_info["collection_formats"] = collection_formats
2011
+ http_info["path_params"] = path_params
2012
+ http_info["query_params"] = query_params
2013
+ http_info["header_params"] = header_params
2014
+ http_info["post_params"] = form_params
2015
+ http_info["body"] = body
2016
+ http_info["response_headers"] = response_headers
2017
+
2018
+ return http_info
2019
+
1886
2020
  def delete_schedule_tas_k_async(self, request):
1887
2021
  """删除定时任务
1888
2022
 
@@ -3671,6 +3805,75 @@ class GaussDBAsyncClient(Client):
3671
3805
 
3672
3806
  return http_info
3673
3807
 
3808
+ def list_params_template_apply_history_async(self, request):
3809
+ """查询参数模板应用记录。
3810
+
3811
+ 查询参数模板应用记录。
3812
+
3813
+ Please refer to HUAWEI cloud API Explorer for details.
3814
+
3815
+
3816
+ :param request: Request instance for ListParamsTemplateApplyHistory
3817
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListParamsTemplateApplyHistoryRequest`
3818
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListParamsTemplateApplyHistoryResponse`
3819
+ """
3820
+ http_info = self._list_params_template_apply_history_http_info(request)
3821
+ return self._call_api(**http_info)
3822
+
3823
+ def list_params_template_apply_history_async_invoker(self, request):
3824
+ http_info = self._list_params_template_apply_history_http_info(request)
3825
+ return AsyncInvoker(self, http_info)
3826
+
3827
+ def _list_params_template_apply_history_http_info(self, request):
3828
+ http_info = {
3829
+ "method": "GET",
3830
+ "resource_path": "/v3/{project_id}/configurations/{config_id}/apply-history",
3831
+ "request_type": request.__class__.__name__,
3832
+ "response_type": "ListParamsTemplateApplyHistoryResponse"
3833
+ }
3834
+
3835
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3836
+
3837
+ cname = None
3838
+
3839
+ collection_formats = {}
3840
+
3841
+ path_params = {}
3842
+ if 'config_id' in local_var_params:
3843
+ path_params['config_id'] = local_var_params['config_id']
3844
+
3845
+ query_params = []
3846
+ if 'limit' in local_var_params:
3847
+ query_params.append(('limit', local_var_params['limit']))
3848
+ if 'offset' in local_var_params:
3849
+ query_params.append(('offset', local_var_params['offset']))
3850
+
3851
+ header_params = {}
3852
+
3853
+ form_params = {}
3854
+
3855
+ body = None
3856
+ if isinstance(request, SdkStreamRequest):
3857
+ body = request.get_file_stream()
3858
+
3859
+ response_headers = []
3860
+
3861
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3862
+ ['application/json'])
3863
+
3864
+ auth_settings = []
3865
+
3866
+ http_info["cname"] = cname
3867
+ http_info["collection_formats"] = collection_formats
3868
+ http_info["path_params"] = path_params
3869
+ http_info["query_params"] = query_params
3870
+ http_info["header_params"] = header_params
3871
+ http_info["post_params"] = form_params
3872
+ http_info["body"] = body
3873
+ http_info["response_headers"] = response_headers
3874
+
3875
+ return http_info
3876
+
3674
3877
  def list_project_tags_async(self, request):
3675
3878
  """查询项目标签
3676
3879
 
@@ -3740,6 +3943,75 @@ class GaussDBAsyncClient(Client):
3740
3943
 
3741
3944
  return http_info
3742
3945
 
3946
+ def list_recycle_instances_async(self, request):
3947
+ """查询回收站实例信息
3948
+
3949
+ 查询回收站实例信息
3950
+
3951
+ Please refer to HUAWEI cloud API Explorer for details.
3952
+
3953
+
3954
+ :param request: Request instance for ListRecycleInstances
3955
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListRecycleInstancesRequest`
3956
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListRecycleInstancesResponse`
3957
+ """
3958
+ http_info = self._list_recycle_instances_http_info(request)
3959
+ return self._call_api(**http_info)
3960
+
3961
+ def list_recycle_instances_async_invoker(self, request):
3962
+ http_info = self._list_recycle_instances_http_info(request)
3963
+ return AsyncInvoker(self, http_info)
3964
+
3965
+ def _list_recycle_instances_http_info(self, request):
3966
+ http_info = {
3967
+ "method": "GET",
3968
+ "resource_path": "/v3/{project_id}/instances/recycle-info",
3969
+ "request_type": request.__class__.__name__,
3970
+ "response_type": "ListRecycleInstancesResponse"
3971
+ }
3972
+
3973
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3974
+
3975
+ cname = None
3976
+
3977
+ collection_formats = {}
3978
+
3979
+ path_params = {}
3980
+
3981
+ query_params = []
3982
+ if 'limit' in local_var_params:
3983
+ query_params.append(('limit', local_var_params['limit']))
3984
+ if 'offset' in local_var_params:
3985
+ query_params.append(('offset', local_var_params['offset']))
3986
+
3987
+ header_params = {}
3988
+ if 'x_language' in local_var_params:
3989
+ header_params['X-Language'] = local_var_params['x_language']
3990
+
3991
+ form_params = {}
3992
+
3993
+ body = None
3994
+ if isinstance(request, SdkStreamRequest):
3995
+ body = request.get_file_stream()
3996
+
3997
+ response_headers = []
3998
+
3999
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4000
+ ['application/json'])
4001
+
4002
+ auth_settings = []
4003
+
4004
+ http_info["cname"] = cname
4005
+ http_info["collection_formats"] = collection_formats
4006
+ http_info["path_params"] = path_params
4007
+ http_info["query_params"] = query_params
4008
+ http_info["header_params"] = header_params
4009
+ http_info["post_params"] = form_params
4010
+ http_info["body"] = body
4011
+ http_info["response_headers"] = response_headers
4012
+
4013
+ return http_info
4014
+
3743
4015
  def list_schedule_jobs_async(self, request):
3744
4016
  """获取定时任务列表
3745
4017
 
@@ -4028,31 +4300,31 @@ class GaussDBAsyncClient(Client):
4028
4300
 
4029
4301
  return http_info
4030
4302
 
4031
- def reset_gauss_my_sql_database_password_async(self, request):
4032
- """修改数据库用户密码
4303
+ def modify_node_priority_async(self, request):
4304
+ """修改节点故障倒换优先级。
4033
4305
 
4034
- 修改云数据库 GaussDB(for MySQL)实例数据库用户密码。
4306
+ 修改节点故障倒换优先级。
4035
4307
 
4036
4308
  Please refer to HUAWEI cloud API Explorer for details.
4037
4309
 
4038
4310
 
4039
- :param request: Request instance for ResetGaussMySqlDatabasePassword
4040
- :type request: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlDatabasePasswordRequest`
4041
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlDatabasePasswordResponse`
4311
+ :param request: Request instance for ModifyNodePriority
4312
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ModifyNodePriorityRequest`
4313
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ModifyNodePriorityResponse`
4042
4314
  """
4043
- http_info = self._reset_gauss_my_sql_database_password_http_info(request)
4315
+ http_info = self._modify_node_priority_http_info(request)
4044
4316
  return self._call_api(**http_info)
4045
4317
 
4046
- def reset_gauss_my_sql_database_password_async_invoker(self, request):
4047
- http_info = self._reset_gauss_my_sql_database_password_http_info(request)
4318
+ def modify_node_priority_async_invoker(self, request):
4319
+ http_info = self._modify_node_priority_http_info(request)
4048
4320
  return AsyncInvoker(self, http_info)
4049
4321
 
4050
- def _reset_gauss_my_sql_database_password_http_info(self, request):
4322
+ def _modify_node_priority_http_info(self, request):
4051
4323
  http_info = {
4052
4324
  "method": "PUT",
4053
- "resource_path": "/v3/{project_id}/instances/{instance_id}/db-users/password",
4325
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/nodes/{node_id}/priority",
4054
4326
  "request_type": request.__class__.__name__,
4055
- "response_type": "ResetGaussMySqlDatabasePasswordResponse"
4327
+ "response_type": "ModifyNodePriorityResponse"
4056
4328
  }
4057
4329
 
4058
4330
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4064,6 +4336,8 @@ class GaussDBAsyncClient(Client):
4064
4336
  path_params = {}
4065
4337
  if 'instance_id' in local_var_params:
4066
4338
  path_params['instance_id'] = local_var_params['instance_id']
4339
+ if 'node_id' in local_var_params:
4340
+ path_params['node_id'] = local_var_params['node_id']
4067
4341
 
4068
4342
  query_params = []
4069
4343
 
@@ -4097,31 +4371,31 @@ class GaussDBAsyncClient(Client):
4097
4371
 
4098
4372
  return http_info
4099
4373
 
4100
- def reset_gauss_my_sql_password_async(self, request):
4101
- """重置数据库密码
4374
+ def rename_instance_node_async(self, request):
4375
+ """批量修改节点名称.
4102
4376
 
4103
- 重置数据库密码。
4377
+ 批量修改节点名称.
4104
4378
 
4105
4379
  Please refer to HUAWEI cloud API Explorer for details.
4106
4380
 
4107
4381
 
4108
- :param request: Request instance for ResetGaussMySqlPassword
4109
- :type request: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlPasswordRequest`
4110
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlPasswordResponse`
4382
+ :param request: Request instance for RenameInstanceNode
4383
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RenameInstanceNodeRequest`
4384
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RenameInstanceNodeResponse`
4111
4385
  """
4112
- http_info = self._reset_gauss_my_sql_password_http_info(request)
4386
+ http_info = self._rename_instance_node_http_info(request)
4113
4387
  return self._call_api(**http_info)
4114
4388
 
4115
- def reset_gauss_my_sql_password_async_invoker(self, request):
4116
- http_info = self._reset_gauss_my_sql_password_http_info(request)
4389
+ def rename_instance_node_async_invoker(self, request):
4390
+ http_info = self._rename_instance_node_http_info(request)
4117
4391
  return AsyncInvoker(self, http_info)
4118
4392
 
4119
- def _reset_gauss_my_sql_password_http_info(self, request):
4393
+ def _rename_instance_node_http_info(self, request):
4120
4394
  http_info = {
4121
- "method": "POST",
4122
- "resource_path": "/v3/{project_id}/instances/{instance_id}/password",
4395
+ "method": "PUT",
4396
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/nodes/name",
4123
4397
  "request_type": request.__class__.__name__,
4124
- "response_type": "ResetGaussMySqlPasswordResponse"
4398
+ "response_type": "RenameInstanceNodeResponse"
4125
4399
  }
4126
4400
 
4127
4401
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4166,31 +4440,31 @@ class GaussDBAsyncClient(Client):
4166
4440
 
4167
4441
  return http_info
4168
4442
 
4169
- def restart_gauss_my_sql_instance_async(self, request):
4170
- """重启数据库实例
4443
+ def reset_gauss_my_sql_database_password_async(self, request):
4444
+ """修改数据库用户密码
4171
4445
 
4172
- 重启数据库实例。
4446
+ 修改云数据库 GaussDB(for MySQL)实例数据库用户密码。
4173
4447
 
4174
4448
  Please refer to HUAWEI cloud API Explorer for details.
4175
4449
 
4176
4450
 
4177
- :param request: Request instance for RestartGaussMySqlInstance
4178
- :type request: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlInstanceRequest`
4179
- :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlInstanceResponse`
4451
+ :param request: Request instance for ResetGaussMySqlDatabasePassword
4452
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlDatabasePasswordRequest`
4453
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlDatabasePasswordResponse`
4180
4454
  """
4181
- http_info = self._restart_gauss_my_sql_instance_http_info(request)
4455
+ http_info = self._reset_gauss_my_sql_database_password_http_info(request)
4182
4456
  return self._call_api(**http_info)
4183
4457
 
4184
- def restart_gauss_my_sql_instance_async_invoker(self, request):
4185
- http_info = self._restart_gauss_my_sql_instance_http_info(request)
4458
+ def reset_gauss_my_sql_database_password_async_invoker(self, request):
4459
+ http_info = self._reset_gauss_my_sql_database_password_http_info(request)
4186
4460
  return AsyncInvoker(self, http_info)
4187
4461
 
4188
- def _restart_gauss_my_sql_instance_http_info(self, request):
4462
+ def _reset_gauss_my_sql_database_password_http_info(self, request):
4189
4463
  http_info = {
4190
- "method": "POST",
4191
- "resource_path": "/v3/{project_id}/instances/{instance_id}/restart",
4464
+ "method": "PUT",
4465
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/db-users/password",
4192
4466
  "request_type": request.__class__.__name__,
4193
- "response_type": "RestartGaussMySqlInstanceResponse"
4467
+ "response_type": "ResetGaussMySqlDatabasePasswordResponse"
4194
4468
  }
4195
4469
 
4196
4470
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4235,31 +4509,31 @@ class GaussDBAsyncClient(Client):
4235
4509
 
4236
4510
  return http_info
4237
4511
 
4238
- def restart_gauss_my_sql_node_async(self, request):
4239
- """节点重启
4512
+ def reset_gauss_my_sql_password_async(self, request):
4513
+ """重置数据库密码
4240
4514
 
4241
- 节点重启。
4515
+ 重置数据库密码。
4242
4516
 
4243
4517
  Please refer to HUAWEI cloud API Explorer for details.
4244
4518
 
4245
4519
 
4246
- :param request: Request instance for RestartGaussMySqlNode
4247
- :type request: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlNodeRequest`
4248
- :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlNodeResponse`
4520
+ :param request: Request instance for ResetGaussMySqlPassword
4521
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlPasswordRequest`
4522
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlPasswordResponse`
4249
4523
  """
4250
- http_info = self._restart_gauss_my_sql_node_http_info(request)
4524
+ http_info = self._reset_gauss_my_sql_password_http_info(request)
4251
4525
  return self._call_api(**http_info)
4252
4526
 
4253
- def restart_gauss_my_sql_node_async_invoker(self, request):
4254
- http_info = self._restart_gauss_my_sql_node_http_info(request)
4527
+ def reset_gauss_my_sql_password_async_invoker(self, request):
4528
+ http_info = self._reset_gauss_my_sql_password_http_info(request)
4255
4529
  return AsyncInvoker(self, http_info)
4256
4530
 
4257
- def _restart_gauss_my_sql_node_http_info(self, request):
4531
+ def _reset_gauss_my_sql_password_http_info(self, request):
4258
4532
  http_info = {
4259
4533
  "method": "POST",
4260
- "resource_path": "/v3/{project_id}/instances/{instance_id}/nodes/{node_id}/restart",
4534
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/password",
4261
4535
  "request_type": request.__class__.__name__,
4262
- "response_type": "RestartGaussMySqlNodeResponse"
4536
+ "response_type": "ResetGaussMySqlPasswordResponse"
4263
4537
  }
4264
4538
 
4265
4539
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4271,8 +4545,6 @@ class GaussDBAsyncClient(Client):
4271
4545
  path_params = {}
4272
4546
  if 'instance_id' in local_var_params:
4273
4547
  path_params['instance_id'] = local_var_params['instance_id']
4274
- if 'node_id' in local_var_params:
4275
- path_params['node_id'] = local_var_params['node_id']
4276
4548
 
4277
4549
  query_params = []
4278
4550
 
@@ -4306,31 +4578,31 @@ class GaussDBAsyncClient(Client):
4306
4578
 
4307
4579
  return http_info
4308
4580
 
4309
- def restore_old_instance_async(self, request):
4310
- """备份恢复到当前实例或已有实例
4581
+ def restart_gauss_my_sql_instance_async(self, request):
4582
+ """重启数据库实例
4311
4583
 
4312
- 备份恢复到当前实例或已有实例。
4584
+ 重启数据库实例。
4313
4585
 
4314
4586
  Please refer to HUAWEI cloud API Explorer for details.
4315
4587
 
4316
4588
 
4317
- :param request: Request instance for RestoreOldInstance
4318
- :type request: :class:`huaweicloudsdkgaussdb.v3.RestoreOldInstanceRequest`
4319
- :rtype: :class:`huaweicloudsdkgaussdb.v3.RestoreOldInstanceResponse`
4589
+ :param request: Request instance for RestartGaussMySqlInstance
4590
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlInstanceRequest`
4591
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlInstanceResponse`
4320
4592
  """
4321
- http_info = self._restore_old_instance_http_info(request)
4593
+ http_info = self._restart_gauss_my_sql_instance_http_info(request)
4322
4594
  return self._call_api(**http_info)
4323
4595
 
4324
- def restore_old_instance_async_invoker(self, request):
4325
- http_info = self._restore_old_instance_http_info(request)
4596
+ def restart_gauss_my_sql_instance_async_invoker(self, request):
4597
+ http_info = self._restart_gauss_my_sql_instance_http_info(request)
4326
4598
  return AsyncInvoker(self, http_info)
4327
4599
 
4328
- def _restore_old_instance_http_info(self, request):
4600
+ def _restart_gauss_my_sql_instance_http_info(self, request):
4329
4601
  http_info = {
4330
4602
  "method": "POST",
4331
- "resource_path": "/v3/{project_id}/instances/restore",
4603
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/restart",
4332
4604
  "request_type": request.__class__.__name__,
4333
- "response_type": "RestoreOldInstanceResponse"
4605
+ "response_type": "RestartGaussMySqlInstanceResponse"
4334
4606
  }
4335
4607
 
4336
4608
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4340,6 +4612,8 @@ class GaussDBAsyncClient(Client):
4340
4612
  collection_formats = {}
4341
4613
 
4342
4614
  path_params = {}
4615
+ if 'instance_id' in local_var_params:
4616
+ path_params['instance_id'] = local_var_params['instance_id']
4343
4617
 
4344
4618
  query_params = []
4345
4619
 
@@ -4373,31 +4647,31 @@ class GaussDBAsyncClient(Client):
4373
4647
 
4374
4648
  return http_info
4375
4649
 
4376
- def set_gauss_my_sql_proxy_weight_async(self, request):
4377
- """设置读写分离权重
4650
+ def restart_gauss_my_sql_node_async(self, request):
4651
+ """节点重启
4378
4652
 
4379
- 设置读写分离权重。
4653
+ 节点重启。
4380
4654
 
4381
4655
  Please refer to HUAWEI cloud API Explorer for details.
4382
4656
 
4383
4657
 
4384
- :param request: Request instance for SetGaussMySqlProxyWeight
4385
- :type request: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlProxyWeightRequest`
4386
- :rtype: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlProxyWeightResponse`
4658
+ :param request: Request instance for RestartGaussMySqlNode
4659
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlNodeRequest`
4660
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlNodeResponse`
4387
4661
  """
4388
- http_info = self._set_gauss_my_sql_proxy_weight_http_info(request)
4662
+ http_info = self._restart_gauss_my_sql_node_http_info(request)
4389
4663
  return self._call_api(**http_info)
4390
4664
 
4391
- def set_gauss_my_sql_proxy_weight_async_invoker(self, request):
4392
- http_info = self._set_gauss_my_sql_proxy_weight_http_info(request)
4665
+ def restart_gauss_my_sql_node_async_invoker(self, request):
4666
+ http_info = self._restart_gauss_my_sql_node_http_info(request)
4393
4667
  return AsyncInvoker(self, http_info)
4394
4668
 
4395
- def _set_gauss_my_sql_proxy_weight_http_info(self, request):
4669
+ def _restart_gauss_my_sql_node_http_info(self, request):
4396
4670
  http_info = {
4397
- "method": "PUT",
4398
- "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/weight",
4671
+ "method": "POST",
4672
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/nodes/{node_id}/restart",
4399
4673
  "request_type": request.__class__.__name__,
4400
- "response_type": "SetGaussMySqlProxyWeightResponse"
4674
+ "response_type": "RestartGaussMySqlNodeResponse"
4401
4675
  }
4402
4676
 
4403
4677
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4409,8 +4683,8 @@ class GaussDBAsyncClient(Client):
4409
4683
  path_params = {}
4410
4684
  if 'instance_id' in local_var_params:
4411
4685
  path_params['instance_id'] = local_var_params['instance_id']
4412
- if 'proxy_id' in local_var_params:
4413
- path_params['proxy_id'] = local_var_params['proxy_id']
4686
+ if 'node_id' in local_var_params:
4687
+ path_params['node_id'] = local_var_params['node_id']
4414
4688
 
4415
4689
  query_params = []
4416
4690
 
@@ -4444,31 +4718,31 @@ class GaussDBAsyncClient(Client):
4444
4718
 
4445
4719
  return http_info
4446
4720
 
4447
- def set_gauss_my_sql_quotas_async(self, request):
4448
- """设置租户基于企业项目的资源配额
4721
+ def restart_proxy_instance_async(self, request):
4722
+ """重启数据库代理.
4449
4723
 
4450
- 设置指定企业项目的资源配额。
4724
+ 重启数据库代理.
4451
4725
 
4452
4726
  Please refer to HUAWEI cloud API Explorer for details.
4453
4727
 
4454
4728
 
4455
- :param request: Request instance for SetGaussMySqlQuotas
4456
- :type request: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlQuotasRequest`
4457
- :rtype: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlQuotasResponse`
4729
+ :param request: Request instance for RestartProxyInstance
4730
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestartProxyInstanceRequest`
4731
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartProxyInstanceResponse`
4458
4732
  """
4459
- http_info = self._set_gauss_my_sql_quotas_http_info(request)
4733
+ http_info = self._restart_proxy_instance_http_info(request)
4460
4734
  return self._call_api(**http_info)
4461
4735
 
4462
- def set_gauss_my_sql_quotas_async_invoker(self, request):
4463
- http_info = self._set_gauss_my_sql_quotas_http_info(request)
4736
+ def restart_proxy_instance_async_invoker(self, request):
4737
+ http_info = self._restart_proxy_instance_http_info(request)
4464
4738
  return AsyncInvoker(self, http_info)
4465
4739
 
4466
- def _set_gauss_my_sql_quotas_http_info(self, request):
4740
+ def _restart_proxy_instance_http_info(self, request):
4467
4741
  http_info = {
4468
4742
  "method": "POST",
4469
- "resource_path": "/v3/{project_id}/quotas",
4743
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/restart",
4470
4744
  "request_type": request.__class__.__name__,
4471
- "response_type": "SetGaussMySqlQuotasResponse"
4745
+ "response_type": "RestartProxyInstanceResponse"
4472
4746
  }
4473
4747
 
4474
4748
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4478,6 +4752,10 @@ class GaussDBAsyncClient(Client):
4478
4752
  collection_formats = {}
4479
4753
 
4480
4754
  path_params = {}
4755
+ if 'instance_id' in local_var_params:
4756
+ path_params['instance_id'] = local_var_params['instance_id']
4757
+ if 'proxy_id' in local_var_params:
4758
+ path_params['proxy_id'] = local_var_params['proxy_id']
4481
4759
 
4482
4760
  query_params = []
4483
4761
 
@@ -4488,15 +4766,13 @@ class GaussDBAsyncClient(Client):
4488
4766
  form_params = {}
4489
4767
 
4490
4768
  body = None
4491
- if 'body' in local_var_params:
4492
- body = local_var_params['body']
4493
4769
  if isinstance(request, SdkStreamRequest):
4494
4770
  body = request.get_file_stream()
4495
4771
 
4496
4772
  response_headers = []
4497
4773
 
4498
4774
  header_params['Content-Type'] = http_utils.select_header_content_type(
4499
- ['application/json;charset=UTF-8'])
4775
+ ['application/json'])
4500
4776
 
4501
4777
  auth_settings = []
4502
4778
 
@@ -4511,31 +4787,31 @@ class GaussDBAsyncClient(Client):
4511
4787
 
4512
4788
  return http_info
4513
4789
 
4514
- def show_audit_log_async(self, request):
4515
- """查询全量SQL开关状态
4790
+ def restore_old_instance_async(self, request):
4791
+ """备份恢复到当前实例或已有实例
4516
4792
 
4517
- 查询全量SQL开关状态。
4793
+ 备份恢复到当前实例或已有实例。
4518
4794
 
4519
4795
  Please refer to HUAWEI cloud API Explorer for details.
4520
4796
 
4521
4797
 
4522
- :param request: Request instance for ShowAuditLog
4523
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogRequest`
4524
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogResponse`
4798
+ :param request: Request instance for RestoreOldInstance
4799
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestoreOldInstanceRequest`
4800
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestoreOldInstanceResponse`
4525
4801
  """
4526
- http_info = self._show_audit_log_http_info(request)
4802
+ http_info = self._restore_old_instance_http_info(request)
4527
4803
  return self._call_api(**http_info)
4528
4804
 
4529
- def show_audit_log_async_invoker(self, request):
4530
- http_info = self._show_audit_log_http_info(request)
4805
+ def restore_old_instance_async_invoker(self, request):
4806
+ http_info = self._restore_old_instance_http_info(request)
4531
4807
  return AsyncInvoker(self, http_info)
4532
4808
 
4533
- def _show_audit_log_http_info(self, request):
4809
+ def _restore_old_instance_http_info(self, request):
4534
4810
  http_info = {
4535
- "method": "GET",
4536
- "resource_path": "/v3/{project_id}/instance/{instance_id}/audit-log/switch-status",
4811
+ "method": "POST",
4812
+ "resource_path": "/v3/{project_id}/instances/restore",
4537
4813
  "request_type": request.__class__.__name__,
4538
- "response_type": "ShowAuditLogResponse"
4814
+ "response_type": "RestoreOldInstanceResponse"
4539
4815
  }
4540
4816
 
4541
4817
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4545,8 +4821,6 @@ class GaussDBAsyncClient(Client):
4545
4821
  collection_formats = {}
4546
4822
 
4547
4823
  path_params = {}
4548
- if 'instance_id' in local_var_params:
4549
- path_params['instance_id'] = local_var_params['instance_id']
4550
4824
 
4551
4825
  query_params = []
4552
4826
 
@@ -4557,13 +4831,15 @@ class GaussDBAsyncClient(Client):
4557
4831
  form_params = {}
4558
4832
 
4559
4833
  body = None
4834
+ if 'body' in local_var_params:
4835
+ body = local_var_params['body']
4560
4836
  if isinstance(request, SdkStreamRequest):
4561
4837
  body = request.get_file_stream()
4562
4838
 
4563
4839
  response_headers = []
4564
4840
 
4565
4841
  header_params['Content-Type'] = http_utils.select_header_content_type(
4566
- ['application/json'])
4842
+ ['application/json;charset=UTF-8'])
4567
4843
 
4568
4844
  auth_settings = []
4569
4845
 
@@ -4578,31 +4854,31 @@ class GaussDBAsyncClient(Client):
4578
4854
 
4579
4855
  return http_info
4580
4856
 
4581
- def show_auto_scaling_policy_async(self, request):
4582
- """查询自动变配
4857
+ def set_gauss_my_sql_proxy_weight_async(self, request):
4858
+ """设置读写分离权重
4583
4859
 
4584
- 查询自动变配。
4860
+ 设置读写分离权重。
4585
4861
 
4586
4862
  Please refer to HUAWEI cloud API Explorer for details.
4587
4863
 
4588
4864
 
4589
- :param request: Request instance for ShowAutoScalingPolicy
4590
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowAutoScalingPolicyRequest`
4591
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAutoScalingPolicyResponse`
4865
+ :param request: Request instance for SetGaussMySqlProxyWeight
4866
+ :type request: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlProxyWeightRequest`
4867
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlProxyWeightResponse`
4592
4868
  """
4593
- http_info = self._show_auto_scaling_policy_http_info(request)
4869
+ http_info = self._set_gauss_my_sql_proxy_weight_http_info(request)
4594
4870
  return self._call_api(**http_info)
4595
4871
 
4596
- def show_auto_scaling_policy_async_invoker(self, request):
4597
- http_info = self._show_auto_scaling_policy_http_info(request)
4872
+ def set_gauss_my_sql_proxy_weight_async_invoker(self, request):
4873
+ http_info = self._set_gauss_my_sql_proxy_weight_http_info(request)
4598
4874
  return AsyncInvoker(self, http_info)
4599
4875
 
4600
- def _show_auto_scaling_policy_http_info(self, request):
4876
+ def _set_gauss_my_sql_proxy_weight_http_info(self, request):
4601
4877
  http_info = {
4602
- "method": "GET",
4603
- "resource_path": "/v3/{project_id}/instances/{instance_id}/auto-scaling/policy",
4878
+ "method": "PUT",
4879
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/weight",
4604
4880
  "request_type": request.__class__.__name__,
4605
- "response_type": "ShowAutoScalingPolicyResponse"
4881
+ "response_type": "SetGaussMySqlProxyWeightResponse"
4606
4882
  }
4607
4883
 
4608
4884
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4614,6 +4890,8 @@ class GaussDBAsyncClient(Client):
4614
4890
  path_params = {}
4615
4891
  if 'instance_id' in local_var_params:
4616
4892
  path_params['instance_id'] = local_var_params['instance_id']
4893
+ if 'proxy_id' in local_var_params:
4894
+ path_params['proxy_id'] = local_var_params['proxy_id']
4617
4895
 
4618
4896
  query_params = []
4619
4897
 
@@ -4624,13 +4902,15 @@ class GaussDBAsyncClient(Client):
4624
4902
  form_params = {}
4625
4903
 
4626
4904
  body = None
4905
+ if 'body' in local_var_params:
4906
+ body = local_var_params['body']
4627
4907
  if isinstance(request, SdkStreamRequest):
4628
4908
  body = request.get_file_stream()
4629
4909
 
4630
4910
  response_headers = []
4631
4911
 
4632
4912
  header_params['Content-Type'] = http_utils.select_header_content_type(
4633
- ['application/json'])
4913
+ ['application/json;charset=UTF-8'])
4634
4914
 
4635
4915
  auth_settings = []
4636
4916
 
@@ -4645,31 +4925,31 @@ class GaussDBAsyncClient(Client):
4645
4925
 
4646
4926
  return http_info
4647
4927
 
4648
- def show_backup_restore_time_async(self, request):
4649
- """查询可恢复时间段
4928
+ def set_gauss_my_sql_quotas_async(self, request):
4929
+ """设置租户基于企业项目的资源配额
4650
4930
 
4651
- 查询实例的可恢复时间段。
4931
+ 设置指定企业项目的资源配额。
4652
4932
 
4653
4933
  Please refer to HUAWEI cloud API Explorer for details.
4654
4934
 
4655
4935
 
4656
- :param request: Request instance for ShowBackupRestoreTime
4657
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowBackupRestoreTimeRequest`
4658
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowBackupRestoreTimeResponse`
4936
+ :param request: Request instance for SetGaussMySqlQuotas
4937
+ :type request: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlQuotasRequest`
4938
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlQuotasResponse`
4659
4939
  """
4660
- http_info = self._show_backup_restore_time_http_info(request)
4940
+ http_info = self._set_gauss_my_sql_quotas_http_info(request)
4661
4941
  return self._call_api(**http_info)
4662
4942
 
4663
- def show_backup_restore_time_async_invoker(self, request):
4664
- http_info = self._show_backup_restore_time_http_info(request)
4943
+ def set_gauss_my_sql_quotas_async_invoker(self, request):
4944
+ http_info = self._set_gauss_my_sql_quotas_http_info(request)
4665
4945
  return AsyncInvoker(self, http_info)
4666
4946
 
4667
- def _show_backup_restore_time_http_info(self, request):
4947
+ def _set_gauss_my_sql_quotas_http_info(self, request):
4668
4948
  http_info = {
4669
- "method": "GET",
4670
- "resource_path": "/v3/{project_id}/instances/{instance_id}/restore-time",
4949
+ "method": "POST",
4950
+ "resource_path": "/v3/{project_id}/quotas",
4671
4951
  "request_type": request.__class__.__name__,
4672
- "response_type": "ShowBackupRestoreTimeResponse"
4952
+ "response_type": "SetGaussMySqlQuotasResponse"
4673
4953
  }
4674
4954
 
4675
4955
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4679,12 +4959,8 @@ class GaussDBAsyncClient(Client):
4679
4959
  collection_formats = {}
4680
4960
 
4681
4961
  path_params = {}
4682
- if 'instance_id' in local_var_params:
4683
- path_params['instance_id'] = local_var_params['instance_id']
4684
4962
 
4685
4963
  query_params = []
4686
- if 'date' in local_var_params:
4687
- query_params.append(('date', local_var_params['date']))
4688
4964
 
4689
4965
  header_params = {}
4690
4966
  if 'x_language' in local_var_params:
@@ -4693,13 +4969,15 @@ class GaussDBAsyncClient(Client):
4693
4969
  form_params = {}
4694
4970
 
4695
4971
  body = None
4972
+ if 'body' in local_var_params:
4973
+ body = local_var_params['body']
4696
4974
  if isinstance(request, SdkStreamRequest):
4697
4975
  body = request.get_file_stream()
4698
4976
 
4699
4977
  response_headers = []
4700
4978
 
4701
4979
  header_params['Content-Type'] = http_utils.select_header_content_type(
4702
- ['application/json'])
4980
+ ['application/json;charset=UTF-8'])
4703
4981
 
4704
4982
  auth_settings = []
4705
4983
 
@@ -4714,31 +4992,31 @@ class GaussDBAsyncClient(Client):
4714
4992
 
4715
4993
  return http_info
4716
4994
 
4717
- def show_dedicated_resource_info_async(self, request):
4718
- """查询专属资源信息详情
4995
+ def set_recycle_policy_async(self, request):
4996
+ """设置回收站策略
4719
4997
 
4720
- 查询专属资源信息详情。
4998
+ 设置回收站策略
4721
4999
 
4722
5000
  Please refer to HUAWEI cloud API Explorer for details.
4723
5001
 
4724
5002
 
4725
- :param request: Request instance for ShowDedicatedResourceInfo
4726
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowDedicatedResourceInfoRequest`
4727
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowDedicatedResourceInfoResponse`
5003
+ :param request: Request instance for SetRecyclePolicy
5004
+ :type request: :class:`huaweicloudsdkgaussdb.v3.SetRecyclePolicyRequest`
5005
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.SetRecyclePolicyResponse`
4728
5006
  """
4729
- http_info = self._show_dedicated_resource_info_http_info(request)
5007
+ http_info = self._set_recycle_policy_http_info(request)
4730
5008
  return self._call_api(**http_info)
4731
5009
 
4732
- def show_dedicated_resource_info_async_invoker(self, request):
4733
- http_info = self._show_dedicated_resource_info_http_info(request)
5010
+ def set_recycle_policy_async_invoker(self, request):
5011
+ http_info = self._set_recycle_policy_http_info(request)
4734
5012
  return AsyncInvoker(self, http_info)
4735
5013
 
4736
- def _show_dedicated_resource_info_http_info(self, request):
5014
+ def _set_recycle_policy_http_info(self, request):
4737
5015
  http_info = {
4738
- "method": "GET",
4739
- "resource_path": "/v3/{project_id}/dedicated-resource/{dedicated_resource_id}",
5016
+ "method": "PUT",
5017
+ "resource_path": "/v3/{project_id}/instances/recycle-policy",
4740
5018
  "request_type": request.__class__.__name__,
4741
- "response_type": "ShowDedicatedResourceInfoResponse"
5019
+ "response_type": "SetRecyclePolicyResponse"
4742
5020
  }
4743
5021
 
4744
5022
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4748,8 +5026,6 @@ class GaussDBAsyncClient(Client):
4748
5026
  collection_formats = {}
4749
5027
 
4750
5028
  path_params = {}
4751
- if 'dedicated_resource_id' in local_var_params:
4752
- path_params['dedicated_resource_id'] = local_var_params['dedicated_resource_id']
4753
5029
 
4754
5030
  query_params = []
4755
5031
 
@@ -4760,13 +5036,15 @@ class GaussDBAsyncClient(Client):
4760
5036
  form_params = {}
4761
5037
 
4762
5038
  body = None
5039
+ if 'body' in local_var_params:
5040
+ body = local_var_params['body']
4763
5041
  if isinstance(request, SdkStreamRequest):
4764
5042
  body = request.get_file_stream()
4765
5043
 
4766
5044
  response_headers = []
4767
5045
 
4768
5046
  header_params['Content-Type'] = http_utils.select_header_content_type(
4769
- ['application/json'])
5047
+ ['application/json;charset=UTF-8'])
4770
5048
 
4771
5049
  auth_settings = []
4772
5050
 
@@ -4781,31 +5059,31 @@ class GaussDBAsyncClient(Client):
4781
5059
 
4782
5060
  return http_info
4783
5061
 
4784
- def show_gauss_my_sql_backup_list_async(self, request):
4785
- """查询全量备份列表
5062
+ def show_audit_log_async(self, request):
5063
+ """查询全量SQL开关状态
4786
5064
 
4787
- 查询全量备份列表。
5065
+ 查询全量SQL开关状态。
4788
5066
 
4789
5067
  Please refer to HUAWEI cloud API Explorer for details.
4790
5068
 
4791
5069
 
4792
- :param request: Request instance for ShowGaussMySqlBackupList
4793
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupListRequest`
4794
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupListResponse`
5070
+ :param request: Request instance for ShowAuditLog
5071
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogRequest`
5072
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogResponse`
4795
5073
  """
4796
- http_info = self._show_gauss_my_sql_backup_list_http_info(request)
5074
+ http_info = self._show_audit_log_http_info(request)
4797
5075
  return self._call_api(**http_info)
4798
5076
 
4799
- def show_gauss_my_sql_backup_list_async_invoker(self, request):
4800
- http_info = self._show_gauss_my_sql_backup_list_http_info(request)
5077
+ def show_audit_log_async_invoker(self, request):
5078
+ http_info = self._show_audit_log_http_info(request)
4801
5079
  return AsyncInvoker(self, http_info)
4802
5080
 
4803
- def _show_gauss_my_sql_backup_list_http_info(self, request):
5081
+ def _show_audit_log_http_info(self, request):
4804
5082
  http_info = {
4805
5083
  "method": "GET",
4806
- "resource_path": "/v3/{project_id}/backups",
5084
+ "resource_path": "/v3/{project_id}/instance/{instance_id}/audit-log/switch-status",
4807
5085
  "request_type": request.__class__.__name__,
4808
- "response_type": "ShowGaussMySqlBackupListResponse"
5086
+ "response_type": "ShowAuditLogResponse"
4809
5087
  }
4810
5088
 
4811
5089
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4815,26 +5093,81 @@ class GaussDBAsyncClient(Client):
4815
5093
  collection_formats = {}
4816
5094
 
4817
5095
  path_params = {}
5096
+ if 'instance_id' in local_var_params:
5097
+ path_params['instance_id'] = local_var_params['instance_id']
4818
5098
 
4819
5099
  query_params = []
5100
+
5101
+ header_params = {}
5102
+ if 'x_language' in local_var_params:
5103
+ header_params['X-Language'] = local_var_params['x_language']
5104
+
5105
+ form_params = {}
5106
+
5107
+ body = None
5108
+ if isinstance(request, SdkStreamRequest):
5109
+ body = request.get_file_stream()
5110
+
5111
+ response_headers = []
5112
+
5113
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5114
+ ['application/json'])
5115
+
5116
+ auth_settings = []
5117
+
5118
+ http_info["cname"] = cname
5119
+ http_info["collection_formats"] = collection_formats
5120
+ http_info["path_params"] = path_params
5121
+ http_info["query_params"] = query_params
5122
+ http_info["header_params"] = header_params
5123
+ http_info["post_params"] = form_params
5124
+ http_info["body"] = body
5125
+ http_info["response_headers"] = response_headers
5126
+
5127
+ return http_info
5128
+
5129
+ def show_auto_scaling_history_async(self, request):
5130
+ """查询自动变配历史记录.
5131
+
5132
+ 查询自动变配历史记录.
5133
+
5134
+ Please refer to HUAWEI cloud API Explorer for details.
5135
+
5136
+
5137
+ :param request: Request instance for ShowAutoScalingHistory
5138
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowAutoScalingHistoryRequest`
5139
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAutoScalingHistoryResponse`
5140
+ """
5141
+ http_info = self._show_auto_scaling_history_http_info(request)
5142
+ return self._call_api(**http_info)
5143
+
5144
+ def show_auto_scaling_history_async_invoker(self, request):
5145
+ http_info = self._show_auto_scaling_history_http_info(request)
5146
+ return AsyncInvoker(self, http_info)
5147
+
5148
+ def _show_auto_scaling_history_http_info(self, request):
5149
+ http_info = {
5150
+ "method": "GET",
5151
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/auto-scaling/history",
5152
+ "request_type": request.__class__.__name__,
5153
+ "response_type": "ShowAutoScalingHistoryResponse"
5154
+ }
5155
+
5156
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5157
+
5158
+ cname = None
5159
+
5160
+ collection_formats = {}
5161
+
5162
+ path_params = {}
4820
5163
  if 'instance_id' in local_var_params:
4821
- query_params.append(('instance_id', local_var_params['instance_id']))
4822
- if 'backup_id' in local_var_params:
4823
- query_params.append(('backup_id', local_var_params['backup_id']))
4824
- if 'backup_type' in local_var_params:
4825
- query_params.append(('backup_type', local_var_params['backup_type']))
4826
- if 'offset' in local_var_params:
4827
- query_params.append(('offset', local_var_params['offset']))
5164
+ path_params['instance_id'] = local_var_params['instance_id']
5165
+
5166
+ query_params = []
4828
5167
  if 'limit' in local_var_params:
4829
5168
  query_params.append(('limit', local_var_params['limit']))
4830
- if 'begin_time' in local_var_params:
4831
- query_params.append(('begin_time', local_var_params['begin_time']))
4832
- if 'end_time' in local_var_params:
4833
- query_params.append(('end_time', local_var_params['end_time']))
4834
- if 'name' in local_var_params:
4835
- query_params.append(('name', local_var_params['name']))
4836
- if 'instance_name' in local_var_params:
4837
- query_params.append(('instance_name', local_var_params['instance_name']))
5169
+ if 'offset' in local_var_params:
5170
+ query_params.append(('offset', local_var_params['offset']))
4838
5171
 
4839
5172
  header_params = {}
4840
5173
  if 'x_language' in local_var_params:
@@ -4864,31 +5197,31 @@ class GaussDBAsyncClient(Client):
4864
5197
 
4865
5198
  return http_info
4866
5199
 
4867
- def show_gauss_my_sql_backup_policy_async(self, request):
4868
- """查询自动备份策略
5200
+ def show_auto_scaling_policy_async(self, request):
5201
+ """查询自动变配
4869
5202
 
4870
- 查询自动备份策略。
5203
+ 查询自动变配。
4871
5204
 
4872
5205
  Please refer to HUAWEI cloud API Explorer for details.
4873
5206
 
4874
5207
 
4875
- :param request: Request instance for ShowGaussMySqlBackupPolicy
4876
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupPolicyRequest`
4877
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupPolicyResponse`
5208
+ :param request: Request instance for ShowAutoScalingPolicy
5209
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowAutoScalingPolicyRequest`
5210
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAutoScalingPolicyResponse`
4878
5211
  """
4879
- http_info = self._show_gauss_my_sql_backup_policy_http_info(request)
5212
+ http_info = self._show_auto_scaling_policy_http_info(request)
4880
5213
  return self._call_api(**http_info)
4881
5214
 
4882
- def show_gauss_my_sql_backup_policy_async_invoker(self, request):
4883
- http_info = self._show_gauss_my_sql_backup_policy_http_info(request)
5215
+ def show_auto_scaling_policy_async_invoker(self, request):
5216
+ http_info = self._show_auto_scaling_policy_http_info(request)
4884
5217
  return AsyncInvoker(self, http_info)
4885
5218
 
4886
- def _show_gauss_my_sql_backup_policy_http_info(self, request):
5219
+ def _show_auto_scaling_policy_http_info(self, request):
4887
5220
  http_info = {
4888
5221
  "method": "GET",
4889
- "resource_path": "/v3/{project_id}/instances/{instance_id}/backups/policy",
5222
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/auto-scaling/policy",
4890
5223
  "request_type": request.__class__.__name__,
4891
- "response_type": "ShowGaussMySqlBackupPolicyResponse"
5224
+ "response_type": "ShowAutoScalingPolicyResponse"
4892
5225
  }
4893
5226
 
4894
5227
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4931,31 +5264,31 @@ class GaussDBAsyncClient(Client):
4931
5264
 
4932
5265
  return http_info
4933
5266
 
4934
- def show_gauss_my_sql_configuration_async(self, request):
4935
- """获取参数模板详情
5267
+ def show_backup_restore_time_async(self, request):
5268
+ """查询可恢复时间段
4936
5269
 
4937
- 获取指定参数模板的参数信息。
5270
+ 查询实例的可恢复时间段。
4938
5271
 
4939
5272
  Please refer to HUAWEI cloud API Explorer for details.
4940
5273
 
4941
5274
 
4942
- :param request: Request instance for ShowGaussMySqlConfiguration
4943
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlConfigurationRequest`
4944
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlConfigurationResponse`
5275
+ :param request: Request instance for ShowBackupRestoreTime
5276
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowBackupRestoreTimeRequest`
5277
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowBackupRestoreTimeResponse`
4945
5278
  """
4946
- http_info = self._show_gauss_my_sql_configuration_http_info(request)
5279
+ http_info = self._show_backup_restore_time_http_info(request)
4947
5280
  return self._call_api(**http_info)
4948
5281
 
4949
- def show_gauss_my_sql_configuration_async_invoker(self, request):
4950
- http_info = self._show_gauss_my_sql_configuration_http_info(request)
5282
+ def show_backup_restore_time_async_invoker(self, request):
5283
+ http_info = self._show_backup_restore_time_http_info(request)
4951
5284
  return AsyncInvoker(self, http_info)
4952
5285
 
4953
- def _show_gauss_my_sql_configuration_http_info(self, request):
5286
+ def _show_backup_restore_time_http_info(self, request):
4954
5287
  http_info = {
4955
5288
  "method": "GET",
4956
- "resource_path": "/v3/{project_id}/configurations/{configuration_id}",
5289
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/restore-time",
4957
5290
  "request_type": request.__class__.__name__,
4958
- "response_type": "ShowGaussMySqlConfigurationResponse"
5291
+ "response_type": "ShowBackupRestoreTimeResponse"
4959
5292
  }
4960
5293
 
4961
5294
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4965,10 +5298,12 @@ class GaussDBAsyncClient(Client):
4965
5298
  collection_formats = {}
4966
5299
 
4967
5300
  path_params = {}
4968
- if 'configuration_id' in local_var_params:
4969
- path_params['configuration_id'] = local_var_params['configuration_id']
5301
+ if 'instance_id' in local_var_params:
5302
+ path_params['instance_id'] = local_var_params['instance_id']
4970
5303
 
4971
5304
  query_params = []
5305
+ if 'date' in local_var_params:
5306
+ query_params.append(('date', local_var_params['date']))
4972
5307
 
4973
5308
  header_params = {}
4974
5309
  if 'x_language' in local_var_params:
@@ -4998,31 +5333,31 @@ class GaussDBAsyncClient(Client):
4998
5333
 
4999
5334
  return http_info
5000
5335
 
5001
- def show_gauss_my_sql_engine_version_async(self, request):
5002
- """查询数据库引擎的版本
5336
+ def show_dedicated_resource_info_async(self, request):
5337
+ """查询专属资源信息详情
5003
5338
 
5004
- 获取指定数据库引擎对应的数据库版本信息。
5339
+ 查询专属资源信息详情。
5005
5340
 
5006
5341
  Please refer to HUAWEI cloud API Explorer for details.
5007
5342
 
5008
5343
 
5009
- :param request: Request instance for ShowGaussMySqlEngineVersion
5010
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlEngineVersionRequest`
5011
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlEngineVersionResponse`
5344
+ :param request: Request instance for ShowDedicatedResourceInfo
5345
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowDedicatedResourceInfoRequest`
5346
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowDedicatedResourceInfoResponse`
5012
5347
  """
5013
- http_info = self._show_gauss_my_sql_engine_version_http_info(request)
5348
+ http_info = self._show_dedicated_resource_info_http_info(request)
5014
5349
  return self._call_api(**http_info)
5015
5350
 
5016
- def show_gauss_my_sql_engine_version_async_invoker(self, request):
5017
- http_info = self._show_gauss_my_sql_engine_version_http_info(request)
5351
+ def show_dedicated_resource_info_async_invoker(self, request):
5352
+ http_info = self._show_dedicated_resource_info_http_info(request)
5018
5353
  return AsyncInvoker(self, http_info)
5019
5354
 
5020
- def _show_gauss_my_sql_engine_version_http_info(self, request):
5355
+ def _show_dedicated_resource_info_http_info(self, request):
5021
5356
  http_info = {
5022
5357
  "method": "GET",
5023
- "resource_path": "/v3/{project_id}/datastores/{database_name}",
5358
+ "resource_path": "/v3/{project_id}/dedicated-resource/{dedicated_resource_id}",
5024
5359
  "request_type": request.__class__.__name__,
5025
- "response_type": "ShowGaussMySqlEngineVersionResponse"
5360
+ "response_type": "ShowDedicatedResourceInfoResponse"
5026
5361
  }
5027
5362
 
5028
5363
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5032,8 +5367,8 @@ class GaussDBAsyncClient(Client):
5032
5367
  collection_formats = {}
5033
5368
 
5034
5369
  path_params = {}
5035
- if 'database_name' in local_var_params:
5036
- path_params['database_name'] = local_var_params['database_name']
5370
+ if 'dedicated_resource_id' in local_var_params:
5371
+ path_params['dedicated_resource_id'] = local_var_params['dedicated_resource_id']
5037
5372
 
5038
5373
  query_params = []
5039
5374
 
@@ -5065,31 +5400,31 @@ class GaussDBAsyncClient(Client):
5065
5400
 
5066
5401
  return http_info
5067
5402
 
5068
- def show_gauss_my_sql_flavors_async(self, request):
5069
- """查询数据库规格
5403
+ def show_gauss_my_sql_backup_list_async(self, request):
5404
+ """查询全量备份列表
5070
5405
 
5071
- 获取指定数据库引擎版本对应的规格信息。
5406
+ 查询全量备份列表。
5072
5407
 
5073
5408
  Please refer to HUAWEI cloud API Explorer for details.
5074
5409
 
5075
5410
 
5076
- :param request: Request instance for ShowGaussMySqlFlavors
5077
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlFlavorsRequest`
5078
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlFlavorsResponse`
5411
+ :param request: Request instance for ShowGaussMySqlBackupList
5412
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupListRequest`
5413
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupListResponse`
5079
5414
  """
5080
- http_info = self._show_gauss_my_sql_flavors_http_info(request)
5415
+ http_info = self._show_gauss_my_sql_backup_list_http_info(request)
5081
5416
  return self._call_api(**http_info)
5082
5417
 
5083
- def show_gauss_my_sql_flavors_async_invoker(self, request):
5084
- http_info = self._show_gauss_my_sql_flavors_http_info(request)
5418
+ def show_gauss_my_sql_backup_list_async_invoker(self, request):
5419
+ http_info = self._show_gauss_my_sql_backup_list_http_info(request)
5085
5420
  return AsyncInvoker(self, http_info)
5086
5421
 
5087
- def _show_gauss_my_sql_flavors_http_info(self, request):
5422
+ def _show_gauss_my_sql_backup_list_http_info(self, request):
5088
5423
  http_info = {
5089
5424
  "method": "GET",
5090
- "resource_path": "/v3/{project_id}/flavors/{database_name}",
5425
+ "resource_path": "/v3/{project_id}/backups",
5091
5426
  "request_type": request.__class__.__name__,
5092
- "response_type": "ShowGaussMySqlFlavorsResponse"
5427
+ "response_type": "ShowGaussMySqlBackupListResponse"
5093
5428
  }
5094
5429
 
5095
5430
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5099,16 +5434,26 @@ class GaussDBAsyncClient(Client):
5099
5434
  collection_formats = {}
5100
5435
 
5101
5436
  path_params = {}
5102
- if 'database_name' in local_var_params:
5103
- path_params['database_name'] = local_var_params['database_name']
5104
5437
 
5105
5438
  query_params = []
5106
- if 'version_name' in local_var_params:
5107
- query_params.append(('version_name', local_var_params['version_name']))
5108
- if 'availability_zone_mode' in local_var_params:
5109
- query_params.append(('availability_zone_mode', local_var_params['availability_zone_mode']))
5110
- if 'spec_code' in local_var_params:
5111
- query_params.append(('spec_code', local_var_params['spec_code']))
5439
+ if 'instance_id' in local_var_params:
5440
+ query_params.append(('instance_id', local_var_params['instance_id']))
5441
+ if 'backup_id' in local_var_params:
5442
+ query_params.append(('backup_id', local_var_params['backup_id']))
5443
+ if 'backup_type' in local_var_params:
5444
+ query_params.append(('backup_type', local_var_params['backup_type']))
5445
+ if 'offset' in local_var_params:
5446
+ query_params.append(('offset', local_var_params['offset']))
5447
+ if 'limit' in local_var_params:
5448
+ query_params.append(('limit', local_var_params['limit']))
5449
+ if 'begin_time' in local_var_params:
5450
+ query_params.append(('begin_time', local_var_params['begin_time']))
5451
+ if 'end_time' in local_var_params:
5452
+ query_params.append(('end_time', local_var_params['end_time']))
5453
+ if 'name' in local_var_params:
5454
+ query_params.append(('name', local_var_params['name']))
5455
+ if 'instance_name' in local_var_params:
5456
+ query_params.append(('instance_name', local_var_params['instance_name']))
5112
5457
 
5113
5458
  header_params = {}
5114
5459
  if 'x_language' in local_var_params:
@@ -5138,31 +5483,786 @@ class GaussDBAsyncClient(Client):
5138
5483
 
5139
5484
  return http_info
5140
5485
 
5141
- def show_gauss_my_sql_incremental_backup_list_async(self, request):
5142
- """查询增量备份列表
5486
+ def show_gauss_my_sql_backup_policy_async(self, request):
5487
+ """查询自动备份策略
5143
5488
 
5144
- 查询增量备份列表。
5489
+ 查询自动备份策略。
5145
5490
 
5146
5491
  Please refer to HUAWEI cloud API Explorer for details.
5147
5492
 
5148
5493
 
5149
- :param request: Request instance for ShowGaussMySqlIncrementalBackupList
5150
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlIncrementalBackupListRequest`
5151
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlIncrementalBackupListResponse`
5494
+ :param request: Request instance for ShowGaussMySqlBackupPolicy
5495
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupPolicyRequest`
5496
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupPolicyResponse`
5152
5497
  """
5153
- http_info = self._show_gauss_my_sql_incremental_backup_list_http_info(request)
5498
+ http_info = self._show_gauss_my_sql_backup_policy_http_info(request)
5154
5499
  return self._call_api(**http_info)
5155
5500
 
5156
- def show_gauss_my_sql_incremental_backup_list_async_invoker(self, request):
5157
- http_info = self._show_gauss_my_sql_incremental_backup_list_http_info(request)
5501
+ def show_gauss_my_sql_backup_policy_async_invoker(self, request):
5502
+ http_info = self._show_gauss_my_sql_backup_policy_http_info(request)
5158
5503
  return AsyncInvoker(self, http_info)
5159
5504
 
5160
- def _show_gauss_my_sql_incremental_backup_list_http_info(self, request):
5505
+ def _show_gauss_my_sql_backup_policy_http_info(self, request):
5161
5506
  http_info = {
5162
5507
  "method": "GET",
5163
- "resource_path": "/v3/{project_id}/instances/{instance_id}/incremental-backups",
5508
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/backups/policy",
5164
5509
  "request_type": request.__class__.__name__,
5165
- "response_type": "ShowGaussMySqlIncrementalBackupListResponse"
5510
+ "response_type": "ShowGaussMySqlBackupPolicyResponse"
5511
+ }
5512
+
5513
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5514
+
5515
+ cname = None
5516
+
5517
+ collection_formats = {}
5518
+
5519
+ path_params = {}
5520
+ if 'instance_id' in local_var_params:
5521
+ path_params['instance_id'] = local_var_params['instance_id']
5522
+
5523
+ query_params = []
5524
+
5525
+ header_params = {}
5526
+ if 'x_language' in local_var_params:
5527
+ header_params['X-Language'] = local_var_params['x_language']
5528
+
5529
+ form_params = {}
5530
+
5531
+ body = None
5532
+ if isinstance(request, SdkStreamRequest):
5533
+ body = request.get_file_stream()
5534
+
5535
+ response_headers = []
5536
+
5537
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5538
+ ['application/json'])
5539
+
5540
+ auth_settings = []
5541
+
5542
+ http_info["cname"] = cname
5543
+ http_info["collection_formats"] = collection_formats
5544
+ http_info["path_params"] = path_params
5545
+ http_info["query_params"] = query_params
5546
+ http_info["header_params"] = header_params
5547
+ http_info["post_params"] = form_params
5548
+ http_info["body"] = body
5549
+ http_info["response_headers"] = response_headers
5550
+
5551
+ return http_info
5552
+
5553
+ def show_gauss_my_sql_configuration_async(self, request):
5554
+ """获取参数模板详情
5555
+
5556
+ 获取指定参数模板的参数信息。
5557
+
5558
+ Please refer to HUAWEI cloud API Explorer for details.
5559
+
5560
+
5561
+ :param request: Request instance for ShowGaussMySqlConfiguration
5562
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlConfigurationRequest`
5563
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlConfigurationResponse`
5564
+ """
5565
+ http_info = self._show_gauss_my_sql_configuration_http_info(request)
5566
+ return self._call_api(**http_info)
5567
+
5568
+ def show_gauss_my_sql_configuration_async_invoker(self, request):
5569
+ http_info = self._show_gauss_my_sql_configuration_http_info(request)
5570
+ return AsyncInvoker(self, http_info)
5571
+
5572
+ def _show_gauss_my_sql_configuration_http_info(self, request):
5573
+ http_info = {
5574
+ "method": "GET",
5575
+ "resource_path": "/v3/{project_id}/configurations/{configuration_id}",
5576
+ "request_type": request.__class__.__name__,
5577
+ "response_type": "ShowGaussMySqlConfigurationResponse"
5578
+ }
5579
+
5580
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5581
+
5582
+ cname = None
5583
+
5584
+ collection_formats = {}
5585
+
5586
+ path_params = {}
5587
+ if 'configuration_id' in local_var_params:
5588
+ path_params['configuration_id'] = local_var_params['configuration_id']
5589
+
5590
+ query_params = []
5591
+
5592
+ header_params = {}
5593
+ if 'x_language' in local_var_params:
5594
+ header_params['X-Language'] = local_var_params['x_language']
5595
+
5596
+ form_params = {}
5597
+
5598
+ body = None
5599
+ if isinstance(request, SdkStreamRequest):
5600
+ body = request.get_file_stream()
5601
+
5602
+ response_headers = []
5603
+
5604
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5605
+ ['application/json'])
5606
+
5607
+ auth_settings = []
5608
+
5609
+ http_info["cname"] = cname
5610
+ http_info["collection_formats"] = collection_formats
5611
+ http_info["path_params"] = path_params
5612
+ http_info["query_params"] = query_params
5613
+ http_info["header_params"] = header_params
5614
+ http_info["post_params"] = form_params
5615
+ http_info["body"] = body
5616
+ http_info["response_headers"] = response_headers
5617
+
5618
+ return http_info
5619
+
5620
+ def show_gauss_my_sql_engine_version_async(self, request):
5621
+ """查询数据库引擎的版本
5622
+
5623
+ 获取指定数据库引擎对应的数据库版本信息。
5624
+
5625
+ Please refer to HUAWEI cloud API Explorer for details.
5626
+
5627
+
5628
+ :param request: Request instance for ShowGaussMySqlEngineVersion
5629
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlEngineVersionRequest`
5630
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlEngineVersionResponse`
5631
+ """
5632
+ http_info = self._show_gauss_my_sql_engine_version_http_info(request)
5633
+ return self._call_api(**http_info)
5634
+
5635
+ def show_gauss_my_sql_engine_version_async_invoker(self, request):
5636
+ http_info = self._show_gauss_my_sql_engine_version_http_info(request)
5637
+ return AsyncInvoker(self, http_info)
5638
+
5639
+ def _show_gauss_my_sql_engine_version_http_info(self, request):
5640
+ http_info = {
5641
+ "method": "GET",
5642
+ "resource_path": "/v3/{project_id}/datastores/{database_name}",
5643
+ "request_type": request.__class__.__name__,
5644
+ "response_type": "ShowGaussMySqlEngineVersionResponse"
5645
+ }
5646
+
5647
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5648
+
5649
+ cname = None
5650
+
5651
+ collection_formats = {}
5652
+
5653
+ path_params = {}
5654
+ if 'database_name' in local_var_params:
5655
+ path_params['database_name'] = local_var_params['database_name']
5656
+
5657
+ query_params = []
5658
+
5659
+ header_params = {}
5660
+ if 'x_language' in local_var_params:
5661
+ header_params['X-Language'] = local_var_params['x_language']
5662
+
5663
+ form_params = {}
5664
+
5665
+ body = None
5666
+ if isinstance(request, SdkStreamRequest):
5667
+ body = request.get_file_stream()
5668
+
5669
+ response_headers = []
5670
+
5671
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5672
+ ['application/json'])
5673
+
5674
+ auth_settings = []
5675
+
5676
+ http_info["cname"] = cname
5677
+ http_info["collection_formats"] = collection_formats
5678
+ http_info["path_params"] = path_params
5679
+ http_info["query_params"] = query_params
5680
+ http_info["header_params"] = header_params
5681
+ http_info["post_params"] = form_params
5682
+ http_info["body"] = body
5683
+ http_info["response_headers"] = response_headers
5684
+
5685
+ return http_info
5686
+
5687
+ def show_gauss_my_sql_flavors_async(self, request):
5688
+ """查询数据库规格
5689
+
5690
+ 获取指定数据库引擎版本对应的规格信息。
5691
+
5692
+ Please refer to HUAWEI cloud API Explorer for details.
5693
+
5694
+
5695
+ :param request: Request instance for ShowGaussMySqlFlavors
5696
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlFlavorsRequest`
5697
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlFlavorsResponse`
5698
+ """
5699
+ http_info = self._show_gauss_my_sql_flavors_http_info(request)
5700
+ return self._call_api(**http_info)
5701
+
5702
+ def show_gauss_my_sql_flavors_async_invoker(self, request):
5703
+ http_info = self._show_gauss_my_sql_flavors_http_info(request)
5704
+ return AsyncInvoker(self, http_info)
5705
+
5706
+ def _show_gauss_my_sql_flavors_http_info(self, request):
5707
+ http_info = {
5708
+ "method": "GET",
5709
+ "resource_path": "/v3/{project_id}/flavors/{database_name}",
5710
+ "request_type": request.__class__.__name__,
5711
+ "response_type": "ShowGaussMySqlFlavorsResponse"
5712
+ }
5713
+
5714
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5715
+
5716
+ cname = None
5717
+
5718
+ collection_formats = {}
5719
+
5720
+ path_params = {}
5721
+ if 'database_name' in local_var_params:
5722
+ path_params['database_name'] = local_var_params['database_name']
5723
+
5724
+ query_params = []
5725
+ if 'version_name' in local_var_params:
5726
+ query_params.append(('version_name', local_var_params['version_name']))
5727
+ if 'availability_zone_mode' in local_var_params:
5728
+ query_params.append(('availability_zone_mode', local_var_params['availability_zone_mode']))
5729
+ if 'spec_code' in local_var_params:
5730
+ query_params.append(('spec_code', local_var_params['spec_code']))
5731
+
5732
+ header_params = {}
5733
+ if 'x_language' in local_var_params:
5734
+ header_params['X-Language'] = local_var_params['x_language']
5735
+
5736
+ form_params = {}
5737
+
5738
+ body = None
5739
+ if isinstance(request, SdkStreamRequest):
5740
+ body = request.get_file_stream()
5741
+
5742
+ response_headers = []
5743
+
5744
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5745
+ ['application/json'])
5746
+
5747
+ auth_settings = []
5748
+
5749
+ http_info["cname"] = cname
5750
+ http_info["collection_formats"] = collection_formats
5751
+ http_info["path_params"] = path_params
5752
+ http_info["query_params"] = query_params
5753
+ http_info["header_params"] = header_params
5754
+ http_info["post_params"] = form_params
5755
+ http_info["body"] = body
5756
+ http_info["response_headers"] = response_headers
5757
+
5758
+ return http_info
5759
+
5760
+ def show_gauss_my_sql_incremental_backup_list_async(self, request):
5761
+ """查询增量备份列表
5762
+
5763
+ 查询增量备份列表。
5764
+
5765
+ Please refer to HUAWEI cloud API Explorer for details.
5766
+
5767
+
5768
+ :param request: Request instance for ShowGaussMySqlIncrementalBackupList
5769
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlIncrementalBackupListRequest`
5770
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlIncrementalBackupListResponse`
5771
+ """
5772
+ http_info = self._show_gauss_my_sql_incremental_backup_list_http_info(request)
5773
+ return self._call_api(**http_info)
5774
+
5775
+ def show_gauss_my_sql_incremental_backup_list_async_invoker(self, request):
5776
+ http_info = self._show_gauss_my_sql_incremental_backup_list_http_info(request)
5777
+ return AsyncInvoker(self, http_info)
5778
+
5779
+ def _show_gauss_my_sql_incremental_backup_list_http_info(self, request):
5780
+ http_info = {
5781
+ "method": "GET",
5782
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/incremental-backups",
5783
+ "request_type": request.__class__.__name__,
5784
+ "response_type": "ShowGaussMySqlIncrementalBackupListResponse"
5785
+ }
5786
+
5787
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5788
+
5789
+ cname = None
5790
+
5791
+ collection_formats = {}
5792
+
5793
+ path_params = {}
5794
+ if 'instance_id' in local_var_params:
5795
+ path_params['instance_id'] = local_var_params['instance_id']
5796
+
5797
+ query_params = []
5798
+ if 'offset' in local_var_params:
5799
+ query_params.append(('offset', local_var_params['offset']))
5800
+ if 'limit' in local_var_params:
5801
+ query_params.append(('limit', local_var_params['limit']))
5802
+ if 'begin_time' in local_var_params:
5803
+ query_params.append(('begin_time', local_var_params['begin_time']))
5804
+ if 'end_time' in local_var_params:
5805
+ query_params.append(('end_time', local_var_params['end_time']))
5806
+
5807
+ header_params = {}
5808
+ if 'x_language' in local_var_params:
5809
+ header_params['X-Language'] = local_var_params['x_language']
5810
+
5811
+ form_params = {}
5812
+
5813
+ body = None
5814
+ if isinstance(request, SdkStreamRequest):
5815
+ body = request.get_file_stream()
5816
+
5817
+ response_headers = []
5818
+
5819
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5820
+ ['application/json'])
5821
+
5822
+ auth_settings = []
5823
+
5824
+ http_info["cname"] = cname
5825
+ http_info["collection_formats"] = collection_formats
5826
+ http_info["path_params"] = path_params
5827
+ http_info["query_params"] = query_params
5828
+ http_info["header_params"] = header_params
5829
+ http_info["post_params"] = form_params
5830
+ http_info["body"] = body
5831
+ http_info["response_headers"] = response_headers
5832
+
5833
+ return http_info
5834
+
5835
+ def show_gauss_my_sql_instance_info_async(self, request):
5836
+ """查询实例详情信息
5837
+
5838
+ 查询实例详情信息。
5839
+
5840
+ Please refer to HUAWEI cloud API Explorer for details.
5841
+
5842
+
5843
+ :param request: Request instance for ShowGaussMySqlInstanceInfo
5844
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoRequest`
5845
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoResponse`
5846
+ """
5847
+ http_info = self._show_gauss_my_sql_instance_info_http_info(request)
5848
+ return self._call_api(**http_info)
5849
+
5850
+ def show_gauss_my_sql_instance_info_async_invoker(self, request):
5851
+ http_info = self._show_gauss_my_sql_instance_info_http_info(request)
5852
+ return AsyncInvoker(self, http_info)
5853
+
5854
+ def _show_gauss_my_sql_instance_info_http_info(self, request):
5855
+ http_info = {
5856
+ "method": "GET",
5857
+ "resource_path": "/v3/{project_id}/instances/{instance_id}",
5858
+ "request_type": request.__class__.__name__,
5859
+ "response_type": "ShowGaussMySqlInstanceInfoResponse"
5860
+ }
5861
+
5862
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5863
+
5864
+ cname = None
5865
+
5866
+ collection_formats = {}
5867
+
5868
+ path_params = {}
5869
+ if 'instance_id' in local_var_params:
5870
+ path_params['instance_id'] = local_var_params['instance_id']
5871
+
5872
+ query_params = []
5873
+
5874
+ header_params = {}
5875
+ if 'x_language' in local_var_params:
5876
+ header_params['X-Language'] = local_var_params['x_language']
5877
+
5878
+ form_params = {}
5879
+
5880
+ body = None
5881
+ if isinstance(request, SdkStreamRequest):
5882
+ body = request.get_file_stream()
5883
+
5884
+ response_headers = []
5885
+
5886
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5887
+ ['application/json'])
5888
+
5889
+ auth_settings = []
5890
+
5891
+ http_info["cname"] = cname
5892
+ http_info["collection_formats"] = collection_formats
5893
+ http_info["path_params"] = path_params
5894
+ http_info["query_params"] = query_params
5895
+ http_info["header_params"] = header_params
5896
+ http_info["post_params"] = form_params
5897
+ http_info["body"] = body
5898
+ http_info["response_headers"] = response_headers
5899
+
5900
+ return http_info
5901
+
5902
+ def show_gauss_my_sql_instance_info_unify_status_async(self, request):
5903
+ """查询实例详情信息
5904
+
5905
+ 查询实例详情信息。
5906
+
5907
+ Please refer to HUAWEI cloud API Explorer for details.
5908
+
5909
+
5910
+ :param request: Request instance for ShowGaussMySqlInstanceInfoUnifyStatus
5911
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoUnifyStatusRequest`
5912
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoUnifyStatusResponse`
5913
+ """
5914
+ http_info = self._show_gauss_my_sql_instance_info_unify_status_http_info(request)
5915
+ return self._call_api(**http_info)
5916
+
5917
+ def show_gauss_my_sql_instance_info_unify_status_async_invoker(self, request):
5918
+ http_info = self._show_gauss_my_sql_instance_info_unify_status_http_info(request)
5919
+ return AsyncInvoker(self, http_info)
5920
+
5921
+ def _show_gauss_my_sql_instance_info_unify_status_http_info(self, request):
5922
+ http_info = {
5923
+ "method": "GET",
5924
+ "resource_path": "/v3.1/{project_id}/instances/{instance_id}",
5925
+ "request_type": request.__class__.__name__,
5926
+ "response_type": "ShowGaussMySqlInstanceInfoUnifyStatusResponse"
5927
+ }
5928
+
5929
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5930
+
5931
+ cname = None
5932
+
5933
+ collection_formats = {}
5934
+
5935
+ path_params = {}
5936
+ if 'instance_id' in local_var_params:
5937
+ path_params['instance_id'] = local_var_params['instance_id']
5938
+
5939
+ query_params = []
5940
+
5941
+ header_params = {}
5942
+ if 'x_language' in local_var_params:
5943
+ header_params['X-Language'] = local_var_params['x_language']
5944
+
5945
+ form_params = {}
5946
+
5947
+ body = None
5948
+ if isinstance(request, SdkStreamRequest):
5949
+ body = request.get_file_stream()
5950
+
5951
+ response_headers = []
5952
+
5953
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5954
+ ['application/json'])
5955
+
5956
+ auth_settings = []
5957
+
5958
+ http_info["cname"] = cname
5959
+ http_info["collection_formats"] = collection_formats
5960
+ http_info["path_params"] = path_params
5961
+ http_info["query_params"] = query_params
5962
+ http_info["header_params"] = header_params
5963
+ http_info["post_params"] = form_params
5964
+ http_info["body"] = body
5965
+ http_info["response_headers"] = response_headers
5966
+
5967
+ return http_info
5968
+
5969
+ def show_gauss_my_sql_job_info_async(self, request):
5970
+ """获取指定ID的任务信息
5971
+
5972
+ 获取GaussDB(for MySQL)任务中心指定ID的任务信息。
5973
+
5974
+ Please refer to HUAWEI cloud API Explorer for details.
5975
+
5976
+
5977
+ :param request: Request instance for ShowGaussMySqlJobInfo
5978
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlJobInfoRequest`
5979
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlJobInfoResponse`
5980
+ """
5981
+ http_info = self._show_gauss_my_sql_job_info_http_info(request)
5982
+ return self._call_api(**http_info)
5983
+
5984
+ def show_gauss_my_sql_job_info_async_invoker(self, request):
5985
+ http_info = self._show_gauss_my_sql_job_info_http_info(request)
5986
+ return AsyncInvoker(self, http_info)
5987
+
5988
+ def _show_gauss_my_sql_job_info_http_info(self, request):
5989
+ http_info = {
5990
+ "method": "GET",
5991
+ "resource_path": "/v3/{project_id}/jobs",
5992
+ "request_type": request.__class__.__name__,
5993
+ "response_type": "ShowGaussMySqlJobInfoResponse"
5994
+ }
5995
+
5996
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5997
+
5998
+ cname = None
5999
+
6000
+ collection_formats = {}
6001
+
6002
+ path_params = {}
6003
+
6004
+ query_params = []
6005
+ if 'id' in local_var_params:
6006
+ query_params.append(('id', local_var_params['id']))
6007
+
6008
+ header_params = {}
6009
+ if 'x_language' in local_var_params:
6010
+ header_params['X-Language'] = local_var_params['x_language']
6011
+
6012
+ form_params = {}
6013
+
6014
+ body = None
6015
+ if isinstance(request, SdkStreamRequest):
6016
+ body = request.get_file_stream()
6017
+
6018
+ response_headers = []
6019
+
6020
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6021
+ ['application/json'])
6022
+
6023
+ auth_settings = []
6024
+
6025
+ http_info["cname"] = cname
6026
+ http_info["collection_formats"] = collection_formats
6027
+ http_info["path_params"] = path_params
6028
+ http_info["query_params"] = query_params
6029
+ http_info["header_params"] = header_params
6030
+ http_info["post_params"] = form_params
6031
+ http_info["body"] = body
6032
+ http_info["response_headers"] = response_headers
6033
+
6034
+ return http_info
6035
+
6036
+ def show_gauss_my_sql_project_quotas_async(self, request):
6037
+ """查询租户的实例配额
6038
+
6039
+ 获取指定租户的资源配额。
6040
+
6041
+ Please refer to HUAWEI cloud API Explorer for details.
6042
+
6043
+
6044
+ :param request: Request instance for ShowGaussMySqlProjectQuotas
6045
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProjectQuotasRequest`
6046
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProjectQuotasResponse`
6047
+ """
6048
+ http_info = self._show_gauss_my_sql_project_quotas_http_info(request)
6049
+ return self._call_api(**http_info)
6050
+
6051
+ def show_gauss_my_sql_project_quotas_async_invoker(self, request):
6052
+ http_info = self._show_gauss_my_sql_project_quotas_http_info(request)
6053
+ return AsyncInvoker(self, http_info)
6054
+
6055
+ def _show_gauss_my_sql_project_quotas_http_info(self, request):
6056
+ http_info = {
6057
+ "method": "GET",
6058
+ "resource_path": "/v3/{project_id}/project-quotas",
6059
+ "request_type": request.__class__.__name__,
6060
+ "response_type": "ShowGaussMySqlProjectQuotasResponse"
6061
+ }
6062
+
6063
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6064
+
6065
+ cname = None
6066
+
6067
+ collection_formats = {}
6068
+
6069
+ path_params = {}
6070
+
6071
+ query_params = []
6072
+ if 'type' in local_var_params:
6073
+ query_params.append(('type', local_var_params['type']))
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
+
6103
+ def show_gauss_my_sql_proxy_flavors_async(self, request):
6104
+ """查询数据库代理规格信息
6105
+
6106
+ 查询数据库代理规格信息。
6107
+
6108
+ Please refer to HUAWEI cloud API Explorer for details.
6109
+
6110
+
6111
+ :param request: Request instance for ShowGaussMySqlProxyFlavors
6112
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyFlavorsRequest`
6113
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyFlavorsResponse`
6114
+ """
6115
+ http_info = self._show_gauss_my_sql_proxy_flavors_http_info(request)
6116
+ return self._call_api(**http_info)
6117
+
6118
+ def show_gauss_my_sql_proxy_flavors_async_invoker(self, request):
6119
+ http_info = self._show_gauss_my_sql_proxy_flavors_http_info(request)
6120
+ return AsyncInvoker(self, http_info)
6121
+
6122
+ def _show_gauss_my_sql_proxy_flavors_http_info(self, request):
6123
+ http_info = {
6124
+ "method": "GET",
6125
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/flavors",
6126
+ "request_type": request.__class__.__name__,
6127
+ "response_type": "ShowGaussMySqlProxyFlavorsResponse"
6128
+ }
6129
+
6130
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6131
+
6132
+ cname = None
6133
+
6134
+ collection_formats = {}
6135
+
6136
+ path_params = {}
6137
+ if 'instance_id' in local_var_params:
6138
+ path_params['instance_id'] = local_var_params['instance_id']
6139
+
6140
+ query_params = []
6141
+
6142
+ header_params = {}
6143
+ if 'x_language' in local_var_params:
6144
+ header_params['X-Language'] = local_var_params['x_language']
6145
+
6146
+ form_params = {}
6147
+
6148
+ body = None
6149
+ if isinstance(request, SdkStreamRequest):
6150
+ body = request.get_file_stream()
6151
+
6152
+ response_headers = []
6153
+
6154
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6155
+ ['application/json'])
6156
+
6157
+ auth_settings = []
6158
+
6159
+ http_info["cname"] = cname
6160
+ http_info["collection_formats"] = collection_formats
6161
+ http_info["path_params"] = path_params
6162
+ http_info["query_params"] = query_params
6163
+ http_info["header_params"] = header_params
6164
+ http_info["post_params"] = form_params
6165
+ http_info["body"] = body
6166
+ http_info["response_headers"] = response_headers
6167
+
6168
+ return http_info
6169
+
6170
+ def show_gauss_my_sql_proxy_list_async(self, request):
6171
+ """查询数据库代理信息列表
6172
+
6173
+ 查询数据库代理信息列表。
6174
+
6175
+ Please refer to HUAWEI cloud API Explorer for details.
6176
+
6177
+
6178
+ :param request: Request instance for ShowGaussMySqlProxyList
6179
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyListRequest`
6180
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyListResponse`
6181
+ """
6182
+ http_info = self._show_gauss_my_sql_proxy_list_http_info(request)
6183
+ return self._call_api(**http_info)
6184
+
6185
+ def show_gauss_my_sql_proxy_list_async_invoker(self, request):
6186
+ http_info = self._show_gauss_my_sql_proxy_list_http_info(request)
6187
+ return AsyncInvoker(self, http_info)
6188
+
6189
+ def _show_gauss_my_sql_proxy_list_http_info(self, request):
6190
+ http_info = {
6191
+ "method": "GET",
6192
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/proxies",
6193
+ "request_type": request.__class__.__name__,
6194
+ "response_type": "ShowGaussMySqlProxyListResponse"
6195
+ }
6196
+
6197
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6198
+
6199
+ cname = None
6200
+
6201
+ collection_formats = {}
6202
+
6203
+ path_params = {}
6204
+ if 'instance_id' in local_var_params:
6205
+ path_params['instance_id'] = local_var_params['instance_id']
6206
+
6207
+ query_params = []
6208
+ if 'offset' in local_var_params:
6209
+ query_params.append(('offset', local_var_params['offset']))
6210
+ if 'limit' in local_var_params:
6211
+ query_params.append(('limit', local_var_params['limit']))
6212
+
6213
+ header_params = {}
6214
+ if 'x_language' in local_var_params:
6215
+ header_params['X-Language'] = local_var_params['x_language']
6216
+
6217
+ form_params = {}
6218
+
6219
+ body = None
6220
+ if isinstance(request, SdkStreamRequest):
6221
+ body = request.get_file_stream()
6222
+
6223
+ response_headers = []
6224
+
6225
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6226
+ ['application/json'])
6227
+
6228
+ auth_settings = []
6229
+
6230
+ http_info["cname"] = cname
6231
+ http_info["collection_formats"] = collection_formats
6232
+ http_info["path_params"] = path_params
6233
+ http_info["query_params"] = query_params
6234
+ http_info["header_params"] = header_params
6235
+ http_info["post_params"] = form_params
6236
+ http_info["body"] = body
6237
+ http_info["response_headers"] = response_headers
6238
+
6239
+ return http_info
6240
+
6241
+ def show_gauss_my_sql_quotas_async(self, request):
6242
+ """查询租户基于企业项目的资源配额
6243
+
6244
+ 获取指定企业项目的资源配额。
6245
+
6246
+ Please refer to HUAWEI cloud API Explorer for details.
6247
+
6248
+
6249
+ :param request: Request instance for ShowGaussMySqlQuotas
6250
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlQuotasRequest`
6251
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlQuotasResponse`
6252
+ """
6253
+ http_info = self._show_gauss_my_sql_quotas_http_info(request)
6254
+ return self._call_api(**http_info)
6255
+
6256
+ def show_gauss_my_sql_quotas_async_invoker(self, request):
6257
+ http_info = self._show_gauss_my_sql_quotas_http_info(request)
6258
+ return AsyncInvoker(self, http_info)
6259
+
6260
+ def _show_gauss_my_sql_quotas_http_info(self, request):
6261
+ http_info = {
6262
+ "method": "GET",
6263
+ "resource_path": "/v3/{project_id}/quotas",
6264
+ "request_type": request.__class__.__name__,
6265
+ "response_type": "ShowGaussMySqlQuotasResponse"
5166
6266
  }
5167
6267
 
5168
6268
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5172,18 +6272,14 @@ class GaussDBAsyncClient(Client):
5172
6272
  collection_formats = {}
5173
6273
 
5174
6274
  path_params = {}
5175
- if 'instance_id' in local_var_params:
5176
- path_params['instance_id'] = local_var_params['instance_id']
5177
6275
 
5178
6276
  query_params = []
5179
6277
  if 'offset' in local_var_params:
5180
6278
  query_params.append(('offset', local_var_params['offset']))
5181
6279
  if 'limit' in local_var_params:
5182
6280
  query_params.append(('limit', local_var_params['limit']))
5183
- if 'begin_time' in local_var_params:
5184
- query_params.append(('begin_time', local_var_params['begin_time']))
5185
- if 'end_time' in local_var_params:
5186
- query_params.append(('end_time', local_var_params['end_time']))
6281
+ if 'enterprise_project_name' in local_var_params:
6282
+ query_params.append(('enterprise_project_name', local_var_params['enterprise_project_name']))
5187
6283
 
5188
6284
  header_params = {}
5189
6285
  if 'x_language' in local_var_params:
@@ -5213,31 +6309,31 @@ class GaussDBAsyncClient(Client):
5213
6309
 
5214
6310
  return http_info
5215
6311
 
5216
- def show_gauss_my_sql_instance_info_async(self, request):
5217
- """查询实例详情信息
6312
+ def show_instance_database_version_async(self, request):
6313
+ """查询内核版本信息
5218
6314
 
5219
- 查询实例详情信息。
6315
+ 查询内核版本信息。
5220
6316
 
5221
6317
  Please refer to HUAWEI cloud API Explorer for details.
5222
6318
 
5223
6319
 
5224
- :param request: Request instance for ShowGaussMySqlInstanceInfo
5225
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoRequest`
5226
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoResponse`
6320
+ :param request: Request instance for ShowInstanceDatabaseVersion
6321
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceDatabaseVersionRequest`
6322
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceDatabaseVersionResponse`
5227
6323
  """
5228
- http_info = self._show_gauss_my_sql_instance_info_http_info(request)
6324
+ http_info = self._show_instance_database_version_http_info(request)
5229
6325
  return self._call_api(**http_info)
5230
6326
 
5231
- def show_gauss_my_sql_instance_info_async_invoker(self, request):
5232
- http_info = self._show_gauss_my_sql_instance_info_http_info(request)
6327
+ def show_instance_database_version_async_invoker(self, request):
6328
+ http_info = self._show_instance_database_version_http_info(request)
5233
6329
  return AsyncInvoker(self, http_info)
5234
6330
 
5235
- def _show_gauss_my_sql_instance_info_http_info(self, request):
6331
+ def _show_instance_database_version_http_info(self, request):
5236
6332
  http_info = {
5237
6333
  "method": "GET",
5238
- "resource_path": "/v3/{project_id}/instances/{instance_id}",
6334
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/database-version",
5239
6335
  "request_type": request.__class__.__name__,
5240
- "response_type": "ShowGaussMySqlInstanceInfoResponse"
6336
+ "response_type": "ShowInstanceDatabaseVersionResponse"
5241
6337
  }
5242
6338
 
5243
6339
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5280,31 +6376,31 @@ class GaussDBAsyncClient(Client):
5280
6376
 
5281
6377
  return http_info
5282
6378
 
5283
- def show_gauss_my_sql_instance_info_unify_status_async(self, request):
5284
- """查询实例详情信息
6379
+ def show_instance_eip_async(self, request):
6380
+ """查询弹性公网IP。
5285
6381
 
5286
- 查询实例详情信息。
6382
+ 查询弹性公网IP。
5287
6383
 
5288
6384
  Please refer to HUAWEI cloud API Explorer for details.
5289
6385
 
5290
6386
 
5291
- :param request: Request instance for ShowGaussMySqlInstanceInfoUnifyStatus
5292
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoUnifyStatusRequest`
5293
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoUnifyStatusResponse`
6387
+ :param request: Request instance for ShowInstanceEip
6388
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceEipRequest`
6389
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceEipResponse`
5294
6390
  """
5295
- http_info = self._show_gauss_my_sql_instance_info_unify_status_http_info(request)
6391
+ http_info = self._show_instance_eip_http_info(request)
5296
6392
  return self._call_api(**http_info)
5297
6393
 
5298
- def show_gauss_my_sql_instance_info_unify_status_async_invoker(self, request):
5299
- http_info = self._show_gauss_my_sql_instance_info_unify_status_http_info(request)
6394
+ def show_instance_eip_async_invoker(self, request):
6395
+ http_info = self._show_instance_eip_http_info(request)
5300
6396
  return AsyncInvoker(self, http_info)
5301
6397
 
5302
- def _show_gauss_my_sql_instance_info_unify_status_http_info(self, request):
6398
+ def _show_instance_eip_http_info(self, request):
5303
6399
  http_info = {
5304
6400
  "method": "GET",
5305
- "resource_path": "/v3.1/{project_id}/instances/{instance_id}",
6401
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/eip",
5306
6402
  "request_type": request.__class__.__name__,
5307
- "response_type": "ShowGaussMySqlInstanceInfoUnifyStatusResponse"
6403
+ "response_type": "ShowInstanceEipResponse"
5308
6404
  }
5309
6405
 
5310
6406
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5347,31 +6443,31 @@ class GaussDBAsyncClient(Client):
5347
6443
 
5348
6444
  return http_info
5349
6445
 
5350
- def show_gauss_my_sql_job_info_async(self, request):
5351
- """获取指定ID的任务信息
6446
+ def show_instance_monitor_extend_async(self, request):
6447
+ """查询实例秒级监控
5352
6448
 
5353
- 获取GaussDB(for MySQL)任务中心指定ID的任务信息。
6449
+ 查询实例秒级监控信息。
5354
6450
 
5355
6451
  Please refer to HUAWEI cloud API Explorer for details.
5356
6452
 
5357
6453
 
5358
- :param request: Request instance for ShowGaussMySqlJobInfo
5359
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlJobInfoRequest`
5360
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlJobInfoResponse`
6454
+ :param request: Request instance for ShowInstanceMonitorExtend
6455
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceMonitorExtendRequest`
6456
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceMonitorExtendResponse`
5361
6457
  """
5362
- http_info = self._show_gauss_my_sql_job_info_http_info(request)
6458
+ http_info = self._show_instance_monitor_extend_http_info(request)
5363
6459
  return self._call_api(**http_info)
5364
6460
 
5365
- def show_gauss_my_sql_job_info_async_invoker(self, request):
5366
- http_info = self._show_gauss_my_sql_job_info_http_info(request)
6461
+ def show_instance_monitor_extend_async_invoker(self, request):
6462
+ http_info = self._show_instance_monitor_extend_http_info(request)
5367
6463
  return AsyncInvoker(self, http_info)
5368
6464
 
5369
- def _show_gauss_my_sql_job_info_http_info(self, request):
6465
+ def _show_instance_monitor_extend_http_info(self, request):
5370
6466
  http_info = {
5371
6467
  "method": "GET",
5372
- "resource_path": "/v3/{project_id}/jobs",
6468
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/monitor-policy",
5373
6469
  "request_type": request.__class__.__name__,
5374
- "response_type": "ShowGaussMySqlJobInfoResponse"
6470
+ "response_type": "ShowInstanceMonitorExtendResponse"
5375
6471
  }
5376
6472
 
5377
6473
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5381,10 +6477,10 @@ class GaussDBAsyncClient(Client):
5381
6477
  collection_formats = {}
5382
6478
 
5383
6479
  path_params = {}
6480
+ if 'instance_id' in local_var_params:
6481
+ path_params['instance_id'] = local_var_params['instance_id']
5384
6482
 
5385
6483
  query_params = []
5386
- if 'id' in local_var_params:
5387
- query_params.append(('id', local_var_params['id']))
5388
6484
 
5389
6485
  header_params = {}
5390
6486
  if 'x_language' in local_var_params:
@@ -5414,31 +6510,31 @@ class GaussDBAsyncClient(Client):
5414
6510
 
5415
6511
  return http_info
5416
6512
 
5417
- def show_gauss_my_sql_project_quotas_async(self, request):
5418
- """查询租户的实例配额
6513
+ def show_intelligent_diagnosis_abnormal_count_of_instances_async(self, request):
6514
+ """获取各指标的异常实例数
5419
6515
 
5420
- 获取指定租户的资源配额。
6516
+ 获取各指标的异常实例数。
5421
6517
 
5422
6518
  Please refer to HUAWEI cloud API Explorer for details.
5423
6519
 
5424
6520
 
5425
- :param request: Request instance for ShowGaussMySqlProjectQuotas
5426
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProjectQuotasRequest`
5427
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProjectQuotasResponse`
6521
+ :param request: Request instance for ShowIntelligentDiagnosisAbnormalCountOfInstances
6522
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisAbnormalCountOfInstancesRequest`
6523
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisAbnormalCountOfInstancesResponse`
5428
6524
  """
5429
- http_info = self._show_gauss_my_sql_project_quotas_http_info(request)
6525
+ http_info = self._show_intelligent_diagnosis_abnormal_count_of_instances_http_info(request)
5430
6526
  return self._call_api(**http_info)
5431
6527
 
5432
- def show_gauss_my_sql_project_quotas_async_invoker(self, request):
5433
- http_info = self._show_gauss_my_sql_project_quotas_http_info(request)
6528
+ def show_intelligent_diagnosis_abnormal_count_of_instances_async_invoker(self, request):
6529
+ http_info = self._show_intelligent_diagnosis_abnormal_count_of_instances_http_info(request)
5434
6530
  return AsyncInvoker(self, http_info)
5435
6531
 
5436
- def _show_gauss_my_sql_project_quotas_http_info(self, request):
6532
+ def _show_intelligent_diagnosis_abnormal_count_of_instances_http_info(self, request):
5437
6533
  http_info = {
5438
6534
  "method": "GET",
5439
- "resource_path": "/v3/{project_id}/project-quotas",
6535
+ "resource_path": "/v3/{project_id}/instances/diagnosis-instance-count",
5440
6536
  "request_type": request.__class__.__name__,
5441
- "response_type": "ShowGaussMySqlProjectQuotasResponse"
6537
+ "response_type": "ShowIntelligentDiagnosisAbnormalCountOfInstancesResponse"
5442
6538
  }
5443
6539
 
5444
6540
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5450,8 +6546,6 @@ class GaussDBAsyncClient(Client):
5450
6546
  path_params = {}
5451
6547
 
5452
6548
  query_params = []
5453
- if 'type' in local_var_params:
5454
- query_params.append(('type', local_var_params['type']))
5455
6549
 
5456
6550
  header_params = {}
5457
6551
  if 'x_language' in local_var_params:
@@ -5481,31 +6575,31 @@ class GaussDBAsyncClient(Client):
5481
6575
 
5482
6576
  return http_info
5483
6577
 
5484
- def show_gauss_my_sql_proxy_flavors_async(self, request):
5485
- """查询数据库代理规格信息
6578
+ def show_intelligent_diagnosis_instance_infos_per_metric_async(self, request):
6579
+ """获取某个指标的异常实例信息
5486
6580
 
5487
- 查询数据库代理规格信息。
6581
+ 获取某个指标的异常实例信息。
5488
6582
 
5489
6583
  Please refer to HUAWEI cloud API Explorer for details.
5490
6584
 
5491
6585
 
5492
- :param request: Request instance for ShowGaussMySqlProxyFlavors
5493
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyFlavorsRequest`
5494
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyFlavorsResponse`
6586
+ :param request: Request instance for ShowIntelligentDiagnosisInstanceInfosPerMetric
6587
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisInstanceInfosPerMetricRequest`
6588
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisInstanceInfosPerMetricResponse`
5495
6589
  """
5496
- http_info = self._show_gauss_my_sql_proxy_flavors_http_info(request)
6590
+ http_info = self._show_intelligent_diagnosis_instance_infos_per_metric_http_info(request)
5497
6591
  return self._call_api(**http_info)
5498
6592
 
5499
- def show_gauss_my_sql_proxy_flavors_async_invoker(self, request):
5500
- http_info = self._show_gauss_my_sql_proxy_flavors_http_info(request)
6593
+ def show_intelligent_diagnosis_instance_infos_per_metric_async_invoker(self, request):
6594
+ http_info = self._show_intelligent_diagnosis_instance_infos_per_metric_http_info(request)
5501
6595
  return AsyncInvoker(self, http_info)
5502
6596
 
5503
- def _show_gauss_my_sql_proxy_flavors_http_info(self, request):
6597
+ def _show_intelligent_diagnosis_instance_infos_per_metric_http_info(self, request):
5504
6598
  http_info = {
5505
6599
  "method": "GET",
5506
- "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/flavors",
6600
+ "resource_path": "/v3/{project_id}/instances/diagnosis-instance-infos",
5507
6601
  "request_type": request.__class__.__name__,
5508
- "response_type": "ShowGaussMySqlProxyFlavorsResponse"
6602
+ "response_type": "ShowIntelligentDiagnosisInstanceInfosPerMetricResponse"
5509
6603
  }
5510
6604
 
5511
6605
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5515,10 +6609,14 @@ class GaussDBAsyncClient(Client):
5515
6609
  collection_formats = {}
5516
6610
 
5517
6611
  path_params = {}
5518
- if 'instance_id' in local_var_params:
5519
- path_params['instance_id'] = local_var_params['instance_id']
5520
6612
 
5521
6613
  query_params = []
6614
+ if 'metric_name' in local_var_params:
6615
+ query_params.append(('metric_name', local_var_params['metric_name']))
6616
+ if 'offset' in local_var_params:
6617
+ query_params.append(('offset', local_var_params['offset']))
6618
+ if 'limit' in local_var_params:
6619
+ query_params.append(('limit', local_var_params['limit']))
5522
6620
 
5523
6621
  header_params = {}
5524
6622
  if 'x_language' in local_var_params:
@@ -5548,31 +6646,31 @@ class GaussDBAsyncClient(Client):
5548
6646
 
5549
6647
  return http_info
5550
6648
 
5551
- def show_gauss_my_sql_proxy_list_async(self, request):
5552
- """查询数据库代理信息列表
6649
+ def show_lts_configs_async(self, request):
6650
+ """查询实例LTS日志配置列表
5553
6651
 
5554
- 查询数据库代理信息列表。
6652
+ 查询实例LTS日志配置列表
5555
6653
 
5556
6654
  Please refer to HUAWEI cloud API Explorer for details.
5557
6655
 
5558
6656
 
5559
- :param request: Request instance for ShowGaussMySqlProxyList
5560
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyListRequest`
5561
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyListResponse`
6657
+ :param request: Request instance for ShowLtsConfigs
6658
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowLtsConfigsRequest`
6659
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowLtsConfigsResponse`
5562
6660
  """
5563
- http_info = self._show_gauss_my_sql_proxy_list_http_info(request)
6661
+ http_info = self._show_lts_configs_http_info(request)
5564
6662
  return self._call_api(**http_info)
5565
6663
 
5566
- def show_gauss_my_sql_proxy_list_async_invoker(self, request):
5567
- http_info = self._show_gauss_my_sql_proxy_list_http_info(request)
6664
+ def show_lts_configs_async_invoker(self, request):
6665
+ http_info = self._show_lts_configs_http_info(request)
5568
6666
  return AsyncInvoker(self, http_info)
5569
6667
 
5570
- def _show_gauss_my_sql_proxy_list_http_info(self, request):
6668
+ def _show_lts_configs_http_info(self, request):
5571
6669
  http_info = {
5572
6670
  "method": "GET",
5573
- "resource_path": "/v3/{project_id}/instances/{instance_id}/proxies",
6671
+ "resource_path": "/v3/{project_id}/logs/lts-configs",
5574
6672
  "request_type": request.__class__.__name__,
5575
- "response_type": "ShowGaussMySqlProxyListResponse"
6673
+ "response_type": "ShowLtsConfigsResponse"
5576
6674
  }
5577
6675
 
5578
6676
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5582,14 +6680,18 @@ class GaussDBAsyncClient(Client):
5582
6680
  collection_formats = {}
5583
6681
 
5584
6682
  path_params = {}
5585
- if 'instance_id' in local_var_params:
5586
- path_params['instance_id'] = local_var_params['instance_id']
5587
6683
 
5588
6684
  query_params = []
5589
- if 'offset' in local_var_params:
5590
- query_params.append(('offset', local_var_params['offset']))
6685
+ if 'enterprise_project_id' in local_var_params:
6686
+ query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
6687
+ if 'instance_id' in local_var_params:
6688
+ query_params.append(('instance_id', local_var_params['instance_id']))
6689
+ if 'instance_name' in local_var_params:
6690
+ query_params.append(('instance_name', local_var_params['instance_name']))
5591
6691
  if 'limit' in local_var_params:
5592
6692
  query_params.append(('limit', local_var_params['limit']))
6693
+ if 'offset' in local_var_params:
6694
+ query_params.append(('offset', local_var_params['offset']))
5593
6695
 
5594
6696
  header_params = {}
5595
6697
  if 'x_language' in local_var_params:
@@ -5619,31 +6721,31 @@ class GaussDBAsyncClient(Client):
5619
6721
 
5620
6722
  return http_info
5621
6723
 
5622
- def show_gauss_my_sql_quotas_async(self, request):
5623
- """查询租户基于企业项目的资源配额
6724
+ def show_proxy_configurations_async(self, request):
6725
+ """查询数据库代理内核参数。
5624
6726
 
5625
- 获取指定企业项目的资源配额。
6727
+ 查询数据库代理内核参数。
5626
6728
 
5627
6729
  Please refer to HUAWEI cloud API Explorer for details.
5628
6730
 
5629
6731
 
5630
- :param request: Request instance for ShowGaussMySqlQuotas
5631
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlQuotasRequest`
5632
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlQuotasResponse`
6732
+ :param request: Request instance for ShowProxyConfigurations
6733
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowProxyConfigurationsRequest`
6734
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowProxyConfigurationsResponse`
5633
6735
  """
5634
- http_info = self._show_gauss_my_sql_quotas_http_info(request)
6736
+ http_info = self._show_proxy_configurations_http_info(request)
5635
6737
  return self._call_api(**http_info)
5636
6738
 
5637
- def show_gauss_my_sql_quotas_async_invoker(self, request):
5638
- http_info = self._show_gauss_my_sql_quotas_http_info(request)
6739
+ def show_proxy_configurations_async_invoker(self, request):
6740
+ http_info = self._show_proxy_configurations_http_info(request)
5639
6741
  return AsyncInvoker(self, http_info)
5640
6742
 
5641
- def _show_gauss_my_sql_quotas_http_info(self, request):
6743
+ def _show_proxy_configurations_http_info(self, request):
5642
6744
  http_info = {
5643
6745
  "method": "GET",
5644
- "resource_path": "/v3/{project_id}/quotas",
6746
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/configurations",
5645
6747
  "request_type": request.__class__.__name__,
5646
- "response_type": "ShowGaussMySqlQuotasResponse"
6748
+ "response_type": "ShowProxyConfigurationsResponse"
5647
6749
  }
5648
6750
 
5649
6751
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5653,14 +6755,18 @@ class GaussDBAsyncClient(Client):
5653
6755
  collection_formats = {}
5654
6756
 
5655
6757
  path_params = {}
6758
+ if 'instance_id' in local_var_params:
6759
+ path_params['instance_id'] = local_var_params['instance_id']
6760
+ if 'proxy_id' in local_var_params:
6761
+ path_params['proxy_id'] = local_var_params['proxy_id']
5656
6762
 
5657
6763
  query_params = []
5658
- if 'offset' in local_var_params:
5659
- query_params.append(('offset', local_var_params['offset']))
5660
6764
  if 'limit' in local_var_params:
5661
6765
  query_params.append(('limit', local_var_params['limit']))
5662
- if 'enterprise_project_name' in local_var_params:
5663
- query_params.append(('enterprise_project_name', local_var_params['enterprise_project_name']))
6766
+ if 'offset' in local_var_params:
6767
+ query_params.append(('offset', local_var_params['offset']))
6768
+ if 'name' in local_var_params:
6769
+ query_params.append(('name', local_var_params['name']))
5664
6770
 
5665
6771
  header_params = {}
5666
6772
  if 'x_language' in local_var_params:
@@ -5690,31 +6796,31 @@ class GaussDBAsyncClient(Client):
5690
6796
 
5691
6797
  return http_info
5692
6798
 
5693
- def show_instance_database_version_async(self, request):
5694
- """查询内核版本信息
6799
+ def show_proxy_ipgroup_async(self, request):
6800
+ """查询代理实例访问控制
5695
6801
 
5696
- 查询内核版本信息。
6802
+ 查询代理实例访问控制
5697
6803
 
5698
6804
  Please refer to HUAWEI cloud API Explorer for details.
5699
6805
 
5700
6806
 
5701
- :param request: Request instance for ShowInstanceDatabaseVersion
5702
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceDatabaseVersionRequest`
5703
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceDatabaseVersionResponse`
6807
+ :param request: Request instance for ShowProxyIpgroup
6808
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowProxyIpgroupRequest`
6809
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowProxyIpgroupResponse`
5704
6810
  """
5705
- http_info = self._show_instance_database_version_http_info(request)
6811
+ http_info = self._show_proxy_ipgroup_http_info(request)
5706
6812
  return self._call_api(**http_info)
5707
6813
 
5708
- def show_instance_database_version_async_invoker(self, request):
5709
- http_info = self._show_instance_database_version_http_info(request)
6814
+ def show_proxy_ipgroup_async_invoker(self, request):
6815
+ http_info = self._show_proxy_ipgroup_http_info(request)
5710
6816
  return AsyncInvoker(self, http_info)
5711
6817
 
5712
- def _show_instance_database_version_http_info(self, request):
6818
+ def _show_proxy_ipgroup_http_info(self, request):
5713
6819
  http_info = {
5714
6820
  "method": "GET",
5715
- "resource_path": "/v3/{project_id}/instances/{instance_id}/database-version",
6821
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/ipgroup",
5716
6822
  "request_type": request.__class__.__name__,
5717
- "response_type": "ShowInstanceDatabaseVersionResponse"
6823
+ "response_type": "ShowProxyIpgroupResponse"
5718
6824
  }
5719
6825
 
5720
6826
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5726,6 +6832,8 @@ class GaussDBAsyncClient(Client):
5726
6832
  path_params = {}
5727
6833
  if 'instance_id' in local_var_params:
5728
6834
  path_params['instance_id'] = local_var_params['instance_id']
6835
+ if 'proxy_id' in local_var_params:
6836
+ path_params['proxy_id'] = local_var_params['proxy_id']
5729
6837
 
5730
6838
  query_params = []
5731
6839
 
@@ -5757,31 +6865,31 @@ class GaussDBAsyncClient(Client):
5757
6865
 
5758
6866
  return http_info
5759
6867
 
5760
- def show_instance_monitor_extend_async(self, request):
5761
- """查询实例秒级监控
6868
+ def show_proxy_version_async(self, request):
6869
+ """查询代理实例小版本
5762
6870
 
5763
- 查询实例秒级监控信息。
6871
+ 查询代理实例小版本
5764
6872
 
5765
6873
  Please refer to HUAWEI cloud API Explorer for details.
5766
6874
 
5767
6875
 
5768
- :param request: Request instance for ShowInstanceMonitorExtend
5769
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceMonitorExtendRequest`
5770
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceMonitorExtendResponse`
6876
+ :param request: Request instance for ShowProxyVersion
6877
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowProxyVersionRequest`
6878
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowProxyVersionResponse`
5771
6879
  """
5772
- http_info = self._show_instance_monitor_extend_http_info(request)
6880
+ http_info = self._show_proxy_version_http_info(request)
5773
6881
  return self._call_api(**http_info)
5774
6882
 
5775
- def show_instance_monitor_extend_async_invoker(self, request):
5776
- http_info = self._show_instance_monitor_extend_http_info(request)
6883
+ def show_proxy_version_async_invoker(self, request):
6884
+ http_info = self._show_proxy_version_http_info(request)
5777
6885
  return AsyncInvoker(self, http_info)
5778
6886
 
5779
- def _show_instance_monitor_extend_http_info(self, request):
6887
+ def _show_proxy_version_http_info(self, request):
5780
6888
  http_info = {
5781
6889
  "method": "GET",
5782
- "resource_path": "/v3/{project_id}/instances/{instance_id}/monitor-policy",
6890
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/{engine_name}/proxy-version",
5783
6891
  "request_type": request.__class__.__name__,
5784
- "response_type": "ShowInstanceMonitorExtendResponse"
6892
+ "response_type": "ShowProxyVersionResponse"
5785
6893
  }
5786
6894
 
5787
6895
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5793,6 +6901,10 @@ class GaussDBAsyncClient(Client):
5793
6901
  path_params = {}
5794
6902
  if 'instance_id' in local_var_params:
5795
6903
  path_params['instance_id'] = local_var_params['instance_id']
6904
+ if 'engine_name' in local_var_params:
6905
+ path_params['engine_name'] = local_var_params['engine_name']
6906
+ if 'proxy_id' in local_var_params:
6907
+ path_params['proxy_id'] = local_var_params['proxy_id']
5796
6908
 
5797
6909
  query_params = []
5798
6910
 
@@ -5824,31 +6936,31 @@ class GaussDBAsyncClient(Client):
5824
6936
 
5825
6937
  return http_info
5826
6938
 
5827
- def show_intelligent_diagnosis_abnormal_count_of_instances_async(self, request):
5828
- """获取各指标的异常实例数
6939
+ def show_recycle_policy_async(self, request):
6940
+ """查询回收站策略
5829
6941
 
5830
- 获取各指标的异常实例数。
6942
+ 查询回收站策略
5831
6943
 
5832
6944
  Please refer to HUAWEI cloud API Explorer for details.
5833
6945
 
5834
6946
 
5835
- :param request: Request instance for ShowIntelligentDiagnosisAbnormalCountOfInstances
5836
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisAbnormalCountOfInstancesRequest`
5837
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisAbnormalCountOfInstancesResponse`
6947
+ :param request: Request instance for ShowRecyclePolicy
6948
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowRecyclePolicyRequest`
6949
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowRecyclePolicyResponse`
5838
6950
  """
5839
- http_info = self._show_intelligent_diagnosis_abnormal_count_of_instances_http_info(request)
6951
+ http_info = self._show_recycle_policy_http_info(request)
5840
6952
  return self._call_api(**http_info)
5841
6953
 
5842
- def show_intelligent_diagnosis_abnormal_count_of_instances_async_invoker(self, request):
5843
- http_info = self._show_intelligent_diagnosis_abnormal_count_of_instances_http_info(request)
6954
+ def show_recycle_policy_async_invoker(self, request):
6955
+ http_info = self._show_recycle_policy_http_info(request)
5844
6956
  return AsyncInvoker(self, http_info)
5845
6957
 
5846
- def _show_intelligent_diagnosis_abnormal_count_of_instances_http_info(self, request):
6958
+ def _show_recycle_policy_http_info(self, request):
5847
6959
  http_info = {
5848
6960
  "method": "GET",
5849
- "resource_path": "/v3/{project_id}/instances/diagnosis-instance-count",
6961
+ "resource_path": "/v3/{project_id}/instances/recycle-policy",
5850
6962
  "request_type": request.__class__.__name__,
5851
- "response_type": "ShowIntelligentDiagnosisAbnormalCountOfInstancesResponse"
6963
+ "response_type": "ShowRecyclePolicyResponse"
5852
6964
  }
5853
6965
 
5854
6966
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5889,31 +7001,31 @@ class GaussDBAsyncClient(Client):
5889
7001
 
5890
7002
  return http_info
5891
7003
 
5892
- def show_intelligent_diagnosis_instance_infos_per_metric_async(self, request):
5893
- """获取某个指标的异常实例信息
7004
+ def show_restore_tables_async(self, request):
7005
+ """查询表级时间点恢复可选表
5894
7006
 
5895
- 获取某个指标的异常实例信息。
7007
+ 查询表级时间点恢复可选表。
5896
7008
 
5897
7009
  Please refer to HUAWEI cloud API Explorer for details.
5898
7010
 
5899
7011
 
5900
- :param request: Request instance for ShowIntelligentDiagnosisInstanceInfosPerMetric
5901
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisInstanceInfosPerMetricRequest`
5902
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisInstanceInfosPerMetricResponse`
7012
+ :param request: Request instance for ShowRestoreTables
7013
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreTablesRequest`
7014
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreTablesResponse`
5903
7015
  """
5904
- http_info = self._show_intelligent_diagnosis_instance_infos_per_metric_http_info(request)
7016
+ http_info = self._show_restore_tables_http_info(request)
5905
7017
  return self._call_api(**http_info)
5906
7018
 
5907
- def show_intelligent_diagnosis_instance_infos_per_metric_async_invoker(self, request):
5908
- http_info = self._show_intelligent_diagnosis_instance_infos_per_metric_http_info(request)
7019
+ def show_restore_tables_async_invoker(self, request):
7020
+ http_info = self._show_restore_tables_http_info(request)
5909
7021
  return AsyncInvoker(self, http_info)
5910
7022
 
5911
- def _show_intelligent_diagnosis_instance_infos_per_metric_http_info(self, request):
7023
+ def _show_restore_tables_http_info(self, request):
5912
7024
  http_info = {
5913
7025
  "method": "GET",
5914
- "resource_path": "/v3/{project_id}/instances/diagnosis-instance-infos",
7026
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/backups/restore/tables",
5915
7027
  "request_type": request.__class__.__name__,
5916
- "response_type": "ShowIntelligentDiagnosisInstanceInfosPerMetricResponse"
7028
+ "response_type": "ShowRestoreTablesResponse"
5917
7029
  }
5918
7030
 
5919
7031
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5923,14 +7035,18 @@ class GaussDBAsyncClient(Client):
5923
7035
  collection_formats = {}
5924
7036
 
5925
7037
  path_params = {}
7038
+ if 'instance_id' in local_var_params:
7039
+ path_params['instance_id'] = local_var_params['instance_id']
5926
7040
 
5927
7041
  query_params = []
5928
- if 'metric_name' in local_var_params:
5929
- query_params.append(('metric_name', local_var_params['metric_name']))
5930
- if 'offset' in local_var_params:
5931
- query_params.append(('offset', local_var_params['offset']))
5932
- if 'limit' in local_var_params:
5933
- query_params.append(('limit', local_var_params['limit']))
7042
+ if 'restore_time' in local_var_params:
7043
+ query_params.append(('restore_time', local_var_params['restore_time']))
7044
+ if 'last_table_info' in local_var_params:
7045
+ query_params.append(('last_table_info', local_var_params['last_table_info']))
7046
+ if 'database_name' in local_var_params:
7047
+ query_params.append(('database_name', local_var_params['database_name']))
7048
+ if 'table_name' in local_var_params:
7049
+ query_params.append(('table_name', local_var_params['table_name']))
5934
7050
 
5935
7051
  header_params = {}
5936
7052
  if 'x_language' in local_var_params:
@@ -5960,31 +7076,31 @@ class GaussDBAsyncClient(Client):
5960
7076
 
5961
7077
  return http_info
5962
7078
 
5963
- def show_restore_tables_async(self, request):
5964
- """查询表级时间点恢复可选表
7079
+ def show_slowlog_sensitive_status_async(self, request):
7080
+ """查询慢日志脱敏状态
5965
7081
 
5966
- 查询表级时间点恢复可选表。
7082
+ 查询慢日志脱敏状态
5967
7083
 
5968
7084
  Please refer to HUAWEI cloud API Explorer for details.
5969
7085
 
5970
7086
 
5971
- :param request: Request instance for ShowRestoreTables
5972
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreTablesRequest`
5973
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreTablesResponse`
7087
+ :param request: Request instance for ShowSlowlogSensitiveStatus
7088
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowSlowlogSensitiveStatusRequest`
7089
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowSlowlogSensitiveStatusResponse`
5974
7090
  """
5975
- http_info = self._show_restore_tables_http_info(request)
7091
+ http_info = self._show_slowlog_sensitive_status_http_info(request)
5976
7092
  return self._call_api(**http_info)
5977
7093
 
5978
- def show_restore_tables_async_invoker(self, request):
5979
- http_info = self._show_restore_tables_http_info(request)
7094
+ def show_slowlog_sensitive_status_async_invoker(self, request):
7095
+ http_info = self._show_slowlog_sensitive_status_http_info(request)
5980
7096
  return AsyncInvoker(self, http_info)
5981
7097
 
5982
- def _show_restore_tables_http_info(self, request):
7098
+ def _show_slowlog_sensitive_status_http_info(self, request):
5983
7099
  http_info = {
5984
7100
  "method": "GET",
5985
- "resource_path": "/v3/{project_id}/instances/{instance_id}/backups/restore/tables",
7101
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/slowlog/query",
5986
7102
  "request_type": request.__class__.__name__,
5987
- "response_type": "ShowRestoreTablesResponse"
7103
+ "response_type": "ShowSlowlogSensitiveStatusResponse"
5988
7104
  }
5989
7105
 
5990
7106
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5998,14 +7114,6 @@ class GaussDBAsyncClient(Client):
5998
7114
  path_params['instance_id'] = local_var_params['instance_id']
5999
7115
 
6000
7116
  query_params = []
6001
- if 'restore_time' in local_var_params:
6002
- query_params.append(('restore_time', local_var_params['restore_time']))
6003
- if 'last_table_info' in local_var_params:
6004
- query_params.append(('last_table_info', local_var_params['last_table_info']))
6005
- if 'database_name' in local_var_params:
6006
- query_params.append(('database_name', local_var_params['database_name']))
6007
- if 'table_name' in local_var_params:
6008
- query_params.append(('table_name', local_var_params['table_name']))
6009
7117
 
6010
7118
  header_params = {}
6011
7119
  if 'x_language' in local_var_params:
@@ -7700,6 +8808,77 @@ class GaussDBAsyncClient(Client):
7700
8808
 
7701
8809
  return http_info
7702
8810
 
8811
+ def update_proxy_name_async(self, request):
8812
+ """修改代理实例名称
8813
+
8814
+ 修改代理实例名称
8815
+
8816
+ Please refer to HUAWEI cloud API Explorer for details.
8817
+
8818
+
8819
+ :param request: Request instance for UpdateProxyName
8820
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateProxyNameRequest`
8821
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateProxyNameResponse`
8822
+ """
8823
+ http_info = self._update_proxy_name_http_info(request)
8824
+ return self._call_api(**http_info)
8825
+
8826
+ def update_proxy_name_async_invoker(self, request):
8827
+ http_info = self._update_proxy_name_http_info(request)
8828
+ return AsyncInvoker(self, http_info)
8829
+
8830
+ def _update_proxy_name_http_info(self, request):
8831
+ http_info = {
8832
+ "method": "PUT",
8833
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/rename",
8834
+ "request_type": request.__class__.__name__,
8835
+ "response_type": "UpdateProxyNameResponse"
8836
+ }
8837
+
8838
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8839
+
8840
+ cname = None
8841
+
8842
+ collection_formats = {}
8843
+
8844
+ path_params = {}
8845
+ if 'instance_id' in local_var_params:
8846
+ path_params['instance_id'] = local_var_params['instance_id']
8847
+ if 'proxy_id' in local_var_params:
8848
+ path_params['proxy_id'] = local_var_params['proxy_id']
8849
+
8850
+ query_params = []
8851
+
8852
+ header_params = {}
8853
+ if 'x_language' in local_var_params:
8854
+ header_params['X-Language'] = local_var_params['x_language']
8855
+
8856
+ form_params = {}
8857
+
8858
+ body = None
8859
+ if 'body' in local_var_params:
8860
+ body = local_var_params['body']
8861
+ if isinstance(request, SdkStreamRequest):
8862
+ body = request.get_file_stream()
8863
+
8864
+ response_headers = []
8865
+
8866
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8867
+ ['application/json'])
8868
+
8869
+ auth_settings = []
8870
+
8871
+ http_info["cname"] = cname
8872
+ http_info["collection_formats"] = collection_formats
8873
+ http_info["path_params"] = path_params
8874
+ http_info["query_params"] = query_params
8875
+ http_info["header_params"] = header_params
8876
+ http_info["post_params"] = form_params
8877
+ http_info["body"] = body
8878
+ http_info["response_headers"] = response_headers
8879
+
8880
+ return http_info
8881
+
7703
8882
  def update_proxy_new_configurations_async(self, request):
7704
8883
  """修改代理实例参数
7705
8884
 
@@ -7913,6 +9092,144 @@ class GaussDBAsyncClient(Client):
7913
9092
 
7914
9093
  return http_info
7915
9094
 
9095
+ def update_serverless_policy_async(self, request):
9096
+ """设置Serverless配置策略
9097
+
9098
+ 设置Serverless配置策略。
9099
+
9100
+ Please refer to HUAWEI cloud API Explorer for details.
9101
+
9102
+
9103
+ :param request: Request instance for UpdateServerlessPolicy
9104
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateServerlessPolicyRequest`
9105
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateServerlessPolicyResponse`
9106
+ """
9107
+ http_info = self._update_serverless_policy_http_info(request)
9108
+ return self._call_api(**http_info)
9109
+
9110
+ def update_serverless_policy_async_invoker(self, request):
9111
+ http_info = self._update_serverless_policy_http_info(request)
9112
+ return AsyncInvoker(self, http_info)
9113
+
9114
+ def _update_serverless_policy_http_info(self, request):
9115
+ http_info = {
9116
+ "method": "PUT",
9117
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/serverless/policy",
9118
+ "request_type": request.__class__.__name__,
9119
+ "response_type": "UpdateServerlessPolicyResponse"
9120
+ }
9121
+
9122
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9123
+
9124
+ cname = None
9125
+
9126
+ collection_formats = {}
9127
+
9128
+ path_params = {}
9129
+ if 'instance_id' in local_var_params:
9130
+ path_params['instance_id'] = local_var_params['instance_id']
9131
+
9132
+ query_params = []
9133
+
9134
+ header_params = {}
9135
+ if 'x_language' in local_var_params:
9136
+ header_params['X-Language'] = local_var_params['x_language']
9137
+
9138
+ form_params = {}
9139
+
9140
+ body = None
9141
+ if 'body' in local_var_params:
9142
+ body = local_var_params['body']
9143
+ if isinstance(request, SdkStreamRequest):
9144
+ body = request.get_file_stream()
9145
+
9146
+ response_headers = []
9147
+
9148
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9149
+ ['application/json;charset=UTF-8'])
9150
+
9151
+ auth_settings = []
9152
+
9153
+ http_info["cname"] = cname
9154
+ http_info["collection_formats"] = collection_formats
9155
+ http_info["path_params"] = path_params
9156
+ http_info["query_params"] = query_params
9157
+ http_info["header_params"] = header_params
9158
+ http_info["post_params"] = form_params
9159
+ http_info["body"] = body
9160
+ http_info["response_headers"] = response_headers
9161
+
9162
+ return http_info
9163
+
9164
+ def update_slowlog_sensitive_switch_async(self, request):
9165
+ """开启或关闭慢日志脱敏状态
9166
+
9167
+ 开启或关闭慢日志脱敏状态
9168
+
9169
+ Please refer to HUAWEI cloud API Explorer for details.
9170
+
9171
+
9172
+ :param request: Request instance for UpdateSlowlogSensitiveSwitch
9173
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateSlowlogSensitiveSwitchRequest`
9174
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateSlowlogSensitiveSwitchResponse`
9175
+ """
9176
+ http_info = self._update_slowlog_sensitive_switch_http_info(request)
9177
+ return self._call_api(**http_info)
9178
+
9179
+ def update_slowlog_sensitive_switch_async_invoker(self, request):
9180
+ http_info = self._update_slowlog_sensitive_switch_http_info(request)
9181
+ return AsyncInvoker(self, http_info)
9182
+
9183
+ def _update_slowlog_sensitive_switch_http_info(self, request):
9184
+ http_info = {
9185
+ "method": "POST",
9186
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/slowlog/modify",
9187
+ "request_type": request.__class__.__name__,
9188
+ "response_type": "UpdateSlowlogSensitiveSwitchResponse"
9189
+ }
9190
+
9191
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9192
+
9193
+ cname = None
9194
+
9195
+ collection_formats = {}
9196
+
9197
+ path_params = {}
9198
+ if 'instance_id' in local_var_params:
9199
+ path_params['instance_id'] = local_var_params['instance_id']
9200
+
9201
+ query_params = []
9202
+
9203
+ header_params = {}
9204
+ if 'x_language' in local_var_params:
9205
+ header_params['X-Language'] = local_var_params['x_language']
9206
+
9207
+ form_params = {}
9208
+
9209
+ body = None
9210
+ if 'body' in local_var_params:
9211
+ body = local_var_params['body']
9212
+ if isinstance(request, SdkStreamRequest):
9213
+ body = request.get_file_stream()
9214
+
9215
+ response_headers = []
9216
+
9217
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9218
+ ['application/json;charset=UTF-8'])
9219
+
9220
+ auth_settings = []
9221
+
9222
+ http_info["cname"] = cname
9223
+ http_info["collection_formats"] = collection_formats
9224
+ http_info["path_params"] = path_params
9225
+ http_info["query_params"] = query_params
9226
+ http_info["header_params"] = header_params
9227
+ http_info["post_params"] = form_params
9228
+ http_info["body"] = body
9229
+ http_info["response_headers"] = response_headers
9230
+
9231
+ return http_info
9232
+
7916
9233
  def update_transaction_split_status_async(self, request):
7917
9234
  """设置proxy事务拆分
7918
9235
 
@@ -8051,6 +9368,77 @@ class GaussDBAsyncClient(Client):
8051
9368
 
8052
9369
  return http_info
8053
9370
 
9371
+ def upgrade_proxy_version_async(self, request):
9372
+ """升级数据库代理实例内核版本
9373
+
9374
+ 升级数据库代理实例内核版本。
9375
+
9376
+ Please refer to HUAWEI cloud API Explorer for details.
9377
+
9378
+
9379
+ :param request: Request instance for UpgradeProxyVersion
9380
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpgradeProxyVersionRequest`
9381
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpgradeProxyVersionResponse`
9382
+ """
9383
+ http_info = self._upgrade_proxy_version_http_info(request)
9384
+ return self._call_api(**http_info)
9385
+
9386
+ def upgrade_proxy_version_async_invoker(self, request):
9387
+ http_info = self._upgrade_proxy_version_http_info(request)
9388
+ return AsyncInvoker(self, http_info)
9389
+
9390
+ def _upgrade_proxy_version_http_info(self, request):
9391
+ http_info = {
9392
+ "method": "POST",
9393
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/upgrade-version",
9394
+ "request_type": request.__class__.__name__,
9395
+ "response_type": "UpgradeProxyVersionResponse"
9396
+ }
9397
+
9398
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9399
+
9400
+ cname = None
9401
+
9402
+ collection_formats = {}
9403
+
9404
+ path_params = {}
9405
+ if 'instance_id' in local_var_params:
9406
+ path_params['instance_id'] = local_var_params['instance_id']
9407
+ if 'proxy_id' in local_var_params:
9408
+ path_params['proxy_id'] = local_var_params['proxy_id']
9409
+
9410
+ query_params = []
9411
+
9412
+ header_params = {}
9413
+ if 'x_language' in local_var_params:
9414
+ header_params['X-Language'] = local_var_params['x_language']
9415
+
9416
+ form_params = {}
9417
+
9418
+ body = None
9419
+ if 'body' in local_var_params:
9420
+ body = local_var_params['body']
9421
+ if isinstance(request, SdkStreamRequest):
9422
+ body = request.get_file_stream()
9423
+
9424
+ response_headers = []
9425
+
9426
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9427
+ ['application/json;charset=UTF-8'])
9428
+
9429
+ auth_settings = []
9430
+
9431
+ http_info["cname"] = cname
9432
+ http_info["collection_formats"] = collection_formats
9433
+ http_info["path_params"] = path_params
9434
+ http_info["query_params"] = query_params
9435
+ http_info["header_params"] = header_params
9436
+ http_info["post_params"] = form_params
9437
+ http_info["body"] = body
9438
+ http_info["response_headers"] = response_headers
9439
+
9440
+ return http_info
9441
+
8054
9442
  def check_data_base_config_async(self, request):
8055
9443
  """HTAP数据同步库配置校验
8056
9444