huaweicloudsdkdrs 3.1.94__py2.py3-none-any.whl → 3.1.96__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 +17 -0
- huaweicloudsdkdrs/v3/drs_async_client.py +434 -0
- huaweicloudsdkdrs/v3/drs_client.py +434 -0
- huaweicloudsdkdrs/v3/model/__init__.py +17 -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/create_compare_result_file_request.py +196 -0
- huaweicloudsdkdrs/v3/model/create_compare_result_file_response.py +116 -0
- 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/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 +3 -3
- 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 +3 -3
- huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +3 -3
- huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +3 -3
- huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +3 -3
- 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/objects_compare_detail_info.py +260 -0
- huaweicloudsdkdrs/v3/model/objects_compare_overview_info.py +202 -0
- huaweicloudsdkdrs/v5/__init__.py +11 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +207 -0
- huaweicloudsdkdrs/v5/drs_client.py +207 -0
- huaweicloudsdkdrs/v5/model/__init__.py +11 -0
- huaweicloudsdkdrs/v5/model/action_params.py +28 -3
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/compare_result_info.py +28 -3
- 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/health_compare_job.py +9 -9
- huaweicloudsdkdrs/v5/model/job_detail_resp.py +32 -3
- huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/modify_compare_policy_req.py +288 -0
- huaweicloudsdkdrs/v5/model/objects_health_compare_overview_info.py +202 -0
- huaweicloudsdkdrs/v5/model/replay_config_info.py +282 -0
- huaweicloudsdkdrs/v5/model/show_compare_policy_response.py +3 -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/update_compare_policy_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_compare_policy_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_job_req.py +3 -3
- {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.96.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.96.dist-info}/RECORD +60 -32
- {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.96.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.96.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.94.dist-info → huaweicloudsdkdrs-3.1.96.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,319 @@
|
|
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 ListObejectLevelCompareOverviewResponse(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
|
+
'create_time': 'str',
|
22
|
+
'start_time': 'str',
|
23
|
+
'status': 'str',
|
24
|
+
'export_status': 'str',
|
25
|
+
'report_remain_seconds': 'int',
|
26
|
+
'compare_job_id': 'str',
|
27
|
+
'error_msg': 'str',
|
28
|
+
'compare_result': 'list[ObjectsCompareOverviewInfo]'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'create_time': 'create_time',
|
33
|
+
'start_time': 'start_time',
|
34
|
+
'status': 'status',
|
35
|
+
'export_status': 'export_status',
|
36
|
+
'report_remain_seconds': 'report_remain_seconds',
|
37
|
+
'compare_job_id': 'compare_job_id',
|
38
|
+
'error_msg': 'error_msg',
|
39
|
+
'compare_result': 'compare_result'
|
40
|
+
}
|
41
|
+
|
42
|
+
def __init__(self, create_time=None, start_time=None, status=None, export_status=None, report_remain_seconds=None, compare_job_id=None, error_msg=None, compare_result=None):
|
43
|
+
"""ListObejectLevelCompareOverviewResponse
|
44
|
+
|
45
|
+
The model defined in huaweicloud sdk
|
46
|
+
|
47
|
+
:param create_time: 对比任务创建时间,UTC时间,例如:2024-04-09T07:00:57Z。
|
48
|
+
:type create_time: str
|
49
|
+
:param start_time: 对比任务开始时间,UTC时间,例如:2024-04-09T07:00:57Z。
|
50
|
+
:type start_time: str
|
51
|
+
:param status: 对比任务状态。 取值: - RUNNING:运行中。 - WAITING_FOR_RUNNING:等待启动中。 - SUCCESSFUL:完成。 - FAILED:失败。 - CANCELLED:已取消。 - TIMEOUT_INTERRUPT:超时中断。 - FULL_DOING:全量校验中。 - INCRE_DOING:增量校验中。
|
52
|
+
:type status: str
|
53
|
+
:param export_status: 生成对比结果报告文件的状态: - INIT:初始状态。 - EXPORTING:对比结果导出中。 - EXPORT_COMPLETE:对比结果导出完成。 - EXPORT_COMMON_FAILED:对比结果导出失败。
|
54
|
+
:type export_status: str
|
55
|
+
:param report_remain_seconds: 对比结果报告文件有效期剩余时间,单位秒,报告未生成时返回-1。
|
56
|
+
:type report_remain_seconds: int
|
57
|
+
:param compare_job_id: 对比任务ID。
|
58
|
+
:type compare_job_id: str
|
59
|
+
:param error_msg: 失败原因。
|
60
|
+
:type error_msg: str
|
61
|
+
:param compare_result: 对比结果。
|
62
|
+
:type compare_result: list[:class:`huaweicloudsdkdrs.v3.ObjectsCompareOverviewInfo`]
|
63
|
+
"""
|
64
|
+
|
65
|
+
super(ListObejectLevelCompareOverviewResponse, self).__init__()
|
66
|
+
|
67
|
+
self._create_time = None
|
68
|
+
self._start_time = None
|
69
|
+
self._status = None
|
70
|
+
self._export_status = None
|
71
|
+
self._report_remain_seconds = None
|
72
|
+
self._compare_job_id = None
|
73
|
+
self._error_msg = None
|
74
|
+
self._compare_result = None
|
75
|
+
self.discriminator = None
|
76
|
+
|
77
|
+
if create_time is not None:
|
78
|
+
self.create_time = create_time
|
79
|
+
if start_time is not None:
|
80
|
+
self.start_time = start_time
|
81
|
+
if status is not None:
|
82
|
+
self.status = status
|
83
|
+
if export_status is not None:
|
84
|
+
self.export_status = export_status
|
85
|
+
if report_remain_seconds is not None:
|
86
|
+
self.report_remain_seconds = report_remain_seconds
|
87
|
+
if compare_job_id is not None:
|
88
|
+
self.compare_job_id = compare_job_id
|
89
|
+
if error_msg is not None:
|
90
|
+
self.error_msg = error_msg
|
91
|
+
if compare_result is not None:
|
92
|
+
self.compare_result = compare_result
|
93
|
+
|
94
|
+
@property
|
95
|
+
def create_time(self):
|
96
|
+
"""Gets the create_time of this ListObejectLevelCompareOverviewResponse.
|
97
|
+
|
98
|
+
对比任务创建时间,UTC时间,例如:2024-04-09T07:00:57Z。
|
99
|
+
|
100
|
+
:return: The create_time of this ListObejectLevelCompareOverviewResponse.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._create_time
|
104
|
+
|
105
|
+
@create_time.setter
|
106
|
+
def create_time(self, create_time):
|
107
|
+
"""Sets the create_time of this ListObejectLevelCompareOverviewResponse.
|
108
|
+
|
109
|
+
对比任务创建时间,UTC时间,例如:2024-04-09T07:00:57Z。
|
110
|
+
|
111
|
+
:param create_time: The create_time of this ListObejectLevelCompareOverviewResponse.
|
112
|
+
:type create_time: str
|
113
|
+
"""
|
114
|
+
self._create_time = create_time
|
115
|
+
|
116
|
+
@property
|
117
|
+
def start_time(self):
|
118
|
+
"""Gets the start_time of this ListObejectLevelCompareOverviewResponse.
|
119
|
+
|
120
|
+
对比任务开始时间,UTC时间,例如:2024-04-09T07:00:57Z。
|
121
|
+
|
122
|
+
:return: The start_time of this ListObejectLevelCompareOverviewResponse.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._start_time
|
126
|
+
|
127
|
+
@start_time.setter
|
128
|
+
def start_time(self, start_time):
|
129
|
+
"""Sets the start_time of this ListObejectLevelCompareOverviewResponse.
|
130
|
+
|
131
|
+
对比任务开始时间,UTC时间,例如:2024-04-09T07:00:57Z。
|
132
|
+
|
133
|
+
:param start_time: The start_time of this ListObejectLevelCompareOverviewResponse.
|
134
|
+
:type start_time: str
|
135
|
+
"""
|
136
|
+
self._start_time = start_time
|
137
|
+
|
138
|
+
@property
|
139
|
+
def status(self):
|
140
|
+
"""Gets the status of this ListObejectLevelCompareOverviewResponse.
|
141
|
+
|
142
|
+
对比任务状态。 取值: - RUNNING:运行中。 - WAITING_FOR_RUNNING:等待启动中。 - SUCCESSFUL:完成。 - FAILED:失败。 - CANCELLED:已取消。 - TIMEOUT_INTERRUPT:超时中断。 - FULL_DOING:全量校验中。 - INCRE_DOING:增量校验中。
|
143
|
+
|
144
|
+
:return: The status of this ListObejectLevelCompareOverviewResponse.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._status
|
148
|
+
|
149
|
+
@status.setter
|
150
|
+
def status(self, status):
|
151
|
+
"""Sets the status of this ListObejectLevelCompareOverviewResponse.
|
152
|
+
|
153
|
+
对比任务状态。 取值: - RUNNING:运行中。 - WAITING_FOR_RUNNING:等待启动中。 - SUCCESSFUL:完成。 - FAILED:失败。 - CANCELLED:已取消。 - TIMEOUT_INTERRUPT:超时中断。 - FULL_DOING:全量校验中。 - INCRE_DOING:增量校验中。
|
154
|
+
|
155
|
+
:param status: The status of this ListObejectLevelCompareOverviewResponse.
|
156
|
+
:type status: str
|
157
|
+
"""
|
158
|
+
self._status = status
|
159
|
+
|
160
|
+
@property
|
161
|
+
def export_status(self):
|
162
|
+
"""Gets the export_status of this ListObejectLevelCompareOverviewResponse.
|
163
|
+
|
164
|
+
生成对比结果报告文件的状态: - INIT:初始状态。 - EXPORTING:对比结果导出中。 - EXPORT_COMPLETE:对比结果导出完成。 - EXPORT_COMMON_FAILED:对比结果导出失败。
|
165
|
+
|
166
|
+
:return: The export_status of this ListObejectLevelCompareOverviewResponse.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._export_status
|
170
|
+
|
171
|
+
@export_status.setter
|
172
|
+
def export_status(self, export_status):
|
173
|
+
"""Sets the export_status of this ListObejectLevelCompareOverviewResponse.
|
174
|
+
|
175
|
+
生成对比结果报告文件的状态: - INIT:初始状态。 - EXPORTING:对比结果导出中。 - EXPORT_COMPLETE:对比结果导出完成。 - EXPORT_COMMON_FAILED:对比结果导出失败。
|
176
|
+
|
177
|
+
:param export_status: The export_status of this ListObejectLevelCompareOverviewResponse.
|
178
|
+
:type export_status: str
|
179
|
+
"""
|
180
|
+
self._export_status = export_status
|
181
|
+
|
182
|
+
@property
|
183
|
+
def report_remain_seconds(self):
|
184
|
+
"""Gets the report_remain_seconds of this ListObejectLevelCompareOverviewResponse.
|
185
|
+
|
186
|
+
对比结果报告文件有效期剩余时间,单位秒,报告未生成时返回-1。
|
187
|
+
|
188
|
+
:return: The report_remain_seconds of this ListObejectLevelCompareOverviewResponse.
|
189
|
+
:rtype: int
|
190
|
+
"""
|
191
|
+
return self._report_remain_seconds
|
192
|
+
|
193
|
+
@report_remain_seconds.setter
|
194
|
+
def report_remain_seconds(self, report_remain_seconds):
|
195
|
+
"""Sets the report_remain_seconds of this ListObejectLevelCompareOverviewResponse.
|
196
|
+
|
197
|
+
对比结果报告文件有效期剩余时间,单位秒,报告未生成时返回-1。
|
198
|
+
|
199
|
+
:param report_remain_seconds: The report_remain_seconds of this ListObejectLevelCompareOverviewResponse.
|
200
|
+
:type report_remain_seconds: int
|
201
|
+
"""
|
202
|
+
self._report_remain_seconds = report_remain_seconds
|
203
|
+
|
204
|
+
@property
|
205
|
+
def compare_job_id(self):
|
206
|
+
"""Gets the compare_job_id of this ListObejectLevelCompareOverviewResponse.
|
207
|
+
|
208
|
+
对比任务ID。
|
209
|
+
|
210
|
+
:return: The compare_job_id of this ListObejectLevelCompareOverviewResponse.
|
211
|
+
:rtype: str
|
212
|
+
"""
|
213
|
+
return self._compare_job_id
|
214
|
+
|
215
|
+
@compare_job_id.setter
|
216
|
+
def compare_job_id(self, compare_job_id):
|
217
|
+
"""Sets the compare_job_id of this ListObejectLevelCompareOverviewResponse.
|
218
|
+
|
219
|
+
对比任务ID。
|
220
|
+
|
221
|
+
:param compare_job_id: The compare_job_id of this ListObejectLevelCompareOverviewResponse.
|
222
|
+
:type compare_job_id: str
|
223
|
+
"""
|
224
|
+
self._compare_job_id = compare_job_id
|
225
|
+
|
226
|
+
@property
|
227
|
+
def error_msg(self):
|
228
|
+
"""Gets the error_msg of this ListObejectLevelCompareOverviewResponse.
|
229
|
+
|
230
|
+
失败原因。
|
231
|
+
|
232
|
+
:return: The error_msg of this ListObejectLevelCompareOverviewResponse.
|
233
|
+
:rtype: str
|
234
|
+
"""
|
235
|
+
return self._error_msg
|
236
|
+
|
237
|
+
@error_msg.setter
|
238
|
+
def error_msg(self, error_msg):
|
239
|
+
"""Sets the error_msg of this ListObejectLevelCompareOverviewResponse.
|
240
|
+
|
241
|
+
失败原因。
|
242
|
+
|
243
|
+
:param error_msg: The error_msg of this ListObejectLevelCompareOverviewResponse.
|
244
|
+
:type error_msg: str
|
245
|
+
"""
|
246
|
+
self._error_msg = error_msg
|
247
|
+
|
248
|
+
@property
|
249
|
+
def compare_result(self):
|
250
|
+
"""Gets the compare_result of this ListObejectLevelCompareOverviewResponse.
|
251
|
+
|
252
|
+
对比结果。
|
253
|
+
|
254
|
+
:return: The compare_result of this ListObejectLevelCompareOverviewResponse.
|
255
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v3.ObjectsCompareOverviewInfo`]
|
256
|
+
"""
|
257
|
+
return self._compare_result
|
258
|
+
|
259
|
+
@compare_result.setter
|
260
|
+
def compare_result(self, compare_result):
|
261
|
+
"""Sets the compare_result of this ListObejectLevelCompareOverviewResponse.
|
262
|
+
|
263
|
+
对比结果。
|
264
|
+
|
265
|
+
:param compare_result: The compare_result of this ListObejectLevelCompareOverviewResponse.
|
266
|
+
:type compare_result: list[:class:`huaweicloudsdkdrs.v3.ObjectsCompareOverviewInfo`]
|
267
|
+
"""
|
268
|
+
self._compare_result = compare_result
|
269
|
+
|
270
|
+
def to_dict(self):
|
271
|
+
"""Returns the model properties as a dict"""
|
272
|
+
result = {}
|
273
|
+
|
274
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
275
|
+
value = getattr(self, attr)
|
276
|
+
if isinstance(value, list):
|
277
|
+
result[attr] = list(map(
|
278
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
279
|
+
value
|
280
|
+
))
|
281
|
+
elif hasattr(value, "to_dict"):
|
282
|
+
result[attr] = value.to_dict()
|
283
|
+
elif isinstance(value, dict):
|
284
|
+
result[attr] = dict(map(
|
285
|
+
lambda item: (item[0], item[1].to_dict())
|
286
|
+
if hasattr(item[1], "to_dict") else item,
|
287
|
+
value.items()
|
288
|
+
))
|
289
|
+
else:
|
290
|
+
if attr in self.sensitive_list:
|
291
|
+
result[attr] = "****"
|
292
|
+
else:
|
293
|
+
result[attr] = value
|
294
|
+
|
295
|
+
return result
|
296
|
+
|
297
|
+
def to_str(self):
|
298
|
+
"""Returns the string representation of the model"""
|
299
|
+
import simplejson as json
|
300
|
+
if six.PY2:
|
301
|
+
import sys
|
302
|
+
reload(sys)
|
303
|
+
sys.setdefaultencoding("utf-8")
|
304
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
305
|
+
|
306
|
+
def __repr__(self):
|
307
|
+
"""For `print`"""
|
308
|
+
return self.to_str()
|
309
|
+
|
310
|
+
def __eq__(self, other):
|
311
|
+
"""Returns true if both objects are equal"""
|
312
|
+
if not isinstance(other, ListObejectLevelCompareOverviewResponse):
|
313
|
+
return False
|
314
|
+
|
315
|
+
return self.__dict__ == other.__dict__
|
316
|
+
|
317
|
+
def __ne__(self, other):
|
318
|
+
"""Returns true if both objects are not equal"""
|
319
|
+
return not self == other
|
@@ -0,0 +1,260 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ObjectsCompareDetailInfo:
|
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_name': 'str',
|
21
|
+
'target_db_name': 'str',
|
22
|
+
'source_db_value': 'str',
|
23
|
+
'target_db_value': 'str',
|
24
|
+
'status': 'int',
|
25
|
+
'error_message': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'source_db_name': 'source_db_name',
|
30
|
+
'target_db_name': 'target_db_name',
|
31
|
+
'source_db_value': 'source_db_value',
|
32
|
+
'target_db_value': 'target_db_value',
|
33
|
+
'status': 'status',
|
34
|
+
'error_message': 'error_message'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, source_db_name=None, target_db_name=None, source_db_value=None, target_db_value=None, status=None, error_message=None):
|
38
|
+
"""ObjectsCompareDetailInfo
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param source_db_name: 源库名称。
|
43
|
+
:type source_db_name: str
|
44
|
+
:param target_db_name: 目标库名称。
|
45
|
+
:type target_db_name: str
|
46
|
+
:param source_db_value: 在源库的值。
|
47
|
+
:type source_db_value: str
|
48
|
+
:param target_db_value: 在目标库的值。
|
49
|
+
:type target_db_value: str
|
50
|
+
:param status: 对比结果,0为不一致,2为一致,3为未完成。
|
51
|
+
:type status: int
|
52
|
+
:param error_message: 错误信息。
|
53
|
+
:type error_message: str
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._source_db_name = None
|
59
|
+
self._target_db_name = None
|
60
|
+
self._source_db_value = None
|
61
|
+
self._target_db_value = None
|
62
|
+
self._status = None
|
63
|
+
self._error_message = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if source_db_name is not None:
|
67
|
+
self.source_db_name = source_db_name
|
68
|
+
if target_db_name is not None:
|
69
|
+
self.target_db_name = target_db_name
|
70
|
+
if source_db_value is not None:
|
71
|
+
self.source_db_value = source_db_value
|
72
|
+
if target_db_value is not None:
|
73
|
+
self.target_db_value = target_db_value
|
74
|
+
if status is not None:
|
75
|
+
self.status = status
|
76
|
+
if error_message is not None:
|
77
|
+
self.error_message = error_message
|
78
|
+
|
79
|
+
@property
|
80
|
+
def source_db_name(self):
|
81
|
+
"""Gets the source_db_name of this ObjectsCompareDetailInfo.
|
82
|
+
|
83
|
+
源库名称。
|
84
|
+
|
85
|
+
:return: The source_db_name of this ObjectsCompareDetailInfo.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._source_db_name
|
89
|
+
|
90
|
+
@source_db_name.setter
|
91
|
+
def source_db_name(self, source_db_name):
|
92
|
+
"""Sets the source_db_name of this ObjectsCompareDetailInfo.
|
93
|
+
|
94
|
+
源库名称。
|
95
|
+
|
96
|
+
:param source_db_name: The source_db_name of this ObjectsCompareDetailInfo.
|
97
|
+
:type source_db_name: str
|
98
|
+
"""
|
99
|
+
self._source_db_name = source_db_name
|
100
|
+
|
101
|
+
@property
|
102
|
+
def target_db_name(self):
|
103
|
+
"""Gets the target_db_name of this ObjectsCompareDetailInfo.
|
104
|
+
|
105
|
+
目标库名称。
|
106
|
+
|
107
|
+
:return: The target_db_name of this ObjectsCompareDetailInfo.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._target_db_name
|
111
|
+
|
112
|
+
@target_db_name.setter
|
113
|
+
def target_db_name(self, target_db_name):
|
114
|
+
"""Sets the target_db_name of this ObjectsCompareDetailInfo.
|
115
|
+
|
116
|
+
目标库名称。
|
117
|
+
|
118
|
+
:param target_db_name: The target_db_name of this ObjectsCompareDetailInfo.
|
119
|
+
:type target_db_name: str
|
120
|
+
"""
|
121
|
+
self._target_db_name = target_db_name
|
122
|
+
|
123
|
+
@property
|
124
|
+
def source_db_value(self):
|
125
|
+
"""Gets the source_db_value of this ObjectsCompareDetailInfo.
|
126
|
+
|
127
|
+
在源库的值。
|
128
|
+
|
129
|
+
:return: The source_db_value of this ObjectsCompareDetailInfo.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._source_db_value
|
133
|
+
|
134
|
+
@source_db_value.setter
|
135
|
+
def source_db_value(self, source_db_value):
|
136
|
+
"""Sets the source_db_value of this ObjectsCompareDetailInfo.
|
137
|
+
|
138
|
+
在源库的值。
|
139
|
+
|
140
|
+
:param source_db_value: The source_db_value of this ObjectsCompareDetailInfo.
|
141
|
+
:type source_db_value: str
|
142
|
+
"""
|
143
|
+
self._source_db_value = source_db_value
|
144
|
+
|
145
|
+
@property
|
146
|
+
def target_db_value(self):
|
147
|
+
"""Gets the target_db_value of this ObjectsCompareDetailInfo.
|
148
|
+
|
149
|
+
在目标库的值。
|
150
|
+
|
151
|
+
:return: The target_db_value of this ObjectsCompareDetailInfo.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._target_db_value
|
155
|
+
|
156
|
+
@target_db_value.setter
|
157
|
+
def target_db_value(self, target_db_value):
|
158
|
+
"""Sets the target_db_value of this ObjectsCompareDetailInfo.
|
159
|
+
|
160
|
+
在目标库的值。
|
161
|
+
|
162
|
+
:param target_db_value: The target_db_value of this ObjectsCompareDetailInfo.
|
163
|
+
:type target_db_value: str
|
164
|
+
"""
|
165
|
+
self._target_db_value = target_db_value
|
166
|
+
|
167
|
+
@property
|
168
|
+
def status(self):
|
169
|
+
"""Gets the status of this ObjectsCompareDetailInfo.
|
170
|
+
|
171
|
+
对比结果,0为不一致,2为一致,3为未完成。
|
172
|
+
|
173
|
+
:return: The status of this ObjectsCompareDetailInfo.
|
174
|
+
:rtype: int
|
175
|
+
"""
|
176
|
+
return self._status
|
177
|
+
|
178
|
+
@status.setter
|
179
|
+
def status(self, status):
|
180
|
+
"""Sets the status of this ObjectsCompareDetailInfo.
|
181
|
+
|
182
|
+
对比结果,0为不一致,2为一致,3为未完成。
|
183
|
+
|
184
|
+
:param status: The status of this ObjectsCompareDetailInfo.
|
185
|
+
:type status: int
|
186
|
+
"""
|
187
|
+
self._status = status
|
188
|
+
|
189
|
+
@property
|
190
|
+
def error_message(self):
|
191
|
+
"""Gets the error_message of this ObjectsCompareDetailInfo.
|
192
|
+
|
193
|
+
错误信息。
|
194
|
+
|
195
|
+
:return: The error_message of this ObjectsCompareDetailInfo.
|
196
|
+
:rtype: str
|
197
|
+
"""
|
198
|
+
return self._error_message
|
199
|
+
|
200
|
+
@error_message.setter
|
201
|
+
def error_message(self, error_message):
|
202
|
+
"""Sets the error_message of this ObjectsCompareDetailInfo.
|
203
|
+
|
204
|
+
错误信息。
|
205
|
+
|
206
|
+
:param error_message: The error_message of this ObjectsCompareDetailInfo.
|
207
|
+
:type error_message: str
|
208
|
+
"""
|
209
|
+
self._error_message = error_message
|
210
|
+
|
211
|
+
def to_dict(self):
|
212
|
+
"""Returns the model properties as a dict"""
|
213
|
+
result = {}
|
214
|
+
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
216
|
+
value = getattr(self, attr)
|
217
|
+
if isinstance(value, list):
|
218
|
+
result[attr] = list(map(
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
220
|
+
value
|
221
|
+
))
|
222
|
+
elif hasattr(value, "to_dict"):
|
223
|
+
result[attr] = value.to_dict()
|
224
|
+
elif isinstance(value, dict):
|
225
|
+
result[attr] = dict(map(
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
228
|
+
value.items()
|
229
|
+
))
|
230
|
+
else:
|
231
|
+
if attr in self.sensitive_list:
|
232
|
+
result[attr] = "****"
|
233
|
+
else:
|
234
|
+
result[attr] = value
|
235
|
+
|
236
|
+
return result
|
237
|
+
|
238
|
+
def to_str(self):
|
239
|
+
"""Returns the string representation of the model"""
|
240
|
+
import simplejson as json
|
241
|
+
if six.PY2:
|
242
|
+
import sys
|
243
|
+
reload(sys)
|
244
|
+
sys.setdefaultencoding("utf-8")
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
246
|
+
|
247
|
+
def __repr__(self):
|
248
|
+
"""For `print`"""
|
249
|
+
return self.to_str()
|
250
|
+
|
251
|
+
def __eq__(self, other):
|
252
|
+
"""Returns true if both objects are equal"""
|
253
|
+
if not isinstance(other, ObjectsCompareDetailInfo):
|
254
|
+
return False
|
255
|
+
|
256
|
+
return self.__dict__ == other.__dict__
|
257
|
+
|
258
|
+
def __ne__(self, other):
|
259
|
+
"""Returns true if both objects are not equal"""
|
260
|
+
return not self == other
|