huaweicloudsdkgaussdb 3.1.98__py2.py3-none-any.whl → 3.1.100__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 (64) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +52 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1151 -45
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1151 -45
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +52 -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_node_priority_request.py +196 -0
  23. huaweicloudsdkgaussdb/v3/model/modify_node_priority_request_body.py +114 -0
  24. huaweicloudsdkgaussdb/v3/model/modify_node_priority_response.py +116 -0
  25. huaweicloudsdkgaussdb/v3/model/mysql_update_instance_name_request.py +32 -3
  26. huaweicloudsdkgaussdb/v3/model/proxy_configuration.py +260 -0
  27. huaweicloudsdkgaussdb/v3/model/proxy_ip_group_detail.py +170 -0
  28. huaweicloudsdkgaussdb/v3/model/recycle_instance_v3.py +579 -0
  29. huaweicloudsdkgaussdb/v3/model/recycle_policy.py +114 -0
  30. huaweicloudsdkgaussdb/v3/model/rename_instance_node_request.py +168 -0
  31. huaweicloudsdkgaussdb/v3/model/rename_instance_node_request_body.py +114 -0
  32. huaweicloudsdkgaussdb/v3/model/rename_instance_node_response.py +116 -0
  33. huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_request.py +171 -0
  34. huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_response.py +116 -0
  35. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request.py +140 -0
  36. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request_body.py +111 -0
  37. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_response.py +85 -0
  38. huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_request.py +201 -0
  39. huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_response.py +145 -0
  40. huaweicloudsdkgaussdb/v3/model/show_dedicated_resource_info_response.py +18 -18
  41. huaweicloudsdkgaussdb/v3/model/show_instance_eip_request.py +143 -0
  42. huaweicloudsdkgaussdb/v3/model/show_instance_eip_response.py +493 -0
  43. huaweicloudsdkgaussdb/v3/model/show_lts_configs_request.py +260 -0
  44. huaweicloudsdkgaussdb/v3/model/show_lts_configs_response.py +145 -0
  45. huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_request.py +258 -0
  46. huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_response.py +145 -0
  47. huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_response.py +5 -9
  48. huaweicloudsdkgaussdb/v3/model/show_recycle_policy_request.py +115 -0
  49. huaweicloudsdkgaussdb/v3/model/show_recycle_policy_response.py +112 -0
  50. huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_request.py +143 -0
  51. huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_response.py +116 -0
  52. huaweicloudsdkgaussdb/v3/model/single_node_info.py +142 -0
  53. huaweicloudsdkgaussdb/v3/model/template_apply_history.py +231 -0
  54. huaweicloudsdkgaussdb/v3/model/update_serverless_policy.py +142 -0
  55. huaweicloudsdkgaussdb/v3/model/update_serverless_policy_request.py +168 -0
  56. huaweicloudsdkgaussdb/v3/model/update_serverless_policy_response.py +85 -0
  57. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request.py +168 -0
  58. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request_body.py +114 -0
  59. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_response.py +85 -0
  60. {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/METADATA +2 -2
  61. {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/RECORD +64 -12
  62. {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/LICENSE +0 -0
  63. {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.dist-info}/WHEEL +0 -0
  64. {huaweicloudsdkgaussdb-3.1.98.dist-info → huaweicloudsdkgaussdb-3.1.100.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,10 +4440,148 @@ 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)实例数据库用户密码。
4447
+
4448
+ Please refer to HUAWEI cloud API Explorer for details.
4449
+
4450
+ :param request: Request instance for ResetGaussMySqlDatabasePassword
4451
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlDatabasePasswordRequest`
4452
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlDatabasePasswordResponse`
4453
+ """
4454
+ http_info = self._reset_gauss_my_sql_database_password_http_info(request)
4455
+ return self._call_api(**http_info)
4456
+
4457
+ def reset_gauss_my_sql_database_password_invoker(self, request):
4458
+ http_info = self._reset_gauss_my_sql_database_password_http_info(request)
4459
+ return SyncInvoker(self, http_info)
4460
+
4461
+ @classmethod
4462
+ def _reset_gauss_my_sql_database_password_http_info(cls, request):
4463
+ http_info = {
4464
+ "method": "PUT",
4465
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/db-users/password",
4466
+ "request_type": request.__class__.__name__,
4467
+ "response_type": "ResetGaussMySqlDatabasePasswordResponse"
4468
+ }
4469
+
4470
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4471
+
4472
+ cname = None
4473
+
4474
+ collection_formats = {}
4475
+
4476
+ path_params = {}
4477
+ if 'instance_id' in local_var_params:
4478
+ path_params['instance_id'] = local_var_params['instance_id']
4479
+
4480
+ query_params = []
4481
+
4482
+ header_params = {}
4483
+ if 'x_language' in local_var_params:
4484
+ header_params['X-Language'] = local_var_params['x_language']
4485
+
4486
+ form_params = {}
4487
+
4488
+ body = None
4489
+ if 'body' in local_var_params:
4490
+ body = local_var_params['body']
4491
+ if isinstance(request, SdkStreamRequest):
4492
+ body = request.get_file_stream()
4493
+
4494
+ response_headers = []
4495
+
4496
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4497
+ ['application/json;charset=UTF-8'])
4498
+
4499
+ auth_settings = []
4500
+
4501
+ http_info["cname"] = cname
4502
+ http_info["collection_formats"] = collection_formats
4503
+ http_info["path_params"] = path_params
4504
+ http_info["query_params"] = query_params
4505
+ http_info["header_params"] = header_params
4506
+ http_info["post_params"] = form_params
4507
+ http_info["body"] = body
4508
+ http_info["response_headers"] = response_headers
4509
+
4510
+ return http_info
4511
+
4512
+ def reset_gauss_my_sql_password(self, request):
4513
+ """重置数据库密码
4514
+
4515
+ 重置数据库密码。
4516
+
4517
+ Please refer to HUAWEI cloud API Explorer for details.
4518
+
4519
+ :param request: Request instance for ResetGaussMySqlPassword
4520
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlPasswordRequest`
4521
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ResetGaussMySqlPasswordResponse`
4522
+ """
4523
+ http_info = self._reset_gauss_my_sql_password_http_info(request)
4524
+ return self._call_api(**http_info)
4525
+
4526
+ def reset_gauss_my_sql_password_invoker(self, request):
4527
+ http_info = self._reset_gauss_my_sql_password_http_info(request)
4528
+ return SyncInvoker(self, http_info)
4529
+
4530
+ @classmethod
4531
+ def _reset_gauss_my_sql_password_http_info(cls, request):
4532
+ http_info = {
4533
+ "method": "POST",
4534
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/password",
4535
+ "request_type": request.__class__.__name__,
4536
+ "response_type": "ResetGaussMySqlPasswordResponse"
4537
+ }
4538
+
4539
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4540
+
4541
+ cname = None
4542
+
4543
+ collection_formats = {}
4544
+
4545
+ path_params = {}
4546
+ if 'instance_id' in local_var_params:
4547
+ path_params['instance_id'] = local_var_params['instance_id']
4548
+
4549
+ query_params = []
4550
+
4551
+ header_params = {}
4552
+ if 'x_language' in local_var_params:
4553
+ header_params['X-Language'] = local_var_params['x_language']
4554
+
4555
+ form_params = {}
4556
+
4557
+ body = None
4558
+ if 'body' in local_var_params:
4559
+ body = local_var_params['body']
4560
+ if isinstance(request, SdkStreamRequest):
4561
+ body = request.get_file_stream()
4562
+
4563
+ response_headers = []
4564
+
4565
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4566
+ ['application/json;charset=UTF-8'])
4567
+
4568
+ auth_settings = []
4569
+
4570
+ http_info["cname"] = cname
4571
+ http_info["collection_formats"] = collection_formats
4572
+ http_info["path_params"] = path_params
4573
+ http_info["query_params"] = query_params
4574
+ http_info["header_params"] = header_params
4575
+ http_info["post_params"] = form_params
4576
+ http_info["body"] = body
4577
+ http_info["response_headers"] = response_headers
4578
+
4579
+ return http_info
4580
+
4581
+ def restart_gauss_my_sql_instance(self, request):
4582
+ """重启数据库实例
4583
+
4584
+ 重启数据库实例。
4173
4585
 
4174
4586
  Please refer to HUAWEI cloud API Explorer for details.
4175
4587
 
@@ -4306,6 +4718,75 @@ class GaussDBClient(Client):
4306
4718
 
4307
4719
  return http_info
4308
4720
 
4721
+ def restart_proxy_instance(self, request):
4722
+ """重启数据库代理.
4723
+
4724
+ 重启数据库代理.
4725
+
4726
+ Please refer to HUAWEI cloud API Explorer for details.
4727
+
4728
+ :param request: Request instance for RestartProxyInstance
4729
+ :type request: :class:`huaweicloudsdkgaussdb.v3.RestartProxyInstanceRequest`
4730
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.RestartProxyInstanceResponse`
4731
+ """
4732
+ http_info = self._restart_proxy_instance_http_info(request)
4733
+ return self._call_api(**http_info)
4734
+
4735
+ def restart_proxy_instance_invoker(self, request):
4736
+ http_info = self._restart_proxy_instance_http_info(request)
4737
+ return SyncInvoker(self, http_info)
4738
+
4739
+ @classmethod
4740
+ def _restart_proxy_instance_http_info(cls, request):
4741
+ http_info = {
4742
+ "method": "POST",
4743
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/restart",
4744
+ "request_type": request.__class__.__name__,
4745
+ "response_type": "RestartProxyInstanceResponse"
4746
+ }
4747
+
4748
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4749
+
4750
+ cname = None
4751
+
4752
+ collection_formats = {}
4753
+
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']
4759
+
4760
+ query_params = []
4761
+
4762
+ header_params = {}
4763
+ if 'x_language' in local_var_params:
4764
+ header_params['X-Language'] = local_var_params['x_language']
4765
+
4766
+ form_params = {}
4767
+
4768
+ body = None
4769
+ if isinstance(request, SdkStreamRequest):
4770
+ body = request.get_file_stream()
4771
+
4772
+ response_headers = []
4773
+
4774
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4775
+ ['application/json'])
4776
+
4777
+ auth_settings = []
4778
+
4779
+ http_info["cname"] = cname
4780
+ http_info["collection_formats"] = collection_formats
4781
+ http_info["path_params"] = path_params
4782
+ http_info["query_params"] = query_params
4783
+ http_info["header_params"] = header_params
4784
+ http_info["post_params"] = form_params
4785
+ http_info["body"] = body
4786
+ http_info["response_headers"] = response_headers
4787
+
4788
+ return http_info
4789
+
4309
4790
  def restore_old_instance(self, request):
4310
4791
  """备份恢复到当前实例或已有实例
4311
4792
 
@@ -4511,6 +4992,73 @@ class GaussDBClient(Client):
4511
4992
 
4512
4993
  return http_info
4513
4994
 
4995
+ def set_recycle_policy(self, request):
4996
+ """设置回收站策略
4997
+
4998
+ 设置回收站策略
4999
+
5000
+ Please refer to HUAWEI cloud API Explorer for details.
5001
+
5002
+ :param request: Request instance for SetRecyclePolicy
5003
+ :type request: :class:`huaweicloudsdkgaussdb.v3.SetRecyclePolicyRequest`
5004
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.SetRecyclePolicyResponse`
5005
+ """
5006
+ http_info = self._set_recycle_policy_http_info(request)
5007
+ return self._call_api(**http_info)
5008
+
5009
+ def set_recycle_policy_invoker(self, request):
5010
+ http_info = self._set_recycle_policy_http_info(request)
5011
+ return SyncInvoker(self, http_info)
5012
+
5013
+ @classmethod
5014
+ def _set_recycle_policy_http_info(cls, request):
5015
+ http_info = {
5016
+ "method": "PUT",
5017
+ "resource_path": "/v3/{project_id}/instances/recycle-policy",
5018
+ "request_type": request.__class__.__name__,
5019
+ "response_type": "SetRecyclePolicyResponse"
5020
+ }
5021
+
5022
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5023
+
5024
+ cname = None
5025
+
5026
+ collection_formats = {}
5027
+
5028
+ path_params = {}
5029
+
5030
+ query_params = []
5031
+
5032
+ header_params = {}
5033
+ if 'x_language' in local_var_params:
5034
+ header_params['X-Language'] = local_var_params['x_language']
5035
+
5036
+ form_params = {}
5037
+
5038
+ body = None
5039
+ if 'body' in local_var_params:
5040
+ body = local_var_params['body']
5041
+ if isinstance(request, SdkStreamRequest):
5042
+ body = request.get_file_stream()
5043
+
5044
+ response_headers = []
5045
+
5046
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5047
+ ['application/json;charset=UTF-8'])
5048
+
5049
+ auth_settings = []
5050
+
5051
+ http_info["cname"] = cname
5052
+ http_info["collection_formats"] = collection_formats
5053
+ http_info["path_params"] = path_params
5054
+ http_info["query_params"] = query_params
5055
+ http_info["header_params"] = header_params
5056
+ http_info["post_params"] = form_params
5057
+ http_info["body"] = body
5058
+ http_info["response_headers"] = response_headers
5059
+
5060
+ return http_info
5061
+
4514
5062
  def show_audit_log(self, request):
4515
5063
  """查询全量SQL开关状态
4516
5064
 
@@ -4578,6 +5126,77 @@ class GaussDBClient(Client):
4578
5126
 
4579
5127
  return http_info
4580
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 = {}
5163
+ if 'instance_id' in local_var_params:
5164
+ path_params['instance_id'] = local_var_params['instance_id']
5165
+
5166
+ query_params = []
5167
+ if 'limit' in local_var_params:
5168
+ query_params.append(('limit', local_var_params['limit']))
5169
+ if 'offset' in local_var_params:
5170
+ query_params.append(('offset', local_var_params['offset']))
5171
+
5172
+ header_params = {}
5173
+ if 'x_language' in local_var_params:
5174
+ header_params['X-Language'] = local_var_params['x_language']
5175
+
5176
+ form_params = {}
5177
+
5178
+ body = None
5179
+ if isinstance(request, SdkStreamRequest):
5180
+ body = request.get_file_stream()
5181
+
5182
+ response_headers = []
5183
+
5184
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5185
+ ['application/json'])
5186
+
5187
+ auth_settings = []
5188
+
5189
+ http_info["cname"] = cname
5190
+ http_info["collection_formats"] = collection_formats
5191
+ http_info["path_params"] = path_params
5192
+ http_info["query_params"] = query_params
5193
+ http_info["header_params"] = header_params
5194
+ http_info["post_params"] = form_params
5195
+ http_info["body"] = body
5196
+ http_info["response_headers"] = response_headers
5197
+
5198
+ return http_info
5199
+
4581
5200
  def show_auto_scaling_policy(self, request):
4582
5201
  """查询自动变配
4583
5202
 
@@ -5757,6 +6376,73 @@ class GaussDBClient(Client):
5757
6376
 
5758
6377
  return http_info
5759
6378
 
6379
+ def show_instance_eip(self, request):
6380
+ """查询弹性公网IP。
6381
+
6382
+ 查询弹性公网IP。
6383
+
6384
+ Please refer to HUAWEI cloud API Explorer for details.
6385
+
6386
+ :param request: Request instance for ShowInstanceEip
6387
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceEipRequest`
6388
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowInstanceEipResponse`
6389
+ """
6390
+ http_info = self._show_instance_eip_http_info(request)
6391
+ return self._call_api(**http_info)
6392
+
6393
+ def show_instance_eip_invoker(self, request):
6394
+ http_info = self._show_instance_eip_http_info(request)
6395
+ return SyncInvoker(self, http_info)
6396
+
6397
+ @classmethod
6398
+ def _show_instance_eip_http_info(cls, request):
6399
+ http_info = {
6400
+ "method": "GET",
6401
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/eip",
6402
+ "request_type": request.__class__.__name__,
6403
+ "response_type": "ShowInstanceEipResponse"
6404
+ }
6405
+
6406
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6407
+
6408
+ cname = None
6409
+
6410
+ collection_formats = {}
6411
+
6412
+ path_params = {}
6413
+ if 'instance_id' in local_var_params:
6414
+ path_params['instance_id'] = local_var_params['instance_id']
6415
+
6416
+ query_params = []
6417
+
6418
+ header_params = {}
6419
+ if 'x_language' in local_var_params:
6420
+ header_params['X-Language'] = local_var_params['x_language']
6421
+
6422
+ form_params = {}
6423
+
6424
+ body = None
6425
+ if isinstance(request, SdkStreamRequest):
6426
+ body = request.get_file_stream()
6427
+
6428
+ response_headers = []
6429
+
6430
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6431
+ ['application/json'])
6432
+
6433
+ auth_settings = []
6434
+
6435
+ http_info["cname"] = cname
6436
+ http_info["collection_formats"] = collection_formats
6437
+ http_info["path_params"] = path_params
6438
+ http_info["query_params"] = query_params
6439
+ http_info["header_params"] = header_params
6440
+ http_info["post_params"] = form_params
6441
+ http_info["body"] = body
6442
+ http_info["response_headers"] = response_headers
6443
+
6444
+ return http_info
6445
+
5760
6446
  def show_instance_monitor_extend(self, request):
5761
6447
  """查询实例秒级监控
5762
6448
 
@@ -5848,7 +6534,143 @@ class GaussDBClient(Client):
5848
6534
  "method": "GET",
5849
6535
  "resource_path": "/v3/{project_id}/instances/diagnosis-instance-count",
5850
6536
  "request_type": request.__class__.__name__,
5851
- "response_type": "ShowIntelligentDiagnosisAbnormalCountOfInstancesResponse"
6537
+ "response_type": "ShowIntelligentDiagnosisAbnormalCountOfInstancesResponse"
6538
+ }
6539
+
6540
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6541
+
6542
+ cname = None
6543
+
6544
+ collection_formats = {}
6545
+
6546
+ path_params = {}
6547
+
6548
+ query_params = []
6549
+
6550
+ header_params = {}
6551
+ if 'x_language' in local_var_params:
6552
+ header_params['X-Language'] = local_var_params['x_language']
6553
+
6554
+ form_params = {}
6555
+
6556
+ body = None
6557
+ if isinstance(request, SdkStreamRequest):
6558
+ body = request.get_file_stream()
6559
+
6560
+ response_headers = []
6561
+
6562
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6563
+ ['application/json'])
6564
+
6565
+ auth_settings = []
6566
+
6567
+ http_info["cname"] = cname
6568
+ http_info["collection_formats"] = collection_formats
6569
+ http_info["path_params"] = path_params
6570
+ http_info["query_params"] = query_params
6571
+ http_info["header_params"] = header_params
6572
+ http_info["post_params"] = form_params
6573
+ http_info["body"] = body
6574
+ http_info["response_headers"] = response_headers
6575
+
6576
+ return http_info
6577
+
6578
+ def show_intelligent_diagnosis_instance_infos_per_metric(self, request):
6579
+ """获取某个指标的异常实例信息
6580
+
6581
+ 获取某个指标的异常实例信息。
6582
+
6583
+ Please refer to HUAWEI cloud API Explorer for details.
6584
+
6585
+ :param request: Request instance for ShowIntelligentDiagnosisInstanceInfosPerMetric
6586
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisInstanceInfosPerMetricRequest`
6587
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisInstanceInfosPerMetricResponse`
6588
+ """
6589
+ http_info = self._show_intelligent_diagnosis_instance_infos_per_metric_http_info(request)
6590
+ return self._call_api(**http_info)
6591
+
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)
6594
+ return SyncInvoker(self, http_info)
6595
+
6596
+ @classmethod
6597
+ def _show_intelligent_diagnosis_instance_infos_per_metric_http_info(cls, request):
6598
+ http_info = {
6599
+ "method": "GET",
6600
+ "resource_path": "/v3/{project_id}/instances/diagnosis-instance-infos",
6601
+ "request_type": request.__class__.__name__,
6602
+ "response_type": "ShowIntelligentDiagnosisInstanceInfosPerMetricResponse"
6603
+ }
6604
+
6605
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6606
+
6607
+ cname = None
6608
+
6609
+ collection_formats = {}
6610
+
6611
+ path_params = {}
6612
+
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']))
6620
+
6621
+ header_params = {}
6622
+ if 'x_language' in local_var_params:
6623
+ header_params['X-Language'] = local_var_params['x_language']
6624
+
6625
+ form_params = {}
6626
+
6627
+ body = None
6628
+ if isinstance(request, SdkStreamRequest):
6629
+ body = request.get_file_stream()
6630
+
6631
+ response_headers = []
6632
+
6633
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6634
+ ['application/json'])
6635
+
6636
+ auth_settings = []
6637
+
6638
+ http_info["cname"] = cname
6639
+ http_info["collection_formats"] = collection_formats
6640
+ http_info["path_params"] = path_params
6641
+ http_info["query_params"] = query_params
6642
+ http_info["header_params"] = header_params
6643
+ http_info["post_params"] = form_params
6644
+ http_info["body"] = body
6645
+ http_info["response_headers"] = response_headers
6646
+
6647
+ return http_info
6648
+
6649
+ def show_lts_configs(self, request):
6650
+ """查询实例LTS日志配置列表
6651
+
6652
+ 查询实例LTS日志配置列表
6653
+
6654
+ Please refer to HUAWEI cloud API Explorer for details.
6655
+
6656
+ :param request: Request instance for ShowLtsConfigs
6657
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowLtsConfigsRequest`
6658
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowLtsConfigsResponse`
6659
+ """
6660
+ http_info = self._show_lts_configs_http_info(request)
6661
+ return self._call_api(**http_info)
6662
+
6663
+ def show_lts_configs_invoker(self, request):
6664
+ http_info = self._show_lts_configs_http_info(request)
6665
+ return SyncInvoker(self, http_info)
6666
+
6667
+ @classmethod
6668
+ def _show_lts_configs_http_info(cls, request):
6669
+ http_info = {
6670
+ "method": "GET",
6671
+ "resource_path": "/v3/{project_id}/logs/lts-configs",
6672
+ "request_type": request.__class__.__name__,
6673
+ "response_type": "ShowLtsConfigsResponse"
5852
6674
  }
5853
6675
 
5854
6676
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5860,6 +6682,16 @@ class GaussDBClient(Client):
5860
6682
  path_params = {}
5861
6683
 
5862
6684
  query_params = []
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']))
6691
+ if 'limit' in local_var_params:
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']))
5863
6695
 
5864
6696
  header_params = {}
5865
6697
  if 'x_language' in local_var_params:
@@ -5889,31 +6721,31 @@ class GaussDBClient(Client):
5889
6721
 
5890
6722
  return http_info
5891
6723
 
5892
- def show_intelligent_diagnosis_instance_infos_per_metric(self, request):
5893
- """获取某个指标的异常实例信息
6724
+ def show_proxy_configurations(self, request):
6725
+ """查询数据库代理内核参数。
5894
6726
 
5895
- 获取某个指标的异常实例信息。
6727
+ 查询数据库代理内核参数。
5896
6728
 
5897
6729
  Please refer to HUAWEI cloud API Explorer for details.
5898
6730
 
5899
- :param request: Request instance for ShowIntelligentDiagnosisInstanceInfosPerMetric
5900
- :type request: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisInstanceInfosPerMetricRequest`
5901
- :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowIntelligentDiagnosisInstanceInfosPerMetricResponse`
6731
+ :param request: Request instance for ShowProxyConfigurations
6732
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowProxyConfigurationsRequest`
6733
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowProxyConfigurationsResponse`
5902
6734
  """
5903
- http_info = self._show_intelligent_diagnosis_instance_infos_per_metric_http_info(request)
6735
+ http_info = self._show_proxy_configurations_http_info(request)
5904
6736
  return self._call_api(**http_info)
5905
6737
 
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)
6738
+ def show_proxy_configurations_invoker(self, request):
6739
+ http_info = self._show_proxy_configurations_http_info(request)
5908
6740
  return SyncInvoker(self, http_info)
5909
6741
 
5910
6742
  @classmethod
5911
- def _show_intelligent_diagnosis_instance_infos_per_metric_http_info(cls, request):
6743
+ def _show_proxy_configurations_http_info(cls, request):
5912
6744
  http_info = {
5913
6745
  "method": "GET",
5914
- "resource_path": "/v3/{project_id}/instances/diagnosis-instance-infos",
6746
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/configurations",
5915
6747
  "request_type": request.__class__.__name__,
5916
- "response_type": "ShowIntelligentDiagnosisInstanceInfosPerMetricResponse"
6748
+ "response_type": "ShowProxyConfigurationsResponse"
5917
6749
  }
5918
6750
 
5919
6751
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -5923,14 +6755,18 @@ class GaussDBClient(Client):
5923
6755
  collection_formats = {}
5924
6756
 
5925
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']
5926
6762
 
5927
6763
  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
6764
  if 'limit' in local_var_params:
5933
6765
  query_params.append(('limit', local_var_params['limit']))
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']))
5934
6770
 
5935
6771
  header_params = {}
5936
6772
  if 'x_language' in local_var_params:
@@ -6100,6 +6936,71 @@ class GaussDBClient(Client):
6100
6936
 
6101
6937
  return http_info
6102
6938
 
6939
+ def show_recycle_policy(self, request):
6940
+ """查询回收站策略
6941
+
6942
+ 查询回收站策略
6943
+
6944
+ Please refer to HUAWEI cloud API Explorer for details.
6945
+
6946
+ :param request: Request instance for ShowRecyclePolicy
6947
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowRecyclePolicyRequest`
6948
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowRecyclePolicyResponse`
6949
+ """
6950
+ http_info = self._show_recycle_policy_http_info(request)
6951
+ return self._call_api(**http_info)
6952
+
6953
+ def show_recycle_policy_invoker(self, request):
6954
+ http_info = self._show_recycle_policy_http_info(request)
6955
+ return SyncInvoker(self, http_info)
6956
+
6957
+ @classmethod
6958
+ def _show_recycle_policy_http_info(cls, request):
6959
+ http_info = {
6960
+ "method": "GET",
6961
+ "resource_path": "/v3/{project_id}/instances/recycle-policy",
6962
+ "request_type": request.__class__.__name__,
6963
+ "response_type": "ShowRecyclePolicyResponse"
6964
+ }
6965
+
6966
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6967
+
6968
+ cname = None
6969
+
6970
+ collection_formats = {}
6971
+
6972
+ path_params = {}
6973
+
6974
+ query_params = []
6975
+
6976
+ header_params = {}
6977
+ if 'x_language' in local_var_params:
6978
+ header_params['X-Language'] = local_var_params['x_language']
6979
+
6980
+ form_params = {}
6981
+
6982
+ body = None
6983
+ if isinstance(request, SdkStreamRequest):
6984
+ body = request.get_file_stream()
6985
+
6986
+ response_headers = []
6987
+
6988
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6989
+ ['application/json'])
6990
+
6991
+ auth_settings = []
6992
+
6993
+ http_info["cname"] = cname
6994
+ http_info["collection_formats"] = collection_formats
6995
+ http_info["path_params"] = path_params
6996
+ http_info["query_params"] = query_params
6997
+ http_info["header_params"] = header_params
6998
+ http_info["post_params"] = form_params
6999
+ http_info["body"] = body
7000
+ http_info["response_headers"] = response_headers
7001
+
7002
+ return http_info
7003
+
6103
7004
  def show_restore_tables(self, request):
6104
7005
  """查询表级时间点恢复可选表
6105
7006
 
@@ -6175,6 +7076,73 @@ class GaussDBClient(Client):
6175
7076
 
6176
7077
  return http_info
6177
7078
 
7079
+ def show_slowlog_sensitive_status(self, request):
7080
+ """查询慢日志脱敏状态
7081
+
7082
+ 查询慢日志脱敏状态
7083
+
7084
+ Please refer to HUAWEI cloud API Explorer for details.
7085
+
7086
+ :param request: Request instance for ShowSlowlogSensitiveStatus
7087
+ :type request: :class:`huaweicloudsdkgaussdb.v3.ShowSlowlogSensitiveStatusRequest`
7088
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ShowSlowlogSensitiveStatusResponse`
7089
+ """
7090
+ http_info = self._show_slowlog_sensitive_status_http_info(request)
7091
+ return self._call_api(**http_info)
7092
+
7093
+ def show_slowlog_sensitive_status_invoker(self, request):
7094
+ http_info = self._show_slowlog_sensitive_status_http_info(request)
7095
+ return SyncInvoker(self, http_info)
7096
+
7097
+ @classmethod
7098
+ def _show_slowlog_sensitive_status_http_info(cls, request):
7099
+ http_info = {
7100
+ "method": "GET",
7101
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/slowlog/query",
7102
+ "request_type": request.__class__.__name__,
7103
+ "response_type": "ShowSlowlogSensitiveStatusResponse"
7104
+ }
7105
+
7106
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7107
+
7108
+ cname = None
7109
+
7110
+ collection_formats = {}
7111
+
7112
+ path_params = {}
7113
+ if 'instance_id' in local_var_params:
7114
+ path_params['instance_id'] = local_var_params['instance_id']
7115
+
7116
+ query_params = []
7117
+
7118
+ header_params = {}
7119
+ if 'x_language' in local_var_params:
7120
+ header_params['X-Language'] = local_var_params['x_language']
7121
+
7122
+ form_params = {}
7123
+
7124
+ body = None
7125
+ if isinstance(request, SdkStreamRequest):
7126
+ body = request.get_file_stream()
7127
+
7128
+ response_headers = []
7129
+
7130
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7131
+ ['application/json'])
7132
+
7133
+ auth_settings = []
7134
+
7135
+ http_info["cname"] = cname
7136
+ http_info["collection_formats"] = collection_formats
7137
+ http_info["path_params"] = path_params
7138
+ http_info["query_params"] = query_params
7139
+ http_info["header_params"] = header_params
7140
+ http_info["post_params"] = form_params
7141
+ http_info["body"] = body
7142
+ http_info["response_headers"] = response_headers
7143
+
7144
+ return http_info
7145
+
6178
7146
  def shrink_gauss_my_sql_proxy(self, request):
6179
7147
  """减少数据库代理节点的数量
6180
7148
 
@@ -8124,6 +9092,144 @@ class GaussDBClient(Client):
8124
9092
 
8125
9093
  return http_info
8126
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
+
8127
9233
  def update_transaction_split_status(self, request):
8128
9234
  """设置proxy事务拆分
8129
9235