huaweicloudsdkgaussdbforopengauss 3.1.89__py2.py3-none-any.whl → 3.1.91__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.
- huaweicloudsdkgaussdbforopengauss/v3/__init__.py +25 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +548 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +548 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +25 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/cn_info_before_reduce.py +231 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_slow_log_download_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instances_statistics_response_body_instances_statistics.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_cn_infos_before_reduce_response.py +174 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +259 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +231 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/search_auto_enlarge_policy_response.py +261 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instances_statistics_request.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instances_statistics_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_slow_log_download_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +315 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/slow_log_download_info.py +463 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_instance_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_error_response_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +173 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.89.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.89.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/RECORD +34 -9
- {huaweicloudsdkgaussdbforopengauss-3.1.89.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.89.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.89.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info}/top_level.txt +0 -0
@@ -852,6 +852,73 @@ class GaussDBforopenGaussClient(Client):
|
|
852
852
|
|
853
853
|
return http_info
|
854
854
|
|
855
|
+
def create_slow_log_download(self, request):
|
856
|
+
"""创建慢日志下载信息
|
857
|
+
|
858
|
+
创建慢日志下载信息
|
859
|
+
|
860
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
861
|
+
|
862
|
+
:param request: Request instance for CreateSlowLogDownload
|
863
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateSlowLogDownloadRequest`
|
864
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateSlowLogDownloadResponse`
|
865
|
+
"""
|
866
|
+
http_info = self._create_slow_log_download_http_info(request)
|
867
|
+
return self._call_api(**http_info)
|
868
|
+
|
869
|
+
def create_slow_log_download_invoker(self, request):
|
870
|
+
http_info = self._create_slow_log_download_http_info(request)
|
871
|
+
return SyncInvoker(self, http_info)
|
872
|
+
|
873
|
+
@classmethod
|
874
|
+
def _create_slow_log_download_http_info(cls, 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(self, request):
|
856
923
|
"""删除参数模板
|
857
924
|
|
@@ -1619,6 +1686,73 @@ class GaussDBforopenGaussClient(Client):
|
|
1619
1686
|
|
1620
1687
|
return http_info
|
1621
1688
|
|
1689
|
+
def list_cn_infos_before_reduce(self, request):
|
1690
|
+
"""查询协调节点列表
|
1691
|
+
|
1692
|
+
查询协调节点列表
|
1693
|
+
|
1694
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1695
|
+
|
1696
|
+
:param request: Request instance for ListCnInfosBeforeReduce
|
1697
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListCnInfosBeforeReduceRequest`
|
1698
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListCnInfosBeforeReduceResponse`
|
1699
|
+
"""
|
1700
|
+
http_info = self._list_cn_infos_before_reduce_http_info(request)
|
1701
|
+
return self._call_api(**http_info)
|
1702
|
+
|
1703
|
+
def list_cn_infos_before_reduce_invoker(self, request):
|
1704
|
+
http_info = self._list_cn_infos_before_reduce_http_info(request)
|
1705
|
+
return SyncInvoker(self, http_info)
|
1706
|
+
|
1707
|
+
@classmethod
|
1708
|
+
def _list_cn_infos_before_reduce_http_info(cls, request):
|
1709
|
+
http_info = {
|
1710
|
+
"method": "GET",
|
1711
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/coordinators",
|
1712
|
+
"request_type": request.__class__.__name__,
|
1713
|
+
"response_type": "ListCnInfosBeforeReduceResponse"
|
1714
|
+
}
|
1715
|
+
|
1716
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1717
|
+
|
1718
|
+
cname = None
|
1719
|
+
|
1720
|
+
collection_formats = {}
|
1721
|
+
|
1722
|
+
path_params = {}
|
1723
|
+
if 'instance_id' in local_var_params:
|
1724
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
1725
|
+
|
1726
|
+
query_params = []
|
1727
|
+
|
1728
|
+
header_params = {}
|
1729
|
+
if 'x_language' in local_var_params:
|
1730
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1731
|
+
|
1732
|
+
form_params = {}
|
1733
|
+
|
1734
|
+
body = None
|
1735
|
+
if isinstance(request, SdkStreamRequest):
|
1736
|
+
body = request.get_file_stream()
|
1737
|
+
|
1738
|
+
response_headers = []
|
1739
|
+
|
1740
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1741
|
+
['application/json'])
|
1742
|
+
|
1743
|
+
auth_settings = []
|
1744
|
+
|
1745
|
+
http_info["cname"] = cname
|
1746
|
+
http_info["collection_formats"] = collection_formats
|
1747
|
+
http_info["path_params"] = path_params
|
1748
|
+
http_info["query_params"] = query_params
|
1749
|
+
http_info["header_params"] = header_params
|
1750
|
+
http_info["post_params"] = form_params
|
1751
|
+
http_info["body"] = body
|
1752
|
+
http_info["response_headers"] = response_headers
|
1753
|
+
|
1754
|
+
return http_info
|
1755
|
+
|
1622
1756
|
def list_component_infos(self, request):
|
1623
1757
|
"""查询实例的组件列表
|
1624
1758
|
|
@@ -3754,6 +3888,73 @@ class GaussDBforopenGaussClient(Client):
|
|
3754
3888
|
|
3755
3889
|
return http_info
|
3756
3890
|
|
3891
|
+
def search_auto_enlarge_policy(self, request):
|
3892
|
+
"""查询磁盘自动扩容策略
|
3893
|
+
|
3894
|
+
查询磁盘自动扩容策略
|
3895
|
+
|
3896
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3897
|
+
|
3898
|
+
:param request: Request instance for SearchAutoEnlargePolicy
|
3899
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.SearchAutoEnlargePolicyRequest`
|
3900
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.SearchAutoEnlargePolicyResponse`
|
3901
|
+
"""
|
3902
|
+
http_info = self._search_auto_enlarge_policy_http_info(request)
|
3903
|
+
return self._call_api(**http_info)
|
3904
|
+
|
3905
|
+
def search_auto_enlarge_policy_invoker(self, request):
|
3906
|
+
http_info = self._search_auto_enlarge_policy_http_info(request)
|
3907
|
+
return SyncInvoker(self, http_info)
|
3908
|
+
|
3909
|
+
@classmethod
|
3910
|
+
def _search_auto_enlarge_policy_http_info(cls, request):
|
3911
|
+
http_info = {
|
3912
|
+
"method": "GET",
|
3913
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/auto-enlarge-policy",
|
3914
|
+
"request_type": request.__class__.__name__,
|
3915
|
+
"response_type": "SearchAutoEnlargePolicyResponse"
|
3916
|
+
}
|
3917
|
+
|
3918
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3919
|
+
|
3920
|
+
cname = None
|
3921
|
+
|
3922
|
+
collection_formats = {}
|
3923
|
+
|
3924
|
+
path_params = {}
|
3925
|
+
if 'instance_id' in local_var_params:
|
3926
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3927
|
+
|
3928
|
+
query_params = []
|
3929
|
+
|
3930
|
+
header_params = {}
|
3931
|
+
if 'x_language' in local_var_params:
|
3932
|
+
header_params['X-Language'] = local_var_params['x_language']
|
3933
|
+
|
3934
|
+
form_params = {}
|
3935
|
+
|
3936
|
+
body = None
|
3937
|
+
if isinstance(request, SdkStreamRequest):
|
3938
|
+
body = request.get_file_stream()
|
3939
|
+
|
3940
|
+
response_headers = []
|
3941
|
+
|
3942
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3943
|
+
['application/json'])
|
3944
|
+
|
3945
|
+
auth_settings = []
|
3946
|
+
|
3947
|
+
http_info["cname"] = cname
|
3948
|
+
http_info["collection_formats"] = collection_formats
|
3949
|
+
http_info["path_params"] = path_params
|
3950
|
+
http_info["query_params"] = query_params
|
3951
|
+
http_info["header_params"] = header_params
|
3952
|
+
http_info["post_params"] = form_params
|
3953
|
+
http_info["body"] = body
|
3954
|
+
http_info["response_headers"] = response_headers
|
3955
|
+
|
3956
|
+
return http_info
|
3957
|
+
|
3757
3958
|
def set_backup_policy(self, request):
|
3758
3959
|
"""设置自动备份策略。
|
3759
3960
|
|
@@ -4499,6 +4700,71 @@ class GaussDBforopenGaussClient(Client):
|
|
4499
4700
|
|
4500
4701
|
return http_info
|
4501
4702
|
|
4703
|
+
def show_instances_statistics(self, request):
|
4704
|
+
"""实例统计
|
4705
|
+
|
4706
|
+
实例统计
|
4707
|
+
|
4708
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4709
|
+
|
4710
|
+
:param request: Request instance for ShowInstancesStatistics
|
4711
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstancesStatisticsRequest`
|
4712
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstancesStatisticsResponse`
|
4713
|
+
"""
|
4714
|
+
http_info = self._show_instances_statistics_http_info(request)
|
4715
|
+
return self._call_api(**http_info)
|
4716
|
+
|
4717
|
+
def show_instances_statistics_invoker(self, request):
|
4718
|
+
http_info = self._show_instances_statistics_http_info(request)
|
4719
|
+
return SyncInvoker(self, http_info)
|
4720
|
+
|
4721
|
+
@classmethod
|
4722
|
+
def _show_instances_statistics_http_info(cls, request):
|
4723
|
+
http_info = {
|
4724
|
+
"method": "GET",
|
4725
|
+
"resource_path": "/v3/instances-statistics",
|
4726
|
+
"request_type": request.__class__.__name__,
|
4727
|
+
"response_type": "ShowInstancesStatisticsResponse"
|
4728
|
+
}
|
4729
|
+
|
4730
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4731
|
+
|
4732
|
+
cname = None
|
4733
|
+
|
4734
|
+
collection_formats = {}
|
4735
|
+
|
4736
|
+
path_params = {}
|
4737
|
+
|
4738
|
+
query_params = []
|
4739
|
+
|
4740
|
+
header_params = {}
|
4741
|
+
if 'x_language' in local_var_params:
|
4742
|
+
header_params['X-Language'] = local_var_params['x_language']
|
4743
|
+
|
4744
|
+
form_params = {}
|
4745
|
+
|
4746
|
+
body = None
|
4747
|
+
if isinstance(request, SdkStreamRequest):
|
4748
|
+
body = request.get_file_stream()
|
4749
|
+
|
4750
|
+
response_headers = []
|
4751
|
+
|
4752
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4753
|
+
['application/json'])
|
4754
|
+
|
4755
|
+
auth_settings = []
|
4756
|
+
|
4757
|
+
http_info["cname"] = cname
|
4758
|
+
http_info["collection_formats"] = collection_formats
|
4759
|
+
http_info["path_params"] = path_params
|
4760
|
+
http_info["query_params"] = query_params
|
4761
|
+
http_info["header_params"] = header_params
|
4762
|
+
http_info["post_params"] = form_params
|
4763
|
+
http_info["body"] = body
|
4764
|
+
http_info["response_headers"] = response_headers
|
4765
|
+
|
4766
|
+
return http_info
|
4767
|
+
|
4502
4768
|
def show_job_detail(self, request):
|
4503
4769
|
"""获取指定ID的任务信息。
|
4504
4770
|
|
@@ -4695,6 +4961,73 @@ class GaussDBforopenGaussClient(Client):
|
|
4695
4961
|
|
4696
4962
|
return http_info
|
4697
4963
|
|
4964
|
+
def show_slow_log_download(self, request):
|
4965
|
+
"""查询慢日志下载信息
|
4966
|
+
|
4967
|
+
查询慢日志下载信息
|
4968
|
+
|
4969
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4970
|
+
|
4971
|
+
:param request: Request instance for ShowSlowLogDownload
|
4972
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowSlowLogDownloadRequest`
|
4973
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowSlowLogDownloadResponse`
|
4974
|
+
"""
|
4975
|
+
http_info = self._show_slow_log_download_http_info(request)
|
4976
|
+
return self._call_api(**http_info)
|
4977
|
+
|
4978
|
+
def show_slow_log_download_invoker(self, request):
|
4979
|
+
http_info = self._show_slow_log_download_http_info(request)
|
4980
|
+
return SyncInvoker(self, http_info)
|
4981
|
+
|
4982
|
+
@classmethod
|
4983
|
+
def _show_slow_log_download_http_info(cls, request):
|
4984
|
+
http_info = {
|
4985
|
+
"method": "GET",
|
4986
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/slow-log/download",
|
4987
|
+
"request_type": request.__class__.__name__,
|
4988
|
+
"response_type": "ShowSlowLogDownloadResponse"
|
4989
|
+
}
|
4990
|
+
|
4991
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4992
|
+
|
4993
|
+
cname = None
|
4994
|
+
|
4995
|
+
collection_formats = {}
|
4996
|
+
|
4997
|
+
path_params = {}
|
4998
|
+
if 'instance_id' in local_var_params:
|
4999
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
5000
|
+
|
5001
|
+
query_params = []
|
5002
|
+
|
5003
|
+
header_params = {}
|
5004
|
+
if 'x_language' in local_var_params:
|
5005
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5006
|
+
|
5007
|
+
form_params = {}
|
5008
|
+
|
5009
|
+
body = None
|
5010
|
+
if isinstance(request, SdkStreamRequest):
|
5011
|
+
body = request.get_file_stream()
|
5012
|
+
|
5013
|
+
response_headers = []
|
5014
|
+
|
5015
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5016
|
+
['application/json'])
|
5017
|
+
|
5018
|
+
auth_settings = []
|
5019
|
+
|
5020
|
+
http_info["cname"] = cname
|
5021
|
+
http_info["collection_formats"] = collection_formats
|
5022
|
+
http_info["path_params"] = path_params
|
5023
|
+
http_info["query_params"] = query_params
|
5024
|
+
http_info["header_params"] = header_params
|
5025
|
+
http_info["post_params"] = form_params
|
5026
|
+
http_info["body"] = body
|
5027
|
+
http_info["response_headers"] = response_headers
|
5028
|
+
|
5029
|
+
return http_info
|
5030
|
+
|
4698
5031
|
def show_ssl_cert_download_link(self, request):
|
4699
5032
|
"""查询实例SSL证书下载地址
|
4700
5033
|
|
@@ -4762,6 +5095,142 @@ class GaussDBforopenGaussClient(Client):
|
|
4762
5095
|
|
4763
5096
|
return http_info
|
4764
5097
|
|
5098
|
+
def show_upgrade_candidate_versions(self, request):
|
5099
|
+
"""查询实例可升级版本
|
5100
|
+
|
5101
|
+
查询实例可升级版本
|
5102
|
+
|
5103
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5104
|
+
|
5105
|
+
:param request: Request instance for ShowUpgradeCandidateVersions
|
5106
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowUpgradeCandidateVersionsRequest`
|
5107
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowUpgradeCandidateVersionsResponse`
|
5108
|
+
"""
|
5109
|
+
http_info = self._show_upgrade_candidate_versions_http_info(request)
|
5110
|
+
return self._call_api(**http_info)
|
5111
|
+
|
5112
|
+
def show_upgrade_candidate_versions_invoker(self, request):
|
5113
|
+
http_info = self._show_upgrade_candidate_versions_http_info(request)
|
5114
|
+
return SyncInvoker(self, http_info)
|
5115
|
+
|
5116
|
+
@classmethod
|
5117
|
+
def _show_upgrade_candidate_versions_http_info(cls, request):
|
5118
|
+
http_info = {
|
5119
|
+
"method": "GET",
|
5120
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/db-upgrade/candidate-versions",
|
5121
|
+
"request_type": request.__class__.__name__,
|
5122
|
+
"response_type": "ShowUpgradeCandidateVersionsResponse"
|
5123
|
+
}
|
5124
|
+
|
5125
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5126
|
+
|
5127
|
+
cname = None
|
5128
|
+
|
5129
|
+
collection_formats = {}
|
5130
|
+
|
5131
|
+
path_params = {}
|
5132
|
+
if 'instance_id' in local_var_params:
|
5133
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
5134
|
+
|
5135
|
+
query_params = []
|
5136
|
+
|
5137
|
+
header_params = {}
|
5138
|
+
if 'x_language' in local_var_params:
|
5139
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5140
|
+
|
5141
|
+
form_params = {}
|
5142
|
+
|
5143
|
+
body = None
|
5144
|
+
if isinstance(request, SdkStreamRequest):
|
5145
|
+
body = request.get_file_stream()
|
5146
|
+
|
5147
|
+
response_headers = []
|
5148
|
+
|
5149
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5150
|
+
['application/json'])
|
5151
|
+
|
5152
|
+
auth_settings = []
|
5153
|
+
|
5154
|
+
http_info["cname"] = cname
|
5155
|
+
http_info["collection_formats"] = collection_formats
|
5156
|
+
http_info["path_params"] = path_params
|
5157
|
+
http_info["query_params"] = query_params
|
5158
|
+
http_info["header_params"] = header_params
|
5159
|
+
http_info["post_params"] = form_params
|
5160
|
+
http_info["body"] = body
|
5161
|
+
http_info["response_headers"] = response_headers
|
5162
|
+
|
5163
|
+
return http_info
|
5164
|
+
|
5165
|
+
def start_instance(self, request):
|
5166
|
+
"""启动数据库
|
5167
|
+
|
5168
|
+
启动数据库,同时支持节点级别的启动操作
|
5169
|
+
|
5170
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5171
|
+
|
5172
|
+
:param request: Request instance for StartInstance
|
5173
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.StartInstanceRequest`
|
5174
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.StartInstanceResponse`
|
5175
|
+
"""
|
5176
|
+
http_info = self._start_instance_http_info(request)
|
5177
|
+
return self._call_api(**http_info)
|
5178
|
+
|
5179
|
+
def start_instance_invoker(self, request):
|
5180
|
+
http_info = self._start_instance_http_info(request)
|
5181
|
+
return SyncInvoker(self, http_info)
|
5182
|
+
|
5183
|
+
@classmethod
|
5184
|
+
def _start_instance_http_info(cls, request):
|
5185
|
+
http_info = {
|
5186
|
+
"method": "POST",
|
5187
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/db-startup",
|
5188
|
+
"request_type": request.__class__.__name__,
|
5189
|
+
"response_type": "StartInstanceResponse"
|
5190
|
+
}
|
5191
|
+
|
5192
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5193
|
+
|
5194
|
+
cname = None
|
5195
|
+
|
5196
|
+
collection_formats = {}
|
5197
|
+
|
5198
|
+
path_params = {}
|
5199
|
+
if 'instance_id' in local_var_params:
|
5200
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
5201
|
+
|
5202
|
+
query_params = []
|
5203
|
+
|
5204
|
+
header_params = {}
|
5205
|
+
if 'x_language' in local_var_params:
|
5206
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5207
|
+
|
5208
|
+
form_params = {}
|
5209
|
+
|
5210
|
+
body = None
|
5211
|
+
if 'body' in local_var_params:
|
5212
|
+
body = local_var_params['body']
|
5213
|
+
if isinstance(request, SdkStreamRequest):
|
5214
|
+
body = request.get_file_stream()
|
5215
|
+
|
5216
|
+
response_headers = []
|
5217
|
+
|
5218
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5219
|
+
['application/json;charset=UTF-8'])
|
5220
|
+
|
5221
|
+
auth_settings = []
|
5222
|
+
|
5223
|
+
http_info["cname"] = cname
|
5224
|
+
http_info["collection_formats"] = collection_formats
|
5225
|
+
http_info["path_params"] = path_params
|
5226
|
+
http_info["query_params"] = query_params
|
5227
|
+
http_info["header_params"] = header_params
|
5228
|
+
http_info["post_params"] = form_params
|
5229
|
+
http_info["body"] = body
|
5230
|
+
http_info["response_headers"] = response_headers
|
5231
|
+
|
5232
|
+
return http_info
|
5233
|
+
|
4765
5234
|
def stop_backup(self, request):
|
4766
5235
|
"""停止备份
|
4767
5236
|
|
@@ -5105,6 +5574,85 @@ class GaussDBforopenGaussClient(Client):
|
|
5105
5574
|
|
5106
5575
|
return http_info
|
5107
5576
|
|
5577
|
+
def upgrade_instance_version(self, request):
|
5578
|
+
"""实例内核版本升级
|
5579
|
+
|
5580
|
+
GaussDB(for openGauss)实例版本升级。包括灰度升级,就地升级,热补丁升级等三种升级方式。
|
5581
|
+
就地升级:
|
5582
|
+
就地升级需要停止业务进行,会一次性升级集群中所有节点。就地升级需要暂停业务30分钟来升级。
|
5583
|
+
灰度升级:
|
5584
|
+
升级自动提交:所有节点进程一起升级,在升级过程中有大概10秒的业务中断,不阻塞其他业务操作。
|
5585
|
+
升级待观察:升级待观察,将数据库升级过程细分为升级,提交两个阶段。升级阶段可以根据部署方式细分为按分片或者按az的滚动升级,提交阶段可以对升级完成后的实例进行业务测试,根据需要可以选择提交升级,或者升级回退。每个主dn或者cn组件升级就有一次10秒业务中断。升级过程均是先管理面,再数据面,由备到主的升级方式。 分布式实例:根据分片数滚动升级,每次滚动升级可以根据选择的分片数进行指定分片数量的节点进行升级。 主备版实例:根据AZ数进行滚动升级,每次滚动升级可以根据选择的AZ进行1个分区或者多个分区进行升级。
|
5586
|
+
提交升级:提交升级。在升级完成,进入提交阶段时。业务测试正常后提交升级,完成本次升级流程。
|
5587
|
+
升级回退:升级回退,在升级完成,进入提交阶段时。可以根据需要回退本次升级,回退到升级前的版本。
|
5588
|
+
热补丁升级:
|
5589
|
+
升级自动提交:热补丁自动升级并提交,中间无业务中断,仅修复产品bug。
|
5590
|
+
升级回退:热补丁回退,无业务中断时间
|
5591
|
+
|
5592
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5593
|
+
|
5594
|
+
:param request: Request instance for UpgradeInstanceVersion
|
5595
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeInstanceVersionRequest`
|
5596
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeInstanceVersionResponse`
|
5597
|
+
"""
|
5598
|
+
http_info = self._upgrade_instance_version_http_info(request)
|
5599
|
+
return self._call_api(**http_info)
|
5600
|
+
|
5601
|
+
def upgrade_instance_version_invoker(self, request):
|
5602
|
+
http_info = self._upgrade_instance_version_http_info(request)
|
5603
|
+
return SyncInvoker(self, http_info)
|
5604
|
+
|
5605
|
+
@classmethod
|
5606
|
+
def _upgrade_instance_version_http_info(cls, request):
|
5607
|
+
http_info = {
|
5608
|
+
"method": "PUT",
|
5609
|
+
"resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-upgrade",
|
5610
|
+
"request_type": request.__class__.__name__,
|
5611
|
+
"response_type": "UpgradeInstanceVersionResponse"
|
5612
|
+
}
|
5613
|
+
|
5614
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5615
|
+
|
5616
|
+
cname = None
|
5617
|
+
|
5618
|
+
collection_formats = {}
|
5619
|
+
|
5620
|
+
path_params = {}
|
5621
|
+
if 'instance_id' in local_var_params:
|
5622
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
5623
|
+
|
5624
|
+
query_params = []
|
5625
|
+
|
5626
|
+
header_params = {}
|
5627
|
+
if 'x_language' in local_var_params:
|
5628
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5629
|
+
|
5630
|
+
form_params = {}
|
5631
|
+
|
5632
|
+
body = None
|
5633
|
+
if 'body' in local_var_params:
|
5634
|
+
body = local_var_params['body']
|
5635
|
+
if isinstance(request, SdkStreamRequest):
|
5636
|
+
body = request.get_file_stream()
|
5637
|
+
|
5638
|
+
response_headers = []
|
5639
|
+
|
5640
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5641
|
+
['application/json;charset=UTF-8'])
|
5642
|
+
|
5643
|
+
auth_settings = []
|
5644
|
+
|
5645
|
+
http_info["cname"] = cname
|
5646
|
+
http_info["collection_formats"] = collection_formats
|
5647
|
+
http_info["path_params"] = path_params
|
5648
|
+
http_info["query_params"] = query_params
|
5649
|
+
http_info["header_params"] = header_params
|
5650
|
+
http_info["post_params"] = form_params
|
5651
|
+
http_info["body"] = body
|
5652
|
+
http_info["response_headers"] = response_headers
|
5653
|
+
|
5654
|
+
return http_info
|
5655
|
+
|
5108
5656
|
def validate_para_group_name(self, request):
|
5109
5657
|
"""校验参数组名称是否存在
|
5110
5658
|
|
@@ -20,6 +20,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.backups import Backups
|
|
20
20
|
from huaweicloudsdkgaussdbforopengauss.v3.model.backups_result import BackupsResult
|
21
21
|
from huaweicloudsdkgaussdbforopengauss.v3.model.bind_eip_request_body import BindEIPRequestBody
|
22
22
|
from huaweicloudsdkgaussdbforopengauss.v3.model.binded_eip_result import BindedEipResult
|
23
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.cn_info_before_reduce import CnInfoBeforeReduce
|
23
24
|
from huaweicloudsdkgaussdbforopengauss.v3.model.components import Components
|
24
25
|
from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_parameter import ConfigurationParameter
|
25
26
|
from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_result import ConfigurationResult
|
@@ -45,6 +46,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_manual_backup_request_bod
|
|
45
46
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_manual_backup_response import CreateManualBackupResponse
|
46
47
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_restore_instance_request import CreateRestoreInstanceRequest
|
47
48
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_restore_instance_response import CreateRestoreInstanceResponse
|
49
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_request import CreateSlowLogDownloadRequest
|
50
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_response import CreateSlowLogDownloadResponse
|
48
51
|
from huaweicloudsdkgaussdbforopengauss.v3.model.data_stroe_error_response import DataStroeErrorResponse
|
49
52
|
from huaweicloudsdkgaussdbforopengauss.v3.model.datastore_option import DatastoreOption
|
50
53
|
from huaweicloudsdkgaussdbforopengauss.v3.model.datastores_result import DatastoresResult
|
@@ -82,6 +85,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.get_restore_time_response_restor
|
|
82
85
|
from huaweicloudsdkgaussdbforopengauss.v3.model.instance_info_result import InstanceInfoResult
|
83
86
|
from huaweicloudsdkgaussdbforopengauss.v3.model.instances_list_result import InstancesListResult
|
84
87
|
from huaweicloudsdkgaussdbforopengauss.v3.model.instances_result import InstancesResult
|
88
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.instances_statistics_response_body_instances_statistics import InstancesStatisticsResponseBodyInstancesStatistics
|
85
89
|
from huaweicloudsdkgaussdbforopengauss.v3.model.job_detail import JobDetail
|
86
90
|
from huaweicloudsdkgaussdbforopengauss.v3.model.job_instance_info import JobInstanceInfo
|
87
91
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_applicable_instances_request import ListApplicableInstancesRequest
|
@@ -94,6 +98,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_request import List
|
|
94
98
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_response import ListBackupsResponse
|
95
99
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_binded_eips_request import ListBindedEipsRequest
|
96
100
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_binded_eips_response import ListBindedEipsResponse
|
101
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_cn_infos_before_reduce_request import ListCnInfosBeforeReduceRequest
|
102
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_cn_infos_before_reduce_response import ListCnInfosBeforeReduceResponse
|
97
103
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_component_infos_request import ListComponentInfosRequest
|
98
104
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_component_infos_response import ListComponentInfosResponse
|
99
105
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_configurations_diff_request import ListConfigurationsDiffRequest
|
@@ -183,6 +189,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_instance_result impor
|
|
183
189
|
from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_modify_instance_configuration_request import OpenGaussModifyInstanceConfigurationRequest
|
184
190
|
from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_resize_request import OpenGaussResizeRequest
|
185
191
|
from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_shard import OpenGaussShard
|
192
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_upgrade_request import OpenGaussUpgradeRequest
|
186
193
|
from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_volume import OpenGaussVolume
|
187
194
|
from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_volume_response import OpenGaussVolumeResponse
|
188
195
|
from huaweicloudsdkgaussdbforopengauss.v3.model.open_gauss_volume_result import OpenGaussVolumeResult
|
@@ -208,8 +215,11 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.resource_result import ResourceR
|
|
208
215
|
from huaweicloudsdkgaussdbforopengauss.v3.model.restart_instance_request import RestartInstanceRequest
|
209
216
|
from huaweicloudsdkgaussdbforopengauss.v3.model.restart_instance_response import RestartInstanceResponse
|
210
217
|
from huaweicloudsdkgaussdbforopengauss.v3.model.restore_point import RestorePoint
|
218
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.roll_upgrade_progress import RollUpgradeProgress
|
211
219
|
from huaweicloudsdkgaussdbforopengauss.v3.model.run_instance_action_request import RunInstanceActionRequest
|
212
220
|
from huaweicloudsdkgaussdbforopengauss.v3.model.run_instance_action_response import RunInstanceActionResponse
|
221
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.search_auto_enlarge_policy_request import SearchAutoEnlargePolicyRequest
|
222
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.search_auto_enlarge_policy_response import SearchAutoEnlargePolicyResponse
|
213
223
|
from huaweicloudsdkgaussdbforopengauss.v3.model.set_backup_policy_request import SetBackupPolicyRequest
|
214
224
|
from huaweicloudsdkgaussdbforopengauss.v3.model.set_backup_policy_request_body import SetBackupPolicyRequestBody
|
215
225
|
from huaweicloudsdkgaussdbforopengauss.v3.model.set_backup_policy_response import SetBackupPolicyResponse
|
@@ -235,14 +245,24 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_reques
|
|
235
245
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_response import ShowInstanceParamGroupResponse
|
236
246
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_snapshot_request import ShowInstanceSnapshotRequest
|
237
247
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_snapshot_response import ShowInstanceSnapshotResponse
|
248
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instances_statistics_request import ShowInstancesStatisticsRequest
|
249
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instances_statistics_response import ShowInstancesStatisticsResponse
|
238
250
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_job_detail_request import ShowJobDetailRequest
|
239
251
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_job_detail_response import ShowJobDetailResponse
|
240
252
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_request import ShowProjectQuotasRequest
|
241
253
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_response import ShowProjectQuotasResponse
|
242
254
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_recycle_policy_request import ShowRecyclePolicyRequest
|
243
255
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_recycle_policy_response import ShowRecyclePolicyResponse
|
256
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_slow_log_download_request import ShowSlowLogDownloadRequest
|
257
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_slow_log_download_response import ShowSlowLogDownloadResponse
|
244
258
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_ssl_cert_download_link_request import ShowSslCertDownloadLinkRequest
|
245
259
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_ssl_cert_download_link_response import ShowSslCertDownloadLinkResponse
|
260
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_request import ShowUpgradeCandidateVersionsRequest
|
261
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_response import ShowUpgradeCandidateVersionsResponse
|
262
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.slow_log_download_info import SlowLogDownloadInfo
|
263
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.start_instance_request import StartInstanceRequest
|
264
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.start_instance_request_body import StartInstanceRequestBody
|
265
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.start_instance_response import StartInstanceResponse
|
246
266
|
from huaweicloudsdkgaussdbforopengauss.v3.model.stop_backup_request import StopBackupRequest
|
247
267
|
from huaweicloudsdkgaussdbforopengauss.v3.model.stop_backup_response import StopBackupResponse
|
248
268
|
from huaweicloudsdkgaussdbforopengauss.v3.model.storage import Storage
|
@@ -260,6 +280,11 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_configuration_re
|
|
260
280
|
from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_name_request import UpdateInstanceNameRequest
|
261
281
|
from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_name_response import UpdateInstanceNameResponse
|
262
282
|
from huaweicloudsdkgaussdbforopengauss.v3.model.update_name_request_body import UpdateNameRequestBody
|
283
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.upgrade_action_info import UpgradeActionInfo
|
284
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.upgrade_error_response_body import UpgradeErrorResponseBody
|
285
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.upgrade_instance_version_request import UpgradeInstanceVersionRequest
|
286
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.upgrade_instance_version_response import UpgradeInstanceVersionResponse
|
287
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.upgrade_type_info import UpgradeTypeInfo
|
263
288
|
from huaweicloudsdkgaussdbforopengauss.v3.model.validate_para_group_name_request import ValidateParaGroupNameRequest
|
264
289
|
from huaweicloudsdkgaussdbforopengauss.v3.model.validate_para_group_name_response import ValidateParaGroupNameResponse
|
265
290
|
from huaweicloudsdkgaussdbforopengauss.v3.model.validate_weak_password_request import ValidateWeakPasswordRequest
|