huaweicloudsdkdrs 3.1.116__py2.py3-none-any.whl → 3.1.117__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.
- huaweicloudsdkdrs/v3/model/query_job_resp.py +7 -7
- huaweicloudsdkdrs/v5/__init__.py +40 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +890 -17
- huaweicloudsdkdrs/v5/drs_client.py +890 -17
- huaweicloudsdkdrs/v5/model/__init__.py +40 -0
- huaweicloudsdkdrs/v5/model/backup_file_info.py +201 -0
- huaweicloudsdkdrs/v5/model/backup_file_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_info.py +171 -0
- huaweicloudsdkdrs/v5/model/backup_info_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_job_base_info.py +229 -0
- huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py +172 -0
- huaweicloudsdkdrs/v5/model/backup_restore_option_info.py +315 -0
- huaweicloudsdkdrs/v5/model/change_to_period_request.py +168 -0
- huaweicloudsdkdrs/v5/model/change_to_period_response.py +116 -0
- huaweicloudsdkdrs/v5/model/check_data_filter_response.py +3 -3
- huaweicloudsdkdrs/v5/model/clean_alarms_request.py +171 -0
- huaweicloudsdkdrs/v5/model/clean_alarms_response.py +116 -0
- huaweicloudsdkdrs/v5/model/collect_columns_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_position_async_response.py +3 -3
- huaweicloudsdkdrs/v5/model/connection_config.py +115 -0
- huaweicloudsdkdrs/v5/model/connection_resp.py +355 -0
- huaweicloudsdkdrs/v5/model/create_connection_req.py +324 -0
- huaweicloudsdkdrs/v5/model/create_connection_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_connection_response.py +361 -0
- huaweicloudsdkdrs/v5/model/create_offline_task_req.py +182 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py +311 -0
- huaweicloudsdkdrs/v5/model/delete_connection_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/list_connections_request.py +492 -0
- huaweicloudsdkdrs/v5/model/list_connections_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_request.py +288 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py +463 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py +145 -0
- huaweicloudsdkdrs/v5/model/modify_connection_request.py +168 -0
- huaweicloudsdkdrs/v5/model/modify_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/modify_offline_task_req.py +143 -0
- huaweicloudsdkdrs/v5/model/offline_task_info.py +342 -0
- huaweicloudsdkdrs/v5/model/resource_tag.py +3 -3
- huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +3 -3
- huaweicloudsdkdrs/v5/model/show_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/show_replication_job_response.py +390 -0
- huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +3 -3
- huaweicloudsdkdrs/v5/model/to_period_req.py +198 -0
- huaweicloudsdkdrs/v5/model/update_connection_req.py +327 -0
- huaweicloudsdkdrs/v5/model/update_data_progress_response.py +3 -3
- huaweicloudsdkdrs/v5/model/update_replication_job_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_replication_job_response.py +116 -0
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/RECORD +59 -19
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/top_level.txt +0 -0
@@ -513,6 +513,75 @@ class DrsAsyncClient(Client):
|
|
513
513
|
|
514
514
|
return http_info
|
515
515
|
|
516
|
+
def change_to_period_async(self, request):
|
517
|
+
"""按需转包周期
|
518
|
+
|
519
|
+
DRS同步和灾备任务按需计费转包周期计费。
|
520
|
+
|
521
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
522
|
+
|
523
|
+
|
524
|
+
:param request: Request instance for ChangeToPeriod
|
525
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ChangeToPeriodRequest`
|
526
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ChangeToPeriodResponse`
|
527
|
+
"""
|
528
|
+
http_info = self._change_to_period_http_info(request)
|
529
|
+
return self._call_api(**http_info)
|
530
|
+
|
531
|
+
def change_to_period_async_invoker(self, request):
|
532
|
+
http_info = self._change_to_period_http_info(request)
|
533
|
+
return AsyncInvoker(self, http_info)
|
534
|
+
|
535
|
+
def _change_to_period_http_info(self, request):
|
536
|
+
http_info = {
|
537
|
+
"method": "POST",
|
538
|
+
"resource_path": "/v5/{project_id}/job/{job_id}/change-to-period",
|
539
|
+
"request_type": request.__class__.__name__,
|
540
|
+
"response_type": "ChangeToPeriodResponse"
|
541
|
+
}
|
542
|
+
|
543
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
544
|
+
|
545
|
+
cname = None
|
546
|
+
|
547
|
+
collection_formats = {}
|
548
|
+
|
549
|
+
path_params = {}
|
550
|
+
if 'job_id' in local_var_params:
|
551
|
+
path_params['job_id'] = local_var_params['job_id']
|
552
|
+
|
553
|
+
query_params = []
|
554
|
+
|
555
|
+
header_params = {}
|
556
|
+
if 'x_language' in local_var_params:
|
557
|
+
header_params['X-Language'] = local_var_params['x_language']
|
558
|
+
|
559
|
+
form_params = {}
|
560
|
+
|
561
|
+
body = None
|
562
|
+
if 'body' in local_var_params:
|
563
|
+
body = local_var_params['body']
|
564
|
+
if isinstance(request, SdkStreamRequest):
|
565
|
+
body = request.get_file_stream()
|
566
|
+
|
567
|
+
response_headers = []
|
568
|
+
|
569
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
570
|
+
['application/json'])
|
571
|
+
|
572
|
+
auth_settings = []
|
573
|
+
|
574
|
+
http_info["cname"] = cname
|
575
|
+
http_info["collection_formats"] = collection_formats
|
576
|
+
http_info["path_params"] = path_params
|
577
|
+
http_info["query_params"] = query_params
|
578
|
+
http_info["header_params"] = header_params
|
579
|
+
http_info["post_params"] = form_params
|
580
|
+
http_info["body"] = body
|
581
|
+
http_info["response_headers"] = response_headers
|
582
|
+
|
583
|
+
return http_info
|
584
|
+
|
516
585
|
def check_data_filter_async(self, request):
|
517
586
|
"""数据过滤规则校验
|
518
587
|
|
@@ -582,6 +651,75 @@ class DrsAsyncClient(Client):
|
|
582
651
|
|
583
652
|
return http_info
|
584
653
|
|
654
|
+
def clean_alarms_async(self, request):
|
655
|
+
"""清除DDL告警
|
656
|
+
|
657
|
+
清除DDL告警
|
658
|
+
|
659
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
660
|
+
|
661
|
+
|
662
|
+
:param request: Request instance for CleanAlarms
|
663
|
+
:type request: :class:`huaweicloudsdkdrs.v5.CleanAlarmsRequest`
|
664
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CleanAlarmsResponse`
|
665
|
+
"""
|
666
|
+
http_info = self._clean_alarms_http_info(request)
|
667
|
+
return self._call_api(**http_info)
|
668
|
+
|
669
|
+
def clean_alarms_async_invoker(self, request):
|
670
|
+
http_info = self._clean_alarms_http_info(request)
|
671
|
+
return AsyncInvoker(self, http_info)
|
672
|
+
|
673
|
+
def _clean_alarms_http_info(self, request):
|
674
|
+
http_info = {
|
675
|
+
"method": "POST",
|
676
|
+
"resource_path": "/v5/{project_id}/jobs/{job_id}/alarms/{alarm_id}/clean",
|
677
|
+
"request_type": request.__class__.__name__,
|
678
|
+
"response_type": "CleanAlarmsResponse"
|
679
|
+
}
|
680
|
+
|
681
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
682
|
+
|
683
|
+
cname = None
|
684
|
+
|
685
|
+
collection_formats = {}
|
686
|
+
|
687
|
+
path_params = {}
|
688
|
+
if 'job_id' in local_var_params:
|
689
|
+
path_params['job_id'] = local_var_params['job_id']
|
690
|
+
if 'alarm_id' in local_var_params:
|
691
|
+
path_params['alarm_id'] = local_var_params['alarm_id']
|
692
|
+
|
693
|
+
query_params = []
|
694
|
+
|
695
|
+
header_params = {}
|
696
|
+
if 'x_language' in local_var_params:
|
697
|
+
header_params['X-Language'] = local_var_params['x_language']
|
698
|
+
|
699
|
+
form_params = {}
|
700
|
+
|
701
|
+
body = None
|
702
|
+
if isinstance(request, SdkStreamRequest):
|
703
|
+
body = request.get_file_stream()
|
704
|
+
|
705
|
+
response_headers = []
|
706
|
+
|
707
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
708
|
+
['application/json'])
|
709
|
+
|
710
|
+
auth_settings = []
|
711
|
+
|
712
|
+
http_info["cname"] = cname
|
713
|
+
http_info["collection_formats"] = collection_formats
|
714
|
+
http_info["path_params"] = path_params
|
715
|
+
http_info["query_params"] = query_params
|
716
|
+
http_info["header_params"] = header_params
|
717
|
+
http_info["post_params"] = form_params
|
718
|
+
http_info["body"] = body
|
719
|
+
http_info["response_headers"] = response_headers
|
720
|
+
|
721
|
+
return http_info
|
722
|
+
|
585
723
|
def collect_columns_async(self, request):
|
586
724
|
"""采集指定数据库表的列信息
|
587
725
|
|
@@ -1076,6 +1214,73 @@ class DrsAsyncClient(Client):
|
|
1076
1214
|
|
1077
1215
|
return http_info
|
1078
1216
|
|
1217
|
+
def create_connection_async(self, request):
|
1218
|
+
"""创建连接
|
1219
|
+
|
1220
|
+
创建单个连接,该连接可以为线下自建库或云上RDS等,目前支持的数据库引擎包括MySQL、PostgreSQL、Oracle和MongoDB。
|
1221
|
+
|
1222
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1223
|
+
|
1224
|
+
|
1225
|
+
:param request: Request instance for CreateConnection
|
1226
|
+
:type request: :class:`huaweicloudsdkdrs.v5.CreateConnectionRequest`
|
1227
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CreateConnectionResponse`
|
1228
|
+
"""
|
1229
|
+
http_info = self._create_connection_http_info(request)
|
1230
|
+
return self._call_api(**http_info)
|
1231
|
+
|
1232
|
+
def create_connection_async_invoker(self, request):
|
1233
|
+
http_info = self._create_connection_http_info(request)
|
1234
|
+
return AsyncInvoker(self, http_info)
|
1235
|
+
|
1236
|
+
def _create_connection_http_info(self, request):
|
1237
|
+
http_info = {
|
1238
|
+
"method": "POST",
|
1239
|
+
"resource_path": "/v5/{project_id}/connections",
|
1240
|
+
"request_type": request.__class__.__name__,
|
1241
|
+
"response_type": "CreateConnectionResponse"
|
1242
|
+
}
|
1243
|
+
|
1244
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1245
|
+
|
1246
|
+
cname = None
|
1247
|
+
|
1248
|
+
collection_formats = {}
|
1249
|
+
|
1250
|
+
path_params = {}
|
1251
|
+
|
1252
|
+
query_params = []
|
1253
|
+
|
1254
|
+
header_params = {}
|
1255
|
+
if 'x_language' in local_var_params:
|
1256
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1257
|
+
|
1258
|
+
form_params = {}
|
1259
|
+
|
1260
|
+
body = None
|
1261
|
+
if 'body' in local_var_params:
|
1262
|
+
body = local_var_params['body']
|
1263
|
+
if isinstance(request, SdkStreamRequest):
|
1264
|
+
body = request.get_file_stream()
|
1265
|
+
|
1266
|
+
response_headers = []
|
1267
|
+
|
1268
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1269
|
+
['application/json'])
|
1270
|
+
|
1271
|
+
auth_settings = []
|
1272
|
+
|
1273
|
+
http_info["cname"] = cname
|
1274
|
+
http_info["collection_formats"] = collection_formats
|
1275
|
+
http_info["path_params"] = path_params
|
1276
|
+
http_info["query_params"] = query_params
|
1277
|
+
http_info["header_params"] = header_params
|
1278
|
+
http_info["post_params"] = form_params
|
1279
|
+
http_info["body"] = body
|
1280
|
+
http_info["response_headers"] = response_headers
|
1281
|
+
|
1282
|
+
return http_info
|
1283
|
+
|
1079
1284
|
def create_job_async(self, request):
|
1080
1285
|
"""创建任务
|
1081
1286
|
|
@@ -1143,8 +1348,146 @@ class DrsAsyncClient(Client):
|
|
1143
1348
|
|
1144
1349
|
return http_info
|
1145
1350
|
|
1351
|
+
def create_replication_job_async(self, request):
|
1352
|
+
"""创建备份迁移任务
|
1353
|
+
|
1354
|
+
该接口主要用于三种常见场景下备份迁移任务的配置。
|
1355
|
+
备份迁移支持如下的常见场景:
|
1356
|
+
- 通过OBS桶备份文件进行全量数据迁移。
|
1357
|
+
- 通过OBS桶备份文件进行全量+增量数据迁移。
|
1358
|
+
- 通过RDS全量备份进行全量数据迁移。
|
1359
|
+
|
1360
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1361
|
+
|
1362
|
+
|
1363
|
+
:param request: Request instance for CreateReplicationJob
|
1364
|
+
:type request: :class:`huaweicloudsdkdrs.v5.CreateReplicationJobRequest`
|
1365
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CreateReplicationJobResponse`
|
1366
|
+
"""
|
1367
|
+
http_info = self._create_replication_job_http_info(request)
|
1368
|
+
return self._call_api(**http_info)
|
1369
|
+
|
1370
|
+
def create_replication_job_async_invoker(self, request):
|
1371
|
+
http_info = self._create_replication_job_http_info(request)
|
1372
|
+
return AsyncInvoker(self, http_info)
|
1373
|
+
|
1374
|
+
def _create_replication_job_http_info(self, request):
|
1375
|
+
http_info = {
|
1376
|
+
"method": "POST",
|
1377
|
+
"resource_path": "/v5/{project_id}/backup-migration-jobs",
|
1378
|
+
"request_type": request.__class__.__name__,
|
1379
|
+
"response_type": "CreateReplicationJobResponse"
|
1380
|
+
}
|
1381
|
+
|
1382
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1383
|
+
|
1384
|
+
cname = None
|
1385
|
+
|
1386
|
+
collection_formats = {}
|
1387
|
+
|
1388
|
+
path_params = {}
|
1389
|
+
|
1390
|
+
query_params = []
|
1391
|
+
|
1392
|
+
header_params = {}
|
1393
|
+
if 'x_language' in local_var_params:
|
1394
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1395
|
+
|
1396
|
+
form_params = {}
|
1397
|
+
|
1398
|
+
body = None
|
1399
|
+
if 'body' in local_var_params:
|
1400
|
+
body = local_var_params['body']
|
1401
|
+
if isinstance(request, SdkStreamRequest):
|
1402
|
+
body = request.get_file_stream()
|
1403
|
+
|
1404
|
+
response_headers = []
|
1405
|
+
|
1406
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1407
|
+
['application/json'])
|
1408
|
+
|
1409
|
+
auth_settings = []
|
1410
|
+
|
1411
|
+
http_info["cname"] = cname
|
1412
|
+
http_info["collection_formats"] = collection_formats
|
1413
|
+
http_info["path_params"] = path_params
|
1414
|
+
http_info["query_params"] = query_params
|
1415
|
+
http_info["header_params"] = header_params
|
1416
|
+
http_info["post_params"] = form_params
|
1417
|
+
http_info["body"] = body
|
1418
|
+
http_info["response_headers"] = response_headers
|
1419
|
+
|
1420
|
+
return http_info
|
1421
|
+
|
1422
|
+
def delete_connection_async(self, request):
|
1423
|
+
"""删除连接
|
1424
|
+
|
1425
|
+
删除租户指定的连接。
|
1426
|
+
|
1427
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1428
|
+
|
1429
|
+
|
1430
|
+
:param request: Request instance for DeleteConnection
|
1431
|
+
:type request: :class:`huaweicloudsdkdrs.v5.DeleteConnectionRequest`
|
1432
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.DeleteConnectionResponse`
|
1433
|
+
"""
|
1434
|
+
http_info = self._delete_connection_http_info(request)
|
1435
|
+
return self._call_api(**http_info)
|
1436
|
+
|
1437
|
+
def delete_connection_async_invoker(self, request):
|
1438
|
+
http_info = self._delete_connection_http_info(request)
|
1439
|
+
return AsyncInvoker(self, http_info)
|
1440
|
+
|
1441
|
+
def _delete_connection_http_info(self, request):
|
1442
|
+
http_info = {
|
1443
|
+
"method": "DELETE",
|
1444
|
+
"resource_path": "/v5/{project_id}/connections/{connection_id}",
|
1445
|
+
"request_type": request.__class__.__name__,
|
1446
|
+
"response_type": "DeleteConnectionResponse"
|
1447
|
+
}
|
1448
|
+
|
1449
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1450
|
+
|
1451
|
+
cname = None
|
1452
|
+
|
1453
|
+
collection_formats = {}
|
1454
|
+
|
1455
|
+
path_params = {}
|
1456
|
+
if 'connection_id' in local_var_params:
|
1457
|
+
path_params['connection_id'] = local_var_params['connection_id']
|
1458
|
+
|
1459
|
+
query_params = []
|
1460
|
+
|
1461
|
+
header_params = {}
|
1462
|
+
if 'x_language' in local_var_params:
|
1463
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1464
|
+
|
1465
|
+
form_params = {}
|
1466
|
+
|
1467
|
+
body = None
|
1468
|
+
if isinstance(request, SdkStreamRequest):
|
1469
|
+
body = request.get_file_stream()
|
1470
|
+
|
1471
|
+
response_headers = []
|
1472
|
+
|
1473
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1474
|
+
['application/json'])
|
1475
|
+
|
1476
|
+
auth_settings = []
|
1477
|
+
|
1478
|
+
http_info["cname"] = cname
|
1479
|
+
http_info["collection_formats"] = collection_formats
|
1480
|
+
http_info["path_params"] = path_params
|
1481
|
+
http_info["query_params"] = query_params
|
1482
|
+
http_info["header_params"] = header_params
|
1483
|
+
http_info["post_params"] = form_params
|
1484
|
+
http_info["body"] = body
|
1485
|
+
http_info["response_headers"] = response_headers
|
1486
|
+
|
1487
|
+
return http_info
|
1488
|
+
|
1146
1489
|
def delete_jdbc_driver_async(self, request):
|
1147
|
-
"""
|
1490
|
+
"""删除驱动文件(不再推广)
|
1148
1491
|
|
1149
1492
|
删除驱动文件。
|
1150
1493
|
|
@@ -1277,6 +1620,73 @@ class DrsAsyncClient(Client):
|
|
1277
1620
|
|
1278
1621
|
return http_info
|
1279
1622
|
|
1623
|
+
def delete_replication_job_async(self, request):
|
1624
|
+
"""删除备份迁移任务
|
1625
|
+
|
1626
|
+
对于已经完成的备份迁移任务,可以选择删除迁移任务。
|
1627
|
+
|
1628
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1629
|
+
|
1630
|
+
|
1631
|
+
:param request: Request instance for DeleteReplicationJob
|
1632
|
+
:type request: :class:`huaweicloudsdkdrs.v5.DeleteReplicationJobRequest`
|
1633
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.DeleteReplicationJobResponse`
|
1634
|
+
"""
|
1635
|
+
http_info = self._delete_replication_job_http_info(request)
|
1636
|
+
return self._call_api(**http_info)
|
1637
|
+
|
1638
|
+
def delete_replication_job_async_invoker(self, request):
|
1639
|
+
http_info = self._delete_replication_job_http_info(request)
|
1640
|
+
return AsyncInvoker(self, http_info)
|
1641
|
+
|
1642
|
+
def _delete_replication_job_http_info(self, request):
|
1643
|
+
http_info = {
|
1644
|
+
"method": "DELETE",
|
1645
|
+
"resource_path": "/v5/{project_id}/backup-migration-jobs/{job_id}",
|
1646
|
+
"request_type": request.__class__.__name__,
|
1647
|
+
"response_type": "DeleteReplicationJobResponse"
|
1648
|
+
}
|
1649
|
+
|
1650
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1651
|
+
|
1652
|
+
cname = None
|
1653
|
+
|
1654
|
+
collection_formats = {}
|
1655
|
+
|
1656
|
+
path_params = {}
|
1657
|
+
if 'job_id' in local_var_params:
|
1658
|
+
path_params['job_id'] = local_var_params['job_id']
|
1659
|
+
|
1660
|
+
query_params = []
|
1661
|
+
|
1662
|
+
header_params = {}
|
1663
|
+
if 'x_language' in local_var_params:
|
1664
|
+
header_params['X-Language'] = local_var_params['x_language']
|
1665
|
+
|
1666
|
+
form_params = {}
|
1667
|
+
|
1668
|
+
body = None
|
1669
|
+
if isinstance(request, SdkStreamRequest):
|
1670
|
+
body = request.get_file_stream()
|
1671
|
+
|
1672
|
+
response_headers = []
|
1673
|
+
|
1674
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1675
|
+
['application/json'])
|
1676
|
+
|
1677
|
+
auth_settings = []
|
1678
|
+
|
1679
|
+
http_info["cname"] = cname
|
1680
|
+
http_info["collection_formats"] = collection_formats
|
1681
|
+
http_info["path_params"] = path_params
|
1682
|
+
http_info["query_params"] = query_params
|
1683
|
+
http_info["header_params"] = header_params
|
1684
|
+
http_info["post_params"] = form_params
|
1685
|
+
http_info["body"] = body
|
1686
|
+
http_info["response_headers"] = response_headers
|
1687
|
+
|
1688
|
+
return http_info
|
1689
|
+
|
1280
1690
|
def delete_user_jdbc_driver_async(self, request):
|
1281
1691
|
"""删除驱动文件
|
1282
1692
|
|
@@ -1835,6 +2245,97 @@ class DrsAsyncClient(Client):
|
|
1835
2245
|
|
1836
2246
|
return http_info
|
1837
2247
|
|
2248
|
+
def list_connections_async(self, request):
|
2249
|
+
"""查询连接列表
|
2250
|
+
|
2251
|
+
查询连接列表,可根据连接类型进行查询。
|
2252
|
+
|
2253
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2254
|
+
|
2255
|
+
|
2256
|
+
:param request: Request instance for ListConnections
|
2257
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ListConnectionsRequest`
|
2258
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ListConnectionsResponse`
|
2259
|
+
"""
|
2260
|
+
http_info = self._list_connections_http_info(request)
|
2261
|
+
return self._call_api(**http_info)
|
2262
|
+
|
2263
|
+
def list_connections_async_invoker(self, request):
|
2264
|
+
http_info = self._list_connections_http_info(request)
|
2265
|
+
return AsyncInvoker(self, http_info)
|
2266
|
+
|
2267
|
+
def _list_connections_http_info(self, request):
|
2268
|
+
http_info = {
|
2269
|
+
"method": "GET",
|
2270
|
+
"resource_path": "/v5/{project_id}/connections",
|
2271
|
+
"request_type": request.__class__.__name__,
|
2272
|
+
"response_type": "ListConnectionsResponse"
|
2273
|
+
}
|
2274
|
+
|
2275
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2276
|
+
|
2277
|
+
cname = None
|
2278
|
+
|
2279
|
+
collection_formats = {}
|
2280
|
+
|
2281
|
+
path_params = {}
|
2282
|
+
|
2283
|
+
query_params = []
|
2284
|
+
if 'connection_id' in local_var_params:
|
2285
|
+
query_params.append(('connection_id', local_var_params['connection_id']))
|
2286
|
+
if 'db_type' in local_var_params:
|
2287
|
+
query_params.append(('db_type', local_var_params['db_type']))
|
2288
|
+
if 'name' in local_var_params:
|
2289
|
+
query_params.append(('name', local_var_params['name']))
|
2290
|
+
if 'inst_id' in local_var_params:
|
2291
|
+
query_params.append(('inst_id', local_var_params['inst_id']))
|
2292
|
+
if 'ip' in local_var_params:
|
2293
|
+
query_params.append(('ip', local_var_params['ip']))
|
2294
|
+
if 'description' in local_var_params:
|
2295
|
+
query_params.append(('description', local_var_params['description']))
|
2296
|
+
if 'create_time' in local_var_params:
|
2297
|
+
query_params.append(('create_time', local_var_params['create_time']))
|
2298
|
+
if 'enterprise_project_id' in local_var_params:
|
2299
|
+
query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
|
2300
|
+
if 'offset' in local_var_params:
|
2301
|
+
query_params.append(('offset', local_var_params['offset']))
|
2302
|
+
if 'limit' in local_var_params:
|
2303
|
+
query_params.append(('limit', local_var_params['limit']))
|
2304
|
+
if 'fetch_all' in local_var_params:
|
2305
|
+
query_params.append(('fetch_all', local_var_params['fetch_all']))
|
2306
|
+
if 'sort_key' in local_var_params:
|
2307
|
+
query_params.append(('sort_key', local_var_params['sort_key']))
|
2308
|
+
if 'sort_dir' in local_var_params:
|
2309
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
2310
|
+
|
2311
|
+
header_params = {}
|
2312
|
+
if 'x_language' in local_var_params:
|
2313
|
+
header_params['X-Language'] = local_var_params['x_language']
|
2314
|
+
|
2315
|
+
form_params = {}
|
2316
|
+
|
2317
|
+
body = None
|
2318
|
+
if isinstance(request, SdkStreamRequest):
|
2319
|
+
body = request.get_file_stream()
|
2320
|
+
|
2321
|
+
response_headers = []
|
2322
|
+
|
2323
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2324
|
+
['application/json'])
|
2325
|
+
|
2326
|
+
auth_settings = []
|
2327
|
+
|
2328
|
+
http_info["cname"] = cname
|
2329
|
+
http_info["collection_formats"] = collection_formats
|
2330
|
+
http_info["path_params"] = path_params
|
2331
|
+
http_info["query_params"] = query_params
|
2332
|
+
http_info["header_params"] = header_params
|
2333
|
+
http_info["post_params"] = form_params
|
2334
|
+
http_info["body"] = body
|
2335
|
+
http_info["response_headers"] = response_headers
|
2336
|
+
|
2337
|
+
return http_info
|
2338
|
+
|
1838
2339
|
def list_db_objects_async(self, request):
|
1839
2340
|
"""查询数据库对象信息
|
1840
2341
|
|
@@ -2053,31 +2554,100 @@ class DrsAsyncClient(Client):
|
|
2053
2554
|
|
2054
2555
|
return http_info
|
2055
2556
|
|
2056
|
-
def list_jdbc_drivers_async(self, request):
|
2057
|
-
"""
|
2557
|
+
def list_jdbc_drivers_async(self, request):
|
2558
|
+
"""查询驱动文件列表(不再推广)
|
2559
|
+
|
2560
|
+
查询驱动文件列表。
|
2561
|
+
|
2562
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2563
|
+
|
2564
|
+
|
2565
|
+
:param request: Request instance for ListJdbcDrivers
|
2566
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversRequest`
|
2567
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversResponse`
|
2568
|
+
"""
|
2569
|
+
http_info = self._list_jdbc_drivers_http_info(request)
|
2570
|
+
return self._call_api(**http_info)
|
2571
|
+
|
2572
|
+
def list_jdbc_drivers_async_invoker(self, request):
|
2573
|
+
http_info = self._list_jdbc_drivers_http_info(request)
|
2574
|
+
return AsyncInvoker(self, http_info)
|
2575
|
+
|
2576
|
+
def _list_jdbc_drivers_http_info(self, request):
|
2577
|
+
http_info = {
|
2578
|
+
"method": "GET",
|
2579
|
+
"resource_path": "/v5/{project_id}/jdbc-drivers",
|
2580
|
+
"request_type": request.__class__.__name__,
|
2581
|
+
"response_type": "ListJdbcDriversResponse"
|
2582
|
+
}
|
2583
|
+
|
2584
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2585
|
+
|
2586
|
+
cname = None
|
2587
|
+
|
2588
|
+
collection_formats = {}
|
2589
|
+
|
2590
|
+
path_params = {}
|
2591
|
+
|
2592
|
+
query_params = []
|
2593
|
+
if 'limit' in local_var_params:
|
2594
|
+
query_params.append(('limit', local_var_params['limit']))
|
2595
|
+
if 'offset' in local_var_params:
|
2596
|
+
query_params.append(('offset', local_var_params['offset']))
|
2597
|
+
|
2598
|
+
header_params = {}
|
2599
|
+
if 'x_language' in local_var_params:
|
2600
|
+
header_params['X-Language'] = local_var_params['x_language']
|
2601
|
+
|
2602
|
+
form_params = {}
|
2603
|
+
|
2604
|
+
body = None
|
2605
|
+
if isinstance(request, SdkStreamRequest):
|
2606
|
+
body = request.get_file_stream()
|
2607
|
+
|
2608
|
+
response_headers = []
|
2609
|
+
|
2610
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2611
|
+
['application/json'])
|
2612
|
+
|
2613
|
+
auth_settings = []
|
2614
|
+
|
2615
|
+
http_info["cname"] = cname
|
2616
|
+
http_info["collection_formats"] = collection_formats
|
2617
|
+
http_info["path_params"] = path_params
|
2618
|
+
http_info["query_params"] = query_params
|
2619
|
+
http_info["header_params"] = header_params
|
2620
|
+
http_info["post_params"] = form_params
|
2621
|
+
http_info["body"] = body
|
2622
|
+
http_info["response_headers"] = response_headers
|
2623
|
+
|
2624
|
+
return http_info
|
2625
|
+
|
2626
|
+
def list_job_ddls_async(self, request):
|
2627
|
+
"""查询增量DDL列表
|
2058
2628
|
|
2059
|
-
|
2629
|
+
查询增量DDL列表,可根据status查询
|
2060
2630
|
|
2061
2631
|
Please refer to HUAWEI cloud API Explorer for details.
|
2062
2632
|
|
2063
2633
|
|
2064
|
-
:param request: Request instance for
|
2065
|
-
:type request: :class:`huaweicloudsdkdrs.v5.
|
2066
|
-
:rtype: :class:`huaweicloudsdkdrs.v5.
|
2634
|
+
:param request: Request instance for ListJobDdls
|
2635
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ListJobDdlsRequest`
|
2636
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ListJobDdlsResponse`
|
2067
2637
|
"""
|
2068
|
-
http_info = self.
|
2638
|
+
http_info = self._list_job_ddls_http_info(request)
|
2069
2639
|
return self._call_api(**http_info)
|
2070
2640
|
|
2071
|
-
def
|
2072
|
-
http_info = self.
|
2641
|
+
def list_job_ddls_async_invoker(self, request):
|
2642
|
+
http_info = self._list_job_ddls_http_info(request)
|
2073
2643
|
return AsyncInvoker(self, http_info)
|
2074
2644
|
|
2075
|
-
def
|
2645
|
+
def _list_job_ddls_http_info(self, request):
|
2076
2646
|
http_info = {
|
2077
2647
|
"method": "GET",
|
2078
|
-
"resource_path": "/v5/{project_id}/
|
2648
|
+
"resource_path": "/v5/{project_id}/jobs/{job_id}/ddl",
|
2079
2649
|
"request_type": request.__class__.__name__,
|
2080
|
-
"response_type": "
|
2650
|
+
"response_type": "ListJobDdlsResponse"
|
2081
2651
|
}
|
2082
2652
|
|
2083
2653
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2087,12 +2657,20 @@ class DrsAsyncClient(Client):
|
|
2087
2657
|
collection_formats = {}
|
2088
2658
|
|
2089
2659
|
path_params = {}
|
2660
|
+
if 'job_id' in local_var_params:
|
2661
|
+
path_params['job_id'] = local_var_params['job_id']
|
2090
2662
|
|
2091
2663
|
query_params = []
|
2092
|
-
if 'limit' in local_var_params:
|
2093
|
-
query_params.append(('limit', local_var_params['limit']))
|
2094
2664
|
if 'offset' in local_var_params:
|
2095
2665
|
query_params.append(('offset', local_var_params['offset']))
|
2666
|
+
if 'limit' in local_var_params:
|
2667
|
+
query_params.append(('limit', local_var_params['limit']))
|
2668
|
+
if 'start_seq_no' in local_var_params:
|
2669
|
+
query_params.append(('start_seq_no', local_var_params['start_seq_no']))
|
2670
|
+
if 'end_seq_no' in local_var_params:
|
2671
|
+
query_params.append(('end_seq_no', local_var_params['end_seq_no']))
|
2672
|
+
if 'status' in local_var_params:
|
2673
|
+
query_params.append(('status', local_var_params['status']))
|
2096
2674
|
|
2097
2675
|
header_params = {}
|
2098
2676
|
if 'x_language' in local_var_params:
|
@@ -2502,6 +3080,96 @@ class DrsAsyncClient(Client):
|
|
2502
3080
|
|
2503
3081
|
return http_info
|
2504
3082
|
|
3083
|
+
def list_replication_jobs_async(self, request):
|
3084
|
+
"""查询备份迁移任务列表
|
3085
|
+
|
3086
|
+
获取当前备份迁移任务列表,不包含已删除的任务。
|
3087
|
+
|
3088
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3089
|
+
|
3090
|
+
|
3091
|
+
:param request: Request instance for ListReplicationJobs
|
3092
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ListReplicationJobsRequest`
|
3093
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ListReplicationJobsResponse`
|
3094
|
+
"""
|
3095
|
+
http_info = self._list_replication_jobs_http_info(request)
|
3096
|
+
return self._call_api(**http_info)
|
3097
|
+
|
3098
|
+
def list_replication_jobs_async_invoker(self, request):
|
3099
|
+
http_info = self._list_replication_jobs_http_info(request)
|
3100
|
+
return AsyncInvoker(self, http_info)
|
3101
|
+
|
3102
|
+
def _list_replication_jobs_http_info(self, request):
|
3103
|
+
http_info = {
|
3104
|
+
"method": "GET",
|
3105
|
+
"resource_path": "/v5/{project_id}/backup-migration-jobs",
|
3106
|
+
"request_type": request.__class__.__name__,
|
3107
|
+
"response_type": "ListReplicationJobsResponse"
|
3108
|
+
}
|
3109
|
+
|
3110
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3111
|
+
|
3112
|
+
cname = None
|
3113
|
+
|
3114
|
+
collection_formats = {}
|
3115
|
+
|
3116
|
+
path_params = {}
|
3117
|
+
|
3118
|
+
query_params = []
|
3119
|
+
if 'name' in local_var_params:
|
3120
|
+
query_params.append(('name', local_var_params['name']))
|
3121
|
+
if 'status' in local_var_params:
|
3122
|
+
query_params.append(('status', local_var_params['status']))
|
3123
|
+
if 'dbs_instance_ids' in local_var_params:
|
3124
|
+
query_params.append(('dbs_instance_ids', local_var_params['dbs_instance_ids']))
|
3125
|
+
collection_formats['dbs_instance_ids'] = 'csv'
|
3126
|
+
if 'description' in local_var_params:
|
3127
|
+
query_params.append(('description', local_var_params['description']))
|
3128
|
+
if 'create_at' in local_var_params:
|
3129
|
+
query_params.append(('create_at', local_var_params['create_at']))
|
3130
|
+
if 'completed_at' in local_var_params:
|
3131
|
+
query_params.append(('completed_at', local_var_params['completed_at']))
|
3132
|
+
if 'enterprise_project_id' in local_var_params:
|
3133
|
+
query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
|
3134
|
+
if 'tags' in local_var_params:
|
3135
|
+
query_params.append(('tags', local_var_params['tags']))
|
3136
|
+
if 'limit' in local_var_params:
|
3137
|
+
query_params.append(('limit', local_var_params['limit']))
|
3138
|
+
if 'offset' in local_var_params:
|
3139
|
+
query_params.append(('offset', local_var_params['offset']))
|
3140
|
+
if 'sort_key' in local_var_params:
|
3141
|
+
query_params.append(('sort_key', local_var_params['sort_key']))
|
3142
|
+
if 'sort_dir' in local_var_params:
|
3143
|
+
query_params.append(('sort_dir', local_var_params['sort_dir']))
|
3144
|
+
|
3145
|
+
header_params = {}
|
3146
|
+
if 'x_language' in local_var_params:
|
3147
|
+
header_params['X-Language'] = local_var_params['x_language']
|
3148
|
+
|
3149
|
+
form_params = {}
|
3150
|
+
|
3151
|
+
body = None
|
3152
|
+
if isinstance(request, SdkStreamRequest):
|
3153
|
+
body = request.get_file_stream()
|
3154
|
+
|
3155
|
+
response_headers = []
|
3156
|
+
|
3157
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3158
|
+
['application/json'])
|
3159
|
+
|
3160
|
+
auth_settings = []
|
3161
|
+
|
3162
|
+
http_info["cname"] = cname
|
3163
|
+
http_info["collection_formats"] = collection_formats
|
3164
|
+
http_info["path_params"] = path_params
|
3165
|
+
http_info["query_params"] = query_params
|
3166
|
+
http_info["header_params"] = header_params
|
3167
|
+
http_info["post_params"] = form_params
|
3168
|
+
http_info["body"] = body
|
3169
|
+
http_info["response_headers"] = response_headers
|
3170
|
+
|
3171
|
+
return http_info
|
3172
|
+
|
2505
3173
|
def list_tags_async(self, request):
|
2506
3174
|
"""查询项目标签
|
2507
3175
|
|
@@ -2711,6 +3379,75 @@ class DrsAsyncClient(Client):
|
|
2711
3379
|
|
2712
3380
|
return http_info
|
2713
3381
|
|
3382
|
+
def modify_connection_async(self, request):
|
3383
|
+
"""修改连接
|
3384
|
+
|
3385
|
+
修改创建的连接信息。
|
3386
|
+
|
3387
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
3388
|
+
|
3389
|
+
|
3390
|
+
:param request: Request instance for ModifyConnection
|
3391
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ModifyConnectionRequest`
|
3392
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ModifyConnectionResponse`
|
3393
|
+
"""
|
3394
|
+
http_info = self._modify_connection_http_info(request)
|
3395
|
+
return self._call_api(**http_info)
|
3396
|
+
|
3397
|
+
def modify_connection_async_invoker(self, request):
|
3398
|
+
http_info = self._modify_connection_http_info(request)
|
3399
|
+
return AsyncInvoker(self, http_info)
|
3400
|
+
|
3401
|
+
def _modify_connection_http_info(self, request):
|
3402
|
+
http_info = {
|
3403
|
+
"method": "PUT",
|
3404
|
+
"resource_path": "/v5/{project_id}/connections/{connection_id}",
|
3405
|
+
"request_type": request.__class__.__name__,
|
3406
|
+
"response_type": "ModifyConnectionResponse"
|
3407
|
+
}
|
3408
|
+
|
3409
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
3410
|
+
|
3411
|
+
cname = None
|
3412
|
+
|
3413
|
+
collection_formats = {}
|
3414
|
+
|
3415
|
+
path_params = {}
|
3416
|
+
if 'connection_id' in local_var_params:
|
3417
|
+
path_params['connection_id'] = local_var_params['connection_id']
|
3418
|
+
|
3419
|
+
query_params = []
|
3420
|
+
|
3421
|
+
header_params = {}
|
3422
|
+
if 'x_language' in local_var_params:
|
3423
|
+
header_params['X-Language'] = local_var_params['x_language']
|
3424
|
+
|
3425
|
+
form_params = {}
|
3426
|
+
|
3427
|
+
body = None
|
3428
|
+
if 'body' in local_var_params:
|
3429
|
+
body = local_var_params['body']
|
3430
|
+
if isinstance(request, SdkStreamRequest):
|
3431
|
+
body = request.get_file_stream()
|
3432
|
+
|
3433
|
+
response_headers = []
|
3434
|
+
|
3435
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
3436
|
+
['application/json'])
|
3437
|
+
|
3438
|
+
auth_settings = []
|
3439
|
+
|
3440
|
+
http_info["cname"] = cname
|
3441
|
+
http_info["collection_formats"] = collection_formats
|
3442
|
+
http_info["path_params"] = path_params
|
3443
|
+
http_info["query_params"] = query_params
|
3444
|
+
http_info["header_params"] = header_params
|
3445
|
+
http_info["post_params"] = form_params
|
3446
|
+
http_info["body"] = body
|
3447
|
+
http_info["response_headers"] = response_headers
|
3448
|
+
|
3449
|
+
return http_info
|
3450
|
+
|
2714
3451
|
def show_actions_async(self, request):
|
2715
3452
|
"""获取指定任务操作信息
|
2716
3453
|
|
@@ -4433,6 +5170,73 @@ class DrsAsyncClient(Client):
|
|
4433
5170
|
|
4434
5171
|
return http_info
|
4435
5172
|
|
5173
|
+
def show_replication_job_async(self, request):
|
5174
|
+
"""查询备份迁移任务详细信息
|
5175
|
+
|
5176
|
+
获取指定备份迁移任务详细信息。
|
5177
|
+
|
5178
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5179
|
+
|
5180
|
+
|
5181
|
+
:param request: Request instance for ShowReplicationJob
|
5182
|
+
:type request: :class:`huaweicloudsdkdrs.v5.ShowReplicationJobRequest`
|
5183
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ShowReplicationJobResponse`
|
5184
|
+
"""
|
5185
|
+
http_info = self._show_replication_job_http_info(request)
|
5186
|
+
return self._call_api(**http_info)
|
5187
|
+
|
5188
|
+
def show_replication_job_async_invoker(self, request):
|
5189
|
+
http_info = self._show_replication_job_http_info(request)
|
5190
|
+
return AsyncInvoker(self, http_info)
|
5191
|
+
|
5192
|
+
def _show_replication_job_http_info(self, request):
|
5193
|
+
http_info = {
|
5194
|
+
"method": "GET",
|
5195
|
+
"resource_path": "/v5/{project_id}/backup-migration-jobs/{job_id}",
|
5196
|
+
"request_type": request.__class__.__name__,
|
5197
|
+
"response_type": "ShowReplicationJobResponse"
|
5198
|
+
}
|
5199
|
+
|
5200
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5201
|
+
|
5202
|
+
cname = None
|
5203
|
+
|
5204
|
+
collection_formats = {}
|
5205
|
+
|
5206
|
+
path_params = {}
|
5207
|
+
if 'job_id' in local_var_params:
|
5208
|
+
path_params['job_id'] = local_var_params['job_id']
|
5209
|
+
|
5210
|
+
query_params = []
|
5211
|
+
|
5212
|
+
header_params = {}
|
5213
|
+
if 'x_language' in local_var_params:
|
5214
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5215
|
+
|
5216
|
+
form_params = {}
|
5217
|
+
|
5218
|
+
body = None
|
5219
|
+
if isinstance(request, SdkStreamRequest):
|
5220
|
+
body = request.get_file_stream()
|
5221
|
+
|
5222
|
+
response_headers = []
|
5223
|
+
|
5224
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5225
|
+
['application/json'])
|
5226
|
+
|
5227
|
+
auth_settings = []
|
5228
|
+
|
5229
|
+
http_info["cname"] = cname
|
5230
|
+
http_info["collection_formats"] = collection_formats
|
5231
|
+
http_info["path_params"] = path_params
|
5232
|
+
http_info["query_params"] = query_params
|
5233
|
+
http_info["header_params"] = header_params
|
5234
|
+
http_info["post_params"] = form_params
|
5235
|
+
http_info["body"] = body
|
5236
|
+
http_info["response_headers"] = response_headers
|
5237
|
+
|
5238
|
+
return http_info
|
5239
|
+
|
4436
5240
|
def show_support_object_type_async(self, request):
|
4437
5241
|
"""查询是否支持对象选择和列映射
|
4438
5242
|
|
@@ -4639,7 +5443,7 @@ class DrsAsyncClient(Client):
|
|
4639
5443
|
return http_info
|
4640
5444
|
|
4641
5445
|
def sync_jdbc_driver_async(self, request):
|
4642
|
-
"""
|
5446
|
+
"""同步驱动文件(不再推广)
|
4643
5447
|
|
4644
5448
|
同步驱动文件。
|
4645
5449
|
|
@@ -5123,6 +5927,75 @@ class DrsAsyncClient(Client):
|
|
5123
5927
|
|
5124
5928
|
return http_info
|
5125
5929
|
|
5930
|
+
def update_replication_job_async(self, request):
|
5931
|
+
"""修改备份迁移任务信息
|
5932
|
+
|
5933
|
+
修改指定备份迁移任务信息,任务名与任务描述。
|
5934
|
+
|
5935
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
5936
|
+
|
5937
|
+
|
5938
|
+
:param request: Request instance for UpdateReplicationJob
|
5939
|
+
:type request: :class:`huaweicloudsdkdrs.v5.UpdateReplicationJobRequest`
|
5940
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.UpdateReplicationJobResponse`
|
5941
|
+
"""
|
5942
|
+
http_info = self._update_replication_job_http_info(request)
|
5943
|
+
return self._call_api(**http_info)
|
5944
|
+
|
5945
|
+
def update_replication_job_async_invoker(self, request):
|
5946
|
+
http_info = self._update_replication_job_http_info(request)
|
5947
|
+
return AsyncInvoker(self, http_info)
|
5948
|
+
|
5949
|
+
def _update_replication_job_http_info(self, request):
|
5950
|
+
http_info = {
|
5951
|
+
"method": "PUT",
|
5952
|
+
"resource_path": "/v5/{project_id}/backup-migration-jobs/{job_id}",
|
5953
|
+
"request_type": request.__class__.__name__,
|
5954
|
+
"response_type": "UpdateReplicationJobResponse"
|
5955
|
+
}
|
5956
|
+
|
5957
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
5958
|
+
|
5959
|
+
cname = None
|
5960
|
+
|
5961
|
+
collection_formats = {}
|
5962
|
+
|
5963
|
+
path_params = {}
|
5964
|
+
if 'job_id' in local_var_params:
|
5965
|
+
path_params['job_id'] = local_var_params['job_id']
|
5966
|
+
|
5967
|
+
query_params = []
|
5968
|
+
|
5969
|
+
header_params = {}
|
5970
|
+
if 'x_language' in local_var_params:
|
5971
|
+
header_params['X-Language'] = local_var_params['x_language']
|
5972
|
+
|
5973
|
+
form_params = {}
|
5974
|
+
|
5975
|
+
body = None
|
5976
|
+
if 'body' in local_var_params:
|
5977
|
+
body = local_var_params['body']
|
5978
|
+
if isinstance(request, SdkStreamRequest):
|
5979
|
+
body = request.get_file_stream()
|
5980
|
+
|
5981
|
+
response_headers = []
|
5982
|
+
|
5983
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
5984
|
+
['application/json'])
|
5985
|
+
|
5986
|
+
auth_settings = []
|
5987
|
+
|
5988
|
+
http_info["cname"] = cname
|
5989
|
+
http_info["collection_formats"] = collection_formats
|
5990
|
+
http_info["path_params"] = path_params
|
5991
|
+
http_info["query_params"] = query_params
|
5992
|
+
http_info["header_params"] = header_params
|
5993
|
+
http_info["post_params"] = form_params
|
5994
|
+
http_info["body"] = body
|
5995
|
+
http_info["response_headers"] = response_headers
|
5996
|
+
|
5997
|
+
return http_info
|
5998
|
+
|
5126
5999
|
def update_start_position_async(self, request):
|
5127
6000
|
"""更新增量任务启动位点
|
5128
6001
|
|
@@ -5267,7 +6140,7 @@ class DrsAsyncClient(Client):
|
|
5267
6140
|
return http_info
|
5268
6141
|
|
5269
6142
|
def upload_jdbc_driver_async(self, request):
|
5270
|
-
"""
|
6143
|
+
"""上传驱动文件(不再推广)
|
5271
6144
|
|
5272
6145
|
上传驱动文件。
|
5273
6146
|
|