huaweicloudsdkgaussdbforopengauss 3.1.90__py2.py3-none-any.whl → 3.1.92__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 (42) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +32 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +789 -20
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +789 -20
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +32 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/cn_info_before_reduce.py +231 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_request.py +143 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_response.py +116 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_request.py +171 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_response.py +174 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/instance_log_file.py +260 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_request.py +143 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_response.py +174 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_request.py +257 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_response.py +145 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_request.py +257 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_response.py +116 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +230 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +231 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_request.py +143 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_response.py +261 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/show_backup_policy.py +4 -4
  22. huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_request.py +143 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/show_error_log_switch_status_response.py +116 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_request.py +143 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_response.py +116 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +143 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +315 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/slow_log_download_info.py +463 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request.py +168 -0
  30. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request_body.py +114 -0
  31. huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_response.py +116 -0
  32. huaweicloudsdkgaussdbforopengauss/v3/model/top_io_info.py +405 -0
  33. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +144 -0
  34. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_error_response_body.py +142 -0
  35. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +168 -0
  36. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_response.py +145 -0
  37. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +173 -0
  38. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/METADATA +2 -2
  39. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/RECORD +42 -10
  40. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/LICENSE +0 -0
  41. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/WHEEL +0 -0
  42. {huaweicloudsdkgaussdbforopengauss-3.1.90.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.92.dist-info}/top_level.txt +0 -0
@@ -852,6 +852,73 @@ class GaussDBforopenGaussAsyncClient(Client):
852
852
 
853
853
  return http_info
854
854
 
855
+ def create_slow_log_download_async(self, request):
856
+ """创建慢日志下载信息
857
+
858
+ 创建慢日志下载信息
859
+
860
+ Please refer to HUAWEI cloud API Explorer for details.
861
+
862
+
863
+ :param request: Request instance for CreateSlowLogDownload
864
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateSlowLogDownloadRequest`
865
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateSlowLogDownloadResponse`
866
+ """
867
+ http_info = self._create_slow_log_download_http_info(request)
868
+ return self._call_api(**http_info)
869
+
870
+ def create_slow_log_download_async_invoker(self, request):
871
+ http_info = self._create_slow_log_download_http_info(request)
872
+ return AsyncInvoker(self, http_info)
873
+
874
+ def _create_slow_log_download_http_info(self, request):
875
+ http_info = {
876
+ "method": "POST",
877
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/slow-log/download",
878
+ "request_type": request.__class__.__name__,
879
+ "response_type": "CreateSlowLogDownloadResponse"
880
+ }
881
+
882
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
883
+
884
+ cname = None
885
+
886
+ collection_formats = {}
887
+
888
+ path_params = {}
889
+ if 'instance_id' in local_var_params:
890
+ path_params['instance_id'] = local_var_params['instance_id']
891
+
892
+ query_params = []
893
+
894
+ header_params = {}
895
+ if 'x_language' in local_var_params:
896
+ header_params['X-Language'] = local_var_params['x_language']
897
+
898
+ form_params = {}
899
+
900
+ body = None
901
+ if isinstance(request, SdkStreamRequest):
902
+ body = request.get_file_stream()
903
+
904
+ response_headers = []
905
+
906
+ header_params['Content-Type'] = http_utils.select_header_content_type(
907
+ ['application/json'])
908
+
909
+ auth_settings = []
910
+
911
+ http_info["cname"] = cname
912
+ http_info["collection_formats"] = collection_formats
913
+ http_info["path_params"] = path_params
914
+ http_info["query_params"] = query_params
915
+ http_info["header_params"] = header_params
916
+ http_info["post_params"] = form_params
917
+ http_info["body"] = body
918
+ http_info["response_headers"] = response_headers
919
+
920
+ return http_info
921
+
855
922
  def delete_configuration_async(self, request):
