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
|
@@ -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 GroupBandwidthInfo:
|
|
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_id': 'str',
|
|
21
|
+
'updated_at': 'str',
|
|
22
|
+
'bandwidth': 'int',
|
|
23
|
+
'max_bandwidth': 'int',
|
|
24
|
+
'assured_bandwidth': 'int'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'group_id': 'group_id',
|
|
29
|
+
'updated_at': 'updated_at',
|
|
30
|
+
'bandwidth': 'bandwidth',
|
|
31
|
+
'max_bandwidth': 'max_bandwidth',
|
|
32
|
+
'assured_bandwidth': 'assured_bandwidth'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, group_id=None, updated_at=None, bandwidth=None, max_bandwidth=None, assured_bandwidth=None):
|
|
36
|
+
"""GroupBandwidthInfo
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param group_id: 分片ID。
|
|
41
|
+
:type group_id: str
|
|
42
|
+
:param updated_at: 更新时间,UTC时间。
|
|
43
|
+
:type updated_at: str
|
|
44
|
+
:param bandwidth: 当前带宽(Mbit/s)。
|
|
45
|
+
:type bandwidth: int
|
|
46
|
+
:param max_bandwidth: 最大带宽(Mbit/s)。
|
|
47
|
+
:type max_bandwidth: int
|
|
48
|
+
:param assured_bandwidth: 基准带宽(Mbit/s)。
|
|
49
|
+
:type assured_bandwidth: int
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
self._group_id = None
|
|
55
|
+
self._updated_at = None
|
|
56
|
+
self._bandwidth = None
|
|
57
|
+
self._max_bandwidth = None
|
|
58
|
+
self._assured_bandwidth = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if group_id is not None:
|
|
62
|
+
self.group_id = group_id
|
|
63
|
+
if updated_at is not None:
|
|
64
|
+
self.updated_at = updated_at
|
|
65
|
+
if bandwidth is not None:
|
|
66
|
+
self.bandwidth = bandwidth
|
|
67
|
+
if max_bandwidth is not None:
|
|
68
|
+
self.max_bandwidth = max_bandwidth
|
|
69
|
+
if assured_bandwidth is not None:
|
|
70
|
+
self.assured_bandwidth = assured_bandwidth
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def group_id(self):
|
|
74
|
+
"""Gets the group_id of this GroupBandwidthInfo.
|
|
75
|
+
|
|
76
|
+
分片ID。
|
|
77
|
+
|
|
78
|
+
:return: The group_id of this GroupBandwidthInfo.
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._group_id
|
|
82
|
+
|
|
83
|
+
@group_id.setter
|
|
84
|
+
def group_id(self, group_id):
|
|
85
|
+
"""Sets the group_id of this GroupBandwidthInfo.
|
|
86
|
+
|
|
87
|
+
分片ID。
|
|
88
|
+
|
|
89
|
+
:param group_id: The group_id of this GroupBandwidthInfo.
|
|
90
|
+
:type group_id: str
|
|
91
|
+
"""
|
|
92
|
+
self._group_id = group_id
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def updated_at(self):
|
|
96
|
+
"""Gets the updated_at of this GroupBandwidthInfo.
|
|
97
|
+
|
|
98
|
+
更新时间,UTC时间。
|
|
99
|
+
|
|
100
|
+
:return: The updated_at of this GroupBandwidthInfo.
|
|
101
|
+
:rtype: str
|
|
102
|
+
"""
|
|
103
|
+
return self._updated_at
|
|
104
|
+
|
|
105
|
+
@updated_at.setter
|
|
106
|
+
def updated_at(self, updated_at):
|
|
107
|
+
"""Sets the updated_at of this GroupBandwidthInfo.
|
|
108
|
+
|
|
109
|
+
更新时间,UTC时间。
|
|
110
|
+
|
|
111
|
+
:param updated_at: The updated_at of this GroupBandwidthInfo.
|
|
112
|
+
:type updated_at: str
|
|
113
|
+
"""
|
|
114
|
+
self._updated_at = updated_at
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def bandwidth(self):
|
|
118
|
+
"""Gets the bandwidth of this GroupBandwidthInfo.
|
|
119
|
+
|
|
120
|
+
当前带宽(Mbit/s)。
|
|
121
|
+
|
|
122
|
+
:return: The bandwidth of this GroupBandwidthInfo.
|
|
123
|
+
:rtype: int
|
|
124
|
+
"""
|
|
125
|
+
return self._bandwidth
|
|
126
|
+
|
|
127
|
+
@bandwidth.setter
|
|
128
|
+
def bandwidth(self, bandwidth):
|
|
129
|
+
"""Sets the bandwidth of this GroupBandwidthInfo.
|
|
130
|
+
|
|
131
|
+
当前带宽(Mbit/s)。
|
|
132
|
+
|
|
133
|
+
:param bandwidth: The bandwidth of this GroupBandwidthInfo.
|
|
134
|
+
:type bandwidth: int
|
|
135
|
+
"""
|
|
136
|
+
self._bandwidth = bandwidth
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def max_bandwidth(self):
|
|
140
|
+
"""Gets the max_bandwidth of this GroupBandwidthInfo.
|
|
141
|
+
|
|
142
|
+
最大带宽(Mbit/s)。
|
|
143
|
+
|
|
144
|
+
:return: The max_bandwidth of this GroupBandwidthInfo.
|
|
145
|
+
:rtype: int
|
|
146
|
+
"""
|
|
147
|
+
return self._max_bandwidth
|
|
148
|
+
|
|
149
|
+
@max_bandwidth.setter
|
|
150
|
+
def max_bandwidth(self, max_bandwidth):
|
|
151
|
+
"""Sets the max_bandwidth of this GroupBandwidthInfo.
|
|
152
|
+
|
|
153
|
+
最大带宽(Mbit/s)。
|
|
154
|
+
|
|
155
|
+
:param max_bandwidth: The max_bandwidth of this GroupBandwidthInfo.
|
|
156
|
+
:type max_bandwidth: int
|
|
157
|
+
"""
|
|
158
|
+
self._max_bandwidth = max_bandwidth
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def assured_bandwidth(self):
|
|
162
|
+
"""Gets the assured_bandwidth of this GroupBandwidthInfo.
|
|
163
|
+
|
|
164
|
+
基准带宽(Mbit/s)。
|
|
165
|
+
|
|
166
|
+
:return: The assured_bandwidth of this GroupBandwidthInfo.
|
|
167
|
+
:rtype: int
|
|
168
|
+
"""
|
|
169
|
+
return self._assured_bandwidth
|
|
170
|
+
|
|
171
|
+
@assured_bandwidth.setter
|
|
172
|
+
def assured_bandwidth(self, assured_bandwidth):
|
|
173
|
+
"""Sets the assured_bandwidth of this GroupBandwidthInfo.
|
|
174
|
+
|
|
175
|
+
基准带宽(Mbit/s)。
|
|
176
|
+
|
|
177
|
+
:param assured_bandwidth: The assured_bandwidth of this GroupBandwidthInfo.
|
|
178
|
+
:type assured_bandwidth: int
|
|
179
|
+
"""
|
|
180
|
+
self._assured_bandwidth = assured_bandwidth
|
|
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, GroupBandwidthInfo):
|
|
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
|