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.
Files changed (54) hide show
  1. huaweicloudsdkdrs/v3/__init__.py +26 -0
  2. huaweicloudsdkdrs/v3/drs_async_client.py +589 -1
  3. huaweicloudsdkdrs/v3/drs_client.py +589 -1
  4. huaweicloudsdkdrs/v3/model/__init__.py +26 -0
  5. huaweicloudsdkdrs/v3/model/add_data_transformation_req.py +138 -0
  6. huaweicloudsdkdrs/v3/model/api_http_null_resp.py +84 -0
  7. huaweicloudsdkdrs/v3/model/compare_job_info.py +376 -0
  8. huaweicloudsdkdrs/v3/model/create_data_compare_database_object.py +115 -0
  9. huaweicloudsdkdrs/v3/model/create_data_compare_transformation_info.py +142 -0
  10. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_req.py +346 -0
  11. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_request.py +168 -0
  12. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_response.py +116 -0
  13. huaweicloudsdkdrs/v3/model/data_compare_overview_info.py +173 -0
  14. huaweicloudsdkdrs/v3/model/delete_compare_job_request.py +171 -0
  15. huaweicloudsdkdrs/v3/model/delete_compare_job_response.py +116 -0
  16. huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +316 -0
  17. huaweicloudsdkdrs/v3/model/list_content_compare_detail_response.py +145 -0
  18. huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +229 -0
  19. huaweicloudsdkdrs/v3/model/list_content_compare_overview_response.py +145 -0
  20. huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +374 -0
  21. huaweicloudsdkdrs/v3/model/list_data_compare_detail_response.py +145 -0
  22. huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +258 -0
  23. huaweicloudsdkdrs/v3/model/list_data_compare_overview_response.py +145 -0
  24. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +201 -0
  25. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_response.py +145 -0
  26. huaweicloudsdkdrs/v3/model/node_content_compare_detail_result.py +405 -0
  27. huaweicloudsdkdrs/v3/model/node_content_compare_overview_result.py +173 -0
  28. huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_request.py +171 -0
  29. huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_response.py +116 -0
  30. huaweicloudsdkdrs/v3/model/table_line_compare_result_info.py +289 -0
  31. huaweicloudsdkdrs/v5/__init__.py +10 -0
  32. huaweicloudsdkdrs/v5/drs_async_client.py +154 -0
  33. huaweicloudsdkdrs/v5/drs_client.py +154 -0
  34. huaweicloudsdkdrs/v5/model/__init__.py +10 -0
  35. huaweicloudsdkdrs/v5/model/action_req.py +3 -3
  36. huaweicloudsdkdrs/v5/model/compare_task_params.py +32 -3
  37. huaweicloudsdkdrs/v5/model/data_process_info.py +32 -3
  38. huaweicloudsdkdrs/v5/model/db_object_filtering_result.py +148 -3
  39. huaweicloudsdkdrs/v5/model/lists_agency_permissions_request.py +201 -0
  40. huaweicloudsdkdrs/v5/model/lists_agency_permissions_response.py +145 -0
  41. huaweicloudsdkdrs/v5/model/replay_error_sql_resp.py +173 -0
  42. huaweicloudsdkdrs/v5/model/replay_error_sql_template_resp.py +260 -0
  43. huaweicloudsdkdrs/v5/model/replay_shard_statics_resp.py +226 -0
  44. huaweicloudsdkdrs/v5/model/replay_slow_sql_resp.py +202 -0
  45. huaweicloudsdkdrs/v5/model/replay_slow_sql_template_resp.py +373 -0
  46. huaweicloudsdkdrs/v5/model/replaying_sql_resp.py +318 -0
  47. huaweicloudsdkdrs/v5/model/show_position_result_response.py +3 -3
  48. huaweicloudsdkdrs/v5/model/show_replay_results_request.py +374 -0
  49. huaweicloudsdkdrs/v5/model/show_replay_results_response.py +290 -0
  50. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/METADATA +2 -2
  51. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/RECORD +54 -18
  52. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/LICENSE +0 -0
  53. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/WHEEL +0 -0
  54. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,226 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ReplayShardStaticsResp:
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
+ 'time': 'str',
21
+ 'total': 'int',
22
+ 'finish': 'int',
23
+ 'abnormal': 'int',
24
+ 'slow': 'int'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'time': 'time',
29
+ 'total': 'total',
30
+ 'finish': 'finish',
31
+ 'abnormal': 'abnormal',
32
+ 'slow': 'slow'
33
+ }
34
+
35
+ def __init__(self, time=None, total=None, finish=None, abnormal=None, slow=None):
36
+ """ReplayShardStaticsResp
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param time: 回放时间点
41
+ :type time: str
42
+ :param total: SQL总量
43
+ :type total: int
44
+ :param finish: SQL执行量
45
+ :type finish: int
46
+ :param abnormal: SQL异常量
47
+ :type abnormal: int
48
+ :param slow: 慢SQL数量
49
+ :type slow: int
50
+ """
51
+
52
+
53
+
54
+ self._time = None
55
+ self._total = None
56
+ self._finish = None
57
+ self._abnormal = None
58
+ self._slow = None
59
+ self.discriminator = None
60
+
61
+ self.time = time
62
+ self.total = total
63
+ self.finish = finish
64
+ self.abnormal = abnormal
65
+ self.slow = slow
66
+
67
+ @property
68
+ def time(self):
69
+ """Gets the time of this ReplayShardStaticsResp.
70
+
71
+ 回放时间点
72
+
73
+ :return: The time of this ReplayShardStaticsResp.
74
+ :rtype: str
75
+ """
76
+ return self._time
77
+
78
+ @time.setter
79
+ def time(self, time):
80
+ """Sets the time of this ReplayShardStaticsResp.
81
+
82
+ 回放时间点
83
+
84
+ :param time: The time of this ReplayShardStaticsResp.
85
+ :type time: str
86
+ """
87
+ self._time = time
88
+
89
+ @property
90
+ def total(self):
91
+ """Gets the total of this ReplayShardStaticsResp.
92
+
93
+ SQL总量
94
+
95
+ :return: The total of this ReplayShardStaticsResp.
96
+ :rtype: int
97
+ """
98
+ return self._total
99
+
100
+ @total.setter
101
+ def total(self, total):
102
+ """Sets the total of this ReplayShardStaticsResp.
103
+
104
+ SQL总量
105
+
106
+ :param total: The total of this ReplayShardStaticsResp.
107
+ :type total: int
108
+ """
109
+ self._total = total
110
+
111
+ @property
112
+ def finish(self):
113
+ """Gets the finish of this ReplayShardStaticsResp.
114
+
115
+ SQL执行量
116
+
117
+ :return: The finish of this ReplayShardStaticsResp.
118
+ :rtype: int
119
+ """
120
+ return self._finish
121
+
122
+ @finish.setter
123
+ def finish(self, finish):
124
+ """Sets the finish of this ReplayShardStaticsResp.
125
+
126
+ SQL执行量
127
+
128
+ :param finish: The finish of this ReplayShardStaticsResp.
129
+ :type finish: int
130
+ """
131
+ self._finish = finish
132
+
133
+ @property
134
+ def abnormal(self):
135
+ """Gets the abnormal of this ReplayShardStaticsResp.
136
+
137
+ SQL异常量
138
+
139
+ :return: The abnormal of this ReplayShardStaticsResp.
140
+ :rtype: int
141
+ """
142
+ return self._abnormal
143
+
144
+ @abnormal.setter
145
+ def abnormal(self, abnormal):
146
+ """Sets the abnormal of this ReplayShardStaticsResp.
147
+
148
+ SQL异常量
149
+
150
+ :param abnormal: The abnormal of this ReplayShardStaticsResp.
151
+ :type abnormal: int
152
+ """
153
+ self._abnormal = abnormal
154
+
155
+ @property
156
+ def slow(self):
157
+ """Gets the slow of this ReplayShardStaticsResp.
158
+
159
+ 慢SQL数量
160
+
161
+ :return: The slow of this ReplayShardStaticsResp.
162
+ :rtype: int
163
+ """
164
+ return self._slow
165
+
166
+ @slow.setter
167
+ def slow(self, slow):
168
+ """Sets the slow of this ReplayShardStaticsResp.
169
+
170
+ 慢SQL数量
171
+
172
+ :param slow: The slow of this ReplayShardStaticsResp.
173
+ :type slow: int
174
+ """
175
+ self._slow = slow
176
+
177
+ def to_dict(self):
178
+ """Returns the model properties as a dict"""
179
+ result = {}
180
+
181
+ for attr, _ in six.iteritems(self.openapi_types):
182
+ value = getattr(self, attr)
183
+ if isinstance(value, list):
184
+ result[attr] = list(map(
185
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
186
+ value
187
+ ))
188
+ elif hasattr(value, "to_dict"):
189
+ result[attr] = value.to_dict()
190
+ elif isinstance(value, dict):
191
+ result[attr] = dict(map(
192
+ lambda item: (item[0], item[1].to_dict())
193
+ if hasattr(item[1], "to_dict") else item,
194
+ value.items()
195
+ ))
196
+ else:
197
+ if attr in self.sensitive_list:
198
+ result[attr] = "****"
199
+ else:
200
+ result[attr] = value
201
+
202
+ return result
203
+
204
+ def to_str(self):
205
+ """Returns the string representation of the model"""
206
+ import simplejson as json
207
+ if six.PY2:
208
+ import sys
209
+ reload(sys)
210
+ sys.setdefaultencoding("utf-8")
211
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
212
+
213
+ def __repr__(self):
214
+ """For `print`"""
215
+ return self.to_str()
216
+
217
+ def __eq__(self, other):
218
+ """Returns true if both objects are equal"""
219
+ if not isinstance(other, ReplayShardStaticsResp):
220
+ return False
221
+
222
+ return self.__dict__ == other.__dict__
223
+
224
+ def __ne__(self, other):
225
+ """Returns true if both objects are not equal"""
226
+ 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 ReplaySlowSqlResp:
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_type': 'str',
21
+ 'slow_sql': 'str',
22
+ 'old_time': 'str',
23
+ 'replay_time': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'object_type': 'object_type',
28
+ 'slow_sql': 'slow_sql',
29
+ 'old_time': 'old_time',
30
+ 'replay_time': 'replay_time'
31
+ }
32
+
33
+ def __init__(self, object_type=None, slow_sql=None, old_time=None, replay_time=None):
34
+ """ReplaySlowSqlResp
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param object_type: SQL语句类型
39
+ :type object_type: str
40
+ :param slow_sql: SQL语句
41
+ :type slow_sql: str
42
+ :param old_time: 源库执行耗时
43
+ :type old_time: str
44
+ :param replay_time: 目标库回放执行耗时
45
+ :type replay_time: str
46
+ """
47
+
48
+
49
+
50
+ self._object_type = None
51
+ self._slow_sql = None
52
+ self._old_time = None
53
+ self._replay_time = None
54
+ self.discriminator = None
55
+
56
+ if object_type is not None:
57
+ self.object_type = object_type
58
+ if slow_sql is not None:
59
+ self.slow_sql = slow_sql
60
+ if old_time is not None:
61
+ self.old_time = old_time
62
+ if replay_time is not None:
63
+ self.replay_time = replay_time
64
+
65
+ @property
66
+ def object_type(self):
67
+ """Gets the object_type of this ReplaySlowSqlResp.
68
+
69
+ SQL语句类型
70
+
71
+ :return: The object_type of this ReplaySlowSqlResp.
72
+ :rtype: str
73
+ """
74
+ return self._object_type
75
+
76
+ @object_type.setter
77
+ def object_type(self, object_type):
78
+ """Sets the object_type of this ReplaySlowSqlResp.
79
+
80
+ SQL语句类型
81
+
82
+ :param object_type: The object_type of this ReplaySlowSqlResp.
83
+ :type object_type: str
84
+ """
85
+ self._object_type = object_type
86
+
87
+ @property
88
+ def slow_sql(self):
89
+ """Gets the slow_sql of this ReplaySlowSqlResp.
90
+
91
+ SQL语句
92
+
93
+ :return: The slow_sql of this ReplaySlowSqlResp.
94
+ :rtype: str
95
+ """
96
+ return self._slow_sql
97
+
98
+ @slow_sql.setter
99
+ def slow_sql(self, slow_sql):
100
+ """Sets the slow_sql of this ReplaySlowSqlResp.
101
+
102
+ SQL语句
103
+
104
+ :param slow_sql: The slow_sql of this ReplaySlowSqlResp.
105
+ :type slow_sql: str
106
+ """
107
+ self._slow_sql = slow_sql
108
+
109
+ @property
110
+ def old_time(self):
111
+ """Gets the old_time of this ReplaySlowSqlResp.
112
+
113
+ 源库执行耗时
114
+
115
+ :return: The old_time of this ReplaySlowSqlResp.
116
+ :rtype: str
117
+ """
118
+ return self._old_time
119
+
120
+ @old_time.setter
121
+ def old_time(self, old_time):
122
+ """Sets the old_time of this ReplaySlowSqlResp.
123
+
124
+ 源库执行耗时
125
+
126
+ :param old_time: The old_time of this ReplaySlowSqlResp.
127
+ :type old_time: str
128
+ """
129
+ self._old_time = old_time
130
+
131
+ @property
132
+ def replay_time(self):
133
+ """Gets the replay_time of this ReplaySlowSqlResp.
134
+
135
+ 目标库回放执行耗时
136
+
137
+ :return: The replay_time of this ReplaySlowSqlResp.
138
+ :rtype: str
139
+ """
140
+ return self._replay_time
141
+
142
+ @replay_time.setter
143
+ def replay_time(self, replay_time):
144
+ """Sets the replay_time of this ReplaySlowSqlResp.
145
+
146
+ 目标库回放执行耗时
147
+
148
+ :param replay_time: The replay_time of this ReplaySlowSqlResp.
149
+ :type replay_time: str
150
+ """
151
+ self._replay_time = replay_time
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, ReplaySlowSqlResp):
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