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,140 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateConnectionRequest:
|
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
|
+
'body': 'CreateConnectionReq'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'x_language': 'X-Language',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, x_language=None, body=None):
|
30
|
+
"""CreateConnectionRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param x_language: 请求语言类型。
|
35
|
+
:type x_language: str
|
36
|
+
:param body: Body of the CreateConnectionRequest
|
37
|
+
:type body: :class:`huaweicloudsdkdrs.v5.CreateConnectionReq`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._x_language = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if x_language is not None:
|
47
|
+
self.x_language = x_language
|
48
|
+
if body is not None:
|
49
|
+
self.body = body
|
50
|
+
|
51
|
+
@property
|
52
|
+
def x_language(self):
|
53
|
+
"""Gets the x_language of this CreateConnectionRequest.
|
54
|
+
|
55
|
+
请求语言类型。
|
56
|
+
|
57
|
+
:return: The x_language of this CreateConnectionRequest.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._x_language
|
61
|
+
|
62
|
+
@x_language.setter
|
63
|
+
def x_language(self, x_language):
|
64
|
+
"""Sets the x_language of this CreateConnectionRequest.
|
65
|
+
|
66
|
+
请求语言类型。
|
67
|
+
|
68
|
+
:param x_language: The x_language of this CreateConnectionRequest.
|
69
|
+
:type x_language: str
|
70
|
+
"""
|
71
|
+
self._x_language = x_language
|
72
|
+
|
73
|
+
@property
|
74
|
+
def body(self):
|
75
|
+
"""Gets the body of this CreateConnectionRequest.
|
76
|
+
|
77
|
+
:return: The body of this CreateConnectionRequest.
|
78
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CreateConnectionReq`
|
79
|
+
"""
|
80
|
+
return self._body
|
81
|
+
|
82
|
+
@body.setter
|
83
|
+
def body(self, body):
|
84
|
+
"""Sets the body of this CreateConnectionRequest.
|
85
|
+
|
86
|
+
:param body: The body of this CreateConnectionRequest.
|
87
|
+
:type body: :class:`huaweicloudsdkdrs.v5.CreateConnectionReq`
|
88
|
+
"""
|
89
|
+
self._body = body
|
90
|
+
|
91
|
+
def to_dict(self):
|
92
|
+
"""Returns the model properties as a dict"""
|
93
|
+
result = {}
|
94
|
+
|
95
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
96
|
+
value = getattr(self, attr)
|
97
|
+
if isinstance(value, list):
|
98
|
+
result[attr] = list(map(
|
99
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
100
|
+
value
|
101
|
+
))
|
102
|
+
elif hasattr(value, "to_dict"):
|
103
|
+
result[attr] = value.to_dict()
|
104
|
+
elif isinstance(value, dict):
|
105
|
+
result[attr] = dict(map(
|
106
|
+
lambda item: (item[0], item[1].to_dict())
|
107
|
+
if hasattr(item[1], "to_dict") else item,
|
108
|
+
value.items()
|
109
|
+
))
|
110
|
+
else:
|
111
|
+
if attr in self.sensitive_list:
|
112
|
+
result[attr] = "****"
|
113
|
+
else:
|
114
|
+
result[attr] = value
|
115
|
+
|
116
|
+
return result
|
117
|
+
|
118
|
+
def to_str(self):
|
119
|
+
"""Returns the string representation of the model"""
|
120
|
+
import simplejson as json
|
121
|
+
if six.PY2:
|
122
|
+
import sys
|
123
|
+
reload(sys)
|
124
|
+
sys.setdefaultencoding("utf-8")
|
125
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
126
|
+
|
127
|
+
def __repr__(self):
|
128
|
+
"""For `print`"""
|
129
|
+
return self.to_str()
|
130
|
+
|
131
|
+
def __eq__(self, other):
|
132
|
+
"""Returns true if both objects are equal"""
|
133
|
+
if not isinstance(other, CreateConnectionRequest):
|
134
|
+
return False
|
135
|
+
|
136
|
+
return self.__dict__ == other.__dict__
|
137
|
+
|
138
|
+
def __ne__(self, other):
|
139
|
+
"""Returns true if both objects are not equal"""
|
140
|
+
return not self == other
|
@@ -0,0 +1,361 @@
|
|
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 CreateConnectionResponse(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
|
+
'connection_id': 'str',
|
22
|
+
'name': 'str',
|
23
|
+
'create_time': 'int',
|
24
|
+
'db_type': 'str',
|
25
|
+
'config': 'ConnectionConfig',
|
26
|
+
'endpoint': 'BaseEndpoint',
|
27
|
+
'vpc': 'CloudVpcInfo',
|
28
|
+
'ssl': 'EndpointSslConfig',
|
29
|
+
'enterprise_project_id': 'str',
|
30
|
+
'description': 'str'
|
31
|
+
}
|
32
|
+
|
33
|
+
attribute_map = {
|
34
|
+
'connection_id': 'connection_id',
|
35
|
+
'name': 'name',
|
36
|
+
'create_time': 'create_time',
|
37
|
+
'db_type': 'db_type',
|
38
|
+
'config': 'config',
|
39
|
+
'endpoint': 'endpoint',
|
40
|
+
'vpc': 'vpc',
|
41
|
+
'ssl': 'ssl',
|
42
|
+
'enterprise_project_id': 'enterprise_project_id',
|
43
|
+
'description': 'description'
|
44
|
+
}
|
45
|
+
|
46
|
+
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):
|
47
|
+
"""CreateConnectionResponse
|
48
|
+
|
49
|
+
The model defined in huaweicloud sdk
|
50
|
+
|
51
|
+
:param connection_id: 连接ID。
|
52
|
+
:type connection_id: str
|
53
|
+
:param name: 连接名称。
|
54
|
+
:type name: str
|
55
|
+
:param create_time: 连接创建时间,格式为时间戳。
|
56
|
+
:type create_time: int
|
57
|
+
:param db_type: 连接类型。
|
58
|
+
:type db_type: str
|
59
|
+
:param config:
|
60
|
+
:type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
|
61
|
+
:param endpoint:
|
62
|
+
:type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
|
63
|
+
:param vpc:
|
64
|
+
:type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
|
65
|
+
:param ssl:
|
66
|
+
:type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
|
67
|
+
:param enterprise_project_id: 企业项目ID。
|
68
|
+
:type enterprise_project_id: str
|
69
|
+
:param description: 描述。
|
70
|
+
:type description: str
|
71
|
+
"""
|
72
|
+
|
73
|
+
super(CreateConnectionResponse, self).__init__()
|
74
|
+
|
75
|
+
self._connection_id = None
|
76
|
+
self._name = None
|
77
|
+
self._create_time = None
|
78
|
+
self._db_type = None
|
79
|
+
self._config = None
|
80
|
+
self._endpoint = None
|
81
|
+
self._vpc = None
|
82
|
+
self._ssl = None
|
83
|
+
self._enterprise_project_id = None
|
84
|
+
self._description = None
|
85
|
+
self.discriminator = None
|
86
|
+
|
87
|
+
if connection_id is not None:
|
88
|
+
self.connection_id = connection_id
|
89
|
+
if name is not None:
|
90
|
+
self.name = name
|
91
|
+
if create_time is not None:
|
92
|
+
self.create_time = create_time
|
93
|
+
if db_type is not None:
|
94
|
+
self.db_type = db_type
|
95
|
+
if config is not None:
|
96
|
+
self.config = config
|
97
|
+
if endpoint is not None:
|
98
|
+
self.endpoint = endpoint
|
99
|
+
if vpc is not None:
|
100
|
+
self.vpc = vpc
|
101
|
+
if ssl is not None:
|
102
|
+
self.ssl = ssl
|
103
|
+
if enterprise_project_id is not None:
|
104
|
+
self.enterprise_project_id = enterprise_project_id
|
105
|
+
if description is not None:
|
106
|
+
self.description = description
|
107
|
+
|
108
|
+
@property
|
109
|
+
def connection_id(self):
|
110
|
+
"""Gets the connection_id of this CreateConnectionResponse.
|
111
|
+
|
112
|
+
连接ID。
|
113
|
+
|
114
|
+
:return: The connection_id of this CreateConnectionResponse.
|
115
|
+
:rtype: str
|
116
|
+
"""
|
117
|
+
return self._connection_id
|
118
|
+
|
119
|
+
@connection_id.setter
|
120
|
+
def connection_id(self, connection_id):
|
121
|
+
"""Sets the connection_id of this CreateConnectionResponse.
|
122
|
+
|
123
|
+
连接ID。
|
124
|
+
|
125
|
+
:param connection_id: The connection_id of this CreateConnectionResponse.
|
126
|
+
:type connection_id: str
|
127
|
+
"""
|
128
|
+
self._connection_id = connection_id
|
129
|
+
|
130
|
+
@property
|
131
|
+
def name(self):
|
132
|
+
"""Gets the name of this CreateConnectionResponse.
|
133
|
+
|
134
|
+
连接名称。
|
135
|
+
|
136
|
+
:return: The name of this CreateConnectionResponse.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._name
|
140
|
+
|
141
|
+
@name.setter
|
142
|
+
def name(self, name):
|
143
|
+
"""Sets the name of this CreateConnectionResponse.
|
144
|
+
|
145
|
+
连接名称。
|
146
|
+
|
147
|
+
:param name: The name of this CreateConnectionResponse.
|
148
|
+
:type name: str
|
149
|
+
"""
|
150
|
+
self._name = name
|
151
|
+
|
152
|
+
@property
|
153
|
+
def create_time(self):
|
154
|
+
"""Gets the create_time of this CreateConnectionResponse.
|
155
|
+
|
156
|
+
连接创建时间,格式为时间戳。
|
157
|
+
|
158
|
+
:return: The create_time of this CreateConnectionResponse.
|
159
|
+
:rtype: int
|
160
|
+
"""
|
161
|
+
return self._create_time
|
162
|
+
|
163
|
+
@create_time.setter
|
164
|
+
def create_time(self, create_time):
|
165
|
+
"""Sets the create_time of this CreateConnectionResponse.
|
166
|
+
|
167
|
+
连接创建时间,格式为时间戳。
|
168
|
+
|
169
|
+
:param create_time: The create_time of this CreateConnectionResponse.
|
170
|
+
:type create_time: int
|
171
|
+
"""
|
172
|
+
self._create_time = create_time
|
173
|
+
|
174
|
+
@property
|
175
|
+
def db_type(self):
|
176
|
+
"""Gets the db_type of this CreateConnectionResponse.
|
177
|
+
|
178
|
+
连接类型。
|
179
|
+
|
180
|
+
:return: The db_type of this CreateConnectionResponse.
|
181
|
+
:rtype: str
|
182
|
+
"""
|
183
|
+
return self._db_type
|
184
|
+
|
185
|
+
@db_type.setter
|
186
|
+
def db_type(self, db_type):
|
187
|
+
"""Sets the db_type of this CreateConnectionResponse.
|
188
|
+
|
189
|
+
连接类型。
|
190
|
+
|
191
|
+
:param db_type: The db_type of this CreateConnectionResponse.
|
192
|
+
:type db_type: str
|
193
|
+
"""
|
194
|
+
self._db_type = db_type
|
195
|
+
|
196
|
+
@property
|
197
|
+
def config(self):
|
198
|
+
"""Gets the config of this CreateConnectionResponse.
|
199
|
+
|
200
|
+
:return: The config of this CreateConnectionResponse.
|
201
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
|
202
|
+
"""
|
203
|
+
return self._config
|
204
|
+
|
205
|
+
@config.setter
|
206
|
+
def config(self, config):
|
207
|
+
"""Sets the config of this CreateConnectionResponse.
|
208
|
+
|
209
|
+
:param config: The config of this CreateConnectionResponse.
|
210
|
+
:type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
|
211
|
+
"""
|
212
|
+
self._config = config
|
213
|
+
|
214
|
+
@property
|
215
|
+
def endpoint(self):
|
216
|
+
"""Gets the endpoint of this CreateConnectionResponse.
|
217
|
+
|
218
|
+
:return: The endpoint of this CreateConnectionResponse.
|
219
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
|
220
|
+
"""
|
221
|
+
return self._endpoint
|
222
|
+
|
223
|
+
@endpoint.setter
|
224
|
+
def endpoint(self, endpoint):
|
225
|
+
"""Sets the endpoint of this CreateConnectionResponse.
|
226
|
+
|
227
|
+
:param endpoint: The endpoint of this CreateConnectionResponse.
|
228
|
+
:type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
|
229
|
+
"""
|
230
|
+
self._endpoint = endpoint
|
231
|
+
|
232
|
+
@property
|
233
|
+
def vpc(self):
|
234
|
+
"""Gets the vpc of this CreateConnectionResponse.
|
235
|
+
|
236
|
+
:return: The vpc of this CreateConnectionResponse.
|
237
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
|
238
|
+
"""
|
239
|
+
return self._vpc
|
240
|
+
|
241
|
+
@vpc.setter
|
242
|
+
def vpc(self, vpc):
|
243
|
+
"""Sets the vpc of this CreateConnectionResponse.
|
244
|
+
|
245
|
+
:param vpc: The vpc of this CreateConnectionResponse.
|
246
|
+
:type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
|
247
|
+
"""
|
248
|
+
self._vpc = vpc
|
249
|
+
|
250
|
+
@property
|
251
|
+
def ssl(self):
|
252
|
+
"""Gets the ssl of this CreateConnectionResponse.
|
253
|
+
|
254
|
+
:return: The ssl of this CreateConnectionResponse.
|
255
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
|
256
|
+
"""
|
257
|
+
return self._ssl
|
258
|
+
|
259
|
+
@ssl.setter
|
260
|
+
def ssl(self, ssl):
|
261
|
+
"""Sets the ssl of this CreateConnectionResponse.
|
262
|
+
|
263
|
+
:param ssl: The ssl of this CreateConnectionResponse.
|
264
|
+
:type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
|
265
|
+
"""
|
266
|
+
self._ssl = ssl
|
267
|
+
|
268
|
+
@property
|
269
|
+
def enterprise_project_id(self):
|
270
|
+
"""Gets the enterprise_project_id of this CreateConnectionResponse.
|
271
|
+
|
272
|
+
企业项目ID。
|
273
|
+
|
274
|
+
:return: The enterprise_project_id of this CreateConnectionResponse.
|
275
|
+
:rtype: str
|
276
|
+
"""
|
277
|
+
return self._enterprise_project_id
|
278
|
+
|
279
|
+
@enterprise_project_id.setter
|
280
|
+
def enterprise_project_id(self, enterprise_project_id):
|
281
|
+
"""Sets the enterprise_project_id of this CreateConnectionResponse.
|
282
|
+
|
283
|
+
企业项目ID。
|
284
|
+
|
285
|
+
:param enterprise_project_id: The enterprise_project_id of this CreateConnectionResponse.
|
286
|
+
:type enterprise_project_id: str
|
287
|
+
"""
|
288
|
+
self._enterprise_project_id = enterprise_project_id
|
289
|
+
|
290
|
+
@property
|
291
|
+
def description(self):
|
292
|
+
"""Gets the description of this CreateConnectionResponse.
|
293
|
+
|
294
|
+
描述。
|
295
|
+
|
296
|
+
:return: The description of this CreateConnectionResponse.
|
297
|
+
:rtype: str
|
298
|
+
"""
|
299
|
+
return self._description
|
300
|
+
|
301
|
+
@description.setter
|
302
|
+
def description(self, description):
|
303
|
+
"""Sets the description of this CreateConnectionResponse.
|
304
|
+
|
305
|
+
描述。
|
306
|
+
|
307
|
+
:param description: The description of this CreateConnectionResponse.
|
308
|
+
:type description: str
|
309
|
+
"""
|
310
|
+
self._description = description
|
311
|
+
|
312
|
+
def to_dict(self):
|
313
|
+
"""Returns the model properties as a dict"""
|
314
|
+
result = {}
|
315
|
+
|
316
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
317
|
+
value = getattr(self, attr)
|
318
|
+
if isinstance(value, list):
|
319
|
+
result[attr] = list(map(
|
320
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
321
|
+
value
|
322
|
+
))
|
323
|
+
elif hasattr(value, "to_dict"):
|
324
|
+
result[attr] = value.to_dict()
|
325
|
+
elif isinstance(value, dict):
|
326
|
+
result[attr] = dict(map(
|
327
|
+
lambda item: (item[0], item[1].to_dict())
|
328
|
+
if hasattr(item[1], "to_dict") else item,
|
329
|
+
value.items()
|
330
|
+
))
|
331
|
+
else:
|
332
|
+
if attr in self.sensitive_list:
|
333
|
+
result[attr] = "****"
|
334
|
+
else:
|
335
|
+
result[attr] = value
|
336
|
+
|
337
|
+
return result
|
338
|
+
|
339
|
+
def to_str(self):
|
340
|
+
"""Returns the string representation of the model"""
|
341
|
+
import simplejson as json
|
342
|
+
if six.PY2:
|
343
|
+
import sys
|
344
|
+
reload(sys)
|
345
|
+
sys.setdefaultencoding("utf-8")
|
346
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
347
|
+
|
348
|
+
def __repr__(self):
|
349
|
+
"""For `print`"""
|
350
|
+
return self.to_str()
|
351
|
+
|
352
|
+
def __eq__(self, other):
|
353
|
+
"""Returns true if both objects are equal"""
|
354
|
+
if not isinstance(other, CreateConnectionResponse):
|
355
|
+
return False
|
356
|
+
|
357
|
+
return self.__dict__ == other.__dict__
|
358
|
+
|
359
|
+
def __ne__(self, other):
|
360
|
+
"""Returns true if both objects are not equal"""
|
361
|
+
return not self == other
|
@@ -0,0 +1,182 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateOfflineTaskReq:
|
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
|
+
'base_info': 'BackupJobBaseInfo',
|
21
|
+
'target_db_info': 'BackupJobEndpointInfo',
|
22
|
+
'backup_info': 'BackupInfo',
|
23
|
+
'options': 'BackupRestoreOptionInfo'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'base_info': 'base_info',
|
28
|
+
'target_db_info': 'target_db_info',
|
29
|
+
'backup_info': 'backup_info',
|
30
|
+
'options': 'options'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, base_info=None, target_db_info=None, backup_info=None, options=None):
|
34
|
+
"""CreateOfflineTaskReq
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param base_info:
|
39
|
+
:type base_info: :class:`huaweicloudsdkdrs.v5.BackupJobBaseInfo`
|
40
|
+
:param target_db_info:
|
41
|
+
:type target_db_info: :class:`huaweicloudsdkdrs.v5.BackupJobEndpointInfo`
|
42
|
+
:param backup_info:
|
43
|
+
:type backup_info: :class:`huaweicloudsdkdrs.v5.BackupInfo`
|
44
|
+
:param options:
|
45
|
+
:type options: :class:`huaweicloudsdkdrs.v5.BackupRestoreOptionInfo`
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._base_info = None
|
51
|
+
self._target_db_info = None
|
52
|
+
self._backup_info = None
|
53
|
+
self._options = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.base_info = base_info
|
57
|
+
self.target_db_info = target_db_info
|
58
|
+
self.backup_info = backup_info
|
59
|
+
self.options = options
|
60
|
+
|
61
|
+
@property
|
62
|
+
def base_info(self):
|
63
|
+
"""Gets the base_info of this CreateOfflineTaskReq.
|
64
|
+
|
65
|
+
:return: The base_info of this CreateOfflineTaskReq.
|
66
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.BackupJobBaseInfo`
|
67
|
+
"""
|
68
|
+
return self._base_info
|
69
|
+
|
70
|
+
@base_info.setter
|
71
|
+
def base_info(self, base_info):
|
72
|
+
"""Sets the base_info of this CreateOfflineTaskReq.
|
73
|
+
|
74
|
+
:param base_info: The base_info of this CreateOfflineTaskReq.
|
75
|
+
:type base_info: :class:`huaweicloudsdkdrs.v5.BackupJobBaseInfo`
|
76
|
+
"""
|
77
|
+
self._base_info = base_info
|
78
|
+
|
79
|
+
@property
|
80
|
+
def target_db_info(self):
|
81
|
+
"""Gets the target_db_info of this CreateOfflineTaskReq.
|
82
|
+
|
83
|
+
:return: The target_db_info of this CreateOfflineTaskReq.
|
84
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.BackupJobEndpointInfo`
|
85
|
+
"""
|
86
|
+
return self._target_db_info
|
87
|
+
|
88
|
+
@target_db_info.setter
|
89
|
+
def target_db_info(self, target_db_info):
|
90
|
+
"""Sets the target_db_info of this CreateOfflineTaskReq.
|
91
|
+
|
92
|
+
:param target_db_info: The target_db_info of this CreateOfflineTaskReq.
|
93
|
+
:type target_db_info: :class:`huaweicloudsdkdrs.v5.BackupJobEndpointInfo`
|
94
|
+
"""
|
95
|
+
self._target_db_info = target_db_info
|
96
|
+
|
97
|
+
@property
|
98
|
+
def backup_info(self):
|
99
|
+
"""Gets the backup_info of this CreateOfflineTaskReq.
|
100
|
+
|
101
|
+
:return: The backup_info of this CreateOfflineTaskReq.
|
102
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.BackupInfo`
|
103
|
+
"""
|
104
|
+
return self._backup_info
|
105
|
+
|
106
|
+
@backup_info.setter
|
107
|
+
def backup_info(self, backup_info):
|
108
|
+
"""Sets the backup_info of this CreateOfflineTaskReq.
|
109
|
+
|
110
|
+
:param backup_info: The backup_info of this CreateOfflineTaskReq.
|
111
|
+
:type backup_info: :class:`huaweicloudsdkdrs.v5.BackupInfo`
|
112
|
+
"""
|
113
|
+
self._backup_info = backup_info
|
114
|
+
|
115
|
+
@property
|
116
|
+
def options(self):
|
117
|
+
"""Gets the options of this CreateOfflineTaskReq.
|
118
|
+
|
119
|
+
:return: The options of this CreateOfflineTaskReq.
|
120
|
+
:rtype: :class:`huaweicloudsdkdrs.v5.BackupRestoreOptionInfo`
|
121
|
+
"""
|
122
|
+
return self._options
|
123
|
+
|
124
|
+
@options.setter
|
125
|
+
def options(self, options):
|
126
|
+
"""Sets the options of this CreateOfflineTaskReq.
|
127
|
+
|
128
|
+
:param options: The options of this CreateOfflineTaskReq.
|
129
|
+
:type options: :class:`huaweicloudsdkdrs.v5.BackupRestoreOptionInfo`
|
130
|
+
"""
|
131
|
+
self._options = options
|
132
|
+
|
133
|
+
def to_dict(self):
|
134
|
+
"""Returns the model properties as a dict"""
|
135
|
+
result = {}
|
136
|
+
|
137
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
138
|
+
value = getattr(self, attr)
|
139
|
+
if isinstance(value, list):
|
140
|
+
result[attr] = list(map(
|
141
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
142
|
+
value
|
143
|
+
))
|
144
|
+
elif hasattr(value, "to_dict"):
|
145
|
+
result[attr] = value.to_dict()
|
146
|
+
elif isinstance(value, dict):
|
147
|
+
result[attr] = dict(map(
|
148
|
+
lambda item: (item[0], item[1].to_dict())
|
149
|
+
if hasattr(item[1], "to_dict") else item,
|
150
|
+
value.items()
|
151
|
+
))
|
152
|
+
else:
|
153
|
+
if attr in self.sensitive_list:
|
154
|
+
result[attr] = "****"
|
155
|
+
else:
|
156
|
+
result[attr] = value
|
157
|
+
|
158
|
+
return result
|
159
|
+
|
160
|
+
def to_str(self):
|
161
|
+
"""Returns the string representation of the model"""
|
162
|
+
import simplejson as json
|
163
|
+
if six.PY2:
|
164
|
+
import sys
|
165
|
+
reload(sys)
|
166
|
+
sys.setdefaultencoding("utf-8")
|
167
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
168
|
+
|
169
|
+
def __repr__(self):
|
170
|
+
"""For `print`"""
|
171
|
+
return self.to_str()
|
172
|
+
|
173
|
+
def __eq__(self, other):
|
174
|
+
"""Returns true if both objects are equal"""
|
175
|
+
if not isinstance(other, CreateOfflineTaskReq):
|
176
|
+
return False
|
177
|
+
|
178
|
+
return self.__dict__ == other.__dict__
|
179
|
+
|
180
|
+
def __ne__(self, other):
|
181
|
+
"""Returns true if both objects are not equal"""
|
182
|
+
return not self == other
|