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,342 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class OfflineTaskInfo:
|
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
|
+
'name': 'str',
|
22
|
+
'status': 'str',
|
23
|
+
'engine_type': 'str',
|
24
|
+
'error_log': 'str',
|
25
|
+
'description': 'str',
|
26
|
+
'create_time': 'str',
|
27
|
+
'finish_time': 'str',
|
28
|
+
'enterprise_project_id': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'id': 'id',
|
33
|
+
'name': 'name',
|
34
|
+
'status': 'status',
|
35
|
+
'engine_type': 'engine_type',
|
36
|
+
'error_log': 'error_log',
|
37
|
+
'description': 'description',
|
38
|
+
'create_time': 'create_time',
|
39
|
+
'finish_time': 'finish_time',
|
40
|
+
'enterprise_project_id': 'enterprise_project_id'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, id=None, name=None, status=None, engine_type=None, error_log=None, description=None, create_time=None, finish_time=None, enterprise_project_id=None):
|
44
|
+
"""OfflineTaskInfo
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param id: 任务ID。
|
49
|
+
:type id: str
|
50
|
+
:param name: 任务名称。
|
51
|
+
:type name: str
|
52
|
+
:param status: 任务状态。 - TRANSFERRING:恢复中 - SUCCESS:成功 - FAILED:失败 - PRECHECK FAILED:预检查失败
|
53
|
+
:type status: str
|
54
|
+
:param engine_type: 数据库引擎。 - sqlserver:RDS for SQL Server引擎
|
55
|
+
:type engine_type: str
|
56
|
+
:param error_log: 错误日志。
|
57
|
+
:type error_log: str
|
58
|
+
:param description: 描述。
|
59
|
+
:type description: str
|
60
|
+
:param create_time: 任务创建时间。
|
61
|
+
:type create_time: str
|
62
|
+
:param finish_time: 任务完成时间。
|
63
|
+
:type finish_time: str
|
64
|
+
:param enterprise_project_id: 企业项目。
|
65
|
+
:type enterprise_project_id: str
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._id = None
|
71
|
+
self._name = None
|
72
|
+
self._status = None
|
73
|
+
self._engine_type = None
|
74
|
+
self._error_log = None
|
75
|
+
self._description = None
|
76
|
+
self._create_time = None
|
77
|
+
self._finish_time = None
|
78
|
+
self._enterprise_project_id = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
self.id = id
|
82
|
+
self.name = name
|
83
|
+
self.status = status
|
84
|
+
self.engine_type = engine_type
|
85
|
+
if error_log is not None:
|
86
|
+
self.error_log = error_log
|
87
|
+
if description is not None:
|
88
|
+
self.description = description
|
89
|
+
self.create_time = create_time
|
90
|
+
if finish_time is not None:
|
91
|
+
self.finish_time = finish_time
|
92
|
+
if enterprise_project_id is not None:
|
93
|
+
self.enterprise_project_id = enterprise_project_id
|
94
|
+
|
95
|
+
@property
|
96
|
+
def id(self):
|
97
|
+
"""Gets the id of this OfflineTaskInfo.
|
98
|
+
|
99
|
+
任务ID。
|
100
|
+
|
101
|
+
:return: The id of this OfflineTaskInfo.
|
102
|
+
:rtype: str
|
103
|
+
"""
|
104
|
+
return self._id
|
105
|
+
|
106
|
+
@id.setter
|
107
|
+
def id(self, id):
|
108
|
+
"""Sets the id of this OfflineTaskInfo.
|
109
|
+
|
110
|
+
任务ID。
|
111
|
+
|
112
|
+
:param id: The id of this OfflineTaskInfo.
|
113
|
+
:type id: str
|
114
|
+
"""
|
115
|
+
self._id = id
|
116
|
+
|
117
|
+
@property
|
118
|
+
def name(self):
|
119
|
+
"""Gets the name of this OfflineTaskInfo.
|
120
|
+
|
121
|
+
任务名称。
|
122
|
+
|
123
|
+
:return: The name of this OfflineTaskInfo.
|
124
|
+
:rtype: str
|
125
|
+
"""
|
126
|
+
return self._name
|
127
|
+
|
128
|
+
@name.setter
|
129
|
+
def name(self, name):
|
130
|
+
"""Sets the name of this OfflineTaskInfo.
|
131
|
+
|
132
|
+
任务名称。
|
133
|
+
|
134
|
+
:param name: The name of this OfflineTaskInfo.
|
135
|
+
:type name: str
|
136
|
+
"""
|
137
|
+
self._name = name
|
138
|
+
|
139
|
+
@property
|
140
|
+
def status(self):
|
141
|
+
"""Gets the status of this OfflineTaskInfo.
|
142
|
+
|
143
|
+
任务状态。 - TRANSFERRING:恢复中 - SUCCESS:成功 - FAILED:失败 - PRECHECK FAILED:预检查失败
|
144
|
+
|
145
|
+
:return: The status of this OfflineTaskInfo.
|
146
|
+
:rtype: str
|
147
|
+
"""
|
148
|
+
return self._status
|
149
|
+
|
150
|
+
@status.setter
|
151
|
+
def status(self, status):
|
152
|
+
"""Sets the status of this OfflineTaskInfo.
|
153
|
+
|
154
|
+
任务状态。 - TRANSFERRING:恢复中 - SUCCESS:成功 - FAILED:失败 - PRECHECK FAILED:预检查失败
|
155
|
+
|
156
|
+
:param status: The status of this OfflineTaskInfo.
|
157
|
+
:type status: str
|
158
|
+
"""
|
159
|
+
self._status = status
|
160
|
+
|
161
|
+
@property
|
162
|
+
def engine_type(self):
|
163
|
+
"""Gets the engine_type of this OfflineTaskInfo.
|
164
|
+
|
165
|
+
数据库引擎。 - sqlserver:RDS for SQL Server引擎
|
166
|
+
|
167
|
+
:return: The engine_type of this OfflineTaskInfo.
|
168
|
+
:rtype: str
|
169
|
+
"""
|
170
|
+
return self._engine_type
|
171
|
+
|
172
|
+
@engine_type.setter
|
173
|
+
def engine_type(self, engine_type):
|
174
|
+
"""Sets the engine_type of this OfflineTaskInfo.
|
175
|
+
|
176
|
+
数据库引擎。 - sqlserver:RDS for SQL Server引擎
|
177
|
+
|
178
|
+
:param engine_type: The engine_type of this OfflineTaskInfo.
|
179
|
+
:type engine_type: str
|
180
|
+
"""
|
181
|
+
self._engine_type = engine_type
|
182
|
+
|
183
|
+
@property
|
184
|
+
def error_log(self):
|
185
|
+
"""Gets the error_log of this OfflineTaskInfo.
|
186
|
+
|
187
|
+
错误日志。
|
188
|
+
|
189
|
+
:return: The error_log of this OfflineTaskInfo.
|
190
|
+
:rtype: str
|
191
|
+
"""
|
192
|
+
return self._error_log
|
193
|
+
|
194
|
+
@error_log.setter
|
195
|
+
def error_log(self, error_log):
|
196
|
+
"""Sets the error_log of this OfflineTaskInfo.
|
197
|
+
|
198
|
+
错误日志。
|
199
|
+
|
200
|
+
:param error_log: The error_log of this OfflineTaskInfo.
|
201
|
+
:type error_log: str
|
202
|
+
"""
|
203
|
+
self._error_log = error_log
|
204
|
+
|
205
|
+
@property
|
206
|
+
def description(self):
|
207
|
+
"""Gets the description of this OfflineTaskInfo.
|
208
|
+
|
209
|
+
描述。
|
210
|
+
|
211
|
+
:return: The description of this OfflineTaskInfo.
|
212
|
+
:rtype: str
|
213
|
+
"""
|
214
|
+
return self._description
|
215
|
+
|
216
|
+
@description.setter
|
217
|
+
def description(self, description):
|
218
|
+
"""Sets the description of this OfflineTaskInfo.
|
219
|
+
|
220
|
+
描述。
|
221
|
+
|
222
|
+
:param description: The description of this OfflineTaskInfo.
|
223
|
+
:type description: str
|
224
|
+
"""
|
225
|
+
self._description = description
|
226
|
+
|
227
|
+
@property
|
228
|
+
def create_time(self):
|
229
|
+
"""Gets the create_time of this OfflineTaskInfo.
|
230
|
+
|
231
|
+
任务创建时间。
|
232
|
+
|
233
|
+
:return: The create_time of this OfflineTaskInfo.
|
234
|
+
:rtype: str
|
235
|
+
"""
|
236
|
+
return self._create_time
|
237
|
+
|
238
|
+
@create_time.setter
|
239
|
+
def create_time(self, create_time):
|
240
|
+
"""Sets the create_time of this OfflineTaskInfo.
|
241
|
+
|
242
|
+
任务创建时间。
|
243
|
+
|
244
|
+
:param create_time: The create_time of this OfflineTaskInfo.
|
245
|
+
:type create_time: str
|
246
|
+
"""
|
247
|
+
self._create_time = create_time
|
248
|
+
|
249
|
+
@property
|
250
|
+
def finish_time(self):
|
251
|
+
"""Gets the finish_time of this OfflineTaskInfo.
|
252
|
+
|
253
|
+
任务完成时间。
|
254
|
+
|
255
|
+
:return: The finish_time of this OfflineTaskInfo.
|
256
|
+
:rtype: str
|
257
|
+
"""
|
258
|
+
return self._finish_time
|
259
|
+
|
260
|
+
@finish_time.setter
|
261
|
+
def finish_time(self, finish_time):
|
262
|
+
"""Sets the finish_time of this OfflineTaskInfo.
|
263
|
+
|
264
|
+
任务完成时间。
|
265
|
+
|
266
|
+
:param finish_time: The finish_time of this OfflineTaskInfo.
|
267
|
+
:type finish_time: str
|
268
|
+
"""
|
269
|
+
self._finish_time = finish_time
|
270
|
+
|
271
|
+
@property
|
272
|
+
def enterprise_project_id(self):
|
273
|
+
"""Gets the enterprise_project_id of this OfflineTaskInfo.
|
274
|
+
|
275
|
+
企业项目。
|
276
|
+
|
277
|
+
:return: The enterprise_project_id of this OfflineTaskInfo.
|
278
|
+
:rtype: str
|
279
|
+
"""
|
280
|
+
return self._enterprise_project_id
|
281
|
+
|
282
|
+
@enterprise_project_id.setter
|
283
|
+
def enterprise_project_id(self, enterprise_project_id):
|
284
|
+
"""Sets the enterprise_project_id of this OfflineTaskInfo.
|
285
|
+
|
286
|
+
企业项目。
|
287
|
+
|
288
|
+
:param enterprise_project_id: The enterprise_project_id of this OfflineTaskInfo.
|
289
|
+
:type enterprise_project_id: str
|
290
|
+
"""
|
291
|
+
self._enterprise_project_id = enterprise_project_id
|
292
|
+
|
293
|
+
def to_dict(self):
|
294
|
+
"""Returns the model properties as a dict"""
|
295
|
+
result = {}
|
296
|
+
|
297
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
298
|
+
value = getattr(self, attr)
|
299
|
+
if isinstance(value, list):
|
300
|
+
result[attr] = list(map(
|
301
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
302
|
+
value
|
303
|
+
))
|
304
|
+
elif hasattr(value, "to_dict"):
|
305
|
+
result[attr] = value.to_dict()
|
306
|
+
elif isinstance(value, dict):
|
307
|
+
result[attr] = dict(map(
|
308
|
+
lambda item: (item[0], item[1].to_dict())
|
309
|
+
if hasattr(item[1], "to_dict") else item,
|
310
|
+
value.items()
|
311
|
+
))
|
312
|
+
else:
|
313
|
+
if attr in self.sensitive_list:
|
314
|
+
result[attr] = "****"
|
315
|
+
else:
|
316
|
+
result[attr] = value
|
317
|
+
|
318
|
+
return result
|
319
|
+
|
320
|
+
def to_str(self):
|
321
|
+
"""Returns the string representation of the model"""
|
322
|
+
import simplejson as json
|
323
|
+
if six.PY2:
|
324
|
+
import sys
|
325
|
+
reload(sys)
|
326
|
+
sys.setdefaultencoding("utf-8")
|
327
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
328
|
+
|
329
|
+
def __repr__(self):
|
330
|
+
"""For `print`"""
|
331
|
+
return self.to_str()
|
332
|
+
|
333
|
+
def __eq__(self, other):
|
334
|
+
"""Returns true if both objects are equal"""
|
335
|
+
if not isinstance(other, OfflineTaskInfo):
|
336
|
+
return False
|
337
|
+
|
338
|
+
return self.__dict__ == other.__dict__
|
339
|
+
|
340
|
+
def __ne__(self, other):
|
341
|
+
"""Returns true if both objects are not equal"""
|
342
|
+
return not self == other
|
@@ -33,7 +33,7 @@ class ResourceTag:
|
|
33
33
|
|
34
34
|
:param key: 标签键。 约束:最大长度36,只能包含字母、数字、下划线、中划线和中文。
|
35
35
|
:type key: str
|
36
|
-
:param value:
|
36
|
+
:param value: 标签值。标签的值可以包含任意语种字母、数字、空格和_ . : / = + - @。
|
37
37
|
:type value: str
|
38
38
|
"""
|
39
39
|
|
@@ -74,7 +74,7 @@ class ResourceTag:
|
|
74
74
|
def value(self):
|
75
75
|
"""Gets the value of this ResourceTag.
|
76
76
|
|
77
|
-
|
77
|
+
标签值。标签的值可以包含任意语种字母、数字、空格和_ . : / = + - @。
|
78
78
|
|
79
79
|
:return: The value of this ResourceTag.
|
80
80
|
:rtype: str
|
@@ -85,7 +85,7 @@ class ResourceTag:
|
|
85
85
|
def value(self, value):
|
86
86
|
"""Sets the value of this ResourceTag.
|
87
87
|
|
88
|
-
|
88
|
+
标签值。标签的值可以包含任意语种字母、数字、空格和_ . : / = + - @。
|
89
89
|
|
90
90
|
:param value: The value of this ResourceTag.
|
91
91
|
:type value: str
|
@@ -36,7 +36,7 @@ class ShowDataProcessingRulesResultResponse(SdkResponse):
|
|
36
36
|
|
37
37
|
:param id: 查询结果id
|
38
38
|
:type id: str
|
39
|
-
:param status: 查询状态
|
39
|
+
:param status: 查询状态 pending:处理中 failed:失败 success:成功
|
40
40
|
:type status: str
|
41
41
|
:param job_id: 任务ID
|
42
42
|
:type job_id: str
|
@@ -82,7 +82,7 @@ class ShowDataProcessingRulesResultResponse(SdkResponse):
|
|
82
82
|
def status(self):
|
83
83
|
"""Gets the status of this ShowDataProcessingRulesResultResponse.
|
84
84
|
|
85
|
-
查询状态
|
85
|
+
查询状态 pending:处理中 failed:失败 success:成功
|
86
86
|
|
87
87
|
:return: The status of this ShowDataProcessingRulesResultResponse.
|
88
88
|
:rtype: str
|
@@ -93,7 +93,7 @@ class ShowDataProcessingRulesResultResponse(SdkResponse):
|
|
93
93
|
def status(self, status):
|
94
94
|
"""Sets the status of this ShowDataProcessingRulesResultResponse.
|
95
95
|
|
96
|
-
查询状态
|
96
|
+
查询状态 pending:处理中 failed:失败 success:成功
|
97
97
|
|
98
98
|
:param status: The status of this ShowDataProcessingRulesResultResponse.
|
99
99
|
:type status: str
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowReplicationJobRequest:
|
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
|
+
'job_id': 'str',
|
21
|
+
'x_language': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id',
|
26
|
+
'x_language': 'X-Language'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, job_id=None, x_language=None):
|
30
|
+
"""ShowReplicationJobRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param job_id: 备份迁移任务ID。
|
35
|
+
:type job_id: str
|
36
|
+
:param x_language: 请求语言类型。 en-us:英文 zh-cn:中文
|
37
|
+
:type x_language: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._job_id = None
|
43
|
+
self._x_language = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.job_id = job_id
|
47
|
+
if x_language is not None:
|
48
|
+
self.x_language = x_language
|
49
|
+
|
50
|
+
@property
|
51
|
+
def job_id(self):
|
52
|
+
"""Gets the job_id of this ShowReplicationJobRequest.
|
53
|
+
|
54
|
+
备份迁移任务ID。
|
55
|
+
|
56
|
+
:return: The job_id of this ShowReplicationJobRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._job_id
|
60
|
+
|
61
|
+
@job_id.setter
|
62
|
+
def job_id(self, job_id):
|
63
|
+
"""Sets the job_id of this ShowReplicationJobRequest.
|
64
|
+
|
65
|
+
备份迁移任务ID。
|
66
|
+
|
67
|
+
:param job_id: The job_id of this ShowReplicationJobRequest.
|
68
|
+
:type job_id: str
|
69
|
+
"""
|
70
|
+
self._job_id = job_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def x_language(self):
|
74
|
+
"""Gets the x_language of this ShowReplicationJobRequest.
|
75
|
+
|
76
|
+
请求语言类型。 en-us:英文 zh-cn:中文
|
77
|
+
|
78
|
+
:return: The x_language of this ShowReplicationJobRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._x_language
|
82
|
+
|
83
|
+
@x_language.setter
|
84
|
+
def x_language(self, x_language):
|
85
|
+
"""Sets the x_language of this ShowReplicationJobRequest.
|
86
|
+
|
87
|
+
请求语言类型。 en-us:英文 zh-cn:中文
|
88
|
+
|
89
|
+
:param x_language: The x_language of this ShowReplicationJobRequest.
|
90
|
+
:type x_language: str
|
91
|
+
"""
|
92
|
+
self._x_language = x_language
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, ShowReplicationJobRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|