huaweicloudsdkaom 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 huaweicloudsdkaom might be problematic. Click here for more details.

Files changed (69) hide show
  1. huaweicloudsdkaom/v1/region/aom_region.py +9 -0
  2. huaweicloudsdkaom/v2/__init__.py +23 -0
  3. huaweicloudsdkaom/v2/aom_async_client.py +255 -24
  4. huaweicloudsdkaom/v2/aom_client.py +255 -24
  5. huaweicloudsdkaom/v2/model/__init__.py +23 -0
  6. huaweicloudsdkaom/v2/model/add_or_update_alarm_rule_v4_item_result.py +142 -0
  7. huaweicloudsdkaom/v2/model/add_or_update_alarm_rule_v4_request_body.py +304 -0
  8. huaweicloudsdkaom/v2/model/add_or_update_metric_or_event_alarm_rule_request.py +168 -0
  9. huaweicloudsdkaom/v2/model/add_or_update_metric_or_event_alarm_rule_response.py +174 -0
  10. huaweicloudsdkaom/v2/model/alarm_notification.py +315 -0
  11. huaweicloudsdkaom/v2/model/alarm_param_for_v4_db.py +470 -0
  12. huaweicloudsdkaom/v2/model/alarm_tags.py +173 -0
  13. huaweicloudsdkaom/v2/model/cmdb_info.py +144 -0
  14. huaweicloudsdkaom/v2/model/count_events_response.py +32 -3
  15. huaweicloudsdkaom/v2/model/delete_alarm_rule_v4_request_body.py +114 -0
  16. huaweicloudsdkaom/v2/model/delete_metric_or_event_alarm_rule_request.py +111 -0
  17. huaweicloudsdkaom/v2/model/delete_metric_or_event_alarm_rule_response.py +174 -0
  18. huaweicloudsdkaom/v2/model/delete_prom_instance_request.py +31 -3
  19. huaweicloudsdkaom/v2/model/event_alarm_spec.py +260 -0
  20. huaweicloudsdkaom/v2/model/event_trigger_condition.py +260 -0
  21. huaweicloudsdkaom/v2/model/item_result.py +114 -0
  22. huaweicloudsdkaom/v2/model/list_agents_request.py +6 -6
  23. huaweicloudsdkaom/v2/model/list_event_model.py +405 -0
  24. huaweicloudsdkaom/v2/model/list_events_request.py +88 -1
  25. huaweicloudsdkaom/v2/model/list_events_response.py +31 -6
  26. huaweicloudsdkaom/v2/model/list_metric_or_event_alarm_rule_request.py +434 -0
  27. huaweicloudsdkaom/v2/model/list_metric_or_event_alarm_rule_response.py +174 -0
  28. huaweicloudsdkaom/v2/model/list_prom_instance_request.py +31 -3
  29. huaweicloudsdkaom/v2/model/metric_alarm_spec.py +310 -0
  30. huaweicloudsdkaom/v2/model/no_data_condition.py +173 -0
  31. huaweicloudsdkaom/v2/model/node_info.py +144 -0
  32. huaweicloudsdkaom/v2/model/page_info.py +170 -0
  33. huaweicloudsdkaom/v2/model/push_events_request.py +18 -18
  34. huaweicloudsdkaom/v2/model/recovery_condition.py +115 -0
  35. huaweicloudsdkaom/v2/model/smn_info.py +4 -4
  36. huaweicloudsdkaom/v2/model/trigger_condition.py +742 -0
  37. huaweicloudsdkaom/v2/region/aom_region.py +9 -0
  38. huaweicloudsdkaom/v3/aom_async_client.py +19 -19
  39. huaweicloudsdkaom/v3/aom_client.py +19 -19
  40. huaweicloudsdkaom/v3/model/biz_app_param.py +12 -12
  41. huaweicloudsdkaom/v3/model/component_param.py +3 -3
  42. huaweicloudsdkaom/v3/model/env_param.py +6 -6
  43. huaweicloudsdkaom/v3/model/sub_app_create_param.py +15 -15
  44. huaweicloudsdkaom/v3/model/sub_app_update_param.py +9 -9
  45. huaweicloudsdkaom/v3/region/aom_region.py +9 -0
  46. huaweicloudsdkaom/v4/__init__.py +21 -0
  47. huaweicloudsdkaom/v4/aom_async_client.py +279 -0
  48. huaweicloudsdkaom/v4/aom_client.py +276 -0
  49. huaweicloudsdkaom/v4/model/__init__.py +18 -0
  50. huaweicloudsdkaom/v4/model/agent_batch_import_param_new.py +280 -0
  51. huaweicloudsdkaom/v4/model/agent_import_param_new.py +313 -0
  52. huaweicloudsdkaom/v4/model/agent_info_param.py +231 -0
  53. huaweicloudsdkaom/v4/model/agent_info_result.py +463 -0
  54. huaweicloudsdkaom/v4/model/agent_upgrade_param.py +142 -0
  55. huaweicloudsdkaom/v4/model/batch_import_agent_request.py +139 -0
  56. huaweicloudsdkaom/v4/model/batch_import_agent_response.py +116 -0
  57. huaweicloudsdkaom/v4/model/batch_update_agent_request.py +111 -0
  58. huaweicloudsdkaom/v4/model/batch_update_agent_response.py +116 -0
  59. huaweicloudsdkaom/v4/model/plugin_install_basic_param.py +173 -0
  60. huaweicloudsdkaom/v4/model/show_agent_infos_request.py +111 -0
  61. huaweicloudsdkaom/v4/model/show_agent_infos_response.py +203 -0
  62. huaweicloudsdkaom/v4/model/single_agent_param.py +142 -0
  63. huaweicloudsdkaom/v4/region/__init__.py +0 -0
  64. huaweicloudsdkaom/v4/region/aom_region.py +100 -0
  65. {huaweicloudsdkaom-3.1.85.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/METADATA +2 -2
  66. {huaweicloudsdkaom-3.1.85.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/RECORD +69 -27
  67. {huaweicloudsdkaom-3.1.85.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/WHEEL +1 -1
  68. {huaweicloudsdkaom-3.1.85.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/LICENSE +0 -0
  69. {huaweicloudsdkaom-3.1.85.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,470 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class AlarmParamForV4Db:
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_create_time': 'int',
21
+ 'alarm_update_time': 'int',
22
+ 'alarm_rule_name': 'str',
23
+ 'alarm_rule_id': 'int',
24
+ 'enterprise_project_id': 'str',
25
+ 'prom_instance_id': 'str',
26
+ 'alarm_rule_description': 'str',
27
+ 'alarm_rule_enable': 'bool',
28
+ 'alarm_rule_status': 'str',
29
+ 'alarm_rule_type': 'str',
30
+ 'metric_alarm_spec': 'MetricAlarmSpec',
31
+ 'event_alarm_spec': 'EventAlarmSpec',
32
+ 'alarm_notifications': 'AlarmNotification',
33
+ 'user_id': 'str'
34
+ }
35
+
36
+ attribute_map = {
37
+ 'alarm_create_time': 'alarm_create_time',
38
+ 'alarm_update_time': 'alarm_update_time',
39
+ 'alarm_rule_name': 'alarm_rule_name',
40
+ 'alarm_rule_id': 'alarm_rule_id',
41
+ 'enterprise_project_id': 'enterprise_project_id',
42
+ 'prom_instance_id': 'prom_instance_id',
43
+ 'alarm_rule_description': 'alarm_rule_description',
44
+ 'alarm_rule_enable': 'alarm_rule_enable',
45
+ 'alarm_rule_status': 'alarm_rule_status',
46
+ 'alarm_rule_type': 'alarm_rule_type',
47
+ 'metric_alarm_spec': 'metric_alarm_spec',
48
+ 'event_alarm_spec': 'event_alarm_spec',
49
+ 'alarm_notifications': 'alarm_notifications',
50
+ 'user_id': 'user_id'
51
+ }
52
+
53
+ def __init__(self, alarm_create_time=None, alarm_update_time=None, alarm_rule_name=None, alarm_rule_id=None, enterprise_project_id=None, prom_instance_id=None, alarm_rule_description=None, alarm_rule_enable=None, alarm_rule_status=None, alarm_rule_type=None, metric_alarm_spec=None, event_alarm_spec=None, alarm_notifications=None, user_id=None):
54
+ """AlarmParamForV4Db
55
+
56
+ The model defined in huaweicloud sdk
57
+
58
+ :param alarm_create_time: 告警规则创建时间。
59
+ :type alarm_create_time: int
60
+ :param alarm_update_time: 告警规则修改时间。
61
+ :type alarm_update_time: int
62
+ :param alarm_rule_name: 告警规则名称。
63
+ :type alarm_rule_name: str
64
+ :param alarm_rule_id: 告警规则id。
65
+ :type alarm_rule_id: int
66
+ :param enterprise_project_id: 企业项目id。
67
+ :type enterprise_project_id: str
68
+ :param prom_instance_id: Prometheus实例id。
69
+ :type prom_instance_id: str
70
+ :param alarm_rule_description: 告警规则描述。
71
+ :type alarm_rule_description: str
72
+ :param alarm_rule_enable: 是否启用。
73
+ :type alarm_rule_enable: bool
74
+ :param alarm_rule_status: 告警状态。 - “OK”:正常 - “alarm”:超限阈值 - “Effective”:生效中 - “Invalid”:停用中
75
+ :type alarm_rule_status: str
76
+ :param alarm_rule_type: 规则类型。 - “metric”:指标告警规则 - “event”:事件告警规则
77
+ :type alarm_rule_type: str
78
+ :param metric_alarm_spec:
79
+ :type metric_alarm_spec: :class:`huaweicloudsdkaom.v2.MetricAlarmSpec`
80
+ :param event_alarm_spec:
81
+ :type event_alarm_spec: :class:`huaweicloudsdkaom.v2.EventAlarmSpec`
82
+ :param alarm_notifications:
83
+ :type alarm_notifications: :class:`huaweicloudsdkaom.v2.AlarmNotification`
84
+ :param user_id: 用户id。
85
+ :type user_id: str
86
+ """
87
+
88
+
89
+
90
+ self._alarm_create_time = None
91
+ self._alarm_update_time = None
92
+ self._alarm_rule_name = None
93
+ self._alarm_rule_id = None
94
+ self._enterprise_project_id = None
95
+ self._prom_instance_id = None
96
+ self._alarm_rule_description = None
97
+ self._alarm_rule_enable = None
98
+ self._alarm_rule_status = None
99
+ self._alarm_rule_type = None
100
+ self._metric_alarm_spec = None
101
+ self._event_alarm_spec = None
102
+ self._alarm_notifications = None
103
+ self._user_id = None
104
+ self.discriminator = None
105
+
106
+ self.alarm_create_time = alarm_create_time
107
+ self.alarm_update_time = alarm_update_time
108
+ self.alarm_rule_name = alarm_rule_name
109
+ self.alarm_rule_id = alarm_rule_id
110
+ self.enterprise_project_id = enterprise_project_id
111
+ if prom_instance_id is not None:
112
+ self.prom_instance_id = prom_instance_id
113
+ self.alarm_rule_description = alarm_rule_description
114
+ self.alarm_rule_enable = alarm_rule_enable
115
+ self.alarm_rule_status = alarm_rule_status
116
+ self.alarm_rule_type = alarm_rule_type
117
+ if metric_alarm_spec is not None:
118
+ self.metric_alarm_spec = metric_alarm_spec
119
+ if event_alarm_spec is not None:
120
+ self.event_alarm_spec = event_alarm_spec
121
+ self.alarm_notifications = alarm_notifications
122
+ if user_id is not None:
123
+ self.user_id = user_id
124
+
125
+ @property
126
+ def alarm_create_time(self):
127
+ """Gets the alarm_create_time of this AlarmParamForV4Db.
128
+
129
+ 告警规则创建时间。
130
+
131
+ :return: The alarm_create_time of this AlarmParamForV4Db.
132
+ :rtype: int
133
+ """
134
+ return self._alarm_create_time
135
+
136
+ @alarm_create_time.setter
137
+ def alarm_create_time(self, alarm_create_time):
138
+ """Sets the alarm_create_time of this AlarmParamForV4Db.
139
+
140
+ 告警规则创建时间。
141
+
142
+ :param alarm_create_time: The alarm_create_time of this AlarmParamForV4Db.
143
+ :type alarm_create_time: int
144
+ """
145
+ self._alarm_create_time = alarm_create_time
146
+
147
+ @property
148
+ def alarm_update_time(self):
149
+ """Gets the alarm_update_time of this AlarmParamForV4Db.
150
+
151
+ 告警规则修改时间。
152
+
153
+ :return: The alarm_update_time of this AlarmParamForV4Db.
154
+ :rtype: int
155
+ """
156
+ return self._alarm_update_time
157
+
158
+ @alarm_update_time.setter
159
+ def alarm_update_time(self, alarm_update_time):
160
+ """Sets the alarm_update_time of this AlarmParamForV4Db.
161
+
162
+ 告警规则修改时间。
163
+
164
+ :param alarm_update_time: The alarm_update_time of this AlarmParamForV4Db.
165
+ :type alarm_update_time: int
166
+ """
167
+ self._alarm_update_time = alarm_update_time
168
+
169
+ @property
170
+ def alarm_rule_name(self):
171
+ """Gets the alarm_rule_name of this AlarmParamForV4Db.
172
+
173
+ 告警规则名称。
174
+
175
+ :return: The alarm_rule_name of this AlarmParamForV4Db.
176
+ :rtype: str
177
+ """
178
+ return self._alarm_rule_name
179
+
180
+ @alarm_rule_name.setter
181
+ def alarm_rule_name(self, alarm_rule_name):
182
+ """Sets the alarm_rule_name of this AlarmParamForV4Db.
183
+
184
+ 告警规则名称。
185
+
186
+ :param alarm_rule_name: The alarm_rule_name of this AlarmParamForV4Db.
187
+ :type alarm_rule_name: str
188
+ """
189
+ self._alarm_rule_name = alarm_rule_name
190
+
191
+ @property
192
+ def alarm_rule_id(self):
193
+ """Gets the alarm_rule_id of this AlarmParamForV4Db.
194
+
195
+ 告警规则id。
196
+
197
+ :return: The alarm_rule_id of this AlarmParamForV4Db.
198
+ :rtype: int
199
+ """
200
+ return self._alarm_rule_id
201
+
202
+ @alarm_rule_id.setter
203
+ def alarm_rule_id(self, alarm_rule_id):
204
+ """Sets the alarm_rule_id of this AlarmParamForV4Db.
205
+
206
+ 告警规则id。
207
+
208
+ :param alarm_rule_id: The alarm_rule_id of this AlarmParamForV4Db.
209
+ :type alarm_rule_id: int
210
+ """
211
+ self._alarm_rule_id = alarm_rule_id
212
+
213
+ @property
214
+ def enterprise_project_id(self):
215
+ """Gets the enterprise_project_id of this AlarmParamForV4Db.
216
+
217
+ 企业项目id。
218
+
219
+ :return: The enterprise_project_id of this AlarmParamForV4Db.
220
+ :rtype: str
221
+ """
222
+ return self._enterprise_project_id
223
+
224
+ @enterprise_project_id.setter
225
+ def enterprise_project_id(self, enterprise_project_id):
226
+ """Sets the enterprise_project_id of this AlarmParamForV4Db.
227
+
228
+ 企业项目id。
229
+
230
+ :param enterprise_project_id: The enterprise_project_id of this AlarmParamForV4Db.
231
+ :type enterprise_project_id: str
232
+ """
233
+ self._enterprise_project_id = enterprise_project_id
234
+
235
+ @property
236
+ def prom_instance_id(self):
237
+ """Gets the prom_instance_id of this AlarmParamForV4Db.
238
+
239
+ Prometheus实例id。
240
+
241
+ :return: The prom_instance_id of this AlarmParamForV4Db.
242
+ :rtype: str
243
+ """
244
+ return self._prom_instance_id
245
+
246
+ @prom_instance_id.setter
247
+ def prom_instance_id(self, prom_instance_id):
248
+ """Sets the prom_instance_id of this AlarmParamForV4Db.
249
+
250
+ Prometheus实例id。
251
+
252
+ :param prom_instance_id: The prom_instance_id of this AlarmParamForV4Db.
253
+ :type prom_instance_id: str
254
+ """
255
+ self._prom_instance_id = prom_instance_id
256
+
257
+ @property
258
+ def alarm_rule_description(self):
259
+ """Gets the alarm_rule_description of this AlarmParamForV4Db.
260
+
261
+ 告警规则描述。
262
+
263
+ :return: The alarm_rule_description of this AlarmParamForV4Db.
264
+ :rtype: str
265
+ """
266
+ return self._alarm_rule_description
267
+
268
+ @alarm_rule_description.setter
269
+ def alarm_rule_description(self, alarm_rule_description):
270
+ """Sets the alarm_rule_description of this AlarmParamForV4Db.
271
+
272
+ 告警规则描述。
273
+
274
+ :param alarm_rule_description: The alarm_rule_description of this AlarmParamForV4Db.
275
+ :type alarm_rule_description: str
276
+ """
277
+ self._alarm_rule_description = alarm_rule_description
278
+
279
+ @property
280
+ def alarm_rule_enable(self):
281
+ """Gets the alarm_rule_enable of this AlarmParamForV4Db.
282
+
283
+ 是否启用。
284
+
285
+ :return: The alarm_rule_enable of this AlarmParamForV4Db.
286
+ :rtype: bool
287
+ """
288
+ return self._alarm_rule_enable
289
+
290
+ @alarm_rule_enable.setter
291
+ def alarm_rule_enable(self, alarm_rule_enable):
292
+ """Sets the alarm_rule_enable of this AlarmParamForV4Db.
293
+
294
+ 是否启用。
295
+
296
+ :param alarm_rule_enable: The alarm_rule_enable of this AlarmParamForV4Db.
297
+ :type alarm_rule_enable: bool
298
+ """
299
+ self._alarm_rule_enable = alarm_rule_enable
300
+
301
+ @property
302
+ def alarm_rule_status(self):
303
+ """Gets the alarm_rule_status of this AlarmParamForV4Db.
304
+
305
+ 告警状态。 - “OK”:正常 - “alarm”:超限阈值 - “Effective”:生效中 - “Invalid”:停用中
306
+
307
+ :return: The alarm_rule_status of this AlarmParamForV4Db.
308
+ :rtype: str
309
+ """
310
+ return self._alarm_rule_status
311
+
312
+ @alarm_rule_status.setter
313
+ def alarm_rule_status(self, alarm_rule_status):
314
+ """Sets the alarm_rule_status of this AlarmParamForV4Db.
315
+
316
+ 告警状态。 - “OK”:正常 - “alarm”:超限阈值 - “Effective”:生效中 - “Invalid”:停用中
317
+
318
+ :param alarm_rule_status: The alarm_rule_status of this AlarmParamForV4Db.
319
+ :type alarm_rule_status: str
320
+ """
321
+ self._alarm_rule_status = alarm_rule_status
322
+
323
+ @property
324
+ def alarm_rule_type(self):
325
+ """Gets the alarm_rule_type of this AlarmParamForV4Db.
326
+
327
+ 规则类型。 - “metric”:指标告警规则 - “event”:事件告警规则
328
+
329
+ :return: The alarm_rule_type of this AlarmParamForV4Db.
330
+ :rtype: str
331
+ """
332
+ return self._alarm_rule_type
333
+
334
+ @alarm_rule_type.setter
335
+ def alarm_rule_type(self, alarm_rule_type):
336
+ """Sets the alarm_rule_type of this AlarmParamForV4Db.
337
+
338
+ 规则类型。 - “metric”:指标告警规则 - “event”:事件告警规则
339
+
340
+ :param alarm_rule_type: The alarm_rule_type of this AlarmParamForV4Db.
341
+ :type alarm_rule_type: str
342
+ """
343
+ self._alarm_rule_type = alarm_rule_type
344
+
345
+ @property
346
+ def metric_alarm_spec(self):
347
+ """Gets the metric_alarm_spec of this AlarmParamForV4Db.
348
+
349
+ :return: The metric_alarm_spec of this AlarmParamForV4Db.
350
+ :rtype: :class:`huaweicloudsdkaom.v2.MetricAlarmSpec`
351
+ """
352
+ return self._metric_alarm_spec
353
+
354
+ @metric_alarm_spec.setter
355
+ def metric_alarm_spec(self, metric_alarm_spec):
356
+ """Sets the metric_alarm_spec of this AlarmParamForV4Db.
357
+
358
+ :param metric_alarm_spec: The metric_alarm_spec of this AlarmParamForV4Db.
359
+ :type metric_alarm_spec: :class:`huaweicloudsdkaom.v2.MetricAlarmSpec`
360
+ """
361
+ self._metric_alarm_spec = metric_alarm_spec
362
+
363
+ @property
364
+ def event_alarm_spec(self):
365
+ """Gets the event_alarm_spec of this AlarmParamForV4Db.
366
+
367
+ :return: The event_alarm_spec of this AlarmParamForV4Db.
368
+ :rtype: :class:`huaweicloudsdkaom.v2.EventAlarmSpec`
369
+ """
370
+ return self._event_alarm_spec
371
+
372
+ @event_alarm_spec.setter
373
+ def event_alarm_spec(self, event_alarm_spec):
374
+ """Sets the event_alarm_spec of this AlarmParamForV4Db.
375
+
376
+ :param event_alarm_spec: The event_alarm_spec of this AlarmParamForV4Db.
377
+ :type event_alarm_spec: :class:`huaweicloudsdkaom.v2.EventAlarmSpec`
378
+ """
379
+ self._event_alarm_spec = event_alarm_spec
380
+
381
+ @property
382
+ def alarm_notifications(self):
383
+ """Gets the alarm_notifications of this AlarmParamForV4Db.
384
+
385
+ :return: The alarm_notifications of this AlarmParamForV4Db.
386
+ :rtype: :class:`huaweicloudsdkaom.v2.AlarmNotification`
387
+ """
388
+ return self._alarm_notifications
389
+
390
+ @alarm_notifications.setter
391
+ def alarm_notifications(self, alarm_notifications):
392
+ """Sets the alarm_notifications of this AlarmParamForV4Db.
393
+
394
+ :param alarm_notifications: The alarm_notifications of this AlarmParamForV4Db.
395
+ :type alarm_notifications: :class:`huaweicloudsdkaom.v2.AlarmNotification`
396
+ """
397
+ self._alarm_notifications = alarm_notifications
398
+
399
+ @property
400
+ def user_id(self):
401
+ """Gets the user_id of this AlarmParamForV4Db.
402
+
403
+ 用户id。
404
+
405
+ :return: The user_id of this AlarmParamForV4Db.
406
+ :rtype: str
407
+ """
408
+ return self._user_id
409
+
410
+ @user_id.setter
411
+ def user_id(self, user_id):
412
+ """Sets the user_id of this AlarmParamForV4Db.
413
+
414
+ 用户id。
415
+
416
+ :param user_id: The user_id of this AlarmParamForV4Db.
417
+ :type user_id: str
418
+ """
419
+ self._user_id = user_id
420
+
421
+ def to_dict(self):
422
+ """Returns the model properties as a dict"""
423
+ result = {}
424
+
425
+ for attr, _ in six.iteritems(self.openapi_types):
426
+ value = getattr(self, attr)
427
+ if isinstance(value, list):
428
+ result[attr] = list(map(
429
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
430
+ value
431
+ ))
432
+ elif hasattr(value, "to_dict"):
433
+ result[attr] = value.to_dict()
434
+ elif isinstance(value, dict):
435
+ result[attr] = dict(map(
436
+ lambda item: (item[0], item[1].to_dict())
437
+ if hasattr(item[1], "to_dict") else item,
438
+ value.items()
439
+ ))
440
+ else:
441
+ if attr in self.sensitive_list:
442
+ result[attr] = "****"
443
+ else:
444
+ result[attr] = value
445
+
446
+ return result
447
+
448
+ def to_str(self):
449
+ """Returns the string representation of the model"""
450
+ import simplejson as json
451
+ if six.PY2:
452
+ import sys
453
+ reload(sys)
454
+ sys.setdefaultencoding("utf-8")
455
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
456
+
457
+ def __repr__(self):
458
+ """For `print`"""
459
+ return self.to_str()
460
+
461
+ def __eq__(self, other):
462
+ """Returns true if both objects are equal"""
463
+ if not isinstance(other, AlarmParamForV4Db):
464
+ return False
465
+
466
+ return self.__dict__ == other.__dict__
467
+
468
+ def __ne__(self, other):
469
+ """Returns true if both objects are not equal"""
470
+ return not self == other
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class AlarmTags:
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
+ 'auto_tags': 'list[str]',
21
+ 'custom_tags': 'list[str]',
22
+ 'custom_annotations': 'list[str]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'auto_tags': 'auto_tags',
27
+ 'custom_tags': 'custom_tags',
28
+ 'custom_annotations': 'custom_annotations'
29
+ }
30
+
31
+ def __init__(self, auto_tags=None, custom_tags=None, custom_annotations=None):
32
+ """AlarmTags
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param auto_tags: 自动标签。
37
+ :type auto_tags: list[str]
38
+ :param custom_tags: 自定义标签。
39
+ :type custom_tags: list[str]
40
+ :param custom_annotations: 告警标注。
41
+ :type custom_annotations: list[str]
42
+ """
43
+
44
+
45
+
46
+ self._auto_tags = None
47
+ self._custom_tags = None
48
+ self._custom_annotations = None
49
+ self.discriminator = None
50
+
51
+ if auto_tags is not None:
52
+ self.auto_tags = auto_tags
53
+ if custom_tags is not None:
54
+ self.custom_tags = custom_tags
55
+ if custom_annotations is not None:
56
+ self.custom_annotations = custom_annotations
57
+
58
+ @property
59
+ def auto_tags(self):
60
+ """Gets the auto_tags of this AlarmTags.
61
+
62
+ 自动标签。
63
+
64
+ :return: The auto_tags of this AlarmTags.
65
+ :rtype: list[str]
66
+ """
67
+ return self._auto_tags
68
+
69
+ @auto_tags.setter
70
+ def auto_tags(self, auto_tags):
71
+ """Sets the auto_tags of this AlarmTags.
72
+
73
+ 自动标签。
74
+
75
+ :param auto_tags: The auto_tags of this AlarmTags.
76
+ :type auto_tags: list[str]
77
+ """
78
+ self._auto_tags = auto_tags
79
+
80
+ @property
81
+ def custom_tags(self):
82
+ """Gets the custom_tags of this AlarmTags.
83
+
84
+ 自定义标签。
85
+
86
+ :return: The custom_tags of this AlarmTags.
87
+ :rtype: list[str]
88
+ """
89
+ return self._custom_tags
90
+
91
+ @custom_tags.setter
92
+ def custom_tags(self, custom_tags):
93
+ """Sets the custom_tags of this AlarmTags.
94
+
95
+ 自定义标签。
96
+
97
+ :param custom_tags: The custom_tags of this AlarmTags.
98
+ :type custom_tags: list[str]
99
+ """
100
+ self._custom_tags = custom_tags
101
+
102
+ @property
103
+ def custom_annotations(self):
104
+ """Gets the custom_annotations of this AlarmTags.
105
+
106
+ 告警标注。
107
+
108
+ :return: The custom_annotations of this AlarmTags.
109
+ :rtype: list[str]
110
+ """
111
+ return self._custom_annotations
112
+
113
+ @custom_annotations.setter
114
+ def custom_annotations(self, custom_annotations):
115
+ """Sets the custom_annotations of this AlarmTags.
116
+
117
+ 告警标注。
118
+
119
+ :param custom_annotations: The custom_annotations of this AlarmTags.
120
+ :type custom_annotations: list[str]
121
+ """
122
+ self._custom_annotations = custom_annotations
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, AlarmTags):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other