huaweicloudsdkdrs 3.1.116__py2.py3-none-any.whl → 3.1.118__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/query_job_resp.py +7 -7
- huaweicloudsdkdrs/v5/__init__.py +40 -0
- huaweicloudsdkdrs/v5/drs_async_client.py +890 -17
- huaweicloudsdkdrs/v5/drs_client.py +890 -17
- huaweicloudsdkdrs/v5/model/__init__.py +40 -0
- huaweicloudsdkdrs/v5/model/backup_file_info.py +201 -0
- huaweicloudsdkdrs/v5/model/backup_file_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_info.py +171 -0
- huaweicloudsdkdrs/v5/model/backup_info_resp.py +173 -0
- huaweicloudsdkdrs/v5/model/backup_job_base_info.py +229 -0
- huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py +172 -0
- huaweicloudsdkdrs/v5/model/backup_restore_option_info.py +315 -0
- huaweicloudsdkdrs/v5/model/change_to_period_request.py +168 -0
- huaweicloudsdkdrs/v5/model/change_to_period_response.py +116 -0
- huaweicloudsdkdrs/v5/model/check_data_filter_response.py +3 -3
- huaweicloudsdkdrs/v5/model/clean_alarms_request.py +171 -0
- huaweicloudsdkdrs/v5/model/clean_alarms_response.py +116 -0
- huaweicloudsdkdrs/v5/model/collect_columns_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +3 -3
- huaweicloudsdkdrs/v5/model/collect_position_async_response.py +3 -3
- huaweicloudsdkdrs/v5/model/connection_config.py +115 -0
- huaweicloudsdkdrs/v5/model/connection_resp.py +355 -0
- huaweicloudsdkdrs/v5/model/create_connection_req.py +324 -0
- huaweicloudsdkdrs/v5/model/create_connection_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_connection_response.py +361 -0
- huaweicloudsdkdrs/v5/model/create_offline_task_req.py +182 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_request.py +140 -0
- huaweicloudsdkdrs/v5/model/create_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py +311 -0
- huaweicloudsdkdrs/v5/model/delete_connection_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/delete_replication_job_response.py +116 -0
- huaweicloudsdkdrs/v5/model/list_connections_request.py +492 -0
- huaweicloudsdkdrs/v5/model/list_connections_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_request.py +288 -0
- huaweicloudsdkdrs/v5/model/list_job_ddls_response.py +145 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py +463 -0
- huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py +145 -0
- huaweicloudsdkdrs/v5/model/modify_connection_request.py +168 -0
- huaweicloudsdkdrs/v5/model/modify_connection_response.py +116 -0
- huaweicloudsdkdrs/v5/model/modify_offline_task_req.py +143 -0
- huaweicloudsdkdrs/v5/model/offline_task_info.py +342 -0
- huaweicloudsdkdrs/v5/model/resource_tag.py +3 -3
- huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +3 -3
- huaweicloudsdkdrs/v5/model/show_replication_job_request.py +143 -0
- huaweicloudsdkdrs/v5/model/show_replication_job_response.py +390 -0
- huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +3 -3
- huaweicloudsdkdrs/v5/model/to_period_req.py +198 -0
- huaweicloudsdkdrs/v5/model/update_connection_req.py +327 -0
- huaweicloudsdkdrs/v5/model/update_data_progress_response.py +3 -3
- huaweicloudsdkdrs/v5/model/update_replication_job_request.py +168 -0
- huaweicloudsdkdrs/v5/model/update_replication_job_response.py +116 -0
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/METADATA +2 -2
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/RECORD +59 -19
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.118.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,355 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ConnectionResp:
|
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
|
+
'connection_id': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'create_time': 'int',
|
23
|
+
'db_type': 'str',
|
24
|
+
'config': 'ConnectionConfig',
|
25
|
+
'endpoint': 'BaseEndpoint',
|
26
|
+
'vpc': 'CloudVpcInfo',
|
27
|
+
'ssl': 'EndpointSslConfig',
|
28
|
+
'enterprise_project_id': 'str',
|
29
|
+
'description': 'str'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'connection_id': 'connection_id',
|
34
|
+
'name': 'name',
|
35
|
+
'create_time': 'create_time',
|
36
|
+
'db_type': 'db_type',
|
37
|
+
'config': 'config',
|
38
|
+
'endpoint': 'endpoint',
|
39
|
+
'vpc': 'vpc',
|
40
|
+
'ssl': 'ssl',
|
41
|
+
'enterprise_project_id': 'enterprise_project_id',
|
42
|
+
'description': 'description'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, connection_id=None, name=None, create_time=None, db_type=None, config=None, endpoint=None, vpc=None, ssl=None, enterprise_project_id=None, description=None):
|
46
|
+
"""ConnectionResp
|
47
|
+
|
48
|
+
The model defined in huaweicloud sdk
|
49
|
+
|
50
|
+
:param connection_id: 连接ID。
|
51
|
+
:type connection_id: str
|
52
|
+
:param name: 连接名称。
|
53
|
+
:type name: str
|
54
|
+
:param create_time: 连接创建时间,格式为时间戳。
|
55
|
+
:type create_time: int
|
56
|
+
:param db_type: 连接类型。
|
57
|
+
:type db_type: str
|
58
|
+
:param config:
|
59
|
+
:type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
|
60
|
+
:param endpoint:
|
61
|
+
:type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
|
62
|
+
:param vpc:
|
63
|
+
:type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
|
64
|
+
:param ssl:
|
65
|
+
:type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
|
66
|
+
:param enterprise_project_id: 企业项目ID。
|
67
|
+
:type enterprise_project_id: str
|
68
|
+
:param description: 描述。
|
69
|
+
:type description: str
|
70
|
+
"""
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
self._connection_id = None
|
75
|
+
self._name = None
|
76
|
+
self._create_time = None
|
77
|
+
self._db_type = None
|
78
|
+
self._config = None
|
79
|
+
self._endpoint = None
|
80
|
+
self._vpc = None
|
81
|
+
self._ssl = None
|
82
|
+
self._enterprise_project_id = None
|
83
|
+
self._description = None
|
84
|
+
self.discriminator = None
|
85
|
+
|
86
|
+
self.connection_id = connection_id
|
87
|
+
self.name = name
|
88
|
+
self.create_time = create_time
|
89
|
+
self.db_type = db_type
|
90
|
+
if config is not None:
|
91
|
+
self.config = config
|
92
|
+
self.endpoint = endpoint
|
93
|
+
if vpc is not None:
|
94
|
+
self.vpc = vpc
|
95
|
+
if ssl is not None:
|
96
|
+
self.ssl = ssl
|
97
|
+
if enterprise_project_id is not None:
|
98
|
+
self.enterprise_project_id = enterprise_project_id
|
99
|
+
if description is not None:
|
100
|
+
self.description = description
|
101
|
+
|
102
|
+
@property
|
103
|
+
def connection_id(self):
|
104
|
+
"""Gets the connection_id of this ConnectionResp.
|
105
|
+
|
106
|
+
连接ID。
|
107
|
+
|
108
|
+
:return: The connection_id of this ConnectionResp.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._connection_id
|
112
|
+
|
113
|
+
@connection_id.setter
|
114
|
+
def connection_id(self, connection_id):
|
115
|
+
"""Sets the connection_id of this ConnectionResp.
|
116
|
+
|
117
|
+
连接ID。
|
118
|
+
|
119
|
+
:param connection_id: The connection_id of this ConnectionResp.
|
120
|
+
:type connection_id: str
|
121
|
+
"""
|
122
|
+
self._connection_id = connection_id
|
123
|
+
|
124
|
+
@property
|
125
|
+
def name(self):
|
126
|
+
"""Gets the name of this ConnectionResp.
|
127
|
+
|
128
|
+
连接名称。
|
129
|
+
|
130
|
+
:return: The name of this ConnectionResp.
|
131
|
+
:rtype: str
|
132
|
+
"""
|
133
|
+
return self._name
|
134
|
+
|
135
|
+
@name.setter
|
136
|
+
def name(self, name):
|
137
|
+
"""Sets the name of this ConnectionResp.
|
138
|
+
|
139
|
+
连接名称。
|
140
|
+
|
141
|
+
:param name: The name of this ConnectionResp.
|
142
|
+
:type name: str
|
143
|
+
"""
|
144
|
+
self._name = name
|
145
|
+
|
146
|
+
@property
|
147
|
+
def create_time(self):
|
148
|
+
"""Gets the create_time of this ConnectionResp.
|
149
|
+
|
150
|
+
连接创建时间,格式为时间戳。
|
151
|
+
|
152
|
+
:return: The create_time of this ConnectionResp.
|
153
|
+
:rtype: int
|
154
|
+
"""
|
155
|
+
return self._create_time
|
156
|
+
|
157
|
+
@create_time.setter
|
158
|
+
def create_time(self, create_time):
|
159
|
+
"""Sets the create_time of this ConnectionResp.
|
160
|
+
|
161
|
+
连接创建时间,格式为时间戳。
|
162
|
+
|
163
|
+
:param create_time: The create_time of this ConnectionResp.
|
164
|
+
:type create_time: int
|
165
|
+
"""
|
166
|
+
self._create_time = create_time
|
167
|
+
|
168
|
+
@property
|
169
|
+
def db_type(self):
|
170
|
+
"""Gets the db_type of this ConnectionResp.
|
171
|
+
|
172
|
+
连接类型。
|
173
|
+
|
174
|
+
:return: The db_type of this ConnectionResp.
|
175
|
+
:rtype: str
|
176
|
+
"""
|
177
|
+
return self._db_type
|
178
|
+
|
179
|
+
@db_type.setter
|
180
|
+
def db_type(self, db_type):
|
181
|
+
"""Sets the db_type of this ConnectionResp.
|
182
|
+
|
183
|
+
连接类型。
|
184
|
+
|
185
|
+
:param db_type: The db_type of this ConnectionResp.
|
186
|
+
:type db_type: str
|
187
|
+
"""
|
188
|
+
self._db_type = db_type
|
189
|
+
|
190
|
+
@property
|
191
|
+
def config(self):
|
192
|
+
"""Gets the config of this ConnectionResp.
|
193
|
+
|
194
|
+
:return: The config of this ConnectionResp.
|
195
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
|
196
|
+
"""
|
197
|
+
return self._config
|
198
|
+
|
199
|
+
@config.setter
|
200
|
+
def config(self, config):
|
201
|
+
"""Sets the config of this ConnectionResp.
|
202
|
+
|
203
|
+
:param config: The config of this ConnectionResp.
|
204
|
+
:type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
|
205
|
+
"""
|
206
|
+
self._config = config
|
207
|
+
|
208
|
+
@property
|
209
|
+
def endpoint(self):
|
210
|
+
"""Gets the endpoint of this ConnectionResp.
|
211
|
+
|
212
|
+
:return: The endpoint of this ConnectionResp.
|
213
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
|
214
|
+
"""
|
215
|
+
return self._endpoint
|
216
|
+
|
217
|
+
@endpoint.setter
|
218
|
+
def endpoint(self, endpoint):
|
219
|
+
"""Sets the endpoint of this ConnectionResp.
|
220
|
+
|
221
|
+
:param endpoint: The endpoint of this ConnectionResp.
|
222
|
+
:type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
|
223
|
+
"""
|
224
|
+
self._endpoint = endpoint
|
225
|
+
|
226
|
+
@property
|
227
|
+
def vpc(self):
|
228
|
+
"""Gets the vpc of this ConnectionResp.
|
229
|
+
|
230
|
+
:return: The vpc of this ConnectionResp.
|
231
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
|
232
|
+
"""
|
233
|
+
return self._vpc
|
234
|
+
|
235
|
+
@vpc.setter
|
236
|
+
def vpc(self, vpc):
|
237
|
+
"""Sets the vpc of this ConnectionResp.
|
238
|
+
|
239
|
+
:param vpc: The vpc of this ConnectionResp.
|
240
|
+
:type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
|
241
|
+
"""
|
242
|
+
self._vpc = vpc
|
243
|
+
|
244
|
+
@property
|
245
|
+
def ssl(self):
|
246
|
+
"""Gets the ssl of this ConnectionResp.
|
247
|
+
|
248
|
+
:return: The ssl of this ConnectionResp.
|
249
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
|
250
|
+
"""
|
251
|
+
return self._ssl
|
252
|
+
|
253
|
+
@ssl.setter
|
254
|
+
def ssl(self, ssl):
|
255
|
+
"""Sets the ssl of this ConnectionResp.
|
256
|
+
|
257
|
+
:param ssl: The ssl of this ConnectionResp.
|
258
|
+
:type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
|
259
|
+
"""
|
260
|
+
self._ssl = ssl
|
261
|
+
|
262
|
+
@property
|
263
|
+
def enterprise_project_id(self):
|
264
|
+
"""Gets the enterprise_project_id of this ConnectionResp.
|
265
|
+
|
266
|
+
企业项目ID。
|
267
|
+
|
268
|
+
:return: The enterprise_project_id of this ConnectionResp.
|
269
|
+
:rtype: str
|
270
|
+
"""
|
271
|
+
return self._enterprise_project_id
|
272
|
+
|
273
|
+
@enterprise_project_id.setter
|
274
|
+
def enterprise_project_id(self, enterprise_project_id):
|
275
|
+
"""Sets the enterprise_project_id of this ConnectionResp.
|
276
|
+
|
277
|
+
企业项目ID。
|
278
|
+
|
279
|
+
:param enterprise_project_id: The enterprise_project_id of this ConnectionResp.
|
280
|
+
:type enterprise_project_id: str
|
281
|
+
"""
|
282
|
+
self._enterprise_project_id = enterprise_project_id
|
283
|
+
|
284
|
+
@property
|
285
|
+
def description(self):
|
286
|
+
"""Gets the description of this ConnectionResp.
|
287
|
+
|
288
|
+
描述。
|
289
|
+
|
290
|
+
:return: The description of this ConnectionResp.
|
291
|
+
:rtype: str
|
292
|
+
"""
|
293
|
+
return self._description
|
294
|
+
|
295
|
+
@description.setter
|
296
|
+
def description(self, description):
|
297
|
+
"""Sets the description of this ConnectionResp.
|
298
|
+
|
299
|
+
描述。
|
300
|
+
|
301
|
+
:param description: The description of this ConnectionResp.
|
302
|
+
:type description: str
|
303
|
+
"""
|
304
|
+
self._description = description
|
305
|
+
|
306
|
+
def to_dict(self):
|
307
|
+
"""Returns the model properties as a dict"""
|
308
|
+
result = {}
|
309
|
+
|
310
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
311
|
+
value = getattr(self, attr)
|
312
|
+
if isinstance(value, list):
|
313
|
+
result[attr] = list(map(
|
314
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
315
|
+
value
|
316
|
+
))
|
317
|
+
elif hasattr(value, "to_dict"):
|
318
|
+
result[attr] = value.to_dict()
|
319
|
+
elif isinstance(value, dict):
|
320
|
+
result[attr] = dict(map(
|
321
|
+
lambda item: (item[0], item[1].to_dict())
|
322
|
+
if hasattr(item[1], "to_dict") else item,
|
323
|
+
value.items()
|
324
|
+
))
|
325
|
+
else:
|
326
|
+
if attr in self.sensitive_list:
|
327
|
+
result[attr] = "****"
|
328
|
+
else:
|
329
|
+
result[attr] = value
|
330
|
+
|
331
|
+
return result
|
332
|
+
|
333
|
+
def to_str(self):
|
334
|
+
"""Returns the string representation of the model"""
|
335
|
+
import simplejson as json
|
336
|
+
if six.PY2:
|
337
|
+
import sys
|
338
|
+
reload(sys)
|
339
|
+
sys.setdefaultencoding("utf-8")
|
340
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
341
|
+
|
342
|
+
def __repr__(self):
|
343
|
+
"""For `print`"""
|
344
|
+
return self.to_str()
|
345
|
+
|
346
|
+
def __eq__(self, other):
|
347
|
+
"""Returns true if both objects are equal"""
|
348
|
+
if not isinstance(other, ConnectionResp):
|
349
|
+
return False
|
350
|
+
|
351
|
+
return self.__dict__ == other.__dict__
|
352
|
+
|
353
|
+
def __ne__(self, other):
|
354
|
+
"""Returns true if both objects are not equal"""
|
355
|
+
return not self == other
|
@@ -0,0 +1,324 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateConnectionReq:
|
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
|
+
'name': 'str',
|
21
|
+
'db_type': 'str',
|
22
|
+
'config': 'ConnectionConfig',
|
23
|
+
'description': 'str',
|
24
|
+
'endpoint': 'BaseEndpoint',
|
25
|
+
'vpc': 'CloudVpcInfo',
|
26
|
+
'ssl': 'EndpointSslConfig',
|
27
|
+
'cloud': 'CloudBaseInfo',
|
28
|
+
'enterprise_project_id': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'name': 'name',
|
33
|
+
'db_type': 'db_type',
|
34
|
+
'config': 'config',
|
35
|
+
'description': 'description',
|
36
|
+
'endpoint': 'endpoint',
|
37
|
+
'vpc': 'vpc',
|
38
|
+
'ssl': 'ssl',
|
39
|
+
'cloud': 'cloud',
|
40
|
+
'enterprise_project_id': 'enterprise_project_id'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, name=None, db_type=None, config=None, description=None, endpoint=None, vpc=None, ssl=None, cloud=None, enterprise_project_id=None):
|
44
|
+
"""CreateConnectionReq
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param name: 连接名称。 约束:连接名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。
|
49
|
+
:type name: str
|
50
|
+
:param db_type: 连接类型,包含: - mysql - postgresql - mongodb - oracle
|
51
|
+
:type db_type: str
|
52
|
+
:param config:
|
53
|
+
:type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
|
54
|
+
:param description: 描述,长度不能超过255个字符。
|
55
|
+
:type description: str
|
56
|
+
:param endpoint:
|
57
|
+
:type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
|
58
|
+
:param vpc:
|
59
|
+
:type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
|
60
|
+
:param ssl:
|
61
|
+
:type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
|
62
|
+
:param cloud:
|
63
|
+
:type cloud: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo`
|
64
|
+
:param enterprise_project_id: 企业项目ID。
|
65
|
+
:type enterprise_project_id: str
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._name = None
|
71
|
+
self._db_type = None
|
72
|
+
self._config = None
|
73
|
+
self._description = None
|
74
|
+
self._endpoint = None
|
75
|
+
self._vpc = None
|
76
|
+
self._ssl = None
|
77
|
+
self._cloud = None
|
78
|
+
self._enterprise_project_id = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
self.name = name
|
82
|
+
self.db_type = db_type
|
83
|
+
if config is not None:
|
84
|
+
self.config = config
|
85
|
+
if description is not None:
|
86
|
+
self.description = description
|
87
|
+
self.endpoint = endpoint
|
88
|
+
if vpc is not None:
|
89
|
+
self.vpc = vpc
|
90
|
+
if ssl is not None:
|
91
|
+
self.ssl = ssl
|
92
|
+
if cloud is not None:
|
93
|
+
self.cloud = cloud
|
94
|
+
if enterprise_project_id is not None:
|
95
|
+
self.enterprise_project_id = enterprise_project_id
|
96
|
+
|
97
|
+
@property
|
98
|
+
def name(self):
|
99
|
+
"""Gets the name of this CreateConnectionReq.
|
100
|
+
|
101
|
+
连接名称。 约束:连接名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。
|
102
|
+
|
103
|
+
:return: The name of this CreateConnectionReq.
|
104
|
+
:rtype: str
|
105
|
+
"""
|
106
|
+
return self._name
|
107
|
+
|
108
|
+
@name.setter
|
109
|
+
def name(self, name):
|
110
|
+
"""Sets the name of this CreateConnectionReq.
|
111
|
+
|
112
|
+
连接名称。 约束:连接名称在4位到50位之间,不区分大小写,可以包含字母、数字、中划线或下划线,不能包括其他特殊字符。
|
113
|
+
|
114
|
+
:param name: The name of this CreateConnectionReq.
|
115
|
+
:type name: str
|
116
|
+
"""
|
117
|
+
self._name = name
|
118
|
+
|
119
|
+
@property
|
120
|
+
def db_type(self):
|
121
|
+
"""Gets the db_type of this CreateConnectionReq.
|
122
|
+
|
123
|
+
连接类型,包含: - mysql - postgresql - mongodb - oracle
|
124
|
+
|
125
|
+
:return: The db_type of this CreateConnectionReq.
|
126
|
+
:rtype: str
|
127
|
+
"""
|
128
|
+
return self._db_type
|
129
|
+
|
130
|
+
@db_type.setter
|
131
|
+
def db_type(self, db_type):
|
132
|
+
"""Sets the db_type of this CreateConnectionReq.
|
133
|
+
|
134
|
+
连接类型,包含: - mysql - postgresql - mongodb - oracle
|
135
|
+
|
136
|
+
:param db_type: The db_type of this CreateConnectionReq.
|
137
|
+
:type db_type: str
|
138
|
+
"""
|
139
|
+
self._db_type = db_type
|
140
|
+
|
141
|
+
@property
|
142
|
+
def config(self):
|
143
|
+
"""Gets the config of this CreateConnectionReq.
|
144
|
+
|
145
|
+
:return: The config of this CreateConnectionReq.
|
146
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
|
147
|
+
"""
|
148
|
+
return self._config
|
149
|
+
|
150
|
+
@config.setter
|
151
|
+
def config(self, config):
|
152
|
+
"""Sets the config of this CreateConnectionReq.
|
153
|
+
|
154
|
+
:param config: The config of this CreateConnectionReq.
|
155
|
+
:type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
|
156
|
+
"""
|
157
|
+
self._config = config
|
158
|
+
|
159
|
+
@property
|
160
|
+
def description(self):
|
161
|
+
"""Gets the description of this CreateConnectionReq.
|
162
|
+
|
163
|
+
描述,长度不能超过255个字符。
|
164
|
+
|
165
|
+
:return: The description of this CreateConnectionReq.
|
166
|
+
:rtype: str
|
167
|
+
"""
|
168
|
+
return self._description
|
169
|
+
|
170
|
+
@description.setter
|
171
|
+
def description(self, description):
|
172
|
+
"""Sets the description of this CreateConnectionReq.
|
173
|
+
|
174
|
+
描述,长度不能超过255个字符。
|
175
|
+
|
176
|
+
:param description: The description of this CreateConnectionReq.
|
177
|
+
:type description: str
|
178
|
+
"""
|
179
|
+
self._description = description
|
180
|
+
|
181
|
+
@property
|
182
|
+
def endpoint(self):
|
183
|
+
"""Gets the endpoint of this CreateConnectionReq.
|
184
|
+
|
185
|
+
:return: The endpoint of this CreateConnectionReq.
|
186
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
|
187
|
+
"""
|
188
|
+
return self._endpoint
|
189
|
+
|
190
|
+
@endpoint.setter
|
191
|
+
def endpoint(self, endpoint):
|
192
|
+
"""Sets the endpoint of this CreateConnectionReq.
|
193
|
+
|
194
|
+
:param endpoint: The endpoint of this CreateConnectionReq.
|
195
|
+
:type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
|
196
|
+
"""
|
197
|
+
self._endpoint = endpoint
|
198
|
+
|
199
|
+
@property
|
200
|
+
def vpc(self):
|
201
|
+
"""Gets the vpc of this CreateConnectionReq.
|
202
|
+
|
203
|
+
:return: The vpc of this CreateConnectionReq.
|
204
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
|
205
|
+
"""
|
206
|
+
return self._vpc
|
207
|
+
|
208
|
+
@vpc.setter
|
209
|
+
def vpc(self, vpc):
|
210
|
+
"""Sets the vpc of this CreateConnectionReq.
|
211
|
+
|
212
|
+
:param vpc: The vpc of this CreateConnectionReq.
|
213
|
+
:type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
|
214
|
+
"""
|
215
|
+
self._vpc = vpc
|
216
|
+
|
217
|
+
@property
|
218
|
+
def ssl(self):
|
219
|
+
"""Gets the ssl of this CreateConnectionReq.
|
220
|
+
|
221
|
+
:return: The ssl of this CreateConnectionReq.
|
222
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
|
223
|
+
"""
|
224
|
+
return self._ssl
|
225
|
+
|
226
|
+
@ssl.setter
|
227
|
+
def ssl(self, ssl):
|
228
|
+
"""Sets the ssl of this CreateConnectionReq.
|
229
|
+
|
230
|
+
:param ssl: The ssl of this CreateConnectionReq.
|
231
|
+
:type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
|
232
|
+
"""
|
233
|
+
self._ssl = ssl
|
234
|
+
|
235
|
+
@property
|
236
|
+
def cloud(self):
|
237
|
+
"""Gets the cloud of this CreateConnectionReq.
|
238
|
+
|
239
|
+
:return: The cloud of this CreateConnectionReq.
|
240
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo`
|
241
|
+
"""
|
242
|
+
return self._cloud
|
243
|
+
|
244
|
+
@cloud.setter
|
245
|
+
def cloud(self, cloud):
|
246
|
+
"""Sets the cloud of this CreateConnectionReq.
|
247
|
+
|
248
|
+
:param cloud: The cloud of this CreateConnectionReq.
|
249
|
+
:type cloud: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo`
|
250
|
+
"""
|
251
|
+
self._cloud = cloud
|
252
|
+
|
253
|
+
@property
|
254
|
+
def enterprise_project_id(self):
|
255
|
+
"""Gets the enterprise_project_id of this CreateConnectionReq.
|
256
|
+
|
257
|
+
企业项目ID。
|
258
|
+
|
259
|
+
:return: The enterprise_project_id of this CreateConnectionReq.
|
260
|
+
:rtype: str
|
261
|
+
"""
|
262
|
+
return self._enterprise_project_id
|
263
|
+
|
264
|
+
@enterprise_project_id.setter
|
265
|
+
def enterprise_project_id(self, enterprise_project_id):
|
266
|
+
"""Sets the enterprise_project_id of this CreateConnectionReq.
|
267
|
+
|
268
|
+
企业项目ID。
|
269
|
+
|
270
|
+
:param enterprise_project_id: The enterprise_project_id of this CreateConnectionReq.
|
271
|
+
:type enterprise_project_id: str
|
272
|
+
"""
|
273
|
+
self._enterprise_project_id = enterprise_project_id
|
274
|
+
|
275
|
+
def to_dict(self):
|
276
|
+
"""Returns the model properties as a dict"""
|
277
|
+
result = {}
|
278
|
+
|
279
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
280
|
+
value = getattr(self, attr)
|
281
|
+
if isinstance(value, list):
|
282
|
+
result[attr] = list(map(
|
283
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
284
|
+
value
|
285
|
+
))
|
286
|
+
elif hasattr(value, "to_dict"):
|
287
|
+
result[attr] = value.to_dict()
|
288
|
+
elif isinstance(value, dict):
|
289
|
+
result[attr] = dict(map(
|
290
|
+
lambda item: (item[0], item[1].to_dict())
|
291
|
+
if hasattr(item[1], "to_dict") else item,
|
292
|
+
value.items()
|
293
|
+
))
|
294
|
+
else:
|
295
|
+
if attr in self.sensitive_list:
|
296
|
+
result[attr] = "****"
|
297
|
+
else:
|
298
|
+
result[attr] = value
|
299
|
+
|
300
|
+
return result
|
301
|
+
|
302
|
+
def to_str(self):
|
303
|
+
"""Returns the string representation of the model"""
|
304
|
+
import simplejson as json
|
305
|
+
if six.PY2:
|
306
|
+
import sys
|
307
|
+
reload(sys)
|
308
|
+
sys.setdefaultencoding("utf-8")
|
309
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
310
|
+
|
311
|
+
def __repr__(self):
|
312
|
+
"""For `print`"""
|
313
|
+
return self.to_str()
|
314
|
+
|
315
|
+
def __eq__(self, other):
|
316
|
+
"""Returns true if both objects are equal"""
|
317
|
+
if not isinstance(other, CreateConnectionReq):
|
318
|
+
return False
|
319
|
+
|
320
|
+
return self.__dict__ == other.__dict__
|
321
|
+
|
322
|
+
def __ne__(self, other):
|
323
|
+
"""Returns true if both objects are not equal"""
|
324
|
+
return not self == other
|