856
923
  """删除参数模板
857
924
 
@@ -1055,6 +1122,75 @@ class GaussDBforopenGaussAsyncClient(Client):
1055
1122
 
1056
1123
  return http_info
1057
1124
 
1125
+ def delete_instance_tag_async(self, request):
1126
+ """删除实例标签
1127
+
1128
+ 删除实例标签
1129
+
1130
+ Please refer to HUAWEI cloud API Explorer for details.
1131
+
1132
+
1133
+ :param request: Request instance for DeleteInstanceTag
1134
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagRequest`
1135
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteInstanceTagResponse`
1136
+ """
1137
+ http_info = self._delete_instance_tag_http_info(request)
1138
+ return self._call_api(**http_info)
1139
+
1140
+ def delete_instance_tag_async_invoker(self, request):
1141
+ http_info = self._delete_instance_tag_http_info(request)
1142
+ return AsyncInvoker(self, http_info)
1143
+
1144
+ def _delete_instance_tag_http_info(self, request):
1145
+ http_info = {
1146
+ "method": "DELETE",
1147
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/tag",
1148
+ "request_type": request.__class__.__name__,
1149
+ "response_type": "DeleteInstanceTagResponse"
1150
+ }
1151
+
1152
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1153
+
1154
+ cname = None
1155
+
1156
+ collection_formats = {}
1157
+
1158
+ path_params = {}
1159
+ if 'instance_id' in local_var_params:
1160
+ path_params['instance_id'] = local_var_params['instance_id']
1161
+
1162
+ query_params = []
1163
+ if 'key' in local_var_params:
1164
+ query_params.append(('key', local_var_params['key']))
1165
+
1166
+ header_params = {}
1167
+ if 'x_language' in local_var_params:
1168
+ header_params['X-Language'] = local_var_params['x_language']
1169
+
1170
+ form_params = {}
1171
+
1172
+ body = None
1173
+ if isinstance(request, SdkStreamRequest):
1174
+ body = request.get_file_stream()
1175
+
1176
+ response_headers = []
1177
+
1178
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1179
+ ['application/json'])
1180
+
1181
+ auth_settings = []
1182
+
1183
+ http_info["cname"] = cname
1184
+ http_info["collection_formats"] = collection_formats
1185
+ http_info["path_params"] = path_params
1186
+ http_info["query_params"] = query_params
1187
+ http_info["header_params"] = header_params
1188
+ http_info["post_params"] = form_params
1189
+ http_info["body"] = body
1190
+ http_info["response_headers"] = response_headers
1191
+
1192
+ return http_info
1193
+
1058
1194
  def delete_job_async(self, request):
1059
1195
  """删除任务记录
1060
1196
 
@@ -1619,6 +1755,73 @@ class GaussDBforopenGaussAsyncClient(Client):
1619
1755
 
1620
1756
  return http_info
1621
1757
 
1758
+ def list_cn_infos_before_reduce_async(self, request):
1759
+ """查询协调节点列表
1760
+
1761
+ 查询协调节点列表
1762
+
1763
+ Please refer to HUAWEI cloud API Explorer for details.
1764
+
1765
+
1766
+ :param request: Request instance for ListCnInfosBeforeReduce
1767
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListCnInfosBeforeReduceRequest`
1768
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListCnInfosBeforeReduceResponse`
1769
+ """
1770
+ http_info = self._list_cn_infos_before_reduce_http_info(request)
1771
+ return self._call_api(**http_info)
1772
+
1773
+ def list_cn_infos_before_reduce_async_invoker(self, request):
1774
+ http_info = self._list_cn_infos_before_reduce_http_info(request)
1775
+ return AsyncInvoker(self, http_info)
1776
+
1777
+ def _list_cn_infos_before_reduce_http_info(self, request):
1778
+ http_info = {
1779
+ "method": "GET",
1780
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/coordinators",
1781
+ "request_type": request.__class__.__name__,
1782
+ "response_type": "ListCnInfosBeforeReduceResponse"
1783
+ }
1784
+
1785
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1786
+
1787
+ cname = None
1788
+
1789
+ collection_formats = {}
1790
+
1791
+ path_params = {}
1792
+ if 'instance_id' in local_var_params:
1793
+ path_params['instance_id'] = local_var_params['instance_id']
1794
+
1795
+ query_params = []
1796
+
1797
+ header_params = {}
1798
+ if 'x_language' in local_var_params:
1799
+ header_params['X-Language'] = local_var_params['x_language']
1800
+
1801
+ form_params = {}
1802
+
1803
+ body = None
1804
+ if isinstance(request, SdkStreamRequest):
1805
+ body = request.get_file_stream()
1806
+
1807
+ response_headers = []
1808
+
1809
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1810
+ ['application/json'])
1811
+
1812
+ auth_settings = []
1813
+
1814
+ http_info["cname"] = cname
1815
+ http_info["collection_formats"] = collection_formats
1816
+ http_info["path_params"] = path_params
1817
+ http_info["query_params"] = query_params
1818
+ http_info["header_params"] = header_params
1819
+ http_info["post_params"] = form_params
1820
+ http_info["body"] = body
1821
+ http_info["response_headers"] = response_headers
1822
+
1823
+ return http_info
1824
+
1622
1825
  def list_component_infos_async(self, request):
