huaweicloudsdkgaussdbforopengauss 3.1.91__py2.py3-none-any.whl → 3.1.93__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 +10 -3
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +286 -65
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +286 -65
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +10 -3
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_request.py +171 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_instance_tag_response.py +174 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instance_log_file.py +260 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_request.py +257 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_error_logs_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_request.py +257 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_top_io_traffics_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_upgrade_request.py +20 -49
- huaweicloudsdkgaussdbforopengauss/v3/model/show_backup_policy.py +4 -4
- huaweicloudsdkgaussdbforopengauss/v3/model/{instances_statistics_response_body_instances_statistics.py → show_error_log_switch_status_request.py} +42 -41
- huaweicloudsdkgaussdbforopengauss/v3/model/{show_instances_statistics_request.py → show_error_log_switch_status_response.py} +25 -24
- huaweicloudsdkgaussdbforopengauss/v3/model/top_io_info.py +405 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.93.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.93.dist-info}/RECORD +21 -14
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instances_statistics_response.py +0 -145
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.93.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.93.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.91.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.93.dist-info}/top_level.txt +0 -0
@@ -61,6 +61,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_request import D
|
|
61
61
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_response import DeleteDatabaseResponse
|
62
62
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_request import DeleteInstanceRequest
|
63
63
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_response import DeleteInstanceResponse
|
64
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_tag_request import DeleteInstanceTagRequest
|
65
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_tag_response import DeleteInstanceTagResponse
|
64
66
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_job_request import DeleteJobRequest
|
65
67
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_job_response import DeleteJobResponse
|
66
68
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_manual_backup_request import DeleteManualBackupRequest
|
@@ -85,9 +87,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_for
|
|
85
87
|
from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_with_privilege import GaussDBforOpenGaussUserWithPrivilege
|
86
88
|
from huaweicloudsdkgaussdbforopengauss.v3.model.get_restore_time_response_restore_time import GetRestoreTimeResponseRestoreTime
|
87
89
|
from huaweicloudsdkgaussdbforopengauss.v3.model.instance_info_result import InstanceInfoResult
|
90
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.instance_log_file import InstanceLogFile
|
88
91
|
from huaweicloudsdkgaussdbforopengauss.v3.model.instances_list_result import InstancesListResult
|
89
92
|
from huaweicloudsdkgaussdbforopengauss.v3.model.instances_result import InstancesResult
|
90
|
-
from huaweicloudsdkgaussdbforopengauss.v3.model.instances_statistics_response_body_instances_statistics import InstancesStatisticsResponseBodyInstancesStatistics
|
91
93
|
from huaweicloudsdkgaussdbforopengauss.v3.model.job_detail import JobDetail
|
92
94
|
from huaweicloudsdkgaussdbforopengauss.v3.model.job_instance_info import JobInstanceInfo
|
93
95
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_applicable_instances_request import ListApplicableInstancesRequest
|
@@ -134,6 +136,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_ha_result import ListHaResu
|
|
134
136
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_history_operations_request import ListHistoryOperationsRequest
|
135
137
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_history_operations_response import ListHistoryOperationsResponse
|
136
138
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_history_operations_result import ListHistoryOperationsResult
|
139
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_error_logs_request import ListInstanceErrorLogsRequest
|
140
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_error_logs_response import ListInstanceErrorLogsResponse
|
137
141
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_response import ListInstanceResponse
|
138
142
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_result import ListInstanceResult
|
139
143
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_tags_request import ListInstanceTagsRequest
|
@@ -159,6 +163,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_request impor
|
|
159
163
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_response import ListStorageTypesResponse
|
160
164
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_tasks_request import ListTasksRequest
|
161
165
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_tasks_response import ListTasksResponse
|
166
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_top_io_traffics_request import ListTopIoTrafficsRequest
|
167
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_top_io_traffics_response import ListTopIoTrafficsResponse
|
162
168
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_volume import ListVolume
|
163
169
|
from huaweicloudsdkgaussdbforopengauss.v3.model.modify_eps_quota_request import ModifyEpsQuotaRequest
|
164
170
|
from huaweicloudsdkgaussdbforopengauss.v3.model.modify_eps_quota_request_body import ModifyEpsQuotaRequestBody
|
@@ -239,6 +245,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_configuration_detail_reques
|
|
239
245
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_configuration_detail_response import ShowConfigurationDetailResponse
|
240
246
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_deployment_form_request import ShowDeploymentFormRequest
|
241
247
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_deployment_form_response import ShowDeploymentFormResponse
|
248
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_error_log_switch_status_request import ShowErrorLogSwitchStatusRequest
|
249
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_error_log_switch_status_response import ShowErrorLogSwitchStatusResponse
|
242
250
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_configuration_request import ShowInstanceConfigurationRequest
|
243
251
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_configuration_response import ShowInstanceConfigurationResponse
|
244
252
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_disk_request import ShowInstanceDiskRequest
|
@@ -247,8 +255,6 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_reques
|
|
247
255
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_response import ShowInstanceParamGroupResponse
|
248
256
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_snapshot_request import ShowInstanceSnapshotRequest
|
249
257
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_snapshot_response import ShowInstanceSnapshotResponse
|
250
|
-
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instances_statistics_request import ShowInstancesStatisticsRequest
|
251
|
-
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instances_statistics_response import ShowInstancesStatisticsResponse
|
252
258
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_job_detail_request import ShowJobDetailRequest
|
253
259
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_job_detail_response import ShowJobDetailResponse
|
254
260
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_request import ShowProjectQuotasRequest
|
@@ -277,6 +283,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.tag_result import TagResult
|
|
277
283
|
from huaweicloudsdkgaussdbforopengauss.v3.model.tags_option import TagsOption
|
278
284
|
from huaweicloudsdkgaussdbforopengauss.v3.model.tags_result import TagsResult
|
279
285
|
from huaweicloudsdkgaussdbforopengauss.v3.model.task_detail_result import TaskDetailResult
|
286
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.top_io_info import TopIoInfo
|
280
287
|
from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_configuration_request import UpdateInstanceConfigurationRequest
|
281
288
|
from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_configuration_response import UpdateInstanceConfigurationResponse
|
282
289
|
from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_name_request import UpdateInstanceNameRequest
|
@@ -1122,6 +1122,75 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
1122
1122
|
|
1123
1123
|
return http_info
|
1124
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
|
+
|
1125
1194
|
def delete_job_async(self, request):
|
1126
1195
|
"""删除任务记录
|
1127
1196
|
|
@@ -2680,6 +2749,81 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
2680
2749
|
|
2681
2750
|
return http_info
|
2682
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
|
+
|
2683
2827
|
def list_instance_tags_async(self, request):
|
2684
2828
|
"""查询实例标签
|
2685
2829
|
|
@@ -3480,6 +3624,81 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
3480
3624
|
|
3481
3625
|
return http_info
|
3482
3626
|
|
3627
|
+
def list_top_io_traffics_async(self, request):
|
3628
|
+
"""查询Top IO列表
|
3629
|
+
|
3630
|
+
查询实例数据库进程下的Top IO流量数据,返回与会话信息相关联后的结果
|
3631
|
+
|
3632
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3633
|
+
|
3634
|
+
|
3635
|
+
:param request: Request instance for ListTopIoTraffics
|
3636
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListTopIoTrafficsRequest`
|
3637
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListTopIoTrafficsResponse`
|
3638
|
+
"""
|
3639
|
+
http_info = self._list_top_io_traffics_http_info(request)
|
3640
|
+
return self._call_api(**http_info)
|
3641
|
+
|
3642
|
+
def list_top_io_traffics_async_invoker(self, request):
|
3643
|
+
http_info = self._list_top_io_traffics_http_info(request)
|
3644
|
+
return AsyncInvoker(self, http_info)
|
3645
|
+
|
3646
|
+
def _list_top_io_traffics_http_info(self, request):
|
3647
|
+
http_info = {
|
3648
|
+
"method": "GET",
|
3649
|
+
"resource_path": "/v3/{project_id}/instances/{instance_id}/top-io-traffics",
|
3650
|
+
"request_type": request.__class__.__name__,
|
3651
|
+
"response_type": "ListTopIoTrafficsResponse"
|
3652
|
+
}
|
3653
|
+
|
3654
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3655
|
+
|
3656
|
+
cname = None
|
3657
|
+
|
3658
|
+
collection_formats = {}
|
3659
|
+
|
3660
|
+
path_params = {}
|
3661
|
+
if 'instance_id' in local_var_params:
|
3662
|
+
path_params['instance_id'] = local_var_params['instance_id']
|
3663
|
+
|
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']))
|
3673
|
+
|
3674
|
+
header_params = {}
|
3675
|
+
if 'x_language' in local_var_params:
|
3676
|
+
header_params['X-Language'] = local_var_params['x_language']
|
3677
|
+
|
3678
|
+
form_params = {}
|
3679
|
+
|
3680
|
+
body = None
|
3681
|
+
if isinstance(request, SdkStreamRequest):
|
3682
|
+
body = request.get_file_stream()
|
3683
|
+
|
3684
|
+
response_headers = []
|
3685
|
+
|
3686
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3687
|
+
['application/json'])
|
3688
|
+
|
3689
|
+
auth_settings = []
|
3690
|
+
|
3691
|
+
http_info["cname"] = cname
|
3692
|
+
http_info["collection_formats"] = collection_formats
|
3693
|
+
http_info["path_params"] = path_params
|
3694
|
+
http_info["query_params"] = query_params
|
3695
|
+
http_info["header_params"] = header_params
|
3696
|
+
http_info["post_params"] = form_params
|
3697
|
+
http_info["body"] = body
|
3698
|
+
http_info["response_headers"] = response_headers
|
3699
|
+
|
3700
|
+
return http_info
|
3701
|
+
|
3483
3702
|
def modify_eps_quota_async(self, request):
|
3484
3703
|
"""修改企业项目配额
|
3485
3704
|
|
@@ -4428,6 +4647,73 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
4428
4647
|
|
4429
4648
|
return http_info
|
4430
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
|
+
|
4431
4717
|
def show_instance_configuration_async(self, request):
|
4432
4718
|
"""获取指定实例的参数模板
|
4433
4719
|
|
@@ -4700,71 +4986,6 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
4700
4986
|
|
4701
4987
|
return http_info
|
4702
4988
|
|
4703
|
-
def show_instances_statistics_async(self, request):
|
4704
|
-
"""实例统计
|
4705
|
-
|
4706
|
-
实例统计
|
4707
|
-
|
4708
|
-
Please refer to HUAWEI cloud API Explorer for details.
|
4709
|
-
|
4710
|
-
|
4711
|
-
:param request: Request instance for ShowInstancesStatistics
|
4712
|
-
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstancesStatisticsRequest`
|
4713
|
-
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ShowInstancesStatisticsResponse`
|
4714
|
-
"""
|
4715
|
-
http_info = self._show_instances_statistics_http_info(request)
|
4716
|
-
return self._call_api(**http_info)
|
4717
|
-
|
4718
|
-
def show_instances_statistics_async_invoker(self, request):
|
4719
|
-
http_info = self._show_instances_statistics_http_info(request)
|
4720
|
-
return AsyncInvoker(self, http_info)
|
4721
|
-
|
4722
|
-
def _show_instances_statistics_http_info(self, 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
|
-
|
4768
4989
|
def show_job_detail_async(self, request):
|
4769
4990
|
"""获取指定ID的任务信息。
|
4770
4991
|
|