huaweicloudsdkdrs 3.1.90__py2.py3-none-any.whl → 3.1.91__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkdrs/v3/__init__.py +26 -0
- huaweicloudsdkdrs/v3/drs_async_client.py +589 -1
- huaweicloudsdkdrs/v3/drs_client.py +589 -1
- huaweicloudsdkdrs/v3/model/__init__.py +26 -0
- huaweicloudsdkdrs/v3/model/add_data_transformation_req.py +138 -0
- huaweicloudsdkdrs/v3/model/api_http_null_resp.py +84 -0
- huaweicloudsdkdrs/v3/model/compare_job_info.py +376 -0
- huaweicloudsdkdrs/v3/model/create_data_compare_database_object.py +115 -0
- huaweicloudsdkdrs/v3/model/create_data_compare_transformation_info.py +142 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_req.py +346 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_request.py +168 -0
- huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/data_compare_overview_info.py +173 -0
- huaweicloudsdkdrs/v3/model/delete_compare_job_request.py +171 -0
- huaweicloudsdkdrs/v3/model/delete_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +316 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +229 -0
- huaweicloudsdkdrs/v3/model/list_content_compare_overview_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +374 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_detail_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +258 -0
- huaweicloudsdkdrs/v3/model/list_data_compare_overview_response.py +145 -0
- huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +201 -0
- huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_response.py +145 -0
- huaweicloudsdkdrs/v3/model/node_content_compare_detail_result.py +405 -0
- huaweicloudsdkdrs/v3/model/node_content_compare_overview_result.py +173 -0
- huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_request.py +171 -0
- huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_response.py +116 -0
- huaweicloudsdkdrs/v3/model/table_line_compare_result_info.py +289 -0
- huaweicloudsdkdrs/v5/__init__.py +10 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +154 -0
- huaweicloudsdkdrs/v5/drs_client.py +154 -0
- huaweicloudsdkdrs/v5/model/__init__.py +10 -0
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/compare_task_params.py +32 -3
- huaweicloudsdkdrs/v5/model/data_process_info.py +32 -3
- huaweicloudsdkdrs/v5/model/db_object_filtering_result.py +148 -3
- huaweicloudsdkdrs/v5/model/lists_agency_permissions_request.py +201 -0
- huaweicloudsdkdrs/v5/model/lists_agency_permissions_response.py +145 -0
- huaweicloudsdkdrs/v5/model/replay_error_sql_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/replay_error_sql_template_resp.py +260 -0
- huaweicloudsdkdrs/v5/model/replay_shard_statics_resp.py +226 -0
- huaweicloudsdkdrs/v5/model/replay_slow_sql_resp.py +202 -0
- huaweicloudsdkdrs/v5/model/replay_slow_sql_template_resp.py +373 -0
- huaweicloudsdkdrs/v5/model/replaying_sql_resp.py +318 -0
- huaweicloudsdkdrs/v5/model/show_position_result_response.py +3 -3
- huaweicloudsdkdrs/v5/model/show_replay_results_request.py +374 -0
- huaweicloudsdkdrs/v5/model/show_replay_results_response.py +290 -0
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/RECORD +54 -18
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,9 @@
|
|
3
3
|
from __future__ import absolute_import
|
4
4
|
|
5
5
|
# import models into model package
|
6
|
+
from huaweicloudsdkdrs.v3.model.add_data_transformation_req import AddDataTransformationReq
|
6
7
|
from huaweicloudsdkdrs.v3.model.alarm_notify_info import AlarmNotifyInfo
|
8
|
+
from huaweicloudsdkdrs.v3.model.api_http_null_resp import ApiHttpNullResp
|
7
9
|
from huaweicloudsdkdrs.v3.model.az_info_resp import AzInfoResp
|
8
10
|
from huaweicloudsdkdrs.v3.model.batch_change_data_request import BatchChangeDataRequest
|
9
11
|
from huaweicloudsdkdrs.v3.model.batch_change_data_response import BatchChangeDataResponse
|
@@ -86,6 +88,7 @@ from huaweicloudsdkdrs.v3.model.batch_validate_connections_response import Batch
|
|
86
88
|
from huaweicloudsdkdrs.v3.model.check_data_transformation_req import CheckDataTransformationReq
|
87
89
|
from huaweicloudsdkdrs.v3.model.check_job_resp import CheckJobResp
|
88
90
|
from huaweicloudsdkdrs.v3.model.children_job_info import ChildrenJobInfo
|
91
|
+
from huaweicloudsdkdrs.v3.model.compare_job_info import CompareJobInfo
|
89
92
|
from huaweicloudsdkdrs.v3.model.compare_object_info import CompareObjectInfo
|
90
93
|
from huaweicloudsdkdrs.v3.model.compare_object_info_with_token import CompareObjectInfoWithToken
|
91
94
|
from huaweicloudsdkdrs.v3.model.compare_table_info_with_token import CompareTableInfoWithToken
|
@@ -102,10 +105,16 @@ from huaweicloudsdkdrs.v3.model.create_compare_task_req import CreateCompareTask
|
|
102
105
|
from huaweicloudsdkdrs.v3.model.create_compare_task_request import CreateCompareTaskRequest
|
103
106
|
from huaweicloudsdkdrs.v3.model.create_compare_task_response import CreateCompareTaskResponse
|
104
107
|
from huaweicloudsdkdrs.v3.model.create_compare_task_result import CreateCompareTaskResult
|
108
|
+
from huaweicloudsdkdrs.v3.model.create_data_compare_database_object import CreateDataCompareDatabaseObject
|
109
|
+
from huaweicloudsdkdrs.v3.model.create_data_compare_transformation_info import CreateDataCompareTransformationInfo
|
105
110
|
from huaweicloudsdkdrs.v3.model.create_data_level_compare_req import CreateDataLevelCompareReq
|
111
|
+
from huaweicloudsdkdrs.v3.model.create_data_level_table_compare_job_req import CreateDataLevelTableCompareJobReq
|
112
|
+
from huaweicloudsdkdrs.v3.model.create_data_level_table_compare_job_request import CreateDataLevelTableCompareJobRequest
|
113
|
+
from huaweicloudsdkdrs.v3.model.create_data_level_table_compare_job_response import CreateDataLevelTableCompareJobResponse
|
106
114
|
from huaweicloudsdkdrs.v3.model.create_job_req import CreateJobReq
|
107
115
|
from huaweicloudsdkdrs.v3.model.create_job_resp import CreateJobResp
|
108
116
|
from huaweicloudsdkdrs.v3.model.customized_dns import CustomizedDns
|
117
|
+
from huaweicloudsdkdrs.v3.model.data_compare_overview_info import DataCompareOverviewInfo
|
109
118
|
from huaweicloudsdkdrs.v3.model.data_transformation_info import DataTransformationInfo
|
110
119
|
from huaweicloudsdkdrs.v3.model.data_transformation_object_vo import DataTransformationObjectVO
|
111
120
|
from huaweicloudsdkdrs.v3.model.data_transformation_resp import DataTransformationResp
|
@@ -114,6 +123,8 @@ from huaweicloudsdkdrs.v3.model.database_object_info import DatabaseObjectInfo
|
|
114
123
|
from huaweicloudsdkdrs.v3.model.database_object_resp import DatabaseObjectResp
|
115
124
|
from huaweicloudsdkdrs.v3.model.database_object_vo import DatabaseObjectVO
|
116
125
|
from huaweicloudsdkdrs.v3.model.default_root_db import DefaultRootDb
|
126
|
+
from huaweicloudsdkdrs.v3.model.delete_compare_job_request import DeleteCompareJobRequest
|
127
|
+
from huaweicloudsdkdrs.v3.model.delete_compare_job_response import DeleteCompareJobResponse
|
117
128
|
from huaweicloudsdkdrs.v3.model.delete_job_req import DeleteJobReq
|
118
129
|
from huaweicloudsdkdrs.v3.model.delete_job_resp import DeleteJobResp
|
119
130
|
from huaweicloudsdkdrs.v3.model.endpoint import Endpoint
|
@@ -137,6 +148,16 @@ from huaweicloudsdkdrs.v3.model.list_available_zone_request import ListAvailable
|
|
137
148
|
from huaweicloudsdkdrs.v3.model.list_available_zone_response import ListAvailableZoneResponse
|
138
149
|
from huaweicloudsdkdrs.v3.model.list_compare_result_request import ListCompareResultRequest
|
139
150
|
from huaweicloudsdkdrs.v3.model.list_compare_result_response import ListCompareResultResponse
|
151
|
+
from huaweicloudsdkdrs.v3.model.list_content_compare_detail_request import ListContentCompareDetailRequest
|
152
|
+
from huaweicloudsdkdrs.v3.model.list_content_compare_detail_response import ListContentCompareDetailResponse
|
153
|
+
from huaweicloudsdkdrs.v3.model.list_content_compare_overview_request import ListContentCompareOverviewRequest
|
154
|
+
from huaweicloudsdkdrs.v3.model.list_content_compare_overview_response import ListContentCompareOverviewResponse
|
155
|
+
from huaweicloudsdkdrs.v3.model.list_data_compare_detail_request import ListDataCompareDetailRequest
|
156
|
+
from huaweicloudsdkdrs.v3.model.list_data_compare_detail_response import ListDataCompareDetailResponse
|
157
|
+
from huaweicloudsdkdrs.v3.model.list_data_compare_overview_request import ListDataCompareOverviewRequest
|
158
|
+
from huaweicloudsdkdrs.v3.model.list_data_compare_overview_response import ListDataCompareOverviewResponse
|
159
|
+
from huaweicloudsdkdrs.v3.model.list_data_level_table_compare_jobs_request import ListDataLevelTableCompareJobsRequest
|
160
|
+
from huaweicloudsdkdrs.v3.model.list_data_level_table_compare_jobs_response import ListDataLevelTableCompareJobsResponse
|
140
161
|
from huaweicloudsdkdrs.v3.model.list_users_request import ListUsersRequest
|
141
162
|
from huaweicloudsdkdrs.v3.model.list_users_response import ListUsersResponse
|
142
163
|
from huaweicloudsdkdrs.v3.model.modify_db_pwd_resp import ModifyDbPwdResp
|
@@ -145,6 +166,8 @@ from huaweicloudsdkdrs.v3.model.modify_job_resp import ModifyJobResp
|
|
145
166
|
from huaweicloudsdkdrs.v3.model.modify_pwd_end_point import ModifyPwdEndPoint
|
146
167
|
from huaweicloudsdkdrs.v3.model.modify_target_params_req import ModifyTargetParamsReq
|
147
168
|
from huaweicloudsdkdrs.v3.model.modify_tuning_params_req import ModifyTuningParamsReq
|
169
|
+
from huaweicloudsdkdrs.v3.model.node_content_compare_detail_result import NodeContentCompareDetailResult
|
170
|
+
from huaweicloudsdkdrs.v3.model.node_content_compare_overview_result import NodeContentCompareOverviewResult
|
148
171
|
from huaweicloudsdkdrs.v3.model.object_compare_result import ObjectCompareResult
|
149
172
|
from huaweicloudsdkdrs.v3.model.object_compare_result_details import ObjectCompareResultDetails
|
150
173
|
from huaweicloudsdkdrs.v3.model.object_compare_result_overview import ObjectCompareResultOverview
|
@@ -197,6 +220,8 @@ from huaweicloudsdkdrs.v3.model.show_quotas_response import ShowQuotasResponse
|
|
197
220
|
from huaweicloudsdkdrs.v3.model.speed_limit_info import SpeedLimitInfo
|
198
221
|
from huaweicloudsdkdrs.v3.model.start_info import StartInfo
|
199
222
|
from huaweicloudsdkdrs.v3.model.start_job_resp import StartJobResp
|
223
|
+
from huaweicloudsdkdrs.v3.model.start_promptly_data_level_table_compare_job_request import StartPromptlyDataLevelTableCompareJobRequest
|
224
|
+
from huaweicloudsdkdrs.v3.model.start_promptly_data_level_table_compare_job_response import StartPromptlyDataLevelTableCompareJobResponse
|
200
225
|
from huaweicloudsdkdrs.v3.model.struct_detail_vo import StructDetailVO
|
201
226
|
from huaweicloudsdkdrs.v3.model.struct_process_resp import StructProcessResp
|
202
227
|
from huaweicloudsdkdrs.v3.model.struct_process_vo import StructProcessVO
|
@@ -204,6 +229,7 @@ from huaweicloudsdkdrs.v3.model.subscription_info import SubscriptionInfo
|
|
204
229
|
from huaweicloudsdkdrs.v3.model.switchover_resp import SwitchoverResp
|
205
230
|
from huaweicloudsdkdrs.v3.model.sync_policy_req import SyncPolicyReq
|
206
231
|
from huaweicloudsdkdrs.v3.model.sync_policy_resp import SyncPolicyResp
|
232
|
+
from huaweicloudsdkdrs.v3.model.table_line_compare_result_info import TableLineCompareResultInfo
|
207
233
|
from huaweicloudsdkdrs.v3.model.tag import Tag
|
208
234
|
from huaweicloudsdkdrs.v3.model.test_end_point import TestEndPoint
|
209
235
|
from huaweicloudsdkdrs.v3.model.transformation_info import TransformationInfo
|
@@ -0,0 +1,138 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class AddDataTransformationReq:
|
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
|
+
'object_info': 'list[CreateDataCompareDatabaseObject]',
|
21
|
+
'transformation_info': 'CreateDataCompareTransformationInfo'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'object_info': 'object_info',
|
26
|
+
'transformation_info': 'transformation_info'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, object_info=None, transformation_info=None):
|
30
|
+
"""AddDataTransformationReq
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param object_info: 对象信息。
|
35
|
+
:type object_info: list[:class:`huaweicloudsdkdrs.v3.CreateDataCompareDatabaseObject`]
|
36
|
+
:param transformation_info:
|
37
|
+
:type transformation_info: :class:`huaweicloudsdkdrs.v3.CreateDataCompareTransformationInfo`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._object_info = None
|
43
|
+
self._transformation_info = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.object_info = object_info
|
47
|
+
self.transformation_info = transformation_info
|
48
|
+
|
49
|
+
@property
|
50
|
+
def object_info(self):
|
51
|
+
"""Gets the object_info of this AddDataTransformationReq.
|
52
|
+
|
53
|
+
对象信息。
|
54
|
+
|
55
|
+
:return: The object_info of this AddDataTransformationReq.
|
56
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v3.CreateDataCompareDatabaseObject`]
|
57
|
+
"""
|
58
|
+
return self._object_info
|
59
|
+
|
60
|
+
@object_info.setter
|
61
|
+
def object_info(self, object_info):
|
62
|
+
"""Sets the object_info of this AddDataTransformationReq.
|
63
|
+
|
64
|
+
对象信息。
|
65
|
+
|
66
|
+
:param object_info: The object_info of this AddDataTransformationReq.
|
67
|
+
:type object_info: list[:class:`huaweicloudsdkdrs.v3.CreateDataCompareDatabaseObject`]
|
68
|
+
"""
|
69
|
+
self._object_info = object_info
|
70
|
+
|
71
|
+
@property
|
72
|
+
def transformation_info(self):
|
73
|
+
"""Gets the transformation_info of this AddDataTransformationReq.
|
74
|
+
|
75
|
+
:return: The transformation_info of this AddDataTransformationReq.
|
76
|
+
:rtype: :class:`huaweicloudsdkdrs.v3.CreateDataCompareTransformationInfo`
|
77
|
+
"""
|
78
|
+
return self._transformation_info
|
79
|
+
|
80
|
+
@transformation_info.setter
|
81
|
+
def transformation_info(self, transformation_info):
|
82
|
+
"""Sets the transformation_info of this AddDataTransformationReq.
|
83
|
+
|
84
|
+
:param transformation_info: The transformation_info of this AddDataTransformationReq.
|
85
|
+
:type transformation_info: :class:`huaweicloudsdkdrs.v3.CreateDataCompareTransformationInfo`
|
86
|
+
"""
|
87
|
+
self._transformation_info = transformation_info
|
88
|
+
|
89
|
+
def to_dict(self):
|
90
|
+
"""Returns the model properties as a dict"""
|
91
|
+
result = {}
|
92
|
+
|
93
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
94
|
+
value = getattr(self, attr)
|
95
|
+
if isinstance(value, list):
|
96
|
+
result[attr] = list(map(
|
97
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
98
|
+
value
|
99
|
+
))
|
100
|
+
elif hasattr(value, "to_dict"):
|
101
|
+
result[attr] = value.to_dict()
|
102
|
+
elif isinstance(value, dict):
|
103
|
+
result[attr] = dict(map(
|
104
|
+
lambda item: (item[0], item[1].to_dict())
|
105
|
+
if hasattr(item[1], "to_dict") else item,
|
106
|
+
value.items()
|
107
|
+
))
|
108
|
+
else:
|
109
|
+
if attr in self.sensitive_list:
|
110
|
+
result[attr] = "****"
|
111
|
+
else:
|
112
|
+
result[attr] = value
|
113
|
+
|
114
|
+
return result
|
115
|
+
|
116
|
+
def to_str(self):
|
117
|
+
"""Returns the string representation of the model"""
|
118
|
+
import simplejson as json
|
119
|
+
if six.PY2:
|
120
|
+
import sys
|
121
|
+
reload(sys)
|
122
|
+
sys.setdefaultencoding("utf-8")
|
123
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
124
|
+
|
125
|
+
def __repr__(self):
|
126
|
+
"""For `print`"""
|
127
|
+
return self.to_str()
|
128
|
+
|
129
|
+
def __eq__(self, other):
|
130
|
+
"""Returns true if both objects are equal"""
|
131
|
+
if not isinstance(other, AddDataTransformationReq):
|
132
|
+
return False
|
133
|
+
|
134
|
+
return self.__dict__ == other.__dict__
|
135
|
+
|
136
|
+
def __ne__(self, other):
|
137
|
+
"""Returns true if both objects are not equal"""
|
138
|
+
return not self == other
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ApiHttpNullResp:
|
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
|
+
}
|
21
|
+
|
22
|
+
attribute_map = {
|
23
|
+
}
|
24
|
+
|
25
|
+
def __init__(self):
|
26
|
+
"""ApiHttpNullResp
|
27
|
+
|
28
|
+
The model defined in huaweicloud sdk
|
29
|
+
|
30
|
+
"""
|
31
|
+
|
32
|
+
|
33
|
+
self.discriminator = None
|
34
|
+
|
35
|
+
def to_dict(self):
|
36
|
+
"""Returns the model properties as a dict"""
|
37
|
+
result = {}
|
38
|
+
|
39
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
40
|
+
value = getattr(self, attr)
|
41
|
+
if isinstance(value, list):
|
42
|
+
result[attr] = list(map(
|
43
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
44
|
+
value
|
45
|
+
))
|
46
|
+
elif hasattr(value, "to_dict"):
|
47
|
+
result[attr] = value.to_dict()
|
48
|
+
elif isinstance(value, dict):
|
49
|
+
result[attr] = dict(map(
|
50
|
+
lambda item: (item[0], item[1].to_dict())
|
51
|
+
if hasattr(item[1], "to_dict") else item,
|
52
|
+
value.items()
|
53
|
+
))
|
54
|
+
else:
|
55
|
+
if attr in self.sensitive_list:
|
56
|
+
result[attr] = "****"
|
57
|
+
else:
|
58
|
+
result[attr] = value
|
59
|
+
|
60
|
+
return result
|
61
|
+
|
62
|
+
def to_str(self):
|
63
|
+
"""Returns the string representation of the model"""
|
64
|
+
import simplejson as json
|
65
|
+
if six.PY2:
|
66
|
+
import sys
|
67
|
+
reload(sys)
|
68
|
+
sys.setdefaultencoding("utf-8")
|
69
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
70
|
+
|
71
|
+
def __repr__(self):
|
72
|
+
"""For `print`"""
|
73
|
+
return self.to_str()
|
74
|
+
|
75
|
+
def __eq__(self, other):
|
76
|
+
"""Returns true if both objects are equal"""
|
77
|
+
if not isinstance(other, ApiHttpNullResp):
|
78
|
+
return False
|
79
|
+
|
80
|
+
return self.__dict__ == other.__dict__
|
81
|
+
|
82
|
+
def __ne__(self, other):
|
83
|
+
"""Returns true if both objects are not equal"""
|
84
|
+
return not self == other
|
@@ -0,0 +1,376 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CompareJobInfo:
|
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
|
+
'type': 'str',
|
22
|
+
'options': 'dict(str, str)',
|
23
|
+
'start_time': 'str',
|
24
|
+
'end_time': 'str',
|
25
|
+
'status': 'str',
|
26
|
+
'export_status': 'str',
|
27
|
+
'report_remain_seconds': 'int',
|
28
|
+
'compare_job_tag': 'dict(str, str)',
|
29
|
+
'proportion_value': 'str'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'id': 'id',
|
34
|
+
'type': 'type',
|
35
|
+
'options': 'options',
|
36
|
+
'start_time': 'start_time',
|
37
|
+
'end_time': 'end_time',
|
38
|
+
'status': 'status',
|
39
|
+
'export_status': 'export_status',
|
40
|
+
'report_remain_seconds': 'report_remain_seconds',
|
41
|
+
'compare_job_tag': 'compare_job_tag',
|
42
|
+
'proportion_value': 'proportion_value'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, id=None, type=None, options=None, start_time=None, end_time=None, status=None, export_status=None, report_remain_seconds=None, compare_job_tag=None, proportion_value=None):
|
46
|
+
"""CompareJobInfo
|
47
|
+
|
48
|
+
The model defined in huaweicloud sdk
|
49
|
+
|
50
|
+
:param id: 对比任务ID。
|
51
|
+
:type id: str
|
52
|
+
:param type: 对比类型。 - lines:行数对比 - contents:内容对比 - random:抽样对比,当前仅支持gaussdbv5、gaussdbv5-to-postgresql、gaussdbv5ha-to-postgresql链路。
|
53
|
+
:type type: str
|
54
|
+
:param options: 对比配置项,key-value形式。 内容对比支持以下配置项: - 对比方式配置,key:contentCompareType,value:dynamic表示动态对比,static表示静态对比。 - lob字段对比类型配置,key:lobCompare,value:ignore表示忽略,length表示长度对比。 行数对比支持以下配置项: - 对比策略配置,多表归一情况下适用,key:comparePolicy,value:normal表示正常对比,manyToOne表示多对一对比。
|
55
|
+
:type options: dict(str, str)
|
56
|
+
:param start_time: 开始时间,UTC时间,例如:2020-09-01T18:50:20Z。
|
57
|
+
:type start_time: str
|
58
|
+
:param end_time: 结束时间,UTC时间,例如:2020-09-01T18:50:20Z。
|
59
|
+
:type end_time: str
|
60
|
+
:param status: 对比任务的状态。 - RUNNING-运行中 - WAITING_FOR_RUNNING-等待启动中 - SUCCESSFUL-完成 - FAILED-失败 - CANCELLED-已取消 - TIMEOUT_INTERRUPT-超时中断 - FULL_DOING-全量校验中 - INCRE_DOING-增量校验中
|
61
|
+
:type status: str
|
62
|
+
:param export_status: 导出对比结果状态。 - INIT:初始状态 - EXPORTING:对比结果导出中 - EXPORT_COMPLETE:对比结果导出完成 - EXPORT_COMMON_FAILED:对比结果导出失败
|
63
|
+
:type export_status: str
|
64
|
+
:param report_remain_seconds: 导出比对结果有效期剩余时间。
|
65
|
+
:type report_remain_seconds: int
|
66
|
+
:param compare_job_tag: 对比任务的标签,当前仅涉及对比策略时返回。
|
67
|
+
:type compare_job_tag: dict(str, str)
|
68
|
+
:param proportion_value: 抽样比例,对比类型为抽样对比时填写。
|
69
|
+
:type proportion_value: str
|
70
|
+
"""
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
self._id = None
|
75
|
+
self._type = None
|
76
|
+
self._options = None
|
77
|
+
self._start_time = None
|
78
|
+
self._end_time = None
|
79
|
+
self._status = None
|
80
|
+
self._export_status = None
|
81
|
+
self._report_remain_seconds = None
|
82
|
+
self._compare_job_tag = None
|
83
|
+
self._proportion_value = None
|
84
|
+
self.discriminator = None
|
85
|
+
|
86
|
+
if id is not None:
|
87
|
+
self.id = id
|
88
|
+
if type is not None:
|
89
|
+
self.type = type
|
90
|
+
if options is not None:
|
91
|
+
self.options = options
|
92
|
+
if start_time is not None:
|
93
|
+
self.start_time = start_time
|
94
|
+
if end_time is not None:
|
95
|
+
self.end_time = end_time
|
96
|
+
if status is not None:
|
97
|
+
self.status = status
|
98
|
+
if export_status is not None:
|
99
|
+
self.export_status = export_status
|
100
|
+
if report_remain_seconds is not None:
|
101
|
+
self.report_remain_seconds = report_remain_seconds
|
102
|
+
if compare_job_tag is not None:
|
103
|
+
self.compare_job_tag = compare_job_tag
|
104
|
+
if proportion_value is not None:
|
105
|
+
self.proportion_value = proportion_value
|
106
|
+
|
107
|
+
@property
|
108
|
+
def id(self):
|
109
|
+
"""Gets the id of this CompareJobInfo.
|
110
|
+
|
111
|
+
对比任务ID。
|
112
|
+
|
113
|
+
:return: The id of this CompareJobInfo.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._id
|
117
|
+
|
118
|
+
@id.setter
|
119
|
+
def id(self, id):
|
120
|
+
"""Sets the id of this CompareJobInfo.
|
121
|
+
|
122
|
+
对比任务ID。
|
123
|
+
|
124
|
+
:param id: The id of this CompareJobInfo.
|
125
|
+
:type id: str
|
126
|
+
"""
|
127
|
+
self._id = id
|
128
|
+
|
129
|
+
@property
|
130
|
+
def type(self):
|
131
|
+
"""Gets the type of this CompareJobInfo.
|
132
|
+
|
133
|
+
对比类型。 - lines:行数对比 - contents:内容对比 - random:抽样对比,当前仅支持gaussdbv5、gaussdbv5-to-postgresql、gaussdbv5ha-to-postgresql链路。
|
134
|
+
|
135
|
+
:return: The type of this CompareJobInfo.
|
136
|
+
:rtype: str
|
137
|
+
"""
|
138
|
+
return self._type
|
139
|
+
|
140
|
+
@type.setter
|
141
|
+
def type(self, type):
|
142
|
+
"""Sets the type of this CompareJobInfo.
|
143
|
+
|
144
|
+
对比类型。 - lines:行数对比 - contents:内容对比 - random:抽样对比,当前仅支持gaussdbv5、gaussdbv5-to-postgresql、gaussdbv5ha-to-postgresql链路。
|
145
|
+
|
146
|
+
:param type: The type of this CompareJobInfo.
|
147
|
+
:type type: str
|
148
|
+
"""
|
149
|
+
self._type = type
|
150
|
+
|
151
|
+
@property
|
152
|
+
def options(self):
|
153
|
+
"""Gets the options of this CompareJobInfo.
|
154
|
+
|
155
|
+
对比配置项,key-value形式。 内容对比支持以下配置项: - 对比方式配置,key:contentCompareType,value:dynamic表示动态对比,static表示静态对比。 - lob字段对比类型配置,key:lobCompare,value:ignore表示忽略,length表示长度对比。 行数对比支持以下配置项: - 对比策略配置,多表归一情况下适用,key:comparePolicy,value:normal表示正常对比,manyToOne表示多对一对比。
|
156
|
+
|
157
|
+
:return: The options of this CompareJobInfo.
|
158
|
+
:rtype: dict(str, str)
|
159
|
+
"""
|
160
|
+
return self._options
|
161
|
+
|
162
|
+
@options.setter
|
163
|
+
def options(self, options):
|
164
|
+
"""Sets the options of this CompareJobInfo.
|
165
|
+
|
166
|
+
对比配置项,key-value形式。 内容对比支持以下配置项: - 对比方式配置,key:contentCompareType,value:dynamic表示动态对比,static表示静态对比。 - lob字段对比类型配置,key:lobCompare,value:ignore表示忽略,length表示长度对比。 行数对比支持以下配置项: - 对比策略配置,多表归一情况下适用,key:comparePolicy,value:normal表示正常对比,manyToOne表示多对一对比。
|
167
|
+
|
168
|
+
:param options: The options of this CompareJobInfo.
|
169
|
+
:type options: dict(str, str)
|
170
|
+
"""
|
171
|
+
self._options = options
|
172
|
+
|
173
|
+
@property
|
174
|
+
def start_time(self):
|
175
|
+
"""Gets the start_time of this CompareJobInfo.
|
176
|
+
|
177
|
+
开始时间,UTC时间,例如:2020-09-01T18:50:20Z。
|
178
|
+
|
179
|
+
:return: The start_time of this CompareJobInfo.
|
180
|
+
:rtype: str
|
181
|
+
"""
|
182
|
+
return self._start_time
|
183
|
+
|
184
|
+
@start_time.setter
|
185
|
+
def start_time(self, start_time):
|
186
|
+
"""Sets the start_time of this CompareJobInfo.
|
187
|
+
|
188
|
+
开始时间,UTC时间,例如:2020-09-01T18:50:20Z。
|
189
|
+
|
190
|
+
:param start_time: The start_time of this CompareJobInfo.
|
191
|
+
:type start_time: str
|
192
|
+
"""
|
193
|
+
self._start_time = start_time
|
194
|
+
|
195
|
+
@property
|
196
|
+
def end_time(self):
|
197
|
+
"""Gets the end_time of this CompareJobInfo.
|
198
|
+
|
199
|
+
结束时间,UTC时间,例如:2020-09-01T18:50:20Z。
|
200
|
+
|
201
|
+
:return: The end_time of this CompareJobInfo.
|
202
|
+
:rtype: str
|
203
|
+
"""
|
204
|
+
return self._end_time
|
205
|
+
|
206
|
+
@end_time.setter
|
207
|
+
def end_time(self, end_time):
|
208
|
+
"""Sets the end_time of this CompareJobInfo.
|
209
|
+
|
210
|
+
结束时间,UTC时间,例如:2020-09-01T18:50:20Z。
|
211
|
+
|
212
|
+
:param end_time: The end_time of this CompareJobInfo.
|
213
|
+
:type end_time: str
|
214
|
+
"""
|
215
|
+
self._end_time = end_time
|
216
|
+
|
217
|
+
@property
|
218
|
+
def status(self):
|
219
|
+
"""Gets the status of this CompareJobInfo.
|
220
|
+
|
221
|
+
对比任务的状态。 - RUNNING-运行中 - WAITING_FOR_RUNNING-等待启动中 - SUCCESSFUL-完成 - FAILED-失败 - CANCELLED-已取消 - TIMEOUT_INTERRUPT-超时中断 - FULL_DOING-全量校验中 - INCRE_DOING-增量校验中
|
222
|
+
|
223
|
+
:return: The status of this CompareJobInfo.
|
224
|
+
:rtype: str
|
225
|
+
"""
|
226
|
+
return self._status
|
227
|
+
|
228
|
+
@status.setter
|
229
|
+
def status(self, status):
|
230
|
+
"""Sets the status of this CompareJobInfo.
|
231
|
+
|
232
|
+
对比任务的状态。 - RUNNING-运行中 - WAITING_FOR_RUNNING-等待启动中 - SUCCESSFUL-完成 - FAILED-失败 - CANCELLED-已取消 - TIMEOUT_INTERRUPT-超时中断 - FULL_DOING-全量校验中 - INCRE_DOING-增量校验中
|
233
|
+
|
234
|
+
:param status: The status of this CompareJobInfo.
|
235
|
+
:type status: str
|
236
|
+
"""
|
237
|
+
self._status = status
|
238
|
+
|
239
|
+
@property
|
240
|
+
def export_status(self):
|
241
|
+
"""Gets the export_status of this CompareJobInfo.
|
242
|
+
|
243
|
+
导出对比结果状态。 - INIT:初始状态 - EXPORTING:对比结果导出中 - EXPORT_COMPLETE:对比结果导出完成 - EXPORT_COMMON_FAILED:对比结果导出失败
|
244
|
+
|
245
|
+
:return: The export_status of this CompareJobInfo.
|
246
|
+
:rtype: str
|
247
|
+
"""
|
248
|
+
return self._export_status
|
249
|
+
|
250
|
+
@export_status.setter
|
251
|
+
def export_status(self, export_status):
|
252
|
+
"""Sets the export_status of this CompareJobInfo.
|
253
|
+
|
254
|
+
导出对比结果状态。 - INIT:初始状态 - EXPORTING:对比结果导出中 - EXPORT_COMPLETE:对比结果导出完成 - EXPORT_COMMON_FAILED:对比结果导出失败
|
255
|
+
|
256
|
+
:param export_status: The export_status of this CompareJobInfo.
|
257
|
+
:type export_status: str
|
258
|
+
"""
|
259
|
+
self._export_status = export_status
|
260
|
+
|
261
|
+
@property
|
262
|
+
def report_remain_seconds(self):
|
263
|
+
"""Gets the report_remain_seconds of this CompareJobInfo.
|
264
|
+
|
265
|
+
导出比对结果有效期剩余时间。
|
266
|
+
|
267
|
+
:return: The report_remain_seconds of this CompareJobInfo.
|
268
|
+
:rtype: int
|
269
|
+
"""
|
270
|
+
return self._report_remain_seconds
|
271
|
+
|
272
|
+
@report_remain_seconds.setter
|
273
|
+
def report_remain_seconds(self, report_remain_seconds):
|
274
|
+
"""Sets the report_remain_seconds of this CompareJobInfo.
|
275
|
+
|
276
|
+
导出比对结果有效期剩余时间。
|
277
|
+
|
278
|
+
:param report_remain_seconds: The report_remain_seconds of this CompareJobInfo.
|
279
|
+
:type report_remain_seconds: int
|
280
|
+
"""
|
281
|
+
self._report_remain_seconds = report_remain_seconds
|
282
|
+
|
283
|
+
@property
|
284
|
+
def compare_job_tag(self):
|
285
|
+
"""Gets the compare_job_tag of this CompareJobInfo.
|
286
|
+
|
287
|
+
对比任务的标签,当前仅涉及对比策略时返回。
|
288
|
+
|
289
|
+
:return: The compare_job_tag of this CompareJobInfo.
|
290
|
+
:rtype: dict(str, str)
|
291
|
+
"""
|
292
|
+
return self._compare_job_tag
|
293
|
+
|
294
|
+
@compare_job_tag.setter
|
295
|
+
def compare_job_tag(self, compare_job_tag):
|
296
|
+
"""Sets the compare_job_tag of this CompareJobInfo.
|
297
|
+
|
298
|
+
对比任务的标签,当前仅涉及对比策略时返回。
|
299
|
+
|
300
|
+
:param compare_job_tag: The compare_job_tag of this CompareJobInfo.
|
301
|
+
:type compare_job_tag: dict(str, str)
|
302
|
+
"""
|
303
|
+
self._compare_job_tag = compare_job_tag
|
304
|
+
|
305
|
+
@property
|
306
|
+
def proportion_value(self):
|
307
|
+
"""Gets the proportion_value of this CompareJobInfo.
|
308
|
+
|
309
|
+
抽样比例,对比类型为抽样对比时填写。
|
310
|
+
|
311
|
+
:return: The proportion_value of this CompareJobInfo.
|
312
|
+
:rtype: str
|
313
|
+
"""
|
314
|
+
return self._proportion_value
|
315
|
+
|
316
|
+
@proportion_value.setter
|
317
|
+
def proportion_value(self, proportion_value):
|
318
|
+
"""Sets the proportion_value of this CompareJobInfo.
|
319
|
+
|
320
|
+
抽样比例,对比类型为抽样对比时填写。
|
321
|
+
|
322
|
+
:param proportion_value: The proportion_value of this CompareJobInfo.
|
323
|
+
:type proportion_value: str
|
324
|
+
"""
|
325
|
+
self._proportion_value = proportion_value
|
326
|
+
|
327
|
+
def to_dict(self):
|
328
|
+
"""Returns the model properties as a dict"""
|
329
|
+
result = {}
|
330
|
+
|
331
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
332
|
+
value = getattr(self, attr)
|
333
|
+
if isinstance(value, list):
|
334
|
+
result[attr] = list(map(
|
335
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
336
|
+
value
|
337
|
+
))
|
338
|
+
elif hasattr(value, "to_dict"):
|
339
|
+
result[attr] = value.to_dict()
|
340
|
+
elif isinstance(value, dict):
|
341
|
+
result[attr] = dict(map(
|
342
|
+
lambda item: (item[0], item[1].to_dict())
|
343
|
+
if hasattr(item[1], "to_dict") else item,
|
344
|
+
value.items()
|
345
|
+
))
|
346
|
+
else:
|
347
|
+
if attr in self.sensitive_list:
|
348
|
+
result[attr] = "****"
|
349
|
+
else:
|
350
|
+
result[attr] = value
|
351
|
+
|
352
|
+
return result
|
353
|
+
|
354
|
+
def to_str(self):
|
355
|
+
"""Returns the string representation of the model"""
|
356
|
+
import simplejson as json
|
357
|
+
if six.PY2:
|
358
|
+
import sys
|
359
|
+
reload(sys)
|
360
|
+
sys.setdefaultencoding("utf-8")
|
361
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
362
|
+
|
363
|
+
def __repr__(self):
|
364
|
+
"""For `print`"""
|
365
|
+
return self.to_str()
|
366
|
+
|
367
|
+
def __eq__(self, other):
|
368
|
+
"""Returns true if both objects are equal"""
|
369
|
+
if not isinstance(other, CompareJobInfo):
|
370
|
+
return False
|
371
|
+
|
372
|
+
return self.__dict__ == other.__dict__
|
373
|
+
|
374
|
+
def __ne__(self, other):
|
375
|
+
"""Returns true if both objects are not equal"""
|
376
|
+
return not self == other
|