1623
1826
  """查询实例的组件列表
1624
1827
 
@@ -2546,6 +2749,81 @@ class GaussDBforopenGaussAsyncClient(Client):
2546
2749
 
2547
2750
  return http_info
2548
2751
 
2752
+ def list_instance_error_logs_async(self, request):
2753
+ """查询错误日志下载链接
2754
+
2755
+ 查询数据库错误日志下载链接。
2756
+
2757
+ Please refer to HUAWEI cloud API Explorer for details.
2758
+
2759
+
2760
+ :param request: Request instance for ListInstanceErrorLogs
2761
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstanceErrorLogsRequest`
2762
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstanceErrorLogsResponse`
2763
+ """
2764
+ http_info = self._list_instance_error_logs_http_info(request)
2765
+ return self._call_api(**http_info)
2766
+
2767
+ def list_instance_error_logs_async_invoker(self, request):
2768
+ http_info = self._list_instance_error_logs_http_info(request)
2769
+ return AsyncInvoker(self, http_info)
2770
+
2771
+ def _list_instance_error_logs_http_info(self, request):
2772
+ http_info = {
2773
+ "method": "GET",
2774
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/error-log",
2775
+ "request_type": request.__class__.__name__,
2776
+ "response_type": "ListInstanceErrorLogsResponse"
2777
+ }
2778
+
2779
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2780
+
2781
+ cname = None
2782
+
2783
+ collection_formats = {}
2784
+
2785
+ path_params = {}
2786
+ if 'instance_id' in local_var_params:
2787
+ path_params['instance_id'] = local_var_params['instance_id']
2788
+
2789
+ query_params = []
2790
+ if 'offset' in local_var_params:
2791
+ query_params.append(('offset', local_var_params['offset']))
2792
+ if 'limit' in local_var_params:
2793
+ query_params.append(('limit', local_var_params['limit']))
2794
+ if 'start_time' in local_var_params:
2795
+ query_params.append(('start_time', local_var_params['start_time']))
2796
+ if 'end_time' in local_var_params:
2797
+ query_params.append(('end_time', local_var_params['end_time']))
2798
+
2799
+ header_params = {}
2800
+ if 'x_language' in local_var_params:
2801
+ header_params['X-Language'] = local_var_params['x_language']
2802
+
2803
+ form_params = {}
2804
+
2805
+ body = None
2806
+ if isinstance(request, SdkStreamRequest):
2807
+ body = request.get_file_stream()
2808
+
2809
+ response_headers = []
2810
+
2811
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2812
+ ['application/json'])
2813
+
2814
+ auth_settings = []
2815
+
2816
+ http_info["cname"] = cname
2817
+ http_info["collection_formats"] = collection_formats
2818
+ http_info["path_params"] = path_params
2819
+ http_info["query_params"] = query_params
2820
+ http_info["header_params"] = header_params
2821
+ http_info["post_params"] = form_params
2822
+ http_info["body"] = body
2823
+ http_info["response_headers"] = response_headers
2824
+
2825
+ return http_info
2826
+
2549
2827
  def list_instance_tags_async(self, request):
2550
2828
  """查询实例标签
2551
2829
 
@@ -3346,31 +3624,31 @@ class GaussDBforopenGaussAsyncClient(Client):
3346
3624
 
3347
3625
  return http_info
3348
3626
 
3349
- def modify_eps_quota_async(self, request):
3350
- """修改企业项目配额
3627
+ def list_top_io_traffics_async(self, request):
3628
+ """查询Top IO列表
3351
3629
 
3352
- 修改企业项目配额。
3630
+ 查询实例数据库进程下的Top IO流量数据,返回与会话信息相关联后的结果
3353
3631
 
3354
3632
  Please refer to HUAWEI cloud API Explorer for details.
3355
3633
 
3356
3634
 
