huaweicloudsdkdrs 3.1.86__py2.py3-none-any.whl → 3.1.132__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.
Files changed (181) hide show
  1. huaweicloudsdkdrs/v3/__init__.py +43 -0
  2. huaweicloudsdkdrs/v3/drs_async_client.py +1087 -65
  3. huaweicloudsdkdrs/v3/drs_client.py +1087 -65
  4. huaweicloudsdkdrs/v3/model/__init__.py +43 -0
  5. huaweicloudsdkdrs/v3/model/add_data_transformation_req.py +138 -0
  6. huaweicloudsdkdrs/v3/model/api_http_null_resp.py +84 -0
  7. huaweicloudsdkdrs/v3/model/batch_job_action_req.py +3 -3
  8. huaweicloudsdkdrs/v3/model/compare_job_content_detail_info.py +202 -0
  9. huaweicloudsdkdrs/v3/model/compare_job_info.py +376 -0
  10. huaweicloudsdkdrs/v3/model/create_compare_result_file_request.py +196 -0
  11. huaweicloudsdkdrs/v3/model/create_compare_result_file_response.py +116 -0
  12. huaweicloudsdkdrs/v3/model/create_data_compare_database_object.py +115 -0
  13. huaweicloudsdkdrs/v3/model/create_data_compare_transformation_info.py +142 -0
  14. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_req.py +346 -0
  15. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_request.py +168 -0
  16. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_response.py +116 -0
  17. huaweicloudsdkdrs/v3/model/create_job_req.py +41 -12
  18. huaweicloudsdkdrs/v3/model/create_object_compare_job_req.py +115 -0
  19. huaweicloudsdkdrs/v3/model/create_object_level_compare_job_request.py +168 -0
  20. huaweicloudsdkdrs/v3/model/create_object_level_compare_job_response.py +116 -0
  21. huaweicloudsdkdrs/v3/model/data_compare_overview_info.py +173 -0
  22. huaweicloudsdkdrs/v3/model/delete_compare_job_request.py +171 -0
  23. huaweicloudsdkdrs/v3/model/delete_compare_job_response.py +116 -0
  24. huaweicloudsdkdrs/v3/model/download_compare_result_file_request.py +255 -0
  25. huaweicloudsdkdrs/v3/model/download_compare_result_file_response.py +85 -0
  26. huaweicloudsdkdrs/v3/model/endpoint.py +28 -3
  27. huaweicloudsdkdrs/v3/model/export_compare_result_req.py +172 -0
  28. huaweicloudsdkdrs/v3/model/kafka_security.py +290 -29
  29. huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +316 -0
  30. huaweicloudsdkdrs/v3/model/list_content_compare_detail_response.py +145 -0
  31. huaweicloudsdkdrs/v3/model/list_content_compare_difference_request.py +287 -0
  32. huaweicloudsdkdrs/v3/model/list_content_compare_difference_response.py +232 -0
  33. huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +229 -0
  34. huaweicloudsdkdrs/v3/model/list_content_compare_overview_response.py +145 -0
  35. huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +374 -0
  36. huaweicloudsdkdrs/v3/model/list_data_compare_detail_response.py +145 -0
  37. huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +258 -0
  38. huaweicloudsdkdrs/v3/model/list_data_compare_overview_response.py +145 -0
  39. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +201 -0
  40. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_response.py +145 -0
  41. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_request.py +258 -0
  42. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_response.py +145 -0
  43. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_request.py +143 -0
  44. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_response.py +319 -0
  45. huaweicloudsdkdrs/v3/model/modify_job_req.py +3 -3
  46. huaweicloudsdkdrs/v3/model/node_content_compare_detail_result.py +405 -0
  47. huaweicloudsdkdrs/v3/model/node_content_compare_overview_result.py +173 -0
  48. huaweicloudsdkdrs/v3/model/objects_compare_detail_info.py +260 -0
  49. huaweicloudsdkdrs/v3/model/objects_compare_overview_info.py +202 -0
  50. huaweicloudsdkdrs/v3/model/query_job_resp.py +51 -22
  51. huaweicloudsdkdrs/v3/model/query_jobs_req.py +3 -3
  52. huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_request.py +171 -0
  53. huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_response.py +116 -0
  54. huaweicloudsdkdrs/v3/model/table_line_compare_result_info.py +289 -0
  55. huaweicloudsdkdrs/v3/region/drs_region.py +15 -0
  56. huaweicloudsdkdrs/v5/__init__.py +79 -1
  57. huaweicloudsdkdrs/v5/drs_async_client.py +2408 -750
  58. huaweicloudsdkdrs/v5/drs_client.py +2408 -750
  59. huaweicloudsdkdrs/v5/model/__init__.py +79 -1
  60. huaweicloudsdkdrs/v5/model/action_params.py +57 -3
  61. huaweicloudsdkdrs/v5/model/action_req.py +3 -3
  62. huaweicloudsdkdrs/v5/model/agency_role.py +144 -0
  63. huaweicloudsdkdrs/v5/model/backup_file_info.py +201 -0
  64. huaweicloudsdkdrs/v5/model/backup_file_resp.py +173 -0
  65. huaweicloudsdkdrs/v5/model/backup_info.py +171 -0
  66. huaweicloudsdkdrs/v5/model/backup_info_resp.py +173 -0
  67. huaweicloudsdkdrs/v5/model/backup_job_base_info.py +229 -0
  68. huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py +172 -0
  69. huaweicloudsdkdrs/v5/model/backup_restore_option_info.py +315 -0
  70. huaweicloudsdkdrs/v5/model/base_endpoint.py +3 -3
  71. huaweicloudsdkdrs/v5/model/change_to_period_request.py +168 -0
  72. huaweicloudsdkdrs/v5/model/change_to_period_response.py +116 -0
  73. huaweicloudsdkdrs/v5/model/check_data_filter_response.py +3 -3
  74. huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
  75. huaweicloudsdkdrs/v5/model/clean_alarms_request.py +171 -0
  76. huaweicloudsdkdrs/v5/model/clean_alarms_response.py +116 -0
  77. huaweicloudsdkdrs/v5/model/collect_columns_response.py +3 -3
  78. huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +3 -3
  79. huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +3 -3
  80. huaweicloudsdkdrs/v5/model/collect_position_async_response.py +3 -3
  81. huaweicloudsdkdrs/v5/model/compare_job_info.py +65 -7
  82. huaweicloudsdkdrs/v5/model/compare_result_info.py +28 -3
  83. huaweicloudsdkdrs/v5/model/compare_task_params.py +32 -3
  84. huaweicloudsdkdrs/v5/model/connection_config.py +115 -0
  85. huaweicloudsdkdrs/v5/model/connection_resp.py +355 -0
  86. huaweicloudsdkdrs/v5/model/content_compare_overview_info.py +3 -3
  87. huaweicloudsdkdrs/v5/model/content_diff_detail_info.py +231 -0
  88. huaweicloudsdkdrs/v5/model/content_diff_detail_vo.py +202 -0
  89. huaweicloudsdkdrs/v5/model/create_connection_req.py +324 -0
  90. huaweicloudsdkdrs/v5/model/create_connection_request.py +140 -0
  91. huaweicloudsdkdrs/v5/model/create_connection_response.py +361 -0
  92. huaweicloudsdkdrs/v5/model/create_job_response.py +139 -19
  93. huaweicloudsdkdrs/v5/model/create_offline_task_req.py +182 -0
  94. huaweicloudsdkdrs/v5/model/create_replication_job_request.py +140 -0
  95. huaweicloudsdkdrs/v5/model/create_replication_job_response.py +116 -0
  96. huaweicloudsdkdrs/v5/model/data_process_info.py +32 -3
  97. huaweicloudsdkdrs/v5/model/db_object_filtering_result.py +148 -3
  98. huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py +311 -0
  99. huaweicloudsdkdrs/v5/model/delete_connection_request.py +143 -0
  100. huaweicloudsdkdrs/v5/model/delete_connection_response.py +116 -0
  101. huaweicloudsdkdrs/v5/model/delete_replication_job_request.py +143 -0
  102. huaweicloudsdkdrs/v5/model/delete_replication_job_response.py +116 -0
  103. huaweicloudsdkdrs/v5/model/delete_user_driver_req.py +142 -0
  104. huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_request.py +140 -0
  105. huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_response.py +116 -0
  106. huaweicloudsdkdrs/v5/model/download_db_object_template_request.py +3 -3
  107. huaweicloudsdkdrs/v5/model/health_compare_job.py +9 -9
  108. huaweicloudsdkdrs/v5/model/job_base_info.py +35 -6
  109. huaweicloudsdkdrs/v5/model/job_detail_resp.py +35 -6
  110. huaweicloudsdkdrs/v5/model/job_endpoint_info.py +3 -3
  111. huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
  112. huaweicloudsdkdrs/v5/model/list_connections_request.py +492 -0
  113. huaweicloudsdkdrs/v5/model/list_connections_response.py +145 -0
  114. huaweicloudsdkdrs/v5/model/list_job_ddls_request.py +288 -0
  115. huaweicloudsdkdrs/v5/model/list_job_ddls_response.py +145 -0
  116. huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py +463 -0
  117. huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py +145 -0
  118. huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_request.py +201 -0
  119. huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_response.py +145 -0
  120. huaweicloudsdkdrs/v5/model/lists_agency_permissions_request.py +201 -0
  121. huaweicloudsdkdrs/v5/model/lists_agency_permissions_response.py +145 -0
  122. huaweicloudsdkdrs/v5/model/modify_compare_policy_req.py +288 -0
  123. huaweicloudsdkdrs/v5/model/modify_connection_request.py +168 -0
  124. huaweicloudsdkdrs/v5/model/modify_connection_response.py +116 -0
  125. huaweicloudsdkdrs/v5/model/modify_offline_task_req.py +143 -0
  126. huaweicloudsdkdrs/v5/model/objects_health_compare_overview_info.py +202 -0
  127. huaweicloudsdkdrs/v5/model/offline_task_info.py +342 -0
  128. huaweicloudsdkdrs/v5/model/policy_config.py +32 -3
  129. huaweicloudsdkdrs/v5/model/replay_config_info.py +282 -0
  130. huaweicloudsdkdrs/v5/model/replay_error_classification.py +201 -0
  131. huaweicloudsdkdrs/v5/model/replay_error_sql_resp.py +173 -0
  132. huaweicloudsdkdrs/v5/model/replay_error_sql_template_resp.py +289 -0
  133. huaweicloudsdkdrs/v5/model/replay_shard_statics_resp.py +226 -0
  134. huaweicloudsdkdrs/v5/model/replay_slow_sql_resp.py +202 -0
  135. huaweicloudsdkdrs/v5/model/replay_slow_sql_template_resp.py +402 -0
  136. huaweicloudsdkdrs/v5/model/replaying_sql_resp.py +318 -0
  137. huaweicloudsdkdrs/v5/model/resource_tag.py +3 -3
  138. huaweicloudsdkdrs/v5/model/show_agency_info_request.py +143 -0
  139. huaweicloudsdkdrs/v5/model/show_agency_info_response.py +174 -0
  140. huaweicloudsdkdrs/v5/model/show_compare_policy_response.py +3 -3
  141. huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +3 -3
  142. huaweicloudsdkdrs/v5/model/show_db_object_template_progress_request.py +32 -3
  143. huaweicloudsdkdrs/v5/model/show_db_object_template_result_request.py +32 -3
  144. huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_request.py +171 -0
  145. huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_response.py +261 -0
  146. huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_request.py +171 -0
  147. huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_response.py +116 -0
  148. huaweicloudsdkdrs/v5/model/show_job_detail_request.py +3 -3
  149. huaweicloudsdkdrs/v5/model/show_position_result_response.py +32 -3
  150. huaweicloudsdkdrs/v5/model/show_replay_results_request.py +461 -0
  151. huaweicloudsdkdrs/v5/model/show_replay_results_response.py +319 -0
  152. huaweicloudsdkdrs/v5/model/show_replication_job_request.py +143 -0
  153. huaweicloudsdkdrs/v5/model/show_replication_job_response.py +390 -0
  154. huaweicloudsdkdrs/v5/model/show_support_object_type_response.py +32 -3
  155. huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +3 -3
  156. huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_request.py +168 -0
  157. huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_response.py +116 -0
  158. huaweicloudsdkdrs/v5/model/to_period_req.py +198 -0
  159. huaweicloudsdkdrs/v5/model/update_agency_policy_request.py +168 -0
  160. huaweicloudsdkdrs/v5/model/update_agency_policy_request_body.py +142 -0
  161. huaweicloudsdkdrs/v5/model/update_agency_policy_response.py +116 -0
  162. huaweicloudsdkdrs/v5/model/update_compare_policy_request.py +168 -0
  163. huaweicloudsdkdrs/v5/model/update_compare_policy_response.py +116 -0
  164. huaweicloudsdkdrs/v5/model/update_connection_req.py +327 -0
  165. huaweicloudsdkdrs/v5/model/update_data_progress_response.py +3 -3
  166. huaweicloudsdkdrs/v5/model/update_job_req.py +3 -3
  167. huaweicloudsdkdrs/v5/model/update_replication_job_request.py +168 -0
  168. huaweicloudsdkdrs/v5/model/update_replication_job_response.py +116 -0
  169. huaweicloudsdkdrs/v5/model/update_user_driver_req.py +142 -0
  170. huaweicloudsdkdrs/v5/model/upload_db_object_template_request.py +3 -3
  171. huaweicloudsdkdrs/v5/model/upload_jdbc_driver_request_body.py +3 -3
  172. huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request.py +168 -0
  173. huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request_body.py +114 -0
  174. huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_response.py +116 -0
  175. huaweicloudsdkdrs/v5/region/drs_region.py +15 -0
  176. {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/METADATA +2 -2
  177. {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/RECORD +180 -59
  178. {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/WHEEL +1 -1
  179. huaweicloudsdkdrs/v5/model/create_job_resp.py +0 -227
  180. {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/LICENSE +0 -0
  181. {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.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,31 +1214,31 @@ class DrsAsyncClient(Client):
1076
1214
 
1077
1215
  return http_info
1078
1216
 
1079
- def create_job_async(self, request):
1080
- """创建任务
1217
+ def create_connection_async(self, request):
1218
+ """创建连接
1081
1219
 
1082
- 创建单个任务,根据请求参数不同,可以创建单个实时迁移、实时同步、实时灾备等任务。
1220
+ 创建单个连接,该连接可以为线下自建库或云上RDS等,目前支持的数据库引擎包括MySQL、PostgreSQL、Oracle和MongoDB。
1083
1221
 
1084
1222
  Please refer to HUAWEI cloud API Explorer for details.
1085
1223
 
1086
1224
 
1087
- :param request: Request instance for CreateJob
1088
- :type request: :class:`huaweicloudsdkdrs.v5.CreateJobRequest`
1089
- :rtype: :class:`huaweicloudsdkdrs.v5.CreateJobResponse`
1225
+ :param request: Request instance for CreateConnection
1226
+ :type request: :class:`huaweicloudsdkdrs.v5.CreateConnectionRequest`
1227
+ :rtype: :class:`huaweicloudsdkdrs.v5.CreateConnectionResponse`
1090
1228
  """
1091
- http_info = self._create_job_http_info(request)
1229
+ http_info = self._create_connection_http_info(request)
1092
1230
  return self._call_api(**http_info)
1093
1231
 
1094
- def create_job_async_invoker(self, request):
1095
- http_info = self._create_job_http_info(request)
1232
+ def create_connection_async_invoker(self, request):
1233
+ http_info = self._create_connection_http_info(request)
1096
1234
  return AsyncInvoker(self, http_info)
1097
1235
 
1098
- def _create_job_http_info(self, request):
1236
+ def _create_connection_http_info(self, request):
1099
1237
  http_info = {
1100
1238
  "method": "POST",
1101
- "resource_path": "/v5/{project_id}/jobs",
1239
+ "resource_path": "/v5/{project_id}/connections",
1102
1240
  "request_type": request.__class__.__name__,
1103
- "response_type": "CreateJobResponse"
1241
+ "response_type": "CreateConnectionResponse"
1104
1242
  }
1105
1243
 
1106
1244
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1143,31 +1281,31 @@ class DrsAsyncClient(Client):
1143
1281
 
1144
1282
  return http_info
1145
1283
 
1146
- def delete_jdbc_driver_async(self, request):
1147
- """删除驱动文件
1284
+ def create_job_async(self, request):
1285
+ """创建任务
1148
1286
 
1149
- 删除驱动文件。
1287
+ 创建单个任务,根据请求参数不同,可以创建单个实时迁移、实时同步、实时灾备等任务。
1150
1288
 
1151
1289
  Please refer to HUAWEI cloud API Explorer for details.
1152
1290
 
1153
1291
 
1154
- :param request: Request instance for DeleteJdbcDriver
1155
- :type request: :class:`huaweicloudsdkdrs.v5.DeleteJdbcDriverRequest`
1156
- :rtype: :class:`huaweicloudsdkdrs.v5.DeleteJdbcDriverResponse`
1292
+ :param request: Request instance for CreateJob
1293
+ :type request: :class:`huaweicloudsdkdrs.v5.CreateJobRequest`
1294
+ :rtype: :class:`huaweicloudsdkdrs.v5.CreateJobResponse`
1157
1295
  """
1158
- http_info = self._delete_jdbc_driver_http_info(request)
1296
+ http_info = self._create_job_http_info(request)
1159
1297
  return self._call_api(**http_info)
1160
1298
 
1161
- def delete_jdbc_driver_async_invoker(self, request):
1162
- http_info = self._delete_jdbc_driver_http_info(request)
1299
+ def create_job_async_invoker(self, request):
1300
+ http_info = self._create_job_http_info(request)
1163
1301
  return AsyncInvoker(self, http_info)
1164
1302
 
1165
- def _delete_jdbc_driver_http_info(self, request):
1303
+ def _create_job_http_info(self, request):
1166
1304
  http_info = {
1167
- "method": "DELETE",
1168
- "resource_path": "/v5/{project_id}/jdbc-drivers",
1305
+ "method": "POST",
1306
+ "resource_path": "/v5/{project_id}/jobs",
1169
1307
  "request_type": request.__class__.__name__,
1170
- "response_type": "DeleteJdbcDriverResponse"
1308
+ "response_type": "CreateJobResponse"
1171
1309
  }
1172
1310
 
1173
1311
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1210,31 +1348,35 @@ class DrsAsyncClient(Client):
1210
1348
 
1211
1349
  return http_info
1212
1350
 
1213
- def delete_job_async(self, request):
1214
- """删除指定ID任务
1351
+ def create_replication_job_async(self, request):
1352
+ """创建备份迁移任务
1215
1353
 
1216
- 删除租户指定ID任务。
1354
+ 该接口主要用于三种常见场景下备份迁移任务的配置。
1355
+ 备份迁移支持如下的常见场景:
1356
+ - 通过OBS桶备份文件进行全量数据迁移。
1357
+ - 通过OBS桶备份文件进行全量+增量数据迁移。
1358
+ - 通过RDS全量备份进行全量数据迁移。
1217
1359
 
1218
1360
  Please refer to HUAWEI cloud API Explorer for details.
1219
1361
 
1220
1362
 
1221
- :param request: Request instance for DeleteJob
1222
- :type request: :class:`huaweicloudsdkdrs.v5.DeleteJobRequest`
1223
- :rtype: :class:`huaweicloudsdkdrs.v5.DeleteJobResponse`
1363
+ :param request: Request instance for CreateReplicationJob
1364
+ :type request: :class:`huaweicloudsdkdrs.v5.CreateReplicationJobRequest`
1365
+ :rtype: :class:`huaweicloudsdkdrs.v5.CreateReplicationJobResponse`
1224
1366
  """
1225
- http_info = self._delete_job_http_info(request)
1367
+ http_info = self._create_replication_job_http_info(request)
1226
1368
  return self._call_api(**http_info)
1227
1369
 
1228
- def delete_job_async_invoker(self, request):
1229
- http_info = self._delete_job_http_info(request)
1370
+ def create_replication_job_async_invoker(self, request):
1371
+ http_info = self._create_replication_job_http_info(request)
1230
1372
  return AsyncInvoker(self, http_info)
1231
1373
 
1232
- def _delete_job_http_info(self, request):
1374
+ def _create_replication_job_http_info(self, request):
1233
1375
  http_info = {
1234
- "method": "DELETE",
1235
- "resource_path": "/v5/{project_id}/jobs/{job_id}",
1376
+ "method": "POST",
1377
+ "resource_path": "/v5/{project_id}/backup-migration-jobs",
1236
1378
  "request_type": request.__class__.__name__,
1237
- "response_type": "DeleteJobResponse"
1379
+ "response_type": "CreateReplicationJobResponse"
1238
1380
  }
1239
1381
 
1240
1382
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1244,8 +1386,6 @@ class DrsAsyncClient(Client):
1244
1386
  collection_formats = {}
1245
1387
 
1246
1388
  path_params = {}
1247
- if 'job_id' in local_var_params:
1248
- path_params['job_id'] = local_var_params['job_id']
1249
1389
 
1250
1390
  query_params = []
1251
1391
 
@@ -1256,6 +1396,8 @@ class DrsAsyncClient(Client):
1256
1396
  form_params = {}
1257
1397
 
1258
1398
  body = None
1399
+ if 'body' in local_var_params:
1400
+ body = local_var_params['body']
1259
1401
  if isinstance(request, SdkStreamRequest):
1260
1402
  body = request.get_file_stream()
1261
1403
 
@@ -1277,31 +1419,31 @@ class DrsAsyncClient(Client):
1277
1419
 
1278
1420
  return http_info
1279
1421
 
1280
- def download_batch_create_template_async(self, request):
1281
- """下载批量导入任务模板
1422
+ def delete_connection_async(self, request):
1423
+ """删除连接
1282
1424
 
1283
- 下载批量导入任务模板
1425
+ 删除租户指定的连接。
1284
1426
 
1285
1427
  Please refer to HUAWEI cloud API Explorer for details.
1286
1428
 
1287
1429
 
1288
- :param request: Request instance for DownloadBatchCreateTemplate
1289
- :type request: :class:`huaweicloudsdkdrs.v5.DownloadBatchCreateTemplateRequest`
1290
- :rtype: :class:`huaweicloudsdkdrs.v5.DownloadBatchCreateTemplateResponse`
1430
+ :param request: Request instance for DeleteConnection
1431
+ :type request: :class:`huaweicloudsdkdrs.v5.DeleteConnectionRequest`
1432
+ :rtype: :class:`huaweicloudsdkdrs.v5.DeleteConnectionResponse`
1291
1433
  """
1292
- http_info = self._download_batch_create_template_http_info(request)
1434
+ http_info = self._delete_connection_http_info(request)
1293
1435
  return self._call_api(**http_info)
1294
1436
 
1295
- def download_batch_create_template_async_invoker(self, request):
1296
- http_info = self._download_batch_create_template_http_info(request)
1437
+ def delete_connection_async_invoker(self, request):
1438
+ http_info = self._delete_connection_http_info(request)
1297
1439
  return AsyncInvoker(self, http_info)
1298
1440
 
1299
- def _download_batch_create_template_http_info(self, request):
1441
+ def _delete_connection_http_info(self, request):
1300
1442
  http_info = {
1301
- "method": "GET",
1302
- "resource_path": "/v5/{project_id}/jobs/template",
1443
+ "method": "DELETE",
1444
+ "resource_path": "/v5/{project_id}/connections/{connection_id}",
1303
1445
  "request_type": request.__class__.__name__,
1304
- "response_type": "DownloadBatchCreateTemplateResponse"
1446
+ "response_type": "DeleteConnectionResponse"
1305
1447
  }
1306
1448
 
1307
1449
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1311,6 +1453,8 @@ class DrsAsyncClient(Client):
1311
1453
  collection_formats = {}
1312
1454
 
1313
1455
  path_params = {}
1456
+ if 'connection_id' in local_var_params:
1457
+ path_params['connection_id'] = local_var_params['connection_id']
1314
1458
 
1315
1459
  query_params = []
1316
1460
 
@@ -1342,31 +1486,31 @@ class DrsAsyncClient(Client):
1342
1486
 
1343
1487
  return http_info
1344
1488
 
1345
- def download_db_object_template_async(self, request):
1346
- """对象选择(文件导入 - 模板下载)
1489
+ def delete_jdbc_driver_async(self, request):
1490
+ """删除驱动文件(不再推广)
1347
1491
 
1348
- 对象选择(文件导入 - 模板下载)。
1492
+ 删除驱动文件。
1349
1493
 
1350
1494
  Please refer to HUAWEI cloud API Explorer for details.
1351
1495
 
1352
1496
 
1353
- :param request: Request instance for DownloadDbObjectTemplate
1354
- :type request: :class:`huaweicloudsdkdrs.v5.DownloadDbObjectTemplateRequest`
1355
- :rtype: :class:`huaweicloudsdkdrs.v5.DownloadDbObjectTemplateResponse`
1497
+ :param request: Request instance for DeleteJdbcDriver
1498
+ :type request: :class:`huaweicloudsdkdrs.v5.DeleteJdbcDriverRequest`
1499
+ :rtype: :class:`huaweicloudsdkdrs.v5.DeleteJdbcDriverResponse`
1356
1500
  """
1357
- http_info = self._download_db_object_template_http_info(request)
1501
+ http_info = self._delete_jdbc_driver_http_info(request)
1358
1502
  return self._call_api(**http_info)
1359
1503
 
1360
- def download_db_object_template_async_invoker(self, request):
1361
- http_info = self._download_db_object_template_http_info(request)
1504
+ def delete_jdbc_driver_async_invoker(self, request):
1505
+ http_info = self._delete_jdbc_driver_http_info(request)
1362
1506
  return AsyncInvoker(self, http_info)
1363
1507
 
1364
- def _download_db_object_template_http_info(self, request):
1508
+ def _delete_jdbc_driver_http_info(self, request):
1365
1509
  http_info = {
1366
- "method": "GET",
1367
- "resource_path": "/v5/{project_id}/jobs/{job_id}/db-object/template",
1510
+ "method": "DELETE",
1511
+ "resource_path": "/v5/{project_id}/jdbc-drivers",
1368
1512
  "request_type": request.__class__.__name__,
1369
- "response_type": "DownloadDbObjectTemplateResponse"
1513
+ "response_type": "DeleteJdbcDriverResponse"
1370
1514
  }
1371
1515
 
1372
1516
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1376,12 +1520,8 @@ class DrsAsyncClient(Client):
1376
1520
  collection_formats = {}
1377
1521
 
1378
1522
  path_params = {}
1379
- if 'job_id' in local_var_params:
1380
- path_params['job_id'] = local_var_params['job_id']
1381
1523
 
1382
1524
  query_params = []
1383
- if 'file_import_db_level' in local_var_params:
1384
- query_params.append(('file_import_db_level', local_var_params['file_import_db_level']))
1385
1525
 
1386
1526
  header_params = {}
1387
1527
  if 'x_language' in local_var_params:
@@ -1390,6 +1530,8 @@ class DrsAsyncClient(Client):
1390
1530
  form_params = {}
1391
1531
 
1392
1532
  body = None
1533
+ if 'body' in local_var_params:
1534
+ body = local_var_params['body']
1393
1535
  if isinstance(request, SdkStreamRequest):
1394
1536
  body = request.get_file_stream()
1395
1537
 
@@ -1411,31 +1553,31 @@ class DrsAsyncClient(Client):
1411
1553
 
1412
1554
  return http_info
1413
1555
 
1414
- def execute_job_action_async(self, request):
1415
- """操作指定ID任务
1556
+ def delete_job_async(self, request):
1557
+ """删除指定ID任务
1416
1558
 
1417
- 操作租户指定ID任务。
1559
+ 删除租户指定ID任务。
1418
1560
 
1419
1561
  Please refer to HUAWEI cloud API Explorer for details.
1420
1562
 
1421
1563
 
1422
- :param request: Request instance for ExecuteJobAction
1423
- :type request: :class:`huaweicloudsdkdrs.v5.ExecuteJobActionRequest`
1424
- :rtype: :class:`huaweicloudsdkdrs.v5.ExecuteJobActionResponse`
1564
+ :param request: Request instance for DeleteJob
1565
+ :type request: :class:`huaweicloudsdkdrs.v5.DeleteJobRequest`
1566
+ :rtype: :class:`huaweicloudsdkdrs.v5.DeleteJobResponse`
1425
1567
  """
1426
- http_info = self._execute_job_action_http_info(request)
1568
+ http_info = self._delete_job_http_info(request)
1427
1569
  return self._call_api(**http_info)
1428
1570
 
1429
- def execute_job_action_async_invoker(self, request):
1430
- http_info = self._execute_job_action_http_info(request)
1571
+ def delete_job_async_invoker(self, request):
1572
+ http_info = self._delete_job_http_info(request)
1431
1573
  return AsyncInvoker(self, http_info)
1432
1574
 
1433
- def _execute_job_action_http_info(self, request):
1575
+ def _delete_job_http_info(self, request):
1434
1576
  http_info = {
1435
- "method": "POST",
1436
- "resource_path": "/v5/{project_id}/jobs/{job_id}/action",
1577
+ "method": "DELETE",
1578
+ "resource_path": "/v5/{project_id}/jobs/{job_id}",
1437
1579
  "request_type": request.__class__.__name__,
1438
- "response_type": "ExecuteJobActionResponse"
1580
+ "response_type": "DeleteJobResponse"
1439
1581
  }
1440
1582
 
1441
1583
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1457,8 +1599,6 @@ class DrsAsyncClient(Client):
1457
1599
  form_params = {}
1458
1600
 
1459
1601
  body = None
1460
- if 'body' in local_var_params:
1461
- body = local_var_params['body']
1462
1602
  if isinstance(request, SdkStreamRequest):
1463
1603
  body = request.get_file_stream()
1464
1604
 
@@ -1480,31 +1620,31 @@ class DrsAsyncClient(Client):
1480
1620
 
1481
1621
  return http_info
1482
1622
 
1483
- def export_operation_info_async(self, request):
1484
- """导出任务操作统计信息
1623
+ def delete_replication_job_async(self, request):
1624
+ """删除备份迁移任务
1485
1625
 
1486
- 导出指定任务操作统计信息。
1626
+ 对于已经完成的备份迁移任务,可以选择删除迁移任务。
1487
1627
 
1488
1628
  Please refer to HUAWEI cloud API Explorer for details.
1489
1629
 
1490
1630
 
1491
- :param request: Request instance for ExportOperationInfo
1492
- :type request: :class:`huaweicloudsdkdrs.v5.ExportOperationInfoRequest`
1493
- :rtype: :class:`huaweicloudsdkdrs.v5.ExportOperationInfoResponse`
1631
+ :param request: Request instance for DeleteReplicationJob
1632
+ :type request: :class:`huaweicloudsdkdrs.v5.DeleteReplicationJobRequest`
1633
+ :rtype: :class:`huaweicloudsdkdrs.v5.DeleteReplicationJobResponse`
1494
1634
  """
1495
- http_info = self._export_operation_info_http_info(request)
1635
+ http_info = self._delete_replication_job_http_info(request)
1496
1636
  return self._call_api(**http_info)
1497
1637
 
1498
- def export_operation_info_async_invoker(self, request):
1499
- http_info = self._export_operation_info_http_info(request)
1638
+ def delete_replication_job_async_invoker(self, request):
1639
+ http_info = self._delete_replication_job_http_info(request)
1500
1640
  return AsyncInvoker(self, http_info)
1501
1641
 
1502
- def _export_operation_info_http_info(self, request):
1642
+ def _delete_replication_job_http_info(self, request):
1503
1643
  http_info = {
1504
- "method": "POST",
1505
- "resource_path": "/v5/{project_id}/jobs/{job_id}/operation-statistics/export",
1644
+ "method": "DELETE",
1645
+ "resource_path": "/v5/{project_id}/backup-migration-jobs/{job_id}",
1506
1646
  "request_type": request.__class__.__name__,
1507
- "response_type": "ExportOperationInfoResponse"
1647
+ "response_type": "DeleteReplicationJobResponse"
1508
1648
  }
1509
1649
 
1510
1650
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1547,31 +1687,31 @@ class DrsAsyncClient(Client):
1547
1687
 
1548
1688
  return http_info
1549
1689
 
1550
- def import_batch_create_jobs_async(self, request):
1551
- """批量导入任务
1690
+ def delete_user_jdbc_driver_async(self, request):
1691
+ """删除驱动文件
1552
1692
 
1553
- 批量导入任务
1693
+ 删除驱动文件。
1554
1694
 
1555
1695
  Please refer to HUAWEI cloud API Explorer for details.
1556
1696
 
1557
1697
 
1558
- :param request: Request instance for ImportBatchCreateJobs
1559
- :type request: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsRequest`
1560
- :rtype: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsResponse`
1698
+ :param request: Request instance for DeleteUserJdbcDriver
1699
+ :type request: :class:`huaweicloudsdkdrs.v5.DeleteUserJdbcDriverRequest`
1700
+ :rtype: :class:`huaweicloudsdkdrs.v5.DeleteUserJdbcDriverResponse`
1561
1701
  """
1562
- http_info = self._import_batch_create_jobs_http_info(request)
1702
+ http_info = self._delete_user_jdbc_driver_http_info(request)
1563
1703
  return self._call_api(**http_info)
1564
1704
 
1565
- def import_batch_create_jobs_async_invoker(self, request):
1566
- http_info = self._import_batch_create_jobs_http_info(request)
1705
+ def delete_user_jdbc_driver_async_invoker(self, request):
1706
+ http_info = self._delete_user_jdbc_driver_http_info(request)
1567
1707
  return AsyncInvoker(self, http_info)
1568
1708
 
1569
- def _import_batch_create_jobs_http_info(self, request):
1709
+ def _delete_user_jdbc_driver_http_info(self, request):
1570
1710
  http_info = {
1571
- "method": "POST",
1572
- "resource_path": "/v5/{project_id}/jobs/template",
1711
+ "method": "DELETE",
1712
+ "resource_path": "/v5/{project_id}/drivers",
1573
1713
  "request_type": request.__class__.__name__,
1574
- "response_type": "ImportBatchCreateJobsResponse"
1714
+ "response_type": "DeleteUserJdbcDriverResponse"
1575
1715
  }
1576
1716
 
1577
1717
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1589,8 +1729,6 @@ class DrsAsyncClient(Client):
1589
1729
  header_params['X-Language'] = local_var_params['x_language']
1590
1730
 
1591
1731
  form_params = {}
1592
- if 'file' in local_var_params:
1593
- form_params['file'] = local_var_params['file']
1594
1732
 
1595
1733
  body = None
1596
1734
  if 'body' in local_var_params:
@@ -1601,7 +1739,7 @@ class DrsAsyncClient(Client):
1601
1739
  response_headers = []
1602
1740
 
1603
1741
  header_params['Content-Type'] = http_utils.select_header_content_type(
1604
- ['multipart/form-data'])
1742
+ ['application/json'])
1605
1743
 
1606
1744
  auth_settings = []
1607
1745
 
@@ -1616,31 +1754,31 @@ class DrsAsyncClient(Client):
1616
1754
 
1617
1755
  return http_info
1618
1756
 
1619
- def list_async_job_detail_async(self, request):
1620
- """查询指定ID批量异步任务详情
1757
+ def download_batch_create_template_async(self, request):
1758
+ """下载批量导入任务模板
1621
1759
 
1622
- 查询租户指定ID批量异步任务详情,默认为任务的“create_time”降序排序获取结果,支持分页查询。
1760
+ 下载批量导入任务模板
1623
1761
 
1624
1762
  Please refer to HUAWEI cloud API Explorer for details.
1625
1763
 
1626
1764
 
1627
- :param request: Request instance for ListAsyncJobDetail
1628
- :type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailRequest`
1629
- :rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailResponse`
1765
+ :param request: Request instance for DownloadBatchCreateTemplate
1766
+ :type request: :class:`huaweicloudsdkdrs.v5.DownloadBatchCreateTemplateRequest`
1767
+ :rtype: :class:`huaweicloudsdkdrs.v5.DownloadBatchCreateTemplateResponse`
1630
1768
  """
1631
- http_info = self._list_async_job_detail_http_info(request)
1769
+ http_info = self._download_batch_create_template_http_info(request)
1632
1770
  return self._call_api(**http_info)
1633
1771
 
1634
- def list_async_job_detail_async_invoker(self, request):
1635
- http_info = self._list_async_job_detail_http_info(request)
1772
+ def download_batch_create_template_async_invoker(self, request):
1773
+ http_info = self._download_batch_create_template_http_info(request)
1636
1774
  return AsyncInvoker(self, http_info)
1637
1775
 
1638
- def _list_async_job_detail_http_info(self, request):
1776
+ def _download_batch_create_template_http_info(self, request):
1639
1777
  http_info = {
1640
1778
  "method": "GET",
1641
- "resource_path": "/v5/{project_id}/batch-async-jobs/{async_job_id}",
1779
+ "resource_path": "/v5/{project_id}/jobs/template",
1642
1780
  "request_type": request.__class__.__name__,
1643
- "response_type": "ListAsyncJobDetailResponse"
1781
+ "response_type": "DownloadBatchCreateTemplateResponse"
1644
1782
  }
1645
1783
 
1646
1784
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1650,14 +1788,8 @@ class DrsAsyncClient(Client):
1650
1788
  collection_formats = {}
1651
1789
 
1652
1790
  path_params = {}
1653
- if 'async_job_id' in local_var_params:
1654
- path_params['async_job_id'] = local_var_params['async_job_id']
1655
1791
 
1656
1792
  query_params = []
1657
- if 'offset' in local_var_params:
1658
- query_params.append(('offset', local_var_params['offset']))
1659
- if 'limit' in local_var_params:
1660
- query_params.append(('limit', local_var_params['limit']))
1661
1793
 
1662
1794
  header_params = {}
1663
1795
  if 'x_language' in local_var_params:
@@ -1687,31 +1819,31 @@ class DrsAsyncClient(Client):
1687
1819
 
1688
1820
  return http_info
1689
1821
 
1690
- def list_async_jobs_async(self, request):
1691
- """查询批量异步创建的任务列表
1822
+ def download_db_object_template_async(self, request):
1823
+ """对象选择(文件导入 - 模板下载)
1692
1824
 
1693
- 查询租户批量异步创建的任务列表。
1825
+ 对象选择(文件导入 - 模板下载)。
1694
1826
 
1695
1827
  Please refer to HUAWEI cloud API Explorer for details.
1696
1828
 
1697
1829
 
1698
- :param request: Request instance for ListAsyncJobs
1699
- :type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsRequest`
1700
- :rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsResponse`
1830
+ :param request: Request instance for DownloadDbObjectTemplate
1831
+ :type request: :class:`huaweicloudsdkdrs.v5.DownloadDbObjectTemplateRequest`
1832
+ :rtype: :class:`huaweicloudsdkdrs.v5.DownloadDbObjectTemplateResponse`
1701
1833
  """
1702
- http_info = self._list_async_jobs_http_info(request)
1834
+ http_info = self._download_db_object_template_http_info(request)
1703
1835
  return self._call_api(**http_info)
1704
1836
 
1705
- def list_async_jobs_async_invoker(self, request):
1706
- http_info = self._list_async_jobs_http_info(request)
1837
+ def download_db_object_template_async_invoker(self, request):
1838
+ http_info = self._download_db_object_template_http_info(request)
1707
1839
  return AsyncInvoker(self, http_info)
1708
1840
 
1709
- def _list_async_jobs_http_info(self, request):
1841
+ def _download_db_object_template_http_info(self, request):
1710
1842
  http_info = {
1711
1843
  "method": "GET",
1712
- "resource_path": "/v5/{project_id}/batch-async-jobs",
1844
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-object/template",
1713
1845
  "request_type": request.__class__.__name__,
1714
- "response_type": "ListAsyncJobsResponse"
1846
+ "response_type": "DownloadDbObjectTemplateResponse"
1715
1847
  }
1716
1848
 
1717
1849
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1721,24 +1853,12 @@ class DrsAsyncClient(Client):
1721
1853
  collection_formats = {}
1722
1854
 
1723
1855
  path_params = {}
1856
+ if 'job_id' in local_var_params:
1857
+ path_params['job_id'] = local_var_params['job_id']
1724
1858
 
1725
1859
  query_params = []
1726
- if 'async_job_id' in local_var_params:
1727
- query_params.append(('async_job_id', local_var_params['async_job_id']))
1728
- if 'status' in local_var_params:
1729
- query_params.append(('status', local_var_params['status']))
1730
- if 'domain_name' in local_var_params:
1731
- query_params.append(('domain_name', local_var_params['domain_name']))
1732
- if 'user_name' in local_var_params:
1733
- query_params.append(('user_name', local_var_params['user_name']))
1734
- if 'offset' in local_var_params:
1735
- query_params.append(('offset', local_var_params['offset']))
1736
- if 'limit' in local_var_params:
1737
- query_params.append(('limit', local_var_params['limit']))
1738
- if 'sort_key' in local_var_params:
1739
- query_params.append(('sort_key', local_var_params['sort_key']))
1740
- if 'sort_dir' in local_var_params:
1741
- query_params.append(('sort_dir', local_var_params['sort_dir']))
1860
+ if 'file_import_db_level' in local_var_params:
1861
+ query_params.append(('file_import_db_level', local_var_params['file_import_db_level']))
1742
1862
 
1743
1863
  header_params = {}
1744
1864
  if 'x_language' in local_var_params:
@@ -1768,31 +1888,31 @@ class DrsAsyncClient(Client):
1768
1888
 
1769
1889
  return http_info
1770
1890
 
1771
- def list_db_objects_async(self, request):
1772
- """查询数据库对象信息
1891
+ def execute_job_action_async(self, request):
1892
+ """操作指定ID任务
1773
1893
 
1774
- 查询数据库对象信息。
1894
+ 操作租户指定ID任务。
1775
1895
 
1776
1896
  Please refer to HUAWEI cloud API Explorer for details.
1777
1897
 
1778
1898
 
1779
- :param request: Request instance for ListDbObjects
1780
- :type request: :class:`huaweicloudsdkdrs.v5.ListDbObjectsRequest`
1781
- :rtype: :class:`huaweicloudsdkdrs.v5.ListDbObjectsResponse`
1899
+ :param request: Request instance for ExecuteJobAction
1900
+ :type request: :class:`huaweicloudsdkdrs.v5.ExecuteJobActionRequest`
1901
+ :rtype: :class:`huaweicloudsdkdrs.v5.ExecuteJobActionResponse`
1782
1902
  """
1783
- http_info = self._list_db_objects_http_info(request)
1903
+ http_info = self._execute_job_action_http_info(request)
1784
1904
  return self._call_api(**http_info)
1785
1905
 
1786
- def list_db_objects_async_invoker(self, request):
1787
- http_info = self._list_db_objects_http_info(request)
1906
+ def execute_job_action_async_invoker(self, request):
1907
+ http_info = self._execute_job_action_http_info(request)
1788
1908
  return AsyncInvoker(self, http_info)
1789
1909
 
1790
- def _list_db_objects_http_info(self, request):
1910
+ def _execute_job_action_http_info(self, request):
1791
1911
  http_info = {
1792
- "method": "GET",
1793
- "resource_path": "/v5/{project_id}/jobs/{job_id}/db-objects",
1912
+ "method": "POST",
1913
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/action",
1794
1914
  "request_type": request.__class__.__name__,
1795
- "response_type": "ListDbObjectsResponse"
1915
+ "response_type": "ExecuteJobActionResponse"
1796
1916
  }
1797
1917
 
1798
1918
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1806,15 +1926,6 @@ class DrsAsyncClient(Client):
1806
1926
  path_params['job_id'] = local_var_params['job_id']
1807
1927
 
1808
1928
  query_params = []
1809
- if 'offset' in local_var_params:
1810
- query_params.append(('offset', local_var_params['offset']))
1811
- if 'limit' in local_var_params:
1812
- query_params.append(('limit', local_var_params['limit']))
1813
- if 'type' in local_var_params:
1814
- query_params.append(('type', local_var_params['type']))
1815
- if 'db_names' in local_var_params:
1816
- query_params.append(('db_names', local_var_params['db_names']))
1817
- collection_formats['db_names'] = 'csv'
1818
1929
 
1819
1930
  header_params = {}
1820
1931
  if 'x_language' in local_var_params:
@@ -1823,6 +1934,8 @@ class DrsAsyncClient(Client):
1823
1934
  form_params = {}
1824
1935
 
1825
1936
  body = None
1937
+ if 'body' in local_var_params:
1938
+ body = local_var_params['body']
1826
1939
  if isinstance(request, SdkStreamRequest):
1827
1940
  body = request.get_file_stream()
1828
1941
 
@@ -1844,31 +1957,31 @@ class DrsAsyncClient(Client):
1844
1957
 
1845
1958
  return http_info
1846
1959
 
1847
- def list_instance_by_tags_async(self, request):
1848
- """查询资源实例列表
1960
+ def export_operation_info_async(self, request):
1961
+ """导出任务操作统计信息
1849
1962
 
1850
- 查询资源实例列表。
1963
+ 导出指定任务操作统计信息。
1851
1964
 
1852
1965
  Please refer to HUAWEI cloud API Explorer for details.
1853
1966
 
1854
1967
 
1855
- :param request: Request instance for ListInstanceByTags
1856
- :type request: :class:`huaweicloudsdkdrs.v5.ListInstanceByTagsRequest`
1857
- :rtype: :class:`huaweicloudsdkdrs.v5.ListInstanceByTagsResponse`
1968
+ :param request: Request instance for ExportOperationInfo
1969
+ :type request: :class:`huaweicloudsdkdrs.v5.ExportOperationInfoRequest`
1970
+ :rtype: :class:`huaweicloudsdkdrs.v5.ExportOperationInfoResponse`
1858
1971
  """
1859
- http_info = self._list_instance_by_tags_http_info(request)
1972
+ http_info = self._export_operation_info_http_info(request)
1860
1973
  return self._call_api(**http_info)
1861
1974
 
1862
- def list_instance_by_tags_async_invoker(self, request):
1863
- http_info = self._list_instance_by_tags_http_info(request)
1975
+ def export_operation_info_async_invoker(self, request):
1976
+ http_info = self._export_operation_info_http_info(request)
1864
1977
  return AsyncInvoker(self, http_info)
1865
1978
 
1866
- def _list_instance_by_tags_http_info(self, request):
1979
+ def _export_operation_info_http_info(self, request):
1867
1980
  http_info = {
1868
1981
  "method": "POST",
1869
- "resource_path": "/v5/{project_id}/{resource_type}/resource-instances/filter",
1982
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/operation-statistics/export",
1870
1983
  "request_type": request.__class__.__name__,
1871
- "response_type": "ListInstanceByTagsResponse"
1984
+ "response_type": "ExportOperationInfoResponse"
1872
1985
  }
1873
1986
 
1874
1987
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1878,14 +1991,10 @@ class DrsAsyncClient(Client):
1878
1991
  collection_formats = {}
1879
1992
 
1880
1993
  path_params = {}
1881
- if 'resource_type' in local_var_params:
1882
- path_params['resource_type'] = local_var_params['resource_type']
1994
+ if 'job_id' in local_var_params:
1995
+ path_params['job_id'] = local_var_params['job_id']
1883
1996
 
1884
1997
  query_params = []
1885
- if 'limit' in local_var_params:
1886
- query_params.append(('limit', local_var_params['limit']))
1887
- if 'offset' in local_var_params:
1888
- query_params.append(('offset', local_var_params['offset']))
1889
1998
 
1890
1999
  header_params = {}
1891
2000
  if 'x_language' in local_var_params:
@@ -1894,8 +2003,6 @@ class DrsAsyncClient(Client):
1894
2003
  form_params = {}
1895
2004
 
1896
2005
  body = None
1897
- if 'body' in local_var_params:
1898
- body = local_var_params['body']
1899
2006
  if isinstance(request, SdkStreamRequest):
1900
2007
  body = request.get_file_stream()
1901
2008
 
@@ -1917,31 +2024,31 @@ class DrsAsyncClient(Client):
1917
2024
 
1918
2025
  return http_info
1919
2026
 
1920
- def list_instance_tags_async(self, request):
1921
- """查询资源标签
2027
+ def import_batch_create_jobs_async(self, request):
2028
+ """批量导入任务
1922
2029
 
1923
- 查询指定实例的标签信息。
2030
+ 批量导入任务
1924
2031
 
1925
2032
  Please refer to HUAWEI cloud API Explorer for details.
1926
2033
 
1927
2034
 
1928
- :param request: Request instance for ListInstanceTags
1929
- :type request: :class:`huaweicloudsdkdrs.v5.ListInstanceTagsRequest`
1930
- :rtype: :class:`huaweicloudsdkdrs.v5.ListInstanceTagsResponse`
2035
+ :param request: Request instance for ImportBatchCreateJobs
2036
+ :type request: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsRequest`
2037
+ :rtype: :class:`huaweicloudsdkdrs.v5.ImportBatchCreateJobsResponse`
1931
2038
  """
1932
- http_info = self._list_instance_tags_http_info(request)
2039
+ http_info = self._import_batch_create_jobs_http_info(request)
1933
2040
  return self._call_api(**http_info)
1934
2041
 
1935
- def list_instance_tags_async_invoker(self, request):
1936
- http_info = self._list_instance_tags_http_info(request)
2042
+ def import_batch_create_jobs_async_invoker(self, request):
2043
+ http_info = self._import_batch_create_jobs_http_info(request)
1937
2044
  return AsyncInvoker(self, http_info)
1938
2045
 
1939
- def _list_instance_tags_http_info(self, request):
2046
+ def _import_batch_create_jobs_http_info(self, request):
1940
2047
  http_info = {
1941
- "method": "GET",
1942
- "resource_path": "/v5/{project_id}/{resource_type}/{resource_id}/tags",
2048
+ "method": "POST",
2049
+ "resource_path": "/v5/{project_id}/jobs/template",
1943
2050
  "request_type": request.__class__.__name__,
1944
- "response_type": "ListInstanceTagsResponse"
2051
+ "response_type": "ImportBatchCreateJobsResponse"
1945
2052
  }
1946
2053
 
1947
2054
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1951,10 +2058,6 @@ class DrsAsyncClient(Client):
1951
2058
  collection_formats = {}
1952
2059
 
1953
2060
  path_params = {}
1954
- if 'resource_type' in local_var_params:
1955
- path_params['resource_type'] = local_var_params['resource_type']
1956
- if 'resource_id' in local_var_params:
1957
- path_params['resource_id'] = local_var_params['resource_id']
1958
2061
 
1959
2062
  query_params = []
1960
2063
 
@@ -1963,15 +2066,19 @@ class DrsAsyncClient(Client):
1963
2066
  header_params['X-Language'] = local_var_params['x_language']
1964
2067
 
1965
2068
  form_params = {}
2069
+ if 'file' in local_var_params:
2070
+ form_params['file'] = local_var_params['file']
1966
2071
 
1967
2072
  body = None
2073
+ if 'body' in local_var_params:
2074
+ body = local_var_params['body']
1968
2075
  if isinstance(request, SdkStreamRequest):
1969
2076
  body = request.get_file_stream()
1970
2077
 
1971
2078
  response_headers = []
1972
2079
 
1973
2080
  header_params['Content-Type'] = http_utils.select_header_content_type(
1974
- ['application/json'])
2081
+ ['multipart/form-data'])
1975
2082
 
1976
2083
  auth_settings = []
1977
2084
 
@@ -1986,31 +2093,31 @@ class DrsAsyncClient(Client):
1986
2093
 
1987
2094
  return http_info
1988
2095
 
1989
- def list_jdbc_drivers_async(self, request):
1990
- """查询驱动文件列表
2096
+ def list_async_job_detail_async(self, request):
2097
+ """查询指定ID批量异步任务详情
1991
2098
 
1992
- 查询驱动文件列表。
2099
+ 查询租户指定ID批量异步任务详情,默认为任务的“create_time”降序排序获取结果,支持分页查询。
1993
2100
 
1994
2101
  Please refer to HUAWEI cloud API Explorer for details.
1995
2102
 
1996
2103
 
1997
- :param request: Request instance for ListJdbcDrivers
1998
- :type request: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversRequest`
1999
- :rtype: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversResponse`
2104
+ :param request: Request instance for ListAsyncJobDetail
2105
+ :type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailRequest`
2106
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobDetailResponse`
2000
2107
  """
2001
- http_info = self._list_jdbc_drivers_http_info(request)
2108
+ http_info = self._list_async_job_detail_http_info(request)
2002
2109
  return self._call_api(**http_info)
2003
2110
 
2004
- def list_jdbc_drivers_async_invoker(self, request):
2005
- http_info = self._list_jdbc_drivers_http_info(request)
2111
+ def list_async_job_detail_async_invoker(self, request):
2112
+ http_info = self._list_async_job_detail_http_info(request)
2006
2113
  return AsyncInvoker(self, http_info)
2007
2114
 
2008
- def _list_jdbc_drivers_http_info(self, request):
2115
+ def _list_async_job_detail_http_info(self, request):
2009
2116
  http_info = {
2010
2117
  "method": "GET",
2011
- "resource_path": "/v5/{project_id}/jdbc-drivers",
2118
+ "resource_path": "/v5/{project_id}/batch-async-jobs/{async_job_id}",
2012
2119
  "request_type": request.__class__.__name__,
2013
- "response_type": "ListJdbcDriversResponse"
2120
+ "response_type": "ListAsyncJobDetailResponse"
2014
2121
  }
2015
2122
 
2016
2123
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2020,12 +2127,14 @@ class DrsAsyncClient(Client):
2020
2127
  collection_formats = {}
2021
2128
 
2022
2129
  path_params = {}
2130
+ if 'async_job_id' in local_var_params:
2131
+ path_params['async_job_id'] = local_var_params['async_job_id']
2023
2132
 
2024
2133
  query_params = []
2025
- if 'limit' in local_var_params:
2026
- query_params.append(('limit', local_var_params['limit']))
2027
2134
  if 'offset' in local_var_params:
2028
2135
  query_params.append(('offset', local_var_params['offset']))
2136
+ if 'limit' in local_var_params:
2137
+ query_params.append(('limit', local_var_params['limit']))
2029
2138
 
2030
2139
  header_params = {}
2031
2140
  if 'x_language' in local_var_params:
@@ -2055,32 +2164,31 @@ class DrsAsyncClient(Client):
2055
2164
 
2056
2165
  return http_info
2057
2166
 
2058
- def list_job_history_parameters_async(self, request):
2059
- """查询任务的参数配置修改历史
2167
+ def list_async_jobs_async(self, request):
2168
+ """查询批量异步创建的任务列表
2060
2169
 
2061
- 查询任务的参数配置修改历史
2062
- - 仅engine_type为mysql、mysql-to-pgl、mysql-to-gaussdbv5、mysql-to-gaussdbv5ha、mysql-to-dws、mysql-to-taurus、mysql-to-kafka、mysql-to-elasticsearch、mysql-to-oracle且任务状态只能为配置中、全量中、增量中、全量失败、增量失败、暂停中的实时同步任务支持。
2170
+ 查询租户批量异步创建的任务列表。
2063
2171
 
2064
2172
  Please refer to HUAWEI cloud API Explorer for details.
2065
2173
 
2066
2174
 
2067
- :param request: Request instance for ListJobHistoryParameters
2068
- :type request: :class:`huaweicloudsdkdrs.v5.ListJobHistoryParametersRequest`
2069
- :rtype: :class:`huaweicloudsdkdrs.v5.ListJobHistoryParametersResponse`
2175
+ :param request: Request instance for ListAsyncJobs
2176
+ :type request: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsRequest`
2177
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListAsyncJobsResponse`
2070
2178
  """
2071
- http_info = self._list_job_history_parameters_http_info(request)
2179
+ http_info = self._list_async_jobs_http_info(request)
2072
2180
  return self._call_api(**http_info)
2073
2181
 
2074
- def list_job_history_parameters_async_invoker(self, request):
2075
- http_info = self._list_job_history_parameters_http_info(request)
2182
+ def list_async_jobs_async_invoker(self, request):
2183
+ http_info = self._list_async_jobs_http_info(request)
2076
2184
  return AsyncInvoker(self, http_info)
2077
2185
 
2078
- def _list_job_history_parameters_http_info(self, request):
2186
+ def _list_async_jobs_http_info(self, request):
2079
2187
  http_info = {
2080
2188
  "method": "GET",
2081
- "resource_path": "/v5/{project_id}/jobs/{job_id}/configuration-histories",
2189
+ "resource_path": "/v5/{project_id}/batch-async-jobs",
2082
2190
  "request_type": request.__class__.__name__,
2083
- "response_type": "ListJobHistoryParametersResponse"
2191
+ "response_type": "ListAsyncJobsResponse"
2084
2192
  }
2085
2193
 
2086
2194
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2090,20 +2198,24 @@ class DrsAsyncClient(Client):
2090
2198
  collection_formats = {}
2091
2199
 
2092
2200
  path_params = {}
2093
- if 'job_id' in local_var_params:
2094
- path_params['job_id'] = local_var_params['job_id']
2095
2201
 
2096
2202
  query_params = []
2203
+ if 'async_job_id' in local_var_params:
2204
+ query_params.append(('async_job_id', local_var_params['async_job_id']))
2205
+ if 'status' in local_var_params:
2206
+ query_params.append(('status', local_var_params['status']))
2207
+ if 'domain_name' in local_var_params:
2208
+ query_params.append(('domain_name', local_var_params['domain_name']))
2209
+ if 'user_name' in local_var_params:
2210
+ query_params.append(('user_name', local_var_params['user_name']))
2097
2211
  if 'offset' in local_var_params:
2098
2212
  query_params.append(('offset', local_var_params['offset']))
2099
2213
  if 'limit' in local_var_params:
2100
2214
  query_params.append(('limit', local_var_params['limit']))
2101
- if 'begin_time' in local_var_params:
2102
- query_params.append(('begin_time', local_var_params['begin_time']))
2103
- if 'end_time' in local_var_params:
2104
- query_params.append(('end_time', local_var_params['end_time']))
2105
- if 'name' in local_var_params:
2106
- query_params.append(('name', local_var_params['name']))
2215
+ if 'sort_key' in local_var_params:
2216
+ query_params.append(('sort_key', local_var_params['sort_key']))
2217
+ if 'sort_dir' in local_var_params:
2218
+ query_params.append(('sort_dir', local_var_params['sort_dir']))
2107
2219
 
2108
2220
  header_params = {}
2109
2221
  if 'x_language' in local_var_params:
@@ -2133,32 +2245,31 @@ class DrsAsyncClient(Client):
2133
2245
 
2134
2246
  return http_info
2135
2247
 
2136
- def list_job_parameters_async(self, request):
2137
- """查询任务参数配置列表
2248
+ def list_connections_async(self, request):
2249
+ """查询连接列表
2138
2250
 
2139
- 查询任务的参数配置列表信息
2140
- - 仅engine_type为mysql、mysql-to-pgl、mysql-to-gaussdbv5、mysql-to-gaussdbv5ha、mysql-to-dws、mysql-to-taurus、mysql-to-kafka、mysql-to-elasticsearch、mysql-to-oracle且任务状态只能为配置中、全量中、增量中、全量失败、增量失败、暂停中的实时同步任务支持。
2251
+ 查询连接列表,可根据连接类型进行查询。
2141
2252
 
2142
2253
  Please refer to HUAWEI cloud API Explorer for details.
2143
2254
 
2144
2255
 
2145
- :param request: Request instance for ListJobParameters
2146
- :type request: :class:`huaweicloudsdkdrs.v5.ListJobParametersRequest`
2147
- :rtype: :class:`huaweicloudsdkdrs.v5.ListJobParametersResponse`
2256
+ :param request: Request instance for ListConnections
2257
+ :type request: :class:`huaweicloudsdkdrs.v5.ListConnectionsRequest`
2258
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListConnectionsResponse`
2148
2259
  """
2149
- http_info = self._list_job_parameters_http_info(request)
2260
+ http_info = self._list_connections_http_info(request)
2150
2261
  return self._call_api(**http_info)
2151
2262
 
2152
- def list_job_parameters_async_invoker(self, request):
2153
- http_info = self._list_job_parameters_http_info(request)
2263
+ def list_connections_async_invoker(self, request):
2264
+ http_info = self._list_connections_http_info(request)
2154
2265
  return AsyncInvoker(self, http_info)
2155
2266
 
2156
- def _list_job_parameters_http_info(self, request):
2267
+ def _list_connections_http_info(self, request):
2157
2268
  http_info = {
2158
2269
  "method": "GET",
2159
- "resource_path": "/v5/{project_id}/jobs/{job_id}/configurations",
2270
+ "resource_path": "/v5/{project_id}/connections",
2160
2271
  "request_type": request.__class__.__name__,
2161
- "response_type": "ListJobParametersResponse"
2272
+ "response_type": "ListConnectionsResponse"
2162
2273
  }
2163
2274
 
2164
2275
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2168,16 +2279,34 @@ class DrsAsyncClient(Client):
2168
2279
  collection_formats = {}
2169
2280
 
2170
2281
  path_params = {}
2171
- if 'job_id' in local_var_params:
2172
- path_params['job_id'] = local_var_params['job_id']
2173
2282
 
2174
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']))
2175
2300
  if 'offset' in local_var_params:
2176
2301
  query_params.append(('offset', local_var_params['offset']))
2177
2302
  if 'limit' in local_var_params:
2178
2303
  query_params.append(('limit', local_var_params['limit']))
2179
- if 'name' in local_var_params:
2180
- query_params.append(('name', local_var_params['name']))
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']))
2181
2310
 
2182
2311
  header_params = {}
2183
2312
  if 'x_language' in local_var_params:
@@ -2207,31 +2336,31 @@ class DrsAsyncClient(Client):
2207
2336
 
2208
2337
  return http_info
2209
2338
 
2210
- def list_jobs_async(self, request):
2211
- """查询任务列表
2339
+ def list_db_objects_async(self, request):
2340
+ """查询数据库对象信息
2212
2341
 
2213
- 查询租户任务列表,可以根据企业项目,引擎类型,网络类型,任务状态,任务名称,任务ID进行查询。
2342
+ 查询数据库对象信息。
2214
2343
 
2215
2344
  Please refer to HUAWEI cloud API Explorer for details.
2216
2345
 
2217
2346
 
2218
- :param request: Request instance for ListJobs
2219
- :type request: :class:`huaweicloudsdkdrs.v5.ListJobsRequest`
2220
- :rtype: :class:`huaweicloudsdkdrs.v5.ListJobsResponse`
2347
+ :param request: Request instance for ListDbObjects
2348
+ :type request: :class:`huaweicloudsdkdrs.v5.ListDbObjectsRequest`
2349
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListDbObjectsResponse`
2221
2350
  """
2222
- http_info = self._list_jobs_http_info(request)
2351
+ http_info = self._list_db_objects_http_info(request)
2223
2352
  return self._call_api(**http_info)
2224
2353
 
2225
- def list_jobs_async_invoker(self, request):
2226
- http_info = self._list_jobs_http_info(request)
2354
+ def list_db_objects_async_invoker(self, request):
2355
+ http_info = self._list_db_objects_http_info(request)
2227
2356
  return AsyncInvoker(self, http_info)
2228
2357
 
2229
- def _list_jobs_http_info(self, request):
2358
+ def _list_db_objects_http_info(self, request):
2230
2359
  http_info = {
2231
2360
  "method": "GET",
2232
- "resource_path": "/v5/{project_id}/jobs",
2361
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-objects",
2233
2362
  "request_type": request.__class__.__name__,
2234
- "response_type": "ListJobsResponse"
2363
+ "response_type": "ListDbObjectsResponse"
2235
2364
  }
2236
2365
 
2237
2366
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2241,33 +2370,19 @@ class DrsAsyncClient(Client):
2241
2370
  collection_formats = {}
2242
2371
 
2243
2372
  path_params = {}
2373
+ if 'job_id' in local_var_params:
2374
+ path_params['job_id'] = local_var_params['job_id']
2244
2375
 
2245
2376
  query_params = []
2246
- if 'job_type' in local_var_params:
2247
- query_params.append(('job_type', local_var_params['job_type']))
2248
- if 'name' in local_var_params:
2249
- query_params.append(('name', local_var_params['name']))
2250
- if 'status' in local_var_params:
2251
- query_params.append(('status', local_var_params['status']))
2252
- if 'engine_type' in local_var_params:
2253
- query_params.append(('engine_type', local_var_params['engine_type']))
2254
- if 'net_type' in local_var_params:
2255
- query_params.append(('net_type', local_var_params['net_type']))
2256
- if 'enterprise_project_id' in local_var_params:
2257
- query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
2258
2377
  if 'offset' in local_var_params:
2259
2378
  query_params.append(('offset', local_var_params['offset']))
2260
2379
  if 'limit' in local_var_params:
2261
2380
  query_params.append(('limit', local_var_params['limit']))
2262
- if 'sort_key' in local_var_params:
2263
- query_params.append(('sort_key', local_var_params['sort_key']))
2264
- if 'sort_dir' in local_var_params:
2265
- query_params.append(('sort_dir', local_var_params['sort_dir']))
2266
- if 'instance_ids' in local_var_params:
2267
- query_params.append(('instance_ids', local_var_params['instance_ids']))
2268
- collection_formats['instance_ids'] = 'csv'
2269
- if 'instance_ip' in local_var_params:
2270
- query_params.append(('instance_ip', local_var_params['instance_ip']))
2381
+ if 'type' in local_var_params:
2382
+ query_params.append(('type', local_var_params['type']))
2383
+ if 'db_names' in local_var_params:
2384
+ query_params.append(('db_names', local_var_params['db_names']))
2385
+ collection_formats['db_names'] = 'csv'
2271
2386
 
2272
2387
  header_params = {}
2273
2388
  if 'x_language' in local_var_params:
@@ -2297,31 +2412,31 @@ class DrsAsyncClient(Client):
2297
2412
 
2298
2413
  return http_info
2299
2414
 
2300
- def list_links_async(self, request):
2301
- """查询可用链路信息
2415
+ def list_instance_by_tags_async(self, request):
2416
+ """查询资源实例列表
2302
2417
 
2303
- 根据参数不同,可查询实时迁移、实时同步、实时灾备等可用链路信息。
2418
+ 查询资源实例列表。
2304
2419
 
2305
2420
  Please refer to HUAWEI cloud API Explorer for details.
2306
2421
 
2307
2422
 
2308
- :param request: Request instance for ListLinks
2309
- :type request: :class:`huaweicloudsdkdrs.v5.ListLinksRequest`
2310
- :rtype: :class:`huaweicloudsdkdrs.v5.ListLinksResponse`
2423
+ :param request: Request instance for ListInstanceByTags
2424
+ :type request: :class:`huaweicloudsdkdrs.v5.ListInstanceByTagsRequest`
2425
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListInstanceByTagsResponse`
2311
2426
  """
2312
- http_info = self._list_links_http_info(request)
2427
+ http_info = self._list_instance_by_tags_http_info(request)
2313
2428
  return self._call_api(**http_info)
2314
2429
 
2315
- def list_links_async_invoker(self, request):
2316
- http_info = self._list_links_http_info(request)
2430
+ def list_instance_by_tags_async_invoker(self, request):
2431
+ http_info = self._list_instance_by_tags_http_info(request)
2317
2432
  return AsyncInvoker(self, http_info)
2318
2433
 
2319
- def _list_links_http_info(self, request):
2434
+ def _list_instance_by_tags_http_info(self, request):
2320
2435
  http_info = {
2321
- "method": "GET",
2322
- "resource_path": "/v5/{project_id}/links",
2436
+ "method": "POST",
2437
+ "resource_path": "/v5/{project_id}/{resource_type}/resource-instances/filter",
2323
2438
  "request_type": request.__class__.__name__,
2324
- "response_type": "ListLinksResponse"
2439
+ "response_type": "ListInstanceByTagsResponse"
2325
2440
  }
2326
2441
 
2327
2442
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2331,14 +2446,14 @@ class DrsAsyncClient(Client):
2331
2446
  collection_formats = {}
2332
2447
 
2333
2448
  path_params = {}
2449
+ if 'resource_type' in local_var_params:
2450
+ path_params['resource_type'] = local_var_params['resource_type']
2334
2451
 
2335
2452
  query_params = []
2336
- if 'job_type' in local_var_params:
2337
- query_params.append(('job_type', local_var_params['job_type']))
2338
- if 'offset' in local_var_params:
2339
- query_params.append(('offset', local_var_params['offset']))
2340
2453
  if 'limit' in local_var_params:
2341
2454
  query_params.append(('limit', local_var_params['limit']))
2455
+ if 'offset' in local_var_params:
2456
+ query_params.append(('offset', local_var_params['offset']))
2342
2457
 
2343
2458
  header_params = {}
2344
2459
  if 'x_language' in local_var_params:
@@ -2347,6 +2462,8 @@ class DrsAsyncClient(Client):
2347
2462
  form_params = {}
2348
2463
 
2349
2464
  body = None
2465
+ if 'body' in local_var_params:
2466
+ body = local_var_params['body']
2350
2467
  if isinstance(request, SdkStreamRequest):
2351
2468
  body = request.get_file_stream()
2352
2469
 
@@ -2368,31 +2485,31 @@ class DrsAsyncClient(Client):
2368
2485
 
2369
2486
  return http_info
2370
2487
 
2371
- def list_project_tags_async(self, request):
2372
- """查询项目标签
2488
+ def list_instance_tags_async(self, request):
2489
+ """查询资源标签
2373
2490
 
2374
- 查询指定project ID下不同任务类型的所有标签集合。
2491
+ 查询指定实例的标签信息。
2375
2492
 
2376
2493
  Please refer to HUAWEI cloud API Explorer for details.
2377
2494
 
2378
2495
 
2379
- :param request: Request instance for ListProjectTags
2380
- :type request: :class:`huaweicloudsdkdrs.v5.ListProjectTagsRequest`
2381
- :rtype: :class:`huaweicloudsdkdrs.v5.ListProjectTagsResponse`
2496
+ :param request: Request instance for ListInstanceTags
2497
+ :type request: :class:`huaweicloudsdkdrs.v5.ListInstanceTagsRequest`
2498
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListInstanceTagsResponse`
2382
2499
  """
2383
- http_info = self._list_project_tags_http_info(request)
2500
+ http_info = self._list_instance_tags_http_info(request)
2384
2501
  return self._call_api(**http_info)
2385
2502
 
2386
- def list_project_tags_async_invoker(self, request):
2387
- http_info = self._list_project_tags_http_info(request)
2503
+ def list_instance_tags_async_invoker(self, request):
2504
+ http_info = self._list_instance_tags_http_info(request)
2388
2505
  return AsyncInvoker(self, http_info)
2389
2506
 
2390
- def _list_project_tags_http_info(self, request):
2507
+ def _list_instance_tags_http_info(self, request):
2391
2508
  http_info = {
2392
2509
  "method": "GET",
2393
- "resource_path": "/v5/{project_id}/jobs/{resource_type}/tags",
2510
+ "resource_path": "/v5/{project_id}/{resource_type}/{resource_id}/tags",
2394
2511
  "request_type": request.__class__.__name__,
2395
- "response_type": "ListProjectTagsResponse"
2512
+ "response_type": "ListInstanceTagsResponse"
2396
2513
  }
2397
2514
 
2398
2515
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2404,6 +2521,8 @@ class DrsAsyncClient(Client):
2404
2521
  path_params = {}
2405
2522
  if 'resource_type' in local_var_params:
2406
2523
  path_params['resource_type'] = local_var_params['resource_type']
2524
+ if 'resource_id' in local_var_params:
2525
+ path_params['resource_id'] = local_var_params['resource_id']
2407
2526
 
2408
2527
  query_params = []
2409
2528
 
@@ -2435,31 +2554,31 @@ class DrsAsyncClient(Client):
2435
2554
 
2436
2555
  return http_info
2437
2556
 
2438
- def list_tags_async(self, request):
2439
- """查询项目标签
2557
+ def list_jdbc_drivers_async(self, request):
2558
+ """查询驱动文件列表(不再推广)
2440
2559
 
2441
- 查询租户在指定Project中实例类型的所有资源标签集合。
2560
+ 查询驱动文件列表。
2442
2561
 
2443
2562
  Please refer to HUAWEI cloud API Explorer for details.
2444
2563
 
2445
2564
 
2446
- :param request: Request instance for ListTags
2447
- :type request: :class:`huaweicloudsdkdrs.v5.ListTagsRequest`
2448
- :rtype: :class:`huaweicloudsdkdrs.v5.ListTagsResponse`
2565
+ :param request: Request instance for ListJdbcDrivers
2566
+ :type request: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversRequest`
2567
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListJdbcDriversResponse`
2449
2568
  """
2450
- http_info = self._list_tags_http_info(request)
2569
+ http_info = self._list_jdbc_drivers_http_info(request)
2451
2570
  return self._call_api(**http_info)
2452
2571
 
2453
- def list_tags_async_invoker(self, request):
2454
- http_info = self._list_tags_http_info(request)
2572
+ def list_jdbc_drivers_async_invoker(self, request):
2573
+ http_info = self._list_jdbc_drivers_http_info(request)
2455
2574
  return AsyncInvoker(self, http_info)
2456
2575
 
2457
- def _list_tags_http_info(self, request):
2576
+ def _list_jdbc_drivers_http_info(self, request):
2458
2577
  http_info = {
2459
2578
  "method": "GET",
2460
- "resource_path": "/v5/{project_id}/{resource_type}/tags",
2579
+ "resource_path": "/v5/{project_id}/jdbc-drivers",
2461
2580
  "request_type": request.__class__.__name__,
2462
- "response_type": "ListTagsResponse"
2581
+ "response_type": "ListJdbcDriversResponse"
2463
2582
  }
2464
2583
 
2465
2584
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2469,10 +2588,12 @@ class DrsAsyncClient(Client):
2469
2588
  collection_formats = {}
2470
2589
 
2471
2590
  path_params = {}
2472
- if 'resource_type' in local_var_params:
2473
- path_params['resource_type'] = local_var_params['resource_type']
2474
2591
 
2475
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']))
2476
2597
 
2477
2598
  header_params = {}
2478
2599
  if 'x_language' in local_var_params:
@@ -2502,31 +2623,31 @@ class DrsAsyncClient(Client):
2502
2623
 
2503
2624
  return http_info
2504
2625
 
2505
- def show_actions_async(self, request):
2506
- """获取指定任务操作信息
2626
+ def list_job_ddls_async(self, request):
2627
+ """查询增量DDL列表
2507
2628
 
2508
- 获取指定任务允许、不允许、当前操作信息。
2629
+ 查询增量DDL列表,可根据status查询
2509
2630
 
2510
2631
  Please refer to HUAWEI cloud API Explorer for details.
2511
2632
 
2512
2633
 
2513
- :param request: Request instance for ShowActions
2514
- :type request: :class:`huaweicloudsdkdrs.v5.ShowActionsRequest`
2515
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowActionsResponse`
2634
+ :param request: Request instance for ListJobDdls
2635
+ :type request: :class:`huaweicloudsdkdrs.v5.ListJobDdlsRequest`
2636
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListJobDdlsResponse`
2516
2637
  """
2517
- http_info = self._show_actions_http_info(request)
2638
+ http_info = self._list_job_ddls_http_info(request)
2518
2639
  return self._call_api(**http_info)
2519
2640
 
2520
- def show_actions_async_invoker(self, request):
2521
- http_info = self._show_actions_http_info(request)
2641
+ def list_job_ddls_async_invoker(self, request):
2642
+ http_info = self._list_job_ddls_http_info(request)
2522
2643
  return AsyncInvoker(self, http_info)
2523
2644
 
2524
- def _show_actions_http_info(self, request):
2645
+ def _list_job_ddls_http_info(self, request):
2525
2646
  http_info = {
2526
2647
  "method": "GET",
2527
- "resource_path": "/v5/{project_id}/jobs/{job_id}/actions",
2648
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/ddl",
2528
2649
  "request_type": request.__class__.__name__,
2529
- "response_type": "ShowActionsResponse"
2650
+ "response_type": "ListJobDdlsResponse"
2530
2651
  }
2531
2652
 
2532
2653
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2540,6 +2661,16 @@ class DrsAsyncClient(Client):
2540
2661
  path_params['job_id'] = local_var_params['job_id']
2541
2662
 
2542
2663
  query_params = []
2664
+ if 'offset' in local_var_params:
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']))
2543
2674
 
2544
2675
  header_params = {}
2545
2676
  if 'x_language' in local_var_params:
@@ -2569,31 +2700,32 @@ class DrsAsyncClient(Client):
2569
2700
 
2570
2701
  return http_info
2571
2702
 
2572
- def show_column_info_result_async(self, request):
2573
- """获取指定数据库表列信息
2703
+ def list_job_history_parameters_async(self, request):
2704
+ """查询任务的参数配置修改历史
2574
2705
 
2575
- 获取指定数据库表列信息
2706
+ 查询任务的参数配置修改历史
2707
+ - 仅engine_type为mysql、mysql-to-pgl、mysql-to-gaussdbv5、mysql-to-gaussdbv5ha、mysql-to-dws、mysql-to-taurus、mysql-to-kafka、mysql-to-elasticsearch、mysql-to-oracle且任务状态只能为配置中、全量中、增量中、全量失败、增量失败、暂停中的实时同步任务支持。
2576
2708
 
2577
2709
  Please refer to HUAWEI cloud API Explorer for details.
2578
2710
 
2579
2711
 
2580
- :param request: Request instance for ShowColumnInfoResult
2581
- :type request: :class:`huaweicloudsdkdrs.v5.ShowColumnInfoResultRequest`
2582
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowColumnInfoResultResponse`
2712
+ :param request: Request instance for ListJobHistoryParameters
2713
+ :type request: :class:`huaweicloudsdkdrs.v5.ListJobHistoryParametersRequest`
2714
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListJobHistoryParametersResponse`
2583
2715
  """
2584
- http_info = self._show_column_info_result_http_info(request)
2716
+ http_info = self._list_job_history_parameters_http_info(request)
2585
2717
  return self._call_api(**http_info)
2586
2718
 
2587
- def show_column_info_result_async_invoker(self, request):
2588
- http_info = self._show_column_info_result_http_info(request)
2719
+ def list_job_history_parameters_async_invoker(self, request):
2720
+ http_info = self._list_job_history_parameters_http_info(request)
2589
2721
  return AsyncInvoker(self, http_info)
2590
2722
 
2591
- def _show_column_info_result_http_info(self, request):
2723
+ def _list_job_history_parameters_http_info(self, request):
2592
2724
  http_info = {
2593
2725
  "method": "GET",
2594
- "resource_path": "/v5/{project_id}/job/{job_id}/columns",
2726
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/configuration-histories",
2595
2727
  "request_type": request.__class__.__name__,
2596
- "response_type": "ShowColumnInfoResultResponse"
2728
+ "response_type": "ListJobHistoryParametersResponse"
2597
2729
  }
2598
2730
 
2599
2731
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2607,12 +2739,16 @@ class DrsAsyncClient(Client):
2607
2739
  path_params['job_id'] = local_var_params['job_id']
2608
2740
 
2609
2741
  query_params = []
2610
- if 'query_id' in local_var_params:
2611
- query_params.append(('query_id', local_var_params['query_id']))
2612
2742
  if 'offset' in local_var_params:
2613
2743
  query_params.append(('offset', local_var_params['offset']))
2614
2744
  if 'limit' in local_var_params:
2615
2745
  query_params.append(('limit', local_var_params['limit']))
2746
+ if 'begin_time' in local_var_params:
2747
+ query_params.append(('begin_time', local_var_params['begin_time']))
2748
+ if 'end_time' in local_var_params:
2749
+ query_params.append(('end_time', local_var_params['end_time']))
2750
+ if 'name' in local_var_params:
2751
+ query_params.append(('name', local_var_params['name']))
2616
2752
 
2617
2753
  header_params = {}
2618
2754
  if 'x_language' in local_var_params:
@@ -2642,31 +2778,1397 @@ class DrsAsyncClient(Client):
2642
2778
 
2643
2779
  return http_info
2644
2780
 
2645
- def show_compare_policy_async(self, request):
2646
- """查询对比策略
2781
+ def list_job_parameters_async(self, request):
2782
+ """查询任务参数配置列表
2647
2783
 
2648
- 查询对比策略。
2784
+ 查询任务的参数配置列表信息
2785
+ - 仅engine_type为mysql、mysql-to-pgl、mysql-to-gaussdbv5、mysql-to-gaussdbv5ha、mysql-to-dws、mysql-to-taurus、mysql-to-kafka、mysql-to-elasticsearch、mysql-to-oracle且任务状态只能为配置中、全量中、增量中、全量失败、增量失败、暂停中的实时同步任务支持。
2649
2786
 
2650
2787
  Please refer to HUAWEI cloud API Explorer for details.
2651
2788
 
2652
2789
 
2653
- :param request: Request instance for ShowComparePolicy
2654
- :type request: :class:`huaweicloudsdkdrs.v5.ShowComparePolicyRequest`
2655
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowComparePolicyResponse`
2790
+ :param request: Request instance for ListJobParameters
2791
+ :type request: :class:`huaweicloudsdkdrs.v5.ListJobParametersRequest`
2792
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListJobParametersResponse`
2656
2793
  """
2657
- http_info = self._show_compare_policy_http_info(request)
2794
+ http_info = self._list_job_parameters_http_info(request)
2658
2795
  return self._call_api(**http_info)
2659
2796
 
2660
- def show_compare_policy_async_invoker(self, request):
2661
- http_info = self._show_compare_policy_http_info(request)
2797
+ def list_job_parameters_async_invoker(self, request):
2798
+ http_info = self._list_job_parameters_http_info(request)
2799
+ return AsyncInvoker(self, http_info)
2800
+
2801
+ def _list_job_parameters_http_info(self, request):
2802
+ http_info = {
2803
+ "method": "GET",
2804
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/configurations",
2805
+ "request_type": request.__class__.__name__,
2806
+ "response_type": "ListJobParametersResponse"
2807
+ }
2808
+
2809
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2810
+
2811
+ cname = None
2812
+
2813
+ collection_formats = {}
2814
+
2815
+ path_params = {}
2816
+ if 'job_id' in local_var_params:
2817
+ path_params['job_id'] = local_var_params['job_id']
2818
+
2819
+ query_params = []
2820
+ if 'offset' in local_var_params:
2821
+ query_params.append(('offset', local_var_params['offset']))
2822
+ if 'limit' in local_var_params:
2823
+ query_params.append(('limit', local_var_params['limit']))
2824
+ if 'name' in local_var_params:
2825
+ query_params.append(('name', local_var_params['name']))
2826
+
2827
+ header_params = {}
2828
+ if 'x_language' in local_var_params:
2829
+ header_params['X-Language'] = local_var_params['x_language']
2830
+
2831
+ form_params = {}
2832
+
2833
+ body = None
2834
+ if isinstance(request, SdkStreamRequest):
2835
+ body = request.get_file_stream()
2836
+
2837
+ response_headers = []
2838
+
2839
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2840
+ ['application/json'])
2841
+
2842
+ auth_settings = []
2843
+
2844
+ http_info["cname"] = cname
2845
+ http_info["collection_formats"] = collection_formats
2846
+ http_info["path_params"] = path_params
2847
+ http_info["query_params"] = query_params
2848
+ http_info["header_params"] = header_params
2849
+ http_info["post_params"] = form_params
2850
+ http_info["body"] = body
2851
+ http_info["response_headers"] = response_headers
2852
+
2853
+ return http_info
2854
+
2855
+ def list_jobs_async(self, request):
2856
+ """查询任务列表
2857
+
2858
+ 查询租户任务列表,可以根据企业项目,引擎类型,网络类型,任务状态,任务名称,任务ID进行查询。
2859
+
2860
+ Please refer to HUAWEI cloud API Explorer for details.
2861
+
2862
+
2863
+ :param request: Request instance for ListJobs
2864
+ :type request: :class:`huaweicloudsdkdrs.v5.ListJobsRequest`
2865
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListJobsResponse`
2866
+ """
2867
+ http_info = self._list_jobs_http_info(request)
2868
+ return self._call_api(**http_info)
2869
+
2870
+ def list_jobs_async_invoker(self, request):
2871
+ http_info = self._list_jobs_http_info(request)
2872
+ return AsyncInvoker(self, http_info)
2873
+
2874
+ def _list_jobs_http_info(self, request):
2875
+ http_info = {
2876
+ "method": "GET",
2877
+ "resource_path": "/v5/{project_id}/jobs",
2878
+ "request_type": request.__class__.__name__,
2879
+ "response_type": "ListJobsResponse"
2880
+ }
2881
+
2882
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2883
+
2884
+ cname = None
2885
+
2886
+ collection_formats = {}
2887
+
2888
+ path_params = {}
2889
+
2890
+ query_params = []
2891
+ if 'job_type' in local_var_params:
2892
+ query_params.append(('job_type', local_var_params['job_type']))
2893
+ if 'name' in local_var_params:
2894
+ query_params.append(('name', local_var_params['name']))
2895
+ if 'status' in local_var_params:
2896
+ query_params.append(('status', local_var_params['status']))
2897
+ if 'engine_type' in local_var_params:
2898
+ query_params.append(('engine_type', local_var_params['engine_type']))
2899
+ if 'net_type' in local_var_params:
2900
+ query_params.append(('net_type', local_var_params['net_type']))
2901
+ if 'enterprise_project_id' in local_var_params:
2902
+ query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
2903
+ if 'offset' in local_var_params:
2904
+ query_params.append(('offset', local_var_params['offset']))
2905
+ if 'limit' in local_var_params:
2906
+ query_params.append(('limit', local_var_params['limit']))
2907
+ if 'sort_key' in local_var_params:
2908
+ query_params.append(('sort_key', local_var_params['sort_key']))
2909
+ if 'sort_dir' in local_var_params:
2910
+ query_params.append(('sort_dir', local_var_params['sort_dir']))
2911
+ if 'instance_ids' in local_var_params:
2912
+ query_params.append(('instance_ids', local_var_params['instance_ids']))
2913
+ collection_formats['instance_ids'] = 'csv'
2914
+ if 'instance_ip' in local_var_params:
2915
+ query_params.append(('instance_ip', local_var_params['instance_ip']))
2916
+
2917
+ header_params = {}
2918
+ if 'x_language' in local_var_params:
2919
+ header_params['X-Language'] = local_var_params['x_language']
2920
+
2921
+ form_params = {}
2922
+
2923
+ body = None
2924
+ if isinstance(request, SdkStreamRequest):
2925
+ body = request.get_file_stream()
2926
+
2927
+ response_headers = []
2928
+
2929
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2930
+ ['application/json'])
2931
+
2932
+ auth_settings = []
2933
+
2934
+ http_info["cname"] = cname
2935
+ http_info["collection_formats"] = collection_formats
2936
+ http_info["path_params"] = path_params
2937
+ http_info["query_params"] = query_params
2938
+ http_info["header_params"] = header_params
2939
+ http_info["post_params"] = form_params
2940
+ http_info["body"] = body
2941
+ http_info["response_headers"] = response_headers
2942
+
2943
+ return http_info
2944
+
2945
+ def list_links_async(self, request):
2946
+ """查询可用链路信息
2947
+
2948
+ 根据参数不同,可查询实时迁移、实时同步、实时灾备等可用链路信息。
2949
+
2950
+ Please refer to HUAWEI cloud API Explorer for details.
2951
+
2952
+
2953
+ :param request: Request instance for ListLinks
2954
+ :type request: :class:`huaweicloudsdkdrs.v5.ListLinksRequest`
2955
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListLinksResponse`
2956
+ """
2957
+ http_info = self._list_links_http_info(request)
2958
+ return self._call_api(**http_info)
2959
+
2960
+ def list_links_async_invoker(self, request):
2961
+ http_info = self._list_links_http_info(request)
2962
+ return AsyncInvoker(self, http_info)
2963
+
2964
+ def _list_links_http_info(self, request):
2965
+ http_info = {
2966
+ "method": "GET",
2967
+ "resource_path": "/v5/{project_id}/links",
2968
+ "request_type": request.__class__.__name__,
2969
+ "response_type": "ListLinksResponse"
2970
+ }
2971
+
2972
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2973
+
2974
+ cname = None
2975
+
2976
+ collection_formats = {}
2977
+
2978
+ path_params = {}
2979
+
2980
+ query_params = []
2981
+ if 'job_type' in local_var_params:
2982
+ query_params.append(('job_type', local_var_params['job_type']))
2983
+ if 'offset' in local_var_params:
2984
+ query_params.append(('offset', local_var_params['offset']))
2985
+ if 'limit' in local_var_params:
2986
+ query_params.append(('limit', local_var_params['limit']))
2987
+
2988
+ header_params = {}
2989
+ if 'x_language' in local_var_params:
2990
+ header_params['X-Language'] = local_var_params['x_language']
2991
+
2992
+ form_params = {}
2993
+
2994
+ body = None
2995
+ if isinstance(request, SdkStreamRequest):
2996
+ body = request.get_file_stream()
2997
+
2998
+ response_headers = []
2999
+
3000
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3001
+ ['application/json'])
3002
+
3003
+ auth_settings = []
3004
+
3005
+ http_info["cname"] = cname
3006
+ http_info["collection_formats"] = collection_formats
3007
+ http_info["path_params"] = path_params
3008
+ http_info["query_params"] = query_params
3009
+ http_info["header_params"] = header_params
3010
+ http_info["post_params"] = form_params
3011
+ http_info["body"] = body
3012
+ http_info["response_headers"] = response_headers
3013
+
3014
+ return http_info
3015
+
3016
+ def list_project_tags_async(self, request):
3017
+ """查询项目标签
3018
+
3019
+ 查询指定project ID下不同任务类型的所有标签集合。
3020
+
3021
+ Please refer to HUAWEI cloud API Explorer for details.
3022
+
3023
+
3024
+ :param request: Request instance for ListProjectTags
3025
+ :type request: :class:`huaweicloudsdkdrs.v5.ListProjectTagsRequest`
3026
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListProjectTagsResponse`
3027
+ """
3028
+ http_info = self._list_project_tags_http_info(request)
3029
+ return self._call_api(**http_info)
3030
+
3031
+ def list_project_tags_async_invoker(self, request):
3032
+ http_info = self._list_project_tags_http_info(request)
3033
+ return AsyncInvoker(self, http_info)
3034
+
3035
+ def _list_project_tags_http_info(self, request):
3036
+ http_info = {
3037
+ "method": "GET",
3038
+ "resource_path": "/v5/{project_id}/jobs/{resource_type}/tags",
3039
+ "request_type": request.__class__.__name__,
3040
+ "response_type": "ListProjectTagsResponse"
3041
+ }
3042
+
3043
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3044
+
3045
+ cname = None
3046
+
3047
+ collection_formats = {}
3048
+
3049
+ path_params = {}
3050
+ if 'resource_type' in local_var_params:
3051
+ path_params['resource_type'] = local_var_params['resource_type']
3052
+
3053
+ query_params = []
3054
+
3055
+ header_params = {}
3056
+ if 'x_language' in local_var_params:
3057
+ header_params['X-Language'] = local_var_params['x_language']
3058
+
3059
+ form_params = {}
3060
+
3061
+ body = None
3062
+ if isinstance(request, SdkStreamRequest):
3063
+ body = request.get_file_stream()
3064
+
3065
+ response_headers = []
3066
+
3067
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3068
+ ['application/json'])
3069
+
3070
+ auth_settings = []
3071
+
3072
+ http_info["cname"] = cname
3073
+ http_info["collection_formats"] = collection_formats
3074
+ http_info["path_params"] = path_params
3075
+ http_info["query_params"] = query_params
3076
+ http_info["header_params"] = header_params
3077
+ http_info["post_params"] = form_params
3078
+ http_info["body"] = body
3079
+ http_info["response_headers"] = response_headers
3080
+
3081
+ return http_info
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
+
3173
+ def list_tags_async(self, request):
3174
+ """查询项目标签
3175
+
3176
+ 查询租户在指定Project中实例类型的所有资源标签集合。
3177
+
3178
+ Please refer to HUAWEI cloud API Explorer for details.
3179
+
3180
+
3181
+ :param request: Request instance for ListTags
3182
+ :type request: :class:`huaweicloudsdkdrs.v5.ListTagsRequest`
3183
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListTagsResponse`
3184
+ """
3185
+ http_info = self._list_tags_http_info(request)
3186
+ return self._call_api(**http_info)
3187
+
3188
+ def list_tags_async_invoker(self, request):
3189
+ http_info = self._list_tags_http_info(request)
3190
+ return AsyncInvoker(self, http_info)
3191
+
3192
+ def _list_tags_http_info(self, request):
3193
+ http_info = {
3194
+ "method": "GET",
3195
+ "resource_path": "/v5/{project_id}/{resource_type}/tags",
3196
+ "request_type": request.__class__.__name__,
3197
+ "response_type": "ListTagsResponse"
3198
+ }
3199
+
3200
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3201
+
3202
+ cname = None
3203
+
3204
+ collection_formats = {}
3205
+
3206
+ path_params = {}
3207
+ if 'resource_type' in local_var_params:
3208
+ path_params['resource_type'] = local_var_params['resource_type']
3209
+
3210
+ query_params = []
3211
+
3212
+ header_params = {}
3213
+ if 'x_language' in local_var_params:
3214
+ header_params['X-Language'] = local_var_params['x_language']
3215
+
3216
+ form_params = {}
3217
+
3218
+ body = None
3219
+ if isinstance(request, SdkStreamRequest):
3220
+ body = request.get_file_stream()
3221
+
3222
+ response_headers = []
3223
+
3224
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3225
+ ['application/json'])
3226
+
3227
+ auth_settings = []
3228
+
3229
+ http_info["cname"] = cname
3230
+ http_info["collection_formats"] = collection_formats
3231
+ http_info["path_params"] = path_params
3232
+ http_info["query_params"] = query_params
3233
+ http_info["header_params"] = header_params
3234
+ http_info["post_params"] = form_params
3235
+ http_info["body"] = body
3236
+ http_info["response_headers"] = response_headers
3237
+
3238
+ return http_info
3239
+
3240
+ def list_user_jdbc_drivers_async(self, request):
3241
+ """查询驱动文件列表
3242
+
3243
+ 查询驱动文件列表。
3244
+
3245
+ Please refer to HUAWEI cloud API Explorer for details.
3246
+
3247
+
3248
+ :param request: Request instance for ListUserJdbcDrivers
3249
+ :type request: :class:`huaweicloudsdkdrs.v5.ListUserJdbcDriversRequest`
3250
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListUserJdbcDriversResponse`
3251
+ """
3252
+ http_info = self._list_user_jdbc_drivers_http_info(request)
3253
+ return self._call_api(**http_info)
3254
+
3255
+ def list_user_jdbc_drivers_async_invoker(self, request):
3256
+ http_info = self._list_user_jdbc_drivers_http_info(request)
3257
+ return AsyncInvoker(self, http_info)
3258
+
3259
+ def _list_user_jdbc_drivers_http_info(self, request):
3260
+ http_info = {
3261
+ "method": "GET",
3262
+ "resource_path": "/v5/{project_id}/drivers",
3263
+ "request_type": request.__class__.__name__,
3264
+ "response_type": "ListUserJdbcDriversResponse"
3265
+ }
3266
+
3267
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3268
+
3269
+ cname = None
3270
+
3271
+ collection_formats = {}
3272
+
3273
+ path_params = {}
3274
+
3275
+ query_params = []
3276
+ if 'limit' in local_var_params:
3277
+ query_params.append(('limit', local_var_params['limit']))
3278
+ if 'offset' in local_var_params:
3279
+ query_params.append(('offset', local_var_params['offset']))
3280
+ if 'driver_type' in local_var_params:
3281
+ query_params.append(('driver_type', local_var_params['driver_type']))
3282
+
3283
+ header_params = {}
3284
+ if 'x_language' in local_var_params:
3285
+ header_params['X-Language'] = local_var_params['x_language']
3286
+
3287
+ form_params = {}
3288
+
3289
+ body = None
3290
+ if isinstance(request, SdkStreamRequest):
3291
+ body = request.get_file_stream()
3292
+
3293
+ response_headers = []
3294
+
3295
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3296
+ ['application/json'])
3297
+
3298
+ auth_settings = []
3299
+
3300
+ http_info["cname"] = cname
3301
+ http_info["collection_formats"] = collection_formats
3302
+ http_info["path_params"] = path_params
3303
+ http_info["query_params"] = query_params
3304
+ http_info["header_params"] = header_params
3305
+ http_info["post_params"] = form_params
3306
+ http_info["body"] = body
3307
+ http_info["response_headers"] = response_headers
3308
+
3309
+ return http_info
3310
+
3311
+ def lists_agency_permissions_async(self, request):
3312
+ """查询委托的权限列表
3313
+
3314
+ 根据源库类型,目标库类型,是否自建,获取委托所需要的权限
3315
+
3316
+ Please refer to HUAWEI cloud API Explorer for details.
3317
+
3318
+
3319
+ :param request: Request instance for ListsAgencyPermissions
3320
+ :type request: :class:`huaweicloudsdkdrs.v5.ListsAgencyPermissionsRequest`
3321
+ :rtype: :class:`huaweicloudsdkdrs.v5.ListsAgencyPermissionsResponse`
3322
+ """
3323
+ http_info = self._lists_agency_permissions_http_info(request)
3324
+ return self._call_api(**http_info)
3325
+
3326
+ def lists_agency_permissions_async_invoker(self, request):
3327
+ http_info = self._lists_agency_permissions_http_info(request)
3328
+ return AsyncInvoker(self, http_info)
3329
+
3330
+ def _lists_agency_permissions_http_info(self, request):
3331
+ http_info = {
3332
+ "method": "GET",
3333
+ "resource_path": "/v5/{project_id}/agency/permissions",
3334
+ "request_type": request.__class__.__name__,
3335
+ "response_type": "ListsAgencyPermissionsResponse"
3336
+ }
3337
+
3338
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3339
+
3340
+ cname = None
3341
+
3342
+ collection_formats = {}
3343
+
3344
+ path_params = {}
3345
+
3346
+ query_params = []
3347
+ if 'source_type' in local_var_params:
3348
+ query_params.append(('source_type', local_var_params['source_type']))
3349
+ if 'target_type' in local_var_params:
3350
+ query_params.append(('target_type', local_var_params['target_type']))
3351
+ if 'is_non_dbs' in local_var_params:
3352
+ query_params.append(('is_non_dbs', local_var_params['is_non_dbs']))
3353
+
3354
+ header_params = {}
3355
+ if 'x_language' in local_var_params:
3356
+ header_params['X-Language'] = local_var_params['x_language']
3357
+
3358
+ form_params = {}
3359
+
3360
+ body = None
3361
+ if isinstance(request, SdkStreamRequest):
3362
+ body = request.get_file_stream()
3363
+
3364
+ response_headers = []
3365
+
3366
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3367
+ ['application/json'])
3368
+
3369
+ auth_settings = []
3370
+
3371
+ http_info["cname"] = cname
3372
+ http_info["collection_formats"] = collection_formats
3373
+ http_info["path_params"] = path_params
3374
+ http_info["query_params"] = query_params
3375
+ http_info["header_params"] = header_params
3376
+ http_info["post_params"] = form_params
3377
+ http_info["body"] = body
3378
+ http_info["response_headers"] = response_headers
3379
+
3380
+ return http_info
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
+
3451
+ def show_actions_async(self, request):
3452
+ """获取指定任务操作信息
3453
+
3454
+ 获取指定任务允许、不允许、当前操作信息。
3455
+
3456
+ Please refer to HUAWEI cloud API Explorer for details.
3457
+
3458
+
3459
+ :param request: Request instance for ShowActions
3460
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowActionsRequest`
3461
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowActionsResponse`
3462
+ """
3463
+ http_info = self._show_actions_http_info(request)
3464
+ return self._call_api(**http_info)
3465
+
3466
+ def show_actions_async_invoker(self, request):
3467
+ http_info = self._show_actions_http_info(request)
3468
+ return AsyncInvoker(self, http_info)
3469
+
3470
+ def _show_actions_http_info(self, request):
3471
+ http_info = {
3472
+ "method": "GET",
3473
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/actions",
3474
+ "request_type": request.__class__.__name__,
3475
+ "response_type": "ShowActionsResponse"
3476
+ }
3477
+
3478
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3479
+
3480
+ cname = None
3481
+
3482
+ collection_formats = {}
3483
+
3484
+ path_params = {}
3485
+ if 'job_id' in local_var_params:
3486
+ path_params['job_id'] = local_var_params['job_id']
3487
+
3488
+ query_params = []
3489
+
3490
+ header_params = {}
3491
+ if 'x_language' in local_var_params:
3492
+ header_params['X-Language'] = local_var_params['x_language']
3493
+
3494
+ form_params = {}
3495
+
3496
+ body = None
3497
+ if isinstance(request, SdkStreamRequest):
3498
+ body = request.get_file_stream()
3499
+
3500
+ response_headers = []
3501
+
3502
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3503
+ ['application/json'])
3504
+
3505
+ auth_settings = []
3506
+
3507
+ http_info["cname"] = cname
3508
+ http_info["collection_formats"] = collection_formats
3509
+ http_info["path_params"] = path_params
3510
+ http_info["query_params"] = query_params
3511
+ http_info["header_params"] = header_params
3512
+ http_info["post_params"] = form_params
3513
+ http_info["body"] = body
3514
+ http_info["response_headers"] = response_headers
3515
+
3516
+ return http_info
3517
+
3518
+ def show_agency_info_async(self, request):
3519
+ """查询委托权限详情
3520
+
3521
+ 查询委托权限详情
3522
+
3523
+ Please refer to HUAWEI cloud API Explorer for details.
3524
+
3525
+
3526
+ :param request: Request instance for ShowAgencyInfo
3527
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowAgencyInfoRequest`
3528
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowAgencyInfoResponse`
3529
+ """
3530
+ http_info = self._show_agency_info_http_info(request)
3531
+ return self._call_api(**http_info)
3532
+
3533
+ def show_agency_info_async_invoker(self, request):
3534
+ http_info = self._show_agency_info_http_info(request)
3535
+ return AsyncInvoker(self, http_info)
3536
+
3537
+ def _show_agency_info_http_info(self, request):
3538
+ http_info = {
3539
+ "method": "GET",
3540
+ "resource_path": "/v5/{project_id}/agency/{agency_name}",
3541
+ "request_type": request.__class__.__name__,
3542
+ "response_type": "ShowAgencyInfoResponse"
3543
+ }
3544
+
3545
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3546
+
3547
+ cname = None
3548
+
3549
+ collection_formats = {}
3550
+
3551
+ path_params = {}
3552
+ if 'agency_name' in local_var_params:
3553
+ path_params['agency_name'] = local_var_params['agency_name']
3554
+
3555
+ query_params = []
3556
+
3557
+ header_params = {}
3558
+ if 'x_language' in local_var_params:
3559
+ header_params['X-Language'] = local_var_params['x_language']
3560
+
3561
+ form_params = {}
3562
+
3563
+ body = None
3564
+ if isinstance(request, SdkStreamRequest):
3565
+ body = request.get_file_stream()
3566
+
3567
+ response_headers = []
3568
+
3569
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3570
+ ['application/json'])
3571
+
3572
+ auth_settings = []
3573
+
3574
+ http_info["cname"] = cname
3575
+ http_info["collection_formats"] = collection_formats
3576
+ http_info["path_params"] = path_params
3577
+ http_info["query_params"] = query_params
3578
+ http_info["header_params"] = header_params
3579
+ http_info["post_params"] = form_params
3580
+ http_info["body"] = body
3581
+ http_info["response_headers"] = response_headers
3582
+
3583
+ return http_info
3584
+
3585
+ def show_column_info_result_async(self, request):
3586
+ """获取指定数据库表列信息
3587
+
3588
+ 获取指定数据库表列信息
3589
+
3590
+ Please refer to HUAWEI cloud API Explorer for details.
3591
+
3592
+
3593
+ :param request: Request instance for ShowColumnInfoResult
3594
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowColumnInfoResultRequest`
3595
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowColumnInfoResultResponse`
3596
+ """
3597
+ http_info = self._show_column_info_result_http_info(request)
3598
+ return self._call_api(**http_info)
3599
+
3600
+ def show_column_info_result_async_invoker(self, request):
3601
+ http_info = self._show_column_info_result_http_info(request)
3602
+ return AsyncInvoker(self, http_info)
3603
+
3604
+ def _show_column_info_result_http_info(self, request):
3605
+ http_info = {
3606
+ "method": "GET",
3607
+ "resource_path": "/v5/{project_id}/job/{job_id}/columns",
3608
+ "request_type": request.__class__.__name__,
3609
+ "response_type": "ShowColumnInfoResultResponse"
3610
+ }
3611
+
3612
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3613
+
3614
+ cname = None
3615
+
3616
+ collection_formats = {}
3617
+
3618
+ path_params = {}
3619
+ if 'job_id' in local_var_params:
3620
+ path_params['job_id'] = local_var_params['job_id']
3621
+
3622
+ query_params = []
3623
+ if 'query_id' in local_var_params:
3624
+ query_params.append(('query_id', local_var_params['query_id']))
3625
+ if 'offset' in local_var_params:
3626
+ query_params.append(('offset', local_var_params['offset']))
3627
+ if 'limit' in local_var_params:
3628
+ query_params.append(('limit', local_var_params['limit']))
3629
+
3630
+ header_params = {}
3631
+ if 'x_language' in local_var_params:
3632
+ header_params['X-Language'] = local_var_params['x_language']
3633
+
3634
+ form_params = {}
3635
+
3636
+ body = None
3637
+ if isinstance(request, SdkStreamRequest):
3638
+ body = request.get_file_stream()
3639
+
3640
+ response_headers = []
3641
+
3642
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3643
+ ['application/json'])
3644
+
3645
+ auth_settings = []
3646
+
3647
+ http_info["cname"] = cname
3648
+ http_info["collection_formats"] = collection_formats
3649
+ http_info["path_params"] = path_params
3650
+ http_info["query_params"] = query_params
3651
+ http_info["header_params"] = header_params
3652
+ http_info["post_params"] = form_params
3653
+ http_info["body"] = body
3654
+ http_info["response_headers"] = response_headers
3655
+
3656
+ return http_info
3657
+
3658
+ def show_compare_policy_async(self, request):
3659
+ """查询对比策略
3660
+
3661
+ 查询对比策略。
3662
+
3663
+ Please refer to HUAWEI cloud API Explorer for details.
3664
+
3665
+
3666
+ :param request: Request instance for ShowComparePolicy
3667
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowComparePolicyRequest`
3668
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowComparePolicyResponse`
3669
+ """
3670
+ http_info = self._show_compare_policy_http_info(request)
3671
+ return self._call_api(**http_info)
3672
+
3673
+ def show_compare_policy_async_invoker(self, request):
3674
+ http_info = self._show_compare_policy_http_info(request)
3675
+ return AsyncInvoker(self, http_info)
3676
+
3677
+ def _show_compare_policy_http_info(self, request):
3678
+ http_info = {
3679
+ "method": "GET",
3680
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/compare-policy",
3681
+ "request_type": request.__class__.__name__,
3682
+ "response_type": "ShowComparePolicyResponse"
3683
+ }
3684
+
3685
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3686
+
3687
+ cname = None
3688
+
3689
+ collection_formats = {}
3690
+
3691
+ path_params = {}
3692
+ if 'job_id' in local_var_params:
3693
+ path_params['job_id'] = local_var_params['job_id']
3694
+
3695
+ query_params = []
3696
+
3697
+ header_params = {}
3698
+ if 'x_language' in local_var_params:
3699
+ header_params['X-Language'] = local_var_params['x_language']
3700
+
3701
+ form_params = {}
3702
+
3703
+ body = None
3704
+ if isinstance(request, SdkStreamRequest):
3705
+ body = request.get_file_stream()
3706
+
3707
+ response_headers = []
3708
+
3709
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3710
+ ['application/json'])
3711
+
3712
+ auth_settings = []
3713
+
3714
+ http_info["cname"] = cname
3715
+ http_info["collection_formats"] = collection_formats
3716
+ http_info["path_params"] = path_params
3717
+ http_info["query_params"] = query_params
3718
+ http_info["header_params"] = header_params
3719
+ http_info["post_params"] = form_params
3720
+ http_info["body"] = body
3721
+ http_info["response_headers"] = response_headers
3722
+
3723
+ return http_info
3724
+
3725
+ def show_data_filtering_result_async(self, request):
3726
+ """获取数据过滤校验结果
3727
+
3728
+ 获取数据过滤校验结果
3729
+
3730
+ Please refer to HUAWEI cloud API Explorer for details.
3731
+
3732
+
3733
+ :param request: Request instance for ShowDataFilteringResult
3734
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowDataFilteringResultRequest`
3735
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowDataFilteringResultResponse`
3736
+ """
3737
+ http_info = self._show_data_filtering_result_http_info(request)
3738
+ return self._call_api(**http_info)
3739
+
3740
+ def show_data_filtering_result_async_invoker(self, request):
3741
+ http_info = self._show_data_filtering_result_http_info(request)
3742
+ return AsyncInvoker(self, http_info)
3743
+
3744
+ def _show_data_filtering_result_http_info(self, request):
3745
+ http_info = {
3746
+ "method": "GET",
3747
+ "resource_path": "/v5/{project_id}/job/{job_id}/data-filtering/result",
3748
+ "request_type": request.__class__.__name__,
3749
+ "response_type": "ShowDataFilteringResultResponse"
3750
+ }
3751
+
3752
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3753
+
3754
+ cname = None
3755
+
3756
+ collection_formats = {}
3757
+
3758
+ path_params = {}
3759
+ if 'job_id' in local_var_params:
3760
+ path_params['job_id'] = local_var_params['job_id']
3761
+
3762
+ query_params = []
3763
+ if 'query_id' in local_var_params:
3764
+ query_params.append(('query_id', local_var_params['query_id']))
3765
+
3766
+ header_params = {}
3767
+ if 'x_language' in local_var_params:
3768
+ header_params['X-Language'] = local_var_params['x_language']
3769
+
3770
+ form_params = {}
3771
+
3772
+ body = None
3773
+ if isinstance(request, SdkStreamRequest):
3774
+ body = request.get_file_stream()
3775
+
3776
+ response_headers = []
3777
+
3778
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3779
+ ['application/json'])
3780
+
3781
+ auth_settings = []
3782
+
3783
+ http_info["cname"] = cname
3784
+ http_info["collection_formats"] = collection_formats
3785
+ http_info["path_params"] = path_params
3786
+ http_info["query_params"] = query_params
3787
+ http_info["header_params"] = header_params
3788
+ http_info["post_params"] = form_params
3789
+ http_info["body"] = body
3790
+ http_info["response_headers"] = response_headers
3791
+
3792
+ return http_info
3793
+
3794
+ def show_data_processing_rules_result_async(self, request):
3795
+ """获取指定任务数据加工规则更新结果
3796
+
3797
+ 获取指定任务数据加工规则更新结果
3798
+
3799
+ Please refer to HUAWEI cloud API Explorer for details.
3800
+
3801
+
3802
+ :param request: Request instance for ShowDataProcessingRulesResult
3803
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowDataProcessingRulesResultRequest`
3804
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowDataProcessingRulesResultResponse`
3805
+ """
3806
+ http_info = self._show_data_processing_rules_result_http_info(request)
3807
+ return self._call_api(**http_info)
3808
+
3809
+ def show_data_processing_rules_result_async_invoker(self, request):
3810
+ http_info = self._show_data_processing_rules_result_http_info(request)
3811
+ return AsyncInvoker(self, http_info)
3812
+
3813
+ def _show_data_processing_rules_result_http_info(self, request):
3814
+ http_info = {
3815
+ "method": "GET",
3816
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/data-processing-rules/result",
3817
+ "request_type": request.__class__.__name__,
3818
+ "response_type": "ShowDataProcessingRulesResultResponse"
3819
+ }
3820
+
3821
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3822
+
3823
+ cname = None
3824
+
3825
+ collection_formats = {}
3826
+
3827
+ path_params = {}
3828
+ if 'job_id' in local_var_params:
3829
+ path_params['job_id'] = local_var_params['job_id']
3830
+
3831
+ query_params = []
3832
+ if 'query_id' in local_var_params:
3833
+ query_params.append(('query_id', local_var_params['query_id']))
3834
+
3835
+ header_params = {}
3836
+ if 'x_language' in local_var_params:
3837
+ header_params['X-Language'] = local_var_params['x_language']
3838
+
3839
+ form_params = {}
3840
+
3841
+ body = None
3842
+ if isinstance(request, SdkStreamRequest):
3843
+ body = request.get_file_stream()
3844
+
3845
+ response_headers = []
3846
+
3847
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3848
+ ['application/json'])
3849
+
3850
+ auth_settings = []
3851
+
3852
+ http_info["cname"] = cname
3853
+ http_info["collection_formats"] = collection_formats
3854
+ http_info["path_params"] = path_params
3855
+ http_info["query_params"] = query_params
3856
+ http_info["header_params"] = header_params
3857
+ http_info["post_params"] = form_params
3858
+ http_info["body"] = body
3859
+ http_info["response_headers"] = response_headers
3860
+
3861
+ return http_info
3862
+
3863
+ def show_data_progress_async(self, request):
3864
+ """查询数据加工规则
3865
+
3866
+ 查询数据加工规则:包含数据库表的映射信息、列信息、数据过滤信息、附加列信息、DDL以及DML信息
3867
+
3868
+ Please refer to HUAWEI cloud API Explorer for details.
3869
+
3870
+
3871
+ :param request: Request instance for ShowDataProgress
3872
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowDataProgressRequest`
3873
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowDataProgressResponse`
3874
+ """
3875
+ http_info = self._show_data_progress_http_info(request)
3876
+ return self._call_api(**http_info)
3877
+
3878
+ def show_data_progress_async_invoker(self, request):
3879
+ http_info = self._show_data_progress_http_info(request)
3880
+ return AsyncInvoker(self, http_info)
3881
+
3882
+ def _show_data_progress_http_info(self, request):
3883
+ http_info = {
3884
+ "method": "GET",
3885
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/data-processing-rules",
3886
+ "request_type": request.__class__.__name__,
3887
+ "response_type": "ShowDataProgressResponse"
3888
+ }
3889
+
3890
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3891
+
3892
+ cname = None
3893
+
3894
+ collection_formats = {}
3895
+
3896
+ path_params = {}
3897
+ if 'job_id' in local_var_params:
3898
+ path_params['job_id'] = local_var_params['job_id']
3899
+
3900
+ query_params = []
3901
+ if 'offset' in local_var_params:
3902
+ query_params.append(('offset', local_var_params['offset']))
3903
+ if 'limit' in local_var_params:
3904
+ query_params.append(('limit', local_var_params['limit']))
3905
+
3906
+ header_params = {}
3907
+ if 'x_language' in local_var_params:
3908
+ header_params['X-Language'] = local_var_params['x_language']
3909
+
3910
+ form_params = {}
3911
+
3912
+ body = None
3913
+ if isinstance(request, SdkStreamRequest):
3914
+ body = request.get_file_stream()
3915
+
3916
+ response_headers = []
3917
+
3918
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3919
+ ['application/json'])
3920
+
3921
+ auth_settings = []
3922
+
3923
+ http_info["cname"] = cname
3924
+ http_info["collection_formats"] = collection_formats
3925
+ http_info["path_params"] = path_params
3926
+ http_info["query_params"] = query_params
3927
+ http_info["header_params"] = header_params
3928
+ http_info["post_params"] = form_params
3929
+ http_info["body"] = body
3930
+ http_info["response_headers"] = response_headers
3931
+
3932
+ return http_info
3933
+
3934
+ def show_db_object_collection_status_async(self, request):
3935
+ """获取提交查询数据库对象信息的结果
3936
+
3937
+ 获取提交查询数据库对象信息的结果。
3938
+
3939
+ Please refer to HUAWEI cloud API Explorer for details.
3940
+
3941
+
3942
+ :param request: Request instance for ShowDbObjectCollectionStatus
3943
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectCollectionStatusRequest`
3944
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectCollectionStatusResponse`
3945
+ """
3946
+ http_info = self._show_db_object_collection_status_http_info(request)
3947
+ return self._call_api(**http_info)
3948
+
3949
+ def show_db_object_collection_status_async_invoker(self, request):
3950
+ http_info = self._show_db_object_collection_status_http_info(request)
3951
+ return AsyncInvoker(self, http_info)
3952
+
3953
+ def _show_db_object_collection_status_http_info(self, request):
3954
+ http_info = {
3955
+ "method": "GET",
3956
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-objects/collection-status",
3957
+ "request_type": request.__class__.__name__,
3958
+ "response_type": "ShowDbObjectCollectionStatusResponse"
3959
+ }
3960
+
3961
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3962
+
3963
+ cname = None
3964
+
3965
+ collection_formats = {}
3966
+
3967
+ path_params = {}
3968
+ if 'job_id' in local_var_params:
3969
+ path_params['job_id'] = local_var_params['job_id']
3970
+
3971
+ query_params = []
3972
+ if 'query_id' in local_var_params:
3973
+ query_params.append(('query_id', local_var_params['query_id']))
3974
+
3975
+ header_params = {}
3976
+ if 'x_language' in local_var_params:
3977
+ header_params['X-Language'] = local_var_params['x_language']
3978
+
3979
+ form_params = {}
3980
+
3981
+ body = None
3982
+ if isinstance(request, SdkStreamRequest):
3983
+ body = request.get_file_stream()
3984
+
3985
+ response_headers = []
3986
+
3987
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3988
+ ['application/json'])
3989
+
3990
+ auth_settings = []
3991
+
3992
+ http_info["cname"] = cname
3993
+ http_info["collection_formats"] = collection_formats
3994
+ http_info["path_params"] = path_params
3995
+ http_info["query_params"] = query_params
3996
+ http_info["header_params"] = header_params
3997
+ http_info["post_params"] = form_params
3998
+ http_info["body"] = body
3999
+ http_info["response_headers"] = response_headers
4000
+
4001
+ return http_info
4002
+
4003
+ def show_db_object_template_progress_async(self, request):
4004
+ """对象选择(文件导入 - 进度查询)
4005
+
4006
+ 对象选择(文件导入 - 进度查询)。
4007
+
4008
+ Please refer to HUAWEI cloud API Explorer for details.
4009
+
4010
+
4011
+ :param request: Request instance for ShowDbObjectTemplateProgress
4012
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateProgressRequest`
4013
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateProgressResponse`
4014
+ """
4015
+ http_info = self._show_db_object_template_progress_http_info(request)
4016
+ return self._call_api(**http_info)
4017
+
4018
+ def show_db_object_template_progress_async_invoker(self, request):
4019
+ http_info = self._show_db_object_template_progress_http_info(request)
4020
+ return AsyncInvoker(self, http_info)
4021
+
4022
+ def _show_db_object_template_progress_http_info(self, request):
4023
+ http_info = {
4024
+ "method": "GET",
4025
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-object/template/progress",
4026
+ "request_type": request.__class__.__name__,
4027
+ "response_type": "ShowDbObjectTemplateProgressResponse"
4028
+ }
4029
+
4030
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4031
+
4032
+ cname = None
4033
+
4034
+ collection_formats = {}
4035
+
4036
+ path_params = {}
4037
+ if 'job_id' in local_var_params:
4038
+ path_params['job_id'] = local_var_params['job_id']
4039
+
4040
+ query_params = []
4041
+ if 'offset' in local_var_params:
4042
+ query_params.append(('offset', local_var_params['offset']))
4043
+ if 'limit' in local_var_params:
4044
+ query_params.append(('limit', local_var_params['limit']))
4045
+ if 'type' in local_var_params:
4046
+ query_params.append(('type', local_var_params['type']))
4047
+
4048
+ header_params = {}
4049
+ if 'x_language' in local_var_params:
4050
+ header_params['X-Language'] = local_var_params['x_language']
4051
+
4052
+ form_params = {}
4053
+
4054
+ body = None
4055
+ if isinstance(request, SdkStreamRequest):
4056
+ body = request.get_file_stream()
4057
+
4058
+ response_headers = []
4059
+
4060
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4061
+ ['application/json'])
4062
+
4063
+ auth_settings = []
4064
+
4065
+ http_info["cname"] = cname
4066
+ http_info["collection_formats"] = collection_formats
4067
+ http_info["path_params"] = path_params
4068
+ http_info["query_params"] = query_params
4069
+ http_info["header_params"] = header_params
4070
+ http_info["post_params"] = form_params
4071
+ http_info["body"] = body
4072
+ http_info["response_headers"] = response_headers
4073
+
4074
+ return http_info
4075
+
4076
+ def show_db_object_template_result_async(self, request):
4077
+ """对象选择(文件导入 - 获取导入结果)
4078
+
4079
+ 对象选择(文件导入 - 获取导入结果)。
4080
+
4081
+ Please refer to HUAWEI cloud API Explorer for details.
4082
+
4083
+
4084
+ :param request: Request instance for ShowDbObjectTemplateResult
4085
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateResultRequest`
4086
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateResultResponse`
4087
+ """
4088
+ http_info = self._show_db_object_template_result_http_info(request)
4089
+ return self._call_api(**http_info)
4090
+
4091
+ def show_db_object_template_result_async_invoker(self, request):
4092
+ http_info = self._show_db_object_template_result_http_info(request)
4093
+ return AsyncInvoker(self, http_info)
4094
+
4095
+ def _show_db_object_template_result_http_info(self, request):
4096
+ http_info = {
4097
+ "method": "GET",
4098
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-object/template/result",
4099
+ "request_type": request.__class__.__name__,
4100
+ "response_type": "ShowDbObjectTemplateResultResponse"
4101
+ }
4102
+
4103
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4104
+
4105
+ cname = None
4106
+
4107
+ collection_formats = {}
4108
+
4109
+ path_params = {}
4110
+ if 'job_id' in local_var_params:
4111
+ path_params['job_id'] = local_var_params['job_id']
4112
+
4113
+ query_params = []
4114
+ if 'type' in local_var_params:
4115
+ query_params.append(('type', local_var_params['type']))
4116
+ if 'file_export_object_level' in local_var_params:
4117
+ query_params.append(('file_export_object_level', local_var_params['file_export_object_level']))
4118
+
4119
+ header_params = {}
4120
+ if 'x_language' in local_var_params:
4121
+ header_params['X-Language'] = local_var_params['x_language']
4122
+
4123
+ form_params = {}
4124
+
4125
+ body = None
4126
+ if isinstance(request, SdkStreamRequest):
4127
+ body = request.get_file_stream()
4128
+
4129
+ response_headers = []
4130
+
4131
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4132
+ ['application/json'])
4133
+
4134
+ auth_settings = []
4135
+
4136
+ http_info["cname"] = cname
4137
+ http_info["collection_formats"] = collection_formats
4138
+ http_info["path_params"] = path_params
4139
+ http_info["query_params"] = query_params
4140
+ http_info["header_params"] = header_params
4141
+ http_info["post_params"] = form_params
4142
+ http_info["body"] = body
4143
+ http_info["response_headers"] = response_headers
4144
+
4145
+ return http_info
4146
+
4147
+ def show_db_objects_list_async(self, request):
4148
+ """查询数据库对象信息
4149
+
4150
+ 查询数据库对象信息。
4151
+
4152
+ Please refer to HUAWEI cloud API Explorer for details.
4153
+
4154
+
4155
+ :param request: Request instance for ShowDbObjectsList
4156
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectsListRequest`
4157
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectsListResponse`
4158
+ """
4159
+ http_info = self._show_db_objects_list_http_info(request)
4160
+ return self._call_api(**http_info)
4161
+
4162
+ def show_db_objects_list_async_invoker(self, request):
4163
+ http_info = self._show_db_objects_list_http_info(request)
2662
4164
  return AsyncInvoker(self, http_info)
2663
4165
 
2664
- def _show_compare_policy_http_info(self, request):
4166
+ def _show_db_objects_list_http_info(self, request):
2665
4167
  http_info = {
2666
4168
  "method": "GET",
2667
- "resource_path": "/v5/{project_id}/jobs/{job_id}/compare-policy",
4169
+ "resource_path": "/v5.1/{project_id}/jobs/{job_id}/db-object",
2668
4170
  "request_type": request.__class__.__name__,
2669
- "response_type": "ShowComparePolicyResponse"
4171
+ "response_type": "ShowDbObjectsListResponse"
2670
4172
  }
2671
4173
 
2672
4174
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2680,6 +4182,8 @@ class DrsAsyncClient(Client):
2680
4182
  path_params['job_id'] = local_var_params['job_id']
2681
4183
 
2682
4184
  query_params = []
4185
+ if 'type' in local_var_params:
4186
+ query_params.append(('type', local_var_params['type']))
2683
4187
 
2684
4188
  header_params = {}
2685
4189
  if 'x_language' in local_var_params:
@@ -2709,31 +4213,31 @@ class DrsAsyncClient(Client):
2709
4213
 
2710
4214
  return http_info
2711
4215
 
2712
- def show_data_filtering_result_async(self, request):
2713
- """获取数据过滤校验结果
4216
+ def show_dirty_data_async(self, request):
4217
+ """查询异常数据列表
2714
4218
 
2715
- 获取数据过滤校验结果
4219
+ 查询异常数据列表。
2716
4220
 
2717
4221
  Please refer to HUAWEI cloud API Explorer for details.
2718
4222
 
2719
4223
 
2720
- :param request: Request instance for ShowDataFilteringResult
2721
- :type request: :class:`huaweicloudsdkdrs.v5.ShowDataFilteringResultRequest`
2722
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowDataFilteringResultResponse`
4224
+ :param request: Request instance for ShowDirtyData
4225
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowDirtyDataRequest`
4226
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowDirtyDataResponse`
2723
4227
  """
2724
- http_info = self._show_data_filtering_result_http_info(request)
4228
+ http_info = self._show_dirty_data_http_info(request)
2725
4229
  return self._call_api(**http_info)
2726
4230
 
2727
- def show_data_filtering_result_async_invoker(self, request):
2728
- http_info = self._show_data_filtering_result_http_info(request)
4231
+ def show_dirty_data_async_invoker(self, request):
4232
+ http_info = self._show_dirty_data_http_info(request)
2729
4233
  return AsyncInvoker(self, http_info)
2730
4234
 
2731
- def _show_data_filtering_result_http_info(self, request):
4235
+ def _show_dirty_data_http_info(self, request):
2732
4236
  http_info = {
2733
4237
  "method": "GET",
2734
- "resource_path": "/v5/{project_id}/job/{job_id}/data-filtering/result",
4238
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/dirty-data",
2735
4239
  "request_type": request.__class__.__name__,
2736
- "response_type": "ShowDataFilteringResultResponse"
4240
+ "response_type": "ShowDirtyDataResponse"
2737
4241
  }
2738
4242
 
2739
4243
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2747,8 +4251,14 @@ class DrsAsyncClient(Client):
2747
4251
  path_params['job_id'] = local_var_params['job_id']
2748
4252
 
2749
4253
  query_params = []
2750
- if 'query_id' in local_var_params:
2751
- query_params.append(('query_id', local_var_params['query_id']))
4254
+ if 'begin_time' in local_var_params:
4255
+ query_params.append(('begin_time', local_var_params['begin_time']))
4256
+ if 'end_time' in local_var_params:
4257
+ query_params.append(('end_time', local_var_params['end_time']))
4258
+ if 'offset' in local_var_params:
4259
+ query_params.append(('offset', local_var_params['offset']))
4260
+ if 'limit' in local_var_params:
4261
+ query_params.append(('limit', local_var_params['limit']))
2752
4262
 
2753
4263
  header_params = {}
2754
4264
  if 'x_language' in local_var_params:
@@ -2778,31 +4288,31 @@ class DrsAsyncClient(Client):
2778
4288
 
2779
4289
  return http_info
2780
4290
 
2781
- def show_data_processing_rules_result_async(self, request):
2782
- """获取指定任务数据加工规则更新结果
4291
+ def show_enterprise_project_async(self, request):
4292
+ """查询企业项目列表
2783
4293
 
2784
- 获取指定任务数据加工规则更新结果
4294
+ 查询企业项目列表。
2785
4295
 
2786
4296
  Please refer to HUAWEI cloud API Explorer for details.
2787
4297
 
2788
4298
 
2789
- :param request: Request instance for ShowDataProcessingRulesResult
2790
- :type request: :class:`huaweicloudsdkdrs.v5.ShowDataProcessingRulesResultRequest`
2791
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowDataProcessingRulesResultResponse`
4299
+ :param request: Request instance for ShowEnterpriseProject
4300
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowEnterpriseProjectRequest`
4301
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowEnterpriseProjectResponse`
2792
4302
  """
2793
- http_info = self._show_data_processing_rules_result_http_info(request)
4303
+ http_info = self._show_enterprise_project_http_info(request)
2794
4304
  return self._call_api(**http_info)
2795
4305
 
2796
- def show_data_processing_rules_result_async_invoker(self, request):
2797
- http_info = self._show_data_processing_rules_result_http_info(request)
4306
+ def show_enterprise_project_async_invoker(self, request):
4307
+ http_info = self._show_enterprise_project_http_info(request)
2798
4308
  return AsyncInvoker(self, http_info)
2799
4309
 
2800
- def _show_data_processing_rules_result_http_info(self, request):
4310
+ def _show_enterprise_project_http_info(self, request):
2801
4311
  http_info = {
2802
4312
  "method": "GET",
2803
- "resource_path": "/v5/{project_id}/jobs/{job_id}/data-processing-rules/result",
4313
+ "resource_path": "/v5/{project_id}/enterprise-projects",
2804
4314
  "request_type": request.__class__.__name__,
2805
- "response_type": "ShowDataProcessingRulesResultResponse"
4315
+ "response_type": "ShowEnterpriseProjectResponse"
2806
4316
  }
2807
4317
 
2808
4318
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2812,12 +4322,16 @@ class DrsAsyncClient(Client):
2812
4322
  collection_formats = {}
2813
4323
 
2814
4324
  path_params = {}
2815
- if 'job_id' in local_var_params:
2816
- path_params['job_id'] = local_var_params['job_id']
2817
4325
 
2818
4326
  query_params = []
2819
- if 'query_id' in local_var_params:
2820
- query_params.append(('query_id', local_var_params['query_id']))
4327
+ if 'offset' in local_var_params:
4328
+ query_params.append(('offset', local_var_params['offset']))
4329
+ if 'limit' in local_var_params:
4330
+ query_params.append(('limit', local_var_params['limit']))
4331
+ if 'name' in local_var_params:
4332
+ query_params.append(('name', local_var_params['name']))
4333
+ if 'domain_id' in local_var_params:
4334
+ query_params.append(('domain_id', local_var_params['domain_id']))
2821
4335
 
2822
4336
  header_params = {}
2823
4337
  if 'x_language' in local_var_params:
@@ -2847,31 +4361,31 @@ class DrsAsyncClient(Client):
2847
4361
 
2848
4362
  return http_info
2849
4363
 
2850
- def show_data_progress_async(self, request):
2851
- """查询数据加工规则
4364
+ def show_health_compare_job_detail_async(self, request):
4365
+ """查询健康对比任务详情
2852
4366
 
2853
- 查询数据加工规则:包含数据库表的映射信息、列信息、数据过滤信息、附加列信息、DDL以及DML信息
4367
+ 查询健康对比任务详情。
2854
4368
 
2855
4369
  Please refer to HUAWEI cloud API Explorer for details.
2856
4370
 
2857
4371
 
2858
- :param request: Request instance for ShowDataProgress
2859
- :type request: :class:`huaweicloudsdkdrs.v5.ShowDataProgressRequest`
2860
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowDataProgressResponse`
4372
+ :param request: Request instance for ShowHealthCompareJobDetail
4373
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowHealthCompareJobDetailRequest`
4374
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowHealthCompareJobDetailResponse`
2861
4375
  """
2862
- http_info = self._show_data_progress_http_info(request)
4376
+ http_info = self._show_health_compare_job_detail_http_info(request)
2863
4377
  return self._call_api(**http_info)
2864
4378
 
2865
- def show_data_progress_async_invoker(self, request):
2866
- http_info = self._show_data_progress_http_info(request)
4379
+ def show_health_compare_job_detail_async_invoker(self, request):
4380
+ http_info = self._show_health_compare_job_detail_http_info(request)
2867
4381
  return AsyncInvoker(self, http_info)
2868
4382
 
2869
- def _show_data_progress_http_info(self, request):
4383
+ def _show_health_compare_job_detail_http_info(self, request):
2870
4384
  http_info = {
2871
4385
  "method": "GET",
2872
- "resource_path": "/v5/{project_id}/jobs/{job_id}/data-processing-rules",
4386
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/health-compare-jobs/{compare_job_id}",
2873
4387
  "request_type": request.__class__.__name__,
2874
- "response_type": "ShowDataProgressResponse"
4388
+ "response_type": "ShowHealthCompareJobDetailResponse"
2875
4389
  }
2876
4390
 
2877
4391
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2883,12 +4397,10 @@ class DrsAsyncClient(Client):
2883
4397
  path_params = {}
2884
4398
  if 'job_id' in local_var_params:
2885
4399
  path_params['job_id'] = local_var_params['job_id']
4400
+ if 'compare_job_id' in local_var_params:
4401
+ path_params['compare_job_id'] = local_var_params['compare_job_id']
2886
4402
 
2887
4403
  query_params = []
2888
- if 'offset' in local_var_params:
2889
- query_params.append(('offset', local_var_params['offset']))
2890
- if 'limit' in local_var_params:
2891
- query_params.append(('limit', local_var_params['limit']))
2892
4404
 
2893
4405
  header_params = {}
2894
4406
  if 'x_language' in local_var_params:
@@ -2918,31 +4430,31 @@ class DrsAsyncClient(Client):
2918
4430
 
2919
4431
  return http_info
2920
4432
 
2921
- def show_db_object_collection_status_async(self, request):
2922
- """获取提交查询数据库对象信息的结果
4433
+ def show_health_compare_job_list_async(self, request):
4434
+ """查询健康对比列表
2923
4435
 
2924
- 获取提交查询数据库对象信息的结果。
4436
+ 查询健康对比列表。
2925
4437
 
2926
4438
  Please refer to HUAWEI cloud API Explorer for details.
2927
4439
 
2928
4440
 
2929
- :param request: Request instance for ShowDbObjectCollectionStatus
2930
- :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectCollectionStatusRequest`
2931
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectCollectionStatusResponse`
4441
+ :param request: Request instance for ShowHealthCompareJobList
4442
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowHealthCompareJobListRequest`
4443
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowHealthCompareJobListResponse`
2932
4444
  """
2933
- http_info = self._show_db_object_collection_status_http_info(request)
4445
+ http_info = self._show_health_compare_job_list_http_info(request)
2934
4446
  return self._call_api(**http_info)
2935
4447
 
2936
- def show_db_object_collection_status_async_invoker(self, request):
2937
- http_info = self._show_db_object_collection_status_http_info(request)
4448
+ def show_health_compare_job_list_async_invoker(self, request):
4449
+ http_info = self._show_health_compare_job_list_http_info(request)
2938
4450
  return AsyncInvoker(self, http_info)
2939
4451
 
2940
- def _show_db_object_collection_status_http_info(self, request):
4452
+ def _show_health_compare_job_list_http_info(self, request):
2941
4453
  http_info = {
2942
4454
  "method": "GET",
2943
- "resource_path": "/v5/{project_id}/jobs/{job_id}/db-objects/collection-status",
4455
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/health-compare-jobs",
2944
4456
  "request_type": request.__class__.__name__,
2945
- "response_type": "ShowDbObjectCollectionStatusResponse"
4457
+ "response_type": "ShowHealthCompareJobListResponse"
2946
4458
  }
2947
4459
 
2948
4460
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -2956,8 +4468,12 @@ class DrsAsyncClient(Client):
2956
4468
  path_params['job_id'] = local_var_params['job_id']
2957
4469
 
2958
4470
  query_params = []
2959
- if 'query_id' in local_var_params:
2960
- query_params.append(('query_id', local_var_params['query_id']))
4471
+ if 'status' in local_var_params:
4472
+ query_params.append(('status', local_var_params['status']))
4473
+ if 'offset' in local_var_params:
4474
+ query_params.append(('offset', local_var_params['offset']))
4475
+ if 'limit' in local_var_params:
4476
+ query_params.append(('limit', local_var_params['limit']))
2961
4477
 
2962
4478
  header_params = {}
2963
4479
  if 'x_language' in local_var_params:
@@ -2987,31 +4503,31 @@ class DrsAsyncClient(Client):
2987
4503
 
2988
4504
  return http_info
2989
4505
 
2990
- def show_db_object_template_progress_async(self, request):
2991
- """对象选择(文件导入 - 进度查询)
4506
+ def show_health_object_compare_job_overview_async(self, request):
4507
+ """获取健康对比对象级对比概览
2992
4508
 
2993
- 对象选择(文件导入 - 进度查询)。
4509
+ 获取健康对比对象级对比概览。
2994
4510
 
2995
4511
  Please refer to HUAWEI cloud API Explorer for details.
2996
4512
 
2997
4513
 
2998
- :param request: Request instance for ShowDbObjectTemplateProgress
2999
- :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateProgressRequest`
3000
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateProgressResponse`
4514
+ :param request: Request instance for ShowHealthObjectCompareJobOverview
4515
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowHealthObjectCompareJobOverviewRequest`
4516
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowHealthObjectCompareJobOverviewResponse`
3001
4517
  """
3002
- http_info = self._show_db_object_template_progress_http_info(request)
4518
+ http_info = self._show_health_object_compare_job_overview_http_info(request)
3003
4519
  return self._call_api(**http_info)
3004
4520
 
3005
- def show_db_object_template_progress_async_invoker(self, request):
3006
- http_info = self._show_db_object_template_progress_http_info(request)
4521
+ def show_health_object_compare_job_overview_async_invoker(self, request):
4522
+ http_info = self._show_health_object_compare_job_overview_http_info(request)
3007
4523
  return AsyncInvoker(self, http_info)
3008
4524
 
3009
- def _show_db_object_template_progress_http_info(self, request):
4525
+ def _show_health_object_compare_job_overview_http_info(self, request):
3010
4526
  http_info = {
3011
4527
  "method": "GET",
3012
- "resource_path": "/v5/{project_id}/jobs/{job_id}/db-object/template/progress",
4528
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/health-compare-jobs/object/{compare_job_id}",
3013
4529
  "request_type": request.__class__.__name__,
3014
- "response_type": "ShowDbObjectTemplateProgressResponse"
4530
+ "response_type": "ShowHealthObjectCompareJobOverviewResponse"
3015
4531
  }
3016
4532
 
3017
4533
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3023,12 +4539,10 @@ class DrsAsyncClient(Client):
3023
4539
  path_params = {}
3024
4540
  if 'job_id' in local_var_params:
3025
4541
  path_params['job_id'] = local_var_params['job_id']
4542
+ if 'compare_job_id' in local_var_params:
4543
+ path_params['compare_job_id'] = local_var_params['compare_job_id']
3026
4544
 
3027
4545
  query_params = []
3028
- if 'offset' in local_var_params:
3029
- query_params.append(('offset', local_var_params['offset']))
3030
- if 'limit' in local_var_params:
3031
- query_params.append(('limit', local_var_params['limit']))
3032
4546
 
3033
4547
  header_params = {}
3034
4548
  if 'x_language' in local_var_params:
@@ -3058,31 +4572,32 @@ class DrsAsyncClient(Client):
3058
4572
 
3059
4573
  return http_info
3060
4574
 
3061
- def show_db_object_template_result_async(self, request):
3062
- """对象选择(文件导入 - 获取导入结果)
4575
+ def show_increment_components_detail_async(self, request):
4576
+ """查询增量组件详情
3063
4577
 
3064
- 对象选择(文件导入 - 获取导入结果)。
4578
+ 查询任务同步的增量组件的详细信息,实时同步任务,任务模式为增量或者全量+增量才支持。具体介绍可以参考:[查询同步进度](https://support.huaweicloud.com/realtimesyn-drs/drs_10_0007.html)
4579
+ - 支持的引擎:oracle-to-gaussdbv5,oracle-to-gaussdbv5ha,gaussdbv5,gaussdbv5-to-mysql,gaussdbv5-to-gaussdbv5ha,gaussdbv5ha,gaussdbv5ha-to-gaussdbv5,gaussdbv5-to-dws,gaussdbv5ha-to-dws,gaussdbv5-to-oracle,gaussdbv5ha-to-oracle,oracle-to-dws,oracle-to-mysql
3065
4580
 
3066
4581
  Please refer to HUAWEI cloud API Explorer for details.
3067
4582
 
3068
4583
 
3069
- :param request: Request instance for ShowDbObjectTemplateResult
3070
- :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateResultRequest`
3071
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectTemplateResultResponse`
4584
+ :param request: Request instance for ShowIncrementComponentsDetail
4585
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowIncrementComponentsDetailRequest`
4586
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowIncrementComponentsDetailResponse`
3072
4587
  """
3073
- http_info = self._show_db_object_template_result_http_info(request)
4588
+ http_info = self._show_increment_components_detail_http_info(request)
3074
4589
  return self._call_api(**http_info)
3075
4590
 
3076
- def show_db_object_template_result_async_invoker(self, request):
3077
- http_info = self._show_db_object_template_result_http_info(request)
4591
+ def show_increment_components_detail_async_invoker(self, request):
4592
+ http_info = self._show_increment_components_detail_http_info(request)
3078
4593
  return AsyncInvoker(self, http_info)
3079
4594
 
3080
- def _show_db_object_template_result_http_info(self, request):
4595
+ def _show_increment_components_detail_http_info(self, request):
3081
4596
  http_info = {
3082
4597
  "method": "GET",
3083
- "resource_path": "/v5/{project_id}/jobs/{job_id}/db-object/template/result",
4598
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/increment-components-detail",
3084
4599
  "request_type": request.__class__.__name__,
3085
- "response_type": "ShowDbObjectTemplateResultResponse"
4600
+ "response_type": "ShowIncrementComponentsDetailResponse"
3086
4601
  }
3087
4602
 
3088
4603
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3096,8 +4611,6 @@ class DrsAsyncClient(Client):
3096
4611
  path_params['job_id'] = local_var_params['job_id']
3097
4612
 
3098
4613
  query_params = []
3099
- if 'type' in local_var_params:
3100
- query_params.append(('type', local_var_params['type']))
3101
4614
 
3102
4615
  header_params = {}
3103
4616
  if 'x_language' in local_var_params:
@@ -3127,31 +4640,31 @@ class DrsAsyncClient(Client):
3127
4640
 
3128
4641
  return http_info
3129
4642
 
3130
- def show_db_objects_list_async(self, request):
3131
- """查询数据库对象信息
4643
+ def show_instance_tags_async(self, request):
4644
+ """查询资源标签
3132
4645
 
3133
- 查询数据库对象信息。
4646
+ 查询指定实例的标签信息。
3134
4647
 
3135
4648
  Please refer to HUAWEI cloud API Explorer for details.
3136
4649
 
3137
4650
 
3138
- :param request: Request instance for ShowDbObjectsList
3139
- :type request: :class:`huaweicloudsdkdrs.v5.ShowDbObjectsListRequest`
3140
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowDbObjectsListResponse`
4651
+ :param request: Request instance for ShowInstanceTags
4652
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowInstanceTagsRequest`
4653
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowInstanceTagsResponse`
3141
4654
  """
3142
- http_info = self._show_db_objects_list_http_info(request)
4655
+ http_info = self._show_instance_tags_http_info(request)
3143
4656
  return self._call_api(**http_info)
3144
4657
 
3145
- def show_db_objects_list_async_invoker(self, request):
3146
- http_info = self._show_db_objects_list_http_info(request)
4658
+ def show_instance_tags_async_invoker(self, request):
4659
+ http_info = self._show_instance_tags_http_info(request)
3147
4660
  return AsyncInvoker(self, http_info)
3148
4661
 
3149
- def _show_db_objects_list_http_info(self, request):
4662
+ def _show_instance_tags_http_info(self, request):
3150
4663
  http_info = {
3151
4664
  "method": "GET",
3152
- "resource_path": "/v5.1/{project_id}/jobs/{job_id}/db-object",
4665
+ "resource_path": "/v5/{project_id}/jobs/{resource_type}/{job_id}/tags",
3153
4666
  "request_type": request.__class__.__name__,
3154
- "response_type": "ShowDbObjectsListResponse"
4667
+ "response_type": "ShowInstanceTagsResponse"
3155
4668
  }
3156
4669
 
3157
4670
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3161,12 +4674,12 @@ class DrsAsyncClient(Client):
3161
4674
  collection_formats = {}
3162
4675
 
3163
4676
  path_params = {}
4677
+ if 'resource_type' in local_var_params:
4678
+ path_params['resource_type'] = local_var_params['resource_type']
3164
4679
  if 'job_id' in local_var_params:
3165
4680
  path_params['job_id'] = local_var_params['job_id']
3166
4681
 
3167
4682
  query_params = []
3168
- if 'type' in local_var_params:
3169
- query_params.append(('type', local_var_params['type']))
3170
4683
 
3171
4684
  header_params = {}
3172
4685
  if 'x_language' in local_var_params:
@@ -3196,31 +4709,31 @@ class DrsAsyncClient(Client):
3196
4709
 
3197
4710
  return http_info
3198
4711
 
3199
- def show_dirty_data_async(self, request):
3200
- """查询异常数据列表
4712
+ def show_job_detail_async(self, request):
4713
+ """查询任务详情
3201
4714
 
3202
- 查询异常数据列表。
4715
+ 查询任务详情。
3203
4716
 
3204
4717
  Please refer to HUAWEI cloud API Explorer for details.
3205
4718
 
3206
4719
 
3207
- :param request: Request instance for ShowDirtyData
3208
- :type request: :class:`huaweicloudsdkdrs.v5.ShowDirtyDataRequest`
3209
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowDirtyDataResponse`
4720
+ :param request: Request instance for ShowJobDetail
4721
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowJobDetailRequest`
4722
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowJobDetailResponse`
3210
4723
  """
3211
- http_info = self._show_dirty_data_http_info(request)
4724
+ http_info = self._show_job_detail_http_info(request)
3212
4725
  return self._call_api(**http_info)
3213
4726
 
3214
- def show_dirty_data_async_invoker(self, request):
3215
- http_info = self._show_dirty_data_http_info(request)
4727
+ def show_job_detail_async_invoker(self, request):
4728
+ http_info = self._show_job_detail_http_info(request)
3216
4729
  return AsyncInvoker(self, http_info)
3217
4730
 
3218
- def _show_dirty_data_http_info(self, request):
4731
+ def _show_job_detail_http_info(self, request):
3219
4732
  http_info = {
3220
4733
  "method": "GET",
3221
- "resource_path": "/v5/{project_id}/jobs/{job_id}/dirty-data",
4734
+ "resource_path": "/v5/{project_id}/jobs/{job_id}",
3222
4735
  "request_type": request.__class__.__name__,
3223
- "response_type": "ShowDirtyDataResponse"
4736
+ "response_type": "ShowJobDetailResponse"
3224
4737
  }
3225
4738
 
3226
4739
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3234,14 +4747,28 @@ class DrsAsyncClient(Client):
3234
4747
  path_params['job_id'] = local_var_params['job_id']
3235
4748
 
3236
4749
  query_params = []
3237
- if 'begin_time' in local_var_params:
3238
- query_params.append(('begin_time', local_var_params['begin_time']))
3239
- if 'end_time' in local_var_params:
3240
- query_params.append(('end_time', local_var_params['end_time']))
4750
+ if 'type' in local_var_params:
4751
+ query_params.append(('type', local_var_params['type']))
4752
+ if 'query_id' in local_var_params:
4753
+ query_params.append(('query_id', local_var_params['query_id']))
3241
4754
  if 'offset' in local_var_params:
3242
4755
  query_params.append(('offset', local_var_params['offset']))
3243
4756
  if 'limit' in local_var_params:
3244
4757
  query_params.append(('limit', local_var_params['limit']))
4758
+ if 'compare_type' in local_var_params:
4759
+ query_params.append(('compare_type', local_var_params['compare_type']))
4760
+ if 'query_type' in local_var_params:
4761
+ query_params.append(('query_type', local_var_params['query_type']))
4762
+ if 'object_type' in local_var_params:
4763
+ query_params.append(('object_type', local_var_params['object_type']))
4764
+ if 'compare_task_id' in local_var_params:
4765
+ query_params.append(('compare_task_id', local_var_params['compare_task_id']))
4766
+ if 'source_db_name' in local_var_params:
4767
+ query_params.append(('source_db_name', local_var_params['source_db_name']))
4768
+ if 'target_db_name' in local_var_params:
4769
+ query_params.append(('target_db_name', local_var_params['target_db_name']))
4770
+ if 'compare_detail_type' in local_var_params:
4771
+ query_params.append(('compare_detail_type', local_var_params['compare_detail_type']))
3245
4772
 
3246
4773
  header_params = {}
3247
4774
  if 'x_language' in local_var_params:
@@ -3271,31 +4798,31 @@ class DrsAsyncClient(Client):
3271
4798
 
3272
4799
  return http_info
3273
4800
 
3274
- def show_enterprise_project_async(self, request):
3275
- """查询企业项目列表
4801
+ def show_metering_async(self, request):
4802
+ """获取任务价格信息
3276
4803
 
3277
- 查询企业项目列表。
4804
+ 获取询价接口的参数。
3278
4805
 
3279
4806
  Please refer to HUAWEI cloud API Explorer for details.
3280
4807
 
3281
4808
 
3282
- :param request: Request instance for ShowEnterpriseProject
3283
- :type request: :class:`huaweicloudsdkdrs.v5.ShowEnterpriseProjectRequest`
3284
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowEnterpriseProjectResponse`
4809
+ :param request: Request instance for ShowMetering
4810
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowMeteringRequest`
4811
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowMeteringResponse`
3285
4812
  """
3286
- http_info = self._show_enterprise_project_http_info(request)
4813
+ http_info = self._show_metering_http_info(request)
3287
4814
  return self._call_api(**http_info)
3288
4815
 
3289
- def show_enterprise_project_async_invoker(self, request):
3290
- http_info = self._show_enterprise_project_http_info(request)
4816
+ def show_metering_async_invoker(self, request):
4817
+ http_info = self._show_metering_http_info(request)
3291
4818
  return AsyncInvoker(self, http_info)
3292
4819
 
3293
- def _show_enterprise_project_http_info(self, request):
4820
+ def _show_metering_http_info(self, request):
3294
4821
  http_info = {
3295
4822
  "method": "GET",
3296
- "resource_path": "/v5/{project_id}/enterprise-projects",
4823
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/metering",
3297
4824
  "request_type": request.__class__.__name__,
3298
- "response_type": "ShowEnterpriseProjectResponse"
4825
+ "response_type": "ShowMeteringResponse"
3299
4826
  }
3300
4827
 
3301
4828
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3305,16 +4832,10 @@ class DrsAsyncClient(Client):
3305
4832
  collection_formats = {}
3306
4833
 
3307
4834
  path_params = {}
4835
+ if 'job_id' in local_var_params:
4836
+ path_params['job_id'] = local_var_params['job_id']
3308
4837
 
3309
4838
  query_params = []
3310
- if 'offset' in local_var_params:
3311
- query_params.append(('offset', local_var_params['offset']))
3312
- if 'limit' in local_var_params:
3313
- query_params.append(('limit', local_var_params['limit']))
3314
- if 'name' in local_var_params:
3315
- query_params.append(('name', local_var_params['name']))
3316
- if 'domain_id' in local_var_params:
3317
- query_params.append(('domain_id', local_var_params['domain_id']))
3318
4839
 
3319
4840
  header_params = {}
3320
4841
  if 'x_language' in local_var_params:
@@ -3344,31 +4865,32 @@ class DrsAsyncClient(Client):
3344
4865
 
3345
4866
  return http_info
3346
4867
 
3347
- def show_health_compare_job_list_async(self, request):
3348
- """查询健康对比列表
4868
+ def show_monitor_data_async(self, request):
4869
+ """查询监控数据
3349
4870
 
3350
- 查询健康对比列表。
4871
+ 获取任务监控数据。
4872
+ - Cassandra灾备不支持。
3351
4873
 
3352
4874
  Please refer to HUAWEI cloud API Explorer for details.
3353
4875
 
3354
4876
 
3355
- :param request: Request instance for ShowHealthCompareJobList
3356
- :type request: :class:`huaweicloudsdkdrs.v5.ShowHealthCompareJobListRequest`
3357
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowHealthCompareJobListResponse`
4877
+ :param request: Request instance for ShowMonitorData
4878
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowMonitorDataRequest`
4879
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowMonitorDataResponse`
3358
4880
  """
3359
- http_info = self._show_health_compare_job_list_http_info(request)
4881
+ http_info = self._show_monitor_data_http_info(request)
3360
4882
  return self._call_api(**http_info)
3361
4883
 
3362
- def show_health_compare_job_list_async_invoker(self, request):
3363
- http_info = self._show_health_compare_job_list_http_info(request)
4884
+ def show_monitor_data_async_invoker(self, request):
4885
+ http_info = self._show_monitor_data_http_info(request)
3364
4886
  return AsyncInvoker(self, http_info)
3365
4887
 
3366
- def _show_health_compare_job_list_http_info(self, request):
4888
+ def _show_monitor_data_http_info(self, request):
3367
4889
  http_info = {
3368
4890
  "method": "GET",
3369
- "resource_path": "/v5/{project_id}/jobs/{job_id}/health-compare-jobs",
4891
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/monitor-data",
3370
4892
  "request_type": request.__class__.__name__,
3371
- "response_type": "ShowHealthCompareJobListResponse"
4893
+ "response_type": "ShowMonitorDataResponse"
3372
4894
  }
3373
4895
 
3374
4896
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3382,12 +4904,6 @@ class DrsAsyncClient(Client):
3382
4904
  path_params['job_id'] = local_var_params['job_id']
3383
4905
 
3384
4906
  query_params = []
3385
- if 'status' in local_var_params:
3386
- query_params.append(('status', local_var_params['status']))
3387
- if 'offset' in local_var_params:
3388
- query_params.append(('offset', local_var_params['offset']))
3389
- if 'limit' in local_var_params:
3390
- query_params.append(('limit', local_var_params['limit']))
3391
4907
 
3392
4908
  header_params = {}
3393
4909
  if 'x_language' in local_var_params:
@@ -3417,32 +4933,31 @@ class DrsAsyncClient(Client):
3417
4933
 
3418
4934
  return http_info
3419
4935
 
3420
- def show_increment_components_detail_async(self, request):
3421
- """查询增量组件详情
4936
+ def show_object_mapping_async(self, request):
4937
+ """查询同步映射列表
3422
4938
 
3423
- 查询任务同步的增量组件的详细信息,实时同步任务,任务模式为增量或者全量+增量才支持。具体介绍可以参考:[查询同步进度](https://support.huaweicloud.com/realtimesyn-drs/drs_10_0007.html)
3424
- - 支持的引擎:oracle-to-gaussdbv5,oracle-to-gaussdbv5ha,gaussdbv5,gaussdbv5-to-mysql,gaussdbv5-to-gaussdbv5ha,gaussdbv5ha,gaussdbv5ha-to-gaussdbv5,gaussdbv5-to-dws,gaussdbv5ha-to-dws,gaussdbv5-to-oracle,gaussdbv5ha-to-oracle,oracle-to-dws,oracle-to-mysql
4939
+ 查询实时同步映射关系包括对象选择时的库映射、schema映射、表映射和数据加工时的列映射。
3425
4940
 
3426
4941
  Please refer to HUAWEI cloud API Explorer for details.
3427
4942
 
3428
4943
 
3429
- :param request: Request instance for ShowIncrementComponentsDetail
3430
- :type request: :class:`huaweicloudsdkdrs.v5.ShowIncrementComponentsDetailRequest`
3431
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowIncrementComponentsDetailResponse`
4944
+ :param request: Request instance for ShowObjectMapping
4945
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowObjectMappingRequest`
4946
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowObjectMappingResponse`
3432
4947
  """
3433
- http_info = self._show_increment_components_detail_http_info(request)
4948
+ http_info = self._show_object_mapping_http_info(request)
3434
4949
  return self._call_api(**http_info)
3435
4950
 
3436
- def show_increment_components_detail_async_invoker(self, request):
3437
- http_info = self._show_increment_components_detail_http_info(request)
4951
+ def show_object_mapping_async_invoker(self, request):
4952
+ http_info = self._show_object_mapping_http_info(request)
3438
4953
  return AsyncInvoker(self, http_info)
3439
4954
 
3440
- def _show_increment_components_detail_http_info(self, request):
4955
+ def _show_object_mapping_http_info(self, request):
3441
4956
  http_info = {
3442
- "method": "GET",
3443
- "resource_path": "/v5/{project_id}/jobs/{job_id}/increment-components-detail",
4957
+ "method": "POST",
4958
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/object-mappings",
3444
4959
  "request_type": request.__class__.__name__,
3445
- "response_type": "ShowIncrementComponentsDetailResponse"
4960
+ "response_type": "ShowObjectMappingResponse"
3446
4961
  }
3447
4962
 
3448
4963
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3464,6 +4979,8 @@ class DrsAsyncClient(Client):
3464
4979
  form_params = {}
3465
4980
 
3466
4981
  body = None
4982
+ if 'body' in local_var_params:
4983
+ body = local_var_params['body']
3467
4984
  if isinstance(request, SdkStreamRequest):
3468
4985
  body = request.get_file_stream()
3469
4986
 
@@ -3485,31 +5002,31 @@ class DrsAsyncClient(Client):
3485
5002
 
3486
5003
  return http_info
3487
5004
 
3488
- def show_instance_tags_async(self, request):
3489
- """查询资源标签
5005
+ def show_position_result_async(self, request):
5006
+ """获取查询数据库位点的结果
3490
5007
 
3491
- 查询指定实例的标签信息。
5008
+ 获取查询数据库位点的结果
3492
5009
 
3493
5010
  Please refer to HUAWEI cloud API Explorer for details.
3494
5011
 
3495
5012
 
3496
- :param request: Request instance for ShowInstanceTags
3497
- :type request: :class:`huaweicloudsdkdrs.v5.ShowInstanceTagsRequest`
3498
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowInstanceTagsResponse`
5013
+ :param request: Request instance for ShowPositionResult
5014
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowPositionResultRequest`
5015
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowPositionResultResponse`
3499
5016
  """
3500
- http_info = self._show_instance_tags_http_info(request)
5017
+ http_info = self._show_position_result_http_info(request)
3501
5018
  return self._call_api(**http_info)
3502
5019
 
3503
- def show_instance_tags_async_invoker(self, request):
3504
- http_info = self._show_instance_tags_http_info(request)
5020
+ def show_position_result_async_invoker(self, request):
5021
+ http_info = self._show_position_result_http_info(request)
3505
5022
  return AsyncInvoker(self, http_info)
3506
5023
 
3507
- def _show_instance_tags_http_info(self, request):
5024
+ def _show_position_result_http_info(self, request):
3508
5025
  http_info = {
3509
5026
  "method": "GET",
3510
- "resource_path": "/v5/{project_id}/jobs/{resource_type}/{job_id}/tags",
5027
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-position",
3511
5028
  "request_type": request.__class__.__name__,
3512
- "response_type": "ShowInstanceTagsResponse"
5029
+ "response_type": "ShowPositionResultResponse"
3513
5030
  }
3514
5031
 
3515
5032
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3519,12 +5036,12 @@ class DrsAsyncClient(Client):
3519
5036
  collection_formats = {}
3520
5037
 
3521
5038
  path_params = {}
3522
- if 'resource_type' in local_var_params:
3523
- path_params['resource_type'] = local_var_params['resource_type']
3524
5039
  if 'job_id' in local_var_params:
3525
5040
  path_params['job_id'] = local_var_params['job_id']
3526
5041
 
3527
5042
  query_params = []
5043
+ if 'query_id' in local_var_params:
5044
+ query_params.append(('query_id', local_var_params['query_id']))
3528
5045
 
3529
5046
  header_params = {}
3530
5047
  if 'x_language' in local_var_params:
@@ -3554,31 +5071,35 @@ class DrsAsyncClient(Client):
3554
5071
 
3555
5072
  return http_info
3556
5073
 
3557
- def show_job_detail_async(self, request):
3558
- """查询任务详情
5074
+ def show_progress_data_async(self, request):
5075
+ """查询数据级流式对比列表
3559
5076
 
3560
- 查询任务详情。
5077
+ 查询不同迁移对象类型的迁移进度。
5078
+ 说明:
5079
+ - 目前仅MySQL->MySQL、MySQL->GaussDB(for MySQL)、MongoDB->DDS、DDS->MongoDB的实时迁移和所有实时同步链路支持查看迁移明细。
5080
+ - 在任务未结束前,不能修改源库和目标库的所有用户、密码和用户权限等。
5081
+ - 全量、增量完成不代表任务结束,如果存在触发器和事件将会进行迁移。
3561
5082
 
3562
5083
  Please refer to HUAWEI cloud API Explorer for details.
3563
5084
 
3564
5085
 
3565
- :param request: Request instance for ShowJobDetail
3566
- :type request: :class:`huaweicloudsdkdrs.v5.ShowJobDetailRequest`
3567
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowJobDetailResponse`
5086
+ :param request: Request instance for ShowProgressData
5087
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowProgressDataRequest`
5088
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowProgressDataResponse`
3568
5089
  """
3569
- http_info = self._show_job_detail_http_info(request)
5090
+ http_info = self._show_progress_data_http_info(request)
3570
5091
  return self._call_api(**http_info)
3571
5092
 
3572
- def show_job_detail_async_invoker(self, request):
3573
- http_info = self._show_job_detail_http_info(request)
5093
+ def show_progress_data_async_invoker(self, request):
5094
+ http_info = self._show_progress_data_http_info(request)
3574
5095
  return AsyncInvoker(self, http_info)
3575
5096
 
3576
- def _show_job_detail_http_info(self, request):
5097
+ def _show_progress_data_http_info(self, request):
3577
5098
  http_info = {
3578
5099
  "method": "GET",
3579
- "resource_path": "/v5/{project_id}/jobs/{job_id}",
5100
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/progress-data/{type}",
3580
5101
  "request_type": request.__class__.__name__,
3581
- "response_type": "ShowJobDetailResponse"
5102
+ "response_type": "ShowProgressDataResponse"
3582
5103
  }
3583
5104
 
3584
5105
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3590,30 +5111,14 @@ class DrsAsyncClient(Client):
3590
5111
  path_params = {}
3591
5112
  if 'job_id' in local_var_params:
3592
5113
  path_params['job_id'] = local_var_params['job_id']
5114
+ if 'type' in local_var_params:
5115
+ path_params['type'] = local_var_params['type']
3593
5116
 
3594
5117
  query_params = []
3595
- if 'type' in local_var_params:
3596
- query_params.append(('type', local_var_params['type']))
3597
- if 'query_id' in local_var_params:
3598
- query_params.append(('query_id', local_var_params['query_id']))
3599
5118
  if 'offset' in local_var_params:
3600
5119
  query_params.append(('offset', local_var_params['offset']))
3601
5120
  if 'limit' in local_var_params:
3602
5121
  query_params.append(('limit', local_var_params['limit']))
3603
- if 'compare_type' in local_var_params:
3604
- query_params.append(('compare_type', local_var_params['compare_type']))
3605
- if 'query_type' in local_var_params:
3606
- query_params.append(('query_type', local_var_params['query_type']))
3607
- if 'object_type' in local_var_params:
3608
- query_params.append(('object_type', local_var_params['object_type']))
3609
- if 'compare_task_id' in local_var_params:
3610
- query_params.append(('compare_task_id', local_var_params['compare_task_id']))
3611
- if 'source_db_name' in local_var_params:
3612
- query_params.append(('source_db_name', local_var_params['source_db_name']))
3613
- if 'target_db_name' in local_var_params:
3614
- query_params.append(('target_db_name', local_var_params['target_db_name']))
3615
- if 'compare_detail_type' in local_var_params:
3616
- query_params.append(('compare_detail_type', local_var_params['compare_detail_type']))
3617
5122
 
3618
5123
  header_params = {}
3619
5124
  if 'x_language' in local_var_params:
@@ -3643,31 +5148,31 @@ class DrsAsyncClient(Client):
3643
5148
 
3644
5149
  return http_info
3645
5150
 
3646
- def show_metering_async(self, request):
3647
- """获取任务价格信息
5151
+ def show_replay_results_async(self, request):
5152
+ """查询录制回放结果
3648
5153
 
3649
- 获取询价接口的参数。
5154
+ 获取录制回放结果数据,包括:回放基于时间维度统计信息,异常SQL及统计结果、慢SQL及统计结果
3650
5155
 
3651
5156
  Please refer to HUAWEI cloud API Explorer for details.
3652
5157
 
3653
5158
 
3654
- :param request: Request instance for ShowMetering
3655
- :type request: :class:`huaweicloudsdkdrs.v5.ShowMeteringRequest`
3656
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowMeteringResponse`
5159
+ :param request: Request instance for ShowReplayResults
5160
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowReplayResultsRequest`
5161
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowReplayResultsResponse`
3657
5162
  """
3658
- http_info = self._show_metering_http_info(request)
5163
+ http_info = self._show_replay_results_http_info(request)
3659
5164
  return self._call_api(**http_info)
3660
5165
 
3661
- def show_metering_async_invoker(self, request):
3662
- http_info = self._show_metering_http_info(request)
5166
+ def show_replay_results_async_invoker(self, request):
5167
+ http_info = self._show_replay_results_http_info(request)
3663
5168
  return AsyncInvoker(self, http_info)
3664
5169
 
3665
- def _show_metering_http_info(self, request):
5170
+ def _show_replay_results_http_info(self, request):
3666
5171
  http_info = {
3667
5172
  "method": "GET",
3668
- "resource_path": "/v5/{project_id}/jobs/{job_id}/metering",
5173
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/replay-results",
3669
5174
  "request_type": request.__class__.__name__,
3670
- "response_type": "ShowMeteringResponse"
5175
+ "response_type": "ShowReplayResultsResponse"
3671
5176
  }
3672
5177
 
3673
5178
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3681,6 +5186,28 @@ class DrsAsyncClient(Client):
3681
5186
  path_params['job_id'] = local_var_params['job_id']
3682
5187
 
3683
5188
  query_params = []
5189
+ if 'type' in local_var_params:
5190
+ query_params.append(('type', local_var_params['type']))
5191
+ if 'start_time' in local_var_params:
5192
+ query_params.append(('start_time', local_var_params['start_time']))
5193
+ if 'end_time' in local_var_params:
5194
+ query_params.append(('end_time', local_var_params['end_time']))
5195
+ if 'offset' in local_var_params:
5196
+ query_params.append(('offset', local_var_params['offset']))
5197
+ if 'limit' in local_var_params:
5198
+ query_params.append(('limit', local_var_params['limit']))
5199
+ if 'sort_key' in local_var_params:
5200
+ query_params.append(('sort_key', local_var_params['sort_key']))
5201
+ if 'sort_dir' in local_var_params:
5202
+ query_params.append(('sort_dir', local_var_params['sort_dir']))
5203
+ if 'target_name' in local_var_params:
5204
+ query_params.append(('target_name', local_var_params['target_name']))
5205
+ if 'is_sample' in local_var_params:
5206
+ query_params.append(('is_sample', local_var_params['is_sample']))
5207
+ if 'error_type' in local_var_params:
5208
+ query_params.append(('error_type', local_var_params['error_type']))
5209
+ if 'sql_template_md5' in local_var_params:
5210
+ query_params.append(('sql_template_md5', local_var_params['sql_template_md5']))
3684
5211
 
3685
5212
  header_params = {}
3686
5213
  if 'x_language' in local_var_params:
@@ -3710,32 +5237,31 @@ class DrsAsyncClient(Client):
3710
5237
 
3711
5238
  return http_info
3712
5239
 
3713
- def show_monitor_data_async(self, request):
3714
- """查询监控数据
5240
+ def show_replication_job_async(self, request):
5241
+ """查询备份迁移任务详细信息
3715
5242
 
3716
- 获取任务监控数据。
3717
- - Cassandra灾备不支持。
5243
+ 获取指定备份迁移任务详细信息。
3718
5244
 
3719
5245
  Please refer to HUAWEI cloud API Explorer for details.
3720
5246
 
3721
5247
 
3722
- :param request: Request instance for ShowMonitorData
3723
- :type request: :class:`huaweicloudsdkdrs.v5.ShowMonitorDataRequest`
3724
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowMonitorDataResponse`
5248
+ :param request: Request instance for ShowReplicationJob
5249
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowReplicationJobRequest`
5250
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowReplicationJobResponse`
3725
5251
  """
3726
- http_info = self._show_monitor_data_http_info(request)
5252
+ http_info = self._show_replication_job_http_info(request)
3727
5253
  return self._call_api(**http_info)
3728
5254
 
3729
- def show_monitor_data_async_invoker(self, request):
3730
- http_info = self._show_monitor_data_http_info(request)
5255
+ def show_replication_job_async_invoker(self, request):
5256
+ http_info = self._show_replication_job_http_info(request)
3731
5257
  return AsyncInvoker(self, http_info)
3732
5258
 
3733
- def _show_monitor_data_http_info(self, request):
5259
+ def _show_replication_job_http_info(self, request):
3734
5260
  http_info = {
3735
5261
  "method": "GET",
3736
- "resource_path": "/v5/{project_id}/jobs/{job_id}/monitor-data",
5262
+ "resource_path": "/v5/{project_id}/backup-migration-jobs/{job_id}",
3737
5263
  "request_type": request.__class__.__name__,
3738
- "response_type": "ShowMonitorDataResponse"
5264
+ "response_type": "ShowReplicationJobResponse"
3739
5265
  }
3740
5266
 
3741
5267
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3778,31 +5304,31 @@ class DrsAsyncClient(Client):
3778
5304
 
3779
5305
  return http_info
3780
5306
 
3781
- def show_object_mapping_async(self, request):
3782
- """查询同步映射列表
5307
+ def show_support_object_type_async(self, request):
5308
+ """查询是否支持对象选择和列映射
3783
5309
 
3784
- 查询实时同步映射关系包括对象选择时的库映射、schema映射、表映射和数据加工时的列映射。
5310
+ 查询任务支持的对象选择类型、列映射、支持搜索的对象类型等信息。
3785
5311
 
3786
5312
  Please refer to HUAWEI cloud API Explorer for details.
3787
5313
 
3788
5314
 
3789
- :param request: Request instance for ShowObjectMapping
3790
- :type request: :class:`huaweicloudsdkdrs.v5.ShowObjectMappingRequest`
3791
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowObjectMappingResponse`
5315
+ :param request: Request instance for ShowSupportObjectType
5316
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowSupportObjectTypeRequest`
5317
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowSupportObjectTypeResponse`
3792
5318
  """
3793
- http_info = self._show_object_mapping_http_info(request)
5319
+ http_info = self._show_support_object_type_http_info(request)
3794
5320
  return self._call_api(**http_info)
3795
5321
 
3796
- def show_object_mapping_async_invoker(self, request):
3797
- http_info = self._show_object_mapping_http_info(request)
5322
+ def show_support_object_type_async_invoker(self, request):
5323
+ http_info = self._show_support_object_type_http_info(request)
3798
5324
  return AsyncInvoker(self, http_info)
3799
5325
 
3800
- def _show_object_mapping_http_info(self, request):
5326
+ def _show_support_object_type_http_info(self, request):
3801
5327
  http_info = {
3802
- "method": "POST",
3803
- "resource_path": "/v5/{project_id}/jobs/{job_id}/object-mappings",
5328
+ "method": "GET",
5329
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/object/support",
3804
5330
  "request_type": request.__class__.__name__,
3805
- "response_type": "ShowObjectMappingResponse"
5331
+ "response_type": "ShowSupportObjectTypeResponse"
3806
5332
  }
3807
5333
 
3808
5334
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3824,8 +5350,6 @@ class DrsAsyncClient(Client):
3824
5350
  form_params = {}
3825
5351
 
3826
5352
  body = None
3827
- if 'body' in local_var_params:
3828
- body = local_var_params['body']
3829
5353
  if isinstance(request, SdkStreamRequest):
3830
5354
  body = request.get_file_stream()
3831
5355
 
@@ -3847,31 +5371,31 @@ class DrsAsyncClient(Client):
3847
5371
 
3848
5372
  return http_info
3849
5373
 
3850
- def show_position_result_async(self, request):
3851
- """获取查询数据库位点的结果
5374
+ def show_update_object_saving_status_async(self, request):
5375
+ """获取对象保存进度
3852
5376
 
3853
- 获取查询数据库位点的结果
5377
+ 获取对象保存进度。
3854
5378
 
3855
5379
  Please refer to HUAWEI cloud API Explorer for details.
3856
5380
 
3857
5381
 
3858
- :param request: Request instance for ShowPositionResult
3859
- :type request: :class:`huaweicloudsdkdrs.v5.ShowPositionResultRequest`
3860
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowPositionResultResponse`
5382
+ :param request: Request instance for ShowUpdateObjectSavingStatus
5383
+ :type request: :class:`huaweicloudsdkdrs.v5.ShowUpdateObjectSavingStatusRequest`
5384
+ :rtype: :class:`huaweicloudsdkdrs.v5.ShowUpdateObjectSavingStatusResponse`
3861
5385
  """
3862
- http_info = self._show_position_result_http_info(request)
5386
+ http_info = self._show_update_object_saving_status_http_info(request)
3863
5387
  return self._call_api(**http_info)
3864
5388
 
3865
- def show_position_result_async_invoker(self, request):
3866
- http_info = self._show_position_result_http_info(request)
5389
+ def show_update_object_saving_status_async_invoker(self, request):
5390
+ http_info = self._show_update_object_saving_status_http_info(request)
3867
5391
  return AsyncInvoker(self, http_info)
3868
5392
 
3869
- def _show_position_result_http_info(self, request):
5393
+ def _show_update_object_saving_status_http_info(self, request):
3870
5394
  http_info = {
3871
5395
  "method": "GET",
3872
- "resource_path": "/v5/{project_id}/jobs/{job_id}/db-position",
5396
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/db-objects/saving-status",
3873
5397
  "request_type": request.__class__.__name__,
3874
- "response_type": "ShowPositionResultResponse"
5398
+ "response_type": "ShowUpdateObjectSavingStatusResponse"
3875
5399
  }
3876
5400
 
3877
5401
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3916,35 +5440,31 @@ class DrsAsyncClient(Client):
3916
5440
 
3917
5441
  return http_info
3918
5442
 
3919
- def show_progress_data_async(self, request):
3920
- """查询数据级流式对比列表
3921
-
3922
- 查询不同迁移对象类型的迁移进度。
3923
- 说明:
3924
- - 目前仅MySQL->MySQL、MySQL->GaussDB(for MySQL)、MongoDB->DDS、DDS->MongoDB的实时迁移和所有实时同步链路支持查看迁移明细。
3925
- - 在任务未结束前,不能修改源库和目标库的所有用户、密码和用户权限等。
3926
- - 全量、增量完成不代表任务结束,如果存在触发器和事件将会进行迁移。
5443
+ def stop_job_action_async(self, request):
5444
+ """结束任务
5445
+
5446
+ 结束租户指定ID任务。
3927
5447
 
3928
5448
  Please refer to HUAWEI cloud API Explorer for details.
3929
5449
 
3930
5450
 
3931
- :param request: Request instance for ShowProgressData
3932
- :type request: :class:`huaweicloudsdkdrs.v5.ShowProgressDataRequest`
3933
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowProgressDataResponse`
5451
+ :param request: Request instance for StopJobAction
5452
+ :type request: :class:`huaweicloudsdkdrs.v5.StopJobActionRequest`
5453
+ :rtype: :class:`huaweicloudsdkdrs.v5.StopJobActionResponse`
3934
5454
  """
3935
- http_info = self._show_progress_data_http_info(request)
5455
+ http_info = self._stop_job_action_http_info(request)
3936
5456
  return self._call_api(**http_info)
3937
5457
 
3938
- def show_progress_data_async_invoker(self, request):
3939
- http_info = self._show_progress_data_http_info(request)
5458
+ def stop_job_action_async_invoker(self, request):
5459
+ http_info = self._stop_job_action_http_info(request)
3940
5460
  return AsyncInvoker(self, http_info)
3941
5461
 
3942
- def _show_progress_data_http_info(self, request):
5462
+ def _stop_job_action_http_info(self, request):
3943
5463
  http_info = {
3944
- "method": "GET",
3945
- "resource_path": "/v5/{project_id}/jobs/{job_id}/progress-data/{type}",
5464
+ "method": "POST",
5465
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/stop",
3946
5466
  "request_type": request.__class__.__name__,
3947
- "response_type": "ShowProgressDataResponse"
5467
+ "response_type": "StopJobActionResponse"
3948
5468
  }
3949
5469
 
3950
5470
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -3956,14 +5476,8 @@ class DrsAsyncClient(Client):
3956
5476
  path_params = {}
3957
5477
  if 'job_id' in local_var_params:
3958
5478
  path_params['job_id'] = local_var_params['job_id']
3959
- if 'type' in local_var_params:
3960
- path_params['type'] = local_var_params['type']
3961
5479
 
3962
5480
  query_params = []
3963
- if 'offset' in local_var_params:
3964
- query_params.append(('offset', local_var_params['offset']))
3965
- if 'limit' in local_var_params:
3966
- query_params.append(('limit', local_var_params['limit']))
3967
5481
 
3968
5482
  header_params = {}
3969
5483
  if 'x_language' in local_var_params:
@@ -3972,6 +5486,8 @@ class DrsAsyncClient(Client):
3972
5486
  form_params = {}
3973
5487
 
3974
5488
  body = None
5489
+ if 'body' in local_var_params:
5490
+ body = local_var_params['body']
3975
5491
  if isinstance(request, SdkStreamRequest):
3976
5492
  body = request.get_file_stream()
3977
5493
 
@@ -3993,31 +5509,31 @@ class DrsAsyncClient(Client):
3993
5509
 
3994
5510
  return http_info
3995
5511
 
3996
- def show_support_object_type_async(self, request):
3997
- """查询是否支持对象选择和列映射
5512
+ def sync_jdbc_driver_async(self, request):
5513
+ """同步驱动文件(不再推广)
3998
5514
 
3999
- 查询任务支持的对象选择类型、列映射、支持搜索的对象类型等信息。
5515
+ 同步驱动文件。
4000
5516
 
4001
5517
  Please refer to HUAWEI cloud API Explorer for details.
4002
5518
 
4003
5519
 
4004
- :param request: Request instance for ShowSupportObjectType
4005
- :type request: :class:`huaweicloudsdkdrs.v5.ShowSupportObjectTypeRequest`
4006
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowSupportObjectTypeResponse`
5520
+ :param request: Request instance for SyncJdbcDriver
5521
+ :type request: :class:`huaweicloudsdkdrs.v5.SyncJdbcDriverRequest`
5522
+ :rtype: :class:`huaweicloudsdkdrs.v5.SyncJdbcDriverResponse`
4007
5523
  """
4008
- http_info = self._show_support_object_type_http_info(request)
5524
+ http_info = self._sync_jdbc_driver_http_info(request)
4009
5525
  return self._call_api(**http_info)
4010
5526
 
4011
- def show_support_object_type_async_invoker(self, request):
4012
- http_info = self._show_support_object_type_http_info(request)
5527
+ def sync_jdbc_driver_async_invoker(self, request):
5528
+ http_info = self._sync_jdbc_driver_http_info(request)
4013
5529
  return AsyncInvoker(self, http_info)
4014
5530
 
4015
- def _show_support_object_type_http_info(self, request):
5531
+ def _sync_jdbc_driver_http_info(self, request):
4016
5532
  http_info = {
4017
- "method": "GET",
4018
- "resource_path": "/v5/{project_id}/jobs/{job_id}/object/support",
5533
+ "method": "PUT",
5534
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/update-jdbc-driver",
4019
5535
  "request_type": request.__class__.__name__,
4020
- "response_type": "ShowSupportObjectTypeResponse"
5536
+ "response_type": "SyncJdbcDriverResponse"
4021
5537
  }
4022
5538
 
4023
5539
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4039,6 +5555,8 @@ class DrsAsyncClient(Client):
4039
5555
  form_params = {}
4040
5556
 
4041
5557
  body = None
5558
+ if 'body' in local_var_params:
5559
+ body = local_var_params['body']
4042
5560
  if isinstance(request, SdkStreamRequest):
4043
5561
  body = request.get_file_stream()
4044
5562
 
@@ -4060,31 +5578,31 @@ class DrsAsyncClient(Client):
4060
5578
 
4061
5579
  return http_info
4062
5580
 
4063
- def show_update_object_saving_status_async(self, request):
4064
- """获取对象保存进度
5581
+ def sync_user_jdbc_driver_async(self, request):
5582
+ """同步驱动文件
4065
5583
 
4066
- 获取对象保存进度。
5584
+ 同步驱动文件。
4067
5585
 
4068
5586
  Please refer to HUAWEI cloud API Explorer for details.
4069
5587
 
4070
5588
 
4071
- :param request: Request instance for ShowUpdateObjectSavingStatus
4072
- :type request: :class:`huaweicloudsdkdrs.v5.ShowUpdateObjectSavingStatusRequest`
4073
- :rtype: :class:`huaweicloudsdkdrs.v5.ShowUpdateObjectSavingStatusResponse`
5589
+ :param request: Request instance for SyncUserJdbcDriver
5590
+ :type request: :class:`huaweicloudsdkdrs.v5.SyncUserJdbcDriverRequest`
5591
+ :rtype: :class:`huaweicloudsdkdrs.v5.SyncUserJdbcDriverResponse`
4074
5592
  """
4075
- http_info = self._show_update_object_saving_status_http_info(request)
5593
+ http_info = self._sync_user_jdbc_driver_http_info(request)
4076
5594
  return self._call_api(**http_info)
4077
5595
 
4078
- def show_update_object_saving_status_async_invoker(self, request):
4079
- http_info = self._show_update_object_saving_status_http_info(request)
5596
+ def sync_user_jdbc_driver_async_invoker(self, request):
5597
+ http_info = self._sync_user_jdbc_driver_http_info(request)
4080
5598
  return AsyncInvoker(self, http_info)
4081
5599
 
4082
- def _show_update_object_saving_status_http_info(self, request):
5600
+ def _sync_user_jdbc_driver_http_info(self, request):
4083
5601
  http_info = {
4084
- "method": "GET",
4085
- "resource_path": "/v5/{project_id}/jobs/{job_id}/db-objects/saving-status",
5602
+ "method": "PUT",
5603
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/update-driver",
4086
5604
  "request_type": request.__class__.__name__,
4087
- "response_type": "ShowUpdateObjectSavingStatusResponse"
5605
+ "response_type": "SyncUserJdbcDriverResponse"
4088
5606
  }
4089
5607
 
4090
5608
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4098,8 +5616,6 @@ class DrsAsyncClient(Client):
4098
5616
  path_params['job_id'] = local_var_params['job_id']
4099
5617
 
4100
5618
  query_params = []
4101
- if 'query_id' in local_var_params:
4102
- query_params.append(('query_id', local_var_params['query_id']))
4103
5619
 
4104
5620
  header_params = {}
4105
5621
  if 'x_language' in local_var_params:
@@ -4108,6 +5624,8 @@ class DrsAsyncClient(Client):
4108
5624
  form_params = {}
4109
5625
 
4110
5626
  body = None
5627
+ if 'body' in local_var_params:
5628
+ body = local_var_params['body']
4111
5629
  if isinstance(request, SdkStreamRequest):
4112
5630
  body = request.get_file_stream()
4113
5631
 
@@ -4129,31 +5647,31 @@ class DrsAsyncClient(Client):
4129
5647
 
4130
5648
  return http_info
4131
5649
 
4132
- def stop_job_action_async(self, request):
4133
- """结束任务
5650
+ def update_agency_policy_async(self, request):
5651
+ """更新委托权限策略
4134
5652
 
4135
- 结束租户指定ID任务。
5653
+ 更新委托权限策略
4136
5654
 
4137
5655
  Please refer to HUAWEI cloud API Explorer for details.
4138
5656
 
4139
5657
 
4140
- :param request: Request instance for StopJobAction
4141
- :type request: :class:`huaweicloudsdkdrs.v5.StopJobActionRequest`
4142
- :rtype: :class:`huaweicloudsdkdrs.v5.StopJobActionResponse`
5658
+ :param request: Request instance for UpdateAgencyPolicy
5659
+ :type request: :class:`huaweicloudsdkdrs.v5.UpdateAgencyPolicyRequest`
5660
+ :rtype: :class:`huaweicloudsdkdrs.v5.UpdateAgencyPolicyResponse`
4143
5661
  """
4144
- http_info = self._stop_job_action_http_info(request)
5662
+ http_info = self._update_agency_policy_http_info(request)
4145
5663
  return self._call_api(**http_info)
4146
5664
 
4147
- def stop_job_action_async_invoker(self, request):
4148
- http_info = self._stop_job_action_http_info(request)
5665
+ def update_agency_policy_async_invoker(self, request):
5666
+ http_info = self._update_agency_policy_http_info(request)
4149
5667
  return AsyncInvoker(self, http_info)
4150
5668
 
4151
- def _stop_job_action_http_info(self, request):
5669
+ def _update_agency_policy_http_info(self, request):
4152
5670
  http_info = {
4153
- "method": "POST",
4154
- "resource_path": "/v5/{project_id}/jobs/{job_id}/stop",
5671
+ "method": "PUT",
5672
+ "resource_path": "/v5/{project_id}/agency/{agency_name}/policy",
4155
5673
  "request_type": request.__class__.__name__,
4156
- "response_type": "StopJobActionResponse"
5674
+ "response_type": "UpdateAgencyPolicyResponse"
4157
5675
  }
4158
5676
 
4159
5677
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4163,8 +5681,8 @@ class DrsAsyncClient(Client):
4163
5681
  collection_formats = {}
4164
5682
 
4165
5683
  path_params = {}
4166
- if 'job_id' in local_var_params:
4167
- path_params['job_id'] = local_var_params['job_id']
5684
+ if 'agency_name' in local_var_params:
5685
+ path_params['agency_name'] = local_var_params['agency_name']
4168
5686
 
4169
5687
  query_params = []
4170
5688
 
@@ -4198,31 +5716,31 @@ class DrsAsyncClient(Client):
4198
5716
 
4199
5717
  return http_info
4200
5718
 
4201
- def sync_jdbc_driver_async(self, request):
4202
- """同步驱动文件
5719
+ def update_batch_async_jobs_async(self, request):
5720
+ """更新指定ID批量异步任务详情
4203
5721
 
4204
- 同步驱动文件。
5722
+ 更新租户指定ID批量异步任务详情。
4205
5723
 
4206
5724
  Please refer to HUAWEI cloud API Explorer for details.
4207
5725
 
4208
5726
 
4209
- :param request: Request instance for SyncJdbcDriver
4210
- :type request: :class:`huaweicloudsdkdrs.v5.SyncJdbcDriverRequest`
4211
- :rtype: :class:`huaweicloudsdkdrs.v5.SyncJdbcDriverResponse`
5727
+ :param request: Request instance for UpdateBatchAsyncJobs
5728
+ :type request: :class:`huaweicloudsdkdrs.v5.UpdateBatchAsyncJobsRequest`
5729
+ :rtype: :class:`huaweicloudsdkdrs.v5.UpdateBatchAsyncJobsResponse`
4212
5730
  """
4213
- http_info = self._sync_jdbc_driver_http_info(request)
5731
+ http_info = self._update_batch_async_jobs_http_info(request)
4214
5732
  return self._call_api(**http_info)
4215
5733
 
4216
- def sync_jdbc_driver_async_invoker(self, request):
4217
- http_info = self._sync_jdbc_driver_http_info(request)
5734
+ def update_batch_async_jobs_async_invoker(self, request):
5735
+ http_info = self._update_batch_async_jobs_http_info(request)
4218
5736
  return AsyncInvoker(self, http_info)
4219
5737
 
4220
- def _sync_jdbc_driver_http_info(self, request):
5738
+ def _update_batch_async_jobs_http_info(self, request):
4221
5739
  http_info = {
4222
5740
  "method": "PUT",
4223
- "resource_path": "/v5/{project_id}/jobs/{job_id}/update-jdbc-driver",
5741
+ "resource_path": "/v5/{project_id}/batch-async-jobs/{async_job_id}",
4224
5742
  "request_type": request.__class__.__name__,
4225
- "response_type": "SyncJdbcDriverResponse"
5743
+ "response_type": "UpdateBatchAsyncJobsResponse"
4226
5744
  }
4227
5745
 
4228
5746
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4232,8 +5750,8 @@ class DrsAsyncClient(Client):
4232
5750
  collection_formats = {}
4233
5751
 
4234
5752
  path_params = {}
4235
- if 'job_id' in local_var_params:
4236
- path_params['job_id'] = local_var_params['job_id']
5753
+ if 'async_job_id' in local_var_params:
5754
+ path_params['async_job_id'] = local_var_params['async_job_id']
4237
5755
 
4238
5756
  query_params = []
4239
5757
 
@@ -4267,31 +5785,31 @@ class DrsAsyncClient(Client):
4267
5785
 
4268
5786
  return http_info
4269
5787
 
4270
- def update_batch_async_jobs_async(self, request):
4271
- """更新指定ID批量异步任务详情
5788
+ def update_compare_policy_async(self, request):
5789
+ """修改对比策略
4272
5790
 
4273
- 更新租户指定ID批量异步任务详情。
5791
+ 修改周期性对比的对比策略,目前仅MySQL->MySQL、MySQL->GaussDB(for MySQL)、MySQL->GaussDB(DWS)、GaussDB(for MySQL)->MySQL同步任务,MySQL->MySQL、MySQL->GaussDB(for MySQL)迁移任务,MySQL->MySQL、MySQL->GaussDB(for MySQL)、GaussDB(for MySQL)->GaussDB(for MySQL)、DDM->DDM、DDS-DDS灾备任务支持对比策略设置。
4274
5792
 
4275
5793
  Please refer to HUAWEI cloud API Explorer for details.
4276
5794
 
4277
5795
 
4278
- :param request: Request instance for UpdateBatchAsyncJobs
4279
- :type request: :class:`huaweicloudsdkdrs.v5.UpdateBatchAsyncJobsRequest`
4280
- :rtype: :class:`huaweicloudsdkdrs.v5.UpdateBatchAsyncJobsResponse`
5796
+ :param request: Request instance for UpdateComparePolicy
5797
+ :type request: :class:`huaweicloudsdkdrs.v5.UpdateComparePolicyRequest`
5798
+ :rtype: :class:`huaweicloudsdkdrs.v5.UpdateComparePolicyResponse`
4281
5799
  """
4282
- http_info = self._update_batch_async_jobs_http_info(request)
5800
+ http_info = self._update_compare_policy_http_info(request)
4283
5801
  return self._call_api(**http_info)
4284
5802
 
4285
- def update_batch_async_jobs_async_invoker(self, request):
4286
- http_info = self._update_batch_async_jobs_http_info(request)
5803
+ def update_compare_policy_async_invoker(self, request):
5804
+ http_info = self._update_compare_policy_http_info(request)
4287
5805
  return AsyncInvoker(self, http_info)
4288
5806
 
4289
- def _update_batch_async_jobs_http_info(self, request):
5807
+ def _update_compare_policy_http_info(self, request):
4290
5808
  http_info = {
4291
5809
  "method": "PUT",
4292
- "resource_path": "/v5/{project_id}/batch-async-jobs/{async_job_id}",
5810
+ "resource_path": "/v5/{project_id}/jobs/{job_id}/compare-policy",
4293
5811
  "request_type": request.__class__.__name__,
4294
- "response_type": "UpdateBatchAsyncJobsResponse"
5812
+ "response_type": "UpdateComparePolicyResponse"
4295
5813
  }
4296
5814
 
4297
5815
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -4301,8 +5819,8 @@ class DrsAsyncClient(Client):
4301
5819
  collection_formats = {}
4302
5820
 
4303
5821
  path_params = {}
4304
- if 'async_job_id' in local_var_params:
4305
- path_params['async_job_id'] = local_var_params['async_job_id']
5822
+ if 'job_id' in local_var_params:
5823
+ path_params['job_id'] = local_var_params['job_id']
4306
5824
 
4307
5825
  query_params = []
4308
5826
 
@@ -4545,6 +6063,75 @@ class DrsAsyncClient(Client):
4545
6063
 
4546
6064
  return http_info
4547
6065
 
6066
+ def update_replication_job_async(self, request):
6067
+ """修改备份迁移任务信息
6068
+
6069
+ 修改指定备份迁移任务信息,任务名与任务描述。
6070
+
6071
+ Please refer to HUAWEI cloud API Explorer for details.
6072
+
6073
+
6074
+ :param request: Request instance for UpdateReplicationJob
6075
+ :type request: :class:`huaweicloudsdkdrs.v5.UpdateReplicationJobRequest`
6076
+ :rtype: :class:`huaweicloudsdkdrs.v5.UpdateReplicationJobResponse`
6077
+ """
6078
+ http_info = self._update_replication_job_http_info(request)
6079
+ return self._call_api(**http_info)
6080
+
6081
+ def update_replication_job_async_invoker(self, request):
6082
+ http_info = self._update_replication_job_http_info(request)
6083
+ return AsyncInvoker(self, http_info)
6084
+
6085
+ def _update_replication_job_http_info(self, request):
6086
+ http_info = {
6087
+ "method": "PUT",
6088
+ "resource_path": "/v5/{project_id}/backup-migration-jobs/{job_id}",
6089
+ "request_type": request.__class__.__name__,
6090
+ "response_type": "UpdateReplicationJobResponse"
6091
+ }
6092
+
6093
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6094
+
6095
+ cname = None
6096
+
6097
+ collection_formats = {}
6098
+
6099
+ path_params = {}
6100
+ if 'job_id' in local_var_params:
6101
+ path_params['job_id'] = local_var_params['job_id']
6102
+
6103
+ query_params = []
6104
+
6105
+ header_params = {}
6106
+ if 'x_language' in local_var_params:
6107
+ header_params['X-Language'] = local_var_params['x_language']
6108
+
6109
+ form_params = {}
6110
+
6111
+ body = None
6112
+ if 'body' in local_var_params:
6113
+ body = local_var_params['body']
6114
+ if isinstance(request, SdkStreamRequest):
6115
+ body = request.get_file_stream()
6116
+
6117
+ response_headers = []
6118
+
6119
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6120
+ ['application/json'])
6121
+
6122
+ auth_settings = []
6123
+
6124
+ http_info["cname"] = cname
6125
+ http_info["collection_formats"] = collection_formats
6126
+ http_info["path_params"] = path_params
6127
+ http_info["query_params"] = query_params
6128
+ http_info["header_params"] = header_params
6129
+ http_info["post_params"] = form_params
6130
+ http_info["body"] = body
6131
+ http_info["response_headers"] = response_headers
6132
+
6133
+ return http_info
6134
+
4548
6135
  def update_start_position_async(self, request):
4549
6136
  """更新增量任务启动位点
4550
6137
 
@@ -4689,7 +6276,7 @@ class DrsAsyncClient(Client):
4689
6276
  return http_info
4690
6277
 
4691
6278
  def upload_jdbc_driver_async(self, request):
4692
- """上传驱动文件
6279
+ """上传驱动文件(不再推广)
4693
6280
 
4694
6281
  上传驱动文件。
4695
6282
 
@@ -4757,6 +6344,77 @@ class DrsAsyncClient(Client):
4757
6344
 
4758
6345
  return http_info
4759
6346
 
6347
+ def upload_user_jdbc_driver_async(self, request):
6348
+ """上传驱动文件
6349
+
6350
+ 上传驱动文件。
6351
+
6352
+ Please refer to HUAWEI cloud API Explorer for details.
6353
+
6354
+
6355
+ :param request: Request instance for UploadUserJdbcDriver
6356
+ :type request: :class:`huaweicloudsdkdrs.v5.UploadUserJdbcDriverRequest`
6357
+ :rtype: :class:`huaweicloudsdkdrs.v5.UploadUserJdbcDriverResponse`
6358
+ """
6359
+ http_info = self._upload_user_jdbc_driver_http_info(request)
6360
+ return self._call_api(**http_info)
6361
+
6362
+ def upload_user_jdbc_driver_async_invoker(self, request):
6363
+ http_info = self._upload_user_jdbc_driver_http_info(request)
6364
+ return AsyncInvoker(self, http_info)
6365
+
6366
+ def _upload_user_jdbc_driver_http_info(self, request):
6367
+ http_info = {
6368
+ "method": "POST",
6369
+ "resource_path": "/v5/{project_id}/driver",
6370
+ "request_type": request.__class__.__name__,
6371
+ "response_type": "UploadUserJdbcDriverResponse"
6372
+ }
6373
+
6374
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6375
+
6376
+ cname = None
6377
+
6378
+ collection_formats = {}
6379
+
6380
+ path_params = {}
6381
+
6382
+ query_params = []
6383
+ if 'driver_type' in local_var_params:
6384
+ query_params.append(('driver_type', local_var_params['driver_type']))
6385
+
6386
+ header_params = {}
6387
+ if 'x_language' in local_var_params:
6388
+ header_params['X-Language'] = local_var_params['x_language']
6389
+
6390
+ form_params = {}
6391
+ if 'file' in local_var_params:
6392
+ form_params['file'] = local_var_params['file']
6393
+
6394
+ body = None
6395
+ if 'body' in local_var_params:
6396
+ body = local_var_params['body']
6397
+ if isinstance(request, SdkStreamRequest):
6398
+ body = request.get_file_stream()
6399
+
6400
+ response_headers = []
6401
+
6402
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6403
+ ['multipart/form-data'])
6404
+
6405
+ auth_settings = []
6406
+
6407
+ http_info["cname"] = cname
6408
+ http_info["collection_formats"] = collection_formats
6409
+ http_info["path_params"] = path_params
6410
+ http_info["query_params"] = query_params
6411
+ http_info["header_params"] = header_params
6412
+ http_info["post_params"] = form_params
6413
+ http_info["body"] = body
6414
+ http_info["response_headers"] = response_headers
6415
+
6416
+ return http_info
6417
+
4760
6418
  def validate_job_name_async(self, request):
4761
6419
  """任务名称校验
4762
6420