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,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ModifyOfflineTaskReq:
|
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
|
+
'description': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'name': 'name',
|
26
|
+
'description': 'description'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, name=None, description=None):
|
30
|
+
"""ModifyOfflineTaskReq
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param name: 备份迁移任务名称。
|
35
|
+
:type name: str
|
36
|
+
:param description: 备份迁移任务描述。
|
37
|
+
:type description: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._name = None
|
43
|
+
self._description = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.name = name
|
47
|
+
if description is not None:
|
48
|
+
self.description = description
|
49
|
+
|
50
|
+
@property
|
51
|
+
def name(self):
|
52
|
+
"""Gets the name of this ModifyOfflineTaskReq.
|
53
|
+
|
54
|
+
备份迁移任务名称。
|
55
|
+
|
56
|
+
:return: The name of this ModifyOfflineTaskReq.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._name
|
60
|
+
|
61
|
+
@name.setter
|
62
|
+
def name(self, name):
|
63
|
+
"""Sets the name of this ModifyOfflineTaskReq.
|
64
|
+
|
65
|
+
备份迁移任务名称。
|
66
|
+
|
67
|
+
:param name: The name of this ModifyOfflineTaskReq.
|
68
|
+
:type name: str
|
69
|
+
"""
|
70
|
+
self._name = name
|
71
|
+
|
72
|
+
@property
|
73
|
+
def description(self):
|
74
|
+
"""Gets the description of this ModifyOfflineTaskReq.
|
75
|
+
|
76
|
+
备份迁移任务描述。
|
77
|
+
|
78
|
+
:return: The description of this ModifyOfflineTaskReq.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._description
|
82
|
+
|
83
|
+
@description.setter
|
84
|
+
def description(self, description):
|
85
|
+
"""Sets the description of this ModifyOfflineTaskReq.
|
86
|
+
|
87
|
+
备份迁移任务描述。
|
88
|
+
|
89
|
+
:param description: The description of this ModifyOfflineTaskReq.
|
90
|
+
:type description: str
|
91
|
+
"""
|
92
|
+
self._description = description
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, ModifyOfflineTaskReq):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|
@@ -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 ObjectsHealthCompareOverviewInfo:
|
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
|
+
'type': 'str',
|
21
|
+
'source_count': 'int',
|
22
|
+
'target_count': 'int',
|
23
|
+
'status': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'type': 'type',
|
28
|
+
'source_count': 'source_count',
|
29
|
+
'target_count': 'target_count',
|
30
|
+
'status': 'status'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, type=None, source_count=None, target_count=None, status=None):
|
34
|
+
"""ObjectsHealthCompareOverviewInfo
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param type: 对象类型。取值: - DB:数据库。 - TABLE:表。 - VIEW:视图。 - EVENT:事件。 - ROUTINE:存储过程和函数。 - INDEX:索引。 - TRIGGER:触发器。 - SYNONYM:同义词。 - FUNCTION:函数。 - PROCEDURE:存储过程。 - TYPE:自定义类型。 - RULE:规则。 - DEFAULT_TYPE:缺省值。 - PLAN_GUIDE:执行计划。 - CONSTRAINT:约束。 - FILE_GROUP:文件组。 - PARTITION_FUNCTION:分区函数。 - PARTITION_SCHEME:分区方案。 - TABLE_COLLATION:表的排序规则。 - EXTENSIONS:插件。
|
39
|
+
:type type: str
|
40
|
+
:param source_count: 源数量。
|
41
|
+
:type source_count: int
|
42
|
+
:param target_count: 目标数量。
|
43
|
+
:type target_count: int
|
44
|
+
:param status: 对比结果: - 0:不一致。 - 2:一致。 - 3:未完成。
|
45
|
+
:type status: int
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._type = None
|
51
|
+
self._source_count = None
|
52
|
+
self._target_count = None
|
53
|
+
self._status = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if type is not None:
|
57
|
+
self.type = type
|
58
|
+
if source_count is not None:
|
59
|
+
self.source_count = source_count
|
60
|
+
if target_count is not None:
|
61
|
+
self.target_count = target_count
|
62
|
+
if status is not None:
|
63
|
+
self.status = status
|
64
|
+
|
65
|
+
@property
|
66
|
+
def type(self):
|
67
|
+
"""Gets the type of this ObjectsHealthCompareOverviewInfo.
|
68
|
+
|
69
|
+
对象类型。取值: - DB:数据库。 - TABLE:表。 - VIEW:视图。 - EVENT:事件。 - ROUTINE:存储过程和函数。 - INDEX:索引。 - TRIGGER:触发器。 - SYNONYM:同义词。 - FUNCTION:函数。 - PROCEDURE:存储过程。 - TYPE:自定义类型。 - RULE:规则。 - DEFAULT_TYPE:缺省值。 - PLAN_GUIDE:执行计划。 - CONSTRAINT:约束。 - FILE_GROUP:文件组。 - PARTITION_FUNCTION:分区函数。 - PARTITION_SCHEME:分区方案。 - TABLE_COLLATION:表的排序规则。 - EXTENSIONS:插件。
|
70
|
+
|
71
|
+
:return: The type of this ObjectsHealthCompareOverviewInfo.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._type
|
75
|
+
|
76
|
+
@type.setter
|
77
|
+
def type(self, type):
|
78
|
+
"""Sets the type of this ObjectsHealthCompareOverviewInfo.
|
79
|
+
|
80
|
+
对象类型。取值: - DB:数据库。 - TABLE:表。 - VIEW:视图。 - EVENT:事件。 - ROUTINE:存储过程和函数。 - INDEX:索引。 - TRIGGER:触发器。 - SYNONYM:同义词。 - FUNCTION:函数。 - PROCEDURE:存储过程。 - TYPE:自定义类型。 - RULE:规则。 - DEFAULT_TYPE:缺省值。 - PLAN_GUIDE:执行计划。 - CONSTRAINT:约束。 - FILE_GROUP:文件组。 - PARTITION_FUNCTION:分区函数。 - PARTITION_SCHEME:分区方案。 - TABLE_COLLATION:表的排序规则。 - EXTENSIONS:插件。
|
81
|
+
|
82
|
+
:param type: The type of this ObjectsHealthCompareOverviewInfo.
|
83
|
+
:type type: str
|
84
|
+
"""
|
85
|
+
self._type = type
|
86
|
+
|
87
|
+
@property
|
88
|
+
def source_count(self):
|
89
|
+
"""Gets the source_count of this ObjectsHealthCompareOverviewInfo.
|
90
|
+
|
91
|
+
源数量。
|
92
|
+
|
93
|
+
:return: The source_count of this ObjectsHealthCompareOverviewInfo.
|
94
|
+
:rtype: int
|
95
|
+
"""
|
96
|
+
return self._source_count
|
97
|
+
|
98
|
+
@source_count.setter
|
99
|
+
def source_count(self, source_count):
|
100
|
+
"""Sets the source_count of this ObjectsHealthCompareOverviewInfo.
|
101
|
+
|
102
|
+
源数量。
|
103
|
+
|
104
|
+
:param source_count: The source_count of this ObjectsHealthCompareOverviewInfo.
|
105
|
+
:type source_count: int
|
106
|
+
"""
|
107
|
+
self._source_count = source_count
|
108
|
+
|
109
|
+
@property
|
110
|
+
def target_count(self):
|
111
|
+
"""Gets the target_count of this ObjectsHealthCompareOverviewInfo.
|
112
|
+
|
113
|
+
目标数量。
|
114
|
+
|
115
|
+
:return: The target_count of this ObjectsHealthCompareOverviewInfo.
|
116
|
+
:rtype: int
|
117
|
+
"""
|
118
|
+
return self._target_count
|
119
|
+
|
120
|
+
@target_count.setter
|
121
|
+
def target_count(self, target_count):
|
122
|
+
"""Sets the target_count of this ObjectsHealthCompareOverviewInfo.
|
123
|
+
|
124
|
+
目标数量。
|
125
|
+
|
126
|
+
:param target_count: The target_count of this ObjectsHealthCompareOverviewInfo.
|
127
|
+
:type target_count: int
|
128
|
+
"""
|
129
|
+
self._target_count = target_count
|
130
|
+
|
131
|
+
@property
|
132
|
+
def status(self):
|
133
|
+
"""Gets the status of this ObjectsHealthCompareOverviewInfo.
|
134
|
+
|
135
|
+
对比结果: - 0:不一致。 - 2:一致。 - 3:未完成。
|
136
|
+
|
137
|
+
:return: The status of this ObjectsHealthCompareOverviewInfo.
|
138
|
+
:rtype: int
|
139
|
+
"""
|
140
|
+
return self._status
|
141
|
+
|
142
|
+
@status.setter
|
143
|
+
def status(self, status):
|
144
|
+
"""Sets the status of this ObjectsHealthCompareOverviewInfo.
|
145
|
+
|
146
|
+
对比结果: - 0:不一致。 - 2:一致。 - 3:未完成。
|
147
|
+
|
148
|
+
:param status: The status of this ObjectsHealthCompareOverviewInfo.
|
149
|
+
:type status: int
|
150
|
+
"""
|
151
|
+
self._status = status
|
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, ObjectsHealthCompareOverviewInfo):
|
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,342 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class OfflineTaskInfo:
|
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
|
+
'id': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'status': 'str',
|
23
|
+
'engine_type': 'str',
|
24
|
+
'error_log': 'str',
|
25
|
+
'description': 'str',
|
26
|
+
'create_time': 'str',
|
27
|
+
'finish_time': 'str',
|
28
|
+
'enterprise_project_id': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'id': 'id',
|
33
|
+
'name': 'name',
|
34
|
+
'status': 'status',
|
35
|
+
'engine_type': 'engine_type',
|
36
|
+
'error_log': 'error_log',
|
37
|
+
'description': 'description',
|
38
|
+
'create_time': 'create_time',
|
39
|
+
'finish_time': 'finish_time',
|
40
|
+
'enterprise_project_id': 'enterprise_project_id'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, id=None, name=None, status=None, engine_type=None, error_log=None, description=None, create_time=None, finish_time=None, enterprise_project_id=None):
|
44
|
+
"""OfflineTaskInfo
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param id: 任务ID。
|
49
|
+
:type id: str
|
50
|
+
:param name: 任务名称。
|
51
|
+
:type name: str
|
52
|
+
:param status: 任务状态。 - TRANSFERRING:恢复中 - SUCCESS:成功 - FAILED:失败 - PRECHECK FAILED:预检查失败
|
53
|
+
:type status: str
|
54
|
+
:param engine_type: 数据库引擎。 - sqlserver:RDS for SQL Server引擎
|
55
|
+
:type engine_type: str
|
56
|
+
:param error_log: 错误日志。
|
57
|
+
:type error_log: str
|
58
|
+
:param description: 描述。
|
59
|
+
:type description: str
|
60
|
+
:param create_time: 任务创建时间。
|
61
|
+
:type create_time: str
|
62
|
+
:param finish_time: 任务完成时间。
|
63
|
+
:type finish_time: str
|
64
|
+
:param enterprise_project_id: 企业项目。
|
65
|
+
:type enterprise_project_id: str
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._id = None
|
71
|
+
self._name = None
|
72
|
+
self._status = None
|
73
|
+
self._engine_type = None
|
74
|
+
self._error_log = None
|
75
|
+
self._description = None
|
76
|
+
self._create_time = None
|
77
|
+
self._finish_time = None
|
78
|
+
self._enterprise_project_id = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
self.id = id
|
82
|
+
self.name = name
|
83
|
+
self.status = status
|
84
|
+
self.engine_type = engine_type
|
85
|
+
if error_log is not None:
|
86
|
+
self.error_log = error_log
|
87
|
+
if description is not None:
|
88
|
+
self.description = description
|
89
|
+
self.create_time = create_time
|
90
|
+
if finish_time is not None:
|
91
|
+
self.finish_time = finish_time
|
92
|
+
if enterprise_project_id is not None:
|
93
|
+
self.enterprise_project_id = enterprise_project_id
|
94
|
+
|
95
|
+
@property
|
96
|
+
def id(self):
|
97
|
+
"""Gets the id of this OfflineTaskInfo.
|
98
|
+
|
99
|
+
任务ID。
|
100
|
+
|
101
|
+
:return: The id of this OfflineTaskInfo.
|
102
|
+
:rtype: str
|
103
|
+
"""
|
104
|
+
return self._id
|
105
|
+
|
106
|
+
@id.setter
|
107
|
+
def id(self, id):
|
108
|
+
"""Sets the id of this OfflineTaskInfo.
|
109
|
+
|
110
|
+
任务ID。
|
111
|
+
|
112
|
+
:param id: The id of this OfflineTaskInfo.
|
113
|
+
:type id: str
|
114
|
+
"""
|
115
|
+
self._id = id
|
116
|
+
|
117
|
+
@property
|
118
|
+
def name(self):
|
119
|
+
"""Gets the name of this OfflineTaskInfo.
|
120
|
+
|
121
|
+
任务名称。
|
122
|
+
|
123
|
+
:return: The name of this OfflineTaskInfo.
|
124
|
+
:rtype: str
|
125
|
+
"""
|
126
|
+
return self._name
|
127
|
+
|
128
|
+
@name.setter
|
129
|
+
def name(self, name):
|
130
|
+
"""Sets the name of this OfflineTaskInfo.
|
131
|
+
|
132
|
+
任务名称。
|
133
|
+
|
134
|
+
:param name: The name of this OfflineTaskInfo.
|
135
|
+
:type name: str
|
136
|
+
"""
|
137
|
+
self._name = name
|
138
|
+
|
139
|
+
@property
|
140
|
+
def status(self):
|
141
|
+
"""Gets the status of this OfflineTaskInfo.
|
142
|
+
|
143
|
+
任务状态。 - TRANSFERRING:恢复中 - SUCCESS:成功 - FAILED:失败 - PRECHECK FAILED:预检查失败
|
144
|
+
|
145
|
+
:return: The status of this OfflineTaskInfo.
|
146
|
+
:rtype: str
|
147
|
+
"""
|
148
|
+
return self._status
|
149
|
+
|
150
|
+
@status.setter
|
151
|
+
def status(self, status):
|
152
|
+
"""Sets the status of this OfflineTaskInfo.
|
153
|
+
|
154
|
+
任务状态。 - TRANSFERRING:恢复中 - SUCCESS:成功 - FAILED:失败 - PRECHECK FAILED:预检查失败
|
155
|
+
|
156
|
+
:param status: The status of this OfflineTaskInfo.
|
157
|
+
:type status: str
|
158
|
+
"""
|
159
|
+
self._status = status
|
160
|
+
|
161
|
+
@property
|
162
|
+
def engine_type(self):
|
163
|
+
"""Gets the engine_type of this OfflineTaskInfo.
|
164
|
+
|
165
|
+
数据库引擎。 - sqlserver:RDS for SQL Server引擎
|
166
|
+
|
167
|
+
:return: The engine_type of this OfflineTaskInfo.
|
168
|
+
:rtype: str
|
169
|
+
"""
|
170
|
+
return self._engine_type
|
171
|
+
|
172
|
+
@engine_type.setter
|
173
|
+
def engine_type(self, engine_type):
|
174
|
+
"""Sets the engine_type of this OfflineTaskInfo.
|
175
|
+
|
176
|
+
数据库引擎。 - sqlserver:RDS for SQL Server引擎
|
177
|
+
|
178
|
+
:param engine_type: The engine_type of this OfflineTaskInfo.
|
179
|
+
:type engine_type: str
|
180
|
+
"""
|
181
|
+
self._engine_type = engine_type
|
182
|
+
|
183
|
+
@property
|
184
|
+
def error_log(self):
|
185
|
+
"""Gets the error_log of this OfflineTaskInfo.
|
186
|
+
|
187
|
+
错误日志。
|
188
|
+
|
189
|
+
:return: The error_log of this OfflineTaskInfo.
|
190
|
+
:rtype: str
|
191
|
+
"""
|
192
|
+
return self._error_log
|
193
|
+
|
194
|
+
@error_log.setter
|
195
|
+
def error_log(self, error_log):
|
196
|
+
"""Sets the error_log of this OfflineTaskInfo.
|
197
|
+
|
198
|
+
错误日志。
|
199
|
+
|
200
|
+
:param error_log: The error_log of this OfflineTaskInfo.
|
201
|
+
:type error_log: str
|
202
|
+
"""
|
203
|
+
self._error_log = error_log
|
204
|
+
|
205
|
+
@property
|
206
|
+
def description(self):
|
207
|
+
"""Gets the description of this OfflineTaskInfo.
|
208
|
+
|
209
|
+
描述。
|
210
|
+
|
211
|
+
:return: The description of this OfflineTaskInfo.
|
212
|
+
:rtype: str
|
213
|
+
"""
|
214
|
+
return self._description
|
215
|
+
|
216
|
+
@description.setter
|
217
|
+
def description(self, description):
|
218
|
+
"""Sets the description of this OfflineTaskInfo.
|
219
|
+
|
220
|
+
描述。
|
221
|
+
|
222
|
+
:param description: The description of this OfflineTaskInfo.
|
223
|
+
:type description: str
|
224
|
+
"""
|
225
|
+
self._description = description
|
226
|
+
|
227
|
+
@property
|
228
|
+
def create_time(self):
|
229
|
+
"""Gets the create_time of this OfflineTaskInfo.
|
230
|
+
|
231
|
+
任务创建时间。
|
232
|
+
|
233
|
+
:return: The create_time of this OfflineTaskInfo.
|
234
|
+
:rtype: str
|
235
|
+
"""
|
236
|
+
return self._create_time
|
237
|
+
|
238
|
+
@create_time.setter
|
239
|
+
def create_time(self, create_time):
|
240
|
+
"""Sets the create_time of this OfflineTaskInfo.
|
241
|
+
|
242
|
+
任务创建时间。
|
243
|
+
|
244
|
+
:param create_time: The create_time of this OfflineTaskInfo.
|
245
|
+
:type create_time: str
|
246
|
+
"""
|
247
|
+
self._create_time = create_time
|
248
|
+
|
249
|
+
@property
|
250
|
+
def finish_time(self):
|
251
|
+
"""Gets the finish_time of this OfflineTaskInfo.
|
252
|
+
|
253
|
+
任务完成时间。
|
254
|
+
|
255
|
+
:return: The finish_time of this OfflineTaskInfo.
|
256
|
+
:rtype: str
|
257
|
+
"""
|
258
|
+
return self._finish_time
|
259
|
+
|
260
|
+
@finish_time.setter
|
261
|
+
def finish_time(self, finish_time):
|
262
|
+
"""Sets the finish_time of this OfflineTaskInfo.
|
263
|
+
|
264
|
+
任务完成时间。
|
265
|
+
|
266
|
+
:param finish_time: The finish_time of this OfflineTaskInfo.
|
267
|
+
:type finish_time: str
|
268
|
+
"""
|
269
|
+
self._finish_time = finish_time
|
270
|
+
|
271
|
+
@property
|
272
|
+
def enterprise_project_id(self):
|
273
|
+
"""Gets the enterprise_project_id of this OfflineTaskInfo.
|
274
|
+
|
275
|
+
企业项目。
|
276
|
+
|
277
|
+
:return: The enterprise_project_id of this OfflineTaskInfo.
|
278
|
+
:rtype: str
|
279
|
+
"""
|
280
|
+
return self._enterprise_project_id
|
281
|
+
|
282
|
+
@enterprise_project_id.setter
|
283
|
+
def enterprise_project_id(self, enterprise_project_id):
|
284
|
+
"""Sets the enterprise_project_id of this OfflineTaskInfo.
|
285
|
+
|
286
|
+
企业项目。
|
287
|
+
|
288
|
+
:param enterprise_project_id: The enterprise_project_id of this OfflineTaskInfo.
|
289
|
+
:type enterprise_project_id: str
|
290
|
+
"""
|
291
|
+
self._enterprise_project_id = enterprise_project_id
|
292
|
+
|
293
|
+
def to_dict(self):
|
294
|
+
"""Returns the model properties as a dict"""
|
295
|
+
result = {}
|
296
|
+
|
297
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
298
|
+
value = getattr(self, attr)
|
299
|
+
if isinstance(value, list):
|
300
|
+
result[attr] = list(map(
|
301
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
302
|
+
value
|
303
|
+
))
|
304
|
+
elif hasattr(value, "to_dict"):
|
305
|
+
result[attr] = value.to_dict()
|
306
|
+
elif isinstance(value, dict):
|
307
|
+
result[attr] = dict(map(
|
308
|
+
lambda item: (item[0], item[1].to_dict())
|
309
|
+
if hasattr(item[1], "to_dict") else item,
|
310
|
+
value.items()
|
311
|
+
))
|
312
|
+
else:
|
313
|
+
if attr in self.sensitive_list:
|
314
|
+
result[attr] = "****"
|
315
|
+
else:
|
316
|
+
result[attr] = value
|
317
|
+
|
318
|
+
return result
|
319
|
+
|
320
|
+
def to_str(self):
|
321
|
+
"""Returns the string representation of the model"""
|
322
|
+
import simplejson as json
|
323
|
+
if six.PY2:
|
324
|
+
import sys
|
325
|
+
reload(sys)
|
326
|
+
sys.setdefaultencoding("utf-8")
|
327
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
328
|
+
|
329
|
+
def __repr__(self):
|
330
|
+
"""For `print`"""
|
331
|
+
return self.to_str()
|
332
|
+
|
333
|
+
def __eq__(self, other):
|
334
|
+
"""Returns true if both objects are equal"""
|
335
|
+
if not isinstance(other, OfflineTaskInfo):
|
336
|
+
return False
|
337
|
+
|
338
|
+
return self.__dict__ == other.__dict__
|
339
|
+
|
340
|
+
def __ne__(self, other):
|
341
|
+
"""Returns true if both objects are not equal"""
|
342
|
+
return not self == other
|