3357
- :param request: Request instance for ModifyEpsQuota
3358
- :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ModifyEpsQuotaRequest`
3359
- :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ModifyEpsQuotaResponse`
3635
+ :param request: Request instance for ListTopIoTraffics
3636
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListTopIoTrafficsRequest`
3637
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListTopIoTrafficsResponse`
3360
3638
  """
3361
- http_info = self._modify_eps_quota_http_info(request)
3639
+ http_info = self._list_top_io_traffics_http_info(request)
3362
3640
  return self._call_api(**http_info)
3363
3641
 
3364
- def modify_eps_quota_async_invoker(self, request):
3365
- http_info = self._modify_eps_quota_http_info(request)
3642
+ def list_top_io_traffics_async_invoker(self, request):
3643
+ http_info = self._list_top_io_traffics_http_info(request)
3366
3644
  return AsyncInvoker(self, http_info)
3367
3645
 
3368
- def _modify_eps_quota_http_info(self, request):
3646
+ def _list_top_io_traffics_http_info(self, request):
3369
3647
  http_info = {
3370
- "method": "PUT",
3371
- "resource_path": "/v3/{project_id}/enterprise-projects/quotas",
3648
+ "method": "GET",
3649
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/top-io-traffics",
3372
3650
  "request_type": request.__class__.__name__,
3373
- "response_type": "ModifyEpsQuotaResponse"
3651
+ "response_type": "ListTopIoTrafficsResponse"
3374
3652
  }
3375
3653
 
3376
3654
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3380,8 +3658,18 @@ class GaussDBforopenGaussAsyncClient(Client):
3380
3658
  collection_formats = {}
3381
3659
 
3382
3660
  path_params = {}
3661
+ if 'instance_id' in local_var_params:
3662
+ path_params['instance_id'] = local_var_params['instance_id']
3383
3663
 
3384
3664
  query_params = []
3665
+ if 'node_id' in local_var_params:
3666
+ query_params.append(('node_id', local_var_params['node_id']))
3667
+ if 'component_id' in local_var_params:
3668
+ query_params.append(('component_id', local_var_params['component_id']))
3669
+ if 'top_io_num' in local_var_params:
3670
+ query_params.append(('top_io_num', local_var_params['top_io_num']))
3671
+ if 'sort_condition' in local_var_params:
3672
+ query_params.append(('sort_condition', local_var_params['sort_condition']))
3385
3673
 
3386
3674
  header_params = {}
3387
3675
  if 'x_language' in local_var_params:
@@ -3390,15 +3678,13 @@ class GaussDBforopenGaussAsyncClient(Client):
3390
3678
  form_params = {}
3391
3679
 
3392
3680
  body = None
3393
- if 'body' in local_var_params:
3394
- body = local_var_params['body']
3395
3681
  if isinstance(request, SdkStreamRequest):
3396
3682
  body = request.get_file_stream()
3397
3683
 
3398
3684
  response_headers = []
3399
3685
 
3400
3686
  header_params['Content-Type'] = http_utils.select_header_content_type(
3401
- ['application/json;charset=UTF-8'])
3687
+ ['application/json'])
3402
3688
 
3403
3689
  auth_settings = []
3404
3690
 
@@ -3413,15 +3699,82 @@ class GaussDBforopenGaussAsyncClient(Client):
3413
3699
 
3414
3700
  return http_info
3415
3701
 
3416
- def reset_configuration_async(self, request):
3417
- """重置参数模板
3702
+ def modify_eps_quota_async(self, request):
3703
+ """修改企业项目配额
3418
3704
 
3419
- 重置参数模板。
3705
+ 修改企业项目配额。
3420
3706
 
3421
3707
  Please refer to HUAWEI cloud API Explorer for details.
3422
3708
 
3423
3709
 
3424
- :param request: Request instance for ResetConfiguration
3710
+ :param request: Request instance for ModifyEpsQuota
3711
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ModifyEpsQuotaRequest`
3712
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ModifyEpsQuotaResponse`
3713
+ """
3714
+ http_info = self._modify_eps_quota_http_info(request)
3715
+ return self._call_api(**http_info)
3716
+
3717
+ def modify_eps_quota_async_invoker(self, request):
3718
+ http_info = self._modify_eps_quota_http_info(request)
3719
+ return AsyncInvoker(self, http_info)
3720
+
3721
+ def _modify_eps_quota_http_info(self, request):
3722
+ http_info = {
3723
+ "method": "PUT",
3724
+ "resource_path": "/v3/{project_id}/enterprise-projects/quotas",
3725
+ "request_type": request.__class__.__name__,
3726
+ "response_type": "ModifyEpsQuotaResponse"
3727
+ }
3728
+
3729
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3730
+
3731
+ cname = None
3732
+
3733
+ collection_formats = {}
3734
+
3735
+ path_params = {}
3736
+
3737
+ query_params = []
3738
+
3739
+ header_params = {}
3740
+ if 'x_language' in local_var_params:
3741
+ header_params['X-Language'] = local_var_params['x_language']
3742
+
3743
+ form_params = {}
3744
+
3745
+ body = None
3746
+ if 'body' in local_var_params:
3747
+ body = local_var_params['body']
3748
+ if isinstance(request, SdkStreamRequest):
3749
+ body = request.get_file_stream()
3750
+
3751
+ response_headers = []
3752
+
3753
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3754
+ ['application/json;charset=UTF-8'])
3755
+
3756
+ auth_settings = []
3757
+
3758
+ http_info["cname"] = cname
3759
+ http_info["collection_formats"] = collection_formats
3760
+ http_info["path_params"] = path_params
3761
+ http_info["query_params"] = query_params
3762
+ http_info["header_params"] = header_params
3763
+ http_info["post_params"] = form_params
3764
+ http_info["body"] = body
3765
+ http_info["response_headers"] = response_headers
3766
+
3767
+ return http_info
3768
+
3769
+ def reset_configuration_async(self, request):
3770
+ """重置参数模板
3771
+
3772
+ 重置参数模板。
3773
+
3774
+ Please refer to HUAWEI cloud API Explorer for details.
3775
+
3776
+
3777
+ :param request: Request instance for ResetConfiguration
3425
3778
  :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ResetConfigurationRequest`
3426
3779
  :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ResetConfigurationResponse`
3427
3780
  """
