huaweicloudsdkdrs 3.1.135__py2.py3-none-any.whl → 3.1.137__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.137.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.135.dist-info → huaweicloudsdkdrs-3.1.137.dist-info}/RECORD +32 -18
- {huaweicloudsdkdrs-3.1.135.dist-info → huaweicloudsdkdrs-3.1.137.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.135.dist-info → huaweicloudsdkdrs-3.1.137.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.135.dist-info → huaweicloudsdkdrs-3.1.137.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ActionParamsRepairInfoObjects:
|
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
|
+
'database': 'str',
|
21
|
+
'schema': 'str',
|
22
|
+
'table': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'database': 'database',
|
27
|
+
'schema': 'schema',
|
28
|
+
'table': 'table'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, database=None, schema=None, table=None):
|
32
|
+
"""ActionParamsRepairInfoObjects
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param database: 数据库名称。
|
37
|
+
:type database: str
|
38
|
+
:param schema: schema名称。
|
39
|
+
:type schema: str
|
40
|
+
:param table: 表名称。
|
41
|
+
:type table: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._database = None
|
47
|
+
self._schema = None
|
48
|
+
self._table = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if database is not None:
|
52
|
+
self.database = database
|
53
|
+
if schema is not None:
|
54
|
+
self.schema = schema
|
55
|
+
if table is not None:
|
56
|
+
self.table = table
|
57
|
+
|
58
|
+
@property
|
59
|
+
def database(self):
|
60
|
+
"""Gets the database of this ActionParamsRepairInfoObjects.
|
61
|
+
|
62
|
+
数据库名称。
|
63
|
+
|
64
|
+
:return: The database of this ActionParamsRepairInfoObjects.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._database
|
68
|
+
|
69
|
+
@database.setter
|
70
|
+
def database(self, database):
|
71
|
+
"""Sets the database of this ActionParamsRepairInfoObjects.
|
72
|
+
|
73
|
+
数据库名称。
|
74
|
+
|
75
|
+
:param database: The database of this ActionParamsRepairInfoObjects.
|
76
|
+
:type database: str
|
77
|
+
"""
|
78
|
+
self._database = database
|
79
|
+
|
80
|
+
@property
|
81
|
+
def schema(self):
|
82
|
+
"""Gets the schema of this ActionParamsRepairInfoObjects.
|
83
|
+
|
84
|
+
schema名称。
|
85
|
+
|
86
|
+
:return: The schema of this ActionParamsRepairInfoObjects.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._schema
|
90
|
+
|
91
|
+
@schema.setter
|
92
|
+
def schema(self, schema):
|
93
|
+
"""Sets the schema of this ActionParamsRepairInfoObjects.
|
94
|
+
|
95
|
+
schema名称。
|
96
|
+
|
97
|
+
:param schema: The schema of this ActionParamsRepairInfoObjects.
|
98
|
+
:type schema: str
|
99
|
+
"""
|
100
|
+
self._schema = schema
|
101
|
+
|
102
|
+
@property
|
103
|
+
def table(self):
|
104
|
+
"""Gets the table of this ActionParamsRepairInfoObjects.
|
105
|
+
|
106
|
+
表名称。
|
107
|
+
|
108
|
+
:return: The table of this ActionParamsRepairInfoObjects.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._table
|
112
|
+
|
113
|
+
@table.setter
|
114
|
+
def table(self, table):
|
115
|
+
"""Sets the table of this ActionParamsRepairInfoObjects.
|
116
|
+
|
117
|
+
表名称。
|
118
|
+
|
119
|
+
:param table: The table of this ActionParamsRepairInfoObjects.
|
120
|
+
:type table: str
|
121
|
+
"""
|
122
|
+
self._table = table
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, ActionParamsRepairInfoObjects):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -35,7 +35,7 @@ class ActionReq:
|
|
35
35
|
|
36
36
|
:param job_id: 任务ID (对比任务相关操作,多任务场景传父任务详情返回的master_job_id),批量操作时必填
|
37
37
|
:type job_id: str
|
38
|
-
:param action_name: 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务,需要先调用预检查接口并且预检查通过率为100%。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。 - set_writable:目标库解除只读。 - cloud_connection:录制回放他云连通性测试。 - set_readonly: 灾备任务目标库设置只读。
|
38
|
+
:param action_name: 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务,需要先调用预检查接口并且预检查通过率为100%。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。 - set_writable:目标库解除只读。 - cloud_connection:录制回放他云连通性测试。 - set_readonly: 灾备任务目标库设置只读。 - diagnosis:一键诊断。 - start_repair:开始数据修复。 - stop_repair:停止数据修复。
|
39
39
|
:type action_name: str
|
40
40
|
:param action_params:
|
41
41
|
:type action_params: :class:`huaweicloudsdkdrs.v5.ActionParams`
|
@@ -80,7 +80,7 @@ class ActionReq:
|
|
80
80
|
def action_name(self):
|
81
81
|
"""Gets the action_name of this ActionReq.
|
82
82
|
|
83
|
-
操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务,需要先调用预检查接口并且预检查通过率为100%。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。 - set_writable:目标库解除只读。 - cloud_connection:录制回放他云连通性测试。 - set_readonly: 灾备任务目标库设置只读。
|
83
|
+
操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务,需要先调用预检查接口并且预检查通过率为100%。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。 - set_writable:目标库解除只读。 - cloud_connection:录制回放他云连通性测试。 - set_readonly: 灾备任务目标库设置只读。 - diagnosis:一键诊断。 - start_repair:开始数据修复。 - stop_repair:停止数据修复。
|
84
84
|
|
85
85
|
:return: The action_name of this ActionReq.
|
86
86
|
:rtype: str
|
@@ -91,7 +91,7 @@ class ActionReq:
|
|
91
91
|
def action_name(self, action_name):
|
92
92
|
"""Sets the action_name of this ActionReq.
|
93
93
|
|
94
|
-
操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务,需要先调用预检查接口并且预检查通过率为100%。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。 - set_writable:目标库解除只读。 - cloud_connection:录制回放他云连通性测试。 - set_readonly: 灾备任务目标库设置只读。
|
94
|
+
操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务,需要先调用预检查接口并且预检查通过率为100%。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。 - set_writable:目标库解除只读。 - cloud_connection:录制回放他云连通性测试。 - set_readonly: 灾备任务目标库设置只读。 - diagnosis:一键诊断。 - start_repair:开始数据修复。 - stop_repair:停止数据修复。
|
95
95
|
|
96
96
|
:param action_name: The action_name of this ActionReq.
|
97
97
|
:type action_name: str
|
@@ -26,7 +26,8 @@ class DataProcessInfo:
|
|
26
26
|
'db_or_table_rename_rule': 'DbOrTableRenameRule',
|
27
27
|
'db_object': 'DbObject',
|
28
28
|
'is_synchronized': 'bool',
|
29
|
-
'source': 'str'
|
29
|
+
'source': 'str',
|
30
|
+
'process_rule_level': 'str'
|
30
31
|
}
|
31
32
|
|
32
33
|
attribute_map = {
|
@@ -39,15 +40,16 @@ class DataProcessInfo:
|
|
39
40
|
'db_or_table_rename_rule': 'db_or_table_rename_rule',
|
40
41
|
'db_object': 'db_object',
|
41
42
|
'is_synchronized': 'is_synchronized',
|
42
|
-
'source': 'source'
|
43
|
+
'source': 'source',
|
44
|
+
'process_rule_level': 'process_rule_level'
|
43
45
|
}
|
44
46
|
|
45
|
-
def __init__(self, filter_conditions=None, is_batch_process=None, add_columns=None, ddl_operation=None, dml_operation=None, db_object_column_info=None, db_or_table_rename_rule=None, db_object=None, is_synchronized=None, source=None):
|
47
|
+
def __init__(self, filter_conditions=None, is_batch_process=None, add_columns=None, ddl_operation=None, dml_operation=None, db_object_column_info=None, db_or_table_rename_rule=None, db_object=None, is_synchronized=None, source=None, process_rule_level=None):
|
46
48
|
"""DataProcessInfo
|
47
49
|
|
48
50
|
The model defined in huaweicloud sdk
|
49
51
|
|
50
|
-
:param filter_conditions:
|
52
|
+
:param filter_conditions: 指定任务数据加工规则请求体, 当进行数据过滤规则校验,必填 当数据过滤规则校验通过,需要更新数据过滤规则时,必填
|
51
53
|
:type filter_conditions: list[:class:`huaweicloudsdkdrs.v5.DataFilteringCondition`]
|
52
54
|
:param is_batch_process: 库级、批量表级处理为true,单表操作为false
|
53
55
|
:type is_batch_process: bool
|
@@ -67,6 +69,8 @@ class DataProcessInfo:
|
|
67
69
|
:type is_synchronized: bool
|
68
70
|
:param source: 对比的来源 - job 表示数据同步时的过滤 - compare 表示数据对比的过滤
|
69
71
|
:type source: str
|
72
|
+
:param process_rule_level: 数据加工规则作用级别 - table 表示数据同步时的过滤 - combinations 表示组合集,对多个表的操作 当进行数据过滤规则校验,必填 当需要更新数据加工规则(数据过滤、列加工等)时,必填
|
73
|
+
:type process_rule_level: str
|
70
74
|
"""
|
71
75
|
|
72
76
|
|
@@ -81,6 +85,7 @@ class DataProcessInfo:
|
|
81
85
|
self._db_object = None
|
82
86
|
self._is_synchronized = None
|
83
87
|
self._source = None
|
88
|
+
self._process_rule_level = None
|
84
89
|
self.discriminator = None
|
85
90
|
|
86
91
|
if filter_conditions is not None:
|
@@ -103,12 +108,14 @@ class DataProcessInfo:
|
|
103
108
|
self.is_synchronized = is_synchronized
|
104
109
|
if source is not None:
|
105
110
|
self.source = source
|
111
|
+
if process_rule_level is not None:
|
112
|
+
self.process_rule_level = process_rule_level
|
106
113
|
|
107
114
|
@property
|
108
115
|
def filter_conditions(self):
|
109
116
|
"""Gets the filter_conditions of this DataProcessInfo.
|
110
117
|
|
111
|
-
|
118
|
+
指定任务数据加工规则请求体, 当进行数据过滤规则校验,必填 当数据过滤规则校验通过,需要更新数据过滤规则时,必填
|
112
119
|
|
113
120
|
:return: The filter_conditions of this DataProcessInfo.
|
114
121
|
:rtype: list[:class:`huaweicloudsdkdrs.v5.DataFilteringCondition`]
|
@@ -119,7 +126,7 @@ class DataProcessInfo:
|
|
119
126
|
def filter_conditions(self, filter_conditions):
|
120
127
|
"""Sets the filter_conditions of this DataProcessInfo.
|
121
128
|
|
122
|
-
|
129
|
+
指定任务数据加工规则请求体, 当进行数据过滤规则校验,必填 当数据过滤规则校验通过,需要更新数据过滤规则时,必填
|
123
130
|
|
124
131
|
:param filter_conditions: The filter_conditions of this DataProcessInfo.
|
125
132
|
:type filter_conditions: list[:class:`huaweicloudsdkdrs.v5.DataFilteringCondition`]
|
@@ -312,6 +319,28 @@ class DataProcessInfo:
|
|
312
319
|
"""
|
313
320
|
self._source = source
|
314
321
|
|
322
|
+
@property
|
323
|
+
def process_rule_level(self):
|
324
|
+
"""Gets the process_rule_level of this DataProcessInfo.
|
325
|
+
|
326
|
+
数据加工规则作用级别 - table 表示数据同步时的过滤 - combinations 表示组合集,对多个表的操作 当进行数据过滤规则校验,必填 当需要更新数据加工规则(数据过滤、列加工等)时,必填
|
327
|
+
|
328
|
+
:return: The process_rule_level of this DataProcessInfo.
|
329
|
+
:rtype: str
|
330
|
+
"""
|
331
|
+
return self._process_rule_level
|
332
|
+
|
333
|
+
@process_rule_level.setter
|
334
|
+
def process_rule_level(self, process_rule_level):
|
335
|
+
"""Sets the process_rule_level of this DataProcessInfo.
|
336
|
+
|
337
|
+
数据加工规则作用级别 - table 表示数据同步时的过滤 - combinations 表示组合集,对多个表的操作 当进行数据过滤规则校验,必填 当需要更新数据加工规则(数据过滤、列加工等)时,必填
|
338
|
+
|
339
|
+
:param process_rule_level: The process_rule_level of this DataProcessInfo.
|
340
|
+
:type process_rule_level: str
|
341
|
+
"""
|
342
|
+
self._process_rule_level = process_rule_level
|
343
|
+
|
315
344
|
def to_dict(self):
|
316
345
|
"""Returns the model properties as a dict"""
|
317
346
|
result = {}
|
@@ -47,7 +47,11 @@ class JobDetailResp:
|
|
47
47
|
'public_ip_list': 'list[PublicIpConfig]',
|
48
48
|
'bind_public_ip_state': 'str',
|
49
49
|
'children': 'list[FailedToBindEipChildInfo]',
|
50
|
-
'is_writable': 'str'
|
50
|
+
'is_writable': 'str',
|
51
|
+
'diagnoses': 'list[QueryDiagnosisResult]',
|
52
|
+
'repair_progress_info': 'JobDetailRespRepairProgressInfo',
|
53
|
+
'repair_detail_info': 'QueryRepairDetailResp',
|
54
|
+
'repair_export_status': 'str'
|
51
55
|
}
|
52
56
|
|
53
57
|
attribute_map = {
|
@@ -81,10 +85,14 @@ class JobDetailResp:
|
|
81
85
|
'public_ip_list': 'public_ip_list',
|
82
86
|
'bind_public_ip_state': 'bind_public_ip_state',
|
83
87
|
'children': 'children',
|
84
|
-
'is_writable': 'is_writable'
|
88
|
+
'is_writable': 'is_writable',
|
89
|
+
'diagnoses': 'diagnoses',
|
90
|
+
'repair_progress_info': 'repair_progress_info',
|
91
|
+
'repair_detail_info': 'repair_detail_info',
|
92
|
+
'repair_export_status': 'repair_export_status'
|
85
93
|
}
|
86
94
|
|
87
|
-
def __init__(self, id=None, status=None, create_time=None, total_count=None, master_job_id=None, base_info=None, source_endpoint=None, target_endpoint=None, alarm_notify=None, speed_limit=None, user_migration=None, policy_config=None, db_param=None, tuning_params=None, period_order=None, node_info=None, logs=None, network_results=None, precheck_result=None, progress_info=None, migration_object_progress_info=None, metrics=None, compare_result=None, support_import_file_resp=None, instance_features=None, task_version=None, connection_management=None, public_ip_list=None, bind_public_ip_state=None, children=None, is_writable=None):
|
95
|
+
def __init__(self, id=None, status=None, create_time=None, total_count=None, master_job_id=None, base_info=None, source_endpoint=None, target_endpoint=None, alarm_notify=None, speed_limit=None, user_migration=None, policy_config=None, db_param=None, tuning_params=None, period_order=None, node_info=None, logs=None, network_results=None, precheck_result=None, progress_info=None, migration_object_progress_info=None, metrics=None, compare_result=None, support_import_file_resp=None, instance_features=None, task_version=None, connection_management=None, public_ip_list=None, bind_public_ip_state=None, children=None, is_writable=None, diagnoses=None, repair_progress_info=None, repair_detail_info=None, repair_export_status=None):
|
88
96
|
"""JobDetailResp
|
89
97
|
|
90
98
|
The model defined in huaweicloud sdk
|
@@ -151,6 +159,14 @@ class JobDetailResp:
|
|
151
159
|
:type children: list[:class:`huaweicloudsdkdrs.v5.FailedToBindEipChildInfo`]
|
152
160
|
:param is_writable: 解除目标库只读操作后,目标库解除只读是否成功。 - pending:目标库解除操作进行中。 - success:目标库解除只读操作成功。
|
153
161
|
:type is_writable: str
|
162
|
+
:param diagnoses: 一键诊断结果。
|
163
|
+
:type diagnoses: list[:class:`huaweicloudsdkdrs.v5.QueryDiagnosisResult`]
|
164
|
+
:param repair_progress_info:
|
165
|
+
:type repair_progress_info: :class:`huaweicloudsdkdrs.v5.JobDetailRespRepairProgressInfo`
|
166
|
+
:param repair_detail_info:
|
167
|
+
:type repair_detail_info: :class:`huaweicloudsdkdrs.v5.QueryRepairDetailResp`
|
168
|
+
:param repair_export_status: 修复SQL导出状态。
|
169
|
+
:type repair_export_status: str
|
154
170
|
"""
|
155
171
|
|
156
172
|
|
@@ -186,6 +202,10 @@ class JobDetailResp:
|
|
186
202
|
self._bind_public_ip_state = None
|
187
203
|
self._children = None
|
188
204
|
self._is_writable = None
|
205
|
+
self._diagnoses = None
|
206
|
+
self._repair_progress_info = None
|
207
|
+
self._repair_detail_info = None
|
208
|
+
self._repair_export_status = None
|
189
209
|
self.discriminator = None
|
190
210
|
|
191
211
|
if id is not None:
|
@@ -250,6 +270,14 @@ class JobDetailResp:
|
|
250
270
|
self.children = children
|
251
271
|
if is_writable is not None:
|
252
272
|
self.is_writable = is_writable
|
273
|
+
if diagnoses is not None:
|
274
|
+
self.diagnoses = diagnoses
|
275
|
+
if repair_progress_info is not None:
|
276
|
+
self.repair_progress_info = repair_progress_info
|
277
|
+
if repair_detail_info is not None:
|
278
|
+
self.repair_detail_info = repair_detail_info
|
279
|
+
if repair_export_status is not None:
|
280
|
+
self.repair_export_status = repair_export_status
|
253
281
|
|
254
282
|
@property
|
255
283
|
def id(self):
|
@@ -873,6 +901,86 @@ class JobDetailResp:
|
|
873
901
|
"""
|
874
902
|
self._is_writable = is_writable
|
875
903
|
|
904
|
+
@property
|
905
|
+
def diagnoses(self):
|
906
|
+
"""Gets the diagnoses of this JobDetailResp.
|
907
|
+
|
908
|
+
一键诊断结果。
|
909
|
+
|
910
|
+
:return: The diagnoses of this JobDetailResp.
|
911
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.QueryDiagnosisResult`]
|
912
|
+
"""
|
913
|
+
return self._diagnoses
|
914
|
+
|
915
|
+
@diagnoses.setter
|
916
|
+
def diagnoses(self, diagnoses):
|
917
|
+
"""Sets the diagnoses of this JobDetailResp.
|
918
|
+
|
919
|
+
一键诊断结果。
|
920
|
+
|
921
|
+
:param diagnoses: The diagnoses of this JobDetailResp.
|
922
|
+
:type diagnoses: list[:class:`huaweicloudsdkdrs.v5.QueryDiagnosisResult`]
|
923
|
+
"""
|
924
|
+
self._diagnoses = diagnoses
|
925
|
+
|
926
|
+
@property
|
927
|
+
def repair_progress_info(self):
|
928
|
+
"""Gets the repair_progress_info of this JobDetailResp.
|
929
|
+
|
930
|
+
:return: The repair_progress_info of this JobDetailResp.
|
931
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.JobDetailRespRepairProgressInfo`
|
932
|
+
"""
|
933
|
+
return self._repair_progress_info
|
934
|
+
|
935
|
+
@repair_progress_info.setter
|
936
|
+
def repair_progress_info(self, repair_progress_info):
|
937
|
+
"""Sets the repair_progress_info of this JobDetailResp.
|
938
|
+
|
939
|
+
:param repair_progress_info: The repair_progress_info of this JobDetailResp.
|
940
|
+
:type repair_progress_info: :class:`huaweicloudsdkdrs.v5.JobDetailRespRepairProgressInfo`
|
941
|
+
"""
|
942
|
+
self._repair_progress_info = repair_progress_info
|
943
|
+
|
944
|
+
@property
|
945
|
+
def repair_detail_info(self):
|
946
|
+
"""Gets the repair_detail_info of this JobDetailResp.
|
947
|
+
|
948
|
+
:return: The repair_detail_info of this JobDetailResp.
|
949
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.QueryRepairDetailResp`
|
950
|
+
"""
|
951
|
+
return self._repair_detail_info
|
952
|
+
|
953
|
+
@repair_detail_info.setter
|
954
|
+
def repair_detail_info(self, repair_detail_info):
|
955
|
+
"""Sets the repair_detail_info of this JobDetailResp.
|
956
|
+
|
957
|
+
:param repair_detail_info: The repair_detail_info of this JobDetailResp.
|
958
|
+
:type repair_detail_info: :class:`huaweicloudsdkdrs.v5.QueryRepairDetailResp`
|
959
|
+
"""
|
960
|
+
self._repair_detail_info = repair_detail_info
|
961
|
+
|
962
|
+
@property
|
963
|
+
def repair_export_status(self):
|
964
|
+
"""Gets the repair_export_status of this JobDetailResp.
|
965
|
+
|
966
|
+
修复SQL导出状态。
|
967
|
+
|
968
|
+
:return: The repair_export_status of this JobDetailResp.
|
969
|
+
:rtype: str
|
970
|
+
"""
|
971
|
+
return self._repair_export_status
|
972
|
+
|
973
|
+
@repair_export_status.setter
|
974
|
+
def repair_export_status(self, repair_export_status):
|
975
|
+
"""Sets the repair_export_status of this JobDetailResp.
|
976
|
+
|
977
|
+
修复SQL导出状态。
|
978
|
+
|
979
|
+
:param repair_export_status: The repair_export_status of this JobDetailResp.
|
980
|
+
:type repair_export_status: str
|
981
|
+
"""
|
982
|
+
self._repair_export_status = repair_export_status
|
983
|
+
|
876
984
|
def to_dict(self):
|
877
985
|
"""Returns the model properties as a dict"""
|
878
986
|
result = {}
|
@@ -0,0 +1,227 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class JobDetailRespRepairProgressInfo:
|
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
|
+
'status': 'str',
|
21
|
+
'progress': 'str',
|
22
|
+
'error_msg': 'str',
|
23
|
+
'count': 'int',
|
24
|
+
'repair_progress_details': 'JobDetailRespRepairProgressInfoRepairProgressDetails'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'status': 'status',
|
29
|
+
'progress': 'progress',
|
30
|
+
'error_msg': 'error_msg',
|
31
|
+
'count': 'count',
|
32
|
+
'repair_progress_details': 'repair_progress_details'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, status=None, progress=None, error_msg=None, count=None, repair_progress_details=None):
|
36
|
+
"""JobDetailRespRepairProgressInfo
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param status: 修复状态。
|
41
|
+
:type status: str
|
42
|
+
:param progress: 修复进度,百分比。
|
43
|
+
:type progress: str
|
44
|
+
:param error_msg: 错误信息。
|
45
|
+
:type error_msg: str
|
46
|
+
:param count: 总数。
|
47
|
+
:type count: int
|
48
|
+
:param repair_progress_details:
|
49
|
+
:type repair_progress_details: :class:`huaweicloudsdkdrs.v5.JobDetailRespRepairProgressInfoRepairProgressDetails`
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._status = None
|
55
|
+
self._progress = None
|
56
|
+
self._error_msg = None
|
57
|
+
self._count = None
|
58
|
+
self._repair_progress_details = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if status is not None:
|
62
|
+
self.status = status
|
63
|
+
if progress is not None:
|
64
|
+
self.progress = progress
|
65
|
+
if error_msg is not None:
|
66
|
+
self.error_msg = error_msg
|
67
|
+
if count is not None:
|
68
|
+
self.count = count
|
69
|
+
if repair_progress_details is not None:
|
70
|
+
self.repair_progress_details = repair_progress_details
|
71
|
+
|
72
|
+
@property
|
73
|
+
def status(self):
|
74
|
+
"""Gets the status of this JobDetailRespRepairProgressInfo.
|
75
|
+
|
76
|
+
修复状态。
|
77
|
+
|
78
|
+
:return: The status of this JobDetailRespRepairProgressInfo.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._status
|
82
|
+
|
83
|
+
@status.setter
|
84
|
+
def status(self, status):
|
85
|
+
"""Sets the status of this JobDetailRespRepairProgressInfo.
|
86
|
+
|
87
|
+
修复状态。
|
88
|
+
|
89
|
+
:param status: The status of this JobDetailRespRepairProgressInfo.
|
90
|
+
:type status: str
|
91
|
+
"""
|
92
|
+
self._status = status
|
93
|
+
|
94
|
+
@property
|
95
|
+
def progress(self):
|
96
|
+
"""Gets the progress of this JobDetailRespRepairProgressInfo.
|
97
|
+
|
98
|
+
修复进度,百分比。
|
99
|
+
|
100
|
+
:return: The progress of this JobDetailRespRepairProgressInfo.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._progress
|
104
|
+
|
105
|
+
@progress.setter
|
106
|
+
def progress(self, progress):
|
107
|
+
"""Sets the progress of this JobDetailRespRepairProgressInfo.
|
108
|
+
|
109
|
+
修复进度,百分比。
|
110
|
+
|
111
|
+
:param progress: The progress of this JobDetailRespRepairProgressInfo.
|
112
|
+
:type progress: str
|
113
|
+
"""
|
114
|
+
self._progress = progress
|
115
|
+
|
116
|
+
@property
|
117
|
+
def error_msg(self):
|
118
|
+
"""Gets the error_msg of this JobDetailRespRepairProgressInfo.
|
119
|
+
|
120
|
+
错误信息。
|
121
|
+
|
122
|
+
:return: The error_msg of this JobDetailRespRepairProgressInfo.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._error_msg
|
126
|
+
|
127
|
+
@error_msg.setter
|
128
|
+
def error_msg(self, error_msg):
|
129
|
+
"""Sets the error_msg of this JobDetailRespRepairProgressInfo.
|
130
|
+
|
131
|
+
错误信息。
|
132
|
+
|
133
|
+
:param error_msg: The error_msg of this JobDetailRespRepairProgressInfo.
|
134
|
+
:type error_msg: str
|
135
|
+
"""
|
136
|
+
self._error_msg = error_msg
|
137
|
+
|
138
|
+
@property
|
139
|
+
def count(self):
|
140
|
+
"""Gets the count of this JobDetailRespRepairProgressInfo.
|
141
|
+
|
142
|
+
总数。
|
143
|
+
|
144
|
+
:return: The count of this JobDetailRespRepairProgressInfo.
|
145
|
+
:rtype: int
|
146
|
+
"""
|
147
|
+
return self._count
|
148
|
+
|
149
|
+
@count.setter
|
150
|
+
def count(self, count):
|
151
|
+
"""Sets the count of this JobDetailRespRepairProgressInfo.
|
152
|
+
|
153
|
+
总数。
|
154
|
+
|
155
|
+
:param count: The count of this JobDetailRespRepairProgressInfo.
|
156
|
+
:type count: int
|
157
|
+
"""
|
158
|
+
self._count = count
|
159
|
+
|
160
|
+
@property
|
161
|
+
def repair_progress_details(self):
|
162
|
+
"""Gets the repair_progress_details of this JobDetailRespRepairProgressInfo.
|
163
|
+
|
164
|
+
:return: The repair_progress_details of this JobDetailRespRepairProgressInfo.
|
165
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.JobDetailRespRepairProgressInfoRepairProgressDetails`
|
166
|
+
"""
|
167
|
+
return self._repair_progress_details
|
168
|
+
|
169
|
+
@repair_progress_details.setter
|
170
|
+
def repair_progress_details(self, repair_progress_details):
|
171
|
+
"""Sets the repair_progress_details of this JobDetailRespRepairProgressInfo.
|
172
|
+
|
173
|
+
:param repair_progress_details: The repair_progress_details of this JobDetailRespRepairProgressInfo.
|
174
|
+
:type repair_progress_details: :class:`huaweicloudsdkdrs.v5.JobDetailRespRepairProgressInfoRepairProgressDetails`
|
175
|
+
"""
|
176
|
+
self._repair_progress_details = repair_progress_details
|
177
|
+
|
178
|
+
def to_dict(self):
|
179
|
+
"""Returns the model properties as a dict"""
|
180
|
+
result = {}
|
181
|
+
|
182
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
183
|
+
value = getattr(self, attr)
|
184
|
+
if isinstance(value, list):
|
185
|
+
result[attr] = list(map(
|
186
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
187
|
+
value
|
188
|
+
))
|
189
|
+
elif hasattr(value, "to_dict"):
|
190
|
+
result[attr] = value.to_dict()
|
191
|
+
elif isinstance(value, dict):
|
192
|
+
result[attr] = dict(map(
|
193
|
+
lambda item: (item[0], item[1].to_dict())
|
194
|
+
if hasattr(item[1], "to_dict") else item,
|
195
|
+
value.items()
|
196
|
+
))
|
197
|
+
else:
|
198
|
+
if attr in self.sensitive_list:
|
199
|
+
result[attr] = "****"
|
200
|
+
else:
|
201
|
+
result[attr] = value
|
202
|
+
|
203
|
+
return result
|
204
|
+
|
205
|
+
def to_str(self):
|
206
|
+
"""Returns the string representation of the model"""
|
207
|
+
import simplejson as json
|
208
|
+
if six.PY2:
|
209
|
+
import sys
|
210
|
+
reload(sys)
|
211
|
+
sys.setdefaultencoding("utf-8")
|
212
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
213
|
+
|
214
|
+
def __repr__(self):
|
215
|
+
"""For `print`"""
|
216
|
+
return self.to_str()
|
217
|
+
|
218
|
+
def __eq__(self, other):
|
219
|
+
"""Returns true if both objects are equal"""
|
220
|
+
if not isinstance(other, JobDetailRespRepairProgressInfo):
|
221
|
+
return False
|
222
|
+
|
223
|
+
return self.__dict__ == other.__dict__
|
224
|
+
|
225
|
+
def __ne__(self, other):
|
226
|
+
"""Returns true if both objects are not equal"""
|
227
|
+
return not self == other
|