huaweicloudsdkdrs 3.1.90__py2.py3-none-any.whl → 3.1.92__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.92.dist-info}/METADATA +2 -2
  51. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.92.dist-info}/RECORD +54 -18
  52. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.92.dist-info}/LICENSE +0 -0
  53. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.92.dist-info}/WHEEL +0 -0
  54. {huaweicloudsdkdrs-3.1.90.dist-info → huaweicloudsdkdrs-3.1.92.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,374 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowReplayResultsRequest:
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
+ 'job_id': 'str',
21
+ 'x_language': 'str',
22
+ 'type': 'str',
23
+ 'start_time': 'str',
24
+ 'end_time': 'str',
25
+ 'offset': 'int',
26
+ 'limit': 'int',
27
+ 'sort_key': 'str',
28
+ 'sort_dir': 'str',
29
+ 'target_name': 'str'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'job_id': 'job_id',
34
+ 'x_language': 'X-Language',
35
+ 'type': 'type',
36
+ 'start_time': 'start_time',
37
+ 'end_time': 'end_time',
38
+ 'offset': 'offset',
39
+ 'limit': 'limit',
40
+ 'sort_key': 'sort_key',
41
+ 'sort_dir': 'sort_dir',
42
+ 'target_name': 'target_name'
43
+ }
44
+
45
+ def __init__(self, job_id=None, x_language=None, type=None, start_time=None, end_time=None, offset=None, limit=None, sort_key=None, sort_dir=None, target_name=None):
46
+ """ShowReplayResultsRequest
47
+
48
+ The model defined in huaweicloud sdk
49
+
50
+ :param job_id: 任务ID。
51
+ :type job_id: str
52
+ :param x_language: 请求语言类型。
53
+ :type x_language: str
54
+ :param type: 结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。
55
+ :type type: str
56
+ :param start_time: 查询数据的起始时间,在type为shard_statistics、slow_sql、error_sql时必填
57
+ :type start_time: str
58
+ :param end_time: 查询数据的结束时间,在type为shard_statistics、slow_sql、error_sql时必填
59
+ :type end_time: str
60
+ :param offset: 分页查询数据表当前超始偏移量, 在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
61
+ :type offset: int
62
+ :param limit: 分页查询数据表当前页数据总量,在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
63
+ :type limit: int
64
+ :param sort_key: 返回结果按该关键字排序(slow_sql_template支持count,maxLatency、avgLatency关键字,error_sql_template支持count关键字)
65
+ :type sort_key: str
66
+ :param sort_dir: 排序规则,取值如下: - asc:升序 - desc:降序
67
+ :type sort_dir: str
68
+ :param target_name: 回放数据库名称,用于在一致性回放策略场景,过滤目标库与源库镜像库回放结果。参数非必须,不提供则默认查询所有数据,其取值如下: - target:查询目标库回放结果 - target_mirror:查询源库镜像库回放结果
69
+ :type target_name: str
70
+ """
71
+
72
+
73
+
74
+ self._job_id = None
75
+ self._x_language = None
76
+ self._type = None
77
+ self._start_time = None
78
+ self._end_time = None
79
+ self._offset = None
80
+ self._limit = None
81
+ self._sort_key = None
82
+ self._sort_dir = None
83
+ self._target_name = None
84
+ self.discriminator = None
85
+
86
+ self.job_id = job_id
87
+ if x_language is not None:
88
+ self.x_language = x_language
89
+ self.type = type
90
+ if start_time is not None:
91
+ self.start_time = start_time
92
+ if end_time is not None:
93
+ self.end_time = end_time
94
+ if offset is not None:
95
+ self.offset = offset
96
+ if limit is not None:
97
+ self.limit = limit
98
+ if sort_key is not None:
99
+ self.sort_key = sort_key
100
+ if sort_dir is not None:
101
+ self.sort_dir = sort_dir
102
+ if target_name is not None:
103
+ self.target_name = target_name
104
+
105
+ @property
106
+ def job_id(self):
107
+ """Gets the job_id of this ShowReplayResultsRequest.
108
+
109
+ 任务ID。
110
+
111
+ :return: The job_id of this ShowReplayResultsRequest.
112
+ :rtype: str
113
+ """
114
+ return self._job_id
115
+
116
+ @job_id.setter
117
+ def job_id(self, job_id):
118
+ """Sets the job_id of this ShowReplayResultsRequest.
119
+
120
+ 任务ID。
121
+
122
+ :param job_id: The job_id of this ShowReplayResultsRequest.
123
+ :type job_id: str
124
+ """
125
+ self._job_id = job_id
126
+
127
+ @property
128
+ def x_language(self):
129
+ """Gets the x_language of this ShowReplayResultsRequest.
130
+
131
+ 请求语言类型。
132
+
133
+ :return: The x_language of this ShowReplayResultsRequest.
134
+ :rtype: str
135
+ """
136
+ return self._x_language
137
+
138
+ @x_language.setter
139
+ def x_language(self, x_language):
140
+ """Sets the x_language of this ShowReplayResultsRequest.
141
+
142
+ 请求语言类型。
143
+
144
+ :param x_language: The x_language of this ShowReplayResultsRequest.
145
+ :type x_language: str
146
+ """
147
+ self._x_language = x_language
148
+
149
+ @property
150
+ def type(self):
151
+ """Gets the type of this ShowReplayResultsRequest.
152
+
153
+ 结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。
154
+
155
+ :return: The type of this ShowReplayResultsRequest.
156
+ :rtype: str
157
+ """
158
+ return self._type
159
+
160
+ @type.setter
161
+ def type(self, type):
162
+ """Sets the type of this ShowReplayResultsRequest.
163
+
164
+ 结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。
165
+
166
+ :param type: The type of this ShowReplayResultsRequest.
167
+ :type type: str
168
+ """
169
+ self._type = type
170
+
171
+ @property
172
+ def start_time(self):
173
+ """Gets the start_time of this ShowReplayResultsRequest.
174
+
175
+ 查询数据的起始时间,在type为shard_statistics、slow_sql、error_sql时必填
176
+
177
+ :return: The start_time of this ShowReplayResultsRequest.
178
+ :rtype: str
179
+ """
180
+ return self._start_time
181
+
182
+ @start_time.setter
183
+ def start_time(self, start_time):
184
+ """Sets the start_time of this ShowReplayResultsRequest.
185
+
186
+ 查询数据的起始时间,在type为shard_statistics、slow_sql、error_sql时必填
187
+
188
+ :param start_time: The start_time of this ShowReplayResultsRequest.
189
+ :type start_time: str
190
+ """
191
+ self._start_time = start_time
192
+
193
+ @property
194
+ def end_time(self):
195
+ """Gets the end_time of this ShowReplayResultsRequest.
196
+
197
+ 查询数据的结束时间,在type为shard_statistics、slow_sql、error_sql时必填
198
+
199
+ :return: The end_time of this ShowReplayResultsRequest.
200
+ :rtype: str
201
+ """
202
+ return self._end_time
203
+
204
+ @end_time.setter
205
+ def end_time(self, end_time):
206
+ """Sets the end_time of this ShowReplayResultsRequest.
207
+
208
+ 查询数据的结束时间,在type为shard_statistics、slow_sql、error_sql时必填
209
+
210
+ :param end_time: The end_time of this ShowReplayResultsRequest.
211
+ :type end_time: str
212
+ """
213
+ self._end_time = end_time
214
+
215
+ @property
216
+ def offset(self):
217
+ """Gets the offset of this ShowReplayResultsRequest.
218
+
219
+ 分页查询数据表当前超始偏移量, 在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
220
+
221
+ :return: The offset of this ShowReplayResultsRequest.
222
+ :rtype: int
223
+ """
224
+ return self._offset
225
+
226
+ @offset.setter
227
+ def offset(self, offset):
228
+ """Sets the offset of this ShowReplayResultsRequest.
229
+
230
+ 分页查询数据表当前超始偏移量, 在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
231
+
232
+ :param offset: The offset of this ShowReplayResultsRequest.
233
+ :type offset: int
234
+ """
235
+ self._offset = offset
236
+
237
+ @property
238
+ def limit(self):
239
+ """Gets the limit of this ShowReplayResultsRequest.
240
+
241
+ 分页查询数据表当前页数据总量,在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
242
+
243
+ :return: The limit of this ShowReplayResultsRequest.
244
+ :rtype: int
245
+ """
246
+ return self._limit
247
+
248
+ @limit.setter
249
+ def limit(self, limit):
250
+ """Sets the limit of this ShowReplayResultsRequest.
251
+
252
+ 分页查询数据表当前页数据总量,在type为slow_sql、error_sql、slow_sql_template、error_sql_template必填
253
+
254
+ :param limit: The limit of this ShowReplayResultsRequest.
255
+ :type limit: int
256
+ """
257
+ self._limit = limit
258
+
259
+ @property
260
+ def sort_key(self):
261
+ """Gets the sort_key of this ShowReplayResultsRequest.
262
+
263
+ 返回结果按该关键字排序(slow_sql_template支持count,maxLatency、avgLatency关键字,error_sql_template支持count关键字)
264
+
265
+ :return: The sort_key of this ShowReplayResultsRequest.
266
+ :rtype: str
267
+ """
268
+ return self._sort_key
269
+
270
+ @sort_key.setter
271
+ def sort_key(self, sort_key):
272
+ """Sets the sort_key of this ShowReplayResultsRequest.
273
+
274
+ 返回结果按该关键字排序(slow_sql_template支持count,maxLatency、avgLatency关键字,error_sql_template支持count关键字)
275
+
276
+ :param sort_key: The sort_key of this ShowReplayResultsRequest.
277
+ :type sort_key: str
278
+ """
279
+ self._sort_key = sort_key
280
+
281
+ @property
282
+ def sort_dir(self):
283
+ """Gets the sort_dir of this ShowReplayResultsRequest.
284
+
285
+ 排序规则,取值如下: - asc:升序 - desc:降序
286
+
287
+ :return: The sort_dir of this ShowReplayResultsRequest.
288
+ :rtype: str
289
+ """
290
+ return self._sort_dir
291
+
292
+ @sort_dir.setter
293
+ def sort_dir(self, sort_dir):
294
+ """Sets the sort_dir of this ShowReplayResultsRequest.
295
+
296
+ 排序规则,取值如下: - asc:升序 - desc:降序
297
+
298
+ :param sort_dir: The sort_dir of this ShowReplayResultsRequest.
299
+ :type sort_dir: str
300
+ """
301
+ self._sort_dir = sort_dir
302
+
303
+ @property
304
+ def target_name(self):
305
+ """Gets the target_name of this ShowReplayResultsRequest.
306
+
307
+ 回放数据库名称,用于在一致性回放策略场景,过滤目标库与源库镜像库回放结果。参数非必须,不提供则默认查询所有数据,其取值如下: - target:查询目标库回放结果 - target_mirror:查询源库镜像库回放结果
308
+
309
+ :return: The target_name of this ShowReplayResultsRequest.
310
+ :rtype: str
311
+ """
312
+ return self._target_name
313
+
314
+ @target_name.setter
315
+ def target_name(self, target_name):
316
+ """Sets the target_name of this ShowReplayResultsRequest.
317
+
318
+ 回放数据库名称,用于在一致性回放策略场景,过滤目标库与源库镜像库回放结果。参数非必须,不提供则默认查询所有数据,其取值如下: - target:查询目标库回放结果 - target_mirror:查询源库镜像库回放结果
319
+
320
+ :param target_name: The target_name of this ShowReplayResultsRequest.
321
+ :type target_name: str
322
+ """
323
+ self._target_name = target_name
324
+
325
+ def to_dict(self):
326
+ """Returns the model properties as a dict"""
327
+ result = {}
328
+
329
+ for attr, _ in six.iteritems(self.openapi_types):
330
+ value = getattr(self, attr)
331
+ if isinstance(value, list):
332
+ result[attr] = list(map(
333
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
334
+ value
335
+ ))
336
+ elif hasattr(value, "to_dict"):
337
+ result[attr] = value.to_dict()
338
+ elif isinstance(value, dict):
339
+ result[attr] = dict(map(
340
+ lambda item: (item[0], item[1].to_dict())
341
+ if hasattr(item[1], "to_dict") else item,
342
+ value.items()
343
+ ))
344
+ else:
345
+ if attr in self.sensitive_list:
346
+ result[attr] = "****"
347
+ else:
348
+ result[attr] = value
349
+
350
+ return result
351
+
352
+ def to_str(self):
353
+ """Returns the string representation of the model"""
354
+ import simplejson as json
355
+ if six.PY2:
356
+ import sys
357
+ reload(sys)
358
+ sys.setdefaultencoding("utf-8")
359
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
360
+
361
+ def __repr__(self):
362
+ """For `print`"""
363
+ return self.to_str()
364
+
365
+ def __eq__(self, other):
366
+ """Returns true if both objects are equal"""
367
+ if not isinstance(other, ShowReplayResultsRequest):
368
+ return False
369
+
370
+ return self.__dict__ == other.__dict__
371
+
372
+ def __ne__(self, other):
373
+ """Returns true if both objects are not equal"""
374
+ return not self == other
@@ -0,0 +1,290 @@
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 ShowReplayResultsResponse(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
+ 'shard_statics': 'list[ReplayShardStaticsResp]',
23
+ 'slow_sqls': 'list[ReplaySlowSqlResp]',
24
+ 'slow_sql_templates': 'list[ReplaySlowSqlTemplateResp]',
25
+ 'error_sqls': 'list[ReplayErrorSqlResp]',
26
+ 'error_sql_templates': 'list[ReplayErrorSqlTemplateResp]',
27
+ 'replaying_sqls': 'list[ReplayingSqlResp]'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'total_count': 'total_count',
32
+ 'shard_statics': 'shard_statics',
33
+ 'slow_sqls': 'slow_sqls',
34
+ 'slow_sql_templates': 'slow_sql_templates',
35
+ 'error_sqls': 'error_sqls',
36
+ 'error_sql_templates': 'error_sql_templates',
37
+ 'replaying_sqls': 'replaying_sqls'
38
+ }
39
+
40
+ def __init__(self, total_count=None, shard_statics=None, slow_sqls=None, slow_sql_templates=None, error_sqls=None, error_sql_templates=None, replaying_sqls=None):
41
+ """ShowReplayResultsResponse
42
+
43
+ The model defined in huaweicloud sdk
44
+
45
+ :param total_count: 数据总量
46
+ :type total_count: int
47
+ :param shard_statics: 回放基于时间统计详细信息列表,在type为shard_statistics时返回
48
+ :type shard_statics: list[:class:`huaweicloudsdkdrs.v5.ReplayShardStaticsResp`]
49
+ :param slow_sqls: 慢SQL信息列表,在type为slow_sql时返回
50
+ :type slow_sqls: list[:class:`huaweicloudsdkdrs.v5.ReplaySlowSqlResp`]
51
+ :param slow_sql_templates: 慢SQL统计信息列表,在type为slow_sql_template时返回
52
+ :type slow_sql_templates: list[:class:`huaweicloudsdkdrs.v5.ReplaySlowSqlTemplateResp`]
53
+ :param error_sqls: 异常SQL信息列表,在type为error_sql时返回
54
+ :type error_sqls: list[:class:`huaweicloudsdkdrs.v5.ReplayErrorSqlResp`]
55
+ :param error_sql_templates: 异常SQL统计信息列表,在type为error_sql_template时返回
56
+ :type error_sql_templates: list[:class:`huaweicloudsdkdrs.v5.ReplayErrorSqlTemplateResp`]
57
+ :param replaying_sqls: 正在回放SQL信息列表,在type为replaying_sql时返回
58
+ :type replaying_sqls: list[:class:`huaweicloudsdkdrs.v5.ReplayingSqlResp`]
59
+ """
60
+
61
+ super(ShowReplayResultsResponse, self).__init__()
62
+
63
+ self._total_count = None
64
+ self._shard_statics = None
65
+ self._slow_sqls = None
66
+ self._slow_sql_templates = None
67
+ self._error_sqls = None
68
+ self._error_sql_templates = None
69
+ self._replaying_sqls = None
70
+ self.discriminator = None
71
+
72
+ if total_count is not None:
73
+ self.total_count = total_count
74
+ if shard_statics is not None:
75
+ self.shard_statics = shard_statics
76
+ if slow_sqls is not None:
77
+ self.slow_sqls = slow_sqls
78
+ if slow_sql_templates is not None:
79
+ self.slow_sql_templates = slow_sql_templates
80
+ if error_sqls is not None:
81
+ self.error_sqls = error_sqls
82
+ if error_sql_templates is not None:
83
+ self.error_sql_templates = error_sql_templates
84
+ if replaying_sqls is not None:
85
+ self.replaying_sqls = replaying_sqls
86
+
87
+ @property
88
+ def total_count(self):
89
+ """Gets the total_count of this ShowReplayResultsResponse.
90
+
91
+ 数据总量
92
+
93
+ :return: The total_count of this ShowReplayResultsResponse.
94
+ :rtype: int
95
+ """
96
+ return self._total_count
97
+
98
+ @total_count.setter
99
+ def total_count(self, total_count):
100
+ """Sets the total_count of this ShowReplayResultsResponse.
101
+
102
+ 数据总量
103
+
104
+ :param total_count: The total_count of this ShowReplayResultsResponse.
105
+ :type total_count: int
106
+ """
107
+ self._total_count = total_count
108
+
109
+ @property
110
+ def shard_statics(self):
111
+ """Gets the shard_statics of this ShowReplayResultsResponse.
112
+
113
+ 回放基于时间统计详细信息列表,在type为shard_statistics时返回
114
+
115
+ :return: The shard_statics of this ShowReplayResultsResponse.
116
+ :rtype: list[:class:`huaweicloudsdkdrs.v5.ReplayShardStaticsResp`]
117
+ """
118
+ return self._shard_statics
119
+
120
+ @shard_statics.setter
121
+ def shard_statics(self, shard_statics):
122
+ """Sets the shard_statics of this ShowReplayResultsResponse.
123
+
124
+ 回放基于时间统计详细信息列表,在type为shard_statistics时返回
125
+
126
+ :param shard_statics: The shard_statics of this ShowReplayResultsResponse.
127
+ :type shard_statics: list[:class:`huaweicloudsdkdrs.v5.ReplayShardStaticsResp`]
128
+ """
129
+ self._shard_statics = shard_statics
130
+
131
+ @property
132
+ def slow_sqls(self):
133
+ """Gets the slow_sqls of this ShowReplayResultsResponse.
134
+
135
+ 慢SQL信息列表,在type为slow_sql时返回
136
+
137
+ :return: The slow_sqls of this ShowReplayResultsResponse.
138
+ :rtype: list[:class:`huaweicloudsdkdrs.v5.ReplaySlowSqlResp`]
139
+ """
140
+ return self._slow_sqls
141
+
142
+ @slow_sqls.setter
143
+ def slow_sqls(self, slow_sqls):
144
+ """Sets the slow_sqls of this ShowReplayResultsResponse.
145
+
146
+ 慢SQL信息列表,在type为slow_sql时返回
147
+
148
+ :param slow_sqls: The slow_sqls of this ShowReplayResultsResponse.
149
+ :type slow_sqls: list[:class:`huaweicloudsdkdrs.v5.ReplaySlowSqlResp`]
150
+ """
151
+ self._slow_sqls = slow_sqls
152
+
153
+ @property
154
+ def slow_sql_templates(self):
155
+ """Gets the slow_sql_templates of this ShowReplayResultsResponse.
156
+
157
+ 慢SQL统计信息列表,在type为slow_sql_template时返回
158
+
159
+ :return: The slow_sql_templates of this ShowReplayResultsResponse.
160
+ :rtype: list[:class:`huaweicloudsdkdrs.v5.ReplaySlowSqlTemplateResp`]
161
+ """
162
+ return self._slow_sql_templates
163
+
164
+ @slow_sql_templates.setter
165
+ def slow_sql_templates(self, slow_sql_templates):
166
+ """Sets the slow_sql_templates of this ShowReplayResultsResponse.
167
+
168
+ 慢SQL统计信息列表,在type为slow_sql_template时返回
169
+
170
+ :param slow_sql_templates: The slow_sql_templates of this ShowReplayResultsResponse.
171
+ :type slow_sql_templates: list[:class:`huaweicloudsdkdrs.v5.ReplaySlowSqlTemplateResp`]
172
+ """
173
+ self._slow_sql_templates = slow_sql_templates
174
+
175
+ @property
176
+ def error_sqls(self):
177
+ """Gets the error_sqls of this ShowReplayResultsResponse.
178
+
179
+ 异常SQL信息列表,在type为error_sql时返回
180
+
181
+ :return: The error_sqls of this ShowReplayResultsResponse.
182
+ :rtype: list[:class:`huaweicloudsdkdrs.v5.ReplayErrorSqlResp`]
183
+ """
184
+ return self._error_sqls
185
+
186
+ @error_sqls.setter
187
+ def error_sqls(self, error_sqls):
188
+ """Sets the error_sqls of this ShowReplayResultsResponse.
189
+
190
+ 异常SQL信息列表,在type为error_sql时返回
191
+
192
+ :param error_sqls: The error_sqls of this ShowReplayResultsResponse.
193
+ :type error_sqls: list[:class:`huaweicloudsdkdrs.v5.ReplayErrorSqlResp`]
194
+ """
195
+ self._error_sqls = error_sqls
196
+
197
+ @property
198
+ def error_sql_templates(self):
199
+ """Gets the error_sql_templates of this ShowReplayResultsResponse.
200
+
201
+ 异常SQL统计信息列表,在type为error_sql_template时返回
202
+
203
+ :return: The error_sql_templates of this ShowReplayResultsResponse.
204
+ :rtype: list[:class:`huaweicloudsdkdrs.v5.ReplayErrorSqlTemplateResp`]
205
+ """
206
+ return self._error_sql_templates
207
+
208
+ @error_sql_templates.setter
209
+ def error_sql_templates(self, error_sql_templates):
210
+ """Sets the error_sql_templates of this ShowReplayResultsResponse.
211
+
212
+ 异常SQL统计信息列表,在type为error_sql_template时返回
213
+
214
+ :param error_sql_templates: The error_sql_templates of this ShowReplayResultsResponse.
215
+ :type error_sql_templates: list[:class:`huaweicloudsdkdrs.v5.ReplayErrorSqlTemplateResp`]
216
+ """
217
+ self._error_sql_templates = error_sql_templates
218
+
219
+ @property
220
+ def replaying_sqls(self):
221
+ """Gets the replaying_sqls of this ShowReplayResultsResponse.
222
+
223
+ 正在回放SQL信息列表,在type为replaying_sql时返回
224
+
225
+ :return: The replaying_sqls of this ShowReplayResultsResponse.
226
+ :rtype: list[:class:`huaweicloudsdkdrs.v5.ReplayingSqlResp`]
227
+ """
228
+ return self._replaying_sqls
229
+
230
+ @replaying_sqls.setter
231
+ def replaying_sqls(self, replaying_sqls):
232
+ """Sets the replaying_sqls of this ShowReplayResultsResponse.
233
+
234
+ 正在回放SQL信息列表,在type为replaying_sql时返回
235
+
236
+ :param replaying_sqls: The replaying_sqls of this ShowReplayResultsResponse.
237
+ :type replaying_sqls: list[:class:`huaweicloudsdkdrs.v5.ReplayingSqlResp`]
238
+ """
239
+ self._replaying_sqls = replaying_sqls
240
+
241
+ def to_dict(self):
242
+ """Returns the model properties as a dict"""
243
+ result = {}
244
+
245
+ for attr, _ in six.iteritems(self.openapi_types):
246
+ value = getattr(self, attr)
247
+ if isinstance(value, list):
248
+ result[attr] = list(map(
249
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
250
+ value
251
+ ))
252
+ elif hasattr(value, "to_dict"):
253
+ result[attr] = value.to_dict()
254
+ elif isinstance(value, dict):
255
+ result[attr] = dict(map(
256
+ lambda item: (item[0], item[1].to_dict())
257
+ if hasattr(item[1], "to_dict") else item,
258
+ value.items()
259
+ ))
260
+ else:
261
+ if attr in self.sensitive_list:
262
+ result[attr] = "****"
263
+ else:
264
+ result[attr] = value
265
+
266
+ return result
267
+
268
+ def to_str(self):
269
+ """Returns the string representation of the model"""
270
+ import simplejson as json
271
+ if six.PY2:
272
+ import sys
273
+ reload(sys)
274
+ sys.setdefaultencoding("utf-8")
275
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
276
+
277
+ def __repr__(self):
278
+ """For `print`"""
279
+ return self.to_str()
280
+
281
+ def __eq__(self, other):
282
+ """Returns true if both objects are equal"""
283
+ if not isinstance(other, ShowReplayResultsResponse):
284
+ return False
285
+
286
+ return self.__dict__ == other.__dict__
287
+
288
+ def __ne__(self, other):
289
+ """Returns true if both objects are not equal"""
290
+ return not self == other
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkdrs
3
- Version: 3.1.90
3
+ Version: 3.1.92
4
4
  Summary: DRS
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore >=3.1.90
25
+ Requires-Dist: huaweicloudsdkcore >=3.1.92
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).