@@ -3754,6 +4107,73 @@ class GaussDBforopenGaussAsyncClient(Client):
3754
4107
 
3755
4108
  return http_info
3756
4109
 
4110
+ def search_auto_enlarge_policy_async(self, request):
4111
+ """查询磁盘自动扩容策略
4112
+
4113
+ 查询磁盘自动扩容策略
4114
+
4115
+ Please refer to HUAWEI cloud API Explorer for details.
4116
+
4117
+
4118
+ :param request: Request instance for SearchAutoEnlargePolicy
4119
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.SearchAutoEnlargePolicyRequest`
4120
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.SearchAutoEnlargePolicyResponse`
4121
+ """
4122
+ http_info = self._search_auto_enlarge_policy_http_info(request)
4123
+ return self._call_api(**http_info)
4124
+
4125
+ def search_auto_enlarge_policy_async_invoker(self, request):
4126
+ http_info = self._search_auto_enlarge_policy_http_info(request)
4127
+ return AsyncInvoker(self, http_info)
4128
+
4129
+ def _search_auto_enlarge_policy_http_info(self, request):
4130
+ http_info = {
4131
+ "method": "GET",
4132
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/auto-enlarge-policy",
4133
+ "request_type": request.__class__.__name__,
4134
+ "response_type": "SearchAutoEnlargePolicyResponse"
4135
+ }
4136
+
4137
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4138
+
4139
+ cname = None
4140
+
4141
+ collection_formats = {}
4142
+
4143
+ path_params = {}
4144
+ if 'instance_id' in local_var_params:
4145
+ path_params['instance_id'] = local_var_params['instance_id']
4146
+
4147
+ query_params = []
4148
+
4149
+ header_params = {}
4150
+ if 'x_language' in local_var_params:
4151
+ header_params['X-Language'] = local_var_params['x_language']
4152
+
4153
+ form_params = {}
4154
+
4155
+ body = None
4156
+ if isinstance(request, SdkStreamRequest):
4157
+ body = request.get_file_stream()
4158
+
4159
+ response_headers = []
4160
+
4161
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4162
+ ['application/json'])
4163
+
4164
+ auth_settings = []
4165
+
4166
+ http_info["cname"] = cname
4167
+ http_info["collection_formats"] = collection_formats
4168
+ http_info["path_params"] = path_params
4169
+ http_info["query_params"] = query_params
4170
+ http_info["header_params"] = header_params
4171
+ http_info["post_params"] = form_params
4172
+ http_info["body"] = body
4173
+ http_info["response_headers"] = response_headers
4174
+
4175
+ return http_info
4176
+
3757
4177
  def set_backup_policy_async(self, request):
