huaweicloudsdkdrs 3.1.85__py2.py3-none-any.whl → 3.1.87__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_position_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.85.dist-info → huaweicloudsdkdrs-3.1.87.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.87.dist-info}/RECORD +38 -31
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.87.dist-info}/WHEEL +1 -1
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.87.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.87.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,257 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListAvailableNodeTypesRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'x_language': 'str',
|
21
|
+
'engine_type': 'str',
|
22
|
+
'db_use_type': 'str',
|
23
|
+
'job_direction': 'str',
|
24
|
+
'is_use_sellout_info': 'bool',
|
25
|
+
'is_multi_write': 'bool'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'x_language': 'X-Language',
|
30
|
+
'engine_type': 'engine_type',
|
31
|
+
'db_use_type': 'db_use_type',
|
32
|
+
'job_direction': 'job_direction',
|
33
|
+
'is_use_sellout_info': 'is_use_sellout_info',
|
34
|
+
'is_multi_write': 'is_multi_write'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, x_language=None, engine_type=None, db_use_type=None, job_direction=None, is_use_sellout_info=None, is_multi_write=None):
|
38
|
+
"""ListAvailableNodeTypesRequest
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param x_language: 请求语言类型。
|
43
|
+
:type x_language: str
|
44
|
+
:param engine_type: 引擎类型
|
45
|
+
:type engine_type: str
|
46
|
+
:param db_use_type: 迁移场景。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备
|
47
|
+
:type db_use_type: str
|
48
|
+
:param job_direction: 迁移方向,up:入云 ,down:出云,non-dbs:自建。
|
49
|
+
:type job_direction: str
|
50
|
+
:param is_use_sellout_info: 是否查询资源售罄情况
|
51
|
+
:type is_use_sellout_info: bool
|
52
|
+
:param is_multi_write: 是否是双主灾备
|
53
|
+
:type is_multi_write: bool
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._x_language = None
|
59
|
+
self._engine_type = None
|
60
|
+
self._db_use_type = None
|
61
|
+
self._job_direction = None
|
62
|
+
self._is_use_sellout_info = None
|
63
|
+
self._is_multi_write = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if x_language is not None:
|
67
|
+
self.x_language = x_language
|
68
|
+
self.engine_type = engine_type
|
69
|
+
self.db_use_type = db_use_type
|
70
|
+
self.job_direction = job_direction
|
71
|
+
if is_use_sellout_info is not None:
|
72
|
+
self.is_use_sellout_info = is_use_sellout_info
|
73
|
+
if is_multi_write is not None:
|
74
|
+
self.is_multi_write = is_multi_write
|
75
|
+
|
76
|
+
@property
|
77
|
+
def x_language(self):
|
78
|
+
"""Gets the x_language of this ListAvailableNodeTypesRequest.
|
79
|
+
|
80
|
+
请求语言类型。
|
81
|
+
|
82
|
+
:return: The x_language of this ListAvailableNodeTypesRequest.
|
83
|
+
:rtype: str
|
84
|
+
"""
|
85
|
+
return self._x_language
|
86
|
+
|
87
|
+
@x_language.setter
|
88
|
+
def x_language(self, x_language):
|
89
|
+
"""Sets the x_language of this ListAvailableNodeTypesRequest.
|
90
|
+
|
91
|
+
请求语言类型。
|
92
|
+
|
93
|
+
:param x_language: The x_language of this ListAvailableNodeTypesRequest.
|
94
|
+
:type x_language: str
|
95
|
+
"""
|
96
|
+
self._x_language = x_language
|
97
|
+
|
98
|
+
@property
|
99
|
+
def engine_type(self):
|
100
|
+
"""Gets the engine_type of this ListAvailableNodeTypesRequest.
|
101
|
+
|
102
|
+
引擎类型
|
103
|
+
|
104
|
+
:return: The engine_type of this ListAvailableNodeTypesRequest.
|
105
|
+
:rtype: str
|
106
|
+
"""
|
107
|
+
return self._engine_type
|
108
|
+
|
109
|
+
@engine_type.setter
|
110
|
+
def engine_type(self, engine_type):
|
111
|
+
"""Sets the engine_type of this ListAvailableNodeTypesRequest.
|
112
|
+
|
113
|
+
引擎类型
|
114
|
+
|
115
|
+
:param engine_type: The engine_type of this ListAvailableNodeTypesRequest.
|
116
|
+
:type engine_type: str
|
117
|
+
"""
|
118
|
+
self._engine_type = engine_type
|
119
|
+
|
120
|
+
@property
|
121
|
+
def db_use_type(self):
|
122
|
+
"""Gets the db_use_type of this ListAvailableNodeTypesRequest.
|
123
|
+
|
124
|
+
迁移场景。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备
|
125
|
+
|
126
|
+
:return: The db_use_type of this ListAvailableNodeTypesRequest.
|
127
|
+
:rtype: str
|
128
|
+
"""
|
129
|
+
return self._db_use_type
|
130
|
+
|
131
|
+
@db_use_type.setter
|
132
|
+
def db_use_type(self, db_use_type):
|
133
|
+
"""Sets the db_use_type of this ListAvailableNodeTypesRequest.
|
134
|
+
|
135
|
+
迁移场景。 - migration:实时迁移 - sync:实时同步 - cloudDataGuard:实时灾备
|
136
|
+
|
137
|
+
:param db_use_type: The db_use_type of this ListAvailableNodeTypesRequest.
|
138
|
+
:type db_use_type: str
|
139
|
+
"""
|
140
|
+
self._db_use_type = db_use_type
|
141
|
+
|
142
|
+
@property
|
143
|
+
def job_direction(self):
|
144
|
+
"""Gets the job_direction of this ListAvailableNodeTypesRequest.
|
145
|
+
|
146
|
+
迁移方向,up:入云 ,down:出云,non-dbs:自建。
|
147
|
+
|
148
|
+
:return: The job_direction of this ListAvailableNodeTypesRequest.
|
149
|
+
:rtype: str
|
150
|
+
"""
|
151
|
+
return self._job_direction
|
152
|
+
|
153
|
+
@job_direction.setter
|
154
|
+
def job_direction(self, job_direction):
|
155
|
+
"""Sets the job_direction of this ListAvailableNodeTypesRequest.
|
156
|
+
|
157
|
+
迁移方向,up:入云 ,down:出云,non-dbs:自建。
|
158
|
+
|
159
|
+
:param job_direction: The job_direction of this ListAvailableNodeTypesRequest.
|
160
|
+
:type job_direction: str
|
161
|
+
"""
|
162
|
+
self._job_direction = job_direction
|
163
|
+
|
164
|
+
@property
|
165
|
+
def is_use_sellout_info(self):
|
166
|
+
"""Gets the is_use_sellout_info of this ListAvailableNodeTypesRequest.
|
167
|
+
|
168
|
+
是否查询资源售罄情况
|
169
|
+
|
170
|
+
:return: The is_use_sellout_info of this ListAvailableNodeTypesRequest.
|
171
|
+
:rtype: bool
|
172
|
+
"""
|
173
|
+
return self._is_use_sellout_info
|
174
|
+
|
175
|
+
@is_use_sellout_info.setter
|
176
|
+
def is_use_sellout_info(self, is_use_sellout_info):
|
177
|
+
"""Sets the is_use_sellout_info of this ListAvailableNodeTypesRequest.
|
178
|
+
|
179
|
+
是否查询资源售罄情况
|
180
|
+
|
181
|
+
:param is_use_sellout_info: The is_use_sellout_info of this ListAvailableNodeTypesRequest.
|
182
|
+
:type is_use_sellout_info: bool
|
183
|
+
"""
|
184
|
+
self._is_use_sellout_info = is_use_sellout_info
|
185
|
+
|
186
|
+
@property
|
187
|
+
def is_multi_write(self):
|
188
|
+
"""Gets the is_multi_write of this ListAvailableNodeTypesRequest.
|
189
|
+
|
190
|
+
是否是双主灾备
|
191
|
+
|
192
|
+
:return: The is_multi_write of this ListAvailableNodeTypesRequest.
|
193
|
+
:rtype: bool
|
194
|
+
"""
|
195
|
+
return self._is_multi_write
|
196
|
+
|
197
|
+
@is_multi_write.setter
|
198
|
+
def is_multi_write(self, is_multi_write):
|
199
|
+
"""Sets the is_multi_write of this ListAvailableNodeTypesRequest.
|
200
|
+
|
201
|
+
是否是双主灾备
|
202
|
+
|
203
|
+
:param is_multi_write: The is_multi_write of this ListAvailableNodeTypesRequest.
|
204
|
+
:type is_multi_write: bool
|
205
|
+
"""
|
206
|
+
self._is_multi_write = is_multi_write
|
207
|
+
|
208
|
+
def to_dict(self):
|
209
|
+
"""Returns the model properties as a dict"""
|
210
|
+
result = {}
|
211
|
+
|
212
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
213
|
+
value = getattr(self, attr)
|
214
|
+
if isinstance(value, list):
|
215
|
+
result[attr] = list(map(
|
216
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
217
|
+
value
|
218
|
+
))
|
219
|
+
elif hasattr(value, "to_dict"):
|
220
|
+
result[attr] = value.to_dict()
|
221
|
+
elif isinstance(value, dict):
|
222
|
+
result[attr] = dict(map(
|
223
|
+
lambda item: (item[0], item[1].to_dict())
|
224
|
+
if hasattr(item[1], "to_dict") else item,
|
225
|
+
value.items()
|
226
|
+
))
|
227
|
+
else:
|
228
|
+
if attr in self.sensitive_list:
|
229
|
+
result[attr] = "****"
|
230
|
+
else:
|
231
|
+
result[attr] = value
|
232
|
+
|
233
|
+
return result
|
234
|
+
|
235
|
+
def to_str(self):
|
236
|
+
"""Returns the string representation of the model"""
|
237
|
+
import simplejson as json
|
238
|
+
if six.PY2:
|
239
|
+
import sys
|
240
|
+
reload(sys)
|
241
|
+
sys.setdefaultencoding("utf-8")
|
242
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
243
|
+
|
244
|
+
def __repr__(self):
|
245
|
+
"""For `print`"""
|
246
|
+
return self.to_str()
|
247
|
+
|
248
|
+
def __eq__(self, other):
|
249
|
+
"""Returns true if both objects are equal"""
|
250
|
+
if not isinstance(other, ListAvailableNodeTypesRequest):
|
251
|
+
return False
|
252
|
+
|
253
|
+
return self.__dict__ == other.__dict__
|
254
|
+
|
255
|
+
def __ne__(self, other):
|
256
|
+
"""Returns true if both objects are not equal"""
|
257
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ListAvailableNodeTypesResponse(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
|
+
'node_types': 'list[QuerySupportNodeTypeBean]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'node_types': 'node_types'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, node_types=None):
|
29
|
+
"""ListAvailableNodeTypesResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param node_types: Node规格列表
|
34
|
+
:type node_types: list[:class:`huaweicloudsdkdrs.v3.QuerySupportNodeTypeBean`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ListAvailableNodeTypesResponse, self).__init__()
|
38
|
+
|
39
|
+
self._node_types = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if node_types is not None:
|
43
|
+
self.node_types = node_types
|
44
|
+
|
45
|
+
@property
|
46
|
+
def node_types(self):
|
47
|
+
"""Gets the node_types of this ListAvailableNodeTypesResponse.
|
48
|
+
|
49
|
+
Node规格列表
|
50
|
+
|
51
|
+
:return: The node_types of this ListAvailableNodeTypesResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v3.QuerySupportNodeTypeBean`]
|
53
|
+
"""
|
54
|
+
return self._node_types
|
55
|
+
|
56
|
+
@node_types.setter
|
57
|
+
def node_types(self, node_types):
|
58
|
+
"""Sets the node_types of this ListAvailableNodeTypesResponse.
|
59
|
+
|
60
|
+
Node规格列表
|
61
|
+
|
62
|
+
:param node_types: The node_types of this ListAvailableNodeTypesResponse.
|
63
|
+
:type node_types: list[:class:`huaweicloudsdkdrs.v3.QuerySupportNodeTypeBean`]
|
64
|
+
"""
|
65
|
+
self._node_types = node_types
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, ListAvailableNodeTypesResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -0,0 +1,170 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class PublicIpConfig:
|
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
|
+
'id': 'str',
|
21
|
+
'public_ip': 'str',
|
22
|
+
'type': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'id': 'id',
|
27
|
+
'public_ip': 'public_ip',
|
28
|
+
'type': 'type'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, id=None, public_ip=None, type=None):
|
32
|
+
"""PublicIpConfig
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param id: 指定公网IP的ID
|
37
|
+
:type id: str
|
38
|
+
:param public_ip: 指定公网IP
|
39
|
+
:type public_ip: str
|
40
|
+
:param type: 指定公网IP绑定任务的类型: - 主备任务:主是master,备是slave - 其他固定传master
|
41
|
+
:type type: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._id = None
|
47
|
+
self._public_ip = None
|
48
|
+
self._type = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.id = id
|
52
|
+
self.public_ip = public_ip
|
53
|
+
self.type = type
|
54
|
+
|
55
|
+
@property
|
56
|
+
def id(self):
|
57
|
+
"""Gets the id of this PublicIpConfig.
|
58
|
+
|
59
|
+
指定公网IP的ID
|
60
|
+
|
61
|
+
:return: The id of this PublicIpConfig.
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._id
|
65
|
+
|
66
|
+
@id.setter
|
67
|
+
def id(self, id):
|
68
|
+
"""Sets the id of this PublicIpConfig.
|
69
|
+
|
70
|
+
指定公网IP的ID
|
71
|
+
|
72
|
+
:param id: The id of this PublicIpConfig.
|
73
|
+
:type id: str
|
74
|
+
"""
|
75
|
+
self._id = id
|
76
|
+
|
77
|
+
@property
|
78
|
+
def public_ip(self):
|
79
|
+
"""Gets the public_ip of this PublicIpConfig.
|
80
|
+
|
81
|
+
指定公网IP
|
82
|
+
|
83
|
+
:return: The public_ip of this PublicIpConfig.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._public_ip
|
87
|
+
|
88
|
+
@public_ip.setter
|
89
|
+
def public_ip(self, public_ip):
|
90
|
+
"""Sets the public_ip of this PublicIpConfig.
|
91
|
+
|
92
|
+
指定公网IP
|
93
|
+
|
94
|
+
:param public_ip: The public_ip of this PublicIpConfig.
|
95
|
+
:type public_ip: str
|
96
|
+
"""
|
97
|
+
self._public_ip = public_ip
|
98
|
+
|
99
|
+
@property
|
100
|
+
def type(self):
|
101
|
+
"""Gets the type of this PublicIpConfig.
|
102
|
+
|
103
|
+
指定公网IP绑定任务的类型: - 主备任务:主是master,备是slave - 其他固定传master
|
104
|
+
|
105
|
+
:return: The type of this PublicIpConfig.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._type
|
109
|
+
|
110
|
+
@type.setter
|
111
|
+
def type(self, type):
|
112
|
+
"""Sets the type of this PublicIpConfig.
|
113
|
+
|
114
|
+
指定公网IP绑定任务的类型: - 主备任务:主是master,备是slave - 其他固定传master
|
115
|
+
|
116
|
+
:param type: The type of this PublicIpConfig.
|
117
|
+
:type type: str
|
118
|
+
"""
|
119
|
+
self._type = type
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, PublicIpConfig):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|
@@ -73,7 +73,10 @@ class QueryJobResp:
|
|
73
73
|
'object_infos': 'list[DatabaseObjectInfo]',
|
74
74
|
'original_job_direction': 'str',
|
75
75
|
'data_transformation': 'GetDataTransformationResp',
|
76
|
-
'tags': 'list[Tag]'
|
76
|
+
'tags': 'list[Tag]',
|
77
|
+
'public_ip_list': 'list[PublicIpConfig]',
|
78
|
+
'bind_public_ip_state': 'str',
|
79
|
+
'children': 'list[FailedToBindEipChildInfo]'
|
77
80
|
}
|
78
81
|
|
79
82
|
attribute_map = {
|
@@ -133,10 +136,13 @@ class QueryJobResp:
|
|
133
136
|
'object_infos': 'object_infos',
|
134
137
|
'original_job_direction': 'original_job_direction',
|
135
138
|
'data_transformation': 'data_transformation',
|
136
|
-
'tags': 'tags'
|
139
|
+
'tags': 'tags',
|
140
|
+
'public_ip_list': 'public_ip_list',
|
141
|
+
'bind_public_ip_state': 'bind_public_ip_state',
|
142
|
+
'children': 'children'
|
137
143
|
}
|
138
144
|
|
139
|
-
def __init__(self, id=None, parent_id=None, name=None, status=None, description=None, create_time=None, task_type=None, source_endpoint=None, dmq_endpoint=None, source_sharding=None, target_endpoint=None, net_type=None, failed_reason=None, inst_info=None, actual_start_time=None, full_transfer_complete_time=None, update_time=None, job_direction=None, db_use_type=None, need_restart=None, is_target_readonly=None, conflict_policy=None, filter_ddl_policy=None, speed_limit=None, schema_type=None, node_num=None, object_switch=None, master_job_id=None, full_mode=None, struct_trans=None, index_trans=None, replace_definer=None, migrate_user=None, sync_database=None, error_code=None, error_message=None, target_root_db=None, az_code=None, vpc_id=None, subnet_id=None, security_group_id=None, multi_write=None, support_ip_v6=None, inherit_id=None, gtid=None, alarm_notify=None, incre_start_position=None, is_multi_az=None, az_name=None, master_az=None, slave_az=None, node_role=None, period_order=None, object_infos=None, original_job_direction=None, data_transformation=None, tags=None):
|
145
|
+
def __init__(self, id=None, parent_id=None, name=None, status=None, description=None, create_time=None, task_type=None, source_endpoint=None, dmq_endpoint=None, source_sharding=None, target_endpoint=None, net_type=None, failed_reason=None, inst_info=None, actual_start_time=None, full_transfer_complete_time=None, update_time=None, job_direction=None, db_use_type=None, need_restart=None, is_target_readonly=None, conflict_policy=None, filter_ddl_policy=None, speed_limit=None, schema_type=None, node_num=None, object_switch=None, master_job_id=None, full_mode=None, struct_trans=None, index_trans=None, replace_definer=None, migrate_user=None, sync_database=None, error_code=None, error_message=None, target_root_db=None, az_code=None, vpc_id=None, subnet_id=None, security_group_id=None, multi_write=None, support_ip_v6=None, inherit_id=None, gtid=None, alarm_notify=None, incre_start_position=None, is_multi_az=None, az_name=None, master_az=None, slave_az=None, node_role=None, period_order=None, object_infos=None, original_job_direction=None, data_transformation=None, tags=None, public_ip_list=None, bind_public_ip_state=None, children=None):
|
140
146
|
"""QueryJobResp
|
141
147
|
|
142
148
|
The model defined in huaweicloud sdk
|
@@ -255,6 +261,12 @@ class QueryJobResp:
|
|
255
261
|
:type data_transformation: :class:`huaweicloudsdkdrs.v3.GetDataTransformationResp`
|
256
262
|
:param tags: DRS任务标签
|
257
263
|
:type tags: list[:class:`huaweicloudsdkdrs.v3.Tag`]
|
264
|
+
:param public_ip_list: 指定公网Ip的信息
|
265
|
+
:type public_ip_list: list[:class:`huaweicloudsdkdrs.v3.PublicIpConfig`]
|
266
|
+
:param bind_public_ip_state: 是否成功绑定公网IP
|
267
|
+
:type bind_public_ip_state: str
|
268
|
+
:param children: 多任务时,存在子任务绑定失败时,返回子任务的信息
|
269
|
+
:type children: list[:class:`huaweicloudsdkdrs.v3.FailedToBindEipChildInfo`]
|
258
270
|
"""
|
259
271
|
|
260
272
|
|
@@ -316,6 +328,9 @@ class QueryJobResp:
|
|
316
328
|
self._original_job_direction = None
|
317
329
|
self._data_transformation = None
|
318
330
|
self._tags = None
|
331
|
+
self._public_ip_list = None
|
332
|
+
self._bind_public_ip_state = None
|
333
|
+
self._children = None
|
319
334
|
self.discriminator = None
|
320
335
|
|
321
336
|
if id is not None:
|
@@ -432,6 +447,12 @@ class QueryJobResp:
|
|
432
447
|
self.data_transformation = data_transformation
|
433
448
|
if tags is not None:
|
434
449
|
self.tags = tags
|
450
|
+
if public_ip_list is not None:
|
451
|
+
self.public_ip_list = public_ip_list
|
452
|
+
if bind_public_ip_state is not None:
|
453
|
+
self.bind_public_ip_state = bind_public_ip_state
|
454
|
+
if children is not None:
|
455
|
+
self.children = children
|
435
456
|
|
436
457
|
@property
|
437
458
|
def id(self):
|
@@ -1655,6 +1676,72 @@ class QueryJobResp:
|
|
1655
1676
|
"""
|
1656
1677
|
self._tags = tags
|
1657
1678
|
|
1679
|
+
@property
|
1680
|
+
def public_ip_list(self):
|
1681
|
+
"""Gets the public_ip_list of this QueryJobResp.
|
1682
|
+
|
1683
|
+
指定公网Ip的信息
|
1684
|
+
|
1685
|
+
:return: The public_ip_list of this QueryJobResp.
|
1686
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v3.PublicIpConfig`]
|
1687
|
+
"""
|
1688
|
+
return self._public_ip_list
|
1689
|
+
|
1690
|
+
@public_ip_list.setter
|
1691
|
+
def public_ip_list(self, public_ip_list):
|
1692
|
+
"""Sets the public_ip_list of this QueryJobResp.
|
1693
|
+
|
1694
|
+
指定公网Ip的信息
|
1695
|
+
|
1696
|
+
:param public_ip_list: The public_ip_list of this QueryJobResp.
|
1697
|
+
:type public_ip_list: list[:class:`huaweicloudsdkdrs.v3.PublicIpConfig`]
|
1698
|
+
"""
|
1699
|
+
self._public_ip_list = public_ip_list
|
1700
|
+
|
1701
|
+
@property
|
1702
|
+
def bind_public_ip_state(self):
|
1703
|
+
"""Gets the bind_public_ip_state of this QueryJobResp.
|
1704
|
+
|
1705
|
+
是否成功绑定公网IP
|
1706
|
+
|
1707
|
+
:return: The bind_public_ip_state of this QueryJobResp.
|
1708
|
+
:rtype: str
|
1709
|
+
"""
|
1710
|
+
return self._bind_public_ip_state
|
1711
|
+
|
1712
|
+
@bind_public_ip_state.setter
|
1713
|
+
def bind_public_ip_state(self, bind_public_ip_state):
|
1714
|
+
"""Sets the bind_public_ip_state of this QueryJobResp.
|
1715
|
+
|
1716
|
+
是否成功绑定公网IP
|
1717
|
+
|
1718
|
+
:param bind_public_ip_state: The bind_public_ip_state of this QueryJobResp.
|
1719
|
+
:type bind_public_ip_state: str
|
1720
|
+
"""
|
1721
|
+
self._bind_public_ip_state = bind_public_ip_state
|
1722
|
+
|
1723
|
+
@property
|
1724
|
+
def children(self):
|
1725
|
+
"""Gets the children of this QueryJobResp.
|
1726
|
+
|
1727
|
+
多任务时,存在子任务绑定失败时,返回子任务的信息
|
1728
|
+
|
1729
|
+
:return: The children of this QueryJobResp.
|
1730
|
+
:rtype: list[:class:`huaweicloudsdkdrs.v3.FailedToBindEipChildInfo`]
|
1731
|
+
"""
|
1732
|
+
return self._children
|
1733
|
+
|
1734
|
+
@children.setter
|
1735
|
+
def children(self, children):
|
1736
|
+
"""Sets the children of this QueryJobResp.
|
1737
|
+
|
1738
|
+
多任务时,存在子任务绑定失败时,返回子任务的信息
|
1739
|
+
|
1740
|
+
:param children: The children of this QueryJobResp.
|
1741
|
+
:type children: list[:class:`huaweicloudsdkdrs.v3.FailedToBindEipChildInfo`]
|
1742
|
+
"""
|
1743
|
+
self._children = children
|
1744
|
+
|
1658
1745
|
def to_dict(self):
|
1659
1746
|
"""Returns the model properties as a dict"""
|
1660
1747
|
result = {}
|