huaweicloudsdkdrs 3.1.85__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.
- huaweicloudsdkdrs/v3/__init__.py +48 -0
- huaweicloudsdkdrs/v3/drs_async_client.py +1140 -43
- huaweicloudsdkdrs/v3/drs_client.py +1140 -43
- huaweicloudsdkdrs/v3/model/__init__.py +48 -0
- huaweicloudsdkdrs/v3/model/add_data_transformation_req.py +138 -0
- huaweicloudsdkdrs/v3/model/api_http_null_resp.py +84 -0
- huaweicloudsdkdrs/v3/model/batch_job_action_req.py +9 -9
- huaweicloudsdkdrs/v3/model/compare_job_content_detail_info.py +202 -0
- huaweicloudsdkdrs/v3/model/compare_job_info.py +376 -0
- huaweicloudsdkdrs/v3/model/create_compare_result_file_request.py +196 -0
- huaweicloudsdkdrs/v3/model/create_compare_result_file_response.py +116 -0
- huaweicloudsdkdrs/v3/model/create_data_compare_database_object.py +115 -0
- huaweicloudsdkdrs/v3/model/create_data_compare_transformation_info.py +142 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_req.py +346 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_request.py +168 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/create_job_req.py +67 -9
- huaweicloudsdkdrs/v3/model/create_object_compare_job_req.py +115 -0
- huaweicloudsdkdrs/v3/model/create_object_level_compare_job_request.py +168 -0
- huaweicloudsdkdrs/v3/model/create_object_level_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/data_compare_overview_info.py +173 -0
- huaweicloudsdkdrs/v3/model/delete_compare_job_request.py +171 -0
- huaweicloudsdkdrs/v3/model/delete_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/download_compare_result_file_request.py +255 -0
- huaweicloudsdkdrs/v3/model/download_compare_result_file_response.py +85 -0
- huaweicloudsdkdrs/v3/model/endpoint.py +28 -3
- huaweicloudsdkdrs/v3/model/export_compare_result_req.py +172 -0
- huaweicloudsdkdrs/v3/model/failed_to_bind_eip_child_info.py +144 -0
- huaweicloudsdkdrs/v3/model/kafka_security.py +290 -29
- huaweicloudsdkdrs/v3/model/list_available_node_types_request.py +257 -0
- huaweicloudsdkdrs/v3/model/list_available_node_types_response.py +116 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +316 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_difference_request.py +287 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_difference_response.py +232 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +229 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_overview_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +374 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +258 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_overview_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +201 -0
- huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_request.py +258 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_request.py +143 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_response.py +319 -0
- huaweicloudsdkdrs/v3/model/modify_job_req.py +3 -3
- huaweicloudsdkdrs/v3/model/node_content_compare_detail_result.py +405 -0
- huaweicloudsdkdrs/v3/model/node_content_compare_overview_result.py +173 -0
- huaweicloudsdkdrs/v3/model/objects_compare_detail_info.py +260 -0
- huaweicloudsdkdrs/v3/model/objects_compare_overview_info.py +202 -0
- huaweicloudsdkdrs/v3/model/public_ip_config.py +170 -0
- huaweicloudsdkdrs/v3/model/query_job_resp.py +129 -13
- huaweicloudsdkdrs/v3/model/query_jobs_req.py +3 -3
- huaweicloudsdkdrs/v3/model/query_support_node_type_bean.py +144 -0
- huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_request.py +171 -0
- huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/sync_policy_req.py +32 -3
- huaweicloudsdkdrs/v3/model/table_line_compare_result_info.py +289 -0
- huaweicloudsdkdrs/v3/region/drs_region.py +15 -0
- huaweicloudsdkdrs/v5/__init__.py +81 -1
- huaweicloudsdkdrs/v5/drs_async_client.py +2408 -750
- huaweicloudsdkdrs/v5/drs_client.py +2408 -750
- huaweicloudsdkdrs/v5/model/__init__.py +81 -1
- huaweicloudsdkdrs/v5/model/action_params.py +82 -3
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/agency_role.py +144 -0
- huaweicloudsdkdrs/v5/model/async_create_job_req.py +32 -3
- huaweicloudsdkdrs/v5/model/backup_file_info.py +201 -0
- huaweicloudsdkdrs/v5/model/backup_file_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_info.py +171 -0
- huaweicloudsdkdrs/v5/model/backup_info_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_job_base_info.py +229 -0
- huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py +172 -0
- huaweicloudsdkdrs/v5/model/backup_restore_option_info.py +315 -0
- huaweicloudsdkdrs/v5/model/base_endpoint.py +6 -6
- huaweicloudsdkdrs/v5/model/change_to_period_request.py +168 -0
- huaweicloudsdkdrs/v5/model/change_to_period_response.py +116 -0
- huaweicloudsdkdrs/v5/model/check_data_filter_response.py +35 -6
- huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/clean_alarms_request.py +171 -0
- huaweicloudsdkdrs/v5/model/clean_alarms_response.py +116 -0
- huaweicloudsdkdrs/v5/model/collect_columns_response.py +35 -6
- huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +35 -6
- huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +35 -6
- huaweicloudsdkdrs/v5/model/collect_position_async_response.py +35 -6
- huaweicloudsdkdrs/v5/model/compare_job_info.py +65 -7
- huaweicloudsdkdrs/v5/model/compare_result_info.py +28 -3
- huaweicloudsdkdrs/v5/model/compare_task_params.py +32 -3
- huaweicloudsdkdrs/v5/model/connection_config.py +115 -0
- huaweicloudsdkdrs/v5/model/connection_resp.py +355 -0
- huaweicloudsdkdrs/v5/model/content_compare_overview_info.py +3 -3
- huaweicloudsdkdrs/v5/model/content_diff_detail_info.py +231 -0
- huaweicloudsdkdrs/v5/model/content_diff_detail_vo.py +202 -0
- huaweicloudsdkdrs/v5/model/create_connection_req.py +324 -0
- huaweicloudsdkdrs/v5/model/create_connection_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_connection_response.py +361 -0
- huaweicloudsdkdrs/v5/model/create_job_req.py +32 -3
- huaweicloudsdkdrs/v5/model/create_job_response.py +139 -19
- huaweicloudsdkdrs/v5/model/create_offline_task_req.py +182 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/data_process_info.py +32 -3
- huaweicloudsdkdrs/v5/model/db_object_filtering_result.py +148 -3
- huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py +311 -0
- huaweicloudsdkdrs/v5/model/delete_connection_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/delete_user_driver_req.py +142 -0
- huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_request.py +140 -0
- huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/model/download_db_object_template_request.py +3 -3
- huaweicloudsdkdrs/v5/model/failed_to_bind_eip_child_info.py +144 -0
- huaweicloudsdkdrs/v5/model/health_compare_job.py +9 -9
- huaweicloudsdkdrs/v5/model/job_base_info.py +35 -6
- huaweicloudsdkdrs/v5/model/job_detail_resp.py +122 -6
- huaweicloudsdkdrs/v5/model/job_endpoint_info.py +3 -3
- huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/job_node_vpc_info.py +3 -3
- huaweicloudsdkdrs/v5/model/list_connections_request.py +492 -0
- huaweicloudsdkdrs/v5/model/list_connections_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_request.py +288 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py +463 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_request.py +201 -0
- huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_response.py +145 -0
- huaweicloudsdkdrs/v5/model/lists_agency_permissions_request.py +201 -0
- huaweicloudsdkdrs/v5/model/lists_agency_permissions_response.py +145 -0
- huaweicloudsdkdrs/v5/model/modify_compare_policy_req.py +288 -0
- huaweicloudsdkdrs/v5/model/modify_connection_request.py +168 -0
- huaweicloudsdkdrs/v5/model/modify_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/modify_offline_task_req.py +143 -0
- huaweicloudsdkdrs/v5/model/objects_health_compare_overview_info.py +202 -0
- huaweicloudsdkdrs/v5/model/offline_task_info.py +342 -0
- huaweicloudsdkdrs/v5/model/policy_config.py +32 -3
- huaweicloudsdkdrs/v5/model/public_ip_config.py +170 -0
- huaweicloudsdkdrs/v5/model/replay_config_info.py +282 -0
- huaweicloudsdkdrs/v5/model/replay_error_classification.py +201 -0
- huaweicloudsdkdrs/v5/model/replay_error_sql_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/replay_error_sql_template_resp.py +289 -0
- huaweicloudsdkdrs/v5/model/replay_shard_statics_resp.py +226 -0
- huaweicloudsdkdrs/v5/model/replay_slow_sql_resp.py +202 -0
- huaweicloudsdkdrs/v5/model/replay_slow_sql_template_resp.py +402 -0
- huaweicloudsdkdrs/v5/model/replaying_sql_resp.py +318 -0
- huaweicloudsdkdrs/v5/model/resource_tag.py +3 -3
- huaweicloudsdkdrs/v5/model/show_agency_info_request.py +143 -0
- huaweicloudsdkdrs/v5/model/show_agency_info_response.py +174 -0
- huaweicloudsdkdrs/v5/model/show_compare_policy_response.py +3 -3
- huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +35 -6
- huaweicloudsdkdrs/v5/model/show_db_object_template_progress_request.py +32 -3
- huaweicloudsdkdrs/v5/model/show_db_object_template_result_request.py +32 -3
- huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_request.py +171 -0
- huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_response.py +261 -0
- huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_request.py +171 -0
- huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_response.py +116 -0
- huaweicloudsdkdrs/v5/model/show_job_detail_request.py +3 -3
- huaweicloudsdkdrs/v5/model/show_position_result_response.py +32 -3
- huaweicloudsdkdrs/v5/model/show_replay_results_request.py +461 -0
- huaweicloudsdkdrs/v5/model/show_replay_results_response.py +319 -0
- huaweicloudsdkdrs/v5/model/show_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/show_replication_job_response.py +390 -0
- huaweicloudsdkdrs/v5/model/show_support_object_type_response.py +32 -3
- huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +35 -6
- huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_request.py +168 -0
- huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/model/to_period_req.py +198 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_request_body.py +142 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_compare_policy_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_compare_policy_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_connection_req.py +327 -0
- huaweicloudsdkdrs/v5/model/update_data_progress_response.py +35 -6
- huaweicloudsdkdrs/v5/model/update_job_req.py +3 -3
- huaweicloudsdkdrs/v5/model/update_replication_job_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_user_driver_req.py +142 -0
- huaweicloudsdkdrs/v5/model/upload_db_object_template_request.py +3 -3
- huaweicloudsdkdrs/v5/model/upload_jdbc_driver_request_body.py +3 -3
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request.py +168 -0
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request_body.py +114 -0
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/region/drs_region.py +15 -0
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/RECORD +191 -63
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/WHEEL +1 -1
- huaweicloudsdkdrs/v5/model/create_job_resp.py +0 -227
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,376 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CompareJobInfo:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'id': 'str',
|
21
|
+
'type': 'str',
|
22
|
+
'options': 'dict(str, str)',
|
23
|
+
'start_time': 'str',
|
24
|
+
'end_time': 'str',
|
25
|
+
'status': 'str',
|
26
|
+
'export_status': 'str',
|
27
|
+
'report_remain_seconds': 'int',
|
28
|
+
'compare_job_tag': 'dict(str, str)',
|
29
|
+
'proportion_value': 'str'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'id': 'id',
|
34
|
+
'type': 'type',
|
35
|
+
'options': 'options',
|
36
|
+
'start_time': 'start_time',
|
37
|
+
'end_time': 'end_time',
|
38
|
+
'status': 'status',
|
39
|
+
'export_status': 'export_status',
|
40
|
+
'report_remain_seconds': 'report_remain_seconds',
|
41
|
+
'compare_job_tag': 'compare_job_tag',
|
42
|
+
'proportion_value': 'proportion_value'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, id=None, type=None, options=None, start_time=None, end_time=None, status=None, export_status=None, report_remain_seconds=None, compare_job_tag=None, proportion_value=None):
|
46
|
+
"""CompareJobInfo
|
47
|
+
|
48
|
+
The model defined in huaweicloud sdk
|
49
|
+
|
50
|
+
:param id: 对比任务ID。
|
51
|
+
:type id: str
|
52
|
+
:param type: 对比类型。 - lines:行数对比 - contents:内容对比 - random:抽样对比,当前仅支持gaussdbv5、gaussdbv5-to-postgresql、gaussdbv5ha-to-postgresql链路。
|
53
|
+
:type type: str
|
54
|
+
:param options: 对比配置项,key-value形式。 内容对比支持以下配置项: - 对比方式配置,key:contentCompareType,value:dynamic表示动态对比,static表示静态对比。 - lob字段对比类型配置,key:lobCompare,value:ignore表示忽略,length表示长度对比。 行数对比支持以下配置项: - 对比策略配置,多表归一情况下适用,key:comparePolicy,value:normal表示正常对比,manyToOne表示多对一对比。
|
55
|
+
:type options: dict(str, str)
|
56
|
+
:param start_time: 开始时间,UTC时间,例如:2020-09-01T18:50:20Z。
|
57
|
+
:type start_time: str
|
58
|
+
:param end_time: 结束时间,UTC时间,例如:2020-09-01T18:50:20Z。
|
59
|
+
:type end_time: str
|
60
|
+
:param status: 对比任务的状态。 - RUNNING-运行中 - WAITING_FOR_RUNNING-等待启动中 - SUCCESSFUL-完成 - FAILED-失败 - CANCELLED-已取消 - TIMEOUT_INTERRUPT-超时中断 - FULL_DOING-全量校验中 - INCRE_DOING-增量校验中
|
61
|
+
:type status: str
|
62
|
+
:param export_status: 导出对比结果状态。 - INIT:初始状态 - EXPORTING:对比结果导出中 - EXPORT_COMPLETE:对比结果导出完成 - EXPORT_COMMON_FAILED:对比结果导出失败
|
63
|
+
:type export_status: str
|
64
|
+
:param report_remain_seconds: 导出比对结果有效期剩余时间。
|
65
|
+
:type report_remain_seconds: int
|
66
|
+
:param compare_job_tag: 对比任务的标签,当前仅涉及对比策略时返回。
|
67
|
+
:type compare_job_tag: dict(str, str)
|
68
|
+
:param proportion_value: 抽样比例,对比类型为抽样对比时填写。
|
69
|
+
:type proportion_value: str
|
70
|
+
"""
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
self._id = None
|
75
|
+
self._type = None
|
76
|
+
self._options = None
|
77
|
+
self._start_time = None
|
78
|
+
self._end_time = None
|
79
|
+
self._status = None
|
80
|
+
self._export_status = None
|
81
|
+
self._report_remain_seconds = None
|
82
|
+
self._compare_job_tag = None
|
83
|
+
self._proportion_value = None
|
84
|
+
self.discriminator = None
|
85
|
+
|
86
|
+
if id is not None:
|
87
|
+
self.id = id
|
88
|
+
if type is not None:
|
89
|
+
self.type = type
|
90
|
+
if options is not None:
|
91
|
+
self.options = options
|
92
|
+
if start_time is not None:
|
93
|
+
self.start_time = start_time
|
94
|
+
if end_time is not None:
|
95
|
+
self.end_time = end_time
|
96
|
+
if status is not None:
|
97
|
+
self.status = status
|
98
|
+
if export_status is not None:
|
99
|
+
self.export_status = export_status
|
100
|
+
if report_remain_seconds is not None:
|
101
|
+
self.report_remain_seconds = report_remain_seconds
|
102
|
+
if compare_job_tag is not None:
|
103
|
+
self.compare_job_tag = compare_job_tag
|
104
|
+
if proportion_value is not None:
|
105
|
+
self.proportion_value = proportion_value
|
106
|
+
|
107
|
+
@property
|
108
|
+
def id(self):
|
109
|
+
"""Gets the id of this CompareJobInfo.
|
110
|
+
|
111
|
+
对比任务ID。
|
112
|
+
|
113
|
+
:return: The id of this CompareJobInfo.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._id
|
117
|
+
|
118
|
+
@id.setter
|
119
|
+
def id(self, id):
|
120
|
+
"""Sets the id of this CompareJobInfo.
|
121
|
+
|
122
|
+
对比任务ID。
|
123
|
+
|
124
|
+
:param id: The id of this CompareJobInfo.
|
125
|
+
:type id: str
|
126
|
+
"""
|
127
|
+
self._id = id
|
128
|
+
|
129
|
+
@property
|
130
|
+
def type(self):
|
131
|
+
"""Gets the type of this CompareJobInfo.
|
132
|
+
|
133
|
+
对比类型。 - lines:行数对比 - contents:内容对比 - random:抽样对比,当前仅支持gaussdbv5、gaussdbv5-to-postgresql、gaussdbv5ha-to-postgresql链路。
|
134
|
+
|
135
|
+
:return: The type of this CompareJobInfo.
|
136
|
+
:rtype: str
|
137
|
+
"""
|
138
|
+
return self._type
|
139
|
+
|
140
|
+
@type.setter
|
141
|
+
def type(self, type):
|
142
|
+
"""Sets the type of this CompareJobInfo.
|
143
|
+
|
144
|
+
对比类型。 - lines:行数对比 - contents:内容对比 - random:抽样对比,当前仅支持gaussdbv5、gaussdbv5-to-postgresql、gaussdbv5ha-to-postgresql链路。
|
145
|
+
|
146
|
+
:param type: The type of this CompareJobInfo.
|
147
|
+
:type type: str
|
148
|
+
"""
|
149
|
+
self._type = type
|
150
|
+
|
151
|
+
@property
|
152
|
+
def options(self):
|
153
|
+
"""Gets the options of this CompareJobInfo.
|
154
|
+
|
155
|
+
对比配置项,key-value形式。 内容对比支持以下配置项: - 对比方式配置,key:contentCompareType,value:dynamic表示动态对比,static表示静态对比。 - lob字段对比类型配置,key:lobCompare,value:ignore表示忽略,length表示长度对比。 行数对比支持以下配置项: - 对比策略配置,多表归一情况下适用,key:comparePolicy,value:normal表示正常对比,manyToOne表示多对一对比。
|
156
|
+
|
157
|
+
:return: The options of this CompareJobInfo.
|
158
|
+
:rtype: dict(str, str)
|
159
|
+
"""
|
160
|
+
return self._options
|
161
|
+
|
162
|
+
@options.setter
|
163
|
+
def options(self, options):
|
164
|
+
"""Sets the options of this CompareJobInfo.
|
165
|
+
|
166
|
+
对比配置项,key-value形式。 内容对比支持以下配置项: - 对比方式配置,key:contentCompareType,value:dynamic表示动态对比,static表示静态对比。 - lob字段对比类型配置,key:lobCompare,value:ignore表示忽略,length表示长度对比。 行数对比支持以下配置项: - 对比策略配置,多表归一情况下适用,key:comparePolicy,value:normal表示正常对比,manyToOne表示多对一对比。
|
167
|
+
|
168
|
+
:param options: The options of this CompareJobInfo.
|
169
|
+
:type options: dict(str, str)
|
170
|
+
"""
|
171
|
+
self._options = options
|
172
|
+
|
173
|
+
@property
|
174
|
+
def start_time(self):
|
175
|
+
"""Gets the start_time of this CompareJobInfo.
|
176
|
+
|
177
|
+
开始时间,UTC时间,例如:2020-09-01T18:50:20Z。
|
178
|
+
|
179
|
+
:return: The start_time of this CompareJobInfo.
|
180
|
+
:rtype: str
|
181
|
+
"""
|
182
|
+
return self._start_time
|
183
|
+
|
184
|
+
@start_time.setter
|
185
|
+
def start_time(self, start_time):
|
186
|
+
"""Sets the start_time of this CompareJobInfo.
|
187
|
+
|
188
|
+
开始时间,UTC时间,例如:2020-09-01T18:50:20Z。
|
189
|
+
|
190
|
+
:param start_time: The start_time of this CompareJobInfo.
|
191
|
+
:type start_time: str
|
192
|
+
"""
|
193
|
+
self._start_time = start_time
|
194
|
+
|
195
|
+
@property
|
196
|
+
def end_time(self):
|
197
|
+
"""Gets the end_time of this CompareJobInfo.
|
198
|
+
|
199
|
+
结束时间,UTC时间,例如:2020-09-01T18:50:20Z。
|
200
|
+
|
201
|
+
:return: The end_time of this CompareJobInfo.
|
202
|
+
:rtype: str
|
203
|
+
"""
|
204
|
+
return self._end_time
|
205
|
+
|
206
|
+
@end_time.setter
|
207
|
+
def end_time(self, end_time):
|
208
|
+
"""Sets the end_time of this CompareJobInfo.
|
209
|
+
|
210
|
+
结束时间,UTC时间,例如:2020-09-01T18:50:20Z。
|
211
|
+
|
212
|
+
:param end_time: The end_time of this CompareJobInfo.
|
213
|
+
:type end_time: str
|
214
|
+
"""
|
215
|
+
self._end_time = end_time
|
216
|
+
|
217
|
+
@property
|
218
|
+
def status(self):
|
219
|
+
"""Gets the status of this CompareJobInfo.
|
220
|
+
|
221
|
+
对比任务的状态。 - RUNNING-运行中 - WAITING_FOR_RUNNING-等待启动中 - SUCCESSFUL-完成 - FAILED-失败 - CANCELLED-已取消 - TIMEOUT_INTERRUPT-超时中断 - FULL_DOING-全量校验中 - INCRE_DOING-增量校验中
|
222
|
+
|
223
|
+
:return: The status of this CompareJobInfo.
|
224
|
+
:rtype: str
|
225
|
+
"""
|
226
|
+
return self._status
|
227
|
+
|
228
|
+
@status.setter
|
229
|
+
def status(self, status):
|
230
|
+
"""Sets the status of this CompareJobInfo.
|
231
|
+
|
232
|
+
对比任务的状态。 - RUNNING-运行中 - WAITING_FOR_RUNNING-等待启动中 - SUCCESSFUL-完成 - FAILED-失败 - CANCELLED-已取消 - TIMEOUT_INTERRUPT-超时中断 - FULL_DOING-全量校验中 - INCRE_DOING-增量校验中
|
233
|
+
|
234
|
+
:param status: The status of this CompareJobInfo.
|
235
|
+
:type status: str
|
236
|
+
"""
|
237
|
+
self._status = status
|
238
|
+
|
239
|
+
@property
|
240
|
+
def export_status(self):
|
241
|
+
"""Gets the export_status of this CompareJobInfo.
|
242
|
+
|
243
|
+
导出对比结果状态。 - INIT:初始状态 - EXPORTING:对比结果导出中 - EXPORT_COMPLETE:对比结果导出完成 - EXPORT_COMMON_FAILED:对比结果导出失败
|
244
|
+
|
245
|
+
:return: The export_status of this CompareJobInfo.
|
246
|
+
:rtype: str
|
247
|
+
"""
|
248
|
+
return self._export_status
|
249
|
+
|
250
|
+
@export_status.setter
|
251
|
+
def export_status(self, export_status):
|
252
|
+
"""Sets the export_status of this CompareJobInfo.
|
253
|
+
|
254
|
+
导出对比结果状态。 - INIT:初始状态 - EXPORTING:对比结果导出中 - EXPORT_COMPLETE:对比结果导出完成 - EXPORT_COMMON_FAILED:对比结果导出失败
|
255
|
+
|
256
|
+
:param export_status: The export_status of this CompareJobInfo.
|
257
|
+
:type export_status: str
|
258
|
+
"""
|
259
|
+
self._export_status = export_status
|
260
|
+
|
261
|
+
@property
|
262
|
+
def report_remain_seconds(self):
|
263
|
+
"""Gets the report_remain_seconds of this CompareJobInfo.
|
264
|
+
|
265
|
+
导出比对结果有效期剩余时间。
|
266
|
+
|
267
|
+
:return: The report_remain_seconds of this CompareJobInfo.
|
268
|
+
:rtype: int
|
269
|
+
"""
|
270
|
+
return self._report_remain_seconds
|
271
|
+
|
272
|
+
@report_remain_seconds.setter
|
273
|
+
def report_remain_seconds(self, report_remain_seconds):
|
274
|
+
"""Sets the report_remain_seconds of this CompareJobInfo.
|
275
|
+
|
276
|
+
导出比对结果有效期剩余时间。
|
277
|
+
|
278
|
+
:param report_remain_seconds: The report_remain_seconds of this CompareJobInfo.
|
279
|
+
:type report_remain_seconds: int
|
280
|
+
"""
|
281
|
+
self._report_remain_seconds = report_remain_seconds
|
282
|
+
|
283
|
+
@property
|
284
|
+
def compare_job_tag(self):
|
285
|
+
"""Gets the compare_job_tag of this CompareJobInfo.
|
286
|
+
|
287
|
+
对比任务的标签,当前仅涉及对比策略时返回。
|
288
|
+
|
289
|
+
:return: The compare_job_tag of this CompareJobInfo.
|
290
|
+
:rtype: dict(str, str)
|
291
|
+
"""
|
292
|
+
return self._compare_job_tag
|
293
|
+
|
294
|
+
@compare_job_tag.setter
|
295
|
+
def compare_job_tag(self, compare_job_tag):
|
296
|
+
"""Sets the compare_job_tag of this CompareJobInfo.
|
297
|
+
|
298
|
+
对比任务的标签,当前仅涉及对比策略时返回。
|
299
|
+
|
300
|
+
:param compare_job_tag: The compare_job_tag of this CompareJobInfo.
|
301
|
+
:type compare_job_tag: dict(str, str)
|
302
|
+
"""
|
303
|
+
self._compare_job_tag = compare_job_tag
|
304
|
+
|
305
|
+
@property
|
306
|
+
def proportion_value(self):
|
307
|
+
"""Gets the proportion_value of this CompareJobInfo.
|
308
|
+
|
309
|
+
抽样比例,对比类型为抽样对比时填写。
|
310
|
+
|
311
|
+
:return: The proportion_value of this CompareJobInfo.
|
312
|
+
:rtype: str
|
313
|
+
"""
|
314
|
+
return self._proportion_value
|
315
|
+
|
316
|
+
@proportion_value.setter
|
317
|
+
def proportion_value(self, proportion_value):
|
318
|
+
"""Sets the proportion_value of this CompareJobInfo.
|
319
|
+
|
320
|
+
抽样比例,对比类型为抽样对比时填写。
|
321
|
+
|
322
|
+
:param proportion_value: The proportion_value of this CompareJobInfo.
|
323
|
+
:type proportion_value: str
|
324
|
+
"""
|
325
|
+
self._proportion_value = proportion_value
|
326
|
+
|
327
|
+
def to_dict(self):
|
328
|
+
"""Returns the model properties as a dict"""
|
329
|
+
result = {}
|
330
|
+
|
331
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
332
|
+
value = getattr(self, attr)
|
333
|
+
if isinstance(value, list):
|
334
|
+
result[attr] = list(map(
|
335
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
336
|
+
value
|
337
|
+
))
|
338
|
+
elif hasattr(value, "to_dict"):
|
339
|
+
result[attr] = value.to_dict()
|
340
|
+
elif isinstance(value, dict):
|
341
|
+
result[attr] = dict(map(
|
342
|
+
lambda item: (item[0], item[1].to_dict())
|
343
|
+
if hasattr(item[1], "to_dict") else item,
|
344
|
+
value.items()
|
345
|
+
))
|
346
|
+
else:
|
347
|
+
if attr in self.sensitive_list:
|
348
|
+
result[attr] = "****"
|
349
|
+
else:
|
350
|
+
result[attr] = value
|
351
|
+
|
352
|
+
return result
|
353
|
+
|
354
|
+
def to_str(self):
|
355
|
+
"""Returns the string representation of the model"""
|
356
|
+
import simplejson as json
|
357
|
+
if six.PY2:
|
358
|
+
import sys
|
359
|
+
reload(sys)
|
360
|
+
sys.setdefaultencoding("utf-8")
|
361
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
362
|
+
|
363
|
+
def __repr__(self):
|
364
|
+
"""For `print`"""
|
365
|
+
return self.to_str()
|
366
|
+
|
367
|
+
def __eq__(self, other):
|
368
|
+
"""Returns true if both objects are equal"""
|
369
|
+
if not isinstance(other, CompareJobInfo):
|
370
|
+
return False
|
371
|
+
|
372
|
+
return self.__dict__ == other.__dict__
|
373
|
+
|
374
|
+
def __ne__(self, other):
|
375
|
+
"""Returns true if both objects are not equal"""
|
376
|
+
return not self == other
|
@@ -0,0 +1,196 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateCompareResultFileRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'x_language': 'str',
|
21
|
+
'region': 'str',
|
22
|
+
'job_id': 'str',
|
23
|
+
'body': 'ExportCompareResultReq'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'x_language': 'X-Language',
|
28
|
+
'region': 'Region',
|
29
|
+
'job_id': 'job_id',
|
30
|
+
'body': 'body'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, x_language=None, region=None, job_id=None, body=None):
|
34
|
+
"""CreateCompareResultFileRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param x_language: 请求语言类型。
|
39
|
+
:type x_language: str
|
40
|
+
:param region: 区域ID,例如:cn-north-4。
|
41
|
+
:type region: str
|
42
|
+
:param job_id: 任务ID。
|
43
|
+
:type job_id: str
|
44
|
+
:param body: Body of the CreateCompareResultFileRequest
|
45
|
+
:type body: :class:`huaweicloudsdkdrs.v3.ExportCompareResultReq`
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._x_language = None
|
51
|
+
self._region = None
|
52
|
+
self._job_id = None
|
53
|
+
self._body = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if x_language is not None:
|
57
|
+
self.x_language = x_language
|
58
|
+
self.region = region
|
59
|
+
self.job_id = job_id
|
60
|
+
if body is not None:
|
61
|
+
self.body = body
|
62
|
+
|
63
|
+
@property
|
64
|
+
def x_language(self):
|
65
|
+
"""Gets the x_language of this CreateCompareResultFileRequest.
|
66
|
+
|
67
|
+
请求语言类型。
|
68
|
+
|
69
|
+
:return: The x_language of this CreateCompareResultFileRequest.
|
70
|
+
:rtype: str
|
71
|
+
"""
|
72
|
+
return self._x_language
|
73
|
+
|
74
|
+
@x_language.setter
|
75
|
+
def x_language(self, x_language):
|
76
|
+
"""Sets the x_language of this CreateCompareResultFileRequest.
|
77
|
+
|
78
|
+
请求语言类型。
|
79
|
+
|
80
|
+
:param x_language: The x_language of this CreateCompareResultFileRequest.
|
81
|
+
:type x_language: str
|
82
|
+
"""
|
83
|
+
self._x_language = x_language
|
84
|
+
|
85
|
+
@property
|
86
|
+
def region(self):
|
87
|
+
"""Gets the region of this CreateCompareResultFileRequest.
|
88
|
+
|
89
|
+
区域ID,例如:cn-north-4。
|
90
|
+
|
91
|
+
:return: The region of this CreateCompareResultFileRequest.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._region
|
95
|
+
|
96
|
+
@region.setter
|
97
|
+
def region(self, region):
|
98
|
+
"""Sets the region of this CreateCompareResultFileRequest.
|
99
|
+
|
100
|
+
区域ID,例如:cn-north-4。
|
101
|
+
|
102
|
+
:param region: The region of this CreateCompareResultFileRequest.
|
103
|
+
:type region: str
|
104
|
+
"""
|
105
|
+
self._region = region
|
106
|
+
|
107
|
+
@property
|
108
|
+
def job_id(self):
|
109
|
+
"""Gets the job_id of this CreateCompareResultFileRequest.
|
110
|
+
|
111
|
+
任务ID。
|
112
|
+
|
113
|
+
:return: The job_id of this CreateCompareResultFileRequest.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._job_id
|
117
|
+
|
118
|
+
@job_id.setter
|
119
|
+
def job_id(self, job_id):
|
120
|
+
"""Sets the job_id of this CreateCompareResultFileRequest.
|
121
|
+
|
122
|
+
任务ID。
|
123
|
+
|
124
|
+
:param job_id: The job_id of this CreateCompareResultFileRequest.
|
125
|
+
:type job_id: str
|
126
|
+
"""
|
127
|
+
self._job_id = job_id
|
128
|
+
|
129
|
+
@property
|
130
|
+
def body(self):
|
131
|
+
"""Gets the body of this CreateCompareResultFileRequest.
|
132
|
+
|
133
|
+
:return: The body of this CreateCompareResultFileRequest.
|
134
|
+
:rtype: :class:`huaweicloudsdkdrs.v3.ExportCompareResultReq`
|
135
|
+
"""
|
136
|
+
return self._body
|
137
|
+
|
138
|
+
@body.setter
|
139
|
+
def body(self, body):
|
140
|
+
"""Sets the body of this CreateCompareResultFileRequest.
|
141
|
+
|
142
|
+
:param body: The body of this CreateCompareResultFileRequest.
|
143
|
+
:type body: :class:`huaweicloudsdkdrs.v3.ExportCompareResultReq`
|
144
|
+
"""
|
145
|
+
self._body = body
|
146
|
+
|
147
|
+
def to_dict(self):
|
148
|
+
"""Returns the model properties as a dict"""
|
149
|
+
result = {}
|
150
|
+
|
151
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
152
|
+
value = getattr(self, attr)
|
153
|
+
if isinstance(value, list):
|
154
|
+
result[attr] = list(map(
|
155
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
156
|
+
value
|
157
|
+
))
|
158
|
+
elif hasattr(value, "to_dict"):
|
159
|
+
result[attr] = value.to_dict()
|
160
|
+
elif isinstance(value, dict):
|
161
|
+
result[attr] = dict(map(
|
162
|
+
lambda item: (item[0], item[1].to_dict())
|
163
|
+
if hasattr(item[1], "to_dict") else item,
|
164
|
+
value.items()
|
165
|
+
))
|
166
|
+
else:
|
167
|
+
if attr in self.sensitive_list:
|
168
|
+
result[attr] = "****"
|
169
|
+
else:
|
170
|
+
result[attr] = value
|
171
|
+
|
172
|
+
return result
|
173
|
+
|
174
|
+
def to_str(self):
|
175
|
+
"""Returns the string representation of the model"""
|
176
|
+
import simplejson as json
|
177
|
+
if six.PY2:
|
178
|
+
import sys
|
179
|
+
reload(sys)
|
180
|
+
sys.setdefaultencoding("utf-8")
|
181
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
182
|
+
|
183
|
+
def __repr__(self):
|
184
|
+
"""For `print`"""
|
185
|
+
return self.to_str()
|
186
|
+
|
187
|
+
def __eq__(self, other):
|
188
|
+
"""Returns true if both objects are equal"""
|
189
|
+
if not isinstance(other, CreateCompareResultFileRequest):
|
190
|
+
return False
|
191
|
+
|
192
|
+
return self.__dict__ == other.__dict__
|
193
|
+
|
194
|
+
def __ne__(self, other):
|
195
|
+
"""Returns true if both objects are not equal"""
|
196
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class CreateCompareResultFileResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'body': 'object'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'body': 'body'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, body=None):
|
29
|
+
"""CreateCompareResultFileResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param body: 空响应体。
|
34
|
+
:type body: object
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateCompareResultFileResponse, self).__init__()
|
38
|
+
|
39
|
+
self._body = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if body is not None:
|
43
|
+
self.body = body
|
44
|
+
|
45
|
+
@property
|
46
|
+
def body(self):
|
47
|
+
"""Gets the body of this CreateCompareResultFileResponse.
|
48
|
+
|
49
|
+
空响应体。
|
50
|
+
|
51
|
+
:return: The body of this CreateCompareResultFileResponse.
|
52
|
+
:rtype: object
|
53
|
+
"""
|
54
|
+
return self._body
|
55
|
+
|
56
|
+
@body.setter
|
57
|
+
def body(self, body):
|
58
|
+
"""Sets the body of this CreateCompareResultFileResponse.
|
59
|
+
|
60
|
+
空响应体。
|
61
|
+
|
62
|
+
:param body: The body of this CreateCompareResultFileResponse.
|
63
|
+
:type body: object
|
64
|
+
"""
|
65
|
+
self._body = body
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, CreateCompareResultFileResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|