huaweicloudsdkdcs 3.1.127__py2.py3-none-any.whl → 3.1.129__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.127.dist-info → huaweicloudsdkdcs-3.1.129.dist-info}/METADATA +2 -2
  37. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.129.dist-info}/RECORD +40 -9
  38. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.129.dist-info}/LICENSE +0 -0
  39. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.129.dist-info}/WHEEL +0 -0
  40. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.129.dist-info}/top_level.txt +0 -0
@@ -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 ShowInstanceBandwidthAutoScalingPolicyRequest:
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
+ """ShowInstanceBandwidthAutoScalingPolicyRequest
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 ShowInstanceBandwidthAutoScalingPolicyRequest.
46
+
47
+ 实例ID。
48
+
49
+ :return: The instance_id of this ShowInstanceBandwidthAutoScalingPolicyRequest.
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 ShowInstanceBandwidthAutoScalingPolicyRequest.
57
+
58
+ 实例ID。
59
+
60
+ :param instance_id: The instance_id of this ShowInstanceBandwidthAutoScalingPolicyRequest.
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, ShowInstanceBandwidthAutoScalingPolicyRequest):
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,259 @@
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 ShowInstanceBandwidthAutoScalingPolicyResponse(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
+ 'window_size': 'int',
22
+ 'bandwidth_usage_upper_threshold': 'int',
23
+ 'scale_out_cooldown': 'int',
24
+ 'scale_in_enabled': 'bool',
25
+ 'bandwidth_usage_lower_threshold': 'int',
26
+ 'scale_in_cooldown': 'int'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'window_size': 'window_size',
31
+ 'bandwidth_usage_upper_threshold': 'bandwidth_usage_upper_threshold',
32
+ 'scale_out_cooldown': 'scale_out_cooldown',
33
+ 'scale_in_enabled': 'scale_in_enabled',
34
+ 'bandwidth_usage_lower_threshold': 'bandwidth_usage_lower_threshold',
35
+ 'scale_in_cooldown': 'scale_in_cooldown'
36
+ }
37
+
38
+ def __init__(self, window_size=None, bandwidth_usage_upper_threshold=None, scale_out_cooldown=None, scale_in_enabled=None, bandwidth_usage_lower_threshold=None, scale_in_cooldown=None):
39
+ """ShowInstanceBandwidthAutoScalingPolicyResponse
40
+
41
+ The model defined in huaweicloud sdk
42
+
43
+ :param window_size: 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
44
+ :type window_size: int
45
+ :param bandwidth_usage_upper_threshold: 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
46
+ :type bandwidth_usage_upper_threshold: int
47
+ :param scale_out_cooldown: 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
48
+ :type scale_out_cooldown: int
49
+ :param scale_in_enabled: 是否启用带宽自动回缩。默认值:false。该参数暂未启用。
50
+ :type scale_in_enabled: bool
51
+ :param bandwidth_usage_lower_threshold: 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
52
+ :type bandwidth_usage_lower_threshold: int
53
+ :param scale_in_cooldown: 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
54
+ :type scale_in_cooldown: int
55
+ """
56
+
57
+ super(ShowInstanceBandwidthAutoScalingPolicyResponse, self).__init__()
58
+
59
+ self._window_size = None
60
+ self._bandwidth_usage_upper_threshold = None
61
+ self._scale_out_cooldown = None
62
+ self._scale_in_enabled = None
63
+ self._bandwidth_usage_lower_threshold = None
64
+ self._scale_in_cooldown = None
65
+ self.discriminator = None
66
+
67
+ self.window_size = window_size
68
+ self.bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold
69
+ if scale_out_cooldown is not None:
70
+ self.scale_out_cooldown = scale_out_cooldown
71
+ if scale_in_enabled is not None:
72
+ self.scale_in_enabled = scale_in_enabled
73
+ if bandwidth_usage_lower_threshold is not None:
74
+ self.bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold
75
+ if scale_in_cooldown is not None:
76
+ self.scale_in_cooldown = scale_in_cooldown
77
+
78
+ @property
79
+ def window_size(self):
80
+ """Gets the window_size of this ShowInstanceBandwidthAutoScalingPolicyResponse.
81
+
82
+ 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
83
+
84
+ :return: The window_size of this ShowInstanceBandwidthAutoScalingPolicyResponse.
85
+ :rtype: int
86
+ """
87
+ return self._window_size
88
+
89
+ @window_size.setter
90
+ def window_size(self, window_size):
91
+ """Sets the window_size of this ShowInstanceBandwidthAutoScalingPolicyResponse.
92
+
93
+ 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
94
+
95
+ :param window_size: The window_size of this ShowInstanceBandwidthAutoScalingPolicyResponse.
96
+ :type window_size: int
97
+ """
98
+ self._window_size = window_size
99
+
100
+ @property
101
+ def bandwidth_usage_upper_threshold(self):
102
+ """Gets the bandwidth_usage_upper_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse.
103
+
104
+ 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
105
+
106
+ :return: The bandwidth_usage_upper_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse.
107
+ :rtype: int
108
+ """
109
+ return self._bandwidth_usage_upper_threshold
110
+
111
+ @bandwidth_usage_upper_threshold.setter
112
+ def bandwidth_usage_upper_threshold(self, bandwidth_usage_upper_threshold):
113
+ """Sets the bandwidth_usage_upper_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse.
114
+
115
+ 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
116
+
117
+ :param bandwidth_usage_upper_threshold: The bandwidth_usage_upper_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse.
118
+ :type bandwidth_usage_upper_threshold: int
119
+ """
120
+ self._bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold
121
+
122
+ @property
123
+ def scale_out_cooldown(self):
124
+ """Gets the scale_out_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse.
125
+
126
+ 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
127
+
128
+ :return: The scale_out_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse.
129
+ :rtype: int
130
+ """
131
+ return self._scale_out_cooldown
132
+
133
+ @scale_out_cooldown.setter
134
+ def scale_out_cooldown(self, scale_out_cooldown):
135
+ """Sets the scale_out_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse.
136
+
137
+ 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
138
+
139
+ :param scale_out_cooldown: The scale_out_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse.
140
+ :type scale_out_cooldown: int
141
+ """
142
+ self._scale_out_cooldown = scale_out_cooldown
143
+
144
+ @property
145
+ def scale_in_enabled(self):
146
+ """Gets the scale_in_enabled of this ShowInstanceBandwidthAutoScalingPolicyResponse.
147
+
148
+ 是否启用带宽自动回缩。默认值:false。该参数暂未启用。
149
+
150
+ :return: The scale_in_enabled of this ShowInstanceBandwidthAutoScalingPolicyResponse.
151
+ :rtype: bool
152
+ """
153
+ return self._scale_in_enabled
154
+
155
+ @scale_in_enabled.setter
156
+ def scale_in_enabled(self, scale_in_enabled):
157
+ """Sets the scale_in_enabled of this ShowInstanceBandwidthAutoScalingPolicyResponse.
158
+
159
+ 是否启用带宽自动回缩。默认值:false。该参数暂未启用。
160
+
161
+ :param scale_in_enabled: The scale_in_enabled of this ShowInstanceBandwidthAutoScalingPolicyResponse.
162
+ :type scale_in_enabled: bool
163
+ """
164
+ self._scale_in_enabled = scale_in_enabled
165
+
166
+ @property
167
+ def bandwidth_usage_lower_threshold(self):
168
+ """Gets the bandwidth_usage_lower_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse.
169
+
170
+ 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
171
+
172
+ :return: The bandwidth_usage_lower_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse.
173
+ :rtype: int
174
+ """
175
+ return self._bandwidth_usage_lower_threshold
176
+
177
+ @bandwidth_usage_lower_threshold.setter
178
+ def bandwidth_usage_lower_threshold(self, bandwidth_usage_lower_threshold):
179
+ """Sets the bandwidth_usage_lower_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse.
180
+
181
+ 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
182
+
183
+ :param bandwidth_usage_lower_threshold: The bandwidth_usage_lower_threshold of this ShowInstanceBandwidthAutoScalingPolicyResponse.
184
+ :type bandwidth_usage_lower_threshold: int
185
+ """
186
+ self._bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold
187
+
188
+ @property
189
+ def scale_in_cooldown(self):
190
+ """Gets the scale_in_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse.
191
+
192
+ 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
193
+
194
+ :return: The scale_in_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse.
195
+ :rtype: int
196
+ """
197
+ return self._scale_in_cooldown
198
+
199
+ @scale_in_cooldown.setter
200
+ def scale_in_cooldown(self, scale_in_cooldown):
201
+ """Sets the scale_in_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse.
202
+
203
+ 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
204
+
205
+ :param scale_in_cooldown: The scale_in_cooldown of this ShowInstanceBandwidthAutoScalingPolicyResponse.
206
+ :type scale_in_cooldown: int
207
+ """
208
+ self._scale_in_cooldown = scale_in_cooldown
209
+
210
+ def to_dict(self):
211
+ """Returns the model properties as a dict"""
212
+ result = {}
213
+
214
+ for attr, _ in six.iteritems(self.openapi_types):
215
+ value = getattr(self, attr)
216
+ if isinstance(value, list):
217
+ result[attr] = list(map(
218
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
219
+ value
220
+ ))
221
+ elif hasattr(value, "to_dict"):
222
+ result[attr] = value.to_dict()
223
+ elif isinstance(value, dict):
224
+ result[attr] = dict(map(
225
+ lambda item: (item[0], item[1].to_dict())
226
+ if hasattr(item[1], "to_dict") else item,
227
+ value.items()
228
+ ))
229
+ else:
230
+ if attr in self.sensitive_list:
231
+ result[attr] = "****"
232
+ else:
233
+ result[attr] = value
234
+
235
+ return result
236
+
237
+ def to_str(self):
238
+ """Returns the string representation of the model"""
239
+ import simplejson as json
240
+ if six.PY2:
241
+ import sys
242
+ reload(sys)
243
+ sys.setdefaultencoding("utf-8")
244
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
245
+
246
+ def __repr__(self):
247
+ """For `print`"""
248
+ return self.to_str()
249
+
250
+ def __eq__(self, other):
251
+ """Returns true if both objects are equal"""
252
+ if not isinstance(other, ShowInstanceBandwidthAutoScalingPolicyResponse):
253
+ return False
254
+
255
+ return self.__dict__ == other.__dict__
256
+
257
+ def __ne__(self, other):
258
+ """Returns true if both objects are not equal"""
259
+ 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 ShowInstanceVersionRequest:
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
+ """ShowInstanceVersionRequest
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 ShowInstanceVersionRequest.
46
+
47
+ 实例ID。
48
+
49
+ :return: The instance_id of this ShowInstanceVersionRequest.
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 ShowInstanceVersionRequest.
57
+
58
+ 实例ID。
59
+
60
+ :param instance_id: The instance_id of this ShowInstanceVersionRequest.
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, ShowInstanceVersionRequest):
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