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,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 ShowHealthObjectCompareJobOverviewResponse(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
|
+
'compare_result': 'list[ObjectsHealthCompareOverviewInfo]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'compare_result': 'compare_result'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, compare_result=None):
|
29
|
+
"""ShowHealthObjectCompareJobOverviewResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param compare_result: 健康对比对象级对比结果。
|
34
|
+
:type compare_result: list[:class:`huaweicloudsdkdrs.v5.ObjectsHealthCompareOverviewInfo`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowHealthObjectCompareJobOverviewResponse, self).__init__()
|
38
|
+
|
39
|
+
self._compare_result = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if compare_result is not None:
|
43
|
+
self.compare_result = compare_result
|
44
|
+
|
45
|
+
@property
|
46
|
+
def compare_result(self):
|
47
|
+
"""Gets the compare_result of this ShowHealthObjectCompareJobOverviewResponse.
|
48
|
+
|
49
|
+
健康对比对象级对比结果。
|
50
|
+
|
51
|
+
:return: The compare_result of this ShowHealthObjectCompareJobOverviewResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.ObjectsHealthCompareOverviewInfo`]
|
53
|
+
"""
|
54
|
+
return self._compare_result
|
55
|
+
|
56
|
+
@compare_result.setter
|
57
|
+
def compare_result(self, compare_result):
|
58
|
+
"""Sets the compare_result of this ShowHealthObjectCompareJobOverviewResponse.
|
59
|
+
|
60
|
+
健康对比对象级对比结果。
|
61
|
+
|
62
|
+
:param compare_result: The compare_result of this ShowHealthObjectCompareJobOverviewResponse.
|
63
|
+
:type compare_result: list[:class:`huaweicloudsdkdrs.v5.ObjectsHealthCompareOverviewInfo`]
|
64
|
+
"""
|
65
|
+
self._compare_result = compare_result
|
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, ShowHealthObjectCompareJobOverviewResponse):
|
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
|
@@ -57,7 +57,7 @@ class ShowJobDetailRequest:
|
|
57
57
|
:type job_id: str
|
58
58
|
:param x_language: 请求语言类型。
|
59
59
|
:type x_language: str
|
60
|
-
:param type: 任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file
|
60
|
+
:param type: 任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。
|
61
61
|
:type type: str
|
62
62
|
:param query_id: 通过指定Query ID查询任务详情。 说明:部分type类型的任务详情,需要通过触发该操作的请求返回的query_id进行操作结果查询。
|
63
63
|
:type query_id: str
|
@@ -171,7 +171,7 @@ class ShowJobDetailRequest:
|
|
171
171
|
def type(self):
|
172
172
|
"""Gets the type of this ShowJobDetailRequest.
|
173
173
|
|
174
|
-
任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file
|
174
|
+
任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。
|
175
175
|
|
176
176
|
:return: The type of this ShowJobDetailRequest.
|
177
177
|
:rtype: str
|
@@ -182,7 +182,7 @@ class ShowJobDetailRequest:
|
|
182
182
|
def type(self, type):
|
183
183
|
"""Sets the type of this ShowJobDetailRequest.
|
184
184
|
|
185
|
-
任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file
|
185
|
+
任务详情类型。取值: - overview:任务概览信息。 - detail:任务基本信息。 - network:测试连接结果信息,需配合query_id参数一起查询。 - precheck:预检查结果信息,需配合query_id参数一起查询。 - progress:任务进度信息。 - log:任务日志信息,支持分页查询参数offset与limit。 - compare:查询对比任务。 - file:对象导入信息。 - is_writable:目标库解除只读结果。 - cloud_connection:录制回放他云连通性测试,需配合query_id参数一起查询。
|
186
186
|
|
187
187
|
:param type: The type of this ShowJobDetailRequest.
|
188
188
|
:type type: str
|
@@ -19,15 +19,17 @@ class ShowPositionResultResponse(SdkResponse):
|
|
19
19
|
|
20
20
|
openapi_types = {
|
21
21
|
'job_id': 'str',
|
22
|
-
'position': 'str'
|
22
|
+
'position': 'str',
|
23
|
+
'status': 'str'
|
23
24
|
}
|
24
25
|
|
25
26
|
attribute_map = {
|
26
27
|
'job_id': 'job_id',
|
27
|
-
'position': 'position'
|
28
|
+
'position': 'position',
|
29
|
+
'status': 'status'
|
28
30
|
}
|
29
31
|
|
30
|
-
def __init__(self, job_id=None, position=None):
|
32
|
+
def __init__(self, job_id=None, position=None, status=None):
|
31
33
|
"""ShowPositionResultResponse
|
32
34
|
|
33
35
|
The model defined in huaweicloud sdk
|
@@ -36,18 +38,23 @@ class ShowPositionResultResponse(SdkResponse):
|
|
36
38
|
:type job_id: str
|
37
39
|
:param position: 位点信息
|
38
40
|
:type position: str
|
41
|
+
:param status: 查询状态
|
42
|
+
:type status: str
|
39
43
|
"""
|
40
44
|
|
41
45
|
super(ShowPositionResultResponse, self).__init__()
|
42
46
|
|
43
47
|
self._job_id = None
|
44
48
|
self._position = None
|
49
|
+
self._status = None
|
45
50
|
self.discriminator = None
|
46
51
|
|
47
52
|
if job_id is not None:
|
48
53
|
self.job_id = job_id
|
49
54
|
if position is not None:
|
50
55
|
self.position = position
|
56
|
+
if status is not None:
|
57
|
+
self.status = status
|
51
58
|
|
52
59
|
@property
|
53
60
|
def job_id(self):
|
@@ -93,6 +100,28 @@ class ShowPositionResultResponse(SdkResponse):
|
|
93
100
|
"""
|
94
101
|
self._position = position
|
95
102
|
|
103
|
+
@property
|
104
|
+
def status(self):
|
105
|
+
"""Gets the status of this ShowPositionResultResponse.
|
106
|
+
|
107
|
+
查询状态
|
108
|
+
|
109
|
+
:return: The status of this ShowPositionResultResponse.
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._status
|
113
|
+
|
114
|
+
@status.setter
|
115
|
+
def status(self, status):
|
116
|
+
"""Sets the status of this ShowPositionResultResponse.
|
117
|
+
|
118
|
+
查询状态
|
119
|
+
|
120
|
+
:param status: The status of this ShowPositionResultResponse.
|
121
|
+
:type status: str
|
122
|
+
"""
|
123
|
+
self._status = status
|
124
|
+
|
96
125
|
def to_dict(self):
|
97
126
|
"""Returns the model properties as a dict"""
|
98
127
|
result = {}
|
@@ -0,0 +1,461 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowReplayResultsRequest:
|
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
|
+
'job_id': 'str',
|
21
|
+
'x_language': 'str',
|
22
|
+
'type': 'str',
|
23
|
+
'start_time': 'str',
|
24
|
+
'end_time': 'str',
|
25
|
+
'offset': 'int',
|
26
|
+
'limit': 'int',
|
27
|
+
'sort_key': 'str',
|
28
|
+
'sort_dir': 'str',
|
29
|
+
'target_name': 'str',
|
30
|
+
'is_sample': 'bool',
|
31
|
+
'error_type': 'str',
|
32
|
+
'sql_template_md5': 'str'
|
33
|
+
}
|
34
|
+
|
35
|
+
attribute_map = {
|
36
|
+
'job_id': 'job_id',
|
37
|
+
'x_language': 'X-Language',
|
38
|
+
'type': 'type',
|
39
|
+
'start_time': 'start_time',
|
40
|
+
'end_time': 'end_time',
|
41
|
+
'offset': 'offset',
|
42
|
+
'limit': 'limit',
|
43
|
+
'sort_key': 'sort_key',
|
44
|
+
'sort_dir': 'sort_dir',
|
45
|
+
'target_name': 'target_name',
|
46
|
+
'is_sample': 'is_sample',
|
47
|
+
'error_type': 'error_type',
|
48
|
+
'sql_template_md5': 'sql_template_md5'
|
49
|
+
}
|
50
|
+
|
51
|
+
def __init__(self, job_id=None, x_language=None, type=None, start_time=None, end_time=None, offset=None, limit=None, sort_key=None, sort_dir=None, target_name=None, is_sample=None, error_type=None, sql_template_md5=None):
|
52
|
+
"""ShowReplayResultsRequest
|
53
|
+
|
54
|
+
The model defined in huaweicloud sdk
|
55
|
+
|
56
|
+
:param job_id: 任务ID。
|
57
|
+
:type job_id: str
|
58
|
+
:param x_language: 请求语言类型。
|
59
|
+
:type x_language: str
|
60
|
+
:param type: 结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。 - error_classification:回放异常SQL分类。
|
61
|
+
:type type: str
|
62
|
+
:param start_time: 查询数据的起始时间,在type为shard_statistics、slow_sql、error_sql时必填
|
63
|
+
:type start_time: str
|
64
|
+
:param end_time: 查询数据的结束时间,在type为shard_statistics、slow_sql、error_sql时必填
|
65
|
+
:type end_time: str
|
66
|
+
:param offset: 分页查询数据表当前超始偏移量, 在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
|
67
|
+
:type offset: int
|
68
|
+
:param limit: 分页查询数据表当前页数据总量,在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
|
69
|
+
:type limit: int
|
70
|
+
:param sort_key: 返回结果按该关键字排序(slow_sql_template支持count,maxLatency、avgLatency关键字,error_sql_template支持count关键字)
|
71
|
+
:type sort_key: str
|
72
|
+
:param sort_dir: 排序规则,取值如下: - asc:升序 - desc:降序
|
73
|
+
:type sort_dir: str
|
74
|
+
:param target_name: 回放数据库名称,用于在一致性回放策略场景,过滤目标库与源库镜像库回放结果。参数非必须,不提供则默认查询所有数据,其取值如下: - target:查询目标库回放结果 - target_mirror:查询源库镜像库回放结果
|
75
|
+
:type target_name: str
|
76
|
+
:param is_sample: 是否查询样例true/false,type=slow_sql/error_sql时生效,值为true时只查询一条样例数据。
|
77
|
+
:type is_sample: bool
|
78
|
+
:param error_type: 错误分类,type=error_sql/error_sql_template时生效,根据错误分类过滤数据。
|
79
|
+
:type error_type: str
|
80
|
+
:param sql_template_md5: sql模板md5,type=slow_sql/error_sql时生效,根据模板过滤对应的异常SQL和慢SQL,该值为本接口type=slow_sql_template/error_sql_template时的返回字段。
|
81
|
+
:type sql_template_md5: str
|
82
|
+
"""
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
self._job_id = None
|
87
|
+
self._x_language = None
|
88
|
+
self._type = None
|
89
|
+
self._start_time = None
|
90
|
+
self._end_time = None
|
91
|
+
self._offset = None
|
92
|
+
self._limit = None
|
93
|
+
self._sort_key = None
|
94
|
+
self._sort_dir = None
|
95
|
+
self._target_name = None
|
96
|
+
self._is_sample = None
|
97
|
+
self._error_type = None
|
98
|
+
self._sql_template_md5 = None
|
99
|
+
self.discriminator = None
|
100
|
+
|
101
|
+
self.job_id = job_id
|
102
|
+
if x_language is not None:
|
103
|
+
self.x_language = x_language
|
104
|
+
self.type = type
|
105
|
+
if start_time is not None:
|
106
|
+
self.start_time = start_time
|
107
|
+
if end_time is not None:
|
108
|
+
self.end_time = end_time
|
109
|
+
if offset is not None:
|
110
|
+
self.offset = offset
|
111
|
+
if limit is not None:
|
112
|
+
self.limit = limit
|
113
|
+
if sort_key is not None:
|
114
|
+
self.sort_key = sort_key
|
115
|
+
if sort_dir is not None:
|
116
|
+
self.sort_dir = sort_dir
|
117
|
+
if target_name is not None:
|
118
|
+
self.target_name = target_name
|
119
|
+
if is_sample is not None:
|
120
|
+
self.is_sample = is_sample
|
121
|
+
if error_type is not None:
|
122
|
+
self.error_type = error_type
|
123
|
+
if sql_template_md5 is not None:
|
124
|
+
self.sql_template_md5 = sql_template_md5
|
125
|
+
|
126
|
+
@property
|
127
|
+
def job_id(self):
|
128
|
+
"""Gets the job_id of this ShowReplayResultsRequest.
|
129
|
+
|
130
|
+
任务ID。
|
131
|
+
|
132
|
+
:return: The job_id of this ShowReplayResultsRequest.
|
133
|
+
:rtype: str
|
134
|
+
"""
|
135
|
+
return self._job_id
|
136
|
+
|
137
|
+
@job_id.setter
|
138
|
+
def job_id(self, job_id):
|
139
|
+
"""Sets the job_id of this ShowReplayResultsRequest.
|
140
|
+
|
141
|
+
任务ID。
|
142
|
+
|
143
|
+
:param job_id: The job_id of this ShowReplayResultsRequest.
|
144
|
+
:type job_id: str
|
145
|
+
"""
|
146
|
+
self._job_id = job_id
|
147
|
+
|
148
|
+
@property
|
149
|
+
def x_language(self):
|
150
|
+
"""Gets the x_language of this ShowReplayResultsRequest.
|
151
|
+
|
152
|
+
请求语言类型。
|
153
|
+
|
154
|
+
:return: The x_language of this ShowReplayResultsRequest.
|
155
|
+
:rtype: str
|
156
|
+
"""
|
157
|
+
return self._x_language
|
158
|
+
|
159
|
+
@x_language.setter
|
160
|
+
def x_language(self, x_language):
|
161
|
+
"""Sets the x_language of this ShowReplayResultsRequest.
|
162
|
+
|
163
|
+
请求语言类型。
|
164
|
+
|
165
|
+
:param x_language: The x_language of this ShowReplayResultsRequest.
|
166
|
+
:type x_language: str
|
167
|
+
"""
|
168
|
+
self._x_language = x_language
|
169
|
+
|
170
|
+
@property
|
171
|
+
def type(self):
|
172
|
+
"""Gets the type of this ShowReplayResultsRequest.
|
173
|
+
|
174
|
+
结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。 - error_classification:回放异常SQL分类。
|
175
|
+
|
176
|
+
:return: The type of this ShowReplayResultsRequest.
|
177
|
+
:rtype: str
|
178
|
+
"""
|
179
|
+
return self._type
|
180
|
+
|
181
|
+
@type.setter
|
182
|
+
def type(self, type):
|
183
|
+
"""Sets the type of this ShowReplayResultsRequest.
|
184
|
+
|
185
|
+
结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。 - error_classification:回放异常SQL分类。
|
186
|
+
|
187
|
+
:param type: The type of this ShowReplayResultsRequest.
|
188
|
+
:type type: str
|
189
|
+
"""
|
190
|
+
self._type = type
|
191
|
+
|
192
|
+
@property
|
193
|
+
def start_time(self):
|
194
|
+
"""Gets the start_time of this ShowReplayResultsRequest.
|
195
|
+
|
196
|
+
查询数据的起始时间,在type为shard_statistics、slow_sql、error_sql时必填
|
197
|
+
|
198
|
+
:return: The start_time of this ShowReplayResultsRequest.
|
199
|
+
:rtype: str
|
200
|
+
"""
|
201
|
+
return self._start_time
|
202
|
+
|
203
|
+
@start_time.setter
|
204
|
+
def start_time(self, start_time):
|
205
|
+
"""Sets the start_time of this ShowReplayResultsRequest.
|
206
|
+
|
207
|
+
查询数据的起始时间,在type为shard_statistics、slow_sql、error_sql时必填
|
208
|
+
|
209
|
+
:param start_time: The start_time of this ShowReplayResultsRequest.
|
210
|
+
:type start_time: str
|
211
|
+
"""
|
212
|
+
self._start_time = start_time
|
213
|
+
|
214
|
+
@property
|
215
|
+
def end_time(self):
|
216
|
+
"""Gets the end_time of this ShowReplayResultsRequest.
|
217
|
+
|
218
|
+
查询数据的结束时间,在type为shard_statistics、slow_sql、error_sql时必填
|
219
|
+
|
220
|
+
:return: The end_time of this ShowReplayResultsRequest.
|
221
|
+
:rtype: str
|
222
|
+
"""
|
223
|
+
return self._end_time
|
224
|
+
|
225
|
+
@end_time.setter
|
226
|
+
def end_time(self, end_time):
|
227
|
+
"""Sets the end_time of this ShowReplayResultsRequest.
|
228
|
+
|
229
|
+
查询数据的结束时间,在type为shard_statistics、slow_sql、error_sql时必填
|
230
|
+
|
231
|
+
:param end_time: The end_time of this ShowReplayResultsRequest.
|
232
|
+
:type end_time: str
|
233
|
+
"""
|
234
|
+
self._end_time = end_time
|
235
|
+
|
236
|
+
@property
|
237
|
+
def offset(self):
|
238
|
+
"""Gets the offset of this ShowReplayResultsRequest.
|
239
|
+
|
240
|
+
分页查询数据表当前超始偏移量, 在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
|
241
|
+
|
242
|
+
:return: The offset of this ShowReplayResultsRequest.
|
243
|
+
:rtype: int
|
244
|
+
"""
|
245
|
+
return self._offset
|
246
|
+
|
247
|
+
@offset.setter
|
248
|
+
def offset(self, offset):
|
249
|
+
"""Sets the offset of this ShowReplayResultsRequest.
|
250
|
+
|
251
|
+
分页查询数据表当前超始偏移量, 在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
|
252
|
+
|
253
|
+
:param offset: The offset of this ShowReplayResultsRequest.
|
254
|
+
:type offset: int
|
255
|
+
"""
|
256
|
+
self._offset = offset
|
257
|
+
|
258
|
+
@property
|
259
|
+
def limit(self):
|
260
|
+
"""Gets the limit of this ShowReplayResultsRequest.
|
261
|
+
|
262
|
+
分页查询数据表当前页数据总量,在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
|
263
|
+
|
264
|
+
:return: The limit of this ShowReplayResultsRequest.
|
265
|
+
:rtype: int
|
266
|
+
"""
|
267
|
+
return self._limit
|
268
|
+
|
269
|
+
@limit.setter
|
270
|
+
def limit(self, limit):
|
271
|
+
"""Sets the limit of this ShowReplayResultsRequest.
|
272
|
+
|
273
|
+
分页查询数据表当前页数据总量,在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
|
274
|
+
|
275
|
+
:param limit: The limit of this ShowReplayResultsRequest.
|
276
|
+
:type limit: int
|
277
|
+
"""
|
278
|
+
self._limit = limit
|
279
|
+
|
280
|
+
@property
|
281
|
+
def sort_key(self):
|
282
|
+
"""Gets the sort_key of this ShowReplayResultsRequest.
|
283
|
+
|
284
|
+
返回结果按该关键字排序(slow_sql_template支持count,maxLatency、avgLatency关键字,error_sql_template支持count关键字)
|
285
|
+
|
286
|
+
:return: The sort_key of this ShowReplayResultsRequest.
|
287
|
+
:rtype: str
|
288
|
+
"""
|
289
|
+
return self._sort_key
|
290
|
+
|
291
|
+
@sort_key.setter
|
292
|
+
def sort_key(self, sort_key):
|
293
|
+
"""Sets the sort_key of this ShowReplayResultsRequest.
|
294
|
+
|
295
|
+
返回结果按该关键字排序(slow_sql_template支持count,maxLatency、avgLatency关键字,error_sql_template支持count关键字)
|
296
|
+
|
297
|
+
:param sort_key: The sort_key of this ShowReplayResultsRequest.
|
298
|
+
:type sort_key: str
|
299
|
+
"""
|
300
|
+
self._sort_key = sort_key
|
301
|
+
|
302
|
+
@property
|
303
|
+
def sort_dir(self):
|
304
|
+
"""Gets the sort_dir of this ShowReplayResultsRequest.
|
305
|
+
|
306
|
+
排序规则,取值如下: - asc:升序 - desc:降序
|
307
|
+
|
308
|
+
:return: The sort_dir of this ShowReplayResultsRequest.
|
309
|
+
:rtype: str
|
310
|
+
"""
|
311
|
+
return self._sort_dir
|
312
|
+
|
313
|
+
@sort_dir.setter
|
314
|
+
def sort_dir(self, sort_dir):
|
315
|
+
"""Sets the sort_dir of this ShowReplayResultsRequest.
|
316
|
+
|
317
|
+
排序规则,取值如下: - asc:升序 - desc:降序
|
318
|
+
|
319
|
+
:param sort_dir: The sort_dir of this ShowReplayResultsRequest.
|
320
|
+
:type sort_dir: str
|
321
|
+
"""
|
322
|
+
self._sort_dir = sort_dir
|
323
|
+
|
324
|
+
@property
|
325
|
+
def target_name(self):
|
326
|
+
"""Gets the target_name of this ShowReplayResultsRequest.
|
327
|
+
|
328
|
+
回放数据库名称,用于在一致性回放策略场景,过滤目标库与源库镜像库回放结果。参数非必须,不提供则默认查询所有数据,其取值如下: - target:查询目标库回放结果 - target_mirror:查询源库镜像库回放结果
|
329
|
+
|
330
|
+
:return: The target_name of this ShowReplayResultsRequest.
|
331
|
+
:rtype: str
|
332
|
+
"""
|
333
|
+
return self._target_name
|
334
|
+
|
335
|
+
@target_name.setter
|
336
|
+
def target_name(self, target_name):
|
337
|
+
"""Sets the target_name of this ShowReplayResultsRequest.
|
338
|
+
|
339
|
+
回放数据库名称,用于在一致性回放策略场景,过滤目标库与源库镜像库回放结果。参数非必须,不提供则默认查询所有数据,其取值如下: - target:查询目标库回放结果 - target_mirror:查询源库镜像库回放结果
|
340
|
+
|
341
|
+
:param target_name: The target_name of this ShowReplayResultsRequest.
|
342
|
+
:type target_name: str
|
343
|
+
"""
|
344
|
+
self._target_name = target_name
|
345
|
+
|
346
|
+
@property
|
347
|
+
def is_sample(self):
|
348
|
+
"""Gets the is_sample of this ShowReplayResultsRequest.
|
349
|
+
|
350
|
+
是否查询样例true/false,type=slow_sql/error_sql时生效,值为true时只查询一条样例数据。
|
351
|
+
|
352
|
+
:return: The is_sample of this ShowReplayResultsRequest.
|
353
|
+
:rtype: bool
|
354
|
+
"""
|
355
|
+
return self._is_sample
|
356
|
+
|
357
|
+
@is_sample.setter
|
358
|
+
def is_sample(self, is_sample):
|
359
|
+
"""Sets the is_sample of this ShowReplayResultsRequest.
|
360
|
+
|
361
|
+
是否查询样例true/false,type=slow_sql/error_sql时生效,值为true时只查询一条样例数据。
|
362
|
+
|
363
|
+
:param is_sample: The is_sample of this ShowReplayResultsRequest.
|
364
|
+
:type is_sample: bool
|
365
|
+
"""
|
366
|
+
self._is_sample = is_sample
|
367
|
+
|
368
|
+
@property
|
369
|
+
def error_type(self):
|
370
|
+
"""Gets the error_type of this ShowReplayResultsRequest.
|
371
|
+
|
372
|
+
错误分类,type=error_sql/error_sql_template时生效,根据错误分类过滤数据。
|
373
|
+
|
374
|
+
:return: The error_type of this ShowReplayResultsRequest.
|
375
|
+
:rtype: str
|
376
|
+
"""
|
377
|
+
return self._error_type
|
378
|
+
|
379
|
+
@error_type.setter
|
380
|
+
def error_type(self, error_type):
|
381
|
+
"""Sets the error_type of this ShowReplayResultsRequest.
|
382
|
+
|
383
|
+
错误分类,type=error_sql/error_sql_template时生效,根据错误分类过滤数据。
|
384
|
+
|
385
|
+
:param error_type: The error_type of this ShowReplayResultsRequest.
|
386
|
+
:type error_type: str
|
387
|
+
"""
|
388
|
+
self._error_type = error_type
|
389
|
+
|
390
|
+
@property
|
391
|
+
def sql_template_md5(self):
|
392
|
+
"""Gets the sql_template_md5 of this ShowReplayResultsRequest.
|
393
|
+
|
394
|
+
sql模板md5,type=slow_sql/error_sql时生效,根据模板过滤对应的异常SQL和慢SQL,该值为本接口type=slow_sql_template/error_sql_template时的返回字段。
|
395
|
+
|
396
|
+
:return: The sql_template_md5 of this ShowReplayResultsRequest.
|
397
|
+
:rtype: str
|
398
|
+
"""
|
399
|
+
return self._sql_template_md5
|
400
|
+
|
401
|
+
@sql_template_md5.setter
|
402
|
+
def sql_template_md5(self, sql_template_md5):
|
403
|
+
"""Sets the sql_template_md5 of this ShowReplayResultsRequest.
|
404
|
+
|
405
|
+
sql模板md5,type=slow_sql/error_sql时生效,根据模板过滤对应的异常SQL和慢SQL,该值为本接口type=slow_sql_template/error_sql_template时的返回字段。
|
406
|
+
|
407
|
+
:param sql_template_md5: The sql_template_md5 of this ShowReplayResultsRequest.
|
408
|
+
:type sql_template_md5: str
|
409
|
+
"""
|
410
|
+
self._sql_template_md5 = sql_template_md5
|
411
|
+
|
412
|
+
def to_dict(self):
|
413
|
+
"""Returns the model properties as a dict"""
|
414
|
+
result = {}
|
415
|
+
|
416
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
417
|
+
value = getattr(self, attr)
|
418
|
+
if isinstance(value, list):
|
419
|
+
result[attr] = list(map(
|
420
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
421
|
+
value
|
422
|
+
))
|
423
|
+
elif hasattr(value, "to_dict"):
|
424
|
+
result[attr] = value.to_dict()
|
425
|
+
elif isinstance(value, dict):
|
426
|
+
result[attr] = dict(map(
|
427
|
+
lambda item: (item[0], item[1].to_dict())
|
428
|
+
if hasattr(item[1], "to_dict") else item,
|
429
|
+
value.items()
|
430
|
+
))
|
431
|
+
else:
|
432
|
+
if attr in self.sensitive_list:
|
433
|
+
result[attr] = "****"
|
434
|
+
else:
|
435
|
+
result[attr] = value
|
436
|
+
|
437
|
+
return result
|
438
|
+
|
439
|
+
def to_str(self):
|
440
|
+
"""Returns the string representation of the model"""
|
441
|
+
import simplejson as json
|
442
|
+
if six.PY2:
|
443
|
+
import sys
|
444
|
+
reload(sys)
|
445
|
+
sys.setdefaultencoding("utf-8")
|
446
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
447
|
+
|
448
|
+
def __repr__(self):
|
449
|
+
"""For `print`"""
|
450
|
+
return self.to_str()
|
451
|
+
|
452
|
+
def __eq__(self, other):
|
453
|
+
"""Returns true if both objects are equal"""
|
454
|
+
if not isinstance(other, ShowReplayResultsRequest):
|
455
|
+
return False
|
456
|
+
|
457
|
+
return self.__dict__ == other.__dict__
|
458
|
+
|
459
|
+
def __ne__(self, other):
|
460
|
+
"""Returns true if both objects are not equal"""
|
461
|
+
return not self == other
|