huaweicloudsdkdrs 3.1.135__py2.py3-none-any.whl → 3.1.136__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/model/download_compare_result_file_request.py +3 -3
- huaweicloudsdkdrs/v3/model/export_compare_result_req.py +3 -3
- huaweicloudsdkdrs/v3/region/drs_region.py +3 -0
- huaweicloudsdkdrs/v5/__init__.py +14 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +71 -0
- huaweicloudsdkdrs/v5/drs_client.py +71 -0
- huaweicloudsdkdrs/v5/model/__init__.py +14 -0
- huaweicloudsdkdrs/v5/model/action_params.py +28 -3
- huaweicloudsdkdrs/v5/model/action_params_repair_info.py +144 -0
- huaweicloudsdkdrs/v5/model/action_params_repair_info_objects.py +173 -0
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/data_process_info.py +35 -6
- huaweicloudsdkdrs/v5/model/job_detail_resp.py +111 -3
- huaweicloudsdkdrs/v5/model/job_detail_resp_repair_progress_info.py +227 -0
- huaweicloudsdkdrs/v5/model/job_detail_resp_repair_progress_info_repair_progress_details.py +434 -0
- huaweicloudsdkdrs/v5/model/query_diagnosis_result.py +463 -0
- huaweicloudsdkdrs/v5/model/query_diagnosis_result_diagnosis_results.py +256 -0
- huaweicloudsdkdrs/v5/model/query_diagnosis_result_item.py +173 -0
- huaweicloudsdkdrs/v5/model/query_diagnosis_result_result_list.py +231 -0
- huaweicloudsdkdrs/v5/model/query_diagnosis_result_suggestion_list.py +115 -0
- huaweicloudsdkdrs/v5/model/query_repair_detail_resp.py +144 -0
- huaweicloudsdkdrs/v5/model/query_repair_detail_resp_repair_details.py +202 -0
- huaweicloudsdkdrs/v5/model/show_job_detail_request.py +3 -3
- huaweicloudsdkdrs/v5/model/show_timeline_request.py +200 -0
- huaweicloudsdkdrs/v5/model/show_timeline_response.py +145 -0
- huaweicloudsdkdrs/v5/model/timeline_info.py +202 -0
- huaweicloudsdkdrs/v5/region/drs_region.py +3 -0
- {huaweicloudsdkdrs-3.1.135.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.135.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/RECORD +32 -18
- {huaweicloudsdkdrs-3.1.135.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.135.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.135.dist-info → huaweicloudsdkdrs-3.1.136.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,434 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class JobDetailRespRepairProgressInfoRepairProgressDetails:
|
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
|
+
'query_id': 'str',
|
21
|
+
'db_name': 'str',
|
22
|
+
'schema_name': 'str',
|
23
|
+
'table_name': 'str',
|
24
|
+
'total_row_count': 'int',
|
25
|
+
'complete_row_count': 'int',
|
26
|
+
'filter_row_count': 'int',
|
27
|
+
'repaired_row_count': 'int',
|
28
|
+
'failed_row_count': 'int',
|
29
|
+
'repair_status': 'int',
|
30
|
+
'start_time': 'str',
|
31
|
+
'update_time': 'str'
|
32
|
+
}
|
33
|
+
|
34
|
+
attribute_map = {
|
35
|
+
'query_id': 'query_id',
|
36
|
+
'db_name': 'db_name',
|
37
|
+
'schema_name': 'schema_name',
|
38
|
+
'table_name': 'table_name',
|
39
|
+
'total_row_count': 'total_row_count',
|
40
|
+
'complete_row_count': 'complete_row_count',
|
41
|
+
'filter_row_count': 'filter_row_count',
|
42
|
+
'repaired_row_count': 'repaired_row_count',
|
43
|
+
'failed_row_count': 'failed_row_count',
|
44
|
+
'repair_status': 'repair_status',
|
45
|
+
'start_time': 'start_time',
|
46
|
+
'update_time': 'update_time'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, query_id=None, db_name=None, schema_name=None, table_name=None, total_row_count=None, complete_row_count=None, filter_row_count=None, repaired_row_count=None, failed_row_count=None, repair_status=None, start_time=None, update_time=None):
|
50
|
+
"""JobDetailRespRepairProgressInfoRepairProgressDetails
|
51
|
+
|
52
|
+
The model defined in huaweicloud sdk
|
53
|
+
|
54
|
+
:param query_id: 对比任务ID。
|
55
|
+
:type query_id: str
|
56
|
+
:param db_name: 库名。
|
57
|
+
:type db_name: str
|
58
|
+
:param schema_name: schema名。
|
59
|
+
:type schema_name: str
|
60
|
+
:param table_name: 表名。
|
61
|
+
:type table_name: str
|
62
|
+
:param total_row_count: 总行数。
|
63
|
+
:type total_row_count: int
|
64
|
+
:param complete_row_count: 完成行数。
|
65
|
+
:type complete_row_count: int
|
66
|
+
:param filter_row_count: 过滤行数。
|
67
|
+
:type filter_row_count: int
|
68
|
+
:param repaired_row_count: 已修复行数。
|
69
|
+
:type repaired_row_count: int
|
70
|
+
:param failed_row_count: 失败行数。
|
71
|
+
:type failed_row_count: int
|
72
|
+
:param repair_status: 修复状态。
|
73
|
+
:type repair_status: int
|
74
|
+
:param start_time: 开始时间。
|
75
|
+
:type start_time: str
|
76
|
+
:param update_time: 更新时间。
|
77
|
+
:type update_time: str
|
78
|
+
"""
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
self._query_id = None
|
83
|
+
self._db_name = None
|
84
|
+
self._schema_name = None
|
85
|
+
self._table_name = None
|
86
|
+
self._total_row_count = None
|
87
|
+
self._complete_row_count = None
|
88
|
+
self._filter_row_count = None
|
89
|
+
self._repaired_row_count = None
|
90
|
+
self._failed_row_count = None
|
91
|
+
self._repair_status = None
|
92
|
+
self._start_time = None
|
93
|
+
self._update_time = None
|
94
|
+
self.discriminator = None
|
95
|
+
|
96
|
+
if query_id is not None:
|
97
|
+
self.query_id = query_id
|
98
|
+
if db_name is not None:
|
99
|
+
self.db_name = db_name
|
100
|
+
if schema_name is not None:
|
101
|
+
self.schema_name = schema_name
|
102
|
+
if table_name is not None:
|
103
|
+
self.table_name = table_name
|
104
|
+
if total_row_count is not None:
|
105
|
+
self.total_row_count = total_row_count
|
106
|
+
if complete_row_count is not None:
|
107
|
+
self.complete_row_count = complete_row_count
|
108
|
+
if filter_row_count is not None:
|
109
|
+
self.filter_row_count = filter_row_count
|
110
|
+
if repaired_row_count is not None:
|
111
|
+
self.repaired_row_count = repaired_row_count
|
112
|
+
if failed_row_count is not None:
|
113
|
+
self.failed_row_count = failed_row_count
|
114
|
+
if repair_status is not None:
|
115
|
+
self.repair_status = repair_status
|
116
|
+
if start_time is not None:
|
117
|
+
self.start_time = start_time
|
118
|
+
if update_time is not None:
|
119
|
+
self.update_time = update_time
|
120
|
+
|
121
|
+
@property
|
122
|
+
def query_id(self):
|
123
|
+
"""Gets the query_id of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
124
|
+
|
125
|
+
对比任务ID。
|
126
|
+
|
127
|
+
:return: The query_id of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
128
|
+
:rtype: str
|
129
|
+
"""
|
130
|
+
return self._query_id
|
131
|
+
|
132
|
+
@query_id.setter
|
133
|
+
def query_id(self, query_id):
|
134
|
+
"""Sets the query_id of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
135
|
+
|
136
|
+
对比任务ID。
|
137
|
+
|
138
|
+
:param query_id: The query_id of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
139
|
+
:type query_id: str
|
140
|
+
"""
|
141
|
+
self._query_id = query_id
|
142
|
+
|
143
|
+
@property
|
144
|
+
def db_name(self):
|
145
|
+
"""Gets the db_name of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
146
|
+
|
147
|
+
库名。
|
148
|
+
|
149
|
+
:return: The db_name of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
150
|
+
:rtype: str
|
151
|
+
"""
|
152
|
+
return self._db_name
|
153
|
+
|
154
|
+
@db_name.setter
|
155
|
+
def db_name(self, db_name):
|
156
|
+
"""Sets the db_name of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
157
|
+
|
158
|
+
库名。
|
159
|
+
|
160
|
+
:param db_name: The db_name of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
161
|
+
:type db_name: str
|
162
|
+
"""
|
163
|
+
self._db_name = db_name
|
164
|
+
|
165
|
+
@property
|
166
|
+
def schema_name(self):
|
167
|
+
"""Gets the schema_name of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
168
|
+
|
169
|
+
schema名。
|
170
|
+
|
171
|
+
:return: The schema_name of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
172
|
+
:rtype: str
|
173
|
+
"""
|
174
|
+
return self._schema_name
|
175
|
+
|
176
|
+
@schema_name.setter
|
177
|
+
def schema_name(self, schema_name):
|
178
|
+
"""Sets the schema_name of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
179
|
+
|
180
|
+
schema名。
|
181
|
+
|
182
|
+
:param schema_name: The schema_name of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
183
|
+
:type schema_name: str
|
184
|
+
"""
|
185
|
+
self._schema_name = schema_name
|
186
|
+
|
187
|
+
@property
|
188
|
+
def table_name(self):
|
189
|
+
"""Gets the table_name of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
190
|
+
|
191
|
+
表名。
|
192
|
+
|
193
|
+
:return: The table_name of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
194
|
+
:rtype: str
|
195
|
+
"""
|
196
|
+
return self._table_name
|
197
|
+
|
198
|
+
@table_name.setter
|
199
|
+
def table_name(self, table_name):
|
200
|
+
"""Sets the table_name of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
201
|
+
|
202
|
+
表名。
|
203
|
+
|
204
|
+
:param table_name: The table_name of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
205
|
+
:type table_name: str
|
206
|
+
"""
|
207
|
+
self._table_name = table_name
|
208
|
+
|
209
|
+
@property
|
210
|
+
def total_row_count(self):
|
211
|
+
"""Gets the total_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
212
|
+
|
213
|
+
总行数。
|
214
|
+
|
215
|
+
:return: The total_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
216
|
+
:rtype: int
|
217
|
+
"""
|
218
|
+
return self._total_row_count
|
219
|
+
|
220
|
+
@total_row_count.setter
|
221
|
+
def total_row_count(self, total_row_count):
|
222
|
+
"""Sets the total_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
223
|
+
|
224
|
+
总行数。
|
225
|
+
|
226
|
+
:param total_row_count: The total_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
227
|
+
:type total_row_count: int
|
228
|
+
"""
|
229
|
+
self._total_row_count = total_row_count
|
230
|
+
|
231
|
+
@property
|
232
|
+
def complete_row_count(self):
|
233
|
+
"""Gets the complete_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
234
|
+
|
235
|
+
完成行数。
|
236
|
+
|
237
|
+
:return: The complete_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
238
|
+
:rtype: int
|
239
|
+
"""
|
240
|
+
return self._complete_row_count
|
241
|
+
|
242
|
+
@complete_row_count.setter
|
243
|
+
def complete_row_count(self, complete_row_count):
|
244
|
+
"""Sets the complete_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
245
|
+
|
246
|
+
完成行数。
|
247
|
+
|
248
|
+
:param complete_row_count: The complete_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
249
|
+
:type complete_row_count: int
|
250
|
+
"""
|
251
|
+
self._complete_row_count = complete_row_count
|
252
|
+
|
253
|
+
@property
|
254
|
+
def filter_row_count(self):
|
255
|
+
"""Gets the filter_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
256
|
+
|
257
|
+
过滤行数。
|
258
|
+
|
259
|
+
:return: The filter_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
260
|
+
:rtype: int
|
261
|
+
"""
|
262
|
+
return self._filter_row_count
|
263
|
+
|
264
|
+
@filter_row_count.setter
|
265
|
+
def filter_row_count(self, filter_row_count):
|
266
|
+
"""Sets the filter_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
267
|
+
|
268
|
+
过滤行数。
|
269
|
+
|
270
|
+
:param filter_row_count: The filter_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
271
|
+
:type filter_row_count: int
|
272
|
+
"""
|
273
|
+
self._filter_row_count = filter_row_count
|
274
|
+
|
275
|
+
@property
|
276
|
+
def repaired_row_count(self):
|
277
|
+
"""Gets the repaired_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
278
|
+
|
279
|
+
已修复行数。
|
280
|
+
|
281
|
+
:return: The repaired_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
282
|
+
:rtype: int
|
283
|
+
"""
|
284
|
+
return self._repaired_row_count
|
285
|
+
|
286
|
+
@repaired_row_count.setter
|
287
|
+
def repaired_row_count(self, repaired_row_count):
|
288
|
+
"""Sets the repaired_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
289
|
+
|
290
|
+
已修复行数。
|
291
|
+
|
292
|
+
:param repaired_row_count: The repaired_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
293
|
+
:type repaired_row_count: int
|
294
|
+
"""
|
295
|
+
self._repaired_row_count = repaired_row_count
|
296
|
+
|
297
|
+
@property
|
298
|
+
def failed_row_count(self):
|
299
|
+
"""Gets the failed_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
300
|
+
|
301
|
+
失败行数。
|
302
|
+
|
303
|
+
:return: The failed_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
304
|
+
:rtype: int
|
305
|
+
"""
|
306
|
+
return self._failed_row_count
|
307
|
+
|
308
|
+
@failed_row_count.setter
|
309
|
+
def failed_row_count(self, failed_row_count):
|
310
|
+
"""Sets the failed_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
311
|
+
|
312
|
+
失败行数。
|
313
|
+
|
314
|
+
:param failed_row_count: The failed_row_count of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
315
|
+
:type failed_row_count: int
|
316
|
+
"""
|
317
|
+
self._failed_row_count = failed_row_count
|
318
|
+
|
319
|
+
@property
|
320
|
+
def repair_status(self):
|
321
|
+
"""Gets the repair_status of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
322
|
+
|
323
|
+
修复状态。
|
324
|
+
|
325
|
+
:return: The repair_status of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
326
|
+
:rtype: int
|
327
|
+
"""
|
328
|
+
return self._repair_status
|
329
|
+
|
330
|
+
@repair_status.setter
|
331
|
+
def repair_status(self, repair_status):
|
332
|
+
"""Sets the repair_status of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
333
|
+
|
334
|
+
修复状态。
|
335
|
+
|
336
|
+
:param repair_status: The repair_status of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
337
|
+
:type repair_status: int
|
338
|
+
"""
|
339
|
+
self._repair_status = repair_status
|
340
|
+
|
341
|
+
@property
|
342
|
+
def start_time(self):
|
343
|
+
"""Gets the start_time of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
344
|
+
|
345
|
+
开始时间。
|
346
|
+
|
347
|
+
:return: The start_time of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
348
|
+
:rtype: str
|
349
|
+
"""
|
350
|
+
return self._start_time
|
351
|
+
|
352
|
+
@start_time.setter
|
353
|
+
def start_time(self, start_time):
|
354
|
+
"""Sets the start_time of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
355
|
+
|
356
|
+
开始时间。
|
357
|
+
|
358
|
+
:param start_time: The start_time of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
359
|
+
:type start_time: str
|
360
|
+
"""
|
361
|
+
self._start_time = start_time
|
362
|
+
|
363
|
+
@property
|
364
|
+
def update_time(self):
|
365
|
+
"""Gets the update_time of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
366
|
+
|
367
|
+
更新时间。
|
368
|
+
|
369
|
+
:return: The update_time of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
370
|
+
:rtype: str
|
371
|
+
"""
|
372
|
+
return self._update_time
|
373
|
+
|
374
|
+
@update_time.setter
|
375
|
+
def update_time(self, update_time):
|
376
|
+
"""Sets the update_time of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
377
|
+
|
378
|
+
更新时间。
|
379
|
+
|
380
|
+
:param update_time: The update_time of this JobDetailRespRepairProgressInfoRepairProgressDetails.
|
381
|
+
:type update_time: str
|
382
|
+
"""
|
383
|
+
self._update_time = update_time
|
384
|
+
|
385
|
+
def to_dict(self):
|
386
|
+
"""Returns the model properties as a dict"""
|
387
|
+
result = {}
|
388
|
+
|
389
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
390
|
+
value = getattr(self, attr)
|
391
|
+
if isinstance(value, list):
|
392
|
+
result[attr] = list(map(
|
393
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
394
|
+
value
|
395
|
+
))
|
396
|
+
elif hasattr(value, "to_dict"):
|
397
|
+
result[attr] = value.to_dict()
|
398
|
+
elif isinstance(value, dict):
|
399
|
+
result[attr] = dict(map(
|
400
|
+
lambda item: (item[0], item[1].to_dict())
|
401
|
+
if hasattr(item[1], "to_dict") else item,
|
402
|
+
value.items()
|
403
|
+
))
|
404
|
+
else:
|
405
|
+
if attr in self.sensitive_list:
|
406
|
+
result[attr] = "****"
|
407
|
+
else:
|
408
|
+
result[attr] = value
|
409
|
+
|
410
|
+
return result
|
411
|
+
|
412
|
+
def to_str(self):
|
413
|
+
"""Returns the string representation of the model"""
|
414
|
+
import simplejson as json
|
415
|
+
if six.PY2:
|
416
|
+
import sys
|
417
|
+
reload(sys)
|
418
|
+
sys.setdefaultencoding("utf-8")
|
419
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
420
|
+
|
421
|
+
def __repr__(self):
|
422
|
+
"""For `print`"""
|
423
|
+
return self.to_str()
|
424
|
+
|
425
|
+
def __eq__(self, other):
|
426
|
+
"""Returns true if both objects are equal"""
|
427
|
+
if not isinstance(other, JobDetailRespRepairProgressInfoRepairProgressDetails):
|
428
|
+
return False
|
429
|
+
|
430
|
+
return self.__dict__ == other.__dict__
|
431
|
+
|
432
|
+
def __ne__(self, other):
|
433
|
+
"""Returns true if both objects are not equal"""
|
434
|
+
return not self == other
|