3758
4178
  """设置自动备份策略。
3759
4179
 
@@ -4227,6 +4647,73 @@ class GaussDBforopenGaussAsyncClient(Client):
4227
4647
 
4228
4648
  return http_info
4229
4649
 
4650
+ def show_error_log_switch_status_async(self, request):
4651
+ """查询错误日志采集开关状态
4652
+
4653
+ 查询数据库错误日志采集的开关状态。
4654
+
4655
+ Please refer to HUAWEI cloud API Explorer for details.
4656
+
4657
+
4658
+ :param request: Request instance for ShowErrorLogSwitchStatus
4659
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowErrorLogSwitchStatusRequest`
4660
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowErrorLogSwitchStatusResponse`
4661
+ """
4662
+ http_info = self._show_error_log_switch_status_http_info(request)
4663
+ return self._call_api(**http_info)
4664
+
4665
+ def show_error_log_switch_status_async_invoker(self, request):
4666
+ http_info = self._show_error_log_switch_status_http_info(request)
4667
+ return AsyncInvoker(self, http_info)
4668
+
4669
+ def _show_error_log_switch_status_http_info(self, request):
4670
+ http_info = {
4671
+ "method": "GET",
4672
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/error-log/switch/status",
4673
+ "request_type": request.__class__.__name__,
4674
+ "response_type": "ShowErrorLogSwitchStatusResponse"
4675
+ }
4676
+
4677
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4678
+
4679
+ cname = None
4680
+
4681
+ collection_formats = {}
4682
+
4683
+ path_params = {}
4684
+ if 'instance_id' in local_var_params:
4685
+ path_params['instance_id'] = local_var_params['instance_id']
4686
+
4687
+ query_params = []
4688
+
4689
+ header_params = {}
4690
+ if 'x_language' in local_var_params:
4691
+ header_params['X-Language'] = local_var_params['x_language']
4692
+
4693
+ form_params = {}
4694
+
4695
+ body = None
4696
+ if isinstance(request, SdkStreamRequest):
4697
+ body = request.get_file_stream()
4698
+
4699
+ response_headers = []
4700
+
4701
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4702
+ ['application/json'])
4703
+
4704
+ auth_settings = []
4705
+
4706
+ http_info["cname"] = cname
4707
+ http_info["collection_formats"] = collection_formats
4708
+ http_info["path_params"] = path_params
4709
+ http_info["query_params"] = query_params
4710
+ http_info["header_params"] = header_params
4711
+ http_info["post_params"] = form_params
4712
+ http_info["body"] = body
4713
+ http_info["response_headers"] = response_headers
4714
+
4715
+ return http_info
4716
+
4230
4717
  def show_instance_configuration_async(self, request):
4231
4718
  """获取指定实例的参数模板
4232
4719
 
@@ -4695,6 +5182,73 @@ class GaussDBforopenGaussAsyncClient(Client):
4695
5182
 
4696
5183
  return http_info
4697
5184
 
5185
+ def show_slow_log_download_async(self, request):
5186
+ """查询慢日志下载信息
5187
+
5188
+ 查询慢日志下载信息
5189
+
5190
+ Please refer to HUAWEI cloud API Explorer for details.
5191
+
5192
+
5193
+ :param request: Request instance for ShowSlowLogDownload
5194
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowSlowLogDownloadRequest`
5195
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowSlowLogDownloadResponse`
5196
+ """
5197
+ http_info = self._show_slow_log_download_http_info(request)
5198
+ return self._call_api(**http_info)
5199
+
5200
+ def show_slow_log_download_async_invoker(self, request):
5201
+ http_info = self._show_slow_log_download_http_info(request)
5202
+ return AsyncInvoker(self, http_info)
5203
+
5204
+ def _show_slow_log_download_http_info(self, request):
5205
+ http_info = {
5206
+ "method": "GET",
5207
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/slow-log/download",
5208
+ "request_type": request.__class__.__name__,
5209
+ "response_type": "ShowSlowLogDownloadResponse"
5210
+ }
5211
+
5212
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5213
+
5214
+ cname = None
5215
+
5216
+ collection_formats = {}
5217
+
5218
+ path_params = {}
5219
+ if 'instance_id' in local_var_params:
5220
+ path_params['instance_id'] = local_var_params['instance_id']
5221
+
5222
+ query_params = []
5223
+
5224
+ header_params = {}
5225
+ if 'x_language' in local_var_params:
5226
+ header_params['X-Language'] = local_var_params['x_language']
5227
+
5228
+ form_params = {}
5229
+
5230
+ body = None
5231
+ if isinstance(request, SdkStreamRequest):
5232
+ body = request.get_file_stream()
5233
+
5234
+ response_headers = []
5235
+
5236
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5237
+ ['application/json'])
5238
+
5239
+ auth_settings = []
5240
+
5241
+ http_info["cname"] = cname
5242
+ http_info["collection_formats"] = collection_formats
5243
+ http_info["path_params"] = path_params
5244
+ http_info["query_params"] = query_params
5245
+ http_info["header_params"] = header_params
5246
+ http_info["post_params"] = form_params
5247
+ http_info["body"] = body
5248
+ http_info["response_headers"] = response_headers
5249
+
5250
+ return http_info
5251
+
4698
5252
  def show_ssl_cert_download_link_async(self, request):
