huaweicloudsdkdrs 3.1.89__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.89.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/METADATA +2 -2
  51. {huaweicloudsdkdrs-3.1.89.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/RECORD +54 -18
  52. {huaweicloudsdkdrs-3.1.89.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/LICENSE +0 -0
  53. {huaweicloudsdkdrs-3.1.89.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/WHEEL +0 -0
  54. {huaweicloudsdkdrs-3.1.89.dist-info → huaweicloudsdkdrs-3.1.91.dist-info}/top_level.txt +0 -0
@@ -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 DeleteCompareJobResponse(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
+ 'body': 'object'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ """DeleteCompareJobResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body: 空响应体。
34
+ :type body: object
35
+ """
36
+
37
+ super(DeleteCompareJobResponse, self).__init__()
38
+
39
+ self._body = None
40
+ self.discriminator = None
41
+
42
+ if body is not None:
43
+ self.body = body
44
+
45
+ @property
46
+ def body(self):
47
+ """Gets the body of this DeleteCompareJobResponse.
48
+
49
+ 空响应体。
50
+
51
+ :return: The body of this DeleteCompareJobResponse.
52
+ :rtype: object
53
+ """
54
+ return self._body
55
+
56
+ @body.setter
57
+ def body(self, body):
58
+ """Sets the body of this DeleteCompareJobResponse.
59
+
60
+ 空响应体。
61
+
62
+ :param body: The body of this DeleteCompareJobResponse.
63
+ :type body: object
64
+ """
65
+ self._body = body
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, DeleteCompareJobResponse):
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
@@ -0,0 +1,316 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListContentCompareDetailRequest:
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
+ 'compare_job_id': 'str',
23
+ 'target_db_name': 'str',
24
+ 'db_name': 'str',
25
+ 'type': 'str',
26
+ 'limit': 'int',
27
+ 'offset': 'int'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'x_language': 'X-Language',
32
+ 'job_id': 'job_id',
33
+ 'compare_job_id': 'compare_job_id',
34
+ 'target_db_name': 'target_db_name',
35
+ 'db_name': 'db_name',
36
+ 'type': 'type',
37
+ 'limit': 'limit',
38
+ 'offset': 'offset'
39
+ }
40
+
41
+ def __init__(self, x_language=None, job_id=None, compare_job_id=None, target_db_name=None, db_name=None, type=None, limit=None, offset=None):
42
+ """ListContentCompareDetailRequest
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param x_language: 请求语言类型。
47
+ :type x_language: str
48
+ :param job_id: 任务ID。
49
+ :type job_id: str
50
+ :param compare_job_id: 对比任务ID。
51
+ :type compare_job_id: str
52
+ :param target_db_name: 目标库名称。
53
+ :type target_db_name: str
54
+ :param db_name: 源库名称。
55
+ :type db_name: str
56
+ :param type: 类型。 compare:对比 unCompare:无法对比
57
+ :type type: str
58
+ :param limit: 每页显示的条目数量。
59
+ :type limit: int
60
+ :param offset: 偏移量,表示从此偏移量开始查询, offset大于等于0。
61
+ :type offset: int
62
+ """
63
+
64
+
65
+
66
+ self._x_language = None
67
+ self._job_id = None
68
+ self._compare_job_id = None
69
+ self._target_db_name = None
70
+ self._db_name = None
71
+ self._type = None
72
+ self._limit = None
73
+ self._offset = None
74
+ self.discriminator = None
75
+
76
+ if x_language is not None:
77
+ self.x_language = x_language
78
+ self.job_id = job_id
79
+ self.compare_job_id = compare_job_id
80
+ if target_db_name is not None:
81
+ self.target_db_name = target_db_name
82
+ if db_name is not None:
83
+ self.db_name = db_name
84
+ if type is not None:
85
+ self.type = type
86
+ if limit is not None:
87
+ self.limit = limit
88
+ if offset is not None:
89
+ self.offset = offset
90
+
91
+ @property
92
+ def x_language(self):
93
+ """Gets the x_language of this ListContentCompareDetailRequest.
94
+
95
+ 请求语言类型。
96
+
97
+ :return: The x_language of this ListContentCompareDetailRequest.
98
+ :rtype: str
99
+ """
100
+ return self._x_language
101
+
102
+ @x_language.setter
103
+ def x_language(self, x_language):
104
+ """Sets the x_language of this ListContentCompareDetailRequest.
105
+
106
+ 请求语言类型。
107
+
108
+ :param x_language: The x_language of this ListContentCompareDetailRequest.
109
+ :type x_language: str
110
+ """
111
+ self._x_language = x_language
112
+
113
+ @property
114
+ def job_id(self):
115
+ """Gets the job_id of this ListContentCompareDetailRequest.
116
+
117
+ 任务ID。
118
+
119
+ :return: The job_id of this ListContentCompareDetailRequest.
120
+ :rtype: str
121
+ """
122
+ return self._job_id
123
+
124
+ @job_id.setter
125
+ def job_id(self, job_id):
126
+ """Sets the job_id of this ListContentCompareDetailRequest.
127
+
128
+ 任务ID。
129
+
130
+ :param job_id: The job_id of this ListContentCompareDetailRequest.
131
+ :type job_id: str
132
+ """
133
+ self._job_id = job_id
134
+
135
+ @property
136
+ def compare_job_id(self):
137
+ """Gets the compare_job_id of this ListContentCompareDetailRequest.
138
+
139
+ 对比任务ID。
140
+
141
+ :return: The compare_job_id of this ListContentCompareDetailRequest.
142
+ :rtype: str
143
+ """
144
+ return self._compare_job_id
145
+
146
+ @compare_job_id.setter
147
+ def compare_job_id(self, compare_job_id):
148
+ """Sets the compare_job_id of this ListContentCompareDetailRequest.
149
+
150
+ 对比任务ID。
151
+
152
+ :param compare_job_id: The compare_job_id of this ListContentCompareDetailRequest.
153
+ :type compare_job_id: str
154
+ """
155
+ self._compare_job_id = compare_job_id
156
+
157
+ @property
158
+ def target_db_name(self):
159
+ """Gets the target_db_name of this ListContentCompareDetailRequest.
160
+
161
+ 目标库名称。
162
+
163
+ :return: The target_db_name of this ListContentCompareDetailRequest.
164
+ :rtype: str
165
+ """
166
+ return self._target_db_name
167
+
168
+ @target_db_name.setter
169
+ def target_db_name(self, target_db_name):
170
+ """Sets the target_db_name of this ListContentCompareDetailRequest.
171
+
172
+ 目标库名称。
173
+
174
+ :param target_db_name: The target_db_name of this ListContentCompareDetailRequest.
175
+ :type target_db_name: str
176
+ """
177
+ self._target_db_name = target_db_name
178
+
179
+ @property
180
+ def db_name(self):
181
+ """Gets the db_name of this ListContentCompareDetailRequest.
182
+
183
+ 源库名称。
184
+
185
+ :return: The db_name of this ListContentCompareDetailRequest.
186
+ :rtype: str
187
+ """
188
+ return self._db_name
189
+
190
+ @db_name.setter
191
+ def db_name(self, db_name):
192
+ """Sets the db_name of this ListContentCompareDetailRequest.
193
+
194
+ 源库名称。
195
+
196
+ :param db_name: The db_name of this ListContentCompareDetailRequest.
197
+ :type db_name: str
198
+ """
199
+ self._db_name = db_name
200
+
201
+ @property
202
+ def type(self):
203
+ """Gets the type of this ListContentCompareDetailRequest.
204
+
205
+ 类型。 compare:对比 unCompare:无法对比
206
+
207
+ :return: The type of this ListContentCompareDetailRequest.
208
+ :rtype: str
209
+ """
210
+ return self._type
211
+
212
+ @type.setter
213
+ def type(self, type):
214
+ """Sets the type of this ListContentCompareDetailRequest.
215
+
216
+ 类型。 compare:对比 unCompare:无法对比
217
+
218
+ :param type: The type of this ListContentCompareDetailRequest.
219
+ :type type: str
220
+ """
221
+ self._type = type
222
+
223
+ @property
224
+ def limit(self):
225
+ """Gets the limit of this ListContentCompareDetailRequest.
226
+
227
+ 每页显示的条目数量。
228
+
229
+ :return: The limit of this ListContentCompareDetailRequest.
230
+ :rtype: int
231
+ """
232
+ return self._limit
233
+
234
+ @limit.setter
235
+ def limit(self, limit):
236
+ """Sets the limit of this ListContentCompareDetailRequest.
237
+
238
+ 每页显示的条目数量。
239
+
240
+ :param limit: The limit of this ListContentCompareDetailRequest.
241
+ :type limit: int
242
+ """
243
+ self._limit = limit
244
+
245
+ @property
246
+ def offset(self):
247
+ """Gets the offset of this ListContentCompareDetailRequest.
248
+
249
+ 偏移量,表示从此偏移量开始查询, offset大于等于0。
250
+
251
+ :return: The offset of this ListContentCompareDetailRequest.
252
+ :rtype: int
253
+ """
254
+ return self._offset
255
+
256
+ @offset.setter
257
+ def offset(self, offset):
258
+ """Sets the offset of this ListContentCompareDetailRequest.
259
+
260
+ 偏移量,表示从此偏移量开始查询, offset大于等于0。
261
+
262
+ :param offset: The offset of this ListContentCompareDetailRequest.
263
+ :type offset: int
264
+ """
265
+ self._offset = offset
266
+
267
+ def to_dict(self):
268
+ """Returns the model properties as a dict"""
269
+ result = {}
270
+
271
+ for attr, _ in six.iteritems(self.openapi_types):
272
+ value = getattr(self, attr)
273
+ if isinstance(value, list):
274
+ result[attr] = list(map(
275
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
276
+ value
277
+ ))
278
+ elif hasattr(value, "to_dict"):
279
+ result[attr] = value.to_dict()
280
+ elif isinstance(value, dict):
281
+ result[attr] = dict(map(
282
+ lambda item: (item[0], item[1].to_dict())
283
+ if hasattr(item[1], "to_dict") else item,
284
+ value.items()
285
+ ))
286
+ else:
287
+ if attr in self.sensitive_list:
288
+ result[attr] = "****"
289
+ else:
290
+ result[attr] = value
291
+
292
+ return result
293
+
294
+ def to_str(self):
295
+ """Returns the string representation of the model"""
296
+ import simplejson as json
297
+ if six.PY2:
298
+ import sys
299
+ reload(sys)
300
+ sys.setdefaultencoding("utf-8")
301
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
302
+
303
+ def __repr__(self):
304
+ """For `print`"""
305
+ return self.to_str()
306
+
307
+ def __eq__(self, other):
308
+ """Returns true if both objects are equal"""
309
+ if not isinstance(other, ListContentCompareDetailRequest):
310
+ return False
311
+
312
+ return self.__dict__ == other.__dict__
313
+
314
+ def __ne__(self, other):
315
+ """Returns true if both objects are not equal"""
316
+ return not self == other
@@ -0,0 +1,145 @@
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 ListContentCompareDetailResponse(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
+ 'total_count': 'int',
22
+ 'content_compare_result_infos': 'list[NodeContentCompareDetailResult]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'total_count': 'total_count',
27
+ 'content_compare_result_infos': 'content_compare_result_infos'
28
+ }
29
+
30
+ def __init__(self, total_count=None, content_compare_result_infos=None):
31
+ """ListContentCompareDetailResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param total_count: 对比数量
36
+ :type total_count: int
37
+ :param content_compare_result_infos: 对比信息列表
38
+ :type content_compare_result_infos: list[:class:`huaweicloudsdkdrs.v3.NodeContentCompareDetailResult`]
39
+ """
40
+
41
+ super(ListContentCompareDetailResponse, self).__init__()
42
+
43
+ self._total_count = None
44
+ self._content_compare_result_infos = None
45
+ self.discriminator = None
46
+
47
+ if total_count is not None:
48
+ self.total_count = total_count
49
+ if content_compare_result_infos is not None:
50
+ self.content_compare_result_infos = content_compare_result_infos
51
+
52
+ @property
53
+ def total_count(self):
54
+ """Gets the total_count of this ListContentCompareDetailResponse.
55
+
56
+ 对比数量
57
+
58
+ :return: The total_count of this ListContentCompareDetailResponse.
59
+ :rtype: int
60
+ """
61
+ return self._total_count
62
+
63
+ @total_count.setter
64
+ def total_count(self, total_count):
65
+ """Sets the total_count of this ListContentCompareDetailResponse.
66
+
67
+ 对比数量
68
+
69
+ :param total_count: The total_count of this ListContentCompareDetailResponse.
70
+ :type total_count: int
71
+ """
72
+ self._total_count = total_count
73
+
74
+ @property
75
+ def content_compare_result_infos(self):
76
+ """Gets the content_compare_result_infos of this ListContentCompareDetailResponse.
77
+
78
+ 对比信息列表
79
+
80
+ :return: The content_compare_result_infos of this ListContentCompareDetailResponse.
81
+ :rtype: list[:class:`huaweicloudsdkdrs.v3.NodeContentCompareDetailResult`]
82
+ """
83
+ return self._content_compare_result_infos
84
+
85
+ @content_compare_result_infos.setter
86
+ def content_compare_result_infos(self, content_compare_result_infos):
87
+ """Sets the content_compare_result_infos of this ListContentCompareDetailResponse.
88
+
89
+ 对比信息列表
90
+
91
+ :param content_compare_result_infos: The content_compare_result_infos of this ListContentCompareDetailResponse.
92
+ :type content_compare_result_infos: list[:class:`huaweicloudsdkdrs.v3.NodeContentCompareDetailResult`]
93
+ """
94
+ self._content_compare_result_infos = content_compare_result_infos
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ListContentCompareDetailResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other