huaweicloudsdkgaussdbforopengauss 3.1.137__py2.py3-none-any.whl → 3.1.139__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 +15 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +350 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +350 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +15 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/cancel_schedule_task_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/cancel_schedule_task_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_schedule_task_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_schedule_task_request_body.py +226 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_schedule_task_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_schedule_task_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_schedule_task_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instance_detail.py +260 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instance_engine_detail.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/instance_task_detail.py +173 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_engine_detail_request.py +173 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_engine_detail_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_schedule_task_request.py +318 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_schedule_task_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/schedule_task_detail.py +318 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.137.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.139.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.137.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.139.dist-info}/RECORD +24 -9
- {huaweicloudsdkgaussdbforopengauss-3.1.137.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.139.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.137.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.139.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.137.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.139.dist-info}/top_level.txt +0 -0
@@ -30,6 +30,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.bind_eip_request_body import Bin
|
|
30
30
|
from huaweicloudsdkgaussdbforopengauss.v3.model.binded_eip_result import BindedEipResult
|
31
31
|
from huaweicloudsdkgaussdbforopengauss.v3.model.can_be_rollbacked_hotfix_detail import CanBeRollbackedHotfixDetail
|
32
32
|
from huaweicloudsdkgaussdbforopengauss.v3.model.can_be_upgraded_hotfix_detail import CanBeUpgradedHotfixDetail
|
33
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.cancel_schedule_task_request import CancelScheduleTaskRequest
|
34
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.cancel_schedule_task_response import CancelScheduleTaskResponse
|
33
35
|
from huaweicloudsdkgaussdbforopengauss.v3.model.cn_info_before_reduce import CnInfoBeforeReduce
|
34
36
|
from huaweicloudsdkgaussdbforopengauss.v3.model.components import Components
|
35
37
|
from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_parameter import ConfigurationParameter
|
@@ -74,6 +76,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_manual_backup_request_bod
|
|
74
76
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_manual_backup_response import CreateManualBackupResponse
|
75
77
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_restore_instance_request import CreateRestoreInstanceRequest
|
76
78
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_restore_instance_response import CreateRestoreInstanceResponse
|
79
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_schedule_task_request import CreateScheduleTaskRequest
|
80
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_schedule_task_request_body import CreateScheduleTaskRequestBody
|
81
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_schedule_task_response import CreateScheduleTaskResponse
|
77
82
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_request import CreateSlowLogDownloadRequest
|
78
83
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_response import CreateSlowLogDownloadResponse
|
79
84
|
from huaweicloudsdkgaussdbforopengauss.v3.model.data_stroe_error_response import DataStroeErrorResponse
|
@@ -99,6 +104,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_limit_task_request import
|
|
99
104
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_limit_task_response import DeleteLimitTaskResponse
|
100
105
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_manual_backup_request import DeleteManualBackupRequest
|
101
106
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_manual_backup_response import DeleteManualBackupResponse
|
107
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_schedule_task_request import DeleteScheduleTaskRequest
|
108
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_schedule_task_response import DeleteScheduleTaskResponse
|
102
109
|
from huaweicloudsdkgaussdbforopengauss.v3.model.download_backup_error_response import DownloadBackupErrorResponse
|
103
110
|
from huaweicloudsdkgaussdbforopengauss.v3.model.download_backup_request import DownloadBackupRequest
|
104
111
|
from huaweicloudsdkgaussdbforopengauss.v3.model.download_backup_response import DownloadBackupResponse
|
@@ -133,8 +140,11 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_version_info import Hotfi
|
|
133
140
|
from huaweicloudsdkgaussdbforopengauss.v3.model.install_kernel_plugin_request import InstallKernelPluginRequest
|
134
141
|
from huaweicloudsdkgaussdbforopengauss.v3.model.install_kernel_plugin_request_body import InstallKernelPluginRequestBody
|
135
142
|
from huaweicloudsdkgaussdbforopengauss.v3.model.install_kernel_plugin_response import InstallKernelPluginResponse
|
143
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.instance_detail import InstanceDetail
|
144
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.instance_engine_detail import InstanceEngineDetail
|
136
145
|
from huaweicloudsdkgaussdbforopengauss.v3.model.instance_info_result import InstanceInfoResult
|
137
146
|
from huaweicloudsdkgaussdbforopengauss.v3.model.instance_log_file import InstanceLogFile
|
147
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.instance_task_detail import InstanceTaskDetail
|
138
148
|
from huaweicloudsdkgaussdbforopengauss.v3.model.instances_list_result import InstancesListResult
|
139
149
|
from huaweicloudsdkgaussdbforopengauss.v3.model.instances_result import InstancesResult
|
140
150
|
from huaweicloudsdkgaussdbforopengauss.v3.model.job_detail import JobDetail
|
@@ -200,6 +210,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_history_operations_result i
|
|
200
210
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_datastore import ListInstanceDatastore
|
201
211
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_details_request import ListInstanceDetailsRequest
|
202
212
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_details_response import ListInstanceDetailsResponse
|
213
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_engine_detail_request import ListInstanceEngineDetailRequest
|
214
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_engine_detail_response import ListInstanceEngineDetailResponse
|
203
215
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_error_logs_request import ListInstanceErrorLogsRequest
|
204
216
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_error_logs_response import ListInstanceErrorLogsResponse
|
205
217
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_instance_response import ListInstanceResponse
|
@@ -241,6 +253,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_reques
|
|
241
253
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_response import ListRestorableInstancesResponse
|
242
254
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_restore_times_request import ListRestoreTimesRequest
|
243
255
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_restore_times_response import ListRestoreTimesResponse
|
256
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_schedule_task_request import ListScheduleTaskRequest
|
257
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_schedule_task_response import ListScheduleTaskResponse
|
244
258
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_request import ListStorageTypesRequest
|
245
259
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_storage_types_response import ListStorageTypesResponse
|
246
260
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_support_kernel_plugins_request import ListSupportKernelPluginsRequest
|
@@ -321,6 +335,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.resume_plugin_extensions_respons
|
|
321
335
|
from huaweicloudsdkgaussdbforopengauss.v3.model.roll_upgrade_progress import RollUpgradeProgress
|
322
336
|
from huaweicloudsdkgaussdbforopengauss.v3.model.run_instance_action_request import RunInstanceActionRequest
|
323
337
|
from huaweicloudsdkgaussdbforopengauss.v3.model.run_instance_action_response import RunInstanceActionResponse
|
338
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.schedule_task_detail import ScheduleTaskDetail
|
324
339
|
from huaweicloudsdkgaussdbforopengauss.v3.model.search_auto_enlarge_policy_request import SearchAutoEnlargePolicyRequest
|
325
340
|
from huaweicloudsdkgaussdbforopengauss.v3.model.search_auto_enlarge_policy_response import SearchAutoEnlargePolicyResponse
|
326
341
|
from huaweicloudsdkgaussdbforopengauss.v3.model.set_backup_policy_request import SetBackupPolicyRequest
|
@@ -8,6 +8,7 @@ import warnings
|
|
8
8
|
from huaweicloudsdkcore.client import Client, ClientBuilder
|
9
9
|
from huaweicloudsdkcore.utils import http_utils
|
10
10
|
from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
|
11
|
+
|
11
12
|
try:
|
12
13
|
from huaweicloudsdkcore.invoker.invoker import AsyncInvoker
|
13
14
|
except ImportError as e:
|
@@ -377,6 +378,73 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
377
378
|
|
378
379
|
return http_info
|
379
380
|
|
381
|
+
def cancel_schedule_task_async(self, request):
|
382
|
+
"""取消定时任务
|
383
|
+
|
384
|
+
取消定时任务
|
385
|
+
|
386
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
387
|
+
|
388
|
+
|
389
|
+
:param request: Request instance for CancelScheduleTask
|
390
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CancelScheduleTaskRequest`
|
391
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CancelScheduleTaskResponse`
|
392
|
+
"""
|
393
|
+
http_info = self._cancel_schedule_task_http_info(request)
|
394
|
+
return self._call_api(**http_info)
|
395
|
+
|
396
|
+
def cancel_schedule_task_async_invoker(self, request):
|
397
|
+
http_info = self._cancel_schedule_task_http_info(request)
|
398
|
+
return AsyncInvoker(self, http_info)
|
399
|
+
|
400
|
+
def _cancel_schedule_task_http_info(self, request):
|
401
|
+
http_info = {
|
402
|
+
"method": "PUT",
|
403
|
+
"resource_path": "/v3/{project_id}/instances/schedule-task/{task_id}/cancel",
|
404
|
+
"request_type": request.__class__.__name__,
|
405
|
+
"response_type": "CancelScheduleTaskResponse"
|
406
|
+
}
|
407
|
+
|
408
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
409
|
+
|
410
|
+
cname = None
|
411
|
+
|
412
|
+
collection_formats = {}
|
413
|
+
|
414
|
+
path_params = {}
|
415
|
+
if 'task_id' in local_var_params:
|
416
|
+
path_params['task_id'] = local_var_params['task_id']
|
417
|
+
|
418
|
+
query_params = []
|
419
|
+
|
420
|
+
header_params = {}
|
421
|
+
if 'x_language' in local_var_params:
|
422
|
+
header_params['X-Language'] = local_var_params['x_language']
|
423
|
+
|
424
|
+
form_params = {}
|
425
|
+
|
426
|
+
body = None
|
427
|
+
if isinstance(request, SdkStreamRequest):
|
428
|
+
body = request.get_file_stream()
|
429
|
+
|
430
|
+
response_headers = []
|
431
|
+
|
432
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
433
|
+
['application/json'])
|
434
|
+
|
435
|
+
auth_settings = []
|
436
|
+
|
437
|
+
http_info["cname"] = cname
|
438
|
+
http_info["collection_formats"] = collection_formats
|
439
|
+
http_info["path_params"] = path_params
|
440
|
+
http_info["query_params"] = query_params
|
441
|
+
http_info["header_params"] = header_params
|
442
|
+
http_info["post_params"] = form_params
|
443
|
+
http_info["body"] = body
|
444
|
+
http_info["response_headers"] = response_headers
|
445
|
+
|
446
|
+
return http_info
|
447
|
+
|
380
448
|
def confirm_restored_data_async(self, request):
|
381
449
|
"""备份恢复到目标实例数据后执行数据确认
|
382
450
|
|
@@ -1260,6 +1328,73 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
1260
1328
|
|
1261
1329
|
return http_info
|
1262
1330
|
|
1331
|
+
def create_schedule_task_async(self, request):
|
1332
|
+
"""批量实例内核版本定时升级
|
1333
|
+
|
1334
|
+
批量实例内核版本定时升级
|
1335
|
+
|
1336
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1337
|
+
|
1338
|
+
|
1339
|
+
:param request: Request instance for CreateScheduleTask
|
1340
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateScheduleTaskRequest`
|
1341
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateScheduleTaskResponse`
|
1342
|
+
"""
|
1343
|
+
http_info = self._create_schedule_task_http_info(request)
|
1344
|
+
return self._call_api(**http_info)
|
1345
|
+
|
1346
|
+
def create_schedule_task_async_invoker(self, request):
|
1347
|
+
http_info = self._create_schedule_task_http_info(request)
|
1348
|
+
return AsyncInvoker(self, http_info)
|
1349
|
+
|
1350
|
+
def _create_schedule_task_http_info(self, request):
|
1351
|
+
http_info = {
|
1352
|
+
"method": "POST",
|
1353
|
+
"resource_path": "/v3/{project_id}/instances/db-upgrade/schedule-task",
|
1354
|
+
"request_type": request.__class__.__name__,
|
1355
|
+
"response_type": "CreateScheduleTaskResponse"
|
1356
|
+
}
|
1357
|
+
|
1358
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1359
|
+
|
1360
|
+
cname = None
|
1361
|
+
|
1362
|
+
collection_formats = {}
|
1363
|
+
|
1364
|
+
path_params = {}
|
1365
|
+
|
1366
|
+
query_params = []
|
1367
|
+
|
1368
|
+
header_params = {}
|
1369
|
+
if 'x_language' in local_var_params:
|
1370
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1371
|
+
|
1372
|
+
form_params = {}
|
1373
|
+
|
1374
|
+
body = None
|
1375
|
+
if 'body' in local_var_params:
|
1376
|
+
body = local_var_params['body']
|
1377
|
+
if isinstance(request, SdkStreamRequest):
|
1378
|
+
body = request.get_file_stream()
|
1379
|
+
|
1380
|
+
response_headers = []
|
1381
|
+
|
1382
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1383
|
+
['application/json;charset=UTF-8'])
|
1384
|
+
|
1385
|
+
auth_settings = []
|
1386
|
+
|
1387
|
+
http_info["cname"] = cname
|
1388
|
+
http_info["collection_formats"] = collection_formats
|
1389
|
+
http_info["path_params"] = path_params
|
1390
|
+
http_info["query_params"] = query_params
|
1391
|
+
http_info["header_params"] = header_params
|
1392
|
+
http_info["post_params"] = form_params
|
1393
|
+
http_info["body"] = body
|
1394
|
+
http_info["response_headers"] = response_headers
|
1395
|
+
|
1396
|
+
return http_info
|
1397
|
+
|
1263
1398
|
def create_slow_log_download_async(self, request):
|
1264
1399
|
"""创建慢日志下载信息
|
1265
1400
|
|
@@ -1802,6 +1937,73 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
1802
1937
|
|
1803
1938
|
return http_info
|
1804
1939
|
|
1940
|
+
def delete_schedule_task_async(self, request):
|
1941
|
+
"""删除定时任务信息
|
1942
|
+
|
1943
|
+
删除定时任务信息
|
1944
|
+
|
1945
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1946
|
+
|
1947
|
+
|
1948
|
+
:param request: Request instance for DeleteScheduleTask
|
1949
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteScheduleTaskRequest`
|
1950
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteScheduleTaskResponse`
|
1951
|
+
"""
|
1952
|
+
http_info = self._delete_schedule_task_http_info(request)
|
1953
|
+
return self._call_api(**http_info)
|
1954
|
+
|
1955
|
+
def delete_schedule_task_async_invoker(self, request):
|
1956
|
+
http_info = self._delete_schedule_task_http_info(request)
|
1957
|
+
return AsyncInvoker(self, http_info)
|
1958
|
+
|
1959
|
+
def _delete_schedule_task_http_info(self, request):
|
1960
|
+
http_info = {
|
1961
|
+
"method": "DELETE",
|
1962
|
+
"resource_path": "/v3/{project_id}/instances/schedule-task/{task_id}",
|
1963
|
+
"request_type": request.__class__.__name__,
|
1964
|
+
"response_type": "DeleteScheduleTaskResponse"
|
1965
|
+
}
|
1966
|
+
|
1967
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1968
|
+
|
1969
|
+
cname = None
|
1970
|
+
|
1971
|
+
collection_formats = {}
|
1972
|
+
|
1973
|
+
path_params = {}
|
1974
|
+
if 'task_id' in local_var_params:
|
1975
|
+
path_params['task_id'] = local_var_params['task_id']
|
1976
|
+
|
1977
|
+
query_params = []
|
1978
|
+
|
1979
|
+
header_params = {}
|
1980
|
+
if 'x_language' in local_var_params:
|
1981
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1982
|
+
|
1983
|
+
form_params = {}
|
1984
|
+
|
1985
|
+
body = None
|
1986
|
+
if isinstance(request, SdkStreamRequest):
|
1987
|
+
body = request.get_file_stream()
|
1988
|
+
|
1989
|
+
response_headers = []
|
1990
|
+
|
1991
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1992
|
+
['application/json'])
|
1993
|
+
|
1994
|
+
auth_settings = []
|
1995
|
+
|
1996
|
+
http_info["cname"] = cname
|
1997
|
+
http_info["collection_formats"] = collection_formats
|
1998
|
+
http_info["path_params"] = path_params
|
1999
|
+
http_info["query_params"] = query_params
|
2000
|
+
http_info["header_params"] = header_params
|
2001
|
+
http_info["post_params"] = form_params
|
2002
|
+
http_info["body"] = body
|
2003
|
+
http_info["response_headers"] = response_headers
|
2004
|
+
|
2005
|
+
return http_info
|
2006
|
+
|
1805
2007
|
def download_backup_async(self, request):
|
1806
2008
|
"""获取备份下载链接
|
1807
2009
|
|
@@ -3824,6 +4026,75 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
3824
4026
|
|
3825
4027
|
return http_info
|
3826
4028
|
|
4029
|
+
def list_instance_engine_detail_async(self, request):
|
4030
|
+
"""查看实例引擎版本分布
|
4031
|
+
|
4032
|
+
查看实例引擎版本分布
|
4033
|
+
|
4034
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4035
|
+
|
4036
|
+
|
4037
|
+
:param request: Request instance for ListInstanceEngineDetail
|
4038
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstanceEngineDetailRequest`
|
4039
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstanceEngineDetailResponse`
|
4040
|
+
"""
|
4041
|
+
http_info = self._list_instance_engine_detail_http_info(request)
|
4042
|
+
return self._call_api(**http_info)
|
4043
|
+
|
4044
|
+
def list_instance_engine_detail_async_invoker(self, request):
|
4045
|
+
http_info = self._list_instance_engine_detail_http_info(request)
|
4046
|
+
return AsyncInvoker(self, http_info)
|
4047
|
+
|
4048
|
+
def _list_instance_engine_detail_http_info(self, request):
|
4049
|
+
http_info = {
|
4050
|
+
"method": "GET",
|
4051
|
+
"resource_path": "/v3/{project_id}/datastore/instances",
|
4052
|
+
"request_type": request.__class__.__name__,
|
4053
|
+
"response_type": "ListInstanceEngineDetailResponse"
|
4054
|
+
}
|
4055
|
+
|
4056
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4057
|
+
|
4058
|
+
cname = None
|
4059
|
+
|
4060
|
+
collection_formats = {}
|
4061
|
+
|
4062
|
+
path_params = {}
|
4063
|
+
|
4064
|
+
query_params = []
|
4065
|
+
if 'offset' in local_var_params:
|
4066
|
+
query_params.append(('offset', local_var_params['offset']))
|
4067
|
+
if 'limit' in local_var_params:
|
4068
|
+
query_params.append(('limit', local_var_params['limit']))
|
4069
|
+
|
4070
|
+
header_params = {}
|
4071
|
+
if 'x_language' in local_var_params:
|
4072
|
+
header_params['X-Language'] = local_var_params['x_language']
|
4073
|
+
|
4074
|
+
form_params = {}
|
4075
|
+
|
4076
|
+
body = None
|
4077
|
+
if isinstance(request, SdkStreamRequest):
|
4078
|
+
body = request.get_file_stream()
|
4079
|
+
|
4080
|
+
response_headers = []
|
4081
|
+
|
4082
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4083
|
+
['application/json'])
|
4084
|
+
|
4085
|
+
auth_settings = []
|
4086
|
+
|
4087
|
+
http_info["cname"] = cname
|
4088
|
+
http_info["collection_formats"] = collection_formats
|
4089
|
+
http_info["path_params"] = path_params
|
4090
|
+
http_info["query_params"] = query_params
|
4091
|
+
http_info["header_params"] = header_params
|
4092
|
+
http_info["post_params"] = form_params
|
4093
|
+
http_info["body"] = body
|
4094
|
+
http_info["response_headers"] = response_headers
|
4095
|
+
|
4096
|
+
return http_info
|
4097
|
+
|
3827
4098
|
def list_instance_error_logs_async(self, request):
|
3828
4099
|
"""查询错误日志下载链接
|
3829
4100
|
|
@@ -4904,6 +5175,85 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
4904
5175
|
|
4905
5176
|
return http_info
|
4906
5177
|
|
5178
|
+
def list_schedule_task_async(self, request):
|
5179
|
+
"""查看定时任务列表
|
5180
|
+
|
5181
|
+
查看定时任务列表
|
5182
|
+
|
5183
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5184
|
+
|
5185
|
+
|
5186
|
+
:param request: Request instance for ListScheduleTask
|
5187
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListScheduleTaskRequest`
|
5188
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListScheduleTaskResponse`
|
5189
|
+
"""
|
5190
|
+
http_info = self._list_schedule_task_http_info(request)
|
5191
|
+
return self._call_api(**http_info)
|
5192
|
+
|
5193
|
+
def list_schedule_task_async_invoker(self, request):
|
5194
|
+
http_info = self._list_schedule_task_http_info(request)
|
5195
|
+
return AsyncInvoker(self, http_info)
|
5196
|
+
|
5197
|
+
def _list_schedule_task_http_info(self, request):
|
5198
|
+
http_info = {
|
5199
|
+
"method": "GET",
|
5200
|
+
"resource_path": "/v3/{project_id}/instances/schedule-tasks",
|
5201
|
+
"request_type": request.__class__.__name__,
|
5202
|
+
"response_type": "ListScheduleTaskResponse"
|
5203
|
+
}
|
5204
|
+
|
5205
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5206
|
+
|
5207
|
+
cname = None
|
5208
|
+
|
5209
|
+
collection_formats = {}
|
5210
|
+
|
5211
|
+
path_params = {}
|
5212
|
+
|
5213
|
+
query_params = []
|
5214
|
+
if 'instance_id' in local_var_params:
|
5215
|
+
query_params.append(('instance_id', local_var_params['instance_id']))
|
5216
|
+
if 'status' in local_var_params:
|
5217
|
+
query_params.append(('status', local_var_params['status']))
|
5218
|
+
if 'name' in local_var_params:
|
5219
|
+
query_params.append(('name', local_var_params['name']))
|
5220
|
+
if 'start_time' in local_var_params:
|
5221
|
+
query_params.append(('start_time', local_var_params['start_time']))
|
5222
|
+
if 'end_time' in local_var_params:
|
5223
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
5224
|
+
if 'offset' in local_var_params:
|
5225
|
+
query_params.append(('offset', local_var_params['offset']))
|
5226
|
+
if 'limit' in local_var_params:
|
5227
|
+
query_params.append(('limit', local_var_params['limit']))
|
5228
|
+
|
5229
|
+
header_params = {}
|
5230
|
+
if 'x_language' in local_var_params:
|
5231
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5232
|
+
|
5233
|
+
form_params = {}
|
5234
|
+
|
5235
|
+
body = None
|
5236
|
+
if isinstance(request, SdkStreamRequest):
|
5237
|
+
body = request.get_file_stream()
|
5238
|
+
|
5239
|
+
response_headers = []
|
5240
|
+
|
5241
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5242
|
+
['application/json'])
|
5243
|
+
|
5244
|
+
auth_settings = []
|
5245
|
+
|
5246
|
+
http_info["cname"] = cname
|
5247
|
+
http_info["collection_formats"] = collection_formats
|
5248
|
+
http_info["path_params"] = path_params
|
5249
|
+
http_info["query_params"] = query_params
|
5250
|
+
http_info["header_params"] = header_params
|
5251
|
+
http_info["post_params"] = form_params
|
5252
|
+
http_info["body"] = body
|
5253
|
+
http_info["response_headers"] = response_headers
|
5254
|
+
|
5255
|
+
return http_info
|
5256
|
+
|
4907
5257
|
def list_storage_types_async(self, request):
|
4908
5258
|
"""查询数据库磁盘类型
|
4909
5259
|
|