huaweicloudsdkdrs 3.1.90__py2.py3-none-any.whl → 3.1.91__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.91.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/RECORD +54 -18
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/top_level.txt +0 -0
@@ -35,7 +35,7 @@ class ActionReq:
|
|
35
35
|
|
36
36
|
:param job_id: 任务ID (对比任务相关操作,多任务场景传父任务详情返回的master_job_id),批量操作时必填
|
37
37
|
:type job_id: str
|
38
|
-
:param action_name: 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。
|
38
|
+
:param action_name: 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。
|
39
39
|
:type action_name: str
|
40
40
|
:param action_params:
|
41
41
|
:type action_params: :class:`huaweicloudsdkdrs.v5.ActionParams`
|
@@ -80,7 +80,7 @@ class ActionReq:
|
|
80
80
|
def action_name(self):
|
81
81
|
"""Gets the action_name of this ActionReq.
|
82
82
|
|
83
|
-
操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。
|
83
|
+
操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。
|
84
84
|
|
85
85
|
:return: The action_name of this ActionReq.
|
86
86
|
:rtype: str
|
@@ -91,7 +91,7 @@ class ActionReq:
|
|
91
91
|
def action_name(self, action_name):
|
92
92
|
"""Sets the action_name of this ActionReq.
|
93
93
|
|
94
|
-
操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。
|
94
|
+
操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。
|
95
95
|
|
96
96
|
:param action_name: The action_name of this ActionReq.
|
97
97
|
:type action_name: str
|
@@ -21,7 +21,8 @@ class CompareTaskParams:
|
|
21
21
|
'type': 'str',
|
22
22
|
'start_time': 'str',
|
23
23
|
'option': 'dict(str, str)',
|
24
|
-
'db_object': 'dict(str, DatabaseObject)'
|
24
|
+
'db_object': 'dict(str, DatabaseObject)',
|
25
|
+
'data_process_info': 'list[DataProcessInfo]'
|
25
26
|
}
|
26
27
|
|
27
28
|
attribute_map = {
|
@@ -29,10 +30,11 @@ class CompareTaskParams:
|
|
29
30
|
'type': 'type',
|
30
31
|
'start_time': 'start_time',
|
31
32
|
'option': 'option',
|
32
|
-
'db_object': 'db_object'
|
33
|
+
'db_object': 'db_object',
|
34
|
+
'data_process_info': 'data_process_info'
|
33
35
|
}
|
34
36
|
|
35
|
-
def __init__(self, compare_task_id=None, type=None, start_time=None, option=None, db_object=None):
|
37
|
+
def __init__(self, compare_task_id=None, type=None, start_time=None, option=None, db_object=None, data_process_info=None):
|
36
38
|
"""CompareTaskParams
|
37
39
|
|
38
40
|
The model defined in huaweicloud sdk
|
@@ -47,6 +49,8 @@ class CompareTaskParams:
|
|
47
49
|
:type option: dict(str, str)
|
48
50
|
:param db_object: 对比选择对象。
|
49
51
|
:type db_object: dict(str, DatabaseObject)
|
52
|
+
:param data_process_info: 更新数据加工规则请求体
|
53
|
+
:type data_process_info: list[:class:`huaweicloudsdkdrs.v5.DataProcessInfo`]
|
50
54
|
"""
|
51
55
|
|
52
56
|
|
@@ -56,6 +60,7 @@ class CompareTaskParams:
|
|
56
60
|
self._start_time = None
|
57
61
|
self._option = None
|
58
62
|
self._db_object = None
|
63
|
+
self._data_process_info = None
|
59
64
|
self.discriminator = None
|
60
65
|
|
61
66
|
if compare_task_id is not None:
|
@@ -68,6 +73,8 @@ class CompareTaskParams:
|
|
68
73
|
self.option = option
|
69
74
|
if db_object is not None:
|
70
75
|
self.db_object = db_object
|
76
|
+
if data_process_info is not None:
|
77
|
+
self.data_process_info = data_process_info
|
71
78
|
|
72
79
|
@property
|
73
80
|
def compare_task_id(self):
|
@@ -179,6 +186,28 @@ class CompareTaskParams:
|
|
179
186
|
"""
|
180
187
|
self._db_object = db_object
|
181
188
|
|
189
|
+
@property
|
190
|
+
def data_process_info(self):
|
191
|
+
"""Gets the data_process_info of this CompareTaskParams.
|
192
|
+
|
193
|
+
更新数据加工规则请求体
|
194
|
+
|
195
|
+
:return: The data_process_info of this CompareTaskParams.
|
196
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.DataProcessInfo`]
|
197
|
+
"""
|
198
|
+
return self._data_process_info
|
199
|
+
|
200
|
+
@data_process_info.setter
|
201
|
+
def data_process_info(self, data_process_info):
|
202
|
+
"""Sets the data_process_info of this CompareTaskParams.
|
203
|
+
|
204
|
+
更新数据加工规则请求体
|
205
|
+
|
206
|
+
:param data_process_info: The data_process_info of this CompareTaskParams.
|
207
|
+
:type data_process_info: list[:class:`huaweicloudsdkdrs.v5.DataProcessInfo`]
|
208
|
+
"""
|
209
|
+
self._data_process_info = data_process_info
|
210
|
+
|
182
211
|
def to_dict(self):
|
183
212
|
"""Returns the model properties as a dict"""
|
184
213
|
result = {}
|
@@ -25,7 +25,8 @@ class DataProcessInfo:
|
|
25
25
|
'db_object_column_info': 'DbObjectColumnInfo',
|
26
26
|
'db_or_table_rename_rule': 'DbOrTableRenameRule',
|
27
27
|
'db_object': 'DbObject',
|
28
|
-
'is_synchronized': 'bool'
|
28
|
+
'is_synchronized': 'bool',
|
29
|
+
'source': 'str'
|
29
30
|
}
|
30
31
|
|
31
32
|
attribute_map = {
|
@@ -37,10 +38,11 @@ class DataProcessInfo:
|
|
37
38
|
'db_object_column_info': 'db_object_column_info',
|
38
39
|
'db_or_table_rename_rule': 'db_or_table_rename_rule',
|
39
40
|
'db_object': 'db_object',
|
40
|
-
'is_synchronized': 'is_synchronized'
|
41
|
+
'is_synchronized': 'is_synchronized',
|
42
|
+
'source': 'source'
|
41
43
|
}
|
42
44
|
|
43
|
-
def __init__(self, filter_conditions=None, is_batch_process=None, add_columns=None, ddl_operation=None, dml_operation=None, db_object_column_info=None, db_or_table_rename_rule=None, db_object=None, is_synchronized=None):
|
45
|
+
def __init__(self, filter_conditions=None, is_batch_process=None, add_columns=None, ddl_operation=None, dml_operation=None, db_object_column_info=None, db_or_table_rename_rule=None, db_object=None, is_synchronized=None, source=None):
|
44
46
|
"""DataProcessInfo
|
45
47
|
|
46
48
|
The model defined in huaweicloud sdk
|
@@ -63,6 +65,8 @@ class DataProcessInfo:
|
|
63
65
|
:type db_object: :class:`huaweicloudsdkdrs.v5.DbObject`
|
64
66
|
:param is_synchronized: 表示该规则是否已同步至目标库
|
65
67
|
:type is_synchronized: bool
|
68
|
+
:param source: 对比的来源 - job 表示数据同步时的过滤 - compare 表示数据对比的过滤
|
69
|
+
:type source: str
|
66
70
|
"""
|
67
71
|
|
68
72
|
|
@@ -76,6 +80,7 @@ class DataProcessInfo:
|
|
76
80
|
self._db_or_table_rename_rule = None
|
77
81
|
self._db_object = None
|
78
82
|
self._is_synchronized = None
|
83
|
+
self._source = None
|
79
84
|
self.discriminator = None
|
80
85
|
|
81
86
|
if filter_conditions is not None:
|
@@ -96,6 +101,8 @@ class DataProcessInfo:
|
|
96
101
|
self.db_object = db_object
|
97
102
|
if is_synchronized is not None:
|
98
103
|
self.is_synchronized = is_synchronized
|
104
|
+
if source is not None:
|
105
|
+
self.source = source
|
99
106
|
|
100
107
|
@property
|
101
108
|
def filter_conditions(self):
|
@@ -283,6 +290,28 @@ class DataProcessInfo:
|
|
283
290
|
"""
|
284
291
|
self._is_synchronized = is_synchronized
|
285
292
|
|
293
|
+
@property
|
294
|
+
def source(self):
|
295
|
+
"""Gets the source of this DataProcessInfo.
|
296
|
+
|
297
|
+
对比的来源 - job 表示数据同步时的过滤 - compare 表示数据对比的过滤
|
298
|
+
|
299
|
+
:return: The source of this DataProcessInfo.
|
300
|
+
:rtype: str
|
301
|
+
"""
|
302
|
+
return self._source
|
303
|
+
|
304
|
+
@source.setter
|
305
|
+
def source(self, source):
|
306
|
+
"""Sets the source of this DataProcessInfo.
|
307
|
+
|
308
|
+
对比的来源 - job 表示数据同步时的过滤 - compare 表示数据对比的过滤
|
309
|
+
|
310
|
+
:param source: The source of this DataProcessInfo.
|
311
|
+
:type source: str
|
312
|
+
"""
|
313
|
+
self._source = source
|
314
|
+
|
286
315
|
def to_dict(self):
|
287
316
|
"""Returns the model properties as a dict"""
|
288
317
|
result = {}
|
@@ -21,7 +21,12 @@ class DbObjectFilteringResult:
|
|
21
21
|
'schema_name': 'str',
|
22
22
|
'table_name': 'str',
|
23
23
|
'is_success': 'bool',
|
24
|
-
'message': 'str'
|
24
|
+
'message': 'str',
|
25
|
+
'source': 'str',
|
26
|
+
'target_result': 'str',
|
27
|
+
'source_result': 'str',
|
28
|
+
'target_message': 'str',
|
29
|
+
'source_message': 'str'
|
25
30
|
}
|
26
31
|
|
27
32
|
attribute_map = {
|
@@ -29,10 +34,15 @@ class DbObjectFilteringResult:
|
|
29
34
|
'schema_name': 'schema_name',
|
30
35
|
'table_name': 'table_name',
|
31
36
|
'is_success': 'is_success',
|
32
|
-
'message': 'message'
|
37
|
+
'message': 'message',
|
38
|
+
'source': 'source',
|
39
|
+
'target_result': 'target_result',
|
40
|
+
'source_result': 'source_result',
|
41
|
+
'target_message': 'target_message',
|
42
|
+
'source_message': 'source_message'
|
33
43
|
}
|
34
44
|
|
35
|
-
def __init__(self, db_name=None, schema_name=None, table_name=None, is_success=None, message=None):
|
45
|
+
def __init__(self, db_name=None, schema_name=None, table_name=None, is_success=None, message=None, source=None, target_result=None, source_result=None, target_message=None, source_message=None):
|
36
46
|
"""DbObjectFilteringResult
|
37
47
|
|
38
48
|
The model defined in huaweicloud sdk
|
@@ -47,6 +57,16 @@ class DbObjectFilteringResult:
|
|
47
57
|
:type is_success: bool
|
48
58
|
:param message: 当数据过滤校验结果是false,返回校验失败的原因。
|
49
59
|
:type message: str
|
60
|
+
:param source: 对比的来源 - job 表示数据同步时的过滤 - compare 表示数据对比的过滤
|
61
|
+
:type source: str
|
62
|
+
:param target_result: 校验目标库比对条件过滤的结果
|
63
|
+
:type target_result: str
|
64
|
+
:param source_result: 校验源库比对条件过滤的结果
|
65
|
+
:type source_result: str
|
66
|
+
:param target_message: 校验目标库比对条件过滤的失败原因
|
67
|
+
:type target_message: str
|
68
|
+
:param source_message: 校验源库比对条件过滤的失败原因
|
69
|
+
:type source_message: str
|
50
70
|
"""
|
51
71
|
|
52
72
|
|
@@ -56,6 +76,11 @@ class DbObjectFilteringResult:
|
|
56
76
|
self._table_name = None
|
57
77
|
self._is_success = None
|
58
78
|
self._message = None
|
79
|
+
self._source = None
|
80
|
+
self._target_result = None
|
81
|
+
self._source_result = None
|
82
|
+
self._target_message = None
|
83
|
+
self._source_message = None
|
59
84
|
self.discriminator = None
|
60
85
|
|
61
86
|
if db_name is not None:
|
@@ -68,6 +93,16 @@ class DbObjectFilteringResult:
|
|
68
93
|
self.is_success = is_success
|
69
94
|
if message is not None:
|
70
95
|
self.message = message
|
96
|
+
if source is not None:
|
97
|
+
self.source = source
|
98
|
+
if target_result is not None:
|
99
|
+
self.target_result = target_result
|
100
|
+
if source_result is not None:
|
101
|
+
self.source_result = source_result
|
102
|
+
if target_message is not None:
|
103
|
+
self.target_message = target_message
|
104
|
+
if source_message is not None:
|
105
|
+
self.source_message = source_message
|
71
106
|
|
72
107
|
@property
|
73
108
|
def db_name(self):
|
@@ -179,6 +214,116 @@ class DbObjectFilteringResult:
|
|
179
214
|
"""
|
180
215
|
self._message = message
|
181
216
|
|
217
|
+
@property
|
218
|
+
def source(self):
|
219
|
+
"""Gets the source of this DbObjectFilteringResult.
|
220
|
+
|
221
|
+
对比的来源 - job 表示数据同步时的过滤 - compare 表示数据对比的过滤
|
222
|
+
|
223
|
+
:return: The source of this DbObjectFilteringResult.
|
224
|
+
:rtype: str
|
225
|
+
"""
|
226
|
+
return self._source
|
227
|
+
|
228
|
+
@source.setter
|
229
|
+
def source(self, source):
|
230
|
+
"""Sets the source of this DbObjectFilteringResult.
|
231
|
+
|
232
|
+
对比的来源 - job 表示数据同步时的过滤 - compare 表示数据对比的过滤
|
233
|
+
|
234
|
+
:param source: The source of this DbObjectFilteringResult.
|
235
|
+
:type source: str
|
236
|
+
"""
|
237
|
+
self._source = source
|
238
|
+
|
239
|
+
@property
|
240
|
+
def target_result(self):
|
241
|
+
"""Gets the target_result of this DbObjectFilteringResult.
|
242
|
+
|
243
|
+
校验目标库比对条件过滤的结果
|
244
|
+
|
245
|
+
:return: The target_result of this DbObjectFilteringResult.
|
246
|
+
:rtype: str
|
247
|
+
"""
|
248
|
+
return self._target_result
|
249
|
+
|
250
|
+
@target_result.setter
|
251
|
+
def target_result(self, target_result):
|
252
|
+
"""Sets the target_result of this DbObjectFilteringResult.
|
253
|
+
|
254
|
+
校验目标库比对条件过滤的结果
|
255
|
+
|
256
|
+
:param target_result: The target_result of this DbObjectFilteringResult.
|
257
|
+
:type target_result: str
|
258
|
+
"""
|
259
|
+
self._target_result = target_result
|
260
|
+
|
261
|
+
@property
|
262
|
+
def source_result(self):
|
263
|
+
"""Gets the source_result of this DbObjectFilteringResult.
|
264
|
+
|
265
|
+
校验源库比对条件过滤的结果
|
266
|
+
|
267
|
+
:return: The source_result of this DbObjectFilteringResult.
|
268
|
+
:rtype: str
|
269
|
+
"""
|
270
|
+
return self._source_result
|
271
|
+
|
272
|
+
@source_result.setter
|
273
|
+
def source_result(self, source_result):
|
274
|
+
"""Sets the source_result of this DbObjectFilteringResult.
|
275
|
+
|
276
|
+
校验源库比对条件过滤的结果
|
277
|
+
|
278
|
+
:param source_result: The source_result of this DbObjectFilteringResult.
|
279
|
+
:type source_result: str
|
280
|
+
"""
|
281
|
+
self._source_result = source_result
|
282
|
+
|
283
|
+
@property
|
284
|
+
def target_message(self):
|
285
|
+
"""Gets the target_message of this DbObjectFilteringResult.
|
286
|
+
|
287
|
+
校验目标库比对条件过滤的失败原因
|
288
|
+
|
289
|
+
:return: The target_message of this DbObjectFilteringResult.
|
290
|
+
:rtype: str
|
291
|
+
"""
|
292
|
+
return self._target_message
|
293
|
+
|
294
|
+
@target_message.setter
|
295
|
+
def target_message(self, target_message):
|
296
|
+
"""Sets the target_message of this DbObjectFilteringResult.
|
297
|
+
|
298
|
+
校验目标库比对条件过滤的失败原因
|
299
|
+
|
300
|
+
:param target_message: The target_message of this DbObjectFilteringResult.
|
301
|
+
:type target_message: str
|
302
|
+
"""
|
303
|
+
self._target_message = target_message
|
304
|
+
|
305
|
+
@property
|
306
|
+
def source_message(self):
|
307
|
+
"""Gets the source_message of this DbObjectFilteringResult.
|
308
|
+
|
309
|
+
校验源库比对条件过滤的失败原因
|
310
|
+
|
311
|
+
:return: The source_message of this DbObjectFilteringResult.
|
312
|
+
:rtype: str
|
313
|
+
"""
|
314
|
+
return self._source_message
|
315
|
+
|
316
|
+
@source_message.setter
|
317
|
+
def source_message(self, source_message):
|
318
|
+
"""Sets the source_message of this DbObjectFilteringResult.
|
319
|
+
|
320
|
+
校验源库比对条件过滤的失败原因
|
321
|
+
|
322
|
+
:param source_message: The source_message of this DbObjectFilteringResult.
|
323
|
+
:type source_message: str
|
324
|
+
"""
|
325
|
+
self._source_message = source_message
|
326
|
+
|
182
327
|
def to_dict(self):
|
183
328
|
"""Returns the model properties as a dict"""
|
184
329
|
result = {}
|
@@ -0,0 +1,201 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListsAgencyPermissionsRequest:
|
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
|
+
'source_type': 'str',
|
22
|
+
'target_type': 'str',
|
23
|
+
'is_non_dbs': 'bool'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'x_language': 'X-Language',
|
28
|
+
'source_type': 'source_type',
|
29
|
+
'target_type': 'target_type',
|
30
|
+
'is_non_dbs': 'is_non_dbs'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, x_language=None, source_type=None, target_type=None, is_non_dbs=None):
|
34
|
+
"""ListsAgencyPermissionsRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param x_language: 请求语言类型。
|
39
|
+
:type x_language: str
|
40
|
+
:param source_type: 源库类型 - mysql - sqlserver - postgresql - hwsql - mongodb - dws - oracle - taurus - tauruslite - ddm - kafka - mrsKafka - gaussdb - gaussdbv5 - gaussdbv5ha - gaussmongodb - cassandra - dmq - gaussdbt - gaussdb300 - gaussdbtha - elasticsearch - db2 - tidb - redis - rediscluster - gaussredis - mariadb - gaussdbv1 - informix - dynamo - gausscassandra - oceanbase
|
41
|
+
:type source_type: str
|
42
|
+
:param target_type: 目标库类型 - mysql - sqlserver - postgresql - hwsql - mongodb - dws - oracle - taurus - tauruslite - ddm - kafka - mrsKafka - gaussdb - gaussdbv5 - gaussdbv5ha - gaussmongodb - cassandra - dmq - gaussdbt - gaussdb300 - gaussdbtha - elasticsearch - db2 - tidb - redis - rediscluster - gaussredis - mariadb - gaussdbv1 - informix - dynamo - gausscassandra - oceanbase
|
43
|
+
:type target_type: str
|
44
|
+
:param is_non_dbs: 是否自建。
|
45
|
+
:type is_non_dbs: bool
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._x_language = None
|
51
|
+
self._source_type = None
|
52
|
+
self._target_type = None
|
53
|
+
self._is_non_dbs = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if x_language is not None:
|
57
|
+
self.x_language = x_language
|
58
|
+
if source_type is not None:
|
59
|
+
self.source_type = source_type
|
60
|
+
if target_type is not None:
|
61
|
+
self.target_type = target_type
|
62
|
+
self.is_non_dbs = is_non_dbs
|
63
|
+
|
64
|
+
@property
|
65
|
+
def x_language(self):
|
66
|
+
"""Gets the x_language of this ListsAgencyPermissionsRequest.
|
67
|
+
|
68
|
+
请求语言类型。
|
69
|
+
|
70
|
+
:return: The x_language of this ListsAgencyPermissionsRequest.
|
71
|
+
:rtype: str
|
72
|
+
"""
|
73
|
+
return self._x_language
|
74
|
+
|
75
|
+
@x_language.setter
|
76
|
+
def x_language(self, x_language):
|
77
|
+
"""Sets the x_language of this ListsAgencyPermissionsRequest.
|
78
|
+
|
79
|
+
请求语言类型。
|
80
|
+
|
81
|
+
:param x_language: The x_language of this ListsAgencyPermissionsRequest.
|
82
|
+
:type x_language: str
|
83
|
+
"""
|
84
|
+
self._x_language = x_language
|
85
|
+
|
86
|
+
@property
|
87
|
+
def source_type(self):
|
88
|
+
"""Gets the source_type of this ListsAgencyPermissionsRequest.
|
89
|
+
|
90
|
+
源库类型 - mysql - sqlserver - postgresql - hwsql - mongodb - dws - oracle - taurus - tauruslite - ddm - kafka - mrsKafka - gaussdb - gaussdbv5 - gaussdbv5ha - gaussmongodb - cassandra - dmq - gaussdbt - gaussdb300 - gaussdbtha - elasticsearch - db2 - tidb - redis - rediscluster - gaussredis - mariadb - gaussdbv1 - informix - dynamo - gausscassandra - oceanbase
|
91
|
+
|
92
|
+
:return: The source_type of this ListsAgencyPermissionsRequest.
|
93
|
+
:rtype: str
|
94
|
+
"""
|
95
|
+
return self._source_type
|
96
|
+
|
97
|
+
@source_type.setter
|
98
|
+
def source_type(self, source_type):
|
99
|
+
"""Sets the source_type of this ListsAgencyPermissionsRequest.
|
100
|
+
|
101
|
+
源库类型 - mysql - sqlserver - postgresql - hwsql - mongodb - dws - oracle - taurus - tauruslite - ddm - kafka - mrsKafka - gaussdb - gaussdbv5 - gaussdbv5ha - gaussmongodb - cassandra - dmq - gaussdbt - gaussdb300 - gaussdbtha - elasticsearch - db2 - tidb - redis - rediscluster - gaussredis - mariadb - gaussdbv1 - informix - dynamo - gausscassandra - oceanbase
|
102
|
+
|
103
|
+
:param source_type: The source_type of this ListsAgencyPermissionsRequest.
|
104
|
+
:type source_type: str
|
105
|
+
"""
|
106
|
+
self._source_type = source_type
|
107
|
+
|
108
|
+
@property
|
109
|
+
def target_type(self):
|
110
|
+
"""Gets the target_type of this ListsAgencyPermissionsRequest.
|
111
|
+
|
112
|
+
目标库类型 - mysql - sqlserver - postgresql - hwsql - mongodb - dws - oracle - taurus - tauruslite - ddm - kafka - mrsKafka - gaussdb - gaussdbv5 - gaussdbv5ha - gaussmongodb - cassandra - dmq - gaussdbt - gaussdb300 - gaussdbtha - elasticsearch - db2 - tidb - redis - rediscluster - gaussredis - mariadb - gaussdbv1 - informix - dynamo - gausscassandra - oceanbase
|
113
|
+
|
114
|
+
:return: The target_type of this ListsAgencyPermissionsRequest.
|
115
|
+
:rtype: str
|
116
|
+
"""
|
117
|
+
return self._target_type
|
118
|
+
|
119
|
+
@target_type.setter
|
120
|
+
def target_type(self, target_type):
|
121
|
+
"""Sets the target_type of this ListsAgencyPermissionsRequest.
|
122
|
+
|
123
|
+
目标库类型 - mysql - sqlserver - postgresql - hwsql - mongodb - dws - oracle - taurus - tauruslite - ddm - kafka - mrsKafka - gaussdb - gaussdbv5 - gaussdbv5ha - gaussmongodb - cassandra - dmq - gaussdbt - gaussdb300 - gaussdbtha - elasticsearch - db2 - tidb - redis - rediscluster - gaussredis - mariadb - gaussdbv1 - informix - dynamo - gausscassandra - oceanbase
|
124
|
+
|
125
|
+
:param target_type: The target_type of this ListsAgencyPermissionsRequest.
|
126
|
+
:type target_type: str
|
127
|
+
"""
|
128
|
+
self._target_type = target_type
|
129
|
+
|
130
|
+
@property
|
131
|
+
def is_non_dbs(self):
|
132
|
+
"""Gets the is_non_dbs of this ListsAgencyPermissionsRequest.
|
133
|
+
|
134
|
+
是否自建。
|
135
|
+
|
136
|
+
:return: The is_non_dbs of this ListsAgencyPermissionsRequest.
|
137
|
+
:rtype: bool
|
138
|
+
"""
|
139
|
+
return self._is_non_dbs
|
140
|
+
|
141
|
+
@is_non_dbs.setter
|
142
|
+
def is_non_dbs(self, is_non_dbs):
|
143
|
+
"""Sets the is_non_dbs of this ListsAgencyPermissionsRequest.
|
144
|
+
|
145
|
+
是否自建。
|
146
|
+
|
147
|
+
:param is_non_dbs: The is_non_dbs of this ListsAgencyPermissionsRequest.
|
148
|
+
:type is_non_dbs: bool
|
149
|
+
"""
|
150
|
+
self._is_non_dbs = is_non_dbs
|
151
|
+
|
152
|
+
def to_dict(self):
|
153
|
+
"""Returns the model properties as a dict"""
|
154
|
+
result = {}
|
155
|
+
|
156
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
157
|
+
value = getattr(self, attr)
|
158
|
+
if isinstance(value, list):
|
159
|
+
result[attr] = list(map(
|
160
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
161
|
+
value
|
162
|
+
))
|
163
|
+
elif hasattr(value, "to_dict"):
|
164
|
+
result[attr] = value.to_dict()
|
165
|
+
elif isinstance(value, dict):
|
166
|
+
result[attr] = dict(map(
|
167
|
+
lambda item: (item[0], item[1].to_dict())
|
168
|
+
if hasattr(item[1], "to_dict") else item,
|
169
|
+
value.items()
|
170
|
+
))
|
171
|
+
else:
|
172
|
+
if attr in self.sensitive_list:
|
173
|
+
result[attr] = "****"
|
174
|
+
else:
|
175
|
+
result[attr] = value
|
176
|
+
|
177
|
+
return result
|
178
|
+
|
179
|
+
def to_str(self):
|
180
|
+
"""Returns the string representation of the model"""
|
181
|
+
import simplejson as json
|
182
|
+
if six.PY2:
|
183
|
+
import sys
|
184
|
+
reload(sys)
|
185
|
+
sys.setdefaultencoding("utf-8")
|
186
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
187
|
+
|
188
|
+
def __repr__(self):
|
189
|
+
"""For `print`"""
|
190
|
+
return self.to_str()
|
191
|
+
|
192
|
+
def __eq__(self, other):
|
193
|
+
"""Returns true if both objects are equal"""
|
194
|
+
if not isinstance(other, ListsAgencyPermissionsRequest):
|
195
|
+
return False
|
196
|
+
|
197
|
+
return self.__dict__ == other.__dict__
|
198
|
+
|
199
|
+
def __ne__(self, other):
|
200
|
+
"""Returns true if both objects are not equal"""
|
201
|
+
return not self == other
|