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 GaussDBClient(Client):
1268
1268
 
1269
1269
  return http_info
1270
1270
 
1271
+ def create_lts_configs(self, request):
1272
+ """批量创建LTS日志配置
1273
+
1274
+ 批量创建LTS日志配置
1275
+
1276
+ Please refer to HUAWEI cloud API Explorer for details.
1277
+
1278
+ :param request: Request instance for CreateLtsConfigs
1279
+ :type request: :class:`huaweicloudsdkgaussdb.v3.CreateLtsConfigsRequest`
1280
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateLtsConfigsResponse`
1281
+ """
1282
+ http_info = self._create_lts_configs_http_info(request)
1283
+ return self._call_api(**http_info)
1284
+
1285
+ def create_lts_configs_invoker(self, request):
1286
+ http_info = self._create_lts_configs_http_info(request)
1287
+ return SyncInvoker(self, http_info)
1288
+
1289
+ @classmethod
1290
+ def _create_lts_configs_http_info(cls, 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(self, request):
1272
1339
  """表级时间点恢复
1273
1340
 
@@ -1883,6 +1950,73 @@ class GaussDBClient(Client):
1883
1950
 
1884
1951
  return http_info
1885
1952
 
1953
+ def delete_lts_configs(self, request):
1954
+ """批量删除LTS日志配置
1955
+
1956
+ 批量删除LTS日志配置
1957
+
1958
+ Please refer to HUAWEI cloud API Explorer for details.
1959
+
1960
+ :param request: Request instance for DeleteLtsConfigs
1961
+ :type request: :class:`huaweicloudsdkgaussdb.v3.DeleteLtsConfigsRequest`
1962
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteLtsConfigsResponse`
1963
+ """
1964
+ http_info = self._delete_lts_configs_http_info(request)
1965
+ return self._call_api(**http_info)
1966
+
1967
+ def delete_lts_configs_invoker(self, request):
1968
+ http_info = self._delete_lts_configs_http_info(request)
1969
+ return SyncInvoker(self, http_info)
1970
+
1971
+ @classmethod
1972
+ def _delete_lts_configs_http_info(cls, 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(self, request):
1887
2021
  """删除定时任务
1888
2022
 
@@ -3671,6 +3805,75 @@ class GaussDBClient(Client):
3671
3805
 
3672
3806
  return http_info
3673
3807
 
3808
+ def list_params_template_apply_history(self, request):
3809
+ """查询参数模板应用记录。
3810
+
3811
+ 查询参数模板应用记录。
3812
+
3813
+ Please refer to HUAWEI cloud API Explorer for details.
3814
+
3815
+ :param request: Request instance for ListParamsTemplateApplyHistory
3816
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListParamsTemplateApplyHistoryRequest`
3817
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListParamsTemplateApplyHistoryResponse`
3818
+ """
3819
+ http_info = self._list_params_template_apply_history_http_info(request)
3820
+ return self._call_api(**http_info)
3821
+
3822
+ def list_params_template_apply_history_invoker(self, request):
3823
+ http_info = self._list_params_template_apply_history_http_info(request)
3824
+ return SyncInvoker(self, http_info)
3825
+
3826
+ @classmethod
3827
+ def _list_params_template_apply_history_http_info(cls, 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(self, request):
3675
3878
  """查询项目标签
3676
3879
 
@@ -3740,6 +3943,75 @@ class GaussDBClient(Client):
3740
3943
 
3741
3944
  return http_info
3742
3945
 
3946
+ def list_recycle_instances(self, request):
3947
+ """查询回收站实例信息
3948
+
3949
+ 查询回收站实例信息
3950
+
3951
+ Please refer to HUAWEI cloud API Explorer for details.
3952
+
3953
+ :param request: Request instance for ListRecycleInstances
3954
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ListRecycleInstancesRequest`
3955
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ListRecycleInstancesResponse`
3956
+ """
3957
+ http_info = self._list_recycle_instances_http_info(request)
3958
+ return self._call_api(**http_info)
3959
+
3960
+ def list_recycle_instances_invoker(self, request):
3961
+ http_info = self._list_recycle_instances_http_info(request)
3962
+ return SyncInvoker(self, http_info)
3963
+
3964
+ @classmethod
3965
+ def _list_recycle_instances_http_info(cls, 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(self, request):
3744
4016
  """获取定时任务列表
3745
4017
 
@@ -4028,31 +4300,31 @@ class GaussDBClient(Client):
4028
4300
 
4029
4301
  return http_info
4030
4302
 
4031
- def reset_gauss_my_sql_database_password(self, request):
4032
- """修改数据库用户密码
4303
+ def modify_node_priority(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
- :param request: Request instance for ResetGaussMySqlDatabasePassword
4039
- :type request: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlDatabasePasswordRequest`
4040
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlDatabasePasswordResponse`
4310
+ :param request: Request instance for ModifyNodePriority
4311
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ModifyNodePriorityRequest`
4312
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ModifyNodePriorityResponse`
4041
4313
  """
4042
- http_info = self._reset_gauss_my_sql_database_password_http_info(request)
4314
+ http_info = self._modify_node_priority_http_info(request)
4043
4315
  return self._call_api(**http_info)
4044
4316
 
4045
- def reset_gauss_my_sql_database_password_invoker(self, request):
4046
- http_info = self._reset_gauss_my_sql_database_password_http_info(request)
4317
+ def modify_node_priority_invoker(self, request):
4318
+ http_info = self._modify_node_priority_http_info(request)
4047
4319
  return SyncInvoker(self, http_info)
4048
4320
 
4049
4321
  @classmethod
4050
- def _reset_gauss_my_sql_database_password_http_info(cls, request):
4322
+ def _modify_node_priority_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
4097
4371
 
4098
4372
  return http_info
4099
4373
 
4100
- def reset_gauss_my_sql_password(self, request):
4101
- """重置数据库密码
4374
+ def rename_instance_node(self, request):
4375
+ """批量修改节点名称.
4102
4376
 
4103
- 重置数据库密码。
4377
+ 批量修改节点名称.
4104
4378
 
4105
4379
  Please refer to HUAWEI cloud API Explorer for details.
4106
4380
 
4107
- :param request: Request instance for ResetGaussMySqlPassword
4108
- :type request: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlPasswordRequest`
4109
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlPasswordResponse`
4381
+ :param request: Request instance for RenameInstanceNode
4382
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RenameInstanceNodeRequest`
4383
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RenameInstanceNodeResponse`
4110
4384
  """
4111
- http_info = self._reset_gauss_my_sql_password_http_info(request)
4385
+ http_info = self._rename_instance_node_http_info(request)
4112
4386
  return self._call_api(**http_info)
4113
4387
 
4114
- def reset_gauss_my_sql_password_invoker(self, request):
4115
- http_info = self._reset_gauss_my_sql_password_http_info(request)
4388
+ def rename_instance_node_invoker(self, request):
4389
+ http_info = self._rename_instance_node_http_info(request)
4116
4390
  return SyncInvoker(self, http_info)
4117
4391
 
4118
4392
  @classmethod
4119
- def _reset_gauss_my_sql_password_http_info(cls, request):
4393
+ def _rename_instance_node_http_info(cls, 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 GaussDBClient(Client):
4166
4440
 
4167
4441
  return http_info
4168
4442
 
4169
- def restart_gauss_my_sql_instance(self, request):
4170
- """重启数据库实例
4443
+ def reset_gauss_my_sql_database_password(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
- :param request: Request instance for RestartGaussMySqlInstance
4177
- :type request: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlInstanceRequest`
4178
- :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlInstanceResponse`
4450
+ :param request: Request instance for ResetGaussMySqlDatabasePassword
4451
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlDatabasePasswordRequest`
4452
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlDatabasePasswordResponse`
4179
4453
  """
4180
- http_info = self._restart_gauss_my_sql_instance_http_info(request)
4454
+ http_info = self._reset_gauss_my_sql_database_password_http_info(request)
4181
4455
  return self._call_api(**http_info)
4182
4456
 
4183
- def restart_gauss_my_sql_instance_invoker(self, request):
4184
- http_info = self._restart_gauss_my_sql_instance_http_info(request)
4457
+ def reset_gauss_my_sql_database_password_invoker(self, request):
4458
+ http_info = self._reset_gauss_my_sql_database_password_http_info(request)
4185
4459
  return SyncInvoker(self, http_info)
4186
4460
 
4187
4461
  @classmethod
4188
- def _restart_gauss_my_sql_instance_http_info(cls, request):
4462
+ def _reset_gauss_my_sql_database_password_http_info(cls, 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 GaussDBClient(Client):
4235
4509
 
4236
4510
  return http_info
4237
4511
 
4238
- def restart_gauss_my_sql_node(self, request):
4239
- """节点重启
4512
+ def reset_gauss_my_sql_password(self, request):
4513
+ """重置数据库密码
4240
4514
 
4241
- 节点重启。
4515
+ 重置数据库密码。
4242
4516
 
4243
4517
  Please refer to HUAWEI cloud API Explorer for details.
4244
4518
 
4245
- :param request: Request instance for RestartGaussMySqlNode
4246
- :type request: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlNodeRequest`
4247
- :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlNodeResponse`
4519
+ :param request: Request instance for ResetGaussMySqlPassword
4520
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlPasswordRequest`
4521
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlPasswordResponse`
4248
4522
  """
4249
- http_info = self._restart_gauss_my_sql_node_http_info(request)
4523
+ http_info = self._reset_gauss_my_sql_password_http_info(request)
4250
4524
  return self._call_api(**http_info)
4251
4525
 
4252
- def restart_gauss_my_sql_node_invoker(self, request):
4253
- http_info = self._restart_gauss_my_sql_node_http_info(request)
4526
+ def reset_gauss_my_sql_password_invoker(self, request):
4527
+ http_info = self._reset_gauss_my_sql_password_http_info(request)
4254
4528
  return SyncInvoker(self, http_info)
4255
4529
 
4256
4530
  @classmethod
4257
- def _restart_gauss_my_sql_node_http_info(cls, request):
4531
+ def _reset_gauss_my_sql_password_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
4306
4578
 
4307
4579
  return http_info
4308
4580
 
4309
- def restore_old_instance(self, request):
4310
- """备份恢复到当前实例或已有实例
4581
+ def restart_gauss_my_sql_instance(self, request):
4582
+ """重启数据库实例
4311
4583
 
4312
- 备份恢复到当前实例或已有实例。
4584
+ 重启数据库实例。
4313
4585
 
4314
4586
  Please refer to HUAWEI cloud API Explorer for details.
4315
4587
 
4316
- :param request: Request instance for RestoreOldInstance
4317
- :type request: :class:`huaweicloudsdkgaussdb.v3.RestoreOldInstanceRequest`
4318
- :rtype: :class:`huaweicloudsdkgaussdb.v3.RestoreOldInstanceResponse`
4588
+ :param request: Request instance for RestartGaussMySqlInstance
4589
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlInstanceRequest`
4590
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlInstanceResponse`
4319
4591
  """
4320
- http_info = self._restore_old_instance_http_info(request)
4592
+ http_info = self._restart_gauss_my_sql_instance_http_info(request)
4321
4593
  return self._call_api(**http_info)
4322
4594
 
4323
- def restore_old_instance_invoker(self, request):
4324
- http_info = self._restore_old_instance_http_info(request)
4595
+ def restart_gauss_my_sql_instance_invoker(self, request):
4596
+ http_info = self._restart_gauss_my_sql_instance_http_info(request)
4325
4597
  return SyncInvoker(self, http_info)
4326
4598
 
4327
4599
  @classmethod
4328
- def _restore_old_instance_http_info(cls, request):
4600
+ def _restart_gauss_my_sql_instance_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
4373
4647
 
4374
4648
  return http_info
4375
4649
 
4376
- def set_gauss_my_sql_proxy_weight(self, request):
4377
- """设置读写分离权重
4650
+ def restart_gauss_my_sql_node(self, request):
4651
+ """节点重启
4378
4652
 
4379
- 设置读写分离权重。
4653
+ 节点重启。
4380
4654
 
4381
4655
  Please refer to HUAWEI cloud API Explorer for details.
4382
4656
 
4383
- :param request: Request instance for SetGaussMySqlProxyWeight
4384
- :type request: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlProxyWeightRequest`
4385
- :rtype: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlProxyWeightResponse`
4657
+ :param request: Request instance for RestartGaussMySqlNode
4658
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlNodeRequest`
4659
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartGaussMySqlNodeResponse`
4386
4660
  """
4387
- http_info = self._set_gauss_my_sql_proxy_weight_http_info(request)
4661
+ http_info = self._restart_gauss_my_sql_node_http_info(request)
4388
4662
  return self._call_api(**http_info)
4389
4663
 
4390
- def set_gauss_my_sql_proxy_weight_invoker(self, request):
4391
- http_info = self._set_gauss_my_sql_proxy_weight_http_info(request)
4664
+ def restart_gauss_my_sql_node_invoker(self, request):
4665
+ http_info = self._restart_gauss_my_sql_node_http_info(request)
4392
4666
  return SyncInvoker(self, http_info)
4393
4667
 
4394
4668
  @classmethod
4395
- def _set_gauss_my_sql_proxy_weight_http_info(cls, request):
4669
+ def _restart_gauss_my_sql_node_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
4444
4718
 
4445
4719
  return http_info
4446
4720
 
4447
- def set_gauss_my_sql_quotas(self, request):
4448
- """设置租户基于企业项目的资源配额
4721
+ def restart_proxy_instance(self, request):
4722
+ """重启数据库代理.
4449
4723
 
4450
- 设置指定企业项目的资源配额。
4724
+ 重启数据库代理.
4451
4725
 
4452
4726
  Please refer to HUAWEI cloud API Explorer for details.
4453
4727
 
4454
- :param request: Request instance for SetGaussMySqlQuotas
4455
- :type request: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlQuotasRequest`
4456
- :rtype: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlQuotasResponse`
4728
+ :param request: Request instance for RestartProxyInstance
4729
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestartProxyInstanceRequest`
4730
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartProxyInstanceResponse`
4457
4731
  """
4458
- http_info = self._set_gauss_my_sql_quotas_http_info(request)
4732
+ http_info = self._restart_proxy_instance_http_info(request)
4459
4733
  return self._call_api(**http_info)
4460
4734
 
4461
- def set_gauss_my_sql_quotas_invoker(self, request):
4462
- http_info = self._set_gauss_my_sql_quotas_http_info(request)
4735
+ def restart_proxy_instance_invoker(self, request):
4736
+ http_info = self._restart_proxy_instance_http_info(request)
4463
4737
  return SyncInvoker(self, http_info)
4464
4738
 
4465
4739
  @classmethod
4466
- def _set_gauss_my_sql_quotas_http_info(cls, request):
4740
+ def _restart_proxy_instance_http_info(cls, 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 GaussDBClient(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 GaussDBClient(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 GaussDBClient(Client):
4511
4787
 
4512
4788
  return http_info
4513
4789
 
4514
- def show_audit_log(self, request):
4515
- """查询全量SQL开关状态
4790
+ def restore_old_instance(self, request):
4791
+ """备份恢复到当前实例或已有实例
4516
4792
 
4517
- 查询全量SQL开关状态。
4793
+ 备份恢复到当前实例或已有实例。
4518
4794
 
4519
4795
  Please refer to HUAWEI cloud API Explorer for details.
4520
4796
 
4521
- :param request: Request instance for ShowAuditLog
4522
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogRequest`
4523
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogResponse`
4797
+ :param request: Request instance for RestoreOldInstance
4798
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestoreOldInstanceRequest`
4799
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestoreOldInstanceResponse`
4524
4800
  """
4525
- http_info = self._show_audit_log_http_info(request)
4801
+ http_info = self._restore_old_instance_http_info(request)
4526
4802
  return self._call_api(**http_info)
4527
4803
 
4528
- def show_audit_log_invoker(self, request):
4529
- http_info = self._show_audit_log_http_info(request)
4804
+ def restore_old_instance_invoker(self, request):
4805
+ http_info = self._restore_old_instance_http_info(request)
4530
4806
  return SyncInvoker(self, http_info)
4531
4807
 
4532
4808
  @classmethod
4533
- def _show_audit_log_http_info(cls, request):
4809
+ def _restore_old_instance_http_info(cls, 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 GaussDBClient(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 GaussDBClient(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 GaussDBClient(Client):
4578
4854
 
4579
4855
  return http_info
4580
4856
 
4581
- def show_auto_scaling_policy(self, request):
4582
- """查询自动变配
4857
+ def set_gauss_my_sql_proxy_weight(self, request):
4858
+ """设置读写分离权重
4583
4859
 
4584
- 查询自动变配。
4860
+ 设置读写分离权重。
4585
4861
 
4586
4862
  Please refer to HUAWEI cloud API Explorer for details.
4587
4863
 
4588
- :param request: Request instance for ShowAutoScalingPolicy
4589
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowAutoScalingPolicyRequest`
4590
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAutoScalingPolicyResponse`
4864
+ :param request: Request instance for SetGaussMySqlProxyWeight
4865
+ :type request: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlProxyWeightRequest`
4866
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlProxyWeightResponse`
4591
4867
  """
4592
- http_info = self._show_auto_scaling_policy_http_info(request)
4868
+ http_info = self._set_gauss_my_sql_proxy_weight_http_info(request)
4593
4869
  return self._call_api(**http_info)
4594
4870
 
4595
- def show_auto_scaling_policy_invoker(self, request):
4596
- http_info = self._show_auto_scaling_policy_http_info(request)
4871
+ def set_gauss_my_sql_proxy_weight_invoker(self, request):
4872
+ http_info = self._set_gauss_my_sql_proxy_weight_http_info(request)
4597
4873
  return SyncInvoker(self, http_info)
4598
4874
 
4599
4875
  @classmethod
4600
- def _show_auto_scaling_policy_http_info(cls, request):
4876
+ def _set_gauss_my_sql_proxy_weight_http_info(cls, 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 GaussDBClient(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 GaussDBClient(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 GaussDBClient(Client):
4645
4925
 
4646
4926
  return http_info
4647
4927
 
4648
- def show_backup_restore_time(self, request):
4649
- """查询可恢复时间段
4928
+ def set_gauss_my_sql_quotas(self, request):
4929
+ """设置租户基于企业项目的资源配额
4650
4930
 
4651
- 查询实例的可恢复时间段。
4931
+ 设置指定企业项目的资源配额。
4652
4932
 
4653
4933
  Please refer to HUAWEI cloud API Explorer for details.
4654
4934
 
4655
- :param request: Request instance for ShowBackupRestoreTime
4656
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowBackupRestoreTimeRequest`
4657
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowBackupRestoreTimeResponse`
4935
+ :param request: Request instance for SetGaussMySqlQuotas
4936
+ :type request: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlQuotasRequest`
4937
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.SetGaussMySqlQuotasResponse`
4658
4938
  """
4659
- http_info = self._show_backup_restore_time_http_info(request)
4939
+ http_info = self._set_gauss_my_sql_quotas_http_info(request)
4660
4940
  return self._call_api(**http_info)
4661
4941
 
4662
- def show_backup_restore_time_invoker(self, request):
4663
- http_info = self._show_backup_restore_time_http_info(request)
4942
+ def set_gauss_my_sql_quotas_invoker(self, request):
4943
+ http_info = self._set_gauss_my_sql_quotas_http_info(request)
4664
4944
  return SyncInvoker(self, http_info)
4665
4945
 
4666
4946
  @classmethod
4667
- def _show_backup_restore_time_http_info(cls, request):
4947
+ def _set_gauss_my_sql_quotas_http_info(cls, 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 GaussDBClient(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 GaussDBClient(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 GaussDBClient(Client):
4714
4992
 
4715
4993
  return http_info
4716
4994
 
4717
- def show_dedicated_resource_info(self, request):
4718
- """查询专属资源信息详情
4995
+ def set_recycle_policy(self, request):
4996
+ """设置回收站策略
4719
4997
 
4720
- 查询专属资源信息详情。
4998
+ 设置回收站策略
4721
4999
 
4722
5000
  Please refer to HUAWEI cloud API Explorer for details.
4723
5001
 
4724
- :param request: Request instance for ShowDedicatedResourceInfo
4725
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowDedicatedResourceInfoRequest`
4726
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowDedicatedResourceInfoResponse`
5002
+ :param request: Request instance for SetRecyclePolicy
5003
+ :type request: :class:`huaweicloudsdkgaussdb.v3.SetRecyclePolicyRequest`
5004
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.SetRecyclePolicyResponse`
4727
5005
  """
4728
- http_info = self._show_dedicated_resource_info_http_info(request)
5006
+ http_info = self._set_recycle_policy_http_info(request)
4729
5007
  return self._call_api(**http_info)
4730
5008
 
4731
- def show_dedicated_resource_info_invoker(self, request):
4732
- http_info = self._show_dedicated_resource_info_http_info(request)
5009
+ def set_recycle_policy_invoker(self, request):
5010
+ http_info = self._set_recycle_policy_http_info(request)
4733
5011
  return SyncInvoker(self, http_info)
4734
5012
 
4735
5013
  @classmethod
4736
- def _show_dedicated_resource_info_http_info(cls, request):
5014
+ def _set_recycle_policy_http_info(cls, 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 GaussDBClient(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 GaussDBClient(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 GaussDBClient(Client):
4781
5059
 
4782
5060
  return http_info
4783
5061
 
4784
- def show_gauss_my_sql_backup_list(self, request):
4785
- """查询全量备份列表
5062
+ def show_audit_log(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
- :param request: Request instance for ShowGaussMySqlBackupList
4792
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupListRequest`
4793
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupListResponse`
5069
+ :param request: Request instance for ShowAuditLog
5070
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogRequest`
5071
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAuditLogResponse`
4794
5072
  """
4795
- http_info = self._show_gauss_my_sql_backup_list_http_info(request)
5073
+ http_info = self._show_audit_log_http_info(request)
4796
5074
  return self._call_api(**http_info)
4797
5075
 
4798
- def show_gauss_my_sql_backup_list_invoker(self, request):
4799
- http_info = self._show_gauss_my_sql_backup_list_http_info(request)
5076
+ def show_audit_log_invoker(self, request):
5077
+ http_info = self._show_audit_log_http_info(request)
4800
5078
  return SyncInvoker(self, http_info)
4801
5079
 
4802
5080
  @classmethod
4803
- def _show_gauss_my_sql_backup_list_http_info(cls, request):
5081
+ def _show_audit_log_http_info(cls, 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 GaussDBClient(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(self, request):
5130
+ """查询自动变配历史记录.
5131
+
5132
+ 查询自动变配历史记录.
5133
+
5134
+ Please refer to HUAWEI cloud API Explorer for details.
5135
+
5136
+ :param request: Request instance for ShowAutoScalingHistory
5137
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowAutoScalingHistoryRequest`
5138
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAutoScalingHistoryResponse`
5139
+ """
5140
+ http_info = self._show_auto_scaling_history_http_info(request)
5141
+ return self._call_api(**http_info)
5142
+
5143
+ def show_auto_scaling_history_invoker(self, request):
5144
+ http_info = self._show_auto_scaling_history_http_info(request)
5145
+ return SyncInvoker(self, http_info)
5146
+
5147
+ @classmethod
5148
+ def _show_auto_scaling_history_http_info(cls, 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 GaussDBClient(Client):
4864
5197
 
4865
5198
  return http_info
4866
5199
 
4867
- def show_gauss_my_sql_backup_policy(self, request):
4868
- """查询自动备份策略
5200
+ def show_auto_scaling_policy(self, request):
5201
+ """查询自动变配
4869
5202
 
4870
- 查询自动备份策略。
5203
+ 查询自动变配。
4871
5204
 
4872
5205
  Please refer to HUAWEI cloud API Explorer for details.
4873
5206
 
4874
- :param request: Request instance for ShowGaussMySqlBackupPolicy
4875
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupPolicyRequest`
4876
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupPolicyResponse`
5207
+ :param request: Request instance for ShowAutoScalingPolicy
5208
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowAutoScalingPolicyRequest`
5209
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowAutoScalingPolicyResponse`
4877
5210
  """
4878
- http_info = self._show_gauss_my_sql_backup_policy_http_info(request)
5211
+ http_info = self._show_auto_scaling_policy_http_info(request)
4879
5212
  return self._call_api(**http_info)
4880
5213
 
4881
- def show_gauss_my_sql_backup_policy_invoker(self, request):
4882
- http_info = self._show_gauss_my_sql_backup_policy_http_info(request)
5214
+ def show_auto_scaling_policy_invoker(self, request):
5215
+ http_info = self._show_auto_scaling_policy_http_info(request)
4883
5216
  return SyncInvoker(self, http_info)
4884
5217
 
4885
5218
  @classmethod
4886
- def _show_gauss_my_sql_backup_policy_http_info(cls, request):
5219
+ def _show_auto_scaling_policy_http_info(cls, 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 GaussDBClient(Client):
4931
5264
 
4932
5265
  return http_info
4933
5266
 
4934
- def show_gauss_my_sql_configuration(self, request):
4935
- """获取参数模板详情
5267
+ def show_backup_restore_time(self, request):
5268
+ """查询可恢复时间段
4936
5269
 
4937
- 获取指定参数模板的参数信息。
5270
+ 查询实例的可恢复时间段。
4938
5271
 
4939
5272
  Please refer to HUAWEI cloud API Explorer for details.
4940
5273
 
4941
- :param request: Request instance for ShowGaussMySqlConfiguration
4942
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlConfigurationRequest`
4943
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlConfigurationResponse`
5274
+ :param request: Request instance for ShowBackupRestoreTime
5275
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowBackupRestoreTimeRequest`
5276
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowBackupRestoreTimeResponse`
4944
5277
  """
4945
- http_info = self._show_gauss_my_sql_configuration_http_info(request)
5278
+ http_info = self._show_backup_restore_time_http_info(request)
4946
5279
  return self._call_api(**http_info)
4947
5280
 
4948
- def show_gauss_my_sql_configuration_invoker(self, request):
4949
- http_info = self._show_gauss_my_sql_configuration_http_info(request)
5281
+ def show_backup_restore_time_invoker(self, request):
5282
+ http_info = self._show_backup_restore_time_http_info(request)
4950
5283
  return SyncInvoker(self, http_info)
4951
5284
 
4952
5285
  @classmethod
4953
- def _show_gauss_my_sql_configuration_http_info(cls, request):
5286
+ def _show_backup_restore_time_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
4998
5333
 
4999
5334
  return http_info
5000
5335
 
5001
- def show_gauss_my_sql_engine_version(self, request):
5002
- """查询数据库引擎的版本
5336
+ def show_dedicated_resource_info(self, request):
5337
+ """查询专属资源信息详情
5003
5338
 
5004
- 获取指定数据库引擎对应的数据库版本信息。
5339
+ 查询专属资源信息详情。
5005
5340
 
5006
5341
  Please refer to HUAWEI cloud API Explorer for details.
5007
5342
 
5008
- :param request: Request instance for ShowGaussMySqlEngineVersion
5009
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlEngineVersionRequest`
5010
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlEngineVersionResponse`
5343
+ :param request: Request instance for ShowDedicatedResourceInfo
5344
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowDedicatedResourceInfoRequest`
5345
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowDedicatedResourceInfoResponse`
5011
5346
  """
5012
- http_info = self._show_gauss_my_sql_engine_version_http_info(request)
5347
+ http_info = self._show_dedicated_resource_info_http_info(request)
5013
5348
  return self._call_api(**http_info)
5014
5349
 
5015
- def show_gauss_my_sql_engine_version_invoker(self, request):
5016
- http_info = self._show_gauss_my_sql_engine_version_http_info(request)
5350
+ def show_dedicated_resource_info_invoker(self, request):
5351
+ http_info = self._show_dedicated_resource_info_http_info(request)
5017
5352
  return SyncInvoker(self, http_info)
5018
5353
 
5019
5354
  @classmethod
5020
- def _show_gauss_my_sql_engine_version_http_info(cls, request):
5355
+ def _show_dedicated_resource_info_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
5065
5400
 
5066
5401
  return http_info
5067
5402
 
5068
- def show_gauss_my_sql_flavors(self, request):
5069
- """查询数据库规格
5403
+ def show_gauss_my_sql_backup_list(self, request):
5404
+ """查询全量备份列表
5070
5405
 
5071
- 获取指定数据库引擎版本对应的规格信息。
5406
+ 查询全量备份列表。
5072
5407
 
5073
5408
  Please refer to HUAWEI cloud API Explorer for details.
5074
5409
 
5075
- :param request: Request instance for ShowGaussMySqlFlavors
5076
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlFlavorsRequest`
5077
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlFlavorsResponse`
5410
+ :param request: Request instance for ShowGaussMySqlBackupList
5411
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupListRequest`
5412
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupListResponse`
5078
5413
  """
5079
- http_info = self._show_gauss_my_sql_flavors_http_info(request)
5414
+ http_info = self._show_gauss_my_sql_backup_list_http_info(request)
5080
5415
  return self._call_api(**http_info)
5081
5416
 
5082
- def show_gauss_my_sql_flavors_invoker(self, request):
5083
- http_info = self._show_gauss_my_sql_flavors_http_info(request)
5417
+ def show_gauss_my_sql_backup_list_invoker(self, request):
5418
+ http_info = self._show_gauss_my_sql_backup_list_http_info(request)
5084
5419
  return SyncInvoker(self, http_info)
5085
5420
 
5086
5421
  @classmethod
5087
- def _show_gauss_my_sql_flavors_http_info(cls, request):
5422
+ def _show_gauss_my_sql_backup_list_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
5138
5483
 
5139
5484
  return http_info
5140
5485
 
5141
- def show_gauss_my_sql_incremental_backup_list(self, request):
5142
- """查询增量备份列表
5486
+ def show_gauss_my_sql_backup_policy(self, request):
5487
+ """查询自动备份策略
5143
5488
 
5144
- 查询增量备份列表。
5489
+ 查询自动备份策略。
5145
5490
 
5146
5491
  Please refer to HUAWEI cloud API Explorer for details.
5147
5492
 
5148
- :param request: Request instance for ShowGaussMySqlIncrementalBackupList
5149
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlIncrementalBackupListRequest`
5150
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlIncrementalBackupListResponse`
5493
+ :param request: Request instance for ShowGaussMySqlBackupPolicy
5494
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupPolicyRequest`
5495
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlBackupPolicyResponse`
5151
5496
  """
5152
- http_info = self._show_gauss_my_sql_incremental_backup_list_http_info(request)
5497
+ http_info = self._show_gauss_my_sql_backup_policy_http_info(request)
5153
5498
  return self._call_api(**http_info)
5154
5499
 
5155
- def show_gauss_my_sql_incremental_backup_list_invoker(self, request):
5156
- http_info = self._show_gauss_my_sql_incremental_backup_list_http_info(request)
5500
+ def show_gauss_my_sql_backup_policy_invoker(self, request):
5501
+ http_info = self._show_gauss_my_sql_backup_policy_http_info(request)
5157
5502
  return SyncInvoker(self, http_info)
5158
5503
 
5159
5504
  @classmethod
5160
- def _show_gauss_my_sql_incremental_backup_list_http_info(cls, request):
5505
+ def _show_gauss_my_sql_backup_policy_http_info(cls, 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(self, request):
5554
+ """获取参数模板详情
5555
+
5556
+ 获取指定参数模板的参数信息。
5557
+
5558
+ Please refer to HUAWEI cloud API Explorer for details.
5559
+
5560
+ :param request: Request instance for ShowGaussMySqlConfiguration
5561
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlConfigurationRequest`
5562
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlConfigurationResponse`
5563
+ """
5564
+ http_info = self._show_gauss_my_sql_configuration_http_info(request)
5565
+ return self._call_api(**http_info)
5566
+
5567
+ def show_gauss_my_sql_configuration_invoker(self, request):
5568
+ http_info = self._show_gauss_my_sql_configuration_http_info(request)
5569
+ return SyncInvoker(self, http_info)
5570
+
5571
+ @classmethod
5572
+ def _show_gauss_my_sql_configuration_http_info(cls, 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(self, request):
5621
+ """查询数据库引擎的版本
5622
+
5623
+ 获取指定数据库引擎对应的数据库版本信息。
5624
+
5625
+ Please refer to HUAWEI cloud API Explorer for details.
5626
+
5627
+ :param request: Request instance for ShowGaussMySqlEngineVersion
5628
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlEngineVersionRequest`
5629
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlEngineVersionResponse`
5630
+ """
5631
+ http_info = self._show_gauss_my_sql_engine_version_http_info(request)
5632
+ return self._call_api(**http_info)
5633
+
5634
+ def show_gauss_my_sql_engine_version_invoker(self, request):
5635
+ http_info = self._show_gauss_my_sql_engine_version_http_info(request)
5636
+ return SyncInvoker(self, http_info)
5637
+
5638
+ @classmethod
5639
+ def _show_gauss_my_sql_engine_version_http_info(cls, 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(self, request):
5688
+ """查询数据库规格
5689
+
5690
+ 获取指定数据库引擎版本对应的规格信息。
5691
+
5692
+ Please refer to HUAWEI cloud API Explorer for details.
5693
+
5694
+ :param request: Request instance for ShowGaussMySqlFlavors
5695
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlFlavorsRequest`
5696
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlFlavorsResponse`
5697
+ """
5698
+ http_info = self._show_gauss_my_sql_flavors_http_info(request)
5699
+ return self._call_api(**http_info)
5700
+
5701
+ def show_gauss_my_sql_flavors_invoker(self, request):
5702
+ http_info = self._show_gauss_my_sql_flavors_http_info(request)
5703
+ return SyncInvoker(self, http_info)
5704
+
5705
+ @classmethod
5706
+ def _show_gauss_my_sql_flavors_http_info(cls, 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(self, request):
5761
+ """查询增量备份列表
5762
+
5763
+ 查询增量备份列表。
5764
+
5765
+ Please refer to HUAWEI cloud API Explorer for details.
5766
+
5767
+ :param request: Request instance for ShowGaussMySqlIncrementalBackupList
5768
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlIncrementalBackupListRequest`
5769
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlIncrementalBackupListResponse`
5770
+ """
5771
+ http_info = self._show_gauss_my_sql_incremental_backup_list_http_info(request)
5772
+ return self._call_api(**http_info)
5773
+
5774
+ def show_gauss_my_sql_incremental_backup_list_invoker(self, request):
5775
+ http_info = self._show_gauss_my_sql_incremental_backup_list_http_info(request)
5776
+ return SyncInvoker(self, http_info)
5777
+
5778
+ @classmethod
5779
+ def _show_gauss_my_sql_incremental_backup_list_http_info(cls, 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(self, request):
5836
+ """查询实例详情信息
5837
+
5838
+ 查询实例详情信息。
5839
+
5840
+ Please refer to HUAWEI cloud API Explorer for details.
5841
+
5842
+ :param request: Request instance for ShowGaussMySqlInstanceInfo
5843
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoRequest`
5844
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoResponse`
5845
+ """
5846
+ http_info = self._show_gauss_my_sql_instance_info_http_info(request)
5847
+ return self._call_api(**http_info)
5848
+
5849
+ def show_gauss_my_sql_instance_info_invoker(self, request):
5850
+ http_info = self._show_gauss_my_sql_instance_info_http_info(request)
5851
+ return SyncInvoker(self, http_info)
5852
+
5853
+ @classmethod
5854
+ def _show_gauss_my_sql_instance_info_http_info(cls, 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(self, request):
5903
+ """查询实例详情信息
5904
+
5905
+ 查询实例详情信息。
5906
+
5907
+ Please refer to HUAWEI cloud API Explorer for details.
5908
+
5909
+ :param request: Request instance for ShowGaussMySqlInstanceInfoUnifyStatus
5910
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoUnifyStatusRequest`
5911
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoUnifyStatusResponse`
5912
+ """
5913
+ http_info = self._show_gauss_my_sql_instance_info_unify_status_http_info(request)
5914
+ return self._call_api(**http_info)
5915
+
5916
+ def show_gauss_my_sql_instance_info_unify_status_invoker(self, request):
5917
+ http_info = self._show_gauss_my_sql_instance_info_unify_status_http_info(request)
5918
+ return SyncInvoker(self, http_info)
5919
+
5920
+ @classmethod
5921
+ def _show_gauss_my_sql_instance_info_unify_status_http_info(cls, 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(self, request):
5970
+ """获取指定ID的任务信息
5971
+
5972
+ 获取GaussDB(for MySQL)任务中心指定ID的任务信息。
5973
+
5974
+ Please refer to HUAWEI cloud API Explorer for details.
5975
+
5976
+ :param request: Request instance for ShowGaussMySqlJobInfo
5977
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlJobInfoRequest`
5978
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlJobInfoResponse`
5979
+ """
5980
+ http_info = self._show_gauss_my_sql_job_info_http_info(request)
5981
+ return self._call_api(**http_info)
5982
+
5983
+ def show_gauss_my_sql_job_info_invoker(self, request):
5984
+ http_info = self._show_gauss_my_sql_job_info_http_info(request)
5985
+ return SyncInvoker(self, http_info)
5986
+
5987
+ @classmethod
5988
+ def _show_gauss_my_sql_job_info_http_info(cls, 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(self, request):
6037
+ """查询租户的实例配额
6038
+
6039
+ 获取指定租户的资源配额。
6040
+
6041
+ Please refer to HUAWEI cloud API Explorer for details.
6042
+
6043
+ :param request: Request instance for ShowGaussMySqlProjectQuotas
6044
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProjectQuotasRequest`
6045
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProjectQuotasResponse`
6046
+ """
6047
+ http_info = self._show_gauss_my_sql_project_quotas_http_info(request)
6048
+ return self._call_api(**http_info)
6049
+
6050
+ def show_gauss_my_sql_project_quotas_invoker(self, request):
6051
+ http_info = self._show_gauss_my_sql_project_quotas_http_info(request)
6052
+ return SyncInvoker(self, http_info)
6053
+
6054
+ @classmethod
6055
+ def _show_gauss_my_sql_project_quotas_http_info(cls, 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(self, request):
6104
+ """查询数据库代理规格信息
6105
+
6106
+ 查询数据库代理规格信息。
6107
+
6108
+ Please refer to HUAWEI cloud API Explorer for details.
6109
+
6110
+ :param request: Request instance for ShowGaussMySqlProxyFlavors
6111
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyFlavorsRequest`
6112
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyFlavorsResponse`
6113
+ """
6114
+ http_info = self._show_gauss_my_sql_proxy_flavors_http_info(request)
6115
+ return self._call_api(**http_info)
6116
+
6117
+ def show_gauss_my_sql_proxy_flavors_invoker(self, request):
6118
+ http_info = self._show_gauss_my_sql_proxy_flavors_http_info(request)
6119
+ return SyncInvoker(self, http_info)
6120
+
6121
+ @classmethod
6122
+ def _show_gauss_my_sql_proxy_flavors_http_info(cls, 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(self, request):
6171
+ """查询数据库代理信息列表
6172
+
6173
+ 查询数据库代理信息列表。
6174
+
6175
+ Please refer to HUAWEI cloud API Explorer for details.
6176
+
6177
+ :param request: Request instance for ShowGaussMySqlProxyList
6178
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyListRequest`
6179
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyListResponse`
6180
+ """
6181
+ http_info = self._show_gauss_my_sql_proxy_list_http_info(request)
6182
+ return self._call_api(**http_info)
6183
+
6184
+ def show_gauss_my_sql_proxy_list_invoker(self, request):
6185
+ http_info = self._show_gauss_my_sql_proxy_list_http_info(request)
6186
+ return SyncInvoker(self, http_info)
6187
+
6188
+ @classmethod
6189
+ def _show_gauss_my_sql_proxy_list_http_info(cls, 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(self, request):
6242
+ """查询租户基于企业项目的资源配额
6243
+
6244
+ 获取指定企业项目的资源配额。
6245
+
6246
+ Please refer to HUAWEI cloud API Explorer for details.
6247
+
6248
+ :param request: Request instance for ShowGaussMySqlQuotas
6249
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlQuotasRequest`
6250
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlQuotasResponse`
6251
+ """
6252
+ http_info = self._show_gauss_my_sql_quotas_http_info(request)
6253
+ return self._call_api(**http_info)
6254
+
6255
+ def show_gauss_my_sql_quotas_invoker(self, request):
6256
+ http_info = self._show_gauss_my_sql_quotas_http_info(request)
6257
+ return SyncInvoker(self, http_info)
6258
+
6259
+ @classmethod
6260
+ def _show_gauss_my_sql_quotas_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
5213
6309
 
5214
6310
  return http_info
5215
6311
 
5216
- def show_gauss_my_sql_instance_info(self, request):
5217
- """查询实例详情信息
6312
+ def show_instance_database_version(self, request):
6313
+ """查询内核版本信息
5218
6314
 
5219
- 查询实例详情信息。
6315
+ 查询内核版本信息。
5220
6316
 
5221
6317
  Please refer to HUAWEI cloud API Explorer for details.
5222
6318
 
5223
- :param request: Request instance for ShowGaussMySqlInstanceInfo
5224
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoRequest`
5225
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoResponse`
6319
+ :param request: Request instance for ShowInstanceDatabaseVersion
6320
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceDatabaseVersionRequest`
6321
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceDatabaseVersionResponse`
5226
6322
  """
5227
- http_info = self._show_gauss_my_sql_instance_info_http_info(request)
6323
+ http_info = self._show_instance_database_version_http_info(request)
5228
6324
  return self._call_api(**http_info)
5229
6325
 
5230
- def show_gauss_my_sql_instance_info_invoker(self, request):
5231
- http_info = self._show_gauss_my_sql_instance_info_http_info(request)
6326
+ def show_instance_database_version_invoker(self, request):
6327
+ http_info = self._show_instance_database_version_http_info(request)
5232
6328
  return SyncInvoker(self, http_info)
5233
6329
 
5234
6330
  @classmethod
5235
- def _show_gauss_my_sql_instance_info_http_info(cls, request):
6331
+ def _show_instance_database_version_http_info(cls, 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 GaussDBClient(Client):
5280
6376
 
5281
6377
  return http_info
5282
6378
 
5283
- def show_gauss_my_sql_instance_info_unify_status(self, request):
5284
- """查询实例详情信息
6379
+ def show_instance_eip(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
- :param request: Request instance for ShowGaussMySqlInstanceInfoUnifyStatus
5291
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoUnifyStatusRequest`
5292
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlInstanceInfoUnifyStatusResponse`
6386
+ :param request: Request instance for ShowInstanceEip
6387
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceEipRequest`
6388
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceEipResponse`
5293
6389
  """
5294
- http_info = self._show_gauss_my_sql_instance_info_unify_status_http_info(request)
6390
+ http_info = self._show_instance_eip_http_info(request)
5295
6391
  return self._call_api(**http_info)
5296
6392
 
5297
- def show_gauss_my_sql_instance_info_unify_status_invoker(self, request):
5298
- http_info = self._show_gauss_my_sql_instance_info_unify_status_http_info(request)
6393
+ def show_instance_eip_invoker(self, request):
6394
+ http_info = self._show_instance_eip_http_info(request)
5299
6395
  return SyncInvoker(self, http_info)
5300
6396
 
5301
6397
  @classmethod
5302
- def _show_gauss_my_sql_instance_info_unify_status_http_info(cls, request):
6398
+ def _show_instance_eip_http_info(cls, 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 GaussDBClient(Client):
5347
6443
 
5348
6444
  return http_info
5349
6445
 
5350
- def show_gauss_my_sql_job_info(self, request):
5351
- """获取指定ID的任务信息
6446
+ def show_instance_monitor_extend(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
- :param request: Request instance for ShowGaussMySqlJobInfo
5358
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlJobInfoRequest`
5359
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlJobInfoResponse`
6453
+ :param request: Request instance for ShowInstanceMonitorExtend
6454
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceMonitorExtendRequest`
6455
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceMonitorExtendResponse`
5360
6456
  """
5361
- http_info = self._show_gauss_my_sql_job_info_http_info(request)
6457
+ http_info = self._show_instance_monitor_extend_http_info(request)
5362
6458
  return self._call_api(**http_info)
5363
6459
 
5364
- def show_gauss_my_sql_job_info_invoker(self, request):
5365
- http_info = self._show_gauss_my_sql_job_info_http_info(request)
6460
+ def show_instance_monitor_extend_invoker(self, request):
6461
+ http_info = self._show_instance_monitor_extend_http_info(request)
5366
6462
  return SyncInvoker(self, http_info)
5367
6463
 
5368
6464
  @classmethod
5369
- def _show_gauss_my_sql_job_info_http_info(cls, request):
6465
+ def _show_instance_monitor_extend_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
5414
6510
 
5415
6511
  return http_info
5416
6512
 
5417
- def show_gauss_my_sql_project_quotas(self, request):
5418
- """查询租户的实例配额
6513
+ def show_intelligent_diagnosis_abnormal_count_of_instances(self, request):
6514
+ """获取各指标的异常实例数
5419
6515
 
5420
- 获取指定租户的资源配额。
6516
+ 获取各指标的异常实例数。
5421
6517
 
5422
6518
  Please refer to HUAWEI cloud API Explorer for details.
5423
6519
 
5424
- :param request: Request instance for ShowGaussMySqlProjectQuotas
5425
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProjectQuotasRequest`
5426
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProjectQuotasResponse`
6520
+ :param request: Request instance for ShowIntelligentDiagnosisAbnormalCountOfInstances
6521
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisAbnormalCountOfInstancesRequest`
6522
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisAbnormalCountOfInstancesResponse`
5427
6523
  """
5428
- http_info = self._show_gauss_my_sql_project_quotas_http_info(request)
6524
+ http_info = self._show_intelligent_diagnosis_abnormal_count_of_instances_http_info(request)
5429
6525
  return self._call_api(**http_info)
5430
6526
 
5431
- def show_gauss_my_sql_project_quotas_invoker(self, request):
5432
- http_info = self._show_gauss_my_sql_project_quotas_http_info(request)
6527
+ def show_intelligent_diagnosis_abnormal_count_of_instances_invoker(self, request):
6528
+ http_info = self._show_intelligent_diagnosis_abnormal_count_of_instances_http_info(request)
5433
6529
  return SyncInvoker(self, http_info)
5434
6530
 
5435
6531
  @classmethod
5436
- def _show_gauss_my_sql_project_quotas_http_info(cls, request):
6532
+ def _show_intelligent_diagnosis_abnormal_count_of_instances_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
5481
6575
 
5482
6576
  return http_info
5483
6577
 
5484
- def show_gauss_my_sql_proxy_flavors(self, request):
5485
- """查询数据库代理规格信息
6578
+ def show_intelligent_diagnosis_instance_infos_per_metric(self, request):
6579
+ """获取某个指标的异常实例信息
5486
6580
 
5487
- 查询数据库代理规格信息。
6581
+ 获取某个指标的异常实例信息。
5488
6582
 
5489
6583
  Please refer to HUAWEI cloud API Explorer for details.
5490
6584
 
5491
- :param request: Request instance for ShowGaussMySqlProxyFlavors
5492
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyFlavorsRequest`
5493
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyFlavorsResponse`
6585
+ :param request: Request instance for ShowIntelligentDiagnosisInstanceInfosPerMetric
6586
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisInstanceInfosPerMetricRequest`
6587
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisInstanceInfosPerMetricResponse`
5494
6588
  """
5495
- http_info = self._show_gauss_my_sql_proxy_flavors_http_info(request)
6589
+ http_info = self._show_intelligent_diagnosis_instance_infos_per_metric_http_info(request)
5496
6590
  return self._call_api(**http_info)
5497
6591
 
5498
- def show_gauss_my_sql_proxy_flavors_invoker(self, request):
5499
- http_info = self._show_gauss_my_sql_proxy_flavors_http_info(request)
6592
+ def show_intelligent_diagnosis_instance_infos_per_metric_invoker(self, request):
6593
+ http_info = self._show_intelligent_diagnosis_instance_infos_per_metric_http_info(request)
5500
6594
  return SyncInvoker(self, http_info)
5501
6595
 
5502
6596
  @classmethod
5503
- def _show_gauss_my_sql_proxy_flavors_http_info(cls, request):
6597
+ def _show_intelligent_diagnosis_instance_infos_per_metric_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
5548
6646
 
5549
6647
  return http_info
5550
6648
 
5551
- def show_gauss_my_sql_proxy_list(self, request):
5552
- """查询数据库代理信息列表
6649
+ def show_lts_configs(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
- :param request: Request instance for ShowGaussMySqlProxyList
5559
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyListRequest`
5560
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlProxyListResponse`
6656
+ :param request: Request instance for ShowLtsConfigs
6657
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowLtsConfigsRequest`
6658
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowLtsConfigsResponse`
5561
6659
  """
5562
- http_info = self._show_gauss_my_sql_proxy_list_http_info(request)
6660
+ http_info = self._show_lts_configs_http_info(request)
5563
6661
  return self._call_api(**http_info)
5564
6662
 
5565
- def show_gauss_my_sql_proxy_list_invoker(self, request):
5566
- http_info = self._show_gauss_my_sql_proxy_list_http_info(request)
6663
+ def show_lts_configs_invoker(self, request):
6664
+ http_info = self._show_lts_configs_http_info(request)
5567
6665
  return SyncInvoker(self, http_info)
5568
6666
 
5569
6667
  @classmethod
5570
- def _show_gauss_my_sql_proxy_list_http_info(cls, request):
6668
+ def _show_lts_configs_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
5619
6721
 
5620
6722
  return http_info
5621
6723
 
5622
- def show_gauss_my_sql_quotas(self, request):
5623
- """查询租户基于企业项目的资源配额
6724
+ def show_proxy_configurations(self, request):
6725
+ """查询数据库代理内核参数。
5624
6726
 
5625
- 获取指定企业项目的资源配额。
6727
+ 查询数据库代理内核参数。
5626
6728
 
5627
6729
  Please refer to HUAWEI cloud API Explorer for details.
5628
6730
 
5629
- :param request: Request instance for ShowGaussMySqlQuotas
5630
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlQuotasRequest`
5631
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowGaussMySqlQuotasResponse`
6731
+ :param request: Request instance for ShowProxyConfigurations
6732
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowProxyConfigurationsRequest`
6733
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowProxyConfigurationsResponse`
5632
6734
  """
5633
- http_info = self._show_gauss_my_sql_quotas_http_info(request)
6735
+ http_info = self._show_proxy_configurations_http_info(request)
5634
6736
  return self._call_api(**http_info)
5635
6737
 
5636
- def show_gauss_my_sql_quotas_invoker(self, request):
5637
- http_info = self._show_gauss_my_sql_quotas_http_info(request)
6738
+ def show_proxy_configurations_invoker(self, request):
6739
+ http_info = self._show_proxy_configurations_http_info(request)
5638
6740
  return SyncInvoker(self, http_info)
5639
6741
 
5640
6742
  @classmethod
5641
- def _show_gauss_my_sql_quotas_http_info(cls, request):
6743
+ def _show_proxy_configurations_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
5690
6796
 
5691
6797
  return http_info
5692
6798
 
5693
- def show_instance_database_version(self, request):
5694
- """查询内核版本信息
6799
+ def show_proxy_ipgroup(self, request):
6800
+ """查询代理实例访问控制
5695
6801
 
5696
- 查询内核版本信息。
6802
+ 查询代理实例访问控制
5697
6803
 
5698
6804
  Please refer to HUAWEI cloud API Explorer for details.
5699
6805
 
5700
- :param request: Request instance for ShowInstanceDatabaseVersion
5701
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceDatabaseVersionRequest`
5702
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceDatabaseVersionResponse`
6806
+ :param request: Request instance for ShowProxyIpgroup
6807
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowProxyIpgroupRequest`
6808
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowProxyIpgroupResponse`
5703
6809
  """
5704
- http_info = self._show_instance_database_version_http_info(request)
6810
+ http_info = self._show_proxy_ipgroup_http_info(request)
5705
6811
  return self._call_api(**http_info)
5706
6812
 
5707
- def show_instance_database_version_invoker(self, request):
5708
- http_info = self._show_instance_database_version_http_info(request)
6813
+ def show_proxy_ipgroup_invoker(self, request):
6814
+ http_info = self._show_proxy_ipgroup_http_info(request)
5709
6815
  return SyncInvoker(self, http_info)
5710
6816
 
5711
6817
  @classmethod
5712
- def _show_instance_database_version_http_info(cls, request):
6818
+ def _show_proxy_ipgroup_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
5757
6865
 
5758
6866
  return http_info
5759
6867
 
5760
- def show_instance_monitor_extend(self, request):
5761
- """查询实例秒级监控
6868
+ def show_proxy_version(self, request):
6869
+ """查询代理实例小版本
5762
6870
 
5763
- 查询实例秒级监控信息。
6871
+ 查询代理实例小版本
5764
6872
 
5765
6873
  Please refer to HUAWEI cloud API Explorer for details.
5766
6874
 
5767
- :param request: Request instance for ShowInstanceMonitorExtend
5768
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceMonitorExtendRequest`
5769
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceMonitorExtendResponse`
6875
+ :param request: Request instance for ShowProxyVersion
6876
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowProxyVersionRequest`
6877
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowProxyVersionResponse`
5770
6878
  """
5771
- http_info = self._show_instance_monitor_extend_http_info(request)
6879
+ http_info = self._show_proxy_version_http_info(request)
5772
6880
  return self._call_api(**http_info)
5773
6881
 
5774
- def show_instance_monitor_extend_invoker(self, request):
5775
- http_info = self._show_instance_monitor_extend_http_info(request)
6882
+ def show_proxy_version_invoker(self, request):
6883
+ http_info = self._show_proxy_version_http_info(request)
5776
6884
  return SyncInvoker(self, http_info)
5777
6885
 
5778
6886
  @classmethod
5779
- def _show_instance_monitor_extend_http_info(cls, request):
6887
+ def _show_proxy_version_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
5824
6936
 
5825
6937
  return http_info
5826
6938
 
5827
- def show_intelligent_diagnosis_abnormal_count_of_instances(self, request):
5828
- """获取各指标的异常实例数
6939
+ def show_recycle_policy(self, request):
6940
+ """查询回收站策略
5829
6941
 
5830
- 获取各指标的异常实例数。
6942
+ 查询回收站策略
5831
6943
 
5832
6944
  Please refer to HUAWEI cloud API Explorer for details.
5833
6945
 
5834
- :param request: Request instance for ShowIntelligentDiagnosisAbnormalCountOfInstances
5835
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisAbnormalCountOfInstancesRequest`
5836
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisAbnormalCountOfInstancesResponse`
6946
+ :param request: Request instance for ShowRecyclePolicy
6947
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowRecyclePolicyRequest`
6948
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowRecyclePolicyResponse`
5837
6949
  """
5838
- http_info = self._show_intelligent_diagnosis_abnormal_count_of_instances_http_info(request)
6950
+ http_info = self._show_recycle_policy_http_info(request)
5839
6951
  return self._call_api(**http_info)
5840
6952
 
5841
- def show_intelligent_diagnosis_abnormal_count_of_instances_invoker(self, request):
5842
- http_info = self._show_intelligent_diagnosis_abnormal_count_of_instances_http_info(request)
6953
+ def show_recycle_policy_invoker(self, request):
6954
+ http_info = self._show_recycle_policy_http_info(request)
5843
6955
  return SyncInvoker(self, http_info)
5844
6956
 
5845
6957
  @classmethod
5846
- def _show_intelligent_diagnosis_abnormal_count_of_instances_http_info(cls, request):
6958
+ def _show_recycle_policy_http_info(cls, 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 GaussDBClient(Client):
5889
7001
 
5890
7002
  return http_info
5891
7003
 
5892
- def show_intelligent_diagnosis_instance_infos_per_metric(self, request):
5893
- """获取某个指标的异常实例信息
7004
+ def show_restore_tables(self, request):
7005
+ """查询表级时间点恢复可选表
5894
7006
 
5895
- 获取某个指标的异常实例信息。
7007
+ 查询表级时间点恢复可选表。
5896
7008
 
5897
7009
  Please refer to HUAWEI cloud API Explorer for details.
5898
7010
 
5899
- :param request: Request instance for ShowIntelligentDiagnosisInstanceInfosPerMetric
5900
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisInstanceInfosPerMetricRequest`
5901
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisInstanceInfosPerMetricResponse`
7011
+ :param request: Request instance for ShowRestoreTables
7012
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreTablesRequest`
7013
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreTablesResponse`
5902
7014
  """
5903
- http_info = self._show_intelligent_diagnosis_instance_infos_per_metric_http_info(request)
7015
+ http_info = self._show_restore_tables_http_info(request)
5904
7016
  return self._call_api(**http_info)
5905
7017
 
5906
- def show_intelligent_diagnosis_instance_infos_per_metric_invoker(self, request):
5907
- http_info = self._show_intelligent_diagnosis_instance_infos_per_metric_http_info(request)
7018
+ def show_restore_tables_invoker(self, request):
7019
+ http_info = self._show_restore_tables_http_info(request)
5908
7020
  return SyncInvoker(self, http_info)
5909
7021
 
5910
7022
  @classmethod
5911
- def _show_intelligent_diagnosis_instance_infos_per_metric_http_info(cls, request):
7023
+ def _show_restore_tables_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
5960
7076
 
5961
7077
  return http_info
5962
7078
 
5963
- def show_restore_tables(self, request):
5964
- """查询表级时间点恢复可选表
7079
+ def show_slowlog_sensitive_status(self, request):
7080
+ """查询慢日志脱敏状态
5965
7081
 
5966
- 查询表级时间点恢复可选表。
7082
+ 查询慢日志脱敏状态
5967
7083
 
5968
7084
  Please refer to HUAWEI cloud API Explorer for details.
5969
7085
 
5970
- :param request: Request instance for ShowRestoreTables
5971
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreTablesRequest`
5972
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowRestoreTablesResponse`
7086
+ :param request: Request instance for ShowSlowlogSensitiveStatus
7087
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowSlowlogSensitiveStatusRequest`
7088
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowSlowlogSensitiveStatusResponse`
5973
7089
  """
5974
- http_info = self._show_restore_tables_http_info(request)
7090
+ http_info = self._show_slowlog_sensitive_status_http_info(request)
5975
7091
  return self._call_api(**http_info)
5976
7092
 
5977
- def show_restore_tables_invoker(self, request):
5978
- http_info = self._show_restore_tables_http_info(request)
7093
+ def show_slowlog_sensitive_status_invoker(self, request):
7094
+ http_info = self._show_slowlog_sensitive_status_http_info(request)
5979
7095
  return SyncInvoker(self, http_info)
5980
7096
 
5981
7097
  @classmethod
5982
- def _show_restore_tables_http_info(cls, request):
7098
+ def _show_slowlog_sensitive_status_http_info(cls, 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 GaussDBClient(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 GaussDBClient(Client):
7700
8808
 
7701
8809
  return http_info
7702
8810
 
8811
+ def update_proxy_name(self, request):
8812
+ """修改代理实例名称
8813
+
8814
+ 修改代理实例名称
8815
+
8816
+ Please refer to HUAWEI cloud API Explorer for details.
8817
+
8818
+ :param request: Request instance for UpdateProxyName
8819
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateProxyNameRequest`
8820
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateProxyNameResponse`
8821
+ """
8822
+ http_info = self._update_proxy_name_http_info(request)
8823
+ return self._call_api(**http_info)
8824
+
8825
+ def update_proxy_name_invoker(self, request):
8826
+ http_info = self._update_proxy_name_http_info(request)
8827
+ return SyncInvoker(self, http_info)
8828
+
8829
+ @classmethod
8830
+ def _update_proxy_name_http_info(cls, 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(self, request):
7704
8883
  """修改代理实例参数
7705
8884
 
@@ -7913,6 +9092,144 @@ class GaussDBClient(Client):
7913
9092
 
7914
9093
  return http_info
7915
9094
 
9095
+ def update_serverless_policy(self, request):
9096
+ """设置Serverless配置策略
9097
+
9098
+ 设置Serverless配置策略。
9099
+
9100
+ Please refer to HUAWEI cloud API Explorer for details.
9101
+
9102
+ :param request: Request instance for UpdateServerlessPolicy
9103
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateServerlessPolicyRequest`
9104
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateServerlessPolicyResponse`
9105
+ """
9106
+ http_info = self._update_serverless_policy_http_info(request)
9107
+ return self._call_api(**http_info)
9108
+
9109
+ def update_serverless_policy_invoker(self, request):
9110
+ http_info = self._update_serverless_policy_http_info(request)
9111
+ return SyncInvoker(self, http_info)
9112
+
9113
+ @classmethod
9114
+ def _update_serverless_policy_http_info(cls, 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(self, request):
9165
+ """开启或关闭慢日志脱敏状态
9166
+
9167
+ 开启或关闭慢日志脱敏状态
9168
+
9169
+ Please refer to HUAWEI cloud API Explorer for details.
9170
+
9171
+ :param request: Request instance for UpdateSlowlogSensitiveSwitch
9172
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpdateSlowlogSensitiveSwitchRequest`
9173
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpdateSlowlogSensitiveSwitchResponse`
9174
+ """
9175
+ http_info = self._update_slowlog_sensitive_switch_http_info(request)
9176
+ return self._call_api(**http_info)
9177
+
9178
+ def update_slowlog_sensitive_switch_invoker(self, request):
9179
+ http_info = self._update_slowlog_sensitive_switch_http_info(request)
9180
+ return SyncInvoker(self, http_info)
9181
+
9182
+ @classmethod
9183
+ def _update_slowlog_sensitive_switch_http_info(cls, 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(self, request):
7917
9234
  """设置proxy事务拆分
7918
9235
 
@@ -8051,6 +9368,77 @@ class GaussDBClient(Client):
8051
9368
 
8052
9369
  return http_info
8053
9370
 
9371
+ def upgrade_proxy_version(self, request):
9372
+ """升级数据库代理实例内核版本
9373
+
9374
+ 升级数据库代理实例内核版本。
9375
+
9376
+ Please refer to HUAWEI cloud API Explorer for details.
9377
+
9378
+ :param request: Request instance for UpgradeProxyVersion
9379
+ :type request: :class:`huaweicloudsdkgaussdb.v3.UpgradeProxyVersionRequest`
9380
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UpgradeProxyVersionResponse`
9381
+ """
9382
+ http_info = self._upgrade_proxy_version_http_info(request)
9383
+ return self._call_api(**http_info)
9384
+
9385
+ def upgrade_proxy_version_invoker(self, request):
9386
+ http_info = self._upgrade_proxy_version_http_info(request)
9387
+ return SyncInvoker(self, http_info)
9388
+
9389
+ @classmethod
9390
+ def _upgrade_proxy_version_http_info(cls, 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(self, request):
8055
9443
  """HTAP数据同步库配置校验
8056
9444