huaweicloudsdkgaussdbforopengauss 3.1.136__py2.py3-none-any.whl → 3.1.138__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 +349 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +349 -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.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/RECORD +24 -9
- {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.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
|
@@ -377,6 +377,73 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
377
377
|
|
378
378
|
return http_info
|
379
379
|
|
380
|
+
def cancel_schedule_task_async(self, request):
|
381
|
+
"""取消定时任务
|
382
|
+
|
383
|
+
取消定时任务
|
384
|
+
|
385
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
386
|
+
|
387
|
+
|
388
|
+
:param request: Request instance for CancelScheduleTask
|
389
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CancelScheduleTaskRequest`
|
390
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CancelScheduleTaskResponse`
|
391
|
+
"""
|
392
|
+
http_info = self._cancel_schedule_task_http_info(request)
|
393
|
+
return self._call_api(**http_info)
|
394
|
+
|
395
|
+
def cancel_schedule_task_async_invoker(self, request):
|
396
|
+
http_info = self._cancel_schedule_task_http_info(request)
|
397
|
+
return AsyncInvoker(self, http_info)
|
398
|
+
|
399
|
+
def _cancel_schedule_task_http_info(self, request):
|
400
|
+
http_info = {
|
401
|
+
"method": "PUT",
|
402
|
+
"resource_path": "/v3/{project_id}/instances/schedule-task/{task_id}/cancel",
|
403
|
+
"request_type": request.__class__.__name__,
|
404
|
+
"response_type": "CancelScheduleTaskResponse"
|
405
|
+
}
|
406
|
+
|
407
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
408
|
+
|
409
|
+
cname = None
|
410
|
+
|
411
|
+
collection_formats = {}
|
412
|
+
|
413
|
+
path_params = {}
|
414
|
+
if 'task_id' in local_var_params:
|
415
|
+
path_params['task_id'] = local_var_params['task_id']
|
416
|
+
|
417
|
+
query_params = []
|
418
|
+
|
419
|
+
header_params = {}
|
420
|
+
if 'x_language' in local_var_params:
|
421
|
+
header_params['X-Language'] = local_var_params['x_language']
|
422
|
+
|
423
|
+
form_params = {}
|
424
|
+
|
425
|
+
body = None
|
426
|
+
if isinstance(request, SdkStreamRequest):
|
427
|
+
body = request.get_file_stream()
|
428
|
+
|
429
|
+
response_headers = []
|
430
|
+
|
431
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
432
|
+
['application/json'])
|
433
|
+
|
434
|
+
auth_settings = []
|
435
|
+
|
436
|
+
http_info["cname"] = cname
|
437
|
+
http_info["collection_formats"] = collection_formats
|
438
|
+
http_info["path_params"] = path_params
|
439
|
+
http_info["query_params"] = query_params
|
440
|
+
http_info["header_params"] = header_params
|
441
|
+
http_info["post_params"] = form_params
|
442
|
+
http_info["body"] = body
|
443
|
+
http_info["response_headers"] = response_headers
|
444
|
+
|
445
|
+
return http_info
|
446
|
+
|
380
447
|
def confirm_restored_data_async(self, request):
|
381
448
|
"""备份恢复到目标实例数据后执行数据确认
|
382
449
|
|
@@ -1260,6 +1327,73 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
1260
1327
|
|
1261
1328
|
return http_info
|
1262
1329
|
|
1330
|
+
def create_schedule_task_async(self, request):
|
1331
|
+
"""批量实例内核版本定时升级
|
1332
|
+
|
1333
|
+
批量实例内核版本定时升级
|
1334
|
+
|
1335
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1336
|
+
|
1337
|
+
|
1338
|
+
:param request: Request instance for CreateScheduleTask
|
1339
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateScheduleTaskRequest`
|
1340
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateScheduleTaskResponse`
|
1341
|
+
"""
|
1342
|
+
http_info = self._create_schedule_task_http_info(request)
|
1343
|
+
return self._call_api(**http_info)
|
1344
|
+
|
1345
|
+
def create_schedule_task_async_invoker(self, request):
|
1346
|
+
http_info = self._create_schedule_task_http_info(request)
|
1347
|
+
return AsyncInvoker(self, http_info)
|
1348
|
+
|
1349
|
+
def _create_schedule_task_http_info(self, request):
|
1350
|
+
http_info = {
|
1351
|
+
"method": "POST",
|
1352
|
+
"resource_path": "/v3/{project_id}/instances/db-upgrade/schedule-task",
|
1353
|
+
"request_type": request.__class__.__name__,
|
1354
|
+
"response_type": "CreateScheduleTaskResponse"
|
1355
|
+
}
|
1356
|
+
|
1357
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1358
|
+
|
1359
|
+
cname = None
|
1360
|
+
|
1361
|
+
collection_formats = {}
|
1362
|
+
|
1363
|
+
path_params = {}
|
1364
|
+
|
1365
|
+
query_params = []
|
1366
|
+
|
1367
|
+
header_params = {}
|
1368
|
+
if 'x_language' in local_var_params:
|
1369
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1370
|
+
|
1371
|
+
form_params = {}
|
1372
|
+
|
1373
|
+
body = None
|
1374
|
+
if 'body' in local_var_params:
|
1375
|
+
body = local_var_params['body']
|
1376
|
+
if isinstance(request, SdkStreamRequest):
|
1377
|
+
body = request.get_file_stream()
|
1378
|
+
|
1379
|
+
response_headers = []
|
1380
|
+
|
1381
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1382
|
+
['application/json;charset=UTF-8'])
|
1383
|
+
|
1384
|
+
auth_settings = []
|
1385
|
+
|
1386
|
+
http_info["cname"] = cname
|
1387
|
+
http_info["collection_formats"] = collection_formats
|
1388
|
+
http_info["path_params"] = path_params
|
1389
|
+
http_info["query_params"] = query_params
|
1390
|
+
http_info["header_params"] = header_params
|
1391
|
+
http_info["post_params"] = form_params
|
1392
|
+
http_info["body"] = body
|
1393
|
+
http_info["response_headers"] = response_headers
|
1394
|
+
|
1395
|
+
return http_info
|
1396
|
+
|
1263
1397
|
def create_slow_log_download_async(self, request):
|
1264
1398
|
"""创建慢日志下载信息
|
1265
1399
|
|
@@ -1802,6 +1936,73 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
1802
1936
|
|
1803
1937
|
return http_info
|
1804
1938
|
|
1939
|
+
def delete_schedule_task_async(self, request):
|
1940
|
+
"""删除定时任务信息
|
1941
|
+
|
1942
|
+
删除定时任务信息
|
1943
|
+
|
1944
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1945
|
+
|
1946
|
+
|
1947
|
+
:param request: Request instance for DeleteScheduleTask
|
1948
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteScheduleTaskRequest`
|
1949
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.DeleteScheduleTaskResponse`
|
1950
|
+
"""
|
1951
|
+
http_info = self._delete_schedule_task_http_info(request)
|
1952
|
+
return self._call_api(**http_info)
|
1953
|
+
|
1954
|
+
def delete_schedule_task_async_invoker(self, request):
|
1955
|
+
http_info = self._delete_schedule_task_http_info(request)
|
1956
|
+
return AsyncInvoker(self, http_info)
|
1957
|
+
|
1958
|
+
def _delete_schedule_task_http_info(self, request):
|
1959
|
+
http_info = {
|
1960
|
+
"method": "DELETE",
|
1961
|
+
"resource_path": "/v3/{project_id}/instances/schedule-task/{task_id}",
|
1962
|
+
"request_type": request.__class__.__name__,
|
1963
|
+
"response_type": "DeleteScheduleTaskResponse"
|
1964
|
+
}
|
1965
|
+
|
1966
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1967
|
+
|
1968
|
+
cname = None
|
1969
|
+
|
1970
|
+
collection_formats = {}
|
1971
|
+
|
1972
|
+
path_params = {}
|
1973
|
+
if 'task_id' in local_var_params:
|
1974
|
+
path_params['task_id'] = local_var_params['task_id']
|
1975
|
+
|
1976
|
+
query_params = []
|
1977
|
+
|
1978
|
+
header_params = {}
|
1979
|
+
if 'x_language' in local_var_params:
|
1980
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1981
|
+
|
1982
|
+
form_params = {}
|
1983
|
+
|
1984
|
+
body = None
|
1985
|
+
if isinstance(request, SdkStreamRequest):
|
1986
|
+
body = request.get_file_stream()
|
1987
|
+
|
1988
|
+
response_headers = []
|
1989
|
+
|
1990
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1991
|
+
['application/json'])
|
1992
|
+
|
1993
|
+
auth_settings = []
|
1994
|
+
|
1995
|
+
http_info["cname"] = cname
|
1996
|
+
http_info["collection_formats"] = collection_formats
|
1997
|
+
http_info["path_params"] = path_params
|
1998
|
+
http_info["query_params"] = query_params
|
1999
|
+
http_info["header_params"] = header_params
|
2000
|
+
http_info["post_params"] = form_params
|
2001
|
+
http_info["body"] = body
|
2002
|
+
http_info["response_headers"] = response_headers
|
2003
|
+
|
2004
|
+
return http_info
|
2005
|
+
|
1805
2006
|
def download_backup_async(self, request):
|
1806
2007
|
"""获取备份下载链接
|
1807
2008
|
|
@@ -3824,6 +4025,75 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
3824
4025
|
|
3825
4026
|
return http_info
|
3826
4027
|
|
4028
|
+
def list_instance_engine_detail_async(self, request):
|
4029
|
+
"""查看实例引擎版本分布
|
4030
|
+
|
4031
|
+
查看实例引擎版本分布
|
4032
|
+
|
4033
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4034
|
+
|
4035
|
+
|
4036
|
+
:param request: Request instance for ListInstanceEngineDetail
|
4037
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstanceEngineDetailRequest`
|
4038
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstanceEngineDetailResponse`
|
4039
|
+
"""
|
4040
|
+
http_info = self._list_instance_engine_detail_http_info(request)
|
4041
|
+
return self._call_api(**http_info)
|
4042
|
+
|
4043
|
+
def list_instance_engine_detail_async_invoker(self, request):
|
4044
|
+
http_info = self._list_instance_engine_detail_http_info(request)
|
4045
|
+
return AsyncInvoker(self, http_info)
|
4046
|
+
|
4047
|
+
def _list_instance_engine_detail_http_info(self, request):
|
4048
|
+
http_info = {
|
4049
|
+
"method": "GET",
|
4050
|
+
"resource_path": "/v3/{project_id}/datastore/instances",
|
4051
|
+
"request_type": request.__class__.__name__,
|
4052
|
+
"response_type": "ListInstanceEngineDetailResponse"
|
4053
|
+
}
|
4054
|
+
|
4055
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
4056
|
+
|
4057
|
+
cname = None
|
4058
|
+
|
4059
|
+
collection_formats = {}
|
4060
|
+
|
4061
|
+
path_params = {}
|
4062
|
+
|
4063
|
+
query_params = []
|
4064
|
+
if 'offset' in local_var_params:
|
4065
|
+
query_params.append(('offset', local_var_params['offset']))
|
4066
|
+
if 'limit' in local_var_params:
|
4067
|
+
query_params.append(('limit', local_var_params['limit']))
|
4068
|
+
|
4069
|
+
header_params = {}
|
4070
|
+
if 'x_language' in local_var_params:
|
4071
|
+
header_params['X-Language'] = local_var_params['x_language']
|
4072
|
+
|
4073
|
+
form_params = {}
|
4074
|
+
|
4075
|
+
body = None
|
4076
|
+
if isinstance(request, SdkStreamRequest):
|
4077
|
+
body = request.get_file_stream()
|
4078
|
+
|
4079
|
+
response_headers = []
|
4080
|
+
|
4081
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
4082
|
+
['application/json'])
|
4083
|
+
|
4084
|
+
auth_settings = []
|
4085
|
+
|
4086
|
+
http_info["cname"] = cname
|
4087
|
+
http_info["collection_formats"] = collection_formats
|
4088
|
+
http_info["path_params"] = path_params
|
4089
|
+
http_info["query_params"] = query_params
|
4090
|
+
http_info["header_params"] = header_params
|
4091
|
+
http_info["post_params"] = form_params
|
4092
|
+
http_info["body"] = body
|
4093
|
+
http_info["response_headers"] = response_headers
|
4094
|
+
|
4095
|
+
return http_info
|
4096
|
+
|
3827
4097
|
def list_instance_error_logs_async(self, request):
|
3828
4098
|
"""查询错误日志下载链接
|
3829
4099
|
|
@@ -4904,6 +5174,85 @@ class GaussDBforopenGaussAsyncClient(Client):
|
|
4904
5174
|
|
4905
5175
|
return http_info
|
4906
5176
|
|
5177
|
+
def list_schedule_task_async(self, request):
|
5178
|
+
"""查看定时任务列表
|
5179
|
+
|
5180
|
+
查看定时任务列表
|
5181
|
+
|
5182
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5183
|
+
|
5184
|
+
|
5185
|
+
:param request: Request instance for ListScheduleTask
|
5186
|
+
:type request: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListScheduleTaskRequest`
|
5187
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListScheduleTaskResponse`
|
5188
|
+
"""
|
5189
|
+
http_info = self._list_schedule_task_http_info(request)
|
5190
|
+
return self._call_api(**http_info)
|
5191
|
+
|
5192
|
+
def list_schedule_task_async_invoker(self, request):
|
5193
|
+
http_info = self._list_schedule_task_http_info(request)
|
5194
|
+
return AsyncInvoker(self, http_info)
|
5195
|
+
|
5196
|
+
def _list_schedule_task_http_info(self, request):
|
5197
|
+
http_info = {
|
5198
|
+
"method": "GET",
|
5199
|
+
"resource_path": "/v3/{project_id}/instances/schedule-tasks",
|
5200
|
+
"request_type": request.__class__.__name__,
|
5201
|
+
"response_type": "ListScheduleTaskResponse"
|
5202
|
+
}
|
5203
|
+
|
5204
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5205
|
+
|
5206
|
+
cname = None
|
5207
|
+
|
5208
|
+
collection_formats = {}
|
5209
|
+
|
5210
|
+
path_params = {}
|
5211
|
+
|
5212
|
+
query_params = []
|
5213
|
+
if 'instance_id' in local_var_params:
|
5214
|
+
query_params.append(('instance_id', local_var_params['instance_id']))
|
5215
|
+
if 'status' in local_var_params:
|
5216
|
+
query_params.append(('status', local_var_params['status']))
|
5217
|
+
if 'name' in local_var_params:
|
5218
|
+
query_params.append(('name', local_var_params['name']))
|
5219
|
+
if 'start_time' in local_var_params:
|
5220
|
+
query_params.append(('start_time', local_var_params['start_time']))
|
5221
|
+
if 'end_time' in local_var_params:
|
5222
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
5223
|
+
if 'offset' in local_var_params:
|
5224
|
+
query_params.append(('offset', local_var_params['offset']))
|
5225
|
+
if 'limit' in local_var_params:
|
5226
|
+
query_params.append(('limit', local_var_params['limit']))
|
5227
|
+
|
5228
|
+
header_params = {}
|
5229
|
+
if 'x_language' in local_var_params:
|
5230
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5231
|
+
|
5232
|
+
form_params = {}
|
5233
|
+
|
5234
|
+
body = None
|
5235
|
+
if isinstance(request, SdkStreamRequest):
|
5236
|
+
body = request.get_file_stream()
|
5237
|
+
|
5238
|
+
response_headers = []
|
5239
|
+
|
5240
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5241
|
+
['application/json'])
|
5242
|
+
|
5243
|
+
auth_settings = []
|
5244
|
+
|
5245
|
+
http_info["cname"] = cname
|
5246
|
+
http_info["collection_formats"] = collection_formats
|
5247
|
+
http_info["path_params"] = path_params
|
5248
|
+
http_info["query_params"] = query_params
|
5249
|
+
http_info["header_params"] = header_params
|
5250
|
+
http_info["post_params"] = form_params
|
5251
|
+
http_info["body"] = body
|
5252
|
+
http_info["response_headers"] = response_headers
|
5253
|
+
|
5254
|
+
return http_info
|
5255
|
+
|
4907
5256
|
def list_storage_types_async(self, request):
|
4908
5257
|
"""查询数据库磁盘类型
|
4909
5258
|
|