huaweicloudsdkdrs 3.1.84__py2.py3-none-any.whl → 3.1.86__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/__init__.py +5 -0
- huaweicloudsdkdrs/v3/drs_async_client.py +75 -0
- huaweicloudsdkdrs/v3/drs_client.py +75 -0
- huaweicloudsdkdrs/v3/model/__init__.py +5 -0
- huaweicloudsdkdrs/v3/model/batch_job_action_req.py +6 -6
- huaweicloudsdkdrs/v3/model/create_job_req.py +32 -3
- huaweicloudsdkdrs/v3/model/failed_to_bind_eip_child_info.py +144 -0
- huaweicloudsdkdrs/v3/model/list_available_node_types_request.py +257 -0
- huaweicloudsdkdrs/v3/model/list_available_node_types_response.py +116 -0
- huaweicloudsdkdrs/v3/model/public_ip_config.py +170 -0
- huaweicloudsdkdrs/v3/model/query_job_resp.py +90 -3
- huaweicloudsdkdrs/v3/model/query_support_node_type_bean.py +144 -0
- huaweicloudsdkdrs/v3/model/sync_policy_req.py +32 -3
- huaweicloudsdkdrs/v5/__init__.py +2 -0
- huaweicloudsdkdrs/v5/model/__init__.py +2 -0
- huaweicloudsdkdrs/v5/model/action_params.py +28 -3
- huaweicloudsdkdrs/v5/model/action_req.py +3 -3
- huaweicloudsdkdrs/v5/model/async_create_job_req.py +32 -3
- huaweicloudsdkdrs/v5/model/base_endpoint.py +3 -3
- huaweicloudsdkdrs/v5/model/check_data_filter_response.py +32 -3
- huaweicloudsdkdrs/v5/model/collect_columns_response.py +32 -3
- huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +32 -3
- huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +32 -3
- huaweicloudsdkdrs/v5/model/collect_position_async_response.py +32 -3
- huaweicloudsdkdrs/v5/model/create_job_req.py +32 -3
- huaweicloudsdkdrs/v5/model/failed_to_bind_eip_child_info.py +144 -0
- huaweicloudsdkdrs/v5/model/job_detail_resp.py +90 -3
- huaweicloudsdkdrs/v5/model/job_node_vpc_info.py +3 -3
- huaweicloudsdkdrs/v5/model/public_ip_config.py +170 -0
- huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +32 -3
- huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +32 -3
- huaweicloudsdkdrs/v5/model/update_data_progress_response.py +32 -3
- {huaweicloudsdkdrs-3.1.84.dist-info → huaweicloudsdkdrs-3.1.86.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.84.dist-info → huaweicloudsdkdrs-3.1.86.dist-info}/RECORD +37 -30
- {huaweicloudsdkdrs-3.1.84.dist-info → huaweicloudsdkdrs-3.1.86.dist-info}/WHEEL +1 -1
- {huaweicloudsdkdrs-3.1.84.dist-info → huaweicloudsdkdrs-3.1.86.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.84.dist-info → huaweicloudsdkdrs-3.1.86.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class QuerySupportNodeTypeBean:
|
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
|
+
'node_type': 'str',
|
21
|
+
'is_sellout': 'bool'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'node_type': 'node_type',
|
26
|
+
'is_sellout': 'is_sellout'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, node_type=None, is_sellout=None):
|
30
|
+
"""QuerySupportNodeTypeBean
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param node_type: 规格类型
|
35
|
+
:type node_type: str
|
36
|
+
:param is_sellout: 是否售罄
|
37
|
+
:type is_sellout: bool
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._node_type = None
|
43
|
+
self._is_sellout = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if node_type is not None:
|
47
|
+
self.node_type = node_type
|
48
|
+
if is_sellout is not None:
|
49
|
+
self.is_sellout = is_sellout
|
50
|
+
|
51
|
+
@property
|
52
|
+
def node_type(self):
|
53
|
+
"""Gets the node_type of this QuerySupportNodeTypeBean.
|
54
|
+
|
55
|
+
规格类型
|
56
|
+
|
57
|
+
:return: The node_type of this QuerySupportNodeTypeBean.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._node_type
|
61
|
+
|
62
|
+
@node_type.setter
|
63
|
+
def node_type(self, node_type):
|
64
|
+
"""Sets the node_type of this QuerySupportNodeTypeBean.
|
65
|
+
|
66
|
+
规格类型
|
67
|
+
|
68
|
+
:param node_type: The node_type of this QuerySupportNodeTypeBean.
|
69
|
+
:type node_type: str
|
70
|
+
"""
|
71
|
+
self._node_type = node_type
|
72
|
+
|
73
|
+
@property
|
74
|
+
def is_sellout(self):
|
75
|
+
"""Gets the is_sellout of this QuerySupportNodeTypeBean.
|
76
|
+
|
77
|
+
是否售罄
|
78
|
+
|
79
|
+
:return: The is_sellout of this QuerySupportNodeTypeBean.
|
80
|
+
:rtype: bool
|
81
|
+
"""
|
82
|
+
return self._is_sellout
|
83
|
+
|
84
|
+
@is_sellout.setter
|
85
|
+
def is_sellout(self, is_sellout):
|
86
|
+
"""Sets the is_sellout of this QuerySupportNodeTypeBean.
|
87
|
+
|
88
|
+
是否售罄
|
89
|
+
|
90
|
+
:param is_sellout: The is_sellout of this QuerySupportNodeTypeBean.
|
91
|
+
:type is_sellout: bool
|
92
|
+
"""
|
93
|
+
self._is_sellout = is_sellout
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, QuerySupportNodeTypeBean):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -33,7 +33,8 @@ class SyncPolicyReq:
|
|
33
33
|
'export_snapshot': 'bool',
|
34
34
|
'slot_name': 'str',
|
35
35
|
'file_and_position': 'str',
|
36
|
-
'gtid_set': 'str'
|
36
|
+
'gtid_set': 'str',
|
37
|
+
'ddl_topic': 'str'
|
37
38
|
}
|
38
39
|
|
39
40
|
attribute_map = {
|
@@ -53,10 +54,11 @@ class SyncPolicyReq:
|
|
53
54
|
'export_snapshot': 'export_snapshot',
|
54
55
|
'slot_name': 'slot_name',
|
55
56
|
'file_and_position': 'file_and_position',
|
56
|
-
'gtid_set': 'gtid_set'
|
57
|
+
'gtid_set': 'gtid_set',
|
58
|
+
'ddl_topic': 'ddl_topic'
|
57
59
|
}
|
58
60
|
|
59
|
-
def __init__(self, job_id=None, conflict_policy=None, filter_ddl_policy=None, ddl_trans=None, index_trans=None, topic_policy=None, topic=None, partition_policy=None, kafka_data_format=None, topic_name_format=None, partitions_num=None, replication_factor=None, is_fill_materialized_view=None, export_snapshot=None, slot_name=None, file_and_position=None, gtid_set=None):
|
61
|
+
def __init__(self, job_id=None, conflict_policy=None, filter_ddl_policy=None, ddl_trans=None, index_trans=None, topic_policy=None, topic=None, partition_policy=None, kafka_data_format=None, topic_name_format=None, partitions_num=None, replication_factor=None, is_fill_materialized_view=None, export_snapshot=None, slot_name=None, file_and_position=None, gtid_set=None, ddl_topic=None):
|
60
62
|
"""SyncPolicyReq
|
61
63
|
|
62
64
|
The model defined in huaweicloud sdk
|
@@ -95,6 +97,8 @@ class SyncPolicyReq:
|
|
95
97
|
:type file_and_position: str
|
96
98
|
:param gtid_set: - MySQL为源的任务需要,通过show master status命令获取源库位点,根据提示填写Executed_Gtid_Set(如果源库为MySQL 5.5版本,则不支持使用同步任务)。 - 不能包含< > & \" \\' / \\\\\\\\ 特殊字符和中文。且不能超过2048个字符
|
97
99
|
:type gtid_set: str
|
100
|
+
:param ddl_topic: 存储DDL的topic。Kafka为目标且ddl_trans为true时必填,取值:目标库已存在的topic名称,确保topic已存在。
|
101
|
+
:type ddl_topic: str
|
98
102
|
"""
|
99
103
|
|
100
104
|
|
@@ -116,6 +120,7 @@ class SyncPolicyReq:
|
|
116
120
|
self._slot_name = None
|
117
121
|
self._file_and_position = None
|
118
122
|
self._gtid_set = None
|
123
|
+
self._ddl_topic = None
|
119
124
|
self.discriminator = None
|
120
125
|
|
121
126
|
self.job_id = job_id
|
@@ -151,6 +156,8 @@ class SyncPolicyReq:
|
|
151
156
|
self.file_and_position = file_and_position
|
152
157
|
if gtid_set is not None:
|
153
158
|
self.gtid_set = gtid_set
|
159
|
+
if ddl_topic is not None:
|
160
|
+
self.ddl_topic = ddl_topic
|
154
161
|
|
155
162
|
@property
|
156
163
|
def job_id(self):
|
@@ -526,6 +533,28 @@ class SyncPolicyReq:
|
|
526
533
|
"""
|
527
534
|
self._gtid_set = gtid_set
|
528
535
|
|
536
|
+
@property
|
537
|
+
def ddl_topic(self):
|
538
|
+
"""Gets the ddl_topic of this SyncPolicyReq.
|
539
|
+
|
540
|
+
存储DDL的topic。Kafka为目标且ddl_trans为true时必填,取值:目标库已存在的topic名称,确保topic已存在。
|
541
|
+
|
542
|
+
:return: The ddl_topic of this SyncPolicyReq.
|
543
|
+
:rtype: str
|
544
|
+
"""
|
545
|
+
return self._ddl_topic
|
546
|
+
|
547
|
+
@ddl_topic.setter
|
548
|
+
def ddl_topic(self, ddl_topic):
|
549
|
+
"""Sets the ddl_topic of this SyncPolicyReq.
|
550
|
+
|
551
|
+
存储DDL的topic。Kafka为目标且ddl_trans为true时必填,取值:目标库已存在的topic名称,确保topic已存在。
|
552
|
+
|
553
|
+
:param ddl_topic: The ddl_topic of this SyncPolicyReq.
|
554
|
+
:type ddl_topic: str
|
555
|
+
"""
|
556
|
+
self._ddl_topic = ddl_topic
|
557
|
+
|
529
558
|
def to_dict(self):
|
530
559
|
"""Returns the model properties as a dict"""
|
531
560
|
result = {}
|
huaweicloudsdkdrs/v5/__init__.py
CHANGED
@@ -108,6 +108,7 @@ from huaweicloudsdkdrs.v5.model.execute_job_action_request import ExecuteJobActi
|
|
108
108
|
from huaweicloudsdkdrs.v5.model.execute_job_action_response import ExecuteJobActionResponse
|
109
109
|
from huaweicloudsdkdrs.v5.model.export_operation_info_request import ExportOperationInfoRequest
|
110
110
|
from huaweicloudsdkdrs.v5.model.export_operation_info_response import ExportOperationInfoResponse
|
111
|
+
from huaweicloudsdkdrs.v5.model.failed_to_bind_eip_child_info import FailedToBindEipChildInfo
|
111
112
|
from huaweicloudsdkdrs.v5.model.flow_compare_data import FlowCompareData
|
112
113
|
from huaweicloudsdkdrs.v5.model.health_compare_job import HealthCompareJob
|
113
114
|
from huaweicloudsdkdrs.v5.model.import_batch_create_jobs_request import ImportBatchCreateJobsRequest
|
@@ -169,6 +170,7 @@ from huaweicloudsdkdrs.v5.model.precheck_result import PrecheckResult
|
|
169
170
|
from huaweicloudsdkdrs.v5.model.product_info import ProductInfo
|
170
171
|
from huaweicloudsdkdrs.v5.model.progress_complete_info import ProgressCompleteInfo
|
171
172
|
from huaweicloudsdkdrs.v5.model.project_tag import ProjectTag
|
173
|
+
from huaweicloudsdkdrs.v5.model.public_ip_config import PublicIpConfig
|
172
174
|
from huaweicloudsdkdrs.v5.model.query_column_info import QueryColumnInfo
|
173
175
|
from huaweicloudsdkdrs.v5.model.query_column_req import QueryColumnReq
|
174
176
|
from huaweicloudsdkdrs.v5.model.query_db_position_req import QueryDbPositionReq
|
@@ -106,6 +106,7 @@ from huaweicloudsdkdrs.v5.model.execute_job_action_request import ExecuteJobActi
|
|
106
106
|
from huaweicloudsdkdrs.v5.model.execute_job_action_response import ExecuteJobActionResponse
|
107
107
|
from huaweicloudsdkdrs.v5.model.export_operation_info_request import ExportOperationInfoRequest
|
108
108
|
from huaweicloudsdkdrs.v5.model.export_operation_info_response import ExportOperationInfoResponse
|
109
|
+
from huaweicloudsdkdrs.v5.model.failed_to_bind_eip_child_info import FailedToBindEipChildInfo
|
109
110
|
from huaweicloudsdkdrs.v5.model.flow_compare_data import FlowCompareData
|
110
111
|
from huaweicloudsdkdrs.v5.model.health_compare_job import HealthCompareJob
|
111
112
|
from huaweicloudsdkdrs.v5.model.import_batch_create_jobs_request import ImportBatchCreateJobsRequest
|
@@ -167,6 +168,7 @@ from huaweicloudsdkdrs.v5.model.precheck_result import PrecheckResult
|
|
167
168
|
from huaweicloudsdkdrs.v5.model.product_info import ProductInfo
|
168
169
|
from huaweicloudsdkdrs.v5.model.progress_complete_info import ProgressCompleteInfo
|
169
170
|
from huaweicloudsdkdrs.v5.model.project_tag import ProjectTag
|
171
|
+
from huaweicloudsdkdrs.v5.model.public_ip_config import PublicIpConfig
|
170
172
|
from huaweicloudsdkdrs.v5.model.query_column_info import QueryColumnInfo
|
171
173
|
from huaweicloudsdkdrs.v5.model.query_column_req import QueryColumnReq
|
172
174
|
from huaweicloudsdkdrs.v5.model.query_db_position_req import QueryDbPositionReq
|
@@ -24,7 +24,8 @@ class ActionParams:
|
|
24
24
|
'start_time': 'str',
|
25
25
|
'compare_task_param': 'CompareTaskParams',
|
26
26
|
'is_sync_re_edit': 'bool',
|
27
|
-
'force_delete': 'bool'
|
27
|
+
'force_delete': 'bool',
|
28
|
+
'public_ip_config': 'PublicIpConfig'
|
28
29
|
}
|
29
30
|
|
30
31
|
attribute_map = {
|
@@ -35,10 +36,11 @@ class ActionParams:
|
|
35
36
|
'start_time': 'start_time',
|
36
37
|
'compare_task_param': 'compare_task_param',
|
37
38
|
'is_sync_re_edit': 'is_sync_re_edit',
|
38
|
-
'force_delete': 'force_delete'
|
39
|
+
'force_delete': 'force_delete',
|
40
|
+
'public_ip_config': 'public_ip_config'
|
39
41
|
}
|
40
42
|
|
41
|
-
def __init__(self, endpoints=None, precheck_mode=None, skip_precheck_info=None, pause_mode=None, start_time=None, compare_task_param=None, is_sync_re_edit=None, force_delete=None):
|
43
|
+
def __init__(self, endpoints=None, precheck_mode=None, skip_precheck_info=None, pause_mode=None, start_time=None, compare_task_param=None, is_sync_re_edit=None, force_delete=None, public_ip_config=None):
|
42
44
|
"""ActionParams
|
43
45
|
|
44
46
|
The model defined in huaweicloud sdk
|
@@ -59,6 +61,8 @@ class ActionParams:
|
|
59
61
|
:type is_sync_re_edit: bool
|
60
62
|
:param force_delete: 强制结束时取值为true。
|
61
63
|
:type force_delete: bool
|
64
|
+
:param public_ip_config:
|
65
|
+
:type public_ip_config: :class:`huaweicloudsdkdrs.v5.PublicIpConfig`
|
62
66
|
"""
|
63
67
|
|
64
68
|
|
@@ -71,6 +75,7 @@ class ActionParams:
|
|
71
75
|
self._compare_task_param = None
|
72
76
|
self._is_sync_re_edit = None
|
73
77
|
self._force_delete = None
|
78
|
+
self._public_ip_config = None
|
74
79
|
self.discriminator = None
|
75
80
|
|
76
81
|
if endpoints is not None:
|
@@ -89,6 +94,8 @@ class ActionParams:
|
|
89
94
|
self.is_sync_re_edit = is_sync_re_edit
|
90
95
|
if force_delete is not None:
|
91
96
|
self.force_delete = force_delete
|
97
|
+
if public_ip_config is not None:
|
98
|
+
self.public_ip_config = public_ip_config
|
92
99
|
|
93
100
|
@property
|
94
101
|
def endpoints(self):
|
@@ -258,6 +265,24 @@ class ActionParams:
|
|
258
265
|
"""
|
259
266
|
self._force_delete = force_delete
|
260
267
|
|
268
|
+
@property
|
269
|
+
def public_ip_config(self):
|
270
|
+
"""Gets the public_ip_config of this ActionParams.
|
271
|
+
|
272
|
+
:return: The public_ip_config of this ActionParams.
|
273
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.PublicIpConfig`
|
274
|
+
"""
|
275
|
+
return self._public_ip_config
|
276
|
+
|
277
|
+
@public_ip_config.setter
|
278
|
+
def public_ip_config(self, public_ip_config):
|
279
|
+
"""Sets the public_ip_config of this ActionParams.
|
280
|
+
|
281
|
+
:param public_ip_config: The public_ip_config of this ActionParams.
|
282
|
+
:type public_ip_config: :class:`huaweicloudsdkdrs.v5.PublicIpConfig`
|
283
|
+
"""
|
284
|
+
self._public_ip_config = public_ip_config
|
285
|
+
|
261
286
|
def to_dict(self):
|
262
287
|
"""Returns the model properties as a dict"""
|
263
288
|
result = {}
|
@@ -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:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。
|
38
|
+
:param action_name: 操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。
|
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:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。
|
83
|
+
操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。
|
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:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。
|
94
|
+
操作任务动作名称。取值: - network:测试连接源库/目标库。 - precheck:执行预检查。 - start:启动任务。 - stop:暂停任务。 - restart:重试任务。 - reset:重置任务。 - terminate:结束任务。 - skip_precheck:跳过预检查。 - create_compare:创建对比任务。 - cancel_compare:取消对比任务。 - column_limit:字段过滤。 - reload_parameters:重新加载任务参数。 - bind_eip:绑定公网IP。 - unbind_eip:解绑公网IP。
|
95
95
|
|
96
96
|
:param action_name: The action_name of this ActionReq.
|
97
97
|
:type action_name: str
|
@@ -28,7 +28,8 @@ class AsyncCreateJobReq:
|
|
28
28
|
'db_param': 'DbParamInfo',
|
29
29
|
'tuning_params': 'TuningParamInfo',
|
30
30
|
'period_order': 'PeriodOrderInfo',
|
31
|
-
'node_info': 'JobNodeInfo'
|
31
|
+
'node_info': 'JobNodeInfo',
|
32
|
+
'public_ip_list': 'list[PublicIpConfig]'
|
32
33
|
}
|
33
34
|
|
34
35
|
attribute_map = {
|
@@ -43,10 +44,11 @@ class AsyncCreateJobReq:
|
|
43
44
|
'db_param': 'db_param',
|
44
45
|
'tuning_params': 'tuning_params',
|
45
46
|
'period_order': 'period_order',
|
46
|
-
'node_info': 'node_info'
|
47
|
+
'node_info': 'node_info',
|
48
|
+
'public_ip_list': 'public_ip_list'
|
47
49
|
}
|
48
50
|
|
49
|
-
def __init__(self, base_info=None, source_endpoint=None, target_endpoint=None, alarm_notify=None, speed_limit=None, user_migration=None, policy_config=None, db_object=None, db_param=None, tuning_params=None, period_order=None, node_info=None):
|
51
|
+
def __init__(self, base_info=None, source_endpoint=None, target_endpoint=None, alarm_notify=None, speed_limit=None, user_migration=None, policy_config=None, db_object=None, db_param=None, tuning_params=None, period_order=None, node_info=None, public_ip_list=None):
|
50
52
|
"""AsyncCreateJobReq
|
51
53
|
|
52
54
|
The model defined in huaweicloud sdk
|
@@ -75,6 +77,8 @@ class AsyncCreateJobReq:
|
|
75
77
|
:type period_order: :class:`huaweicloudsdkdrs.v5.PeriodOrderInfo`
|
76
78
|
:param node_info:
|
77
79
|
:type node_info: :class:`huaweicloudsdkdrs.v5.JobNodeInfo`
|
80
|
+
:param public_ip_list: 指定公网IP的信息
|
81
|
+
:type public_ip_list: list[:class:`huaweicloudsdkdrs.v5.PublicIpConfig`]
|
78
82
|
"""
|
79
83
|
|
80
84
|
|
@@ -91,6 +95,7 @@ class AsyncCreateJobReq:
|
|
91
95
|
self._tuning_params = None
|
92
96
|
self._period_order = None
|
93
97
|
self._node_info = None
|
98
|
+
self._public_ip_list = None
|
94
99
|
self.discriminator = None
|
95
100
|
|
96
101
|
self.base_info = base_info
|
@@ -111,6 +116,8 @@ class AsyncCreateJobReq:
|
|
111
116
|
if period_order is not None:
|
112
117
|
self.period_order = period_order
|
113
118
|
self.node_info = node_info
|
119
|
+
if public_ip_list is not None:
|
120
|
+
self.public_ip_list = public_ip_list
|
114
121
|
|
115
122
|
@property
|
116
123
|
def base_info(self):
|
@@ -340,6 +347,28 @@ class AsyncCreateJobReq:
|
|
340
347
|
"""
|
341
348
|
self._node_info = node_info
|
342
349
|
|
350
|
+
@property
|
351
|
+
def public_ip_list(self):
|
352
|
+
"""Gets the public_ip_list of this AsyncCreateJobReq.
|
353
|
+
|
354
|
+
指定公网IP的信息
|
355
|
+
|
356
|
+
:return: The public_ip_list of this AsyncCreateJobReq.
|
357
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v5.PublicIpConfig`]
|
358
|
+
"""
|
359
|
+
return self._public_ip_list
|
360
|
+
|
361
|
+
@public_ip_list.setter
|
362
|
+
def public_ip_list(self, public_ip_list):
|
363
|
+
"""Sets the public_ip_list of this AsyncCreateJobReq.
|
364
|
+
|
365
|
+
指定公网IP的信息
|
366
|
+
|
367
|
+
:param public_ip_list: The public_ip_list of this AsyncCreateJobReq.
|
368
|
+
:type public_ip_list: list[:class:`huaweicloudsdkdrs.v5.PublicIpConfig`]
|
369
|
+
"""
|
370
|
+
self._public_ip_list = public_ip_list
|
371
|
+
|
343
372
|
def to_dict(self):
|
344
373
|
"""Returns the model properties as a dict"""
|
345
374
|
result = {}
|
@@ -51,7 +51,7 @@ class BaseEndpoint:
|
|
51
51
|
:type id: str
|
52
52
|
:param endpoint_name: 数据库场景类型。取值: - oracle:云下自建Oracle数据库。 - ecs_oracle:华为云ECS自建Oracle数据库。 - cloud_gaussdbv5:华为云数据库GaussDB分布式。 - mysql:他云/本地自建MySQL数据库。 - ecs_mysql:华为云ECS自建MySQL数据库。 - cloud_mysql:华为云数据库RDS for MySQL。 - redis:云下自建Redis数据。 - ecs_redis:华为云ECS自建Redis数据。 - rediscluster:云下自建Redis集群数据库。 - ecs_rediscluster:华为云ECS自建Redis集群数据库。 - cloud_gaussdb_redis:华为云数据库GeminiDB Redis。
|
53
53
|
:type endpoint_name: str
|
54
|
-
:param ip: 数据库IP。 约束: - 数据库为自建MongoDB时,数据库IP与端口之间用“:”英文冒号拼接,多个值之间请用“,”英文逗号隔开,最多支持填写3个IP地址或域名。 - 数据库为DDS实例时,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔。 - 数据库为Redis集群时,请填写源端Redis集群所有分片的IP地址和对应端口,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔,并且推荐填写集群分片的Slave节点的IP地址。最多支持填写32个IP地址或域名,多个值之间请用英文逗号隔开。 示例: - MySQL:
|
54
|
+
:param ip: 数据库IP。 约束: - 数据库为自建MongoDB时,数据库IP与端口之间用“:”英文冒号拼接,多个值之间请用“,”英文逗号隔开,最多支持填写3个IP地址或域名。 - 数据库为DDS实例时,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔。 - 数据库为Redis集群时,请填写源端Redis集群所有分片的IP地址和对应端口,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔,并且推荐填写集群分片的Slave节点的IP地址。最多支持填写32个IP地址或域名,多个值之间请用英文逗号隔开。 示例: - MySQL:ip - MongoDB:ip:port,ip:port,ip:port - DDS:ip:port,ip:port - Redis集群:ip:port,ip:port
|
55
55
|
:type ip: str
|
56
56
|
:param db_port: 数据库端口。 约束:输入范围为1-65535之间的整数。
|
57
57
|
:type db_port: str
|
@@ -149,7 +149,7 @@ class BaseEndpoint:
|
|
149
149
|
def ip(self):
|
150
150
|
"""Gets the ip of this BaseEndpoint.
|
151
151
|
|
152
|
-
数据库IP。 约束: - 数据库为自建MongoDB时,数据库IP与端口之间用“:”英文冒号拼接,多个值之间请用“,”英文逗号隔开,最多支持填写3个IP地址或域名。 - 数据库为DDS实例时,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔。 - 数据库为Redis集群时,请填写源端Redis集群所有分片的IP地址和对应端口,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔,并且推荐填写集群分片的Slave节点的IP地址。最多支持填写32个IP地址或域名,多个值之间请用英文逗号隔开。 示例: - MySQL:
|
152
|
+
数据库IP。 约束: - 数据库为自建MongoDB时,数据库IP与端口之间用“:”英文冒号拼接,多个值之间请用“,”英文逗号隔开,最多支持填写3个IP地址或域名。 - 数据库为DDS实例时,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔。 - 数据库为Redis集群时,请填写源端Redis集群所有分片的IP地址和对应端口,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔,并且推荐填写集群分片的Slave节点的IP地址。最多支持填写32个IP地址或域名,多个值之间请用英文逗号隔开。 示例: - MySQL:ip - MongoDB:ip:port,ip:port,ip:port - DDS:ip:port,ip:port - Redis集群:ip:port,ip:port
|
153
153
|
|
154
154
|
:return: The ip of this BaseEndpoint.
|
155
155
|
:rtype: str
|
@@ -160,7 +160,7 @@ class BaseEndpoint:
|
|
160
160
|
def ip(self, ip):
|
161
161
|
"""Sets the ip of this BaseEndpoint.
|
162
162
|
|
163
|
-
数据库IP。 约束: - 数据库为自建MongoDB时,数据库IP与端口之间用“:”英文冒号拼接,多个值之间请用“,”英文逗号隔开,最多支持填写3个IP地址或域名。 - 数据库为DDS实例时,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔。 - 数据库为Redis集群时,请填写源端Redis集群所有分片的IP地址和对应端口,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔,并且推荐填写集群分片的Slave节点的IP地址。最多支持填写32个IP地址或域名,多个值之间请用英文逗号隔开。 示例: - MySQL:
|
163
|
+
数据库IP。 约束: - 数据库为自建MongoDB时,数据库IP与端口之间用“:”英文冒号拼接,多个值之间请用“,”英文逗号隔开,最多支持填写3个IP地址或域名。 - 数据库为DDS实例时,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔。 - 数据库为Redis集群时,请填写源端Redis集群所有分片的IP地址和对应端口,数据库IP与端口之间用“:”英文冒号拼接,多个IP端口之间请用“,”英文逗号分隔,并且推荐填写集群分片的Slave节点的IP地址。最多支持填写32个IP地址或域名,多个值之间请用英文逗号隔开。 示例: - MySQL:ip - MongoDB:ip:port,ip:port,ip:port - DDS:ip:port,ip:port - Redis集群:ip:port,ip:port
|
164
164
|
|
165
165
|
:param ip: The ip of this BaseEndpoint.
|
166
166
|
:type ip: str
|
@@ -19,15 +19,17 @@ class CheckDataFilterResponse(SdkResponse):
|
|
19
19
|
|
20
20
|
openapi_types = {
|
21
21
|
'id': 'str',
|
22
|
-
'status': 'str'
|
22
|
+
'status': 'str',
|
23
|
+
'job_id': 'str'
|
23
24
|
}
|
24
25
|
|
25
26
|
attribute_map = {
|
26
27
|
'id': 'id',
|
27
|
-
'status': 'status'
|
28
|
+
'status': 'status',
|
29
|
+
'job_id': 'job_id'
|
28
30
|
}
|
29
31
|
|
30
|
-
def __init__(self, id=None, status=None):
|
32
|
+
def __init__(self, id=None, status=None, job_id=None):
|
31
33
|
"""CheckDataFilterResponse
|
32
34
|
|
33
35
|
The model defined in huaweicloud sdk
|
@@ -36,18 +38,23 @@ class CheckDataFilterResponse(SdkResponse):
|
|
36
38
|
:type id: str
|
37
39
|
:param status: 查询状态
|
38
40
|
:type status: str
|
41
|
+
:param job_id: 任务ID
|
42
|
+
:type job_id: str
|
39
43
|
"""
|
40
44
|
|
41
45
|
super(CheckDataFilterResponse, self).__init__()
|
42
46
|
|
43
47
|
self._id = None
|
44
48
|
self._status = None
|
49
|
+
self._job_id = None
|
45
50
|
self.discriminator = None
|
46
51
|
|
47
52
|
if id is not None:
|
48
53
|
self.id = id
|
49
54
|
if status is not None:
|
50
55
|
self.status = status
|
56
|
+
if job_id is not None:
|
57
|
+
self.job_id = job_id
|
51
58
|
|
52
59
|
@property
|
53
60
|
def id(self):
|
@@ -93,6 +100,28 @@ class CheckDataFilterResponse(SdkResponse):
|
|
93
100
|
"""
|
94
101
|
self._status = status
|
95
102
|
|
103
|
+
@property
|
104
|
+
def job_id(self):
|
105
|
+
"""Gets the job_id of this CheckDataFilterResponse.
|
106
|
+
|
107
|
+
任务ID
|
108
|
+
|
109
|
+
:return: The job_id of this CheckDataFilterResponse.
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._job_id
|
113
|
+
|
114
|
+
@job_id.setter
|
115
|
+
def job_id(self, job_id):
|
116
|
+
"""Sets the job_id of this CheckDataFilterResponse.
|
117
|
+
|
118
|
+
任务ID
|
119
|
+
|
120
|
+
:param job_id: The job_id of this CheckDataFilterResponse.
|
121
|
+
:type job_id: str
|
122
|
+
"""
|
123
|
+
self._job_id = job_id
|
124
|
+
|
96
125
|
def to_dict(self):
|
97
126
|
"""Returns the model properties as a dict"""
|
98
127
|
result = {}
|
@@ -19,15 +19,17 @@ class CollectColumnsResponse(SdkResponse):
|
|
19
19
|
|
20
20
|
openapi_types = {
|
21
21
|
'id': 'str',
|
22
|
-
'status': 'str'
|
22
|
+
'status': 'str',
|
23
|
+
'job_id': 'str'
|
23
24
|
}
|
24
25
|
|
25
26
|
attribute_map = {
|
26
27
|
'id': 'id',
|
27
|
-
'status': 'status'
|
28
|
+
'status': 'status',
|
29
|
+
'job_id': 'job_id'
|
28
30
|
}
|
29
31
|
|
30
|
-
def __init__(self, id=None, status=None):
|
32
|
+
def __init__(self, id=None, status=None, job_id=None):
|
31
33
|
"""CollectColumnsResponse
|
32
34
|
|
33
35
|
The model defined in huaweicloud sdk
|
@@ -36,18 +38,23 @@ class CollectColumnsResponse(SdkResponse):
|
|
36
38
|
:type id: str
|
37
39
|
:param status: 查询状态
|
38
40
|
:type status: str
|
41
|
+
:param job_id: 任务ID
|
42
|
+
:type job_id: str
|
39
43
|
"""
|
40
44
|
|
41
45
|
super(CollectColumnsResponse, self).__init__()
|
42
46
|
|
43
47
|
self._id = None
|
44
48
|
self._status = None
|
49
|
+
self._job_id = None
|
45
50
|
self.discriminator = None
|
46
51
|
|
47
52
|
if id is not None:
|
48
53
|
self.id = id
|
49
54
|
if status is not None:
|
50
55
|
self.status = status
|
56
|
+
if job_id is not None:
|
57
|
+
self.job_id = job_id
|
51
58
|
|
52
59
|
@property
|
53
60
|
def id(self):
|
@@ -93,6 +100,28 @@ class CollectColumnsResponse(SdkResponse):
|
|
93
100
|
"""
|
94
101
|
self._status = status
|
95
102
|
|
103
|
+
@property
|
104
|
+
def job_id(self):
|
105
|
+
"""Gets the job_id of this CollectColumnsResponse.
|
106
|
+
|
107
|
+
任务ID
|
108
|
+
|
109
|
+
:return: The job_id of this CollectColumnsResponse.
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._job_id
|
113
|
+
|
114
|
+
@job_id.setter
|
115
|
+
def job_id(self, job_id):
|
116
|
+
"""Sets the job_id of this CollectColumnsResponse.
|
117
|
+
|
118
|
+
任务ID
|
119
|
+
|
120
|
+
:param job_id: The job_id of this CollectColumnsResponse.
|
121
|
+
:type job_id: str
|
122
|
+
"""
|
123
|
+
self._job_id = job_id
|
124
|
+
|
96
125
|
def to_dict(self):
|
97
126
|
"""Returns the model properties as a dict"""
|
98
127
|
result = {}
|