huaweicloudsdkdrs 3.1.86__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkdrs/v3/__init__.py +43 -0
- huaweicloudsdkdrs/v3/drs_async_client.py +1087 -65
- huaweicloudsdkdrs/v3/drs_client.py +1087 -65
- huaweicloudsdkdrs/v3/model/__init__.py +43 -0
- huaweicloudsdkdrs/v3/model/add_data_transformation_req.py +138 -0
- huaweicloudsdkdrs/v3/model/api_http_null_resp.py +84 -0
- huaweicloudsdkdrs/v3/model/batch_job_action_req.py +3 -3
- huaweicloudsdkdrs/v3/model/compare_job_content_detail_info.py +202 -0
- huaweicloudsdkdrs/v3/model/compare_job_info.py +376 -0
- huaweicloudsdkdrs/v3/model/create_compare_result_file_request.py +196 -0
- huaweicloudsdkdrs/v3/model/create_compare_result_file_response.py +116 -0
- huaweicloudsdkdrs/v3/model/create_data_compare_database_object.py +115 -0
- huaweicloudsdkdrs/v3/model/create_data_compare_transformation_info.py +142 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_req.py +346 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_request.py +168 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/create_job_req.py +41 -12
- huaweicloudsdkdrs/v3/model/create_object_compare_job_req.py +115 -0
- huaweicloudsdkdrs/v3/model/create_object_level_compare_job_request.py +168 -0
- huaweicloudsdkdrs/v3/model/create_object_level_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/data_compare_overview_info.py +173 -0
- huaweicloudsdkdrs/v3/model/delete_compare_job_request.py +171 -0
- huaweicloudsdkdrs/v3/model/delete_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/download_compare_result_file_request.py +255 -0
- huaweicloudsdkdrs/v3/model/download_compare_result_file_response.py +85 -0
- huaweicloudsdkdrs/v3/model/endpoint.py +28 -3
- huaweicloudsdkdrs/v3/model/export_compare_result_req.py +172 -0
- huaweicloudsdkdrs/v3/model/kafka_security.py +290 -29
- huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +316 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_difference_request.py +287 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_difference_response.py +232 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +229 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_overview_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +374 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +258 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_overview_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +201 -0
- huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_request.py +258 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_request.py +143 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_response.py +319 -0
- huaweicloudsdkdrs/v3/model/modify_job_req.py +3 -3
- huaweicloudsdkdrs/v3/model/node_content_compare_detail_result.py +405 -0
- huaweicloudsdkdrs/v3/model/node_content_compare_overview_result.py +173 -0
- huaweicloudsdkdrs/v3/model/objects_compare_detail_info.py +260 -0
- huaweicloudsdkdrs/v3/model/objects_compare_overview_info.py +202 -0
- huaweicloudsdkdrs/v3/model/query_job_resp.py +51 -22
- huaweicloudsdkdrs/v3/model/query_jobs_req.py +3 -3
- huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_request.py +171 -0
- huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/table_line_compare_result_info.py +289 -0
- huaweicloudsdkdrs/v3/region/drs_region.py +15 -0
- huaweicloudsdkdrs/v5/__init__.py +79 -1
- huaweicloudsdkdrs/v5/drs_async_client.py +2408 -750
- huaweicloudsdkdrs/v5/drs_client.py +2408 -750
- huaweicloudsdkdrs/v5/model/__init__.py +79 -1
- huaweicloudsdkdrs/v5/model/action_params.py +57 -3
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/agency_role.py +144 -0
- huaweicloudsdkdrs/v5/model/backup_file_info.py +201 -0
- huaweicloudsdkdrs/v5/model/backup_file_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_info.py +171 -0
- huaweicloudsdkdrs/v5/model/backup_info_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_job_base_info.py +229 -0
- huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py +172 -0
- huaweicloudsdkdrs/v5/model/backup_restore_option_info.py +315 -0
- huaweicloudsdkdrs/v5/model/base_endpoint.py +3 -3
- huaweicloudsdkdrs/v5/model/change_to_period_request.py +168 -0
- huaweicloudsdkdrs/v5/model/change_to_period_response.py +116 -0
- huaweicloudsdkdrs/v5/model/check_data_filter_response.py +3 -3
- huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/clean_alarms_request.py +171 -0
- huaweicloudsdkdrs/v5/model/clean_alarms_response.py +116 -0
- huaweicloudsdkdrs/v5/model/collect_columns_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_position_async_response.py +3 -3
- huaweicloudsdkdrs/v5/model/compare_job_info.py +65 -7
- huaweicloudsdkdrs/v5/model/compare_result_info.py +28 -3
- huaweicloudsdkdrs/v5/model/compare_task_params.py +32 -3
- huaweicloudsdkdrs/v5/model/connection_config.py +115 -0
- huaweicloudsdkdrs/v5/model/connection_resp.py +355 -0
- huaweicloudsdkdrs/v5/model/content_compare_overview_info.py +3 -3
- huaweicloudsdkdrs/v5/model/content_diff_detail_info.py +231 -0
- huaweicloudsdkdrs/v5/model/content_diff_detail_vo.py +202 -0
- huaweicloudsdkdrs/v5/model/create_connection_req.py +324 -0
- huaweicloudsdkdrs/v5/model/create_connection_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_connection_response.py +361 -0
- huaweicloudsdkdrs/v5/model/create_job_response.py +139 -19
- huaweicloudsdkdrs/v5/model/create_offline_task_req.py +182 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/data_process_info.py +32 -3
- huaweicloudsdkdrs/v5/model/db_object_filtering_result.py +148 -3
- huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py +311 -0
- huaweicloudsdkdrs/v5/model/delete_connection_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/delete_user_driver_req.py +142 -0
- huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_request.py +140 -0
- huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/model/download_db_object_template_request.py +3 -3
- huaweicloudsdkdrs/v5/model/health_compare_job.py +9 -9
- huaweicloudsdkdrs/v5/model/job_base_info.py +35 -6
- huaweicloudsdkdrs/v5/model/job_detail_resp.py +35 -6
- huaweicloudsdkdrs/v5/model/job_endpoint_info.py +3 -3
- huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/list_connections_request.py +492 -0
- huaweicloudsdkdrs/v5/model/list_connections_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_request.py +288 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py +463 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_request.py +201 -0
- huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_response.py +145 -0
- huaweicloudsdkdrs/v5/model/lists_agency_permissions_request.py +201 -0
- huaweicloudsdkdrs/v5/model/lists_agency_permissions_response.py +145 -0
- huaweicloudsdkdrs/v5/model/modify_compare_policy_req.py +288 -0
- huaweicloudsdkdrs/v5/model/modify_connection_request.py +168 -0
- huaweicloudsdkdrs/v5/model/modify_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/modify_offline_task_req.py +143 -0
- huaweicloudsdkdrs/v5/model/objects_health_compare_overview_info.py +202 -0
- huaweicloudsdkdrs/v5/model/offline_task_info.py +342 -0
- huaweicloudsdkdrs/v5/model/policy_config.py +32 -3
- huaweicloudsdkdrs/v5/model/replay_config_info.py +282 -0
- huaweicloudsdkdrs/v5/model/replay_error_classification.py +201 -0
- huaweicloudsdkdrs/v5/model/replay_error_sql_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/replay_error_sql_template_resp.py +289 -0
- huaweicloudsdkdrs/v5/model/replay_shard_statics_resp.py +226 -0
- huaweicloudsdkdrs/v5/model/replay_slow_sql_resp.py +202 -0
- huaweicloudsdkdrs/v5/model/replay_slow_sql_template_resp.py +402 -0
- huaweicloudsdkdrs/v5/model/replaying_sql_resp.py +318 -0
- huaweicloudsdkdrs/v5/model/resource_tag.py +3 -3
- huaweicloudsdkdrs/v5/model/show_agency_info_request.py +143 -0
- huaweicloudsdkdrs/v5/model/show_agency_info_response.py +174 -0
- huaweicloudsdkdrs/v5/model/show_compare_policy_response.py +3 -3
- huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +3 -3
- huaweicloudsdkdrs/v5/model/show_db_object_template_progress_request.py +32 -3
- huaweicloudsdkdrs/v5/model/show_db_object_template_result_request.py +32 -3
- huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_request.py +171 -0
- huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_response.py +261 -0
- huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_request.py +171 -0
- huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_response.py +116 -0
- huaweicloudsdkdrs/v5/model/show_job_detail_request.py +3 -3
- huaweicloudsdkdrs/v5/model/show_position_result_response.py +32 -3
- huaweicloudsdkdrs/v5/model/show_replay_results_request.py +461 -0
- huaweicloudsdkdrs/v5/model/show_replay_results_response.py +319 -0
- huaweicloudsdkdrs/v5/model/show_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/show_replication_job_response.py +390 -0
- huaweicloudsdkdrs/v5/model/show_support_object_type_response.py +32 -3
- huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +3 -3
- huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_request.py +168 -0
- huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/model/to_period_req.py +198 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_request_body.py +142 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_compare_policy_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_compare_policy_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_connection_req.py +327 -0
- huaweicloudsdkdrs/v5/model/update_data_progress_response.py +3 -3
- huaweicloudsdkdrs/v5/model/update_job_req.py +3 -3
- huaweicloudsdkdrs/v5/model/update_replication_job_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_user_driver_req.py +142 -0
- huaweicloudsdkdrs/v5/model/upload_db_object_template_request.py +3 -3
- huaweicloudsdkdrs/v5/model/upload_jdbc_driver_request_body.py +3 -3
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request.py +168 -0
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request_body.py +114 -0
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/region/drs_region.py +15 -0
- {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/RECORD +180 -59
- {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/WHEEL +1 -1
- huaweicloudsdkdrs/v5/model/create_job_resp.py +0 -227
- {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.86.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/top_level.txt +0 -0
@@ -25,7 +25,8 @@ class PolicyConfig:
|
|
25
25
|
'support_ddl_info': 'str',
|
26
26
|
'sync_type_policy': 'str',
|
27
27
|
'increment_read_mode': 'str',
|
28
|
-
'dml_types': 'str'
|
28
|
+
'dml_types': 'str',
|
29
|
+
'is_create_table_with_index': 'bool'
|
29
30
|
}
|
30
31
|
|
31
32
|
attribute_map = {
|
@@ -37,10 +38,11 @@ class PolicyConfig:
|
|
37
38
|
'support_ddl_info': 'support_ddl_info',
|
38
39
|
'sync_type_policy': 'sync_type_policy',
|
39
40
|
'increment_read_mode': 'increment_read_mode',
|
40
|
-
'dml_types': 'dml_types'
|
41
|
+
'dml_types': 'dml_types',
|
42
|
+
'is_create_table_with_index': 'is_create_table_with_index'
|
41
43
|
}
|
42
44
|
|
43
|
-
def __init__(self, filter_ddl_policy=None, conflict_policy=None, index_trans=None, ddl_trans=None, data_sync_topology_type=None, support_ddl_info=None, sync_type_policy=None, increment_read_mode=None, dml_types=None):
|
45
|
+
def __init__(self, filter_ddl_policy=None, conflict_policy=None, index_trans=None, ddl_trans=None, data_sync_topology_type=None, support_ddl_info=None, sync_type_policy=None, increment_read_mode=None, dml_types=None, is_create_table_with_index=None):
|
44
46
|
"""PolicyConfig
|
45
47
|
|
46
48
|
The model defined in huaweicloud sdk
|
@@ -63,6 +65,8 @@ class PolicyConfig:
|
|
63
65
|
:type increment_read_mode: str
|
64
66
|
:param dml_types: DML同步类型。
|
65
67
|
:type dml_types: str
|
68
|
+
:param is_create_table_with_index: 索引与表结构是否同时建立。
|
69
|
+
:type is_create_table_with_index: bool
|
66
70
|
"""
|
67
71
|
|
68
72
|
|
@@ -76,6 +80,7 @@ class PolicyConfig:
|
|
76
80
|
self._sync_type_policy = None
|
77
81
|
self._increment_read_mode = None
|
78
82
|
self._dml_types = None
|
83
|
+
self._is_create_table_with_index = None
|
79
84
|
self.discriminator = None
|
80
85
|
|
81
86
|
if filter_ddl_policy is not None:
|
@@ -96,6 +101,8 @@ class PolicyConfig:
|
|
96
101
|
self.increment_read_mode = increment_read_mode
|
97
102
|
if dml_types is not None:
|
98
103
|
self.dml_types = dml_types
|
104
|
+
if is_create_table_with_index is not None:
|
105
|
+
self.is_create_table_with_index = is_create_table_with_index
|
99
106
|
|
100
107
|
@property
|
101
108
|
def filter_ddl_policy(self):
|
@@ -295,6 +302,28 @@ class PolicyConfig:
|
|
295
302
|
"""
|
296
303
|
self._dml_types = dml_types
|
297
304
|
|
305
|
+
@property
|
306
|
+
def is_create_table_with_index(self):
|
307
|
+
"""Gets the is_create_table_with_index of this PolicyConfig.
|
308
|
+
|
309
|
+
索引与表结构是否同时建立。
|
310
|
+
|
311
|
+
:return: The is_create_table_with_index of this PolicyConfig.
|
312
|
+
:rtype: bool
|
313
|
+
"""
|
314
|
+
return self._is_create_table_with_index
|
315
|
+
|
316
|
+
@is_create_table_with_index.setter
|
317
|
+
def is_create_table_with_index(self, is_create_table_with_index):
|
318
|
+
"""Sets the is_create_table_with_index of this PolicyConfig.
|
319
|
+
|
320
|
+
索引与表结构是否同时建立。
|
321
|
+
|
322
|
+
:param is_create_table_with_index: The is_create_table_with_index of this PolicyConfig.
|
323
|
+
:type is_create_table_with_index: bool
|
324
|
+
"""
|
325
|
+
self._is_create_table_with_index = is_create_table_with_index
|
326
|
+
|
298
327
|
def to_dict(self):
|
299
328
|
"""Returns the model properties as a dict"""
|
300
329
|
result = {}
|
@@ -0,0 +1,282 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ReplayConfigInfo:
|
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
|
+
'db_instance_id': 'str',
|
21
|
+
'cloud_type': 'str',
|
22
|
+
'ak': 'str',
|
23
|
+
'sk': 'str',
|
24
|
+
'db_source': 'str',
|
25
|
+
'region': 'str',
|
26
|
+
'traffic_source': 'str'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'db_instance_id': 'db_instance_id',
|
31
|
+
'cloud_type': 'cloud_type',
|
32
|
+
'ak': 'ak',
|
33
|
+
'sk': 'sk',
|
34
|
+
'db_source': 'db_source',
|
35
|
+
'region': 'region',
|
36
|
+
'traffic_source': 'traffic_source'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, db_instance_id=None, cloud_type=None, ak=None, sk=None, db_source=None, region=None, traffic_source=None):
|
40
|
+
"""ReplayConfigInfo
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param db_instance_id: 源实例ID。
|
45
|
+
:type db_instance_id: str
|
46
|
+
:param cloud_type: 云类型: - AWSCloud:亚马逊云。 - TencentCloud:腾讯云。 - AliCloud:阿里云。
|
47
|
+
:type cloud_type: str
|
48
|
+
:param ak: 其他云AK信息。
|
49
|
+
:type ak: str
|
50
|
+
:param sk: 其他云SK信息。
|
51
|
+
:type sk: str
|
52
|
+
:param db_source: 源数据库来源。取值: - aws_aurora_mysql:Amazon Aurora MySQL。 - tencent_tdsql_c:腾讯云TDSQL-C MySQL。 - ali_rds_mysql:阿里云RDS MySQL。
|
53
|
+
:type db_source: str
|
54
|
+
:param region: 其他云Region名称。
|
55
|
+
:type region: str
|
56
|
+
:param traffic_source: 流量文件来源。 - sdk:通过三方云API接口方式下载审计日志。
|
57
|
+
:type traffic_source: str
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._db_instance_id = None
|
63
|
+
self._cloud_type = None
|
64
|
+
self._ak = None
|
65
|
+
self._sk = None
|
66
|
+
self._db_source = None
|
67
|
+
self._region = None
|
68
|
+
self._traffic_source = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
self.db_instance_id = db_instance_id
|
72
|
+
self.cloud_type = cloud_type
|
73
|
+
self.ak = ak
|
74
|
+
self.sk = sk
|
75
|
+
self.db_source = db_source
|
76
|
+
self.region = region
|
77
|
+
self.traffic_source = traffic_source
|
78
|
+
|
79
|
+
@property
|
80
|
+
def db_instance_id(self):
|
81
|
+
"""Gets the db_instance_id of this ReplayConfigInfo.
|
82
|
+
|
83
|
+
源实例ID。
|
84
|
+
|
85
|
+
:return: The db_instance_id of this ReplayConfigInfo.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._db_instance_id
|
89
|
+
|
90
|
+
@db_instance_id.setter
|
91
|
+
def db_instance_id(self, db_instance_id):
|
92
|
+
"""Sets the db_instance_id of this ReplayConfigInfo.
|
93
|
+
|
94
|
+
源实例ID。
|
95
|
+
|
96
|
+
:param db_instance_id: The db_instance_id of this ReplayConfigInfo.
|
97
|
+
:type db_instance_id: str
|
98
|
+
"""
|
99
|
+
self._db_instance_id = db_instance_id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def cloud_type(self):
|
103
|
+
"""Gets the cloud_type of this ReplayConfigInfo.
|
104
|
+
|
105
|
+
云类型: - AWSCloud:亚马逊云。 - TencentCloud:腾讯云。 - AliCloud:阿里云。
|
106
|
+
|
107
|
+
:return: The cloud_type of this ReplayConfigInfo.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._cloud_type
|
111
|
+
|
112
|
+
@cloud_type.setter
|
113
|
+
def cloud_type(self, cloud_type):
|
114
|
+
"""Sets the cloud_type of this ReplayConfigInfo.
|
115
|
+
|
116
|
+
云类型: - AWSCloud:亚马逊云。 - TencentCloud:腾讯云。 - AliCloud:阿里云。
|
117
|
+
|
118
|
+
:param cloud_type: The cloud_type of this ReplayConfigInfo.
|
119
|
+
:type cloud_type: str
|
120
|
+
"""
|
121
|
+
self._cloud_type = cloud_type
|
122
|
+
|
123
|
+
@property
|
124
|
+
def ak(self):
|
125
|
+
"""Gets the ak of this ReplayConfigInfo.
|
126
|
+
|
127
|
+
其他云AK信息。
|
128
|
+
|
129
|
+
:return: The ak of this ReplayConfigInfo.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._ak
|
133
|
+
|
134
|
+
@ak.setter
|
135
|
+
def ak(self, ak):
|
136
|
+
"""Sets the ak of this ReplayConfigInfo.
|
137
|
+
|
138
|
+
其他云AK信息。
|
139
|
+
|
140
|
+
:param ak: The ak of this ReplayConfigInfo.
|
141
|
+
:type ak: str
|
142
|
+
"""
|
143
|
+
self._ak = ak
|
144
|
+
|
145
|
+
@property
|
146
|
+
def sk(self):
|
147
|
+
"""Gets the sk of this ReplayConfigInfo.
|
148
|
+
|
149
|
+
其他云SK信息。
|
150
|
+
|
151
|
+
:return: The sk of this ReplayConfigInfo.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._sk
|
155
|
+
|
156
|
+
@sk.setter
|
157
|
+
def sk(self, sk):
|
158
|
+
"""Sets the sk of this ReplayConfigInfo.
|
159
|
+
|
160
|
+
其他云SK信息。
|
161
|
+
|
162
|
+
:param sk: The sk of this ReplayConfigInfo.
|
163
|
+
:type sk: str
|
164
|
+
"""
|
165
|
+
self._sk = sk
|
166
|
+
|
167
|
+
@property
|
168
|
+
def db_source(self):
|
169
|
+
"""Gets the db_source of this ReplayConfigInfo.
|
170
|
+
|
171
|
+
源数据库来源。取值: - aws_aurora_mysql:Amazon Aurora MySQL。 - tencent_tdsql_c:腾讯云TDSQL-C MySQL。 - ali_rds_mysql:阿里云RDS MySQL。
|
172
|
+
|
173
|
+
:return: The db_source of this ReplayConfigInfo.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._db_source
|
177
|
+
|
178
|
+
@db_source.setter
|
179
|
+
def db_source(self, db_source):
|
180
|
+
"""Sets the db_source of this ReplayConfigInfo.
|
181
|
+
|
182
|
+
源数据库来源。取值: - aws_aurora_mysql:Amazon Aurora MySQL。 - tencent_tdsql_c:腾讯云TDSQL-C MySQL。 - ali_rds_mysql:阿里云RDS MySQL。
|
183
|
+
|
184
|
+
:param db_source: The db_source of this ReplayConfigInfo.
|
185
|
+
:type db_source: str
|
186
|
+
"""
|
187
|
+
self._db_source = db_source
|
188
|
+
|
189
|
+
@property
|
190
|
+
def region(self):
|
191
|
+
"""Gets the region of this ReplayConfigInfo.
|
192
|
+
|
193
|
+
其他云Region名称。
|
194
|
+
|
195
|
+
:return: The region of this ReplayConfigInfo.
|
196
|
+
:rtype: str
|
197
|
+
"""
|
198
|
+
return self._region
|
199
|
+
|
200
|
+
@region.setter
|
201
|
+
def region(self, region):
|
202
|
+
"""Sets the region of this ReplayConfigInfo.
|
203
|
+
|
204
|
+
其他云Region名称。
|
205
|
+
|
206
|
+
:param region: The region of this ReplayConfigInfo.
|
207
|
+
:type region: str
|
208
|
+
"""
|
209
|
+
self._region = region
|
210
|
+
|
211
|
+
@property
|
212
|
+
def traffic_source(self):
|
213
|
+
"""Gets the traffic_source of this ReplayConfigInfo.
|
214
|
+
|
215
|
+
流量文件来源。 - sdk:通过三方云API接口方式下载审计日志。
|
216
|
+
|
217
|
+
:return: The traffic_source of this ReplayConfigInfo.
|
218
|
+
:rtype: str
|
219
|
+
"""
|
220
|
+
return self._traffic_source
|
221
|
+
|
222
|
+
@traffic_source.setter
|
223
|
+
def traffic_source(self, traffic_source):
|
224
|
+
"""Sets the traffic_source of this ReplayConfigInfo.
|
225
|
+
|
226
|
+
流量文件来源。 - sdk:通过三方云API接口方式下载审计日志。
|
227
|
+
|
228
|
+
:param traffic_source: The traffic_source of this ReplayConfigInfo.
|
229
|
+
:type traffic_source: str
|
230
|
+
"""
|
231
|
+
self._traffic_source = traffic_source
|
232
|
+
|
233
|
+
def to_dict(self):
|
234
|
+
"""Returns the model properties as a dict"""
|
235
|
+
result = {}
|
236
|
+
|
237
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
238
|
+
value = getattr(self, attr)
|
239
|
+
if isinstance(value, list):
|
240
|
+
result[attr] = list(map(
|
241
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
242
|
+
value
|
243
|
+
))
|
244
|
+
elif hasattr(value, "to_dict"):
|
245
|
+
result[attr] = value.to_dict()
|
246
|
+
elif isinstance(value, dict):
|
247
|
+
result[attr] = dict(map(
|
248
|
+
lambda item: (item[0], item[1].to_dict())
|
249
|
+
if hasattr(item[1], "to_dict") else item,
|
250
|
+
value.items()
|
251
|
+
))
|
252
|
+
else:
|
253
|
+
if attr in self.sensitive_list:
|
254
|
+
result[attr] = "****"
|
255
|
+
else:
|
256
|
+
result[attr] = value
|
257
|
+
|
258
|
+
return result
|
259
|
+
|
260
|
+
def to_str(self):
|
261
|
+
"""Returns the string representation of the model"""
|
262
|
+
import simplejson as json
|
263
|
+
if six.PY2:
|
264
|
+
import sys
|
265
|
+
reload(sys)
|
266
|
+
sys.setdefaultencoding("utf-8")
|
267
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
268
|
+
|
269
|
+
def __repr__(self):
|
270
|
+
"""For `print`"""
|
271
|
+
return self.to_str()
|
272
|
+
|
273
|
+
def __eq__(self, other):
|
274
|
+
"""Returns true if both objects are equal"""
|
275
|
+
if not isinstance(other, ReplayConfigInfo):
|
276
|
+
return False
|
277
|
+
|
278
|
+
return self.__dict__ == other.__dict__
|
279
|
+
|
280
|
+
def __ne__(self, other):
|
281
|
+
"""Returns true if both objects are not equal"""
|
282
|
+
return not self == other
|
@@ -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 ReplayErrorClassification:
|
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
|
+
'target_name': 'str',
|
21
|
+
'error_type': 'str',
|
22
|
+
'error_cnt': 'str',
|
23
|
+
'error_template_cnt': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'target_name': 'target_name',
|
28
|
+
'error_type': 'error_type',
|
29
|
+
'error_cnt': 'error_cnt',
|
30
|
+
'error_template_cnt': 'error_template_cnt'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, target_name=None, error_type=None, error_cnt=None, error_template_cnt=None):
|
34
|
+
"""ReplayErrorClassification
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param target_name: 目标库标识
|
39
|
+
:type target_name: str
|
40
|
+
:param error_type: 异常SQL分类
|
41
|
+
:type error_type: str
|
42
|
+
:param error_cnt: 异常SQL数量
|
43
|
+
:type error_cnt: str
|
44
|
+
:param error_template_cnt: 异常SQL模板数量
|
45
|
+
:type error_template_cnt: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._target_name = None
|
51
|
+
self._error_type = None
|
52
|
+
self._error_cnt = None
|
53
|
+
self._error_template_cnt = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if target_name is not None:
|
57
|
+
self.target_name = target_name
|
58
|
+
self.error_type = error_type
|
59
|
+
if error_cnt is not None:
|
60
|
+
self.error_cnt = error_cnt
|
61
|
+
if error_template_cnt is not None:
|
62
|
+
self.error_template_cnt = error_template_cnt
|
63
|
+
|
64
|
+
@property
|
65
|
+
def target_name(self):
|
66
|
+
"""Gets the target_name of this ReplayErrorClassification.
|
67
|
+
|
68
|
+
目标库标识
|
69
|
+
|
70
|
+
:return: The target_name of this ReplayErrorClassification.
|
71
|
+
:rtype: str
|
72
|
+
"""
|
73
|
+
return self._target_name
|
74
|
+
|
75
|
+
@target_name.setter
|
76
|
+
def target_name(self, target_name):
|
77
|
+
"""Sets the target_name of this ReplayErrorClassification.
|
78
|
+
|
79
|
+
目标库标识
|
80
|
+
|
81
|
+
:param target_name: The target_name of this ReplayErrorClassification.
|
82
|
+
:type target_name: str
|
83
|
+
"""
|
84
|
+
self._target_name = target_name
|
85
|
+
|
86
|
+
@property
|
87
|
+
def error_type(self):
|
88
|
+
"""Gets the error_type of this ReplayErrorClassification.
|
89
|
+
|
90
|
+
异常SQL分类
|
91
|
+
|
92
|
+
:return: The error_type of this ReplayErrorClassification.
|
93
|
+
:rtype: str
|
94
|
+
"""
|
95
|
+
return self._error_type
|
96
|
+
|
97
|
+
@error_type.setter
|
98
|
+
def error_type(self, error_type):
|
99
|
+
"""Sets the error_type of this ReplayErrorClassification.
|
100
|
+
|
101
|
+
异常SQL分类
|
102
|
+
|
103
|
+
:param error_type: The error_type of this ReplayErrorClassification.
|
104
|
+
:type error_type: str
|
105
|
+
"""
|
106
|
+
self._error_type = error_type
|
107
|
+
|
108
|
+
@property
|
109
|
+
def error_cnt(self):
|
110
|
+
"""Gets the error_cnt of this ReplayErrorClassification.
|
111
|
+
|
112
|
+
异常SQL数量
|
113
|
+
|
114
|
+
:return: The error_cnt of this ReplayErrorClassification.
|
115
|
+
:rtype: str
|
116
|
+
"""
|
117
|
+
return self._error_cnt
|
118
|
+
|
119
|
+
@error_cnt.setter
|
120
|
+
def error_cnt(self, error_cnt):
|
121
|
+
"""Sets the error_cnt of this ReplayErrorClassification.
|
122
|
+
|
123
|
+
异常SQL数量
|
124
|
+
|
125
|
+
:param error_cnt: The error_cnt of this ReplayErrorClassification.
|
126
|
+
:type error_cnt: str
|
127
|
+
"""
|
128
|
+
self._error_cnt = error_cnt
|
129
|
+
|
130
|
+
@property
|
131
|
+
def error_template_cnt(self):
|
132
|
+
"""Gets the error_template_cnt of this ReplayErrorClassification.
|
133
|
+
|
134
|
+
异常SQL模板数量
|
135
|
+
|
136
|
+
:return: The error_template_cnt of this ReplayErrorClassification.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._error_template_cnt
|
140
|
+
|
141
|
+
@error_template_cnt.setter
|
142
|
+
def error_template_cnt(self, error_template_cnt):
|
143
|
+
"""Sets the error_template_cnt of this ReplayErrorClassification.
|
144
|
+
|
145
|
+
异常SQL模板数量
|
146
|
+
|
147
|
+
:param error_template_cnt: The error_template_cnt of this ReplayErrorClassification.
|
148
|
+
:type error_template_cnt: str
|
149
|
+
"""
|
150
|
+
self._error_template_cnt = error_template_cnt
|
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, ReplayErrorClassification):
|
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
|