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.

Files changed (40) hide show
  1. huaweicloudsdkdcs/v2/__init__.py +31 -0
  2. huaweicloudsdkdcs/v2/dcs_async_client.py +688 -28
  3. huaweicloudsdkdcs/v2/dcs_client.py +688 -28
  4. huaweicloudsdkdcs/v2/model/__init__.py +31 -0
  5. huaweicloudsdkdcs/v2/model/bandwidth_auto_scaling_policy.py +258 -0
  6. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_body.py +144 -0
  7. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_request.py +139 -0
  8. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_resp.py +84 -0
  9. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_response.py +112 -0
  10. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_request.py +114 -0
  11. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_resp.py +84 -0
  12. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_response.py +112 -0
  13. huaweicloudsdkdcs/v2/model/delete_public_ip_request.py +114 -0
  14. huaweicloudsdkdcs/v2/model/delete_public_ip_response.py +116 -0
  15. huaweicloudsdkdcs/v2/model/group_bandwidth_info.py +231 -0
  16. huaweicloudsdkdcs/v2/model/show_bandwidths_request.py +114 -0
  17. huaweicloudsdkdcs/v2/model/show_bandwidths_response.py +203 -0
  18. huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_request.py +114 -0
  19. huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_response.py +259 -0
  20. huaweicloudsdkdcs/v2/model/show_instance_version_request.py +114 -0
  21. huaweicloudsdkdcs/v2/model/show_instance_version_response.py +261 -0
  22. huaweicloudsdkdcs/v2/model/update_bandwidth_info_request.py +115 -0
  23. huaweicloudsdkdcs/v2/model/update_bandwidth_request.py +139 -0
  24. huaweicloudsdkdcs/v2/model/update_bandwidth_resp.py +84 -0
  25. huaweicloudsdkdcs/v2/model/update_bandwidth_response.py +112 -0
  26. huaweicloudsdkdcs/v2/model/update_group_bandwidth_info_request.py +142 -0
  27. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request.py +139 -0
  28. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request_body.py +258 -0
  29. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_response.py +259 -0
  30. huaweicloudsdkdcs/v2/model/update_public_ip_request.py +139 -0
  31. huaweicloudsdkdcs/v2/model/update_public_ip_request_body.py +173 -0
  32. huaweicloudsdkdcs/v2/model/update_public_ip_response.py +116 -0
  33. huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_request.py +139 -0
  34. huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_response.py +116 -0
  35. huaweicloudsdkdcs/v2/model/upgrade_minor_version_request_body.py +144 -0
  36. {huaweicloudsdkdcs-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/METADATA +2 -2
  37. {huaweicloudsdkdcs-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/RECORD +40 -9
  38. {huaweicloudsdkdcs-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/LICENSE +0 -0
  39. {huaweicloudsdkdcs-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/WHEEL +0 -0
  40. {huaweicloudsdkdcs-3.1.126.dist-info → huaweicloudsdkdcs-3.1.128.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,116 @@
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 DeletePublicIpResponse(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
+ 'job_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'job_id': 'job_id'
26
+ }
27
+
28
+ def __init__(self, job_id=None):
29
+ """DeletePublicIpResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: 请求提交任务ID。
34
+ :type job_id: str
35
+ """
36
+
37
+ super(DeletePublicIpResponse, self).__init__()
38
+
39
+ self._job_id = None
40
+ self.discriminator = None
41
+
42
+ if job_id is not None:
43
+ self.job_id = job_id
44
+
45
+ @property
46
+ def job_id(self):
47
+ """Gets the job_id of this DeletePublicIpResponse.
48
+
49
+ 请求提交任务ID。
50
+
51
+ :return: The job_id of this DeletePublicIpResponse.
52
+ :rtype: str
53
+ """
54
+ return self._job_id
55
+
56
+ @job_id.setter
57
+ def job_id(self, job_id):
58
+ """Sets the job_id of this DeletePublicIpResponse.
59
+
60
+ 请求提交任务ID。
61
+
62
+ :param job_id: The job_id of this DeletePublicIpResponse.
63
+ :type job_id: str
64
+ """
65
+ self._job_id = job_id
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, DeletePublicIpResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -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
@@ -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 ShowBandwidthsRequest:
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
+ """ShowBandwidthsRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param instance_id: 实例ID。
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
+ """Gets the instance_id of this ShowBandwidthsRequest.
46
+
47
+ 实例ID。
48
+
49
+ :return: The instance_id of this ShowBandwidthsRequest.
50
+ :rtype: str
51
+ """
52
+ return self._instance_id
53
+
54
+ @instance_id.setter
55
+ def instance_id(self, instance_id):
56
+ """Sets the instance_id of this ShowBandwidthsRequest.
57
+
58
+ 实例ID。
59
+
60
+ :param instance_id: The instance_id of this ShowBandwidthsRequest.
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, ShowBandwidthsRequest):
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,203 @@
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 ShowBandwidthsResponse(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
+ 'bandwidth': 'int',
22
+ 'max_bandwidth': 'int',
23
+ 'allow_modify': 'bool',
24
+ 'group_bandwidths': 'list[GroupBandwidthInfo]'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'bandwidth': 'bandwidth',
29
+ 'max_bandwidth': 'max_bandwidth',
30
+ 'allow_modify': 'allow_modify',
31
+ 'group_bandwidths': 'group_bandwidths'
32
+ }
33
+
34
+ def __init__(self, bandwidth=None, max_bandwidth=None, allow_modify=None, group_bandwidths=None):
35
+ """ShowBandwidthsResponse
36
+
37
+ The model defined in huaweicloud sdk
38
+
39
+ :param bandwidth: 实例当前带宽(Mbit/s)。
40
+ :type bandwidth: int
41
+ :param max_bandwidth: 实例最大带宽(Mbit/s)。
42
+ :type max_bandwidth: int
43
+ :param allow_modify: 是否支持调带宽。
44
+ :type allow_modify: bool
45
+ :param group_bandwidths: 分片带宽列表。
46
+ :type group_bandwidths: list[:class:`huaweicloudsdkdcs.v2.GroupBandwidthInfo`]
47
+ """
48
+
49
+ super(ShowBandwidthsResponse, self).__init__()
50
+
51
+ self._bandwidth = None
52
+ self._max_bandwidth = None
53
+ self._allow_modify = None
54
+ self._group_bandwidths = None
55
+ self.discriminator = None
56
+
57
+ if bandwidth is not None:
58
+ self.bandwidth = bandwidth
59
+ if max_bandwidth is not None:
60
+ self.max_bandwidth = max_bandwidth
61
+ if allow_modify is not None:
62
+ self.allow_modify = allow_modify
63
+ if group_bandwidths is not None:
64
+ self.group_bandwidths = group_bandwidths
65
+
66
+ @property
67
+ def bandwidth(self):
68
+ """Gets the bandwidth of this ShowBandwidthsResponse.
69
+
70
+ 实例当前带宽(Mbit/s)。
71
+
72
+ :return: The bandwidth of this ShowBandwidthsResponse.
73
+ :rtype: int
74
+ """
75
+ return self._bandwidth
76
+
77
+ @bandwidth.setter
78
+ def bandwidth(self, bandwidth):
79
+ """Sets the bandwidth of this ShowBandwidthsResponse.
80
+
81
+ 实例当前带宽(Mbit/s)。
82
+
83
+ :param bandwidth: The bandwidth of this ShowBandwidthsResponse.
84
+ :type bandwidth: int
85
+ """
86
+ self._bandwidth = bandwidth
87
+
88
+ @property
89
+ def max_bandwidth(self):
90
+ """Gets the max_bandwidth of this ShowBandwidthsResponse.
91
+
92
+ 实例最大带宽(Mbit/s)。
93
+
94
+ :return: The max_bandwidth of this ShowBandwidthsResponse.
95
+ :rtype: int
96
+ """
97
+ return self._max_bandwidth
98
+
99
+ @max_bandwidth.setter
100
+ def max_bandwidth(self, max_bandwidth):
101
+ """Sets the max_bandwidth of this ShowBandwidthsResponse.
102
+
103
+ 实例最大带宽(Mbit/s)。
104
+
105
+ :param max_bandwidth: The max_bandwidth of this ShowBandwidthsResponse.
106
+ :type max_bandwidth: int
107
+ """
108
+ self._max_bandwidth = max_bandwidth
109
+
110
+ @property
111
+ def allow_modify(self):
112
+ """Gets the allow_modify of this ShowBandwidthsResponse.
113
+
114
+ 是否支持调带宽。
115
+
116
+ :return: The allow_modify of this ShowBandwidthsResponse.
117
+ :rtype: bool
118
+ """
119
+ return self._allow_modify
120
+
121
+ @allow_modify.setter
122
+ def allow_modify(self, allow_modify):
123
+ """Sets the allow_modify of this ShowBandwidthsResponse.
124
+
125
+ 是否支持调带宽。
126
+
127
+ :param allow_modify: The allow_modify of this ShowBandwidthsResponse.
128
+ :type allow_modify: bool
129
+ """
130
+ self._allow_modify = allow_modify
131
+
132
+ @property
133
+ def group_bandwidths(self):
134
+ """Gets the group_bandwidths of this ShowBandwidthsResponse.
135
+
136
+ 分片带宽列表。
137
+
138
+ :return: The group_bandwidths of this ShowBandwidthsResponse.
139
+ :rtype: list[:class:`huaweicloudsdkdcs.v2.GroupBandwidthInfo`]
140
+ """
141
+ return self._group_bandwidths
142
+
143
+ @group_bandwidths.setter
144
+ def group_bandwidths(self, group_bandwidths):
145
+ """Sets the group_bandwidths of this ShowBandwidthsResponse.
146
+
147
+ 分片带宽列表。
148
+
149
+ :param group_bandwidths: The group_bandwidths of this ShowBandwidthsResponse.
150
+ :type group_bandwidths: list[:class:`huaweicloudsdkdcs.v2.GroupBandwidthInfo`]
151
+ """
152
+ self._group_bandwidths = group_bandwidths
153
+
154
+ def to_dict(self):
155
+ """Returns the model properties as a dict"""
156
+ result = {}
157
+
158
+ for attr, _ in six.iteritems(self.openapi_types):
159
+ value = getattr(self, attr)
160
+ if isinstance(value, list):
161
+ result[attr] = list(map(
162
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
163
+ value
164
+ ))
165
+ elif hasattr(value, "to_dict"):
166
+ result[attr] = value.to_dict()
167
+ elif isinstance(value, dict):
168
+ result[attr] = dict(map(
169
+ lambda item: (item[0], item[1].to_dict())
170
+ if hasattr(item[1], "to_dict") else item,
171
+ value.items()
172
+ ))
173
+ else:
174
+ if attr in self.sensitive_list:
175
+ result[attr] = "****"
176
+ else:
177
+ result[attr] = value
178
+
179
+ return result
180
+
181
+ def to_str(self):
182
+ """Returns the string representation of the model"""
183
+ import simplejson as json
184
+ if six.PY2:
185
+ import sys
186
+ reload(sys)
187
+ sys.setdefaultencoding("utf-8")
188
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
189
+
190
+ def __repr__(self):
191
+ """For `print`"""
192
+ return self.to_str()
193
+
194
+ def __eq__(self, other):
195
+ """Returns true if both objects are equal"""
196
+ if not isinstance(other, ShowBandwidthsResponse):
197
+ return False
198
+
199
+ return self.__dict__ == other.__dict__
200
+
201
+ def __ne__(self, other):
202
+ """Returns true if both objects are not equal"""
203
+ return not self == other