huaweicloudsdkaom 3.1.171__py3-none-any.whl → 3.1.173__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 huaweicloudsdkaom might be problematic. Click here for more details.

@@ -0,0 +1,399 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchUpdateActionRules:
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
+ 'alarm_rule_id': 'int',
21
+ 'alarm_rule_name': 'str',
22
+ 'alarm_rule_type': 'str',
23
+ 'bind_notification_rule_id': 'str',
24
+ 'frequency': 'str',
25
+ 'notification_enable': 'bool',
26
+ 'notification_type': 'str',
27
+ 'notify_resolved': 'bool',
28
+ 'notify_triggered': 'bool',
29
+ 'route_group_enable': 'bool',
30
+ 'route_group_rule': 'str'
31
+ }
32
+
33
+ attribute_map = {
34
+ 'alarm_rule_id': 'alarm_rule_id',
35
+ 'alarm_rule_name': 'alarm_rule_name',
36
+ 'alarm_rule_type': 'alarm_rule_type',
37
+ 'bind_notification_rule_id': 'bind_notification_rule_id',
38
+ 'frequency': 'frequency',
39
+ 'notification_enable': 'notification_enable',
40
+ 'notification_type': 'notification_type',
41
+ 'notify_resolved': 'notify_resolved',
42
+ 'notify_triggered': 'notify_triggered',
43
+ 'route_group_enable': 'route_group_enable',
44
+ 'route_group_rule': 'route_group_rule'
45
+ }
46
+
47
+ def __init__(self, alarm_rule_id=None, alarm_rule_name=None, alarm_rule_type=None, bind_notification_rule_id=None, frequency=None, notification_enable=None, notification_type=None, notify_resolved=None, notify_triggered=None, route_group_enable=None, route_group_rule=None):
48
+ r"""BatchUpdateActionRules
49
+
50
+ The model defined in huaweicloud sdk
51
+
52
+ :param alarm_rule_id: 告警规则id。
53
+ :type alarm_rule_id: int
54
+ :param alarm_rule_name: 告警规则名称。
55
+ :type alarm_rule_name: str
56
+ :param alarm_rule_type: 告警规则类型。
57
+ :type alarm_rule_type: str
58
+ :param bind_notification_rule_id: 待绑定的告警行动规则名称。
59
+ :type bind_notification_rule_id: str
60
+ :param frequency: 通知频率 - 当通知类型为“alarm_policy”时,填“-1” - 当通知类型为“direct”时, - “0”:只告警一次 - “300”:每5分钟 - “600”:每10分钟 - “900”:每15分钟 - “1800”:每30分钟 - “3600”:每1小时 - “10800”:每3小时 - “21600”:每6小时 - “43200”:每12小时 - “86400”:每天
61
+ :type frequency: str
62
+ :param notification_enable: 是否启用告警通知规则。 - 当通知类型为“direct”时,填true - 当通知类型为“alarm_policy”时,填false 如果告警触发“notify_triggered”或告警恢复“notify_resolved”都设置为false(即都不进行告警通知),则notification_enable需设置为false。
63
+ :type notification_enable: bool
64
+ :param notification_type: 通知类型。 - “direct”:直接告警 - “alarm_policy”:告警降噪
65
+ :type notification_type: str
66
+ :param notify_resolved: 告警解决是否通知。 - true:通知 - false:不通知
67
+ :type notify_resolved: bool
68
+ :param notify_triggered: 告警触发是否通知。 - true:通知 - false:不通知
69
+ :type notify_triggered: bool
70
+ :param route_group_enable: 启用告警分组规则。 - 当通知类型为“alarm_policy”时:true - 当通知类型为“direct”时:false 如果告警触发“notify_triggered”或告警恢复“notify_resolved”都设置为false(即都不进行告警通知),则route_group_enable需设置为false。
71
+ :type route_group_enable: bool
72
+ :param route_group_rule: 告警分组规则名称。 - 当route_group_enable 为true时,填告警分组规则名称 - 当route_group_enable 为false时,填“”
73
+ :type route_group_rule: str
74
+ """
75
+
76
+
77
+
78
+ self._alarm_rule_id = None
79
+ self._alarm_rule_name = None
80
+ self._alarm_rule_type = None
81
+ self._bind_notification_rule_id = None
82
+ self._frequency = None
83
+ self._notification_enable = None
84
+ self._notification_type = None
85
+ self._notify_resolved = None
86
+ self._notify_triggered = None
87
+ self._route_group_enable = None
88
+ self._route_group_rule = None
89
+ self.discriminator = None
90
+
91
+ self.alarm_rule_id = alarm_rule_id
92
+ self.alarm_rule_name = alarm_rule_name
93
+ self.alarm_rule_type = alarm_rule_type
94
+ if bind_notification_rule_id is not None:
95
+ self.bind_notification_rule_id = bind_notification_rule_id
96
+ self.frequency = frequency
97
+ if notification_enable is not None:
98
+ self.notification_enable = notification_enable
99
+ if notification_type is not None:
100
+ self.notification_type = notification_type
101
+ self.notify_resolved = notify_resolved
102
+ self.notify_triggered = notify_triggered
103
+ if route_group_enable is not None:
104
+ self.route_group_enable = route_group_enable
105
+ if route_group_rule is not None:
106
+ self.route_group_rule = route_group_rule
107
+
108
+ @property
109
+ def alarm_rule_id(self):
110
+ r"""Gets the alarm_rule_id of this BatchUpdateActionRules.
111
+
112
+ 告警规则id。
113
+
114
+ :return: The alarm_rule_id of this BatchUpdateActionRules.
115
+ :rtype: int
116
+ """
117
+ return self._alarm_rule_id
118
+
119
+ @alarm_rule_id.setter
120
+ def alarm_rule_id(self, alarm_rule_id):
121
+ r"""Sets the alarm_rule_id of this BatchUpdateActionRules.
122
+
123
+ 告警规则id。
124
+
125
+ :param alarm_rule_id: The alarm_rule_id of this BatchUpdateActionRules.
126
+ :type alarm_rule_id: int
127
+ """
128
+ self._alarm_rule_id = alarm_rule_id
129
+
130
+ @property
131
+ def alarm_rule_name(self):
132
+ r"""Gets the alarm_rule_name of this BatchUpdateActionRules.
133
+
134
+ 告警规则名称。
135
+
136
+ :return: The alarm_rule_name of this BatchUpdateActionRules.
137
+ :rtype: str
138
+ """
139
+ return self._alarm_rule_name
140
+
141
+ @alarm_rule_name.setter
142
+ def alarm_rule_name(self, alarm_rule_name):
143
+ r"""Sets the alarm_rule_name of this BatchUpdateActionRules.
144
+
145
+ 告警规则名称。
146
+
147
+ :param alarm_rule_name: The alarm_rule_name of this BatchUpdateActionRules.
148
+ :type alarm_rule_name: str
149
+ """
150
+ self._alarm_rule_name = alarm_rule_name
151
+
152
+ @property
153
+ def alarm_rule_type(self):
154
+ r"""Gets the alarm_rule_type of this BatchUpdateActionRules.
155
+
156
+ 告警规则类型。
157
+
158
+ :return: The alarm_rule_type of this BatchUpdateActionRules.
159
+ :rtype: str
160
+ """
161
+ return self._alarm_rule_type
162
+
163
+ @alarm_rule_type.setter
164
+ def alarm_rule_type(self, alarm_rule_type):
165
+ r"""Sets the alarm_rule_type of this BatchUpdateActionRules.
166
+
167
+ 告警规则类型。
168
+
169
+ :param alarm_rule_type: The alarm_rule_type of this BatchUpdateActionRules.
170
+ :type alarm_rule_type: str
171
+ """
172
+ self._alarm_rule_type = alarm_rule_type
173
+
174
+ @property
175
+ def bind_notification_rule_id(self):
176
+ r"""Gets the bind_notification_rule_id of this BatchUpdateActionRules.
177
+
178
+ 待绑定的告警行动规则名称。
179
+
180
+ :return: The bind_notification_rule_id of this BatchUpdateActionRules.
181
+ :rtype: str
182
+ """
183
+ return self._bind_notification_rule_id
184
+
185
+ @bind_notification_rule_id.setter
186
+ def bind_notification_rule_id(self, bind_notification_rule_id):
187
+ r"""Sets the bind_notification_rule_id of this BatchUpdateActionRules.
188
+
189
+ 待绑定的告警行动规则名称。
190
+
191
+ :param bind_notification_rule_id: The bind_notification_rule_id of this BatchUpdateActionRules.
192
+ :type bind_notification_rule_id: str
193
+ """
194
+ self._bind_notification_rule_id = bind_notification_rule_id
195
+
196
+ @property
197
+ def frequency(self):
198
+ r"""Gets the frequency of this BatchUpdateActionRules.
199
+
200
+ 通知频率 - 当通知类型为“alarm_policy”时,填“-1” - 当通知类型为“direct”时, - “0”:只告警一次 - “300”:每5分钟 - “600”:每10分钟 - “900”:每15分钟 - “1800”:每30分钟 - “3600”:每1小时 - “10800”:每3小时 - “21600”:每6小时 - “43200”:每12小时 - “86400”:每天
201
+
202
+ :return: The frequency of this BatchUpdateActionRules.
203
+ :rtype: str
204
+ """
205
+ return self._frequency
206
+
207
+ @frequency.setter
208
+ def frequency(self, frequency):
209
+ r"""Sets the frequency of this BatchUpdateActionRules.
210
+
211
+ 通知频率 - 当通知类型为“alarm_policy”时,填“-1” - 当通知类型为“direct”时, - “0”:只告警一次 - “300”:每5分钟 - “600”:每10分钟 - “900”:每15分钟 - “1800”:每30分钟 - “3600”:每1小时 - “10800”:每3小时 - “21600”:每6小时 - “43200”:每12小时 - “86400”:每天
212
+
213
+ :param frequency: The frequency of this BatchUpdateActionRules.
214
+ :type frequency: str
215
+ """
216
+ self._frequency = frequency
217
+
218
+ @property
219
+ def notification_enable(self):
220
+ r"""Gets the notification_enable of this BatchUpdateActionRules.
221
+
222
+ 是否启用告警通知规则。 - 当通知类型为“direct”时,填true - 当通知类型为“alarm_policy”时,填false 如果告警触发“notify_triggered”或告警恢复“notify_resolved”都设置为false(即都不进行告警通知),则notification_enable需设置为false。
223
+
224
+ :return: The notification_enable of this BatchUpdateActionRules.
225
+ :rtype: bool
226
+ """
227
+ return self._notification_enable
228
+
229
+ @notification_enable.setter
230
+ def notification_enable(self, notification_enable):
231
+ r"""Sets the notification_enable of this BatchUpdateActionRules.
232
+
233
+ 是否启用告警通知规则。 - 当通知类型为“direct”时,填true - 当通知类型为“alarm_policy”时,填false 如果告警触发“notify_triggered”或告警恢复“notify_resolved”都设置为false(即都不进行告警通知),则notification_enable需设置为false。
234
+
235
+ :param notification_enable: The notification_enable of this BatchUpdateActionRules.
236
+ :type notification_enable: bool
237
+ """
238
+ self._notification_enable = notification_enable
239
+
240
+ @property
241
+ def notification_type(self):
242
+ r"""Gets the notification_type of this BatchUpdateActionRules.
243
+
244
+ 通知类型。 - “direct”:直接告警 - “alarm_policy”:告警降噪
245
+
246
+ :return: The notification_type of this BatchUpdateActionRules.
247
+ :rtype: str
248
+ """
249
+ return self._notification_type
250
+
251
+ @notification_type.setter
252
+ def notification_type(self, notification_type):
253
+ r"""Sets the notification_type of this BatchUpdateActionRules.
254
+
255
+ 通知类型。 - “direct”:直接告警 - “alarm_policy”:告警降噪
256
+
257
+ :param notification_type: The notification_type of this BatchUpdateActionRules.
258
+ :type notification_type: str
259
+ """
260
+ self._notification_type = notification_type
261
+
262
+ @property
263
+ def notify_resolved(self):
264
+ r"""Gets the notify_resolved of this BatchUpdateActionRules.
265
+
266
+ 告警解决是否通知。 - true:通知 - false:不通知
267
+
268
+ :return: The notify_resolved of this BatchUpdateActionRules.
269
+ :rtype: bool
270
+ """
271
+ return self._notify_resolved
272
+
273
+ @notify_resolved.setter
274
+ def notify_resolved(self, notify_resolved):
275
+ r"""Sets the notify_resolved of this BatchUpdateActionRules.
276
+
277
+ 告警解决是否通知。 - true:通知 - false:不通知
278
+
279
+ :param notify_resolved: The notify_resolved of this BatchUpdateActionRules.
280
+ :type notify_resolved: bool
281
+ """
282
+ self._notify_resolved = notify_resolved
283
+
284
+ @property
285
+ def notify_triggered(self):
286
+ r"""Gets the notify_triggered of this BatchUpdateActionRules.
287
+
288
+ 告警触发是否通知。 - true:通知 - false:不通知
289
+
290
+ :return: The notify_triggered of this BatchUpdateActionRules.
291
+ :rtype: bool
292
+ """
293
+ return self._notify_triggered
294
+
295
+ @notify_triggered.setter
296
+ def notify_triggered(self, notify_triggered):
297
+ r"""Sets the notify_triggered of this BatchUpdateActionRules.
298
+
299
+ 告警触发是否通知。 - true:通知 - false:不通知
300
+
301
+ :param notify_triggered: The notify_triggered of this BatchUpdateActionRules.
302
+ :type notify_triggered: bool
303
+ """
304
+ self._notify_triggered = notify_triggered
305
+
306
+ @property
307
+ def route_group_enable(self):
308
+ r"""Gets the route_group_enable of this BatchUpdateActionRules.
309
+
310
+ 启用告警分组规则。 - 当通知类型为“alarm_policy”时:true - 当通知类型为“direct”时:false 如果告警触发“notify_triggered”或告警恢复“notify_resolved”都设置为false(即都不进行告警通知),则route_group_enable需设置为false。
311
+
312
+ :return: The route_group_enable of this BatchUpdateActionRules.
313
+ :rtype: bool
314
+ """
315
+ return self._route_group_enable
316
+
317
+ @route_group_enable.setter
318
+ def route_group_enable(self, route_group_enable):
319
+ r"""Sets the route_group_enable of this BatchUpdateActionRules.
320
+
321
+ 启用告警分组规则。 - 当通知类型为“alarm_policy”时:true - 当通知类型为“direct”时:false 如果告警触发“notify_triggered”或告警恢复“notify_resolved”都设置为false(即都不进行告警通知),则route_group_enable需设置为false。
322
+
323
+ :param route_group_enable: The route_group_enable of this BatchUpdateActionRules.
324
+ :type route_group_enable: bool
325
+ """
326
+ self._route_group_enable = route_group_enable
327
+
328
+ @property
329
+ def route_group_rule(self):
330
+ r"""Gets the route_group_rule of this BatchUpdateActionRules.
331
+
332
+ 告警分组规则名称。 - 当route_group_enable 为true时,填告警分组规则名称 - 当route_group_enable 为false时,填“”
333
+
334
+ :return: The route_group_rule of this BatchUpdateActionRules.
335
+ :rtype: str
336
+ """
337
+ return self._route_group_rule
338
+
339
+ @route_group_rule.setter
340
+ def route_group_rule(self, route_group_rule):
341
+ r"""Sets the route_group_rule of this BatchUpdateActionRules.
342
+
343
+ 告警分组规则名称。 - 当route_group_enable 为true时,填告警分组规则名称 - 当route_group_enable 为false时,填“”
344
+
345
+ :param route_group_rule: The route_group_rule of this BatchUpdateActionRules.
346
+ :type route_group_rule: str
347
+ """
348
+ self._route_group_rule = route_group_rule
349
+
350
+ def to_dict(self):
351
+ """Returns the model properties as a dict"""
352
+ result = {}
353
+
354
+ for attr, _ in six.iteritems(self.openapi_types):
355
+ value = getattr(self, attr)
356
+ if isinstance(value, list):
357
+ result[attr] = list(map(
358
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
359
+ value
360
+ ))
361
+ elif hasattr(value, "to_dict"):
362
+ result[attr] = value.to_dict()
363
+ elif isinstance(value, dict):
364
+ result[attr] = dict(map(
365
+ lambda item: (item[0], item[1].to_dict())
366
+ if hasattr(item[1], "to_dict") else item,
367
+ value.items()
368
+ ))
369
+ else:
370
+ if attr in self.sensitive_list:
371
+ result[attr] = "****"
372
+ else:
373
+ result[attr] = value
374
+
375
+ return result
376
+
377
+ def to_str(self):
378
+ """Returns the string representation of the model"""
379
+ import simplejson as json
380
+ if six.PY2:
381
+ import sys
382
+ reload(sys)
383
+ sys.setdefaultencoding("utf-8")
384
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
385
+
386
+ def __repr__(self):
387
+ """For `print`"""
388
+ return self.to_str()
389
+
390
+ def __eq__(self, other):
391
+ """Returns true if both objects are equal"""
392
+ if not isinstance(other, BatchUpdateActionRules):
393
+ return False
394
+
395
+ return self.__dict__ == other.__dict__
396
+
397
+ def __ne__(self, other):
398
+ """Returns true if both objects are not equal"""
399
+ return not self == other
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchUpdateAlarmRuleRequest:
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
+ 'action': 'str',
21
+ 'enterprise_project_id': 'str',
22
+ 'body': 'BatchUpdateRequest'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'action': 'action',
27
+ 'enterprise_project_id': 'Enterprise-Project-Id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, action=None, enterprise_project_id=None, body=None):
32
+ r"""BatchUpdateAlarmRuleRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param action: 批量操作action: - enable:批量启动Prometheus监控告警规则 - disable:批量停止Prometheus监控告警规则 - BATCH_UPDATE_ACTION_RULE:批量修改Prometheus监控告警规则的告警行动规则
37
+ :type action: str
38
+ :param enterprise_project_id: 企业项目id。获取方式请参见:[获取企业项目ID](aom_04_0024.xml) 。 - 批量启停或批量修改单个企业项目下实例,填写企业项目id。 - 不填 则批量启停或批量修改默认企业项目下实例,默认企业项目id为0。
39
+ :type enterprise_project_id: str
40
+ :param body: Body of the BatchUpdateAlarmRuleRequest
41
+ :type body: :class:`huaweicloudsdkaom.v2.BatchUpdateRequest`
42
+ """
43
+
44
+
45
+
46
+ self._action = None
47
+ self._enterprise_project_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ self.action = action
52
+ if enterprise_project_id is not None:
53
+ self.enterprise_project_id = enterprise_project_id
54
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def action(self):
59
+ r"""Gets the action of this BatchUpdateAlarmRuleRequest.
60
+
61
+ 批量操作action: - enable:批量启动Prometheus监控告警规则 - disable:批量停止Prometheus监控告警规则 - BATCH_UPDATE_ACTION_RULE:批量修改Prometheus监控告警规则的告警行动规则
62
+
63
+ :return: The action of this BatchUpdateAlarmRuleRequest.
64
+ :rtype: str
65
+ """
66
+ return self._action
67
+
68
+ @action.setter
69
+ def action(self, action):
70
+ r"""Sets the action of this BatchUpdateAlarmRuleRequest.
71
+
72
+ 批量操作action: - enable:批量启动Prometheus监控告警规则 - disable:批量停止Prometheus监控告警规则 - BATCH_UPDATE_ACTION_RULE:批量修改Prometheus监控告警规则的告警行动规则
73
+
74
+ :param action: The action of this BatchUpdateAlarmRuleRequest.
75
+ :type action: str
76
+ """
77
+ self._action = action
78
+
79
+ @property
80
+ def enterprise_project_id(self):
81
+ r"""Gets the enterprise_project_id of this BatchUpdateAlarmRuleRequest.
82
+
83
+ 企业项目id。获取方式请参见:[获取企业项目ID](aom_04_0024.xml) 。 - 批量启停或批量修改单个企业项目下实例,填写企业项目id。 - 不填 则批量启停或批量修改默认企业项目下实例,默认企业项目id为0。
84
+
85
+ :return: The enterprise_project_id of this BatchUpdateAlarmRuleRequest.
86
+ :rtype: str
87
+ """
88
+ return self._enterprise_project_id
89
+
90
+ @enterprise_project_id.setter
91
+ def enterprise_project_id(self, enterprise_project_id):
92
+ r"""Sets the enterprise_project_id of this BatchUpdateAlarmRuleRequest.
93
+
94
+ 企业项目id。获取方式请参见:[获取企业项目ID](aom_04_0024.xml) 。 - 批量启停或批量修改单个企业项目下实例,填写企业项目id。 - 不填 则批量启停或批量修改默认企业项目下实例,默认企业项目id为0。
95
+
96
+ :param enterprise_project_id: The enterprise_project_id of this BatchUpdateAlarmRuleRequest.
97
+ :type enterprise_project_id: str
98
+ """
99
+ self._enterprise_project_id = enterprise_project_id
100
+
101
+ @property
102
+ def body(self):
103
+ r"""Gets the body of this BatchUpdateAlarmRuleRequest.
104
+
105
+ :return: The body of this BatchUpdateAlarmRuleRequest.
106
+ :rtype: :class:`huaweicloudsdkaom.v2.BatchUpdateRequest`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ r"""Sets the body of this BatchUpdateAlarmRuleRequest.
113
+
114
+ :param body: The body of this BatchUpdateAlarmRuleRequest.
115
+ :type body: :class:`huaweicloudsdkaom.v2.BatchUpdateRequest`
116
+ """
117
+ self._body = body
118
+
119
+ def to_dict(self):
120
+ """Returns the model properties as a dict"""
121
+ result = {}
122
+
123
+ for attr, _ in six.iteritems(self.openapi_types):
124
+ value = getattr(self, attr)
125
+ if isinstance(value, list):
126
+ result[attr] = list(map(
127
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
128
+ value
129
+ ))
130
+ elif hasattr(value, "to_dict"):
131
+ result[attr] = value.to_dict()
132
+ elif isinstance(value, dict):
133
+ result[attr] = dict(map(
134
+ lambda item: (item[0], item[1].to_dict())
135
+ if hasattr(item[1], "to_dict") else item,
136
+ value.items()
137
+ ))
138
+ else:
139
+ if attr in self.sensitive_list:
140
+ result[attr] = "****"
141
+ else:
142
+ result[attr] = value
143
+
144
+ return result
145
+
146
+ def to_str(self):
147
+ """Returns the string representation of the model"""
148
+ import simplejson as json
149
+ if six.PY2:
150
+ import sys
151
+ reload(sys)
152
+ sys.setdefaultencoding("utf-8")
153
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
154
+
155
+ def __repr__(self):
156
+ """For `print`"""
157
+ return self.to_str()
158
+
159
+ def __eq__(self, other):
160
+ """Returns true if both objects are equal"""
161
+ if not isinstance(other, BatchUpdateAlarmRuleRequest):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ return not self == other