huaweicloudsdkdrs 3.1.85__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkdrs/v3/__init__.py +48 -0
- huaweicloudsdkdrs/v3/drs_async_client.py +1140 -43
- huaweicloudsdkdrs/v3/drs_client.py +1140 -43
- huaweicloudsdkdrs/v3/model/__init__.py +48 -0
- huaweicloudsdkdrs/v3/model/add_data_transformation_req.py +138 -0
- huaweicloudsdkdrs/v3/model/api_http_null_resp.py +84 -0
- huaweicloudsdkdrs/v3/model/batch_job_action_req.py +9 -9
- huaweicloudsdkdrs/v3/model/compare_job_content_detail_info.py +202 -0
- huaweicloudsdkdrs/v3/model/compare_job_info.py +376 -0
- huaweicloudsdkdrs/v3/model/create_compare_result_file_request.py +196 -0
- huaweicloudsdkdrs/v3/model/create_compare_result_file_response.py +116 -0
- huaweicloudsdkdrs/v3/model/create_data_compare_database_object.py +115 -0
- huaweicloudsdkdrs/v3/model/create_data_compare_transformation_info.py +142 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_req.py +346 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_request.py +168 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/create_job_req.py +67 -9
- huaweicloudsdkdrs/v3/model/create_object_compare_job_req.py +115 -0
- huaweicloudsdkdrs/v3/model/create_object_level_compare_job_request.py +168 -0
- huaweicloudsdkdrs/v3/model/create_object_level_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/data_compare_overview_info.py +173 -0
- huaweicloudsdkdrs/v3/model/delete_compare_job_request.py +171 -0
- huaweicloudsdkdrs/v3/model/delete_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/download_compare_result_file_request.py +255 -0
- huaweicloudsdkdrs/v3/model/download_compare_result_file_response.py +85 -0
- huaweicloudsdkdrs/v3/model/endpoint.py +28 -3
- huaweicloudsdkdrs/v3/model/export_compare_result_req.py +172 -0
- huaweicloudsdkdrs/v3/model/failed_to_bind_eip_child_info.py +144 -0
- huaweicloudsdkdrs/v3/model/kafka_security.py +290 -29
- huaweicloudsdkdrs/v3/model/list_available_node_types_request.py +257 -0
- huaweicloudsdkdrs/v3/model/list_available_node_types_response.py +116 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +316 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_difference_request.py +287 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_difference_response.py +232 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +229 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_overview_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +374 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +258 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_overview_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +201 -0
- huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_request.py +258 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_request.py +143 -0
- huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_response.py +319 -0
- huaweicloudsdkdrs/v3/model/modify_job_req.py +3 -3
- huaweicloudsdkdrs/v3/model/node_content_compare_detail_result.py +405 -0
- huaweicloudsdkdrs/v3/model/node_content_compare_overview_result.py +173 -0
- huaweicloudsdkdrs/v3/model/objects_compare_detail_info.py +260 -0
- huaweicloudsdkdrs/v3/model/objects_compare_overview_info.py +202 -0
- huaweicloudsdkdrs/v3/model/public_ip_config.py +170 -0
- huaweicloudsdkdrs/v3/model/query_job_resp.py +129 -13
- huaweicloudsdkdrs/v3/model/query_jobs_req.py +3 -3
- huaweicloudsdkdrs/v3/model/query_support_node_type_bean.py +144 -0
- huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_request.py +171 -0
- huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/sync_policy_req.py +32 -3
- huaweicloudsdkdrs/v3/model/table_line_compare_result_info.py +289 -0
- huaweicloudsdkdrs/v3/region/drs_region.py +15 -0
- huaweicloudsdkdrs/v5/__init__.py +81 -1
- huaweicloudsdkdrs/v5/drs_async_client.py +2408 -750
- huaweicloudsdkdrs/v5/drs_client.py +2408 -750
- huaweicloudsdkdrs/v5/model/__init__.py +81 -1
- huaweicloudsdkdrs/v5/model/action_params.py +82 -3
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/agency_role.py +144 -0
- huaweicloudsdkdrs/v5/model/async_create_job_req.py +32 -3
- huaweicloudsdkdrs/v5/model/backup_file_info.py +201 -0
- huaweicloudsdkdrs/v5/model/backup_file_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_info.py +171 -0
- huaweicloudsdkdrs/v5/model/backup_info_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_job_base_info.py +229 -0
- huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py +172 -0
- huaweicloudsdkdrs/v5/model/backup_restore_option_info.py +315 -0
- huaweicloudsdkdrs/v5/model/base_endpoint.py +6 -6
- huaweicloudsdkdrs/v5/model/change_to_period_request.py +168 -0
- huaweicloudsdkdrs/v5/model/change_to_period_response.py +116 -0
- huaweicloudsdkdrs/v5/model/check_data_filter_response.py +35 -6
- huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/clean_alarms_request.py +171 -0
- huaweicloudsdkdrs/v5/model/clean_alarms_response.py +116 -0
- huaweicloudsdkdrs/v5/model/collect_columns_response.py +35 -6
- huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +35 -6
- huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +35 -6
- huaweicloudsdkdrs/v5/model/collect_position_async_response.py +35 -6
- huaweicloudsdkdrs/v5/model/compare_job_info.py +65 -7
- huaweicloudsdkdrs/v5/model/compare_result_info.py +28 -3
- huaweicloudsdkdrs/v5/model/compare_task_params.py +32 -3
- huaweicloudsdkdrs/v5/model/connection_config.py +115 -0
- huaweicloudsdkdrs/v5/model/connection_resp.py +355 -0
- huaweicloudsdkdrs/v5/model/content_compare_overview_info.py +3 -3
- huaweicloudsdkdrs/v5/model/content_diff_detail_info.py +231 -0
- huaweicloudsdkdrs/v5/model/content_diff_detail_vo.py +202 -0
- huaweicloudsdkdrs/v5/model/create_connection_req.py +324 -0
- huaweicloudsdkdrs/v5/model/create_connection_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_connection_response.py +361 -0
- huaweicloudsdkdrs/v5/model/create_job_req.py +32 -3
- huaweicloudsdkdrs/v5/model/create_job_response.py +139 -19
- huaweicloudsdkdrs/v5/model/create_offline_task_req.py +182 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/data_process_info.py +32 -3
- huaweicloudsdkdrs/v5/model/db_object_filtering_result.py +148 -3
- huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py +311 -0
- huaweicloudsdkdrs/v5/model/delete_connection_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/delete_user_driver_req.py +142 -0
- huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_request.py +140 -0
- huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/model/download_db_object_template_request.py +3 -3
- huaweicloudsdkdrs/v5/model/failed_to_bind_eip_child_info.py +144 -0
- huaweicloudsdkdrs/v5/model/health_compare_job.py +9 -9
- huaweicloudsdkdrs/v5/model/job_base_info.py +35 -6
- huaweicloudsdkdrs/v5/model/job_detail_resp.py +122 -6
- huaweicloudsdkdrs/v5/model/job_endpoint_info.py +3 -3
- huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
- huaweicloudsdkdrs/v5/model/job_node_vpc_info.py +3 -3
- huaweicloudsdkdrs/v5/model/list_connections_request.py +492 -0
- huaweicloudsdkdrs/v5/model/list_connections_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_request.py +288 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py +463 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_request.py +201 -0
- huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_response.py +145 -0
- huaweicloudsdkdrs/v5/model/lists_agency_permissions_request.py +201 -0
- huaweicloudsdkdrs/v5/model/lists_agency_permissions_response.py +145 -0
- huaweicloudsdkdrs/v5/model/modify_compare_policy_req.py +288 -0
- huaweicloudsdkdrs/v5/model/modify_connection_request.py +168 -0
- huaweicloudsdkdrs/v5/model/modify_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/modify_offline_task_req.py +143 -0
- huaweicloudsdkdrs/v5/model/objects_health_compare_overview_info.py +202 -0
- huaweicloudsdkdrs/v5/model/offline_task_info.py +342 -0
- huaweicloudsdkdrs/v5/model/policy_config.py +32 -3
- huaweicloudsdkdrs/v5/model/public_ip_config.py +170 -0
- huaweicloudsdkdrs/v5/model/replay_config_info.py +282 -0
- huaweicloudsdkdrs/v5/model/replay_error_classification.py +201 -0
- huaweicloudsdkdrs/v5/model/replay_error_sql_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/replay_error_sql_template_resp.py +289 -0
- huaweicloudsdkdrs/v5/model/replay_shard_statics_resp.py +226 -0
- huaweicloudsdkdrs/v5/model/replay_slow_sql_resp.py +202 -0
- huaweicloudsdkdrs/v5/model/replay_slow_sql_template_resp.py +402 -0
- huaweicloudsdkdrs/v5/model/replaying_sql_resp.py +318 -0
- huaweicloudsdkdrs/v5/model/resource_tag.py +3 -3
- huaweicloudsdkdrs/v5/model/show_agency_info_request.py +143 -0
- huaweicloudsdkdrs/v5/model/show_agency_info_response.py +174 -0
- huaweicloudsdkdrs/v5/model/show_compare_policy_response.py +3 -3
- huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +35 -6
- huaweicloudsdkdrs/v5/model/show_db_object_template_progress_request.py +32 -3
- huaweicloudsdkdrs/v5/model/show_db_object_template_result_request.py +32 -3
- huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_request.py +171 -0
- huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_response.py +261 -0
- huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_request.py +171 -0
- huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_response.py +116 -0
- huaweicloudsdkdrs/v5/model/show_job_detail_request.py +3 -3
- huaweicloudsdkdrs/v5/model/show_position_result_response.py +32 -3
- huaweicloudsdkdrs/v5/model/show_replay_results_request.py +461 -0
- huaweicloudsdkdrs/v5/model/show_replay_results_response.py +319 -0
- huaweicloudsdkdrs/v5/model/show_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/show_replication_job_response.py +390 -0
- huaweicloudsdkdrs/v5/model/show_support_object_type_response.py +32 -3
- huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +35 -6
- huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_request.py +168 -0
- huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/model/to_period_req.py +198 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_request_body.py +142 -0
- huaweicloudsdkdrs/v5/model/update_agency_policy_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_compare_policy_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_compare_policy_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_connection_req.py +327 -0
- huaweicloudsdkdrs/v5/model/update_data_progress_response.py +35 -6
- huaweicloudsdkdrs/v5/model/update_job_req.py +3 -3
- huaweicloudsdkdrs/v5/model/update_replication_job_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/update_user_driver_req.py +142 -0
- huaweicloudsdkdrs/v5/model/upload_db_object_template_request.py +3 -3
- huaweicloudsdkdrs/v5/model/upload_jdbc_driver_request_body.py +3 -3
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request.py +168 -0
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request_body.py +114 -0
- huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_response.py +116 -0
- huaweicloudsdkdrs/v5/region/drs_region.py +15 -0
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/RECORD +191 -63
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/WHEEL +1 -1
- huaweicloudsdkdrs/v5/model/create_job_resp.py +0 -227
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ContentDiffDetailVO:
|
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_key_value': 'list[str]',
|
21
|
+
'target_key_value': 'list[str]',
|
22
|
+
'source_select_sql': 'str',
|
23
|
+
'target_select_sql': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'source_key_value': 'source_key_value',
|
28
|
+
'target_key_value': 'target_key_value',
|
29
|
+
'source_select_sql': 'source_select_sql',
|
30
|
+
'target_select_sql': 'target_select_sql'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, source_key_value=None, target_key_value=None, source_select_sql=None, target_select_sql=None):
|
34
|
+
"""ContentDiffDetailVO
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param source_key_value: 源库KEY值。
|
39
|
+
:type source_key_value: list[str]
|
40
|
+
:param target_key_value: 目标库KEY值。
|
41
|
+
:type target_key_value: list[str]
|
42
|
+
:param source_select_sql: 查询源库SQL。
|
43
|
+
:type source_select_sql: str
|
44
|
+
:param target_select_sql: 查询目标库SQL。
|
45
|
+
:type target_select_sql: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._source_key_value = None
|
51
|
+
self._target_key_value = None
|
52
|
+
self._source_select_sql = None
|
53
|
+
self._target_select_sql = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if source_key_value is not None:
|
57
|
+
self.source_key_value = source_key_value
|
58
|
+
if target_key_value is not None:
|
59
|
+
self.target_key_value = target_key_value
|
60
|
+
if source_select_sql is not None:
|
61
|
+
self.source_select_sql = source_select_sql
|
62
|
+
if target_select_sql is not None:
|
63
|
+
self.target_select_sql = target_select_sql
|
64
|
+
|
65
|
+
@property
|
66
|
+
def source_key_value(self):
|
67
|
+
"""Gets the source_key_value of this ContentDiffDetailVO.
|
68
|
+
|
69
|
+
源库KEY值。
|
70
|
+
|
71
|
+
:return: The source_key_value of this ContentDiffDetailVO.
|
72
|
+
:rtype: list[str]
|
73
|
+
"""
|
74
|
+
return self._source_key_value
|
75
|
+
|
76
|
+
@source_key_value.setter
|
77
|
+
def source_key_value(self, source_key_value):
|
78
|
+
"""Sets the source_key_value of this ContentDiffDetailVO.
|
79
|
+
|
80
|
+
源库KEY值。
|
81
|
+
|
82
|
+
:param source_key_value: The source_key_value of this ContentDiffDetailVO.
|
83
|
+
:type source_key_value: list[str]
|
84
|
+
"""
|
85
|
+
self._source_key_value = source_key_value
|
86
|
+
|
87
|
+
@property
|
88
|
+
def target_key_value(self):
|
89
|
+
"""Gets the target_key_value of this ContentDiffDetailVO.
|
90
|
+
|
91
|
+
目标库KEY值。
|
92
|
+
|
93
|
+
:return: The target_key_value of this ContentDiffDetailVO.
|
94
|
+
:rtype: list[str]
|
95
|
+
"""
|
96
|
+
return self._target_key_value
|
97
|
+
|
98
|
+
@target_key_value.setter
|
99
|
+
def target_key_value(self, target_key_value):
|
100
|
+
"""Sets the target_key_value of this ContentDiffDetailVO.
|
101
|
+
|
102
|
+
目标库KEY值。
|
103
|
+
|
104
|
+
:param target_key_value: The target_key_value of this ContentDiffDetailVO.
|
105
|
+
:type target_key_value: list[str]
|
106
|
+
"""
|
107
|
+
self._target_key_value = target_key_value
|
108
|
+
|
109
|
+
@property
|
110
|
+
def source_select_sql(self):
|
111
|
+
"""Gets the source_select_sql of this ContentDiffDetailVO.
|
112
|
+
|
113
|
+
查询源库SQL。
|
114
|
+
|
115
|
+
:return: The source_select_sql of this ContentDiffDetailVO.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._source_select_sql
|
119
|
+
|
120
|
+
@source_select_sql.setter
|
121
|
+
def source_select_sql(self, source_select_sql):
|
122
|
+
"""Sets the source_select_sql of this ContentDiffDetailVO.
|
123
|
+
|
124
|
+
查询源库SQL。
|
125
|
+
|
126
|
+
:param source_select_sql: The source_select_sql of this ContentDiffDetailVO.
|
127
|
+
:type source_select_sql: str
|
128
|
+
"""
|
129
|
+
self._source_select_sql = source_select_sql
|
130
|
+
|
131
|
+
@property
|
132
|
+
def target_select_sql(self):
|
133
|
+
"""Gets the target_select_sql of this ContentDiffDetailVO.
|
134
|
+
|
135
|
+
查询目标库SQL。
|
136
|
+
|
137
|
+
:return: The target_select_sql of this ContentDiffDetailVO.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._target_select_sql
|
141
|
+
|
142
|
+
@target_select_sql.setter
|
143
|
+
def target_select_sql(self, target_select_sql):
|
144
|
+
"""Sets the target_select_sql of this ContentDiffDetailVO.
|
145
|
+
|
146
|
+
查询目标库SQL。
|
147
|
+
|
148
|
+
:param target_select_sql: The target_select_sql of this ContentDiffDetailVO.
|
149
|
+
:type target_select_sql: str
|
150
|
+
"""
|
151
|
+
self._target_select_sql = target_select_sql
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, ContentDiffDetailVO):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|
@@ -0,0 +1,324 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateConnectionReq:
|
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
|
+
'name': 'str',
|
21
|
+
'db_type': 'str',
|
22
|
+
'config': 'ConnectionConfig',
|
23
|
+
'description': 'str',
|
24
|
+
'endpoint': 'BaseEndpoint',
|
25
|
+
'vpc': 'CloudVpcInfo',
|
26
|
+
'ssl': 'EndpointSslConfig',
|
27
|
+
'cloud': 'CloudBaseInfo',
|
28
|
+
'enterprise_project_id': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'name': 'name',
|
33
|
+
'db_type': 'db_type',
|
34
|
+
'config': 'config',
|
35
|
+
'description': 'description',
|
36
|
+
'endpoint': 'endpoint',
|
37
|
+
'vpc': 'vpc',
|
38
|
+
'ssl': 'ssl',
|
39
|
+
'cloud': 'cloud',
|
40
|
+
'enterprise_project_id': 'enterprise_project_id'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, name=None, db_type=None, config=None, description=None, endpoint=None, vpc=None, ssl=None, cloud=None, enterprise_project_id=None):
|
44
|
+
"""CreateConnectionReq
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param name: 连接名称。 约束:连接名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。
|
49
|
+
:type name: str
|
50
|
+
:param db_type: 连接类型,包含: - mysql - postgresql - mongodb - oracle
|
51
|
+
:type db_type: str
|
52
|
+
:param config:
|
53
|
+
:type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
|
54
|
+
:param description: 描述,长度不能超过255个字符。
|
55
|
+
:type description: str
|
56
|
+
:param endpoint:
|
57
|
+
:type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
|
58
|
+
:param vpc:
|
59
|
+
:type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
|
60
|
+
:param ssl:
|
61
|
+
:type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
|
62
|
+
:param cloud:
|
63
|
+
:type cloud: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo`
|
64
|
+
:param enterprise_project_id: 企业项目ID。
|
65
|
+
:type enterprise_project_id: str
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._name = None
|
71
|
+
self._db_type = None
|
72
|
+
self._config = None
|
73
|
+
self._description = None
|
74
|
+
self._endpoint = None
|
75
|
+
self._vpc = None
|
76
|
+
self._ssl = None
|
77
|
+
self._cloud = None
|
78
|
+
self._enterprise_project_id = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
self.name = name
|
82
|
+
self.db_type = db_type
|
83
|
+
if config is not None:
|
84
|
+
self.config = config
|
85
|
+
if description is not None:
|
86
|
+
self.description = description
|
87
|
+
self.endpoint = endpoint
|
88
|
+
if vpc is not None:
|
89
|
+
self.vpc = vpc
|
90
|
+
if ssl is not None:
|
91
|
+
self.ssl = ssl
|
92
|
+
if cloud is not None:
|
93
|
+
self.cloud = cloud
|
94
|
+
if enterprise_project_id is not None:
|
95
|
+
self.enterprise_project_id = enterprise_project_id
|
96
|
+
|
97
|
+
@property
|
98
|
+
def name(self):
|
99
|
+
"""Gets the name of this CreateConnectionReq.
|
100
|
+
|
101
|
+
连接名称。 约束:连接名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。
|
102
|
+
|
103
|
+
:return: The name of this CreateConnectionReq.
|
104
|
+
:rtype: str
|
105
|
+
"""
|
106
|
+
return self._name
|
107
|
+
|
108
|
+
@name.setter
|
109
|
+
def name(self, name):
|
110
|
+
"""Sets the name of this CreateConnectionReq.
|
111
|
+
|
112
|
+
连接名称。 约束:连接名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。
|
113
|
+
|
114
|
+
:param name: The name of this CreateConnectionReq.
|
115
|
+
:type name: str
|
116
|
+
"""
|
117
|
+
self._name = name
|
118
|
+
|
119
|
+
@property
|
120
|
+
def db_type(self):
|
121
|
+
"""Gets the db_type of this CreateConnectionReq.
|
122
|
+
|
123
|
+
连接类型,包含: - mysql - postgresql - mongodb - oracle
|
124
|
+
|
125
|
+
:return: The db_type of this CreateConnectionReq.
|
126
|
+
:rtype: str
|
127
|
+
"""
|
128
|
+
return self._db_type
|
129
|
+
|
130
|
+
@db_type.setter
|
131
|
+
def db_type(self, db_type):
|
132
|
+
"""Sets the db_type of this CreateConnectionReq.
|
133
|
+
|
134
|
+
连接类型,包含: - mysql - postgresql - mongodb - oracle
|
135
|
+
|
136
|
+
:param db_type: The db_type of this CreateConnectionReq.
|
137
|
+
:type db_type: str
|
138
|
+
"""
|
139
|
+
self._db_type = db_type
|
140
|
+
|
141
|
+
@property
|
142
|
+
def config(self):
|
143
|
+
"""Gets the config of this CreateConnectionReq.
|
144
|
+
|
145
|
+
:return: The config of this CreateConnectionReq.
|
146
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
|
147
|
+
"""
|
148
|
+
return self._config
|
149
|
+
|
150
|
+
@config.setter
|
151
|
+
def config(self, config):
|
152
|
+
"""Sets the config of this CreateConnectionReq.
|
153
|
+
|
154
|
+
:param config: The config of this CreateConnectionReq.
|
155
|
+
:type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
|
156
|
+
"""
|
157
|
+
self._config = config
|
158
|
+
|
159
|
+
@property
|
160
|
+
def description(self):
|
161
|
+
"""Gets the description of this CreateConnectionReq.
|
162
|
+
|
163
|
+
描述,长度不能超过255个字符。
|
164
|
+
|
165
|
+
:return: The description of this CreateConnectionReq.
|
166
|
+
:rtype: str
|
167
|
+
"""
|
168
|
+
return self._description
|
169
|
+
|
170
|
+
@description.setter
|
171
|
+
def description(self, description):
|
172
|
+
"""Sets the description of this CreateConnectionReq.
|
173
|
+
|
174
|
+
描述,长度不能超过255个字符。
|
175
|
+
|
176
|
+
:param description: The description of this CreateConnectionReq.
|
177
|
+
:type description: str
|
178
|
+
"""
|
179
|
+
self._description = description
|
180
|
+
|
181
|
+
@property
|
182
|
+
def endpoint(self):
|
183
|
+
"""Gets the endpoint of this CreateConnectionReq.
|
184
|
+
|
185
|
+
:return: The endpoint of this CreateConnectionReq.
|
186
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
|
187
|
+
"""
|
188
|
+
return self._endpoint
|
189
|
+
|
190
|
+
@endpoint.setter
|
191
|
+
def endpoint(self, endpoint):
|
192
|
+
"""Sets the endpoint of this CreateConnectionReq.
|
193
|
+
|
194
|
+
:param endpoint: The endpoint of this CreateConnectionReq.
|
195
|
+
:type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
|
196
|
+
"""
|
197
|
+
self._endpoint = endpoint
|
198
|
+
|
199
|
+
@property
|
200
|
+
def vpc(self):
|
201
|
+
"""Gets the vpc of this CreateConnectionReq.
|
202
|
+
|
203
|
+
:return: The vpc of this CreateConnectionReq.
|
204
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
|
205
|
+
"""
|
206
|
+
return self._vpc
|
207
|
+
|
208
|
+
@vpc.setter
|
209
|
+
def vpc(self, vpc):
|
210
|
+
"""Sets the vpc of this CreateConnectionReq.
|
211
|
+
|
212
|
+
:param vpc: The vpc of this CreateConnectionReq.
|
213
|
+
:type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
|
214
|
+
"""
|
215
|
+
self._vpc = vpc
|
216
|
+
|
217
|
+
@property
|
218
|
+
def ssl(self):
|
219
|
+
"""Gets the ssl of this CreateConnectionReq.
|
220
|
+
|
221
|
+
:return: The ssl of this CreateConnectionReq.
|
222
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
|
223
|
+
"""
|
224
|
+
return self._ssl
|
225
|
+
|
226
|
+
@ssl.setter
|
227
|
+
def ssl(self, ssl):
|
228
|
+
"""Sets the ssl of this CreateConnectionReq.
|
229
|
+
|
230
|
+
:param ssl: The ssl of this CreateConnectionReq.
|
231
|
+
:type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
|
232
|
+
"""
|
233
|
+
self._ssl = ssl
|
234
|
+
|
235
|
+
@property
|
236
|
+
def cloud(self):
|
237
|
+
"""Gets the cloud of this CreateConnectionReq.
|
238
|
+
|
239
|
+
:return: The cloud of this CreateConnectionReq.
|
240
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo`
|
241
|
+
"""
|
242
|
+
return self._cloud
|
243
|
+
|
244
|
+
@cloud.setter
|
245
|
+
def cloud(self, cloud):
|
246
|
+
"""Sets the cloud of this CreateConnectionReq.
|
247
|
+
|
248
|
+
:param cloud: The cloud of this CreateConnectionReq.
|
249
|
+
:type cloud: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo`
|
250
|
+
"""
|
251
|
+
self._cloud = cloud
|
252
|
+
|
253
|
+
@property
|
254
|
+
def enterprise_project_id(self):
|
255
|
+
"""Gets the enterprise_project_id of this CreateConnectionReq.
|
256
|
+
|
257
|
+
企业项目ID。
|
258
|
+
|
259
|
+
:return: The enterprise_project_id of this CreateConnectionReq.
|
260
|
+
:rtype: str
|
261
|
+
"""
|
262
|
+
return self._enterprise_project_id
|
263
|
+
|
264
|
+
@enterprise_project_id.setter
|
265
|
+
def enterprise_project_id(self, enterprise_project_id):
|
266
|
+
"""Sets the enterprise_project_id of this CreateConnectionReq.
|
267
|
+
|
268
|
+
企业项目ID。
|
269
|
+
|
270
|
+
:param enterprise_project_id: The enterprise_project_id of this CreateConnectionReq.
|
271
|
+
:type enterprise_project_id: str
|
272
|
+
"""
|
273
|
+
self._enterprise_project_id = enterprise_project_id
|
274
|
+
|
275
|
+
def to_dict(self):
|
276
|
+
"""Returns the model properties as a dict"""
|
277
|
+
result = {}
|
278
|
+
|
279
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
280
|
+
value = getattr(self, attr)
|
281
|
+
if isinstance(value, list):
|
282
|
+
result[attr] = list(map(
|
283
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
284
|
+
value
|
285
|
+
))
|
286
|
+
elif hasattr(value, "to_dict"):
|
287
|
+
result[attr] = value.to_dict()
|
288
|
+
elif isinstance(value, dict):
|
289
|
+
result[attr] = dict(map(
|
290
|
+
lambda item: (item[0], item[1].to_dict())
|
291
|
+
if hasattr(item[1], "to_dict") else item,
|
292
|
+
value.items()
|
293
|
+
))
|
294
|
+
else:
|
295
|
+
if attr in self.sensitive_list:
|
296
|
+
result[attr] = "****"
|
297
|
+
else:
|
298
|
+
result[attr] = value
|
299
|
+
|
300
|
+
return result
|
301
|
+
|
302
|
+
def to_str(self):
|
303
|
+
"""Returns the string representation of the model"""
|
304
|
+
import simplejson as json
|
305
|
+
if six.PY2:
|
306
|
+
import sys
|
307
|
+
reload(sys)
|
308
|
+
sys.setdefaultencoding("utf-8")
|
309
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
310
|
+
|
311
|
+
def __repr__(self):
|
312
|
+
"""For `print`"""
|
313
|
+
return self.to_str()
|
314
|
+
|
315
|
+
def __eq__(self, other):
|
316
|
+
"""Returns true if both objects are equal"""
|
317
|
+
if not isinstance(other, CreateConnectionReq):
|
318
|
+
return False
|
319
|
+
|
320
|
+
return self.__dict__ == other.__dict__
|
321
|
+
|
322
|
+
def __ne__(self, other):
|
323
|
+
"""Returns true if both objects are not equal"""
|
324
|
+
return not self == other
|
@@ -0,0 +1,140 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateConnectionRequest:
|
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
|
+
'body': 'CreateConnectionReq'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, body=None):
|
30
|
+
"""CreateConnectionRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 请求语言类型。
|
35
|
+
:type x_language: str
|
36
|
+
:param body: Body of the CreateConnectionRequest
|
37
|
+
:type body: :class:`huaweicloudsdkdrs.v5.CreateConnectionReq`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
if body is not None:
|
49
|
+
self.body = body
|
50
|
+
|
51
|
+
@property
|
52
|
+
def x_language(self):
|
53
|
+
"""Gets the x_language of this CreateConnectionRequest.
|
54
|
+
|
55
|
+
请求语言类型。
|
56
|
+
|
57
|
+
:return: The x_language of this CreateConnectionRequest.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._x_language
|
61
|
+
|
62
|
+
@x_language.setter
|
63
|
+
def x_language(self, x_language):
|
64
|
+
"""Sets the x_language of this CreateConnectionRequest.
|
65
|
+
|
66
|
+
请求语言类型。
|
67
|
+
|
68
|
+
:param x_language: The x_language of this CreateConnectionRequest.
|
69
|
+
:type x_language: str
|
70
|
+
"""
|
71
|
+
self._x_language = x_language
|
72
|
+
|
73
|
+
@property
|
74
|
+
def body(self):
|
75
|
+
"""Gets the body of this CreateConnectionRequest.
|
76
|
+
|
77
|
+
:return: The body of this CreateConnectionRequest.
|
78
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CreateConnectionReq`
|
79
|
+
"""
|
80
|
+
return self._body
|
81
|
+
|
82
|
+
@body.setter
|
83
|
+
def body(self, body):
|
84
|
+
"""Sets the body of this CreateConnectionRequest.
|
85
|
+
|
86
|
+
:param body: The body of this CreateConnectionRequest.
|
87
|
+
:type body: :class:`huaweicloudsdkdrs.v5.CreateConnectionReq`
|
88
|
+
"""
|
89
|
+
self._body = body
|
90
|
+
|
91
|
+
def to_dict(self):
|
92
|
+
"""Returns the model properties as a dict"""
|
93
|
+
result = {}
|
94
|
+
|
95
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
96
|
+
value = getattr(self, attr)
|
97
|
+
if isinstance(value, list):
|
98
|
+
result[attr] = list(map(
|
99
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
100
|
+
value
|
101
|
+
))
|
102
|
+
elif hasattr(value, "to_dict"):
|
103
|
+
result[attr] = value.to_dict()
|
104
|
+
elif isinstance(value, dict):
|
105
|
+
result[attr] = dict(map(
|
106
|
+
lambda item: (item[0], item[1].to_dict())
|
107
|
+
if hasattr(item[1], "to_dict") else item,
|
108
|
+
value.items()
|
109
|
+
))
|
110
|
+
else:
|
111
|
+
if attr in self.sensitive_list:
|
112
|
+
result[attr] = "****"
|
113
|
+
else:
|
114
|
+
result[attr] = value
|
115
|
+
|
116
|
+
return result
|
117
|
+
|
118
|
+
def to_str(self):
|
119
|
+
"""Returns the string representation of the model"""
|
120
|
+
import simplejson as json
|
121
|
+
if six.PY2:
|
122
|
+
import sys
|
123
|
+
reload(sys)
|
124
|
+
sys.setdefaultencoding("utf-8")
|
125
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
126
|
+
|
127
|
+
def __repr__(self):
|
128
|
+
"""For `print`"""
|
129
|
+
return self.to_str()
|
130
|
+
|
131
|
+
def __eq__(self, other):
|
132
|
+
"""Returns true if both objects are equal"""
|
133
|
+
if not isinstance(other, CreateConnectionRequest):
|
134
|
+
return False
|
135
|
+
|
136
|
+
return self.__dict__ == other.__dict__
|
137
|
+
|
138
|
+
def __ne__(self, other):
|
139
|
+
"""Returns true if both objects are not equal"""
|
140
|
+
return not self == other
|