4699
5253
  """查询实例SSL证书下载地址
4700
5254
 
@@ -4762,6 +5316,142 @@ class GaussDBforopenGaussAsyncClient(Client):
4762
5316
 
4763
5317
  return http_info
4764
5318
 
5319
+ def show_upgrade_candidate_versions_async(self, request):
5320
+ """查询实例可升级版本
5321
+
5322
+ 查询实例可升级版本
5323
+
5324
+ Please refer to HUAWEI cloud API Explorer for details.
5325
+
5326
+
5327
+ :param request: Request instance for ShowUpgradeCandidateVersions
5328
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowUpgradeCandidateVersionsRequest`
5329
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowUpgradeCandidateVersionsResponse`
5330
+ """
5331
+ http_info = self._show_upgrade_candidate_versions_http_info(request)
5332
+ return self._call_api(**http_info)
5333
+
5334
+ def show_upgrade_candidate_versions_async_invoker(self, request):
5335
+ http_info = self._show_upgrade_candidate_versions_http_info(request)
5336
+ return AsyncInvoker(self, http_info)
5337
+
5338
+ def _show_upgrade_candidate_versions_http_info(self, request):
5339
+ http_info = {
5340
+ "method": "GET",
5341
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/db-upgrade/candidate-versions",
5342
+ "request_type": request.__class__.__name__,
5343
+ "response_type": "ShowUpgradeCandidateVersionsResponse"
5344
+ }
5345
+
5346
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5347
+
5348
+ cname = None
5349
+
5350
+ collection_formats = {}
5351
+
5352
+ path_params = {}
5353
+ if 'instance_id' in local_var_params:
5354
+ path_params['instance_id'] = local_var_params['instance_id']
5355
+
5356
+ query_params = []
5357
+
5358
+ header_params = {}
5359
+ if 'x_language' in local_var_params:
5360
+ header_params['X-Language'] = local_var_params['x_language']
5361
+
5362
+ form_params = {}
5363
+
5364
+ body = None
5365
+ if isinstance(request, SdkStreamRequest):
5366
+ body = request.get_file_stream()
5367
+
5368
+ response_headers = []
5369
+
5370
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5371
+ ['application/json'])
5372
+
5373
+ auth_settings = []
5374
+
5375
+ http_info["cname"] = cname
5376
+ http_info["collection_formats"] = collection_formats
5377
+ http_info["path_params"] = path_params
5378
+ http_info["query_params"] = query_params
5379
+ http_info["header_params"] = header_params
5380
+ http_info["post_params"] = form_params
5381
+ http_info["body"] = body
5382
+ http_info["response_headers"] = response_headers
5383
+
5384
+ return http_info
5385
+
5386
+ def start_instance_async(self, request):
5387
+ """启动数据库
5388
+
5389
+ 启动数据库,同时支持节点级别的启动操作
5390
+
5391
+ Please refer to HUAWEI cloud API Explorer for details.
5392
+
5393
+
5394
+ :param request: Request instance for StartInstance
5395
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.StartInstanceRequest`
5396
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.StartInstanceResponse`
5397
+ """
5398
+ http_info = self._start_instance_http_info(request)
5399
+ return self._call_api(**http_info)
5400
+
5401
+ def start_instance_async_invoker(self, request):
5402
+ http_info = self._start_instance_http_info(request)
5403
+ return AsyncInvoker(self, http_info)
5404
+
5405
+ def _start_instance_http_info(self, request):
5406
+ http_info = {
5407
+ "method": "POST",
5408
+ "resource_path": "/v3/{project_id}/instances/{instance_id}/db-startup",
5409
+ "request_type": request.__class__.__name__,
5410
+ "response_type": "StartInstanceResponse"
5411
+ }
5412
+
5413
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5414
+
5415
+ cname = None
5416
+
5417
+ collection_formats = {}
5418
+
5419
+ path_params = {}
5420
+ if 'instance_id' in local_var_params:
5421
+ path_params['instance_id'] = local_var_params['instance_id']
5422
+
5423
+ query_params = []
5424
+
5425
+ header_params = {}
5426
+ if 'x_language' in local_var_params:
5427
+ header_params['X-Language'] = local_var_params['x_language']
5428
+
5429
+ form_params = {}
5430
+
5431
+ body = None
5432
+ if 'body' in local_var_params:
5433
+ body = local_var_params['body']
5434
+ if isinstance(request, SdkStreamRequest):
5435
+ body = request.get_file_stream()
5436
+
5437
+ response_headers = []
5438
+
5439
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5440
+ ['application/json;charset=UTF-8'])
5441
+
5442
+ auth_settings = []
5443
+
5444
+ http_info["cname"] = cname
5445
+ http_info["collection_formats"] = collection_formats
5446
+ http_info["path_params"] = path_params
5447
+ http_info["query_params"] = query_params
5448
+ http_info["header_params"] = header_params
5449
+ http_info["post_params"] = form_params
5450
+ http_info["body"] = body
5451
+ http_info["response_headers"] = response_headers
5452
+
5453
+ return http_info
5454
+
4765
5455
  def stop_backup_async(self, request):
4766
5456
  """停止备份
