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
@@ -0,0 +1,168 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateDataLevelTableCompareJobRequest:
|
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
|
+
'job_id': 'str',
|
22
|
+
'body': 'CreateDataLevelTableCompareJobReq'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'job_id': 'job_id',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, job_id=None, body=None):
|
32
|
+
"""CreateDataLevelTableCompareJobRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: 请求语言类型。
|
37
|
+
:type x_language: str
|
38
|
+
:param job_id: 任务ID。
|
39
|
+
:type job_id: str
|
40
|
+
:param body: Body of the CreateDataLevelTableCompareJobRequest
|
41
|
+
:type body: :class:`huaweicloudsdkdrs.v3.CreateDataLevelTableCompareJobReq`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._job_id = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
self.job_id = job_id
|
54
|
+
if body is not None:
|
55
|
+
self.body = body
|
56
|
+
|
57
|
+
@property
|
58
|
+
def x_language(self):
|
59
|
+
"""Gets the x_language of this CreateDataLevelTableCompareJobRequest.
|
60
|
+
|
61
|
+
请求语言类型。
|
62
|
+
|
63
|
+
:return: The x_language of this CreateDataLevelTableCompareJobRequest.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._x_language
|
67
|
+
|
68
|
+
@x_language.setter
|
69
|
+
def x_language(self, x_language):
|
70
|
+
"""Sets the x_language of this CreateDataLevelTableCompareJobRequest.
|
71
|
+
|
72
|
+
请求语言类型。
|
73
|
+
|
74
|
+
:param x_language: The x_language of this CreateDataLevelTableCompareJobRequest.
|
75
|
+
:type x_language: str
|
76
|
+
"""
|
77
|
+
self._x_language = x_language
|
78
|
+
|
79
|
+
@property
|
80
|
+
def job_id(self):
|
81
|
+
"""Gets the job_id of this CreateDataLevelTableCompareJobRequest.
|
82
|
+
|
83
|
+
任务ID。
|
84
|
+
|
85
|
+
:return: The job_id of this CreateDataLevelTableCompareJobRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._job_id
|
89
|
+
|
90
|
+
@job_id.setter
|
91
|
+
def job_id(self, job_id):
|
92
|
+
"""Sets the job_id of this CreateDataLevelTableCompareJobRequest.
|
93
|
+
|
94
|
+
任务ID。
|
95
|
+
|
96
|
+
:param job_id: The job_id of this CreateDataLevelTableCompareJobRequest.
|
97
|
+
:type job_id: str
|
98
|
+
"""
|
99
|
+
self._job_id = job_id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def body(self):
|
103
|
+
"""Gets the body of this CreateDataLevelTableCompareJobRequest.
|
104
|
+
|
105
|
+
:return: The body of this CreateDataLevelTableCompareJobRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkdrs.v3.CreateDataLevelTableCompareJobReq`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
"""Sets the body of this CreateDataLevelTableCompareJobRequest.
|
113
|
+
|
114
|
+
:param body: The body of this CreateDataLevelTableCompareJobRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkdrs.v3.CreateDataLevelTableCompareJobReq`
|
116
|
+
"""
|
117
|
+
self._body = body
|
118
|
+
|
119
|
+
def to_dict(self):
|
120
|
+
"""Returns the model properties as a dict"""
|
121
|
+
result = {}
|
122
|
+
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
124
|
+
value = getattr(self, attr)
|
125
|
+
if isinstance(value, list):
|
126
|
+
result[attr] = list(map(
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
128
|
+
value
|
129
|
+
))
|
130
|
+
elif hasattr(value, "to_dict"):
|
131
|
+
result[attr] = value.to_dict()
|
132
|
+
elif isinstance(value, dict):
|
133
|
+
result[attr] = dict(map(
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
136
|
+
value.items()
|
137
|
+
))
|
138
|
+
else:
|
139
|
+
if attr in self.sensitive_list:
|
140
|
+
result[attr] = "****"
|
141
|
+
else:
|
142
|
+
result[attr] = value
|
143
|
+
|
144
|
+
return result
|
145
|
+
|
146
|
+
def to_str(self):
|
147
|
+
"""Returns the string representation of the model"""
|
148
|
+
import simplejson as json
|
149
|
+
if six.PY2:
|
150
|
+
import sys
|
151
|
+
reload(sys)
|
152
|
+
sys.setdefaultencoding("utf-8")
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
154
|
+
|
155
|
+
def __repr__(self):
|
156
|
+
"""For `print`"""
|
157
|
+
return self.to_str()
|
158
|
+
|
159
|
+
def __eq__(self, other):
|
160
|
+
"""Returns true if both objects are equal"""
|
161
|
+
if not isinstance(other, CreateDataLevelTableCompareJobRequest):
|
162
|
+
return False
|
163
|
+
|
164
|
+
return self.__dict__ == other.__dict__
|
165
|
+
|
166
|
+
def __ne__(self, other):
|
167
|
+
"""Returns true if both objects are not equal"""
|
168
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class CreateDataLevelTableCompareJobResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'id': 'id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, id=None):
|
29
|
+
"""CreateDataLevelTableCompareJobResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param id: 对比任务ID
|
34
|
+
:type id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateDataLevelTableCompareJobResponse, self).__init__()
|
38
|
+
|
39
|
+
self._id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if id is not None:
|
43
|
+
self.id = id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def id(self):
|
47
|
+
"""Gets the id of this CreateDataLevelTableCompareJobResponse.
|
48
|
+
|
49
|
+
对比任务ID
|
50
|
+
|
51
|
+
:return: The id of this CreateDataLevelTableCompareJobResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._id
|
55
|
+
|
56
|
+
@id.setter
|
57
|
+
def id(self, id):
|
58
|
+
"""Sets the id of this CreateDataLevelTableCompareJobResponse.
|
59
|
+
|
60
|
+
对比任务ID
|
61
|
+
|
62
|
+
:param id: The id of this CreateDataLevelTableCompareJobResponse.
|
63
|
+
:type id: str
|
64
|
+
"""
|
65
|
+
self._id = id
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, CreateDataLevelTableCompareJobResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -40,7 +40,8 @@ class CreateJobReq:
|
|
40
40
|
'slave_az': 'str',
|
41
41
|
'charging_mode': 'str',
|
42
42
|
'period_order': 'PeriodOrderInfo',
|
43
|
-
'public_ip_list': 'list[PublicIpConfig]'
|
43
|
+
'public_ip_list': 'list[PublicIpConfig]',
|
44
|
+
'is_open_fast_clean': 'bool'
|
44
45
|
}
|
45
46
|
|
46
47
|
attribute_map = {
|
@@ -67,10 +68,11 @@ class CreateJobReq:
|
|
67
68
|
'slave_az': 'slave_az',
|
68
69
|
'charging_mode': 'charging_mode',
|
69
70
|
'period_order': 'period_order',
|
70
|
-
'public_ip_list': 'public_ip_list'
|
71
|
+
'public_ip_list': 'public_ip_list',
|
72
|
+
'is_open_fast_clean': 'is_open_fast_clean'
|
71
73
|
}
|
72
74
|
|
73
|
-
def __init__(self, bind_eip=None, db_use_type=None, name=None, description=None, engine_type=None, is_target_readonly=None, job_direction=None, multi_write=None, net_type=None, node_num=None, node_type=None, source_endpoint=None, target_endpoint=None, tags=None, task_type=None, customize_sutnet_id=None, product_id=None, sys_tags=None, expired_days=None, master_az=None, slave_az=None, charging_mode=None, period_order=None, public_ip_list=None):
|
75
|
+
def __init__(self, bind_eip=None, db_use_type=None, name=None, description=None, engine_type=None, is_target_readonly=None, job_direction=None, multi_write=None, net_type=None, node_num=None, node_type=None, source_endpoint=None, target_endpoint=None, tags=None, task_type=None, customize_sutnet_id=None, product_id=None, sys_tags=None, expired_days=None, master_az=None, slave_az=None, charging_mode=None, period_order=None, public_ip_list=None, is_open_fast_clean=None):
|
74
76
|
"""CreateJobReq
|
75
77
|
|
76
78
|
The model defined in huaweicloud sdk
|
@@ -95,7 +97,7 @@ class CreateJobReq:
|
|
95
97
|
:type net_type: str
|
96
98
|
:param node_num: 节点个数。MongoDB数据库时对应源端分片个数,源库为集群时必填,[1-32],MySQL双主灾备时会默认设置为2。
|
97
99
|
:type node_num: int
|
98
|
-
:param node_type:
|
100
|
+
:param node_type: 规格类型。取值: - micro:极小规格。 - small:小规格。 - medium:中规格。 - high:大规格。 - xlarge:超大规格。 - 2xlarge:极大规格。 具体某种场景支持的取值可以通过[查询可用的Node规格接口](https://support.huaweicloud.com/api-drs/drs_03_0239.html)获取。
|
99
101
|
:type node_type: str
|
100
102
|
:param source_endpoint:
|
101
103
|
:type source_endpoint: :class:`huaweicloudsdkdrs.v3.Endpoint`
|
@@ -109,7 +111,7 @@ class CreateJobReq:
|
|
109
111
|
:type customize_sutnet_id: str
|
110
112
|
:param product_id: 产品id。
|
111
113
|
:type product_id: str
|
112
|
-
:param sys_tags: 企业项目,不填默认为default,key值必须为_sys_enterprise_project_id,value为企业项目ID
|
114
|
+
:param sys_tags: 企业项目,不填默认为default,key值必须为_sys_enterprise_project_id,value为企业项目ID,只能填一个企业项目。
|
113
115
|
:type sys_tags: list[:class:`huaweicloudsdkdrs.v3.ResourceTag`]
|
114
116
|
:param expired_days: 任务处于异常状态一段时间后,将会自动结束,单位为天。(范围14-100),不传默认为14天。
|
115
117
|
:type expired_days: str
|
@@ -121,8 +123,10 @@ class CreateJobReq:
|
|
121
123
|
:type charging_mode: str
|
122
124
|
:param period_order:
|
123
125
|
:type period_order: :class:`huaweicloudsdkdrs.v3.PeriodOrderInfo`
|
124
|
-
:param public_ip_list: 指定公网IP
|
126
|
+
:param public_ip_list: 指定公网IP的信息。
|
125
127
|
:type public_ip_list: list[:class:`huaweicloudsdkdrs.v3.PublicIpConfig`]
|
128
|
+
:param is_open_fast_clean: 是否开启云数据库RDS for MySQL/MariaDB的binlog快速清理。不传默认为false,不开启快速清理。
|
129
|
+
:type is_open_fast_clean: bool
|
126
130
|
"""
|
127
131
|
|
128
132
|
|
@@ -151,6 +155,7 @@ class CreateJobReq:
|
|
151
155
|
self._charging_mode = None
|
152
156
|
self._period_order = None
|
153
157
|
self._public_ip_list = None
|
158
|
+
self._is_open_fast_clean = None
|
154
159
|
self.discriminator = None
|
155
160
|
|
156
161
|
if bind_eip is not None:
|
@@ -191,6 +196,8 @@ class CreateJobReq:
|
|
191
196
|
self.period_order = period_order
|
192
197
|
if public_ip_list is not None:
|
193
198
|
self.public_ip_list = public_ip_list
|
199
|
+
if is_open_fast_clean is not None:
|
200
|
+
self.is_open_fast_clean = is_open_fast_clean
|
194
201
|
|
195
202
|
@property
|
196
203
|
def bind_eip(self):
|
@@ -416,7 +423,7 @@ class CreateJobReq:
|
|
416
423
|
def node_type(self):
|
417
424
|
"""Gets the node_type of this CreateJobReq.
|
418
425
|
|
419
|
-
|
426
|
+
规格类型。取值: - micro:极小规格。 - small:小规格。 - medium:中规格。 - high:大规格。 - xlarge:超大规格。 - 2xlarge:极大规格。 具体某种场景支持的取值可以通过[查询可用的Node规格接口](https://support.huaweicloud.com/api-drs/drs_03_0239.html)获取。
|
420
427
|
|
421
428
|
:return: The node_type of this CreateJobReq.
|
422
429
|
:rtype: str
|
@@ -427,7 +434,7 @@ class CreateJobReq:
|
|
427
434
|
def node_type(self, node_type):
|
428
435
|
"""Sets the node_type of this CreateJobReq.
|
429
436
|
|
430
|
-
|
437
|
+
规格类型。取值: - micro:极小规格。 - small:小规格。 - medium:中规格。 - high:大规格。 - xlarge:超大规格。 - 2xlarge:极大规格。 具体某种场景支持的取值可以通过[查询可用的Node规格接口](https://support.huaweicloud.com/api-drs/drs_03_0239.html)获取。
|
431
438
|
|
432
439
|
:param node_type: The node_type of this CreateJobReq.
|
433
440
|
:type node_type: str
|
@@ -562,7 +569,7 @@ class CreateJobReq:
|
|
562
569
|
def sys_tags(self):
|
563
570
|
"""Gets the sys_tags of this CreateJobReq.
|
564
571
|
|
565
|
-
企业项目,不填默认为default,key值必须为_sys_enterprise_project_id,value为企业项目ID
|
572
|
+
企业项目,不填默认为default,key值必须为_sys_enterprise_project_id,value为企业项目ID,只能填一个企业项目。
|
566
573
|
|
567
574
|
:return: The sys_tags of this CreateJobReq.
|
568
575
|
:rtype: list[:class:`huaweicloudsdkdrs.v3.ResourceTag`]
|
@@ -573,7 +580,7 @@ class CreateJobReq:
|
|
573
580
|
def sys_tags(self, sys_tags):
|
574
581
|
"""Sets the sys_tags of this CreateJobReq.
|
575
582
|
|
576
|
-
企业项目,不填默认为default,key值必须为_sys_enterprise_project_id,value为企业项目ID
|
583
|
+
企业项目,不填默认为default,key值必须为_sys_enterprise_project_id,value为企业项目ID,只能填一个企业项目。
|
577
584
|
|
578
585
|
:param sys_tags: The sys_tags of this CreateJobReq.
|
579
586
|
:type sys_tags: list[:class:`huaweicloudsdkdrs.v3.ResourceTag`]
|
@@ -690,7 +697,7 @@ class CreateJobReq:
|
|
690
697
|
def public_ip_list(self):
|
691
698
|
"""Gets the public_ip_list of this CreateJobReq.
|
692
699
|
|
693
|
-
指定公网IP
|
700
|
+
指定公网IP的信息。
|
694
701
|
|
695
702
|
:return: The public_ip_list of this CreateJobReq.
|
696
703
|
:rtype: list[:class:`huaweicloudsdkdrs.v3.PublicIpConfig`]
|
@@ -701,13 +708,35 @@ class CreateJobReq:
|
|
701
708
|
def public_ip_list(self, public_ip_list):
|
702
709
|
"""Sets the public_ip_list of this CreateJobReq.
|
703
710
|
|
704
|
-
指定公网IP
|
711
|
+
指定公网IP的信息。
|
705
712
|
|
706
713
|
:param public_ip_list: The public_ip_list of this CreateJobReq.
|
707
714
|
:type public_ip_list: list[:class:`huaweicloudsdkdrs.v3.PublicIpConfig`]
|
708
715
|
"""
|
709
716
|
self._public_ip_list = public_ip_list
|
710
717
|
|
718
|
+
@property
|
719
|
+
def is_open_fast_clean(self):
|
720
|
+
"""Gets the is_open_fast_clean of this CreateJobReq.
|
721
|
+
|
722
|
+
是否开启云数据库RDS for MySQL/MariaDB的binlog快速清理。不传默认为false,不开启快速清理。
|
723
|
+
|
724
|
+
:return: The is_open_fast_clean of this CreateJobReq.
|
725
|
+
:rtype: bool
|
726
|
+
"""
|
727
|
+
return self._is_open_fast_clean
|
728
|
+
|
729
|
+
@is_open_fast_clean.setter
|
730
|
+
def is_open_fast_clean(self, is_open_fast_clean):
|
731
|
+
"""Sets the is_open_fast_clean of this CreateJobReq.
|
732
|
+
|
733
|
+
是否开启云数据库RDS for MySQL/MariaDB的binlog快速清理。不传默认为false,不开启快速清理。
|
734
|
+
|
735
|
+
:param is_open_fast_clean: The is_open_fast_clean of this CreateJobReq.
|
736
|
+
:type is_open_fast_clean: bool
|
737
|
+
"""
|
738
|
+
self._is_open_fast_clean = is_open_fast_clean
|
739
|
+
|
711
740
|
def to_dict(self):
|
712
741
|
"""Returns the model properties as a dict"""
|
713
742
|
result = {}
|
@@ -0,0 +1,115 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateObjectCompareJobReq:
|
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
|
+
'compare_task_num': 'int'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'compare_task_num': 'compare_task_num'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, compare_task_num=None):
|
28
|
+
"""CreateObjectCompareJobReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param compare_task_num: 对比任务线程数量,当前仅cloudDataGuard-cassandra和cloudDataGuard-gausscassandra-to-gausscassandra链路支持。
|
33
|
+
:type compare_task_num: int
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._compare_task_num = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if compare_task_num is not None:
|
42
|
+
self.compare_task_num = compare_task_num
|
43
|
+
|
44
|
+
@property
|
45
|
+
def compare_task_num(self):
|
46
|
+
"""Gets the compare_task_num of this CreateObjectCompareJobReq.
|
47
|
+
|
48
|
+
对比任务线程数量,当前仅cloudDataGuard-cassandra和cloudDataGuard-gausscassandra-to-gausscassandra链路支持。
|
49
|
+
|
50
|
+
:return: The compare_task_num of this CreateObjectCompareJobReq.
|
51
|
+
:rtype: int
|
52
|
+
"""
|
53
|
+
return self._compare_task_num
|
54
|
+
|
55
|
+
@compare_task_num.setter
|
56
|
+
def compare_task_num(self, compare_task_num):
|
57
|
+
"""Sets the compare_task_num of this CreateObjectCompareJobReq.
|
58
|
+
|
59
|
+
对比任务线程数量,当前仅cloudDataGuard-cassandra和cloudDataGuard-gausscassandra-to-gausscassandra链路支持。
|
60
|
+
|
61
|
+
:param compare_task_num: The compare_task_num of this CreateObjectCompareJobReq.
|
62
|
+
:type compare_task_num: int
|
63
|
+
"""
|
64
|
+
self._compare_task_num = compare_task_num
|
65
|
+
|
66
|
+
def to_dict(self):
|
67
|
+
"""Returns the model properties as a dict"""
|
68
|
+
result = {}
|
69
|
+
|
70
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
71
|
+
value = getattr(self, attr)
|
72
|
+
if isinstance(value, list):
|
73
|
+
result[attr] = list(map(
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
75
|
+
value
|
76
|
+
))
|
77
|
+
elif hasattr(value, "to_dict"):
|
78
|
+
result[attr] = value.to_dict()
|
79
|
+
elif isinstance(value, dict):
|
80
|
+
result[attr] = dict(map(
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
83
|
+
value.items()
|
84
|
+
))
|
85
|
+
else:
|
86
|
+
if attr in self.sensitive_list:
|
87
|
+
result[attr] = "****"
|
88
|
+
else:
|
89
|
+
result[attr] = value
|
90
|
+
|
91
|
+
return result
|
92
|
+
|
93
|
+
def to_str(self):
|
94
|
+
"""Returns the string representation of the model"""
|
95
|
+
import simplejson as json
|
96
|
+
if six.PY2:
|
97
|
+
import sys
|
98
|
+
reload(sys)
|
99
|
+
sys.setdefaultencoding("utf-8")
|
100
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
101
|
+
|
102
|
+
def __repr__(self):
|
103
|
+
"""For `print`"""
|
104
|
+
return self.to_str()
|
105
|
+
|
106
|
+
def __eq__(self, other):
|
107
|
+
"""Returns true if both objects are equal"""
|
108
|
+
if not isinstance(other, CreateObjectCompareJobReq):
|
109
|
+
return False
|
110
|
+
|
111
|
+
return self.__dict__ == other.__dict__
|
112
|
+
|
113
|
+
def __ne__(self, other):
|
114
|
+
"""Returns true if both objects are not equal"""
|
115
|
+
return not self == other
|