huaweicloudsdkdcs 3.1.85__py2.py3-none-any.whl → 3.1.132__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 +35 -0
- huaweicloudsdkdcs/v2/dcs_async_client.py +753 -28
- huaweicloudsdkdcs/v2/dcs_client.py +753 -28
- huaweicloudsdkdcs/v2/model/__init__.py +35 -0
- huaweicloudsdkdcs/v2/model/backup_files_body.py +2 -1
- huaweicloudsdkdcs/v2/model/bandwidth_auto_scaling_policy.py +257 -0
- huaweicloudsdkdcs/v2/model/bandwidth_info.py +61 -3
- huaweicloudsdkdcs/v2/model/batch_restart_migration_task_result.py +202 -0
- huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_body.py +114 -0
- huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_request.py +111 -0
- huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_response.py +116 -0
- huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_body.py +144 -0
- huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_request.py +139 -0
- huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_resp.py +84 -0
- huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_response.py +112 -0
- huaweicloudsdkdcs/v2/model/client_info.py +4 -4
- huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_request.py +114 -0
- huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_resp.py +84 -0
- huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_response.py +112 -0
- huaweicloudsdkdcs/v2/model/delete_public_ip_request.py +114 -0
- huaweicloudsdkdcs/v2/model/delete_public_ip_response.py +116 -0
- huaweicloudsdkdcs/v2/model/details_body.py +549 -27
- huaweicloudsdkdcs/v2/model/group_bandwidth_info.py +231 -0
- huaweicloudsdkdcs/v2/model/migration_task_list.py +366 -18
- huaweicloudsdkdcs/v2/model/resize_instance_body.py +3 -3
- huaweicloudsdkdcs/v2/model/show_bandwidths_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_bandwidths_response.py +203 -0
- huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_response.py +258 -0
- huaweicloudsdkdcs/v2/model/show_instance_version_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_instance_version_response.py +261 -0
- huaweicloudsdkdcs/v2/model/show_migration_task_response.py +264 -3
- huaweicloudsdkdcs/v2/model/source_instance_body.py +206 -3
- huaweicloudsdkdcs/v2/model/stop_migration_task_response.py +264 -3
- huaweicloudsdkdcs/v2/model/stop_migration_task_result.py +61 -3
- huaweicloudsdkdcs/v2/model/target_instance_body.py +177 -3
- huaweicloudsdkdcs/v2/model/update_bandwidth_info_request.py +115 -0
- huaweicloudsdkdcs/v2/model/update_bandwidth_request.py +139 -0
- huaweicloudsdkdcs/v2/model/update_bandwidth_resp.py +84 -0
- huaweicloudsdkdcs/v2/model/update_bandwidth_response.py +112 -0
- huaweicloudsdkdcs/v2/model/update_group_bandwidth_info_request.py +142 -0
- huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request.py +139 -0
- huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request_body.py +257 -0
- huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_response.py +258 -0
- huaweicloudsdkdcs/v2/model/update_public_ip_request.py +139 -0
- huaweicloudsdkdcs/v2/model/update_public_ip_request_body.py +173 -0
- huaweicloudsdkdcs/v2/model/update_public_ip_response.py +116 -0
- huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_request.py +139 -0
- huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_response.py +116 -0
- huaweicloudsdkdcs/v2/model/upgrade_minor_version_request_body.py +144 -0
- huaweicloudsdkdcs/v2/region/dcs_region.py +6 -0
- {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/RECORD +56 -21
- {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdcs-3.1.85.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/top_level.txt +0 -0
|
@@ -19,16 +19,28 @@ class TargetInstanceBody:
|
|
|
19
19
|
openapi_types = {
|
|
20
20
|
'id': 'str',
|
|
21
21
|
'name': 'str',
|
|
22
|
-
'password': 'str'
|
|
22
|
+
'password': 'str',
|
|
23
|
+
'task_status': 'str',
|
|
24
|
+
'ip': 'str',
|
|
25
|
+
'port': 'str',
|
|
26
|
+
'addrs': 'str',
|
|
27
|
+
'proxy_multi_db': 'bool',
|
|
28
|
+
'db': 'str'
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
attribute_map = {
|
|
26
32
|
'id': 'id',
|
|
27
33
|
'name': 'name',
|
|
28
|
-
'password': 'password'
|
|
34
|
+
'password': 'password',
|
|
35
|
+
'task_status': 'task_status',
|
|
36
|
+
'ip': 'ip',
|
|
37
|
+
'port': 'port',
|
|
38
|
+
'addrs': 'addrs',
|
|
39
|
+
'proxy_multi_db': 'proxy_multi_db',
|
|
40
|
+
'db': 'db'
|
|
29
41
|
}
|
|
30
42
|
|
|
31
|
-
def __init__(self, id=None, name=None, password=None):
|
|
43
|
+
def __init__(self, id=None, name=None, password=None, task_status=None, ip=None, port=None, addrs=None, proxy_multi_db=None, db=None):
|
|
32
44
|
"""TargetInstanceBody
|
|
33
45
|
|
|
34
46
|
The model defined in huaweicloud sdk
|
|
@@ -39,6 +51,18 @@ class TargetInstanceBody:
|
|
|
39
51
|
:type name: str
|
|
40
52
|
:param password: Redis密码,如果设置了密码,则必须填写。
|
|
41
53
|
:type password: str
|
|
54
|
+
:param task_status: 任务状态。
|
|
55
|
+
:type task_status: str
|
|
56
|
+
:param ip: Redis IP地址。
|
|
57
|
+
:type ip: str
|
|
58
|
+
:param port: Redis端口。
|
|
59
|
+
:type port: str
|
|
60
|
+
:param addrs: Redis实例地址。
|
|
61
|
+
:type addrs: str
|
|
62
|
+
:param proxy_multi_db: proxy实例是否开启了多DB。
|
|
63
|
+
:type proxy_multi_db: bool
|
|
64
|
+
:param db: Redis数据库。
|
|
65
|
+
:type db: str
|
|
42
66
|
"""
|
|
43
67
|
|
|
44
68
|
|
|
@@ -46,6 +70,12 @@ class TargetInstanceBody:
|
|
|
46
70
|
self._id = None
|
|
47
71
|
self._name = None
|
|
48
72
|
self._password = None
|
|
73
|
+
self._task_status = None
|
|
74
|
+
self._ip = None
|
|
75
|
+
self._port = None
|
|
76
|
+
self._addrs = None
|
|
77
|
+
self._proxy_multi_db = None
|
|
78
|
+
self._db = None
|
|
49
79
|
self.discriminator = None
|
|
50
80
|
|
|
51
81
|
self.id = id
|
|
@@ -53,6 +83,18 @@ class TargetInstanceBody:
|
|
|
53
83
|
self.name = name
|
|
54
84
|
if password is not None:
|
|
55
85
|
self.password = password
|
|
86
|
+
if task_status is not None:
|
|
87
|
+
self.task_status = task_status
|
|
88
|
+
if ip is not None:
|
|
89
|
+
self.ip = ip
|
|
90
|
+
if port is not None:
|
|
91
|
+
self.port = port
|
|
92
|
+
if addrs is not None:
|
|
93
|
+
self.addrs = addrs
|
|
94
|
+
if proxy_multi_db is not None:
|
|
95
|
+
self.proxy_multi_db = proxy_multi_db
|
|
96
|
+
if db is not None:
|
|
97
|
+
self.db = db
|
|
56
98
|
|
|
57
99
|
@property
|
|
58
100
|
def id(self):
|
|
@@ -120,6 +162,138 @@ class TargetInstanceBody:
|
|
|
120
162
|
"""
|
|
121
163
|
self._password = password
|
|
122
164
|
|
|
165
|
+
@property
|
|
166
|
+
def task_status(self):
|
|
167
|
+
"""Gets the task_status of this TargetInstanceBody.
|
|
168
|
+
|
|
169
|
+
任务状态。
|
|
170
|
+
|
|
171
|
+
:return: The task_status of this TargetInstanceBody.
|
|
172
|
+
:rtype: str
|
|
173
|
+
"""
|
|
174
|
+
return self._task_status
|
|
175
|
+
|
|
176
|
+
@task_status.setter
|
|
177
|
+
def task_status(self, task_status):
|
|
178
|
+
"""Sets the task_status of this TargetInstanceBody.
|
|
179
|
+
|
|
180
|
+
任务状态。
|
|
181
|
+
|
|
182
|
+
:param task_status: The task_status of this TargetInstanceBody.
|
|
183
|
+
:type task_status: str
|
|
184
|
+
"""
|
|
185
|
+
self._task_status = task_status
|
|
186
|
+
|
|
187
|
+
@property
|
|
188
|
+
def ip(self):
|
|
189
|
+
"""Gets the ip of this TargetInstanceBody.
|
|
190
|
+
|
|
191
|
+
Redis IP地址。
|
|
192
|
+
|
|
193
|
+
:return: The ip of this TargetInstanceBody.
|
|
194
|
+
:rtype: str
|
|
195
|
+
"""
|
|
196
|
+
return self._ip
|
|
197
|
+
|
|
198
|
+
@ip.setter
|
|
199
|
+
def ip(self, ip):
|
|
200
|
+
"""Sets the ip of this TargetInstanceBody.
|
|
201
|
+
|
|
202
|
+
Redis IP地址。
|
|
203
|
+
|
|
204
|
+
:param ip: The ip of this TargetInstanceBody.
|
|
205
|
+
:type ip: str
|
|
206
|
+
"""
|
|
207
|
+
self._ip = ip
|
|
208
|
+
|
|
209
|
+
@property
|
|
210
|
+
def port(self):
|
|
211
|
+
"""Gets the port of this TargetInstanceBody.
|
|
212
|
+
|
|
213
|
+
Redis端口。
|
|
214
|
+
|
|
215
|
+
:return: The port of this TargetInstanceBody.
|
|
216
|
+
:rtype: str
|
|
217
|
+
"""
|
|
218
|
+
return self._port
|
|
219
|
+
|
|
220
|
+
@port.setter
|
|
221
|
+
def port(self, port):
|
|
222
|
+
"""Sets the port of this TargetInstanceBody.
|
|
223
|
+
|
|
224
|
+
Redis端口。
|
|
225
|
+
|
|
226
|
+
:param port: The port of this TargetInstanceBody.
|
|
227
|
+
:type port: str
|
|
228
|
+
"""
|
|
229
|
+
self._port = port
|
|
230
|
+
|
|
231
|
+
@property
|
|
232
|
+
def addrs(self):
|
|
233
|
+
"""Gets the addrs of this TargetInstanceBody.
|
|
234
|
+
|
|
235
|
+
Redis实例地址。
|
|
236
|
+
|
|
237
|
+
:return: The addrs of this TargetInstanceBody.
|
|
238
|
+
:rtype: str
|
|
239
|
+
"""
|
|
240
|
+
return self._addrs
|
|
241
|
+
|
|
242
|
+
@addrs.setter
|
|
243
|
+
def addrs(self, addrs):
|
|
244
|
+
"""Sets the addrs of this TargetInstanceBody.
|
|
245
|
+
|
|
246
|
+
Redis实例地址。
|
|
247
|
+
|
|
248
|
+
:param addrs: The addrs of this TargetInstanceBody.
|
|
249
|
+
:type addrs: str
|
|
250
|
+
"""
|
|
251
|
+
self._addrs = addrs
|
|
252
|
+
|
|
253
|
+
@property
|
|
254
|
+
def proxy_multi_db(self):
|
|
255
|
+
"""Gets the proxy_multi_db of this TargetInstanceBody.
|
|
256
|
+
|
|
257
|
+
proxy实例是否开启了多DB。
|
|
258
|
+
|
|
259
|
+
:return: The proxy_multi_db of this TargetInstanceBody.
|
|
260
|
+
:rtype: bool
|
|
261
|
+
"""
|
|
262
|
+
return self._proxy_multi_db
|
|
263
|
+
|
|
264
|
+
@proxy_multi_db.setter
|
|
265
|
+
def proxy_multi_db(self, proxy_multi_db):
|
|
266
|
+
"""Sets the proxy_multi_db of this TargetInstanceBody.
|
|
267
|
+
|
|
268
|
+
proxy实例是否开启了多DB。
|
|
269
|
+
|
|
270
|
+
:param proxy_multi_db: The proxy_multi_db of this TargetInstanceBody.
|
|
271
|
+
:type proxy_multi_db: bool
|
|
272
|
+
"""
|
|
273
|
+
self._proxy_multi_db = proxy_multi_db
|
|
274
|
+
|
|
275
|
+
@property
|
|
276
|
+
def db(self):
|
|
277
|
+
"""Gets the db of this TargetInstanceBody.
|
|
278
|
+
|
|
279
|
+
Redis数据库。
|
|
280
|
+
|
|
281
|
+
:return: The db of this TargetInstanceBody.
|
|
282
|
+
:rtype: str
|
|
283
|
+
"""
|
|
284
|
+
return self._db
|
|
285
|
+
|
|
286
|
+
@db.setter
|
|
287
|
+
def db(self, db):
|
|
288
|
+
"""Sets the db of this TargetInstanceBody.
|
|
289
|
+
|
|
290
|
+
Redis数据库。
|
|
291
|
+
|
|
292
|
+
:param db: The db of this TargetInstanceBody.
|
|
293
|
+
:type db: str
|
|
294
|
+
"""
|
|
295
|
+
self._db = db
|
|
296
|
+
|
|
123
297
|
def to_dict(self):
|
|
124
298
|
"""Returns the model properties as a dict"""
|
|
125
299
|
result = {}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateBandwidthInfoRequest:
|
|
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
|
+
'group_bandwidths': 'list[UpdateGroupBandwidthInfoRequest]'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'group_bandwidths': 'group_bandwidths'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, group_bandwidths=None):
|
|
28
|
+
"""UpdateBandwidthInfoRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param group_bandwidths: 分片带宽列表。
|
|
33
|
+
:type group_bandwidths: list[:class:`huaweicloudsdkdcs.v2.UpdateGroupBandwidthInfoRequest`]
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._group_bandwidths = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
if group_bandwidths is not None:
|
|
42
|
+
self.group_bandwidths = group_bandwidths
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def group_bandwidths(self):
|
|
46
|
+
"""Gets the group_bandwidths of this UpdateBandwidthInfoRequest.
|
|
47
|
+
|
|
48
|
+
分片带宽列表。
|
|
49
|
+
|
|
50
|
+
:return: The group_bandwidths of this UpdateBandwidthInfoRequest.
|
|
51
|
+
:rtype: list[:class:`huaweicloudsdkdcs.v2.UpdateGroupBandwidthInfoRequest`]
|
|
52
|
+
"""
|
|
53
|
+
return self._group_bandwidths
|
|
54
|
+
|
|
55
|
+
@group_bandwidths.setter
|
|
56
|
+
def group_bandwidths(self, group_bandwidths):
|
|
57
|
+
"""Sets the group_bandwidths of this UpdateBandwidthInfoRequest.
|
|
58
|
+
|
|
59
|
+
分片带宽列表。
|
|
60
|
+
|
|
61
|
+
:param group_bandwidths: The group_bandwidths of this UpdateBandwidthInfoRequest.
|
|
62
|
+
:type group_bandwidths: list[:class:`huaweicloudsdkdcs.v2.UpdateGroupBandwidthInfoRequest`]
|
|
63
|
+
"""
|
|
64
|
+
self._group_bandwidths = group_bandwidths
|
|
65
|
+
|
|
66
|
+
def to_dict(self):
|
|
67
|
+
"""Returns the model properties as a dict"""
|
|
68
|
+
result = {}
|
|
69
|
+
|
|
70
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
71
|
+
value = getattr(self, attr)
|
|
72
|
+
if isinstance(value, list):
|
|
73
|
+
result[attr] = list(map(
|
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
75
|
+
value
|
|
76
|
+
))
|
|
77
|
+
elif hasattr(value, "to_dict"):
|
|
78
|
+
result[attr] = value.to_dict()
|
|
79
|
+
elif isinstance(value, dict):
|
|
80
|
+
result[attr] = dict(map(
|
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
|
83
|
+
value.items()
|
|
84
|
+
))
|
|
85
|
+
else:
|
|
86
|
+
if attr in self.sensitive_list:
|
|
87
|
+
result[attr] = "****"
|
|
88
|
+
else:
|
|
89
|
+
result[attr] = value
|
|
90
|
+
|
|
91
|
+
return result
|
|
92
|
+
|
|
93
|
+
def to_str(self):
|
|
94
|
+
"""Returns the string representation of the model"""
|
|
95
|
+
import simplejson as json
|
|
96
|
+
if six.PY2:
|
|
97
|
+
import sys
|
|
98
|
+
reload(sys)
|
|
99
|
+
sys.setdefaultencoding("utf-8")
|
|
100
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
101
|
+
|
|
102
|
+
def __repr__(self):
|
|
103
|
+
"""For `print`"""
|
|
104
|
+
return self.to_str()
|
|
105
|
+
|
|
106
|
+
def __eq__(self, other):
|
|
107
|
+
"""Returns true if both objects are equal"""
|
|
108
|
+
if not isinstance(other, UpdateBandwidthInfoRequest):
|
|
109
|
+
return False
|
|
110
|
+
|
|
111
|
+
return self.__dict__ == other.__dict__
|
|
112
|
+
|
|
113
|
+
def __ne__(self, other):
|
|
114
|
+
"""Returns true if both objects are not equal"""
|
|
115
|
+
return not self == other
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateBandwidthRequest:
|
|
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
|
+
'body': 'UpdateBandwidthInfoRequest'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'instance_id': 'instance_id',
|
|
26
|
+
'body': 'body'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, instance_id=None, body=None):
|
|
30
|
+
"""UpdateBandwidthRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param instance_id: 实例ID。
|
|
35
|
+
:type instance_id: str
|
|
36
|
+
:param body: Body of the UpdateBandwidthRequest
|
|
37
|
+
:type body: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthInfoRequest`
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._instance_id = None
|
|
43
|
+
self._body = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.instance_id = instance_id
|
|
47
|
+
if body is not None:
|
|
48
|
+
self.body = body
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def instance_id(self):
|
|
52
|
+
"""Gets the instance_id of this UpdateBandwidthRequest.
|
|
53
|
+
|
|
54
|
+
实例ID。
|
|
55
|
+
|
|
56
|
+
:return: The instance_id of this UpdateBandwidthRequest.
|
|
57
|
+
:rtype: str
|
|
58
|
+
"""
|
|
59
|
+
return self._instance_id
|
|
60
|
+
|
|
61
|
+
@instance_id.setter
|
|
62
|
+
def instance_id(self, instance_id):
|
|
63
|
+
"""Sets the instance_id of this UpdateBandwidthRequest.
|
|
64
|
+
|
|
65
|
+
实例ID。
|
|
66
|
+
|
|
67
|
+
:param instance_id: The instance_id of this UpdateBandwidthRequest.
|
|
68
|
+
:type instance_id: str
|
|
69
|
+
"""
|
|
70
|
+
self._instance_id = instance_id
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def body(self):
|
|
74
|
+
"""Gets the body of this UpdateBandwidthRequest.
|
|
75
|
+
|
|
76
|
+
:return: The body of this UpdateBandwidthRequest.
|
|
77
|
+
:rtype: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthInfoRequest`
|
|
78
|
+
"""
|
|
79
|
+
return self._body
|
|
80
|
+
|
|
81
|
+
@body.setter
|
|
82
|
+
def body(self, body):
|
|
83
|
+
"""Sets the body of this UpdateBandwidthRequest.
|
|
84
|
+
|
|
85
|
+
:param body: The body of this UpdateBandwidthRequest.
|
|
86
|
+
:type body: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthInfoRequest`
|
|
87
|
+
"""
|
|
88
|
+
self._body = body
|
|
89
|
+
|
|
90
|
+
def to_dict(self):
|
|
91
|
+
"""Returns the model properties as a dict"""
|
|
92
|
+
result = {}
|
|
93
|
+
|
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
95
|
+
value = getattr(self, attr)
|
|
96
|
+
if isinstance(value, list):
|
|
97
|
+
result[attr] = list(map(
|
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
99
|
+
value
|
|
100
|
+
))
|
|
101
|
+
elif hasattr(value, "to_dict"):
|
|
102
|
+
result[attr] = value.to_dict()
|
|
103
|
+
elif isinstance(value, dict):
|
|
104
|
+
result[attr] = dict(map(
|
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
|
107
|
+
value.items()
|
|
108
|
+
))
|
|
109
|
+
else:
|
|
110
|
+
if attr in self.sensitive_list:
|
|
111
|
+
result[attr] = "****"
|
|
112
|
+
else:
|
|
113
|
+
result[attr] = value
|
|
114
|
+
|
|
115
|
+
return result
|
|
116
|
+
|
|
117
|
+
def to_str(self):
|
|
118
|
+
"""Returns the string representation of the model"""
|
|
119
|
+
import simplejson as json
|
|
120
|
+
if six.PY2:
|
|
121
|
+
import sys
|
|
122
|
+
reload(sys)
|
|
123
|
+
sys.setdefaultencoding("utf-8")
|
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
125
|
+
|
|
126
|
+
def __repr__(self):
|
|
127
|
+
"""For `print`"""
|
|
128
|
+
return self.to_str()
|
|
129
|
+
|
|
130
|
+
def __eq__(self, other):
|
|
131
|
+
"""Returns true if both objects are equal"""
|
|
132
|
+
if not isinstance(other, UpdateBandwidthRequest):
|
|
133
|
+
return False
|
|
134
|
+
|
|
135
|
+
return self.__dict__ == other.__dict__
|
|
136
|
+
|
|
137
|
+
def __ne__(self, other):
|
|
138
|
+
"""Returns true if both objects are not equal"""
|
|
139
|
+
return not self == other
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateBandwidthResp:
|
|
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
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
def __init__(self):
|
|
26
|
+
"""UpdateBandwidthResp
|
|
27
|
+
|
|
28
|
+
The model defined in huaweicloud sdk
|
|
29
|
+
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
self.discriminator = None
|
|
34
|
+
|
|
35
|
+
def to_dict(self):
|
|
36
|
+
"""Returns the model properties as a dict"""
|
|
37
|
+
result = {}
|
|
38
|
+
|
|
39
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
40
|
+
value = getattr(self, attr)
|
|
41
|
+
if isinstance(value, list):
|
|
42
|
+
result[attr] = list(map(
|
|
43
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
44
|
+
value
|
|
45
|
+
))
|
|
46
|
+
elif hasattr(value, "to_dict"):
|
|
47
|
+
result[attr] = value.to_dict()
|
|
48
|
+
elif isinstance(value, dict):
|
|
49
|
+
result[attr] = dict(map(
|
|
50
|
+
lambda item: (item[0], item[1].to_dict())
|
|
51
|
+
if hasattr(item[1], "to_dict") else item,
|
|
52
|
+
value.items()
|
|
53
|
+
))
|
|
54
|
+
else:
|
|
55
|
+
if attr in self.sensitive_list:
|
|
56
|
+
result[attr] = "****"
|
|
57
|
+
else:
|
|
58
|
+
result[attr] = value
|
|
59
|
+
|
|
60
|
+
return result
|
|
61
|
+
|
|
62
|
+
def to_str(self):
|
|
63
|
+
"""Returns the string representation of the model"""
|
|
64
|
+
import simplejson as json
|
|
65
|
+
if six.PY2:
|
|
66
|
+
import sys
|
|
67
|
+
reload(sys)
|
|
68
|
+
sys.setdefaultencoding("utf-8")
|
|
69
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
70
|
+
|
|
71
|
+
def __repr__(self):
|
|
72
|
+
"""For `print`"""
|
|
73
|
+
return self.to_str()
|
|
74
|
+
|
|
75
|
+
def __eq__(self, other):
|
|
76
|
+
"""Returns true if both objects are equal"""
|
|
77
|
+
if not isinstance(other, UpdateBandwidthResp):
|
|
78
|
+
return False
|
|
79
|
+
|
|
80
|
+
return self.__dict__ == other.__dict__
|
|
81
|
+
|
|
82
|
+
def __ne__(self, other):
|
|
83
|
+
"""Returns true if both objects are not equal"""
|
|
84
|
+
return not self == other
|
|
@@ -0,0 +1,112 @@
|
|
|
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 UpdateBandwidthResponse(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
|
+
'body': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'body': 'body'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, body=None):
|
|
29
|
+
"""UpdateBandwidthResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param body:
|
|
34
|
+
:type body: str
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
super(UpdateBandwidthResponse, self).__init__()
|
|
38
|
+
|
|
39
|
+
self._body = None
|
|
40
|
+
self.discriminator = None
|
|
41
|
+
|
|
42
|
+
if body is not None:
|
|
43
|
+
self.body = body
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def body(self):
|
|
47
|
+
"""Gets the body of this UpdateBandwidthResponse.
|
|
48
|
+
|
|
49
|
+
:return: The body of this UpdateBandwidthResponse.
|
|
50
|
+
:rtype: str
|
|
51
|
+
"""
|
|
52
|
+
return self._body
|
|
53
|
+
|
|
54
|
+
@body.setter
|
|
55
|
+
def body(self, body):
|
|
56
|
+
"""Sets the body of this UpdateBandwidthResponse.
|
|
57
|
+
|
|
58
|
+
:param body: The body of this UpdateBandwidthResponse.
|
|
59
|
+
:type body: str
|
|
60
|
+
"""
|
|
61
|
+
self._body = body
|
|
62
|
+
|
|
63
|
+
def to_dict(self):
|
|
64
|
+
"""Returns the model properties as a dict"""
|
|
65
|
+
result = {}
|
|
66
|
+
|
|
67
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
68
|
+
value = getattr(self, attr)
|
|
69
|
+
if isinstance(value, list):
|
|
70
|
+
result[attr] = list(map(
|
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
72
|
+
value
|
|
73
|
+
))
|
|
74
|
+
elif hasattr(value, "to_dict"):
|
|
75
|
+
result[attr] = value.to_dict()
|
|
76
|
+
elif isinstance(value, dict):
|
|
77
|
+
result[attr] = dict(map(
|
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
|
80
|
+
value.items()
|
|
81
|
+
))
|
|
82
|
+
else:
|
|
83
|
+
if attr in self.sensitive_list:
|
|
84
|
+
result[attr] = "****"
|
|
85
|
+
else:
|
|
86
|
+
result[attr] = value
|
|
87
|
+
|
|
88
|
+
return result
|
|
89
|
+
|
|
90
|
+
def to_str(self):
|
|
91
|
+
"""Returns the string representation of the model"""
|
|
92
|
+
import simplejson as json
|
|
93
|
+
if six.PY2:
|
|
94
|
+
import sys
|
|
95
|
+
reload(sys)
|
|
96
|
+
sys.setdefaultencoding("utf-8")
|
|
97
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
98
|
+
|
|
99
|
+
def __repr__(self):
|
|
100
|
+
"""For `print`"""
|
|
101
|
+
return self.to_str()
|
|
102
|
+
|
|
103
|
+
def __eq__(self, other):
|
|
104
|
+
"""Returns true if both objects are equal"""
|
|
105
|
+
if not isinstance(other, UpdateBandwidthResponse):
|
|
106
|
+
return False
|
|
107
|
+
|
|
108
|
+
return self.__dict__ == other.__dict__
|
|
109
|
+
|
|
110
|
+
def __ne__(self, other):
|
|
111
|
+
"""Returns true if both objects are not equal"""
|
|
112
|
+
return not self == other
|