huaweicloudsdkdcs 3.1.126__py2.py3-none-any.whl → 3.1.128__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 +31 -0
- huaweicloudsdkdcs/v2/dcs_async_client.py +688 -28
- huaweicloudsdkdcs/v2/dcs_client.py +688 -28
- huaweicloudsdkdcs/v2/model/__init__.py +31 -0
- huaweicloudsdkdcs/v2/model/bandwidth_auto_scaling_policy.py +258 -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/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/group_bandwidth_info.py +231 -0
- 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 +259 -0
- huaweicloudsdkdcs/v2/model/show_instance_version_request.py +114 -0
- huaweicloudsdkdcs/v2/model/show_instance_version_response.py +261 -0
- 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 +258 -0
- huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_response.py +259 -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-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/METADATA +2 -2
- {huaweicloudsdkdcs-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/RECORD +40 -9
- {huaweicloudsdkdcs-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdcs-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdcs-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,261 @@
|
|
|
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 ShowInstanceVersionResponse(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
|
+
'engine_minor_version': 'str',
|
|
22
|
+
'latest_engine_minor_version': 'str',
|
|
23
|
+
'proxy_minor_version': 'str',
|
|
24
|
+
'latest_proxy_minor_version': 'str',
|
|
25
|
+
'engine_minor_version_upgradable': 'bool',
|
|
26
|
+
'proxy_minor_version_upgradable': 'bool'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
attribute_map = {
|
|
30
|
+
'engine_minor_version': 'engine_minor_version',
|
|
31
|
+
'latest_engine_minor_version': 'latest_engine_minor_version',
|
|
32
|
+
'proxy_minor_version': 'proxy_minor_version',
|
|
33
|
+
'latest_proxy_minor_version': 'latest_proxy_minor_version',
|
|
34
|
+
'engine_minor_version_upgradable': 'engine_minor_version_upgradable',
|
|
35
|
+
'proxy_minor_version_upgradable': 'proxy_minor_version_upgradable'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
def __init__(self, engine_minor_version=None, latest_engine_minor_version=None, proxy_minor_version=None, latest_proxy_minor_version=None, engine_minor_version_upgradable=None, proxy_minor_version_upgradable=None):
|
|
39
|
+
"""ShowInstanceVersionResponse
|
|
40
|
+
|
|
41
|
+
The model defined in huaweicloud sdk
|
|
42
|
+
|
|
43
|
+
:param engine_minor_version: 当前实例内核小版本信息。
|
|
44
|
+
:type engine_minor_version: str
|
|
45
|
+
:param latest_engine_minor_version: DCS实例最新的内核小版本信息。
|
|
46
|
+
:type latest_engine_minor_version: str
|
|
47
|
+
:param proxy_minor_version: 当前实例proxy代理节点版本信息。
|
|
48
|
+
:type proxy_minor_version: str
|
|
49
|
+
:param latest_proxy_minor_version: DCS实例最新的proxy代理节点版本信息。
|
|
50
|
+
:type latest_proxy_minor_version: str
|
|
51
|
+
:param engine_minor_version_upgradable: 当前实例内核是否可以升级。
|
|
52
|
+
:type engine_minor_version_upgradable: bool
|
|
53
|
+
:param proxy_minor_version_upgradable: 当前实例proxy代理节点是否可以升级。
|
|
54
|
+
:type proxy_minor_version_upgradable: bool
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
super(ShowInstanceVersionResponse, self).__init__()
|
|
58
|
+
|
|
59
|
+
self._engine_minor_version = None
|
|
60
|
+
self._latest_engine_minor_version = None
|
|
61
|
+
self._proxy_minor_version = None
|
|
62
|
+
self._latest_proxy_minor_version = None
|
|
63
|
+
self._engine_minor_version_upgradable = None
|
|
64
|
+
self._proxy_minor_version_upgradable = None
|
|
65
|
+
self.discriminator = None
|
|
66
|
+
|
|
67
|
+
if engine_minor_version is not None:
|
|
68
|
+
self.engine_minor_version = engine_minor_version
|
|
69
|
+
if latest_engine_minor_version is not None:
|
|
70
|
+
self.latest_engine_minor_version = latest_engine_minor_version
|
|
71
|
+
if proxy_minor_version is not None:
|
|
72
|
+
self.proxy_minor_version = proxy_minor_version
|
|
73
|
+
if latest_proxy_minor_version is not None:
|
|
74
|
+
self.latest_proxy_minor_version = latest_proxy_minor_version
|
|
75
|
+
if engine_minor_version_upgradable is not None:
|
|
76
|
+
self.engine_minor_version_upgradable = engine_minor_version_upgradable
|
|
77
|
+
if proxy_minor_version_upgradable is not None:
|
|
78
|
+
self.proxy_minor_version_upgradable = proxy_minor_version_upgradable
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def engine_minor_version(self):
|
|
82
|
+
"""Gets the engine_minor_version of this ShowInstanceVersionResponse.
|
|
83
|
+
|
|
84
|
+
当前实例内核小版本信息。
|
|
85
|
+
|
|
86
|
+
:return: The engine_minor_version of this ShowInstanceVersionResponse.
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
89
|
+
return self._engine_minor_version
|
|
90
|
+
|
|
91
|
+
@engine_minor_version.setter
|
|
92
|
+
def engine_minor_version(self, engine_minor_version):
|
|
93
|
+
"""Sets the engine_minor_version of this ShowInstanceVersionResponse.
|
|
94
|
+
|
|
95
|
+
当前实例内核小版本信息。
|
|
96
|
+
|
|
97
|
+
:param engine_minor_version: The engine_minor_version of this ShowInstanceVersionResponse.
|
|
98
|
+
:type engine_minor_version: str
|
|
99
|
+
"""
|
|
100
|
+
self._engine_minor_version = engine_minor_version
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def latest_engine_minor_version(self):
|
|
104
|
+
"""Gets the latest_engine_minor_version of this ShowInstanceVersionResponse.
|
|
105
|
+
|
|
106
|
+
DCS实例最新的内核小版本信息。
|
|
107
|
+
|
|
108
|
+
:return: The latest_engine_minor_version of this ShowInstanceVersionResponse.
|
|
109
|
+
:rtype: str
|
|
110
|
+
"""
|
|
111
|
+
return self._latest_engine_minor_version
|
|
112
|
+
|
|
113
|
+
@latest_engine_minor_version.setter
|
|
114
|
+
def latest_engine_minor_version(self, latest_engine_minor_version):
|
|
115
|
+
"""Sets the latest_engine_minor_version of this ShowInstanceVersionResponse.
|
|
116
|
+
|
|
117
|
+
DCS实例最新的内核小版本信息。
|
|
118
|
+
|
|
119
|
+
:param latest_engine_minor_version: The latest_engine_minor_version of this ShowInstanceVersionResponse.
|
|
120
|
+
:type latest_engine_minor_version: str
|
|
121
|
+
"""
|
|
122
|
+
self._latest_engine_minor_version = latest_engine_minor_version
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
def proxy_minor_version(self):
|
|
126
|
+
"""Gets the proxy_minor_version of this ShowInstanceVersionResponse.
|
|
127
|
+
|
|
128
|
+
当前实例proxy代理节点版本信息。
|
|
129
|
+
|
|
130
|
+
:return: The proxy_minor_version of this ShowInstanceVersionResponse.
|
|
131
|
+
:rtype: str
|
|
132
|
+
"""
|
|
133
|
+
return self._proxy_minor_version
|
|
134
|
+
|
|
135
|
+
@proxy_minor_version.setter
|
|
136
|
+
def proxy_minor_version(self, proxy_minor_version):
|
|
137
|
+
"""Sets the proxy_minor_version of this ShowInstanceVersionResponse.
|
|
138
|
+
|
|
139
|
+
当前实例proxy代理节点版本信息。
|
|
140
|
+
|
|
141
|
+
:param proxy_minor_version: The proxy_minor_version of this ShowInstanceVersionResponse.
|
|
142
|
+
:type proxy_minor_version: str
|
|
143
|
+
"""
|
|
144
|
+
self._proxy_minor_version = proxy_minor_version
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def latest_proxy_minor_version(self):
|
|
148
|
+
"""Gets the latest_proxy_minor_version of this ShowInstanceVersionResponse.
|
|
149
|
+
|
|
150
|
+
DCS实例最新的proxy代理节点版本信息。
|
|
151
|
+
|
|
152
|
+
:return: The latest_proxy_minor_version of this ShowInstanceVersionResponse.
|
|
153
|
+
:rtype: str
|
|
154
|
+
"""
|
|
155
|
+
return self._latest_proxy_minor_version
|
|
156
|
+
|
|
157
|
+
@latest_proxy_minor_version.setter
|
|
158
|
+
def latest_proxy_minor_version(self, latest_proxy_minor_version):
|
|
159
|
+
"""Sets the latest_proxy_minor_version of this ShowInstanceVersionResponse.
|
|
160
|
+
|
|
161
|
+
DCS实例最新的proxy代理节点版本信息。
|
|
162
|
+
|
|
163
|
+
:param latest_proxy_minor_version: The latest_proxy_minor_version of this ShowInstanceVersionResponse.
|
|
164
|
+
:type latest_proxy_minor_version: str
|
|
165
|
+
"""
|
|
166
|
+
self._latest_proxy_minor_version = latest_proxy_minor_version
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
def engine_minor_version_upgradable(self):
|
|
170
|
+
"""Gets the engine_minor_version_upgradable of this ShowInstanceVersionResponse.
|
|
171
|
+
|
|
172
|
+
当前实例内核是否可以升级。
|
|
173
|
+
|
|
174
|
+
:return: The engine_minor_version_upgradable of this ShowInstanceVersionResponse.
|
|
175
|
+
:rtype: bool
|
|
176
|
+
"""
|
|
177
|
+
return self._engine_minor_version_upgradable
|
|
178
|
+
|
|
179
|
+
@engine_minor_version_upgradable.setter
|
|
180
|
+
def engine_minor_version_upgradable(self, engine_minor_version_upgradable):
|
|
181
|
+
"""Sets the engine_minor_version_upgradable of this ShowInstanceVersionResponse.
|
|
182
|
+
|
|
183
|
+
当前实例内核是否可以升级。
|
|
184
|
+
|
|
185
|
+
:param engine_minor_version_upgradable: The engine_minor_version_upgradable of this ShowInstanceVersionResponse.
|
|
186
|
+
:type engine_minor_version_upgradable: bool
|
|
187
|
+
"""
|
|
188
|
+
self._engine_minor_version_upgradable = engine_minor_version_upgradable
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
def proxy_minor_version_upgradable(self):
|
|
192
|
+
"""Gets the proxy_minor_version_upgradable of this ShowInstanceVersionResponse.
|
|
193
|
+
|
|
194
|
+
当前实例proxy代理节点是否可以升级。
|
|
195
|
+
|
|
196
|
+
:return: The proxy_minor_version_upgradable of this ShowInstanceVersionResponse.
|
|
197
|
+
:rtype: bool
|
|
198
|
+
"""
|
|
199
|
+
return self._proxy_minor_version_upgradable
|
|
200
|
+
|
|
201
|
+
@proxy_minor_version_upgradable.setter
|
|
202
|
+
def proxy_minor_version_upgradable(self, proxy_minor_version_upgradable):
|
|
203
|
+
"""Sets the proxy_minor_version_upgradable of this ShowInstanceVersionResponse.
|
|
204
|
+
|
|
205
|
+
当前实例proxy代理节点是否可以升级。
|
|
206
|
+
|
|
207
|
+
:param proxy_minor_version_upgradable: The proxy_minor_version_upgradable of this ShowInstanceVersionResponse.
|
|
208
|
+
:type proxy_minor_version_upgradable: bool
|
|
209
|
+
"""
|
|
210
|
+
self._proxy_minor_version_upgradable = proxy_minor_version_upgradable
|
|
211
|
+
|
|
212
|
+
def to_dict(self):
|
|
213
|
+
"""Returns the model properties as a dict"""
|
|
214
|
+
result = {}
|
|
215
|
+
|
|
216
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
217
|
+
value = getattr(self, attr)
|
|
218
|
+
if isinstance(value, list):
|
|
219
|
+
result[attr] = list(map(
|
|
220
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
221
|
+
value
|
|
222
|
+
))
|
|
223
|
+
elif hasattr(value, "to_dict"):
|
|
224
|
+
result[attr] = value.to_dict()
|
|
225
|
+
elif isinstance(value, dict):
|
|
226
|
+
result[attr] = dict(map(
|
|
227
|
+
lambda item: (item[0], item[1].to_dict())
|
|
228
|
+
if hasattr(item[1], "to_dict") else item,
|
|
229
|
+
value.items()
|
|
230
|
+
))
|
|
231
|
+
else:
|
|
232
|
+
if attr in self.sensitive_list:
|
|
233
|
+
result[attr] = "****"
|
|
234
|
+
else:
|
|
235
|
+
result[attr] = value
|
|
236
|
+
|
|
237
|
+
return result
|
|
238
|
+
|
|
239
|
+
def to_str(self):
|
|
240
|
+
"""Returns the string representation of the model"""
|
|
241
|
+
import simplejson as json
|
|
242
|
+
if six.PY2:
|
|
243
|
+
import sys
|
|
244
|
+
reload(sys)
|
|
245
|
+
sys.setdefaultencoding("utf-8")
|
|
246
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
247
|
+
|
|
248
|
+
def __repr__(self):
|
|
249
|
+
"""For `print`"""
|
|
250
|
+
return self.to_str()
|
|
251
|
+
|
|
252
|
+
def __eq__(self, other):
|
|
253
|
+
"""Returns true if both objects are equal"""
|
|
254
|
+
if not isinstance(other, ShowInstanceVersionResponse):
|
|
255
|
+
return False
|
|
256
|
+
|
|
257
|
+
return self.__dict__ == other.__dict__
|
|
258
|
+
|
|
259
|
+
def __ne__(self, other):
|
|
260
|
+
"""Returns true if both objects are not equal"""
|
|
261
|
+
return not self == other
|
|
@@ -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
|