4767
5457
 
@@ -5105,6 +5795,85 @@ class GaussDBforopenGaussAsyncClient(Client):
5105
5795
 
5106
5796
  return http_info
5107
5797
 
5798
+ def upgrade_instance_version_async(self, request):
5799
+ """实例内核版本升级
5800
+
5801
+ GaussDB(for openGauss)实例版本升级。包括灰度升级,就地升级,热补丁升级等三种升级方式。
5802
+ 就地升级:
5803
+ 就地升级需要停止业务进行,会一次性升级集群中所有节点。就地升级需要暂停业务30分钟来升级。
5804
+ 灰度升级:
5805
+ 升级自动提交:所有节点进程一起升级,在升级过程中有大概10秒的业务中断,不阻塞其他业务操作。
5806
+ 升级待观察:升级待观察,将数据库升级过程细分为升级,提交两个阶段。升级阶段可以根据部署方式细分为按分片或者按az的滚动升级,提交阶段可以对升级完成后的实例进行业务测试,根据需要可以选择提交升级,或者升级回退。每个主dn或者cn组件升级就有一次10秒业务中断。升级过程均是先管理面,再数据面,由备到主的升级方式。 分布式实例:根据分片数滚动升级,每次滚动升级可以根据选择的分片数进行指定分片数量的节点进行升级。 主备版实例:根据AZ数进行滚动升级,每次滚动升级可以根据选择的AZ进行1个分区或者多个分区进行升级。
5807
+ 提交升级:提交升级。在升级完成,进入提交阶段时。业务测试正常后提交升级,完成本次升级流程。
5808
+ 升级回退:升级回退,在升级完成,进入提交阶段时。可以根据需要回退本次升级,回退到升级前的版本。
5809
+ 热补丁升级:
5810
+ 升级自动提交:热补丁自动升级并提交,中间无业务中断,仅修复产品bug。
5811
+ 升级回退:热补丁回退,无业务中断时间
5812
+
5813
+ Please refer to HUAWEI cloud API Explorer for details.
5814
+
5815
+
5816
+ :param request: Request instance for UpgradeInstanceVersion
5817
+ :type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeInstanceVersionRequest`
5818
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeInstanceVersionResponse`
5819
+ """
5820
+ http_info = self._upgrade_instance_version_http_info(request)
5821
+ return self._call_api(**http_info)
5822
+
5823
+ def upgrade_instance_version_async_invoker(self, request):
5824
+ http_info = self._upgrade_instance_version_http_info(request)
5825
+ return AsyncInvoker(self, http_info)
5826
+
5827
+ def _upgrade_instance_version_http_info(self, request):
5828
+ http_info = {
5829
+ "method": "PUT",
5830
+ "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-upgrade",
5831
+ "request_type": request.__class__.__name__,
5832
+ "response_type": "UpgradeInstanceVersionResponse"
5833
+ }
5834
+
5835
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5836
+
5837
+ cname = None
5838
+
5839
+ collection_formats = {}
5840
+
5841
+ path_params = {}
5842
+ if 'instance_id' in local_var_params:
5843
+ path_params['instance_id'] = local_var_params['instance_id']
5844
+
5845
+ query_params = []
5846
+
5847
+ header_params = {}
5848
+ if 'x_language' in local_var_params:
5849
+ header_params['X-Language'] = local_var_params['x_language']
5850
+
5851
+ form_params = {}
5852
+
5853
+ body = None
5854
+ if 'body' in local_var_params:
5855
+ body = local_var_params['body']
5856
+ if isinstance(request, SdkStreamRequest):
5857
+ body = request.get_file_stream()
5858
+
5859
+ response_headers = []
5860
+
5861
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5862
+ ['application/json;charset=UTF-8'])
5863
+
5864
+ auth_settings = []
5865
+
5866
+ http_info["cname"] = cname
5867
+ http_info["collection_formats"] = collection_formats
5868
+ http_info["path_params"] = path_params
5869
+ http_info["query_params"] = query_params
5870
+ http_info["header_params"] = header_params
5871
+ http_info["post_params"] = form_params
5872
+ http_info["body"] = body
5873
+ http_info["response_headers"] = response_headers
5874
+
5875
+ return http_info
5876
+
5108
5877
  def validate_para_group_name_async(self, request):
5109
5878
  """校验参数组名称是否存在
5110
5879