huaweicloudsdkdcs 3.1.147__py2.py3-none-any.whl → 3.1.149__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.
Potentially problematic release.
This version of huaweicloudsdkdcs might be problematic. Click here for more details.
- huaweicloudsdkdcs/v2/__init__.py +29 -0
- huaweicloudsdkdcs/v2/dcs_async_client.py +604 -0
- huaweicloudsdkdcs/v2/dcs_client.py +604 -0
- huaweicloudsdkdcs/v2/model/__init__.py +29 -0
- huaweicloudsdkdcs/v2/model/band_width.py +144 -0
- huaweicloudsdkdcs/v2/model/create_instance_body.py +3 -3
- huaweicloudsdkdcs/v2/model/create_offline_key_analysis_request.py +139 -0
- huaweicloudsdkdcs/v2/model/create_offline_key_analysis_request_body.py +143 -0
- huaweicloudsdkdcs/v2/model/create_offline_key_analysis_response.py +116 -0
- huaweicloudsdkdcs/v2/model/delete_offline_key_analysis_task_request.py +142 -0
- huaweicloudsdkdcs/v2/model/delete_offline_key_analysis_task_response.py +116 -0
- huaweicloudsdkdcs/v2/model/dims_info.py +144 -0
- huaweicloudsdkdcs/v2/model/download_hot_key_request.py +142 -0
- huaweicloudsdkdcs/v2/model/download_hot_key_response.py +85 -0
- huaweicloudsdkdcs/v2/model/key_space.py +202 -0
- huaweicloudsdkdcs/v2/model/key_type_byte.py +144 -0
- huaweicloudsdkdcs/v2/model/key_type_num.py +144 -0
- huaweicloudsdkdcs/v2/model/largest_key.py +202 -0
- huaweicloudsdkdcs/v2/model/largest_key_prefix.py +202 -0
- huaweicloudsdkdcs/v2/model/list_offline_key_analysis_task_request.py +201 -0
- huaweicloudsdkdcs/v2/model/list_offline_key_analysis_task_response.py +174 -0
- huaweicloudsdkdcs/v2/model/migrate_az_request.py +139 -0
- huaweicloudsdkdcs/v2/model/migrate_az_request_body.py +144 -0
- huaweicloudsdkdcs/v2/model/migrate_az_response.py +85 -0
- huaweicloudsdkdcs/v2/model/offline_key_analysis_record.py +231 -0
- huaweicloudsdkdcs/v2/model/rename_command_resp.py +119 -3
- huaweicloudsdkdcs/v2/model/rollback_exchange_instance_ip_request.py +114 -0
- huaweicloudsdkdcs/v2/model/rollback_exchange_instance_ip_response.py +85 -0
- huaweicloudsdkdcs/v2/model/show_instance_topology_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_instance_topology_response.py +290 -0
- huaweicloudsdkdcs/v2/model/show_offline_key_analysis_task_request.py +142 -0
- huaweicloudsdkdcs/v2/model/show_offline_key_analysis_task_response.py +580 -0
- huaweicloudsdkdcs/v2/model/topology_info.py +538 -0
- huaweicloudsdkdcs/v2/model/update_ip_whitelist_async_request.py +139 -0
- huaweicloudsdkdcs/v2/model/update_ip_whitelist_async_response.py +116 -0
- {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/METADATA +2 -2
- {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/RECORD +40 -11
- {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class OfflineKeyAnalysisRecord:
|
|
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
|
+
'status': 'str',
|
|
22
|
+
'created_at': 'str',
|
|
23
|
+
'started_at': 'str',
|
|
24
|
+
'finished_at': 'str'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'id': 'id',
|
|
29
|
+
'status': 'status',
|
|
30
|
+
'created_at': 'created_at',
|
|
31
|
+
'started_at': 'started_at',
|
|
32
|
+
'finished_at': 'finished_at'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, id=None, status=None, created_at=None, started_at=None, finished_at=None):
|
|
36
|
+
r"""OfflineKeyAnalysisRecord
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param id: **参数解释**: 任务执行记录ID(此ID对应“查询离线全量key分析详情”参数中的任务ID)。 **取值范围**: 不涉及。
|
|
41
|
+
:type id: str
|
|
42
|
+
:param status: **参数解释**: 离线分析任务状态。 **取值范围**: waiting:任务等待中。 running:任务进行中。 success:任务执行成功。 failed:任务执行失败。
|
|
43
|
+
:type status: str
|
|
44
|
+
:param created_at: **参数解释**: 分析任务创建时间。 **取值范围**: 不涉及。
|
|
45
|
+
:type created_at: str
|
|
46
|
+
:param started_at: **参数解释**: 分析任务开始时间。 **取值范围**: 不涉及。
|
|
47
|
+
:type started_at: str
|
|
48
|
+
:param finished_at: **参数解释**: 分析任务结束时间。 **取值范围**: 不涉及。
|
|
49
|
+
:type finished_at: str
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
self._id = None
|
|
55
|
+
self._status = None
|
|
56
|
+
self._created_at = None
|
|
57
|
+
self._started_at = None
|
|
58
|
+
self._finished_at = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if id is not None:
|
|
62
|
+
self.id = id
|
|
63
|
+
if status is not None:
|
|
64
|
+
self.status = status
|
|
65
|
+
if created_at is not None:
|
|
66
|
+
self.created_at = created_at
|
|
67
|
+
if started_at is not None:
|
|
68
|
+
self.started_at = started_at
|
|
69
|
+
if finished_at is not None:
|
|
70
|
+
self.finished_at = finished_at
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def id(self):
|
|
74
|
+
r"""Gets the id of this OfflineKeyAnalysisRecord.
|
|
75
|
+
|
|
76
|
+
**参数解释**: 任务执行记录ID(此ID对应“查询离线全量key分析详情”参数中的任务ID)。 **取值范围**: 不涉及。
|
|
77
|
+
|
|
78
|
+
:return: The id of this OfflineKeyAnalysisRecord.
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._id
|
|
82
|
+
|
|
83
|
+
@id.setter
|
|
84
|
+
def id(self, id):
|
|
85
|
+
r"""Sets the id of this OfflineKeyAnalysisRecord.
|
|
86
|
+
|
|
87
|
+
**参数解释**: 任务执行记录ID(此ID对应“查询离线全量key分析详情”参数中的任务ID)。 **取值范围**: 不涉及。
|
|
88
|
+
|
|
89
|
+
:param id: The id of this OfflineKeyAnalysisRecord.
|
|
90
|
+
:type id: str
|
|
91
|
+
"""
|
|
92
|
+
self._id = id
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def status(self):
|
|
96
|
+
r"""Gets the status of this OfflineKeyAnalysisRecord.
|
|
97
|
+
|
|
98
|
+
**参数解释**: 离线分析任务状态。 **取值范围**: waiting:任务等待中。 running:任务进行中。 success:任务执行成功。 failed:任务执行失败。
|
|
99
|
+
|
|
100
|
+
:return: The status of this OfflineKeyAnalysisRecord.
|
|
101
|
+
:rtype: str
|
|
102
|
+
"""
|
|
103
|
+
return self._status
|
|
104
|
+
|
|
105
|
+
@status.setter
|
|
106
|
+
def status(self, status):
|
|
107
|
+
r"""Sets the status of this OfflineKeyAnalysisRecord.
|
|
108
|
+
|
|
109
|
+
**参数解释**: 离线分析任务状态。 **取值范围**: waiting:任务等待中。 running:任务进行中。 success:任务执行成功。 failed:任务执行失败。
|
|
110
|
+
|
|
111
|
+
:param status: The status of this OfflineKeyAnalysisRecord.
|
|
112
|
+
:type status: str
|
|
113
|
+
"""
|
|
114
|
+
self._status = status
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def created_at(self):
|
|
118
|
+
r"""Gets the created_at of this OfflineKeyAnalysisRecord.
|
|
119
|
+
|
|
120
|
+
**参数解释**: 分析任务创建时间。 **取值范围**: 不涉及。
|
|
121
|
+
|
|
122
|
+
:return: The created_at of this OfflineKeyAnalysisRecord.
|
|
123
|
+
:rtype: str
|
|
124
|
+
"""
|
|
125
|
+
return self._created_at
|
|
126
|
+
|
|
127
|
+
@created_at.setter
|
|
128
|
+
def created_at(self, created_at):
|
|
129
|
+
r"""Sets the created_at of this OfflineKeyAnalysisRecord.
|
|
130
|
+
|
|
131
|
+
**参数解释**: 分析任务创建时间。 **取值范围**: 不涉及。
|
|
132
|
+
|
|
133
|
+
:param created_at: The created_at of this OfflineKeyAnalysisRecord.
|
|
134
|
+
:type created_at: str
|
|
135
|
+
"""
|
|
136
|
+
self._created_at = created_at
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def started_at(self):
|
|
140
|
+
r"""Gets the started_at of this OfflineKeyAnalysisRecord.
|
|
141
|
+
|
|
142
|
+
**参数解释**: 分析任务开始时间。 **取值范围**: 不涉及。
|
|
143
|
+
|
|
144
|
+
:return: The started_at of this OfflineKeyAnalysisRecord.
|
|
145
|
+
:rtype: str
|
|
146
|
+
"""
|
|
147
|
+
return self._started_at
|
|
148
|
+
|
|
149
|
+
@started_at.setter
|
|
150
|
+
def started_at(self, started_at):
|
|
151
|
+
r"""Sets the started_at of this OfflineKeyAnalysisRecord.
|
|
152
|
+
|
|
153
|
+
**参数解释**: 分析任务开始时间。 **取值范围**: 不涉及。
|
|
154
|
+
|
|
155
|
+
:param started_at: The started_at of this OfflineKeyAnalysisRecord.
|
|
156
|
+
:type started_at: str
|
|
157
|
+
"""
|
|
158
|
+
self._started_at = started_at
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def finished_at(self):
|
|
162
|
+
r"""Gets the finished_at of this OfflineKeyAnalysisRecord.
|
|
163
|
+
|
|
164
|
+
**参数解释**: 分析任务结束时间。 **取值范围**: 不涉及。
|
|
165
|
+
|
|
166
|
+
:return: The finished_at of this OfflineKeyAnalysisRecord.
|
|
167
|
+
:rtype: str
|
|
168
|
+
"""
|
|
169
|
+
return self._finished_at
|
|
170
|
+
|
|
171
|
+
@finished_at.setter
|
|
172
|
+
def finished_at(self, finished_at):
|
|
173
|
+
r"""Sets the finished_at of this OfflineKeyAnalysisRecord.
|
|
174
|
+
|
|
175
|
+
**参数解释**: 分析任务结束时间。 **取值范围**: 不涉及。
|
|
176
|
+
|
|
177
|
+
:param finished_at: The finished_at of this OfflineKeyAnalysisRecord.
|
|
178
|
+
:type finished_at: str
|
|
179
|
+
"""
|
|
180
|
+
self._finished_at = finished_at
|
|
181
|
+
|
|
182
|
+
def to_dict(self):
|
|
183
|
+
"""Returns the model properties as a dict"""
|
|
184
|
+
result = {}
|
|
185
|
+
|
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
187
|
+
value = getattr(self, attr)
|
|
188
|
+
if isinstance(value, list):
|
|
189
|
+
result[attr] = list(map(
|
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
191
|
+
value
|
|
192
|
+
))
|
|
193
|
+
elif hasattr(value, "to_dict"):
|
|
194
|
+
result[attr] = value.to_dict()
|
|
195
|
+
elif isinstance(value, dict):
|
|
196
|
+
result[attr] = dict(map(
|
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
|
199
|
+
value.items()
|
|
200
|
+
))
|
|
201
|
+
else:
|
|
202
|
+
if attr in self.sensitive_list:
|
|
203
|
+
result[attr] = "****"
|
|
204
|
+
else:
|
|
205
|
+
result[attr] = value
|
|
206
|
+
|
|
207
|
+
return result
|
|
208
|
+
|
|
209
|
+
def to_str(self):
|
|
210
|
+
"""Returns the string representation of the model"""
|
|
211
|
+
import simplejson as json
|
|
212
|
+
if six.PY2:
|
|
213
|
+
import sys
|
|
214
|
+
reload(sys)
|
|
215
|
+
sys.setdefaultencoding("utf-8")
|
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
217
|
+
|
|
218
|
+
def __repr__(self):
|
|
219
|
+
"""For `print`"""
|
|
220
|
+
return self.to_str()
|
|
221
|
+
|
|
222
|
+
def __eq__(self, other):
|
|
223
|
+
"""Returns true if both objects are equal"""
|
|
224
|
+
if not isinstance(other, OfflineKeyAnalysisRecord):
|
|
225
|
+
return False
|
|
226
|
+
|
|
227
|
+
return self.__dict__ == other.__dict__
|
|
228
|
+
|
|
229
|
+
def __ne__(self, other):
|
|
230
|
+
"""Returns true if both objects are not equal"""
|
|
231
|
+
return not self == other
|
|
@@ -21,7 +21,11 @@ class RenameCommandResp:
|
|
|
21
21
|
'flushall': 'str',
|
|
22
22
|
'flushdb': 'str',
|
|
23
23
|
'hgetall': 'str',
|
|
24
|
-
'keys': 'str'
|
|
24
|
+
'keys': 'str',
|
|
25
|
+
'hscan': 'str',
|
|
26
|
+
'scan': 'str',
|
|
27
|
+
'sscan': 'str',
|
|
28
|
+
'zscan': 'str'
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
attribute_map = {
|
|
@@ -29,10 +33,14 @@ class RenameCommandResp:
|
|
|
29
33
|
'flushall': 'flushall',
|
|
30
34
|
'flushdb': 'flushdb',
|
|
31
35
|
'hgetall': 'hgetall',
|
|
32
|
-
'keys': 'keys'
|
|
36
|
+
'keys': 'keys',
|
|
37
|
+
'hscan': 'hscan',
|
|
38
|
+
'scan': 'scan',
|
|
39
|
+
'sscan': 'sscan',
|
|
40
|
+
'zscan': 'zscan'
|
|
33
41
|
}
|
|
34
42
|
|
|
35
|
-
def __init__(self, command=None, flushall=None, flushdb=None, hgetall=None, keys=None):
|
|
43
|
+
def __init__(self, command=None, flushall=None, flushdb=None, hgetall=None, keys=None, hscan=None, scan=None, sscan=None, zscan=None):
|
|
36
44
|
r"""RenameCommandResp
|
|
37
45
|
|
|
38
46
|
The model defined in huaweicloud sdk
|
|
@@ -47,6 +55,14 @@ class RenameCommandResp:
|
|
|
47
55
|
:type hgetall: str
|
|
48
56
|
:param keys: 命令keys
|
|
49
57
|
:type keys: str
|
|
58
|
+
:param hscan: 命令hscan
|
|
59
|
+
:type hscan: str
|
|
60
|
+
:param scan: 命令scan
|
|
61
|
+
:type scan: str
|
|
62
|
+
:param sscan: 命令sscan
|
|
63
|
+
:type sscan: str
|
|
64
|
+
:param zscan: 命令zscan
|
|
65
|
+
:type zscan: str
|
|
50
66
|
"""
|
|
51
67
|
|
|
52
68
|
|
|
@@ -56,6 +72,10 @@ class RenameCommandResp:
|
|
|
56
72
|
self._flushdb = None
|
|
57
73
|
self._hgetall = None
|
|
58
74
|
self._keys = None
|
|
75
|
+
self._hscan = None
|
|
76
|
+
self._scan = None
|
|
77
|
+
self._sscan = None
|
|
78
|
+
self._zscan = None
|
|
59
79
|
self.discriminator = None
|
|
60
80
|
|
|
61
81
|
if command is not None:
|
|
@@ -68,6 +88,14 @@ class RenameCommandResp:
|
|
|
68
88
|
self.hgetall = hgetall
|
|
69
89
|
if keys is not None:
|
|
70
90
|
self.keys = keys
|
|
91
|
+
if hscan is not None:
|
|
92
|
+
self.hscan = hscan
|
|
93
|
+
if scan is not None:
|
|
94
|
+
self.scan = scan
|
|
95
|
+
if sscan is not None:
|
|
96
|
+
self.sscan = sscan
|
|
97
|
+
if zscan is not None:
|
|
98
|
+
self.zscan = zscan
|
|
71
99
|
|
|
72
100
|
@property
|
|
73
101
|
def command(self):
|
|
@@ -179,6 +207,94 @@ class RenameCommandResp:
|
|
|
179
207
|
"""
|
|
180
208
|
self._keys = keys
|
|
181
209
|
|
|
210
|
+
@property
|
|
211
|
+
def hscan(self):
|
|
212
|
+
r"""Gets the hscan of this RenameCommandResp.
|
|
213
|
+
|
|
214
|
+
命令hscan
|
|
215
|
+
|
|
216
|
+
:return: The hscan of this RenameCommandResp.
|
|
217
|
+
:rtype: str
|
|
218
|
+
"""
|
|
219
|
+
return self._hscan
|
|
220
|
+
|
|
221
|
+
@hscan.setter
|
|
222
|
+
def hscan(self, hscan):
|
|
223
|
+
r"""Sets the hscan of this RenameCommandResp.
|
|
224
|
+
|
|
225
|
+
命令hscan
|
|
226
|
+
|
|
227
|
+
:param hscan: The hscan of this RenameCommandResp.
|
|
228
|
+
:type hscan: str
|
|
229
|
+
"""
|
|
230
|
+
self._hscan = hscan
|
|
231
|
+
|
|
232
|
+
@property
|
|
233
|
+
def scan(self):
|
|
234
|
+
r"""Gets the scan of this RenameCommandResp.
|
|
235
|
+
|
|
236
|
+
命令scan
|
|
237
|
+
|
|
238
|
+
:return: The scan of this RenameCommandResp.
|
|
239
|
+
:rtype: str
|
|
240
|
+
"""
|
|
241
|
+
return self._scan
|
|
242
|
+
|
|
243
|
+
@scan.setter
|
|
244
|
+
def scan(self, scan):
|
|
245
|
+
r"""Sets the scan of this RenameCommandResp.
|
|
246
|
+
|
|
247
|
+
命令scan
|
|
248
|
+
|
|
249
|
+
:param scan: The scan of this RenameCommandResp.
|
|
250
|
+
:type scan: str
|
|
251
|
+
"""
|
|
252
|
+
self._scan = scan
|
|
253
|
+
|
|
254
|
+
@property
|
|
255
|
+
def sscan(self):
|
|
256
|
+
r"""Gets the sscan of this RenameCommandResp.
|
|
257
|
+
|
|
258
|
+
命令sscan
|
|
259
|
+
|
|
260
|
+
:return: The sscan of this RenameCommandResp.
|
|
261
|
+
:rtype: str
|
|
262
|
+
"""
|
|
263
|
+
return self._sscan
|
|
264
|
+
|
|
265
|
+
@sscan.setter
|
|
266
|
+
def sscan(self, sscan):
|
|
267
|
+
r"""Sets the sscan of this RenameCommandResp.
|
|
268
|
+
|
|
269
|
+
命令sscan
|
|
270
|
+
|
|
271
|
+
:param sscan: The sscan of this RenameCommandResp.
|
|
272
|
+
:type sscan: str
|
|
273
|
+
"""
|
|
274
|
+
self._sscan = sscan
|
|
275
|
+
|
|
276
|
+
@property
|
|
277
|
+
def zscan(self):
|
|
278
|
+
r"""Gets the zscan of this RenameCommandResp.
|
|
279
|
+
|
|
280
|
+
命令zscan
|
|
281
|
+
|
|
282
|
+
:return: The zscan of this RenameCommandResp.
|
|
283
|
+
:rtype: str
|
|
284
|
+
"""
|
|
285
|
+
return self._zscan
|
|
286
|
+
|
|
287
|
+
@zscan.setter
|
|
288
|
+
def zscan(self, zscan):
|
|
289
|
+
r"""Sets the zscan of this RenameCommandResp.
|
|
290
|
+
|
|
291
|
+
命令zscan
|
|
292
|
+
|
|
293
|
+
:param zscan: The zscan of this RenameCommandResp.
|
|
294
|
+
:type zscan: str
|
|
295
|
+
"""
|
|
296
|
+
self._zscan = zscan
|
|
297
|
+
|
|
182
298
|
def to_dict(self):
|
|
183
299
|
"""Returns the model properties as a dict"""
|
|
184
300
|
result = {}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class RollbackExchangeInstanceIpRequest:
|
|
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
|
+
'task_id': 'str'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'task_id': 'task_id'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, task_id=None):
|
|
28
|
+
r"""RollbackExchangeInstanceIpRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param task_id: **参数解释**: 数据迁移任务ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
33
|
+
:type task_id: str
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._task_id = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
self.task_id = task_id
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def task_id(self):
|
|
45
|
+
r"""Gets the task_id of this RollbackExchangeInstanceIpRequest.
|
|
46
|
+
|
|
47
|
+
**参数解释**: 数据迁移任务ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
48
|
+
|
|
49
|
+
:return: The task_id of this RollbackExchangeInstanceIpRequest.
|
|
50
|
+
:rtype: str
|
|
51
|
+
"""
|
|
52
|
+
return self._task_id
|
|
53
|
+
|
|
54
|
+
@task_id.setter
|
|
55
|
+
def task_id(self, task_id):
|
|
56
|
+
r"""Sets the task_id of this RollbackExchangeInstanceIpRequest.
|
|
57
|
+
|
|
58
|
+
**参数解释**: 数据迁移任务ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
59
|
+
|
|
60
|
+
:param task_id: The task_id of this RollbackExchangeInstanceIpRequest.
|
|
61
|
+
:type task_id: str
|
|
62
|
+
"""
|
|
63
|
+
self._task_id = task_id
|
|
64
|
+
|
|
65
|
+
def to_dict(self):
|
|
66
|
+
"""Returns the model properties as a dict"""
|
|
67
|
+
result = {}
|
|
68
|
+
|
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
70
|
+
value = getattr(self, attr)
|
|
71
|
+
if isinstance(value, list):
|
|
72
|
+
result[attr] = list(map(
|
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
74
|
+
value
|
|
75
|
+
))
|
|
76
|
+
elif hasattr(value, "to_dict"):
|
|
77
|
+
result[attr] = value.to_dict()
|
|
78
|
+
elif isinstance(value, dict):
|
|
79
|
+
result[attr] = dict(map(
|
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
|
82
|
+
value.items()
|
|
83
|
+
))
|
|
84
|
+
else:
|
|
85
|
+
if attr in self.sensitive_list:
|
|
86
|
+
result[attr] = "****"
|
|
87
|
+
else:
|
|
88
|
+
result[attr] = value
|
|
89
|
+
|
|
90
|
+
return result
|
|
91
|
+
|
|
92
|
+
def to_str(self):
|
|
93
|
+
"""Returns the string representation of the model"""
|
|
94
|
+
import simplejson as json
|
|
95
|
+
if six.PY2:
|
|
96
|
+
import sys
|
|
97
|
+
reload(sys)
|
|
98
|
+
sys.setdefaultencoding("utf-8")
|
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
100
|
+
|
|
101
|
+
def __repr__(self):
|
|
102
|
+
"""For `print`"""
|
|
103
|
+
return self.to_str()
|
|
104
|
+
|
|
105
|
+
def __eq__(self, other):
|
|
106
|
+
"""Returns true if both objects are equal"""
|
|
107
|
+
if not isinstance(other, RollbackExchangeInstanceIpRequest):
|
|
108
|
+
return False
|
|
109
|
+
|
|
110
|
+
return self.__dict__ == other.__dict__
|
|
111
|
+
|
|
112
|
+
def __ne__(self, other):
|
|
113
|
+
"""Returns true if both objects are not equal"""
|
|
114
|
+
return not self == other
|
|
@@ -0,0 +1,85 @@
|
|
|
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 RollbackExchangeInstanceIpResponse(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
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""RollbackExchangeInstanceIpResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
super(RollbackExchangeInstanceIpResponse, self).__init__()
|
|
34
|
+
self.discriminator = None
|
|
35
|
+
|
|
36
|
+
def to_dict(self):
|
|
37
|
+
"""Returns the model properties as a dict"""
|
|
38
|
+
result = {}
|
|
39
|
+
|
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
41
|
+
value = getattr(self, attr)
|
|
42
|
+
if isinstance(value, list):
|
|
43
|
+
result[attr] = list(map(
|
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
45
|
+
value
|
|
46
|
+
))
|
|
47
|
+
elif hasattr(value, "to_dict"):
|
|
48
|
+
result[attr] = value.to_dict()
|
|
49
|
+
elif isinstance(value, dict):
|
|
50
|
+
result[attr] = dict(map(
|
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
|
53
|
+
value.items()
|
|
54
|
+
))
|
|
55
|
+
else:
|
|
56
|
+
if attr in self.sensitive_list:
|
|
57
|
+
result[attr] = "****"
|
|
58
|
+
else:
|
|
59
|
+
result[attr] = value
|
|
60
|
+
|
|
61
|
+
return result
|
|
62
|
+
|
|
63
|
+
def to_str(self):
|
|
64
|
+
"""Returns the string representation of the model"""
|
|
65
|
+
import simplejson as json
|
|
66
|
+
if six.PY2:
|
|
67
|
+
import sys
|
|
68
|
+
reload(sys)
|
|
69
|
+
sys.setdefaultencoding("utf-8")
|
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
71
|
+
|
|
72
|
+
def __repr__(self):
|
|
73
|
+
"""For `print`"""
|
|
74
|
+
return self.to_str()
|
|
75
|
+
|
|
76
|
+
def __eq__(self, other):
|
|
77
|
+
"""Returns true if both objects are equal"""
|
|
78
|
+
if not isinstance(other, RollbackExchangeInstanceIpResponse):
|
|
79
|
+
return False
|
|
80
|
+
|
|
81
|
+
return self.__dict__ == other.__dict__
|
|
82
|
+
|
|
83
|
+
def __ne__(self, other):
|
|
84
|
+
"""Returns true if both objects are not equal"""
|
|
85
|
+
return not self == other
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ShowInstanceTopologyRequest:
|
|
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
|
+
'instance_id': 'str'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'instance_id': 'instance_id'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, instance_id=None):
|
|
28
|
+
r"""ShowInstanceTopologyRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param instance_id: **参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
33
|
+
:type instance_id: str
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._instance_id = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
self.instance_id = instance_id
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def instance_id(self):
|
|
45
|
+
r"""Gets the instance_id of this ShowInstanceTopologyRequest.
|
|
46
|
+
|
|
47
|
+
**参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
48
|
+
|
|
49
|
+
:return: The instance_id of this ShowInstanceTopologyRequest.
|
|
50
|
+
:rtype: str
|
|
51
|
+
"""
|
|
52
|
+
return self._instance_id
|
|
53
|
+
|
|
54
|
+
@instance_id.setter
|
|
55
|
+
def instance_id(self, instance_id):
|
|
56
|
+
r"""Sets the instance_id of this ShowInstanceTopologyRequest.
|
|
57
|
+
|
|
58
|
+
**参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
|
59
|
+
|
|
60
|
+
:param instance_id: The instance_id of this ShowInstanceTopologyRequest.
|
|
61
|
+
:type instance_id: str
|
|
62
|
+
"""
|
|
63
|
+
self._instance_id = instance_id
|
|
64
|
+
|
|
65
|
+
def to_dict(self):
|
|
66
|
+
"""Returns the model properties as a dict"""
|
|
67
|
+
result = {}
|
|
68
|
+
|
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
70
|
+
value = getattr(self, attr)
|
|
71
|
+
if isinstance(value, list):
|
|
72
|
+
result[attr] = list(map(
|
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
74
|
+
value
|
|
75
|
+
))
|
|
76
|
+
elif hasattr(value, "to_dict"):
|
|
77
|
+
result[attr] = value.to_dict()
|
|
78
|
+
elif isinstance(value, dict):
|
|
79
|
+
result[attr] = dict(map(
|
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
|
82
|
+
value.items()
|
|
83
|
+
))
|
|
84
|
+
else:
|
|
85
|
+
if attr in self.sensitive_list:
|
|
86
|
+
result[attr] = "****"
|
|
87
|
+
else:
|
|
88
|
+
result[attr] = value
|
|
89
|
+
|
|
90
|
+
return result
|
|
91
|
+
|
|
92
|
+
def to_str(self):
|
|
93
|
+
"""Returns the string representation of the model"""
|
|
94
|
+
import simplejson as json
|
|
95
|
+
if six.PY2:
|
|
96
|
+
import sys
|
|
97
|
+
reload(sys)
|
|
98
|
+
sys.setdefaultencoding("utf-8")
|
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
100
|
+
|
|
101
|
+
def __repr__(self):
|
|
102
|
+
"""For `print`"""
|
|
103
|
+
return self.to_str()
|
|
104
|
+
|
|
105
|
+
def __eq__(self, other):
|
|
106
|
+
"""Returns true if both objects are equal"""
|
|
107
|
+
if not isinstance(other, ShowInstanceTopologyRequest):
|
|
108
|
+
return False
|
|
109
|
+
|
|
110
|
+
return self.__dict__ == other.__dict__
|
|
111
|
+
|
|
112
|
+
def __ne__(self, other):
|
|
113
|
+
"""Returns true if both objects are not equal"""
|
|
114
|
+
return not self == other
|