huaweicloudsdkdrs 3.1.90__py2.py3-none-any.whl → 3.1.92__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 +26 -0
- huaweicloudsdkdrs/v3/drs_async_client.py +589 -1
- huaweicloudsdkdrs/v3/drs_client.py +589 -1
- huaweicloudsdkdrs/v3/model/__init__.py +26 -0
- huaweicloudsdkdrs/v3/model/add_data_transformation_req.py +138 -0
- huaweicloudsdkdrs/v3/model/api_http_null_resp.py +84 -0
- huaweicloudsdkdrs/v3/model/compare_job_info.py +376 -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/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/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_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/node_content_compare_detail_result.py +405 -0
- huaweicloudsdkdrs/v3/model/node_content_compare_overview_result.py +173 -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/table_line_compare_result_info.py +289 -0
- huaweicloudsdkdrs/v5/__init__.py +10 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +154 -0
- huaweicloudsdkdrs/v5/drs_client.py +154 -0
- huaweicloudsdkdrs/v5/model/__init__.py +10 -0
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/compare_task_params.py +32 -3
- huaweicloudsdkdrs/v5/model/data_process_info.py +32 -3
- huaweicloudsdkdrs/v5/model/db_object_filtering_result.py +148 -3
- huaweicloudsdkdrs/v5/model/lists_agency_permissions_request.py +201 -0
- huaweicloudsdkdrs/v5/model/lists_agency_permissions_response.py +145 -0
- huaweicloudsdkdrs/v5/model/replay_error_sql_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/replay_error_sql_template_resp.py +260 -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 +373 -0
- huaweicloudsdkdrs/v5/model/replaying_sql_resp.py +318 -0
- huaweicloudsdkdrs/v5/model/show_position_result_response.py +3 -3
- huaweicloudsdkdrs/v5/model/show_replay_results_request.py +374 -0
- huaweicloudsdkdrs/v5/model/show_replay_results_response.py +290 -0
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.92.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.92.dist-info}/RECORD +54 -18
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.92.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.92.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.92.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,145 @@
|
|
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 ListDataLevelTableCompareJobsResponse(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_jobs': 'list[CompareJobInfo]',
|
22
|
+
'count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'compare_jobs': 'compare_jobs',
|
27
|
+
'count': 'count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, compare_jobs=None, count=None):
|
31
|
+
"""ListDataLevelTableCompareJobsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param compare_jobs: 表对比任务信息
|
36
|
+
:type compare_jobs: list[:class:`huaweicloudsdkdrs.v3.CompareJobInfo`]
|
37
|
+
:param count: 任务数量
|
38
|
+
:type count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListDataLevelTableCompareJobsResponse, self).__init__()
|
42
|
+
|
43
|
+
self._compare_jobs = None
|
44
|
+
self._count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if compare_jobs is not None:
|
48
|
+
self.compare_jobs = compare_jobs
|
49
|
+
if count is not None:
|
50
|
+
self.count = count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def compare_jobs(self):
|
54
|
+
"""Gets the compare_jobs of this ListDataLevelTableCompareJobsResponse.
|
55
|
+
|
56
|
+
表对比任务信息
|
57
|
+
|
58
|
+
:return: The compare_jobs of this ListDataLevelTableCompareJobsResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v3.CompareJobInfo`]
|
60
|
+
"""
|
61
|
+
return self._compare_jobs
|
62
|
+
|
63
|
+
@compare_jobs.setter
|
64
|
+
def compare_jobs(self, compare_jobs):
|
65
|
+
"""Sets the compare_jobs of this ListDataLevelTableCompareJobsResponse.
|
66
|
+
|
67
|
+
表对比任务信息
|
68
|
+
|
69
|
+
:param compare_jobs: The compare_jobs of this ListDataLevelTableCompareJobsResponse.
|
70
|
+
:type compare_jobs: list[:class:`huaweicloudsdkdrs.v3.CompareJobInfo`]
|
71
|
+
"""
|
72
|
+
self._compare_jobs = compare_jobs
|
73
|
+
|
74
|
+
@property
|
75
|
+
def count(self):
|
76
|
+
"""Gets the count of this ListDataLevelTableCompareJobsResponse.
|
77
|
+
|
78
|
+
任务数量
|
79
|
+
|
80
|
+
:return: The count of this ListDataLevelTableCompareJobsResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._count
|
84
|
+
|
85
|
+
@count.setter
|
86
|
+
def count(self, count):
|
87
|
+
"""Sets the count of this ListDataLevelTableCompareJobsResponse.
|
88
|
+
|
89
|
+
任务数量
|
90
|
+
|
91
|
+
:param count: The count of this ListDataLevelTableCompareJobsResponse.
|
92
|
+
:type count: int
|
93
|
+
"""
|
94
|
+
self._count = count
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ListDataLevelTableCompareJobsResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -0,0 +1,405 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class NodeContentCompareDetailResult:
|
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_db': 'str',
|
21
|
+
'target_db': 'str',
|
22
|
+
'source_table_name': 'str',
|
23
|
+
'target_table_name': 'str',
|
24
|
+
'source_row_num': 'int',
|
25
|
+
'target_row_num': 'int',
|
26
|
+
'difference_row_num': 'int',
|
27
|
+
'line_compare_result': 'bool',
|
28
|
+
'content_compare_result': 'bool',
|
29
|
+
'message': 'str',
|
30
|
+
'compare_line_config_filter': 'str'
|
31
|
+
}
|
32
|
+
|
33
|
+
attribute_map = {
|
34
|
+
'source_db': 'source_db',
|
35
|
+
'target_db': 'target_db',
|
36
|
+
'source_table_name': 'source_table_name',
|
37
|
+
'target_table_name': 'target_table_name',
|
38
|
+
'source_row_num': 'source_row_num',
|
39
|
+
'target_row_num': 'target_row_num',
|
40
|
+
'difference_row_num': 'difference_row_num',
|
41
|
+
'line_compare_result': 'line_compare_result',
|
42
|
+
'content_compare_result': 'content_compare_result',
|
43
|
+
'message': 'message',
|
44
|
+
'compare_line_config_filter': 'compare_line_config_filter'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, source_db=None, target_db=None, source_table_name=None, target_table_name=None, source_row_num=None, target_row_num=None, difference_row_num=None, line_compare_result=None, content_compare_result=None, message=None, compare_line_config_filter=None):
|
48
|
+
"""NodeContentCompareDetailResult
|
49
|
+
|
50
|
+
The model defined in huaweicloud sdk
|
51
|
+
|
52
|
+
:param source_db: 源库名称。
|
53
|
+
:type source_db: str
|
54
|
+
:param target_db: 目标库名称。
|
55
|
+
:type target_db: str
|
56
|
+
:param source_table_name: 源库的表名称。
|
57
|
+
:type source_table_name: str
|
58
|
+
:param target_table_name: 目标库名称。
|
59
|
+
:type target_table_name: str
|
60
|
+
:param source_row_num: 源库表行数。
|
61
|
+
:type source_row_num: int
|
62
|
+
:param target_row_num: 目标库表行数。
|
63
|
+
:type target_row_num: int
|
64
|
+
:param difference_row_num: 源库的表和目标库的表的差异值。
|
65
|
+
:type difference_row_num: int
|
66
|
+
:param line_compare_result: 行对比结果。 - true:一致 - false:不一致
|
67
|
+
:type line_compare_result: bool
|
68
|
+
:param content_compare_result: 内容对比结果。 - true:一致 - false:不一致
|
69
|
+
:type content_compare_result: bool
|
70
|
+
:param message: 附加信息。
|
71
|
+
:type message: str
|
72
|
+
:param compare_line_config_filter: 行过滤配置条件
|
73
|
+
:type compare_line_config_filter: str
|
74
|
+
"""
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
self._source_db = None
|
79
|
+
self._target_db = None
|
80
|
+
self._source_table_name = None
|
81
|
+
self._target_table_name = None
|
82
|
+
self._source_row_num = None
|
83
|
+
self._target_row_num = None
|
84
|
+
self._difference_row_num = None
|
85
|
+
self._line_compare_result = None
|
86
|
+
self._content_compare_result = None
|
87
|
+
self._message = None
|
88
|
+
self._compare_line_config_filter = None
|
89
|
+
self.discriminator = None
|
90
|
+
|
91
|
+
if source_db is not None:
|
92
|
+
self.source_db = source_db
|
93
|
+
if target_db is not None:
|
94
|
+
self.target_db = target_db
|
95
|
+
if source_table_name is not None:
|
96
|
+
self.source_table_name = source_table_name
|
97
|
+
if target_table_name is not None:
|
98
|
+
self.target_table_name = target_table_name
|
99
|
+
if source_row_num is not None:
|
100
|
+
self.source_row_num = source_row_num
|
101
|
+
if target_row_num is not None:
|
102
|
+
self.target_row_num = target_row_num
|
103
|
+
if difference_row_num is not None:
|
104
|
+
self.difference_row_num = difference_row_num
|
105
|
+
if line_compare_result is not None:
|
106
|
+
self.line_compare_result = line_compare_result
|
107
|
+
if content_compare_result is not None:
|
108
|
+
self.content_compare_result = content_compare_result
|
109
|
+
if message is not None:
|
110
|
+
self.message = message
|
111
|
+
if compare_line_config_filter is not None:
|
112
|
+
self.compare_line_config_filter = compare_line_config_filter
|
113
|
+
|
114
|
+
@property
|
115
|
+
def source_db(self):
|
116
|
+
"""Gets the source_db of this NodeContentCompareDetailResult.
|
117
|
+
|
118
|
+
源库名称。
|
119
|
+
|
120
|
+
:return: The source_db of this NodeContentCompareDetailResult.
|
121
|
+
:rtype: str
|
122
|
+
"""
|
123
|
+
return self._source_db
|
124
|
+
|
125
|
+
@source_db.setter
|
126
|
+
def source_db(self, source_db):
|
127
|
+
"""Sets the source_db of this NodeContentCompareDetailResult.
|
128
|
+
|
129
|
+
源库名称。
|
130
|
+
|
131
|
+
:param source_db: The source_db of this NodeContentCompareDetailResult.
|
132
|
+
:type source_db: str
|
133
|
+
"""
|
134
|
+
self._source_db = source_db
|
135
|
+
|
136
|
+
@property
|
137
|
+
def target_db(self):
|
138
|
+
"""Gets the target_db of this NodeContentCompareDetailResult.
|
139
|
+
|
140
|
+
目标库名称。
|
141
|
+
|
142
|
+
:return: The target_db of this NodeContentCompareDetailResult.
|
143
|
+
:rtype: str
|
144
|
+
"""
|
145
|
+
return self._target_db
|
146
|
+
|
147
|
+
@target_db.setter
|
148
|
+
def target_db(self, target_db):
|
149
|
+
"""Sets the target_db of this NodeContentCompareDetailResult.
|
150
|
+
|
151
|
+
目标库名称。
|
152
|
+
|
153
|
+
:param target_db: The target_db of this NodeContentCompareDetailResult.
|
154
|
+
:type target_db: str
|
155
|
+
"""
|
156
|
+
self._target_db = target_db
|
157
|
+
|
158
|
+
@property
|
159
|
+
def source_table_name(self):
|
160
|
+
"""Gets the source_table_name of this NodeContentCompareDetailResult.
|
161
|
+
|
162
|
+
源库的表名称。
|
163
|
+
|
164
|
+
:return: The source_table_name of this NodeContentCompareDetailResult.
|
165
|
+
:rtype: str
|
166
|
+
"""
|
167
|
+
return self._source_table_name
|
168
|
+
|
169
|
+
@source_table_name.setter
|
170
|
+
def source_table_name(self, source_table_name):
|
171
|
+
"""Sets the source_table_name of this NodeContentCompareDetailResult.
|
172
|
+
|
173
|
+
源库的表名称。
|
174
|
+
|
175
|
+
:param source_table_name: The source_table_name of this NodeContentCompareDetailResult.
|
176
|
+
:type source_table_name: str
|
177
|
+
"""
|
178
|
+
self._source_table_name = source_table_name
|
179
|
+
|
180
|
+
@property
|
181
|
+
def target_table_name(self):
|
182
|
+
"""Gets the target_table_name of this NodeContentCompareDetailResult.
|
183
|
+
|
184
|
+
目标库名称。
|
185
|
+
|
186
|
+
:return: The target_table_name of this NodeContentCompareDetailResult.
|
187
|
+
:rtype: str
|
188
|
+
"""
|
189
|
+
return self._target_table_name
|
190
|
+
|
191
|
+
@target_table_name.setter
|
192
|
+
def target_table_name(self, target_table_name):
|
193
|
+
"""Sets the target_table_name of this NodeContentCompareDetailResult.
|
194
|
+
|
195
|
+
目标库名称。
|
196
|
+
|
197
|
+
:param target_table_name: The target_table_name of this NodeContentCompareDetailResult.
|
198
|
+
:type target_table_name: str
|
199
|
+
"""
|
200
|
+
self._target_table_name = target_table_name
|
201
|
+
|
202
|
+
@property
|
203
|
+
def source_row_num(self):
|
204
|
+
"""Gets the source_row_num of this NodeContentCompareDetailResult.
|
205
|
+
|
206
|
+
源库表行数。
|
207
|
+
|
208
|
+
:return: The source_row_num of this NodeContentCompareDetailResult.
|
209
|
+
:rtype: int
|
210
|
+
"""
|
211
|
+
return self._source_row_num
|
212
|
+
|
213
|
+
@source_row_num.setter
|
214
|
+
def source_row_num(self, source_row_num):
|
215
|
+
"""Sets the source_row_num of this NodeContentCompareDetailResult.
|
216
|
+
|
217
|
+
源库表行数。
|
218
|
+
|
219
|
+
:param source_row_num: The source_row_num of this NodeContentCompareDetailResult.
|
220
|
+
:type source_row_num: int
|
221
|
+
"""
|
222
|
+
self._source_row_num = source_row_num
|
223
|
+
|
224
|
+
@property
|
225
|
+
def target_row_num(self):
|
226
|
+
"""Gets the target_row_num of this NodeContentCompareDetailResult.
|
227
|
+
|
228
|
+
目标库表行数。
|
229
|
+
|
230
|
+
:return: The target_row_num of this NodeContentCompareDetailResult.
|
231
|
+
:rtype: int
|
232
|
+
"""
|
233
|
+
return self._target_row_num
|
234
|
+
|
235
|
+
@target_row_num.setter
|
236
|
+
def target_row_num(self, target_row_num):
|
237
|
+
"""Sets the target_row_num of this NodeContentCompareDetailResult.
|
238
|
+
|
239
|
+
目标库表行数。
|
240
|
+
|
241
|
+
:param target_row_num: The target_row_num of this NodeContentCompareDetailResult.
|
242
|
+
:type target_row_num: int
|
243
|
+
"""
|
244
|
+
self._target_row_num = target_row_num
|
245
|
+
|
246
|
+
@property
|
247
|
+
def difference_row_num(self):
|
248
|
+
"""Gets the difference_row_num of this NodeContentCompareDetailResult.
|
249
|
+
|
250
|
+
源库的表和目标库的表的差异值。
|
251
|
+
|
252
|
+
:return: The difference_row_num of this NodeContentCompareDetailResult.
|
253
|
+
:rtype: int
|
254
|
+
"""
|
255
|
+
return self._difference_row_num
|
256
|
+
|
257
|
+
@difference_row_num.setter
|
258
|
+
def difference_row_num(self, difference_row_num):
|
259
|
+
"""Sets the difference_row_num of this NodeContentCompareDetailResult.
|
260
|
+
|
261
|
+
源库的表和目标库的表的差异值。
|
262
|
+
|
263
|
+
:param difference_row_num: The difference_row_num of this NodeContentCompareDetailResult.
|
264
|
+
:type difference_row_num: int
|
265
|
+
"""
|
266
|
+
self._difference_row_num = difference_row_num
|
267
|
+
|
268
|
+
@property
|
269
|
+
def line_compare_result(self):
|
270
|
+
"""Gets the line_compare_result of this NodeContentCompareDetailResult.
|
271
|
+
|
272
|
+
行对比结果。 - true:一致 - false:不一致
|
273
|
+
|
274
|
+
:return: The line_compare_result of this NodeContentCompareDetailResult.
|
275
|
+
:rtype: bool
|
276
|
+
"""
|
277
|
+
return self._line_compare_result
|
278
|
+
|
279
|
+
@line_compare_result.setter
|
280
|
+
def line_compare_result(self, line_compare_result):
|
281
|
+
"""Sets the line_compare_result of this NodeContentCompareDetailResult.
|
282
|
+
|
283
|
+
行对比结果。 - true:一致 - false:不一致
|
284
|
+
|
285
|
+
:param line_compare_result: The line_compare_result of this NodeContentCompareDetailResult.
|
286
|
+
:type line_compare_result: bool
|
287
|
+
"""
|
288
|
+
self._line_compare_result = line_compare_result
|
289
|
+
|
290
|
+
@property
|
291
|
+
def content_compare_result(self):
|
292
|
+
"""Gets the content_compare_result of this NodeContentCompareDetailResult.
|
293
|
+
|
294
|
+
内容对比结果。 - true:一致 - false:不一致
|
295
|
+
|
296
|
+
:return: The content_compare_result of this NodeContentCompareDetailResult.
|
297
|
+
:rtype: bool
|
298
|
+
"""
|
299
|
+
return self._content_compare_result
|
300
|
+
|
301
|
+
@content_compare_result.setter
|
302
|
+
def content_compare_result(self, content_compare_result):
|
303
|
+
"""Sets the content_compare_result of this NodeContentCompareDetailResult.
|
304
|
+
|
305
|
+
内容对比结果。 - true:一致 - false:不一致
|
306
|
+
|
307
|
+
:param content_compare_result: The content_compare_result of this NodeContentCompareDetailResult.
|
308
|
+
:type content_compare_result: bool
|
309
|
+
"""
|
310
|
+
self._content_compare_result = content_compare_result
|
311
|
+
|
312
|
+
@property
|
313
|
+
def message(self):
|
314
|
+
"""Gets the message of this NodeContentCompareDetailResult.
|
315
|
+
|
316
|
+
附加信息。
|
317
|
+
|
318
|
+
:return: The message of this NodeContentCompareDetailResult.
|
319
|
+
:rtype: str
|
320
|
+
"""
|
321
|
+
return self._message
|
322
|
+
|
323
|
+
@message.setter
|
324
|
+
def message(self, message):
|
325
|
+
"""Sets the message of this NodeContentCompareDetailResult.
|
326
|
+
|
327
|
+
附加信息。
|
328
|
+
|
329
|
+
:param message: The message of this NodeContentCompareDetailResult.
|
330
|
+
:type message: str
|
331
|
+
"""
|
332
|
+
self._message = message
|
333
|
+
|
334
|
+
@property
|
335
|
+
def compare_line_config_filter(self):
|
336
|
+
"""Gets the compare_line_config_filter of this NodeContentCompareDetailResult.
|
337
|
+
|
338
|
+
行过滤配置条件
|
339
|
+
|
340
|
+
:return: The compare_line_config_filter of this NodeContentCompareDetailResult.
|
341
|
+
:rtype: str
|
342
|
+
"""
|
343
|
+
return self._compare_line_config_filter
|
344
|
+
|
345
|
+
@compare_line_config_filter.setter
|
346
|
+
def compare_line_config_filter(self, compare_line_config_filter):
|
347
|
+
"""Sets the compare_line_config_filter of this NodeContentCompareDetailResult.
|
348
|
+
|
349
|
+
行过滤配置条件
|
350
|
+
|
351
|
+
:param compare_line_config_filter: The compare_line_config_filter of this NodeContentCompareDetailResult.
|
352
|
+
:type compare_line_config_filter: str
|
353
|
+
"""
|
354
|
+
self._compare_line_config_filter = compare_line_config_filter
|
355
|
+
|
356
|
+
def to_dict(self):
|
357
|
+
"""Returns the model properties as a dict"""
|
358
|
+
result = {}
|
359
|
+
|
360
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
361
|
+
value = getattr(self, attr)
|
362
|
+
if isinstance(value, list):
|
363
|
+
result[attr] = list(map(
|
364
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
365
|
+
value
|
366
|
+
))
|
367
|
+
elif hasattr(value, "to_dict"):
|
368
|
+
result[attr] = value.to_dict()
|
369
|
+
elif isinstance(value, dict):
|
370
|
+
result[attr] = dict(map(
|
371
|
+
lambda item: (item[0], item[1].to_dict())
|
372
|
+
if hasattr(item[1], "to_dict") else item,
|
373
|
+
value.items()
|
374
|
+
))
|
375
|
+
else:
|
376
|
+
if attr in self.sensitive_list:
|
377
|
+
result[attr] = "****"
|
378
|
+
else:
|
379
|
+
result[attr] = value
|
380
|
+
|
381
|
+
return result
|
382
|
+
|
383
|
+
def to_str(self):
|
384
|
+
"""Returns the string representation of the model"""
|
385
|
+
import simplejson as json
|
386
|
+
if six.PY2:
|
387
|
+
import sys
|
388
|
+
reload(sys)
|
389
|
+
sys.setdefaultencoding("utf-8")
|
390
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
391
|
+
|
392
|
+
def __repr__(self):
|
393
|
+
"""For `print`"""
|
394
|
+
return self.to_str()
|
395
|
+
|
396
|
+
def __eq__(self, other):
|
397
|
+
"""Returns true if both objects are equal"""
|
398
|
+
if not isinstance(other, NodeContentCompareDetailResult):
|
399
|
+
return False
|
400
|
+
|
401
|
+
return self.__dict__ == other.__dict__
|
402
|
+
|
403
|
+
def __ne__(self, other):
|
404
|
+
"""Returns true if both objects are not equal"""
|
405
|
+
return not self == other
|