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.
- huaweicloudsdkdrs/v3/__init__.py +43 -0
- huaweicloudsdkdrs/v3/drs_async_client.py +1087 -65
- huaweicloudsdkdrs/v3/drs_client.py +1087 -65
- huaweicloudsdkdrs/v3/model/__init__.py +43 -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 +3 -3
- 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 +41 -12
- 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/kafka_security.py +290 -29
- 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/query_job_resp.py +51 -22
- huaweicloudsdkdrs/v3/model/query_jobs_req.py +3 -3
- 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/table_line_compare_result_info.py +289 -0
- huaweicloudsdkdrs/v3/region/drs_region.py +15 -0
- huaweicloudsdkdrs/v5/__init__.py +79 -1
- huaweicloudsdkdrs/v5/drs_async_client.py +2408 -750
- huaweicloudsdkdrs/v5/drs_client.py +2408 -750
- huaweicloudsdkdrs/v5/model/__init__.py +79 -1
- huaweicloudsdkdrs/v5/model/action_params.py +57 -3
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/agency_role.py +144 -0
- huaweicloudsdkdrs/v5/model/backup_file_info.py +201 -0
- huaweicloudsdkdrs/v5/model/backup_file_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_info.py +171 -0
- huaweicloudsdkdrs/v5/model/backup_info_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_job_base_info.py +229 -0
- huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py +172 -0
- huaweicloudsdkdrs/v5/model/backup_restore_option_info.py +315 -0
- huaweicloudsdkdrs/v5/model/base_endpoint.py +3 -3
- huaweicloudsdkdrs/v5/model/change_to_period_request.py +168 -0
- huaweicloudsdkdrs/v5/model/change_to_period_response.py +116 -0
- huaweicloudsdkdrs/v5/model/check_data_filter_response.py +3 -3
- huaweicloudsdkdrs/v5/model/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 +3 -3
- huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_position_async_response.py +3 -3
- huaweicloudsdkdrs/v5/model/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_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/health_compare_job.py +9 -9
- huaweicloudsdkdrs/v5/model/job_base_info.py +35 -6
- huaweicloudsdkdrs/v5/model/job_detail_resp.py +35 -6
- huaweicloudsdkdrs/v5/model/job_endpoint_info.py +3 -3
- huaweicloudsdkdrs/v5/model/job_list_resp.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/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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/RECORD +180 -59
- {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/WHEEL +1 -1
- huaweicloudsdkdrs/v5/model/create_job_resp.py +0 -227
- {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,171 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class StartPromptlyDataLevelTableCompareJobRequest:
|
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
|
+
'job_id': 'str',
|
22
|
+
'compare_job_id': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'job_id': 'job_id',
|
28
|
+
'compare_job_id': 'compare_job_id'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, job_id=None, compare_job_id=None):
|
32
|
+
"""StartPromptlyDataLevelTableCompareJobRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: 请求语言类型。
|
37
|
+
:type x_language: str
|
38
|
+
:param job_id: 任务ID。
|
39
|
+
:type job_id: str
|
40
|
+
:param compare_job_id: 对比任务ID。
|
41
|
+
:type compare_job_id: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._job_id = None
|
48
|
+
self._compare_job_id = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
self.job_id = job_id
|
54
|
+
self.compare_job_id = compare_job_id
|
55
|
+
|
56
|
+
@property
|
57
|
+
def x_language(self):
|
58
|
+
"""Gets the x_language of this StartPromptlyDataLevelTableCompareJobRequest.
|
59
|
+
|
60
|
+
请求语言类型。
|
61
|
+
|
62
|
+
:return: The x_language of this StartPromptlyDataLevelTableCompareJobRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._x_language
|
66
|
+
|
67
|
+
@x_language.setter
|
68
|
+
def x_language(self, x_language):
|
69
|
+
"""Sets the x_language of this StartPromptlyDataLevelTableCompareJobRequest.
|
70
|
+
|
71
|
+
请求语言类型。
|
72
|
+
|
73
|
+
:param x_language: The x_language of this StartPromptlyDataLevelTableCompareJobRequest.
|
74
|
+
:type x_language: str
|
75
|
+
"""
|
76
|
+
self._x_language = x_language
|
77
|
+
|
78
|
+
@property
|
79
|
+
def job_id(self):
|
80
|
+
"""Gets the job_id of this StartPromptlyDataLevelTableCompareJobRequest.
|
81
|
+
|
82
|
+
任务ID。
|
83
|
+
|
84
|
+
:return: The job_id of this StartPromptlyDataLevelTableCompareJobRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._job_id
|
88
|
+
|
89
|
+
@job_id.setter
|
90
|
+
def job_id(self, job_id):
|
91
|
+
"""Sets the job_id of this StartPromptlyDataLevelTableCompareJobRequest.
|
92
|
+
|
93
|
+
任务ID。
|
94
|
+
|
95
|
+
:param job_id: The job_id of this StartPromptlyDataLevelTableCompareJobRequest.
|
96
|
+
:type job_id: str
|
97
|
+
"""
|
98
|
+
self._job_id = job_id
|
99
|
+
|
100
|
+
@property
|
101
|
+
def compare_job_id(self):
|
102
|
+
"""Gets the compare_job_id of this StartPromptlyDataLevelTableCompareJobRequest.
|
103
|
+
|
104
|
+
对比任务ID。
|
105
|
+
|
106
|
+
:return: The compare_job_id of this StartPromptlyDataLevelTableCompareJobRequest.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._compare_job_id
|
110
|
+
|
111
|
+
@compare_job_id.setter
|
112
|
+
def compare_job_id(self, compare_job_id):
|
113
|
+
"""Sets the compare_job_id of this StartPromptlyDataLevelTableCompareJobRequest.
|
114
|
+
|
115
|
+
对比任务ID。
|
116
|
+
|
117
|
+
:param compare_job_id: The compare_job_id of this StartPromptlyDataLevelTableCompareJobRequest.
|
118
|
+
:type compare_job_id: str
|
119
|
+
"""
|
120
|
+
self._compare_job_id = compare_job_id
|
121
|
+
|
122
|
+
def to_dict(self):
|
123
|
+
"""Returns the model properties as a dict"""
|
124
|
+
result = {}
|
125
|
+
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
127
|
+
value = getattr(self, attr)
|
128
|
+
if isinstance(value, list):
|
129
|
+
result[attr] = list(map(
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
131
|
+
value
|
132
|
+
))
|
133
|
+
elif hasattr(value, "to_dict"):
|
134
|
+
result[attr] = value.to_dict()
|
135
|
+
elif isinstance(value, dict):
|
136
|
+
result[attr] = dict(map(
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
139
|
+
value.items()
|
140
|
+
))
|
141
|
+
else:
|
142
|
+
if attr in self.sensitive_list:
|
143
|
+
result[attr] = "****"
|
144
|
+
else:
|
145
|
+
result[attr] = value
|
146
|
+
|
147
|
+
return result
|
148
|
+
|
149
|
+
def to_str(self):
|
150
|
+
"""Returns the string representation of the model"""
|
151
|
+
import simplejson as json
|
152
|
+
if six.PY2:
|
153
|
+
import sys
|
154
|
+
reload(sys)
|
155
|
+
sys.setdefaultencoding("utf-8")
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
157
|
+
|
158
|
+
def __repr__(self):
|
159
|
+
"""For `print`"""
|
160
|
+
return self.to_str()
|
161
|
+
|
162
|
+
def __eq__(self, other):
|
163
|
+
"""Returns true if both objects are equal"""
|
164
|
+
if not isinstance(other, StartPromptlyDataLevelTableCompareJobRequest):
|
165
|
+
return False
|
166
|
+
|
167
|
+
return self.__dict__ == other.__dict__
|
168
|
+
|
169
|
+
def __ne__(self, other):
|
170
|
+
"""Returns true if both objects are not equal"""
|
171
|
+
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 StartPromptlyDataLevelTableCompareJobResponse(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
|
+
"""StartPromptlyDataLevelTableCompareJobResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param body: 空响应体。
|
34
|
+
:type body: object
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(StartPromptlyDataLevelTableCompareJobResponse, 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 StartPromptlyDataLevelTableCompareJobResponse.
|
48
|
+
|
49
|
+
空响应体。
|
50
|
+
|
51
|
+
:return: The body of this StartPromptlyDataLevelTableCompareJobResponse.
|
52
|
+
:rtype: object
|
53
|
+
"""
|
54
|
+
return self._body
|
55
|
+
|
56
|
+
@body.setter
|
57
|
+
def body(self, body):
|
58
|
+
"""Sets the body of this StartPromptlyDataLevelTableCompareJobResponse.
|
59
|
+
|
60
|
+
空响应体。
|
61
|
+
|
62
|
+
:param body: The body of this StartPromptlyDataLevelTableCompareJobResponse.
|
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, StartPromptlyDataLevelTableCompareJobResponse):
|
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
|
@@ -0,0 +1,289 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class TableLineCompareResultInfo:
|
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
|
+
'source_table_name': 'str',
|
21
|
+
'source_row_num': 'int',
|
22
|
+
'target_table_name': 'str',
|
23
|
+
'target_row_num': 'int',
|
24
|
+
'difference_row_num': 'int',
|
25
|
+
'status': 'int',
|
26
|
+
'compare_line_config_filter': 'str'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'source_table_name': 'source_table_name',
|
31
|
+
'source_row_num': 'source_row_num',
|
32
|
+
'target_table_name': 'target_table_name',
|
33
|
+
'target_row_num': 'target_row_num',
|
34
|
+
'difference_row_num': 'difference_row_num',
|
35
|
+
'status': 'status',
|
36
|
+
'compare_line_config_filter': 'compare_line_config_filter'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, source_table_name=None, source_row_num=None, target_table_name=None, target_row_num=None, difference_row_num=None, status=None, compare_line_config_filter=None):
|
40
|
+
"""TableLineCompareResultInfo
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param source_table_name: 源库表名称
|
45
|
+
:type source_table_name: str
|
46
|
+
:param source_row_num: 源库表行数
|
47
|
+
:type source_row_num: int
|
48
|
+
:param target_table_name: 目标库表名称
|
49
|
+
:type target_table_name: str
|
50
|
+
:param target_row_num: 目标库表行数
|
51
|
+
:type target_row_num: int
|
52
|
+
:param difference_row_num: 行数差异值
|
53
|
+
:type difference_row_num: int
|
54
|
+
:param status: 对比状态。 - 0:对比不一致 - 2:对比一致 - 3:目标库表不存在 - 4:对比失败 - 5:正在对比中 - 6:等待对比中 - 7:任务已取消 - 8:源库为空 - 9:目标库为空 - 10:源库和目标库都为空 - 11:源表不存在 - 12:目标表不存在 - 13:原表和目标表都不存在 - 14:源数据库连接失败 - 15:目标库数据库连接失败 - 16:源数据库执行SQL超时 - 17:目标数据库执行SQL超时 - 18:源数据库执行SQL错误 - 19:目标数据库执行SQL错误 - 20:源库和目标库都不存在 - 21:源库不存在 - 22:目标库不存在 - 23:行数为亿行,未进行对比 - 27:超时
|
55
|
+
:type status: int
|
56
|
+
:param compare_line_config_filter: 行过滤配置条件
|
57
|
+
:type compare_line_config_filter: str
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._source_table_name = None
|
63
|
+
self._source_row_num = None
|
64
|
+
self._target_table_name = None
|
65
|
+
self._target_row_num = None
|
66
|
+
self._difference_row_num = None
|
67
|
+
self._status = None
|
68
|
+
self._compare_line_config_filter = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
if source_table_name is not None:
|
72
|
+
self.source_table_name = source_table_name
|
73
|
+
if source_row_num is not None:
|
74
|
+
self.source_row_num = source_row_num
|
75
|
+
if target_table_name is not None:
|
76
|
+
self.target_table_name = target_table_name
|
77
|
+
if target_row_num is not None:
|
78
|
+
self.target_row_num = target_row_num
|
79
|
+
if difference_row_num is not None:
|
80
|
+
self.difference_row_num = difference_row_num
|
81
|
+
if status is not None:
|
82
|
+
self.status = status
|
83
|
+
if compare_line_config_filter is not None:
|
84
|
+
self.compare_line_config_filter = compare_line_config_filter
|
85
|
+
|
86
|
+
@property
|
87
|
+
def source_table_name(self):
|
88
|
+
"""Gets the source_table_name of this TableLineCompareResultInfo.
|
89
|
+
|
90
|
+
源库表名称
|
91
|
+
|
92
|
+
:return: The source_table_name of this TableLineCompareResultInfo.
|
93
|
+
:rtype: str
|
94
|
+
"""
|
95
|
+
return self._source_table_name
|
96
|
+
|
97
|
+
@source_table_name.setter
|
98
|
+
def source_table_name(self, source_table_name):
|
99
|
+
"""Sets the source_table_name of this TableLineCompareResultInfo.
|
100
|
+
|
101
|
+
源库表名称
|
102
|
+
|
103
|
+
:param source_table_name: The source_table_name of this TableLineCompareResultInfo.
|
104
|
+
:type source_table_name: str
|
105
|
+
"""
|
106
|
+
self._source_table_name = source_table_name
|
107
|
+
|
108
|
+
@property
|
109
|
+
def source_row_num(self):
|
110
|
+
"""Gets the source_row_num of this TableLineCompareResultInfo.
|
111
|
+
|
112
|
+
源库表行数
|
113
|
+
|
114
|
+
:return: The source_row_num of this TableLineCompareResultInfo.
|
115
|
+
:rtype: int
|
116
|
+
"""
|
117
|
+
return self._source_row_num
|
118
|
+
|
119
|
+
@source_row_num.setter
|
120
|
+
def source_row_num(self, source_row_num):
|
121
|
+
"""Sets the source_row_num of this TableLineCompareResultInfo.
|
122
|
+
|
123
|
+
源库表行数
|
124
|
+
|
125
|
+
:param source_row_num: The source_row_num of this TableLineCompareResultInfo.
|
126
|
+
:type source_row_num: int
|
127
|
+
"""
|
128
|
+
self._source_row_num = source_row_num
|
129
|
+
|
130
|
+
@property
|
131
|
+
def target_table_name(self):
|
132
|
+
"""Gets the target_table_name of this TableLineCompareResultInfo.
|
133
|
+
|
134
|
+
目标库表名称
|
135
|
+
|
136
|
+
:return: The target_table_name of this TableLineCompareResultInfo.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._target_table_name
|
140
|
+
|
141
|
+
@target_table_name.setter
|
142
|
+
def target_table_name(self, target_table_name):
|
143
|
+
"""Sets the target_table_name of this TableLineCompareResultInfo.
|
144
|
+
|
145
|
+
目标库表名称
|
146
|
+
|
147
|
+
:param target_table_name: The target_table_name of this TableLineCompareResultInfo.
|
148
|
+
:type target_table_name: str
|
149
|
+
"""
|
150
|
+
self._target_table_name = target_table_name
|
151
|
+
|
152
|
+
@property
|
153
|
+
def target_row_num(self):
|
154
|
+
"""Gets the target_row_num of this TableLineCompareResultInfo.
|
155
|
+
|
156
|
+
目标库表行数
|
157
|
+
|
158
|
+
:return: The target_row_num of this TableLineCompareResultInfo.
|
159
|
+
:rtype: int
|
160
|
+
"""
|
161
|
+
return self._target_row_num
|
162
|
+
|
163
|
+
@target_row_num.setter
|
164
|
+
def target_row_num(self, target_row_num):
|
165
|
+
"""Sets the target_row_num of this TableLineCompareResultInfo.
|
166
|
+
|
167
|
+
目标库表行数
|
168
|
+
|
169
|
+
:param target_row_num: The target_row_num of this TableLineCompareResultInfo.
|
170
|
+
:type target_row_num: int
|
171
|
+
"""
|
172
|
+
self._target_row_num = target_row_num
|
173
|
+
|
174
|
+
@property
|
175
|
+
def difference_row_num(self):
|
176
|
+
"""Gets the difference_row_num of this TableLineCompareResultInfo.
|
177
|
+
|
178
|
+
行数差异值
|
179
|
+
|
180
|
+
:return: The difference_row_num of this TableLineCompareResultInfo.
|
181
|
+
:rtype: int
|
182
|
+
"""
|
183
|
+
return self._difference_row_num
|
184
|
+
|
185
|
+
@difference_row_num.setter
|
186
|
+
def difference_row_num(self, difference_row_num):
|
187
|
+
"""Sets the difference_row_num of this TableLineCompareResultInfo.
|
188
|
+
|
189
|
+
行数差异值
|
190
|
+
|
191
|
+
:param difference_row_num: The difference_row_num of this TableLineCompareResultInfo.
|
192
|
+
:type difference_row_num: int
|
193
|
+
"""
|
194
|
+
self._difference_row_num = difference_row_num
|
195
|
+
|
196
|
+
@property
|
197
|
+
def status(self):
|
198
|
+
"""Gets the status of this TableLineCompareResultInfo.
|
199
|
+
|
200
|
+
对比状态。 - 0:对比不一致 - 2:对比一致 - 3:目标库表不存在 - 4:对比失败 - 5:正在对比中 - 6:等待对比中 - 7:任务已取消 - 8:源库为空 - 9:目标库为空 - 10:源库和目标库都为空 - 11:源表不存在 - 12:目标表不存在 - 13:原表和目标表都不存在 - 14:源数据库连接失败 - 15:目标库数据库连接失败 - 16:源数据库执行SQL超时 - 17:目标数据库执行SQL超时 - 18:源数据库执行SQL错误 - 19:目标数据库执行SQL错误 - 20:源库和目标库都不存在 - 21:源库不存在 - 22:目标库不存在 - 23:行数为亿行,未进行对比 - 27:超时
|
201
|
+
|
202
|
+
:return: The status of this TableLineCompareResultInfo.
|
203
|
+
:rtype: int
|
204
|
+
"""
|
205
|
+
return self._status
|
206
|
+
|
207
|
+
@status.setter
|
208
|
+
def status(self, status):
|
209
|
+
"""Sets the status of this TableLineCompareResultInfo.
|
210
|
+
|
211
|
+
对比状态。 - 0:对比不一致 - 2:对比一致 - 3:目标库表不存在 - 4:对比失败 - 5:正在对比中 - 6:等待对比中 - 7:任务已取消 - 8:源库为空 - 9:目标库为空 - 10:源库和目标库都为空 - 11:源表不存在 - 12:目标表不存在 - 13:原表和目标表都不存在 - 14:源数据库连接失败 - 15:目标库数据库连接失败 - 16:源数据库执行SQL超时 - 17:目标数据库执行SQL超时 - 18:源数据库执行SQL错误 - 19:目标数据库执行SQL错误 - 20:源库和目标库都不存在 - 21:源库不存在 - 22:目标库不存在 - 23:行数为亿行,未进行对比 - 27:超时
|
212
|
+
|
213
|
+
:param status: The status of this TableLineCompareResultInfo.
|
214
|
+
:type status: int
|
215
|
+
"""
|
216
|
+
self._status = status
|
217
|
+
|
218
|
+
@property
|
219
|
+
def compare_line_config_filter(self):
|
220
|
+
"""Gets the compare_line_config_filter of this TableLineCompareResultInfo.
|
221
|
+
|
222
|
+
行过滤配置条件
|
223
|
+
|
224
|
+
:return: The compare_line_config_filter of this TableLineCompareResultInfo.
|
225
|
+
:rtype: str
|
226
|
+
"""
|
227
|
+
return self._compare_line_config_filter
|
228
|
+
|
229
|
+
@compare_line_config_filter.setter
|
230
|
+
def compare_line_config_filter(self, compare_line_config_filter):
|
231
|
+
"""Sets the compare_line_config_filter of this TableLineCompareResultInfo.
|
232
|
+
|
233
|
+
行过滤配置条件
|
234
|
+
|
235
|
+
:param compare_line_config_filter: The compare_line_config_filter of this TableLineCompareResultInfo.
|
236
|
+
:type compare_line_config_filter: str
|
237
|
+
"""
|
238
|
+
self._compare_line_config_filter = compare_line_config_filter
|
239
|
+
|
240
|
+
def to_dict(self):
|
241
|
+
"""Returns the model properties as a dict"""
|
242
|
+
result = {}
|
243
|
+
|
244
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
245
|
+
value = getattr(self, attr)
|
246
|
+
if isinstance(value, list):
|
247
|
+
result[attr] = list(map(
|
248
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
249
|
+
value
|
250
|
+
))
|
251
|
+
elif hasattr(value, "to_dict"):
|
252
|
+
result[attr] = value.to_dict()
|
253
|
+
elif isinstance(value, dict):
|
254
|
+
result[attr] = dict(map(
|
255
|
+
lambda item: (item[0], item[1].to_dict())
|
256
|
+
if hasattr(item[1], "to_dict") else item,
|
257
|
+
value.items()
|
258
|
+
))
|
259
|
+
else:
|
260
|
+
if attr in self.sensitive_list:
|
261
|
+
result[attr] = "****"
|
262
|
+
else:
|
263
|
+
result[attr] = value
|
264
|
+
|
265
|
+
return result
|
266
|
+
|
267
|
+
def to_str(self):
|
268
|
+
"""Returns the string representation of the model"""
|
269
|
+
import simplejson as json
|
270
|
+
if six.PY2:
|
271
|
+
import sys
|
272
|
+
reload(sys)
|
273
|
+
sys.setdefaultencoding("utf-8")
|
274
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
275
|
+
|
276
|
+
def __repr__(self):
|
277
|
+
"""For `print`"""
|
278
|
+
return self.to_str()
|
279
|
+
|
280
|
+
def __eq__(self, other):
|
281
|
+
"""Returns true if both objects are equal"""
|
282
|
+
if not isinstance(other, TableLineCompareResultInfo):
|
283
|
+
return False
|
284
|
+
|
285
|
+
return self.__dict__ == other.__dict__
|
286
|
+
|
287
|
+
def __ne__(self, other):
|
288
|
+
"""Returns true if both objects are not equal"""
|
289
|
+
return not self == other
|
@@ -50,6 +50,16 @@ class DrsRegion:
|
|
50
50
|
"https://drs.ap-southeast-4.myhuaweicloud.com")
|
51
51
|
EU_WEST_0 = Region("eu-west-0",
|
52
52
|
"https://drs.eu-west-0.myhuaweicloud.com")
|
53
|
+
RU_MOSCOW_1 = Region("ru-moscow-1",
|
54
|
+
"https://drs.ru-moscow-1.myhuaweicloud.com")
|
55
|
+
AE_AD_1 = Region("ae-ad-1",
|
56
|
+
"https://drs.ae-ad-1.myhuaweicloud.com")
|
57
|
+
MY_KUALALUMPUR_1 = Region("my-kualalumpur-1",
|
58
|
+
"https://drs.my-kualalumpur-1.myhuaweicloud.com")
|
59
|
+
RU_NORTHWEST_2 = Region("ru-northwest-2",
|
60
|
+
"https://drs.ru-northwest-2.myhuaweicloud.com")
|
61
|
+
AP_SOUTHEAST_5 = Region("ap-southeast-5",
|
62
|
+
"https://drs.ap-southeast-5.myhuaweicloud.com")
|
53
63
|
|
54
64
|
static_fields = {
|
55
65
|
"eu-west-101": EU_WEST_101,
|
@@ -74,6 +84,11 @@ class DrsRegion:
|
|
74
84
|
"tr-west-1": TR_WEST_1,
|
75
85
|
"ap-southeast-4": AP_SOUTHEAST_4,
|
76
86
|
"eu-west-0": EU_WEST_0,
|
87
|
+
"ru-moscow-1": RU_MOSCOW_1,
|
88
|
+
"ae-ad-1": AE_AD_1,
|
89
|
+
"my-kualalumpur-1": MY_KUALALUMPUR_1,
|
90
|
+
"ru-northwest-2": RU_NORTHWEST_2,
|
91
|
+
"ap-southeast-5": AP_SOUTHEAST_5,
|
77
92
|
}
|
78
93
|
|
79
94
|
@classmethod
|