huaweicloudsdkaom 3.1.102__py2.py3-none-any.whl → 3.1.103__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 (38) hide show
  1. huaweicloudsdkaom/v2/__init__.py +21 -0
  2. huaweicloudsdkaom/v2/aom_async_client.py +243 -22
  3. huaweicloudsdkaom/v2/aom_client.py +243 -22
  4. huaweicloudsdkaom/v2/model/__init__.py +21 -0
  5. huaweicloudsdkaom/v2/model/add_or_update_alarm_rule_v4_item_result.py +142 -0
  6. huaweicloudsdkaom/v2/model/add_or_update_alarm_rule_v4_request_body.py +304 -0
  7. huaweicloudsdkaom/v2/model/add_or_update_metric_or_event_alarm_rule_request.py +168 -0
  8. huaweicloudsdkaom/v2/model/add_or_update_metric_or_event_alarm_rule_response.py +174 -0
  9. huaweicloudsdkaom/v2/model/alarm_notification.py +315 -0
  10. huaweicloudsdkaom/v2/model/alarm_param_for_v4_db.py +470 -0
  11. huaweicloudsdkaom/v2/model/alarm_tags.py +173 -0
  12. huaweicloudsdkaom/v2/model/cmdb_info.py +144 -0
  13. huaweicloudsdkaom/v2/model/delete_alarm_rule_v4_request_body.py +114 -0
  14. huaweicloudsdkaom/v2/model/delete_metric_or_event_alarm_rule_request.py +111 -0
  15. huaweicloudsdkaom/v2/model/delete_metric_or_event_alarm_rule_response.py +174 -0
  16. huaweicloudsdkaom/v2/model/event_alarm_spec.py +260 -0
  17. huaweicloudsdkaom/v2/model/event_trigger_condition.py +260 -0
  18. huaweicloudsdkaom/v2/model/item_result.py +114 -0
  19. huaweicloudsdkaom/v2/model/list_metric_or_event_alarm_rule_request.py +434 -0
  20. huaweicloudsdkaom/v2/model/list_metric_or_event_alarm_rule_response.py +174 -0
  21. huaweicloudsdkaom/v2/model/metric_alarm_spec.py +310 -0
  22. huaweicloudsdkaom/v2/model/no_data_condition.py +173 -0
  23. huaweicloudsdkaom/v2/model/node_info.py +144 -0
  24. huaweicloudsdkaom/v2/model/recovery_condition.py +115 -0
  25. huaweicloudsdkaom/v2/model/smn_info.py +4 -4
  26. huaweicloudsdkaom/v2/model/trigger_condition.py +742 -0
  27. huaweicloudsdkaom/v3/aom_async_client.py +19 -19
  28. huaweicloudsdkaom/v3/aom_client.py +19 -19
  29. huaweicloudsdkaom/v3/model/biz_app_param.py +12 -12
  30. huaweicloudsdkaom/v3/model/component_param.py +3 -3
  31. huaweicloudsdkaom/v3/model/env_param.py +6 -6
  32. huaweicloudsdkaom/v3/model/sub_app_create_param.py +15 -15
  33. huaweicloudsdkaom/v3/model/sub_app_update_param.py +9 -9
  34. {huaweicloudsdkaom-3.1.102.dist-info → huaweicloudsdkaom-3.1.103.dist-info}/METADATA +2 -2
  35. {huaweicloudsdkaom-3.1.102.dist-info → huaweicloudsdkaom-3.1.103.dist-info}/RECORD +38 -17
  36. {huaweicloudsdkaom-3.1.102.dist-info → huaweicloudsdkaom-3.1.103.dist-info}/LICENSE +0 -0
  37. {huaweicloudsdkaom-3.1.102.dist-info → huaweicloudsdkaom-3.1.103.dist-info}/WHEEL +0 -0
  38. {huaweicloudsdkaom-3.1.102.dist-info → huaweicloudsdkaom-3.1.103.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RecoveryCondition:
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
+ 'recovery_timeframe': 'int'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'recovery_timeframe': 'recovery_timeframe'
25
+ }
26
+
27
+ def __init__(self, recovery_timeframe=None):
28
+ """RecoveryCondition
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param recovery_timeframe: 告警恢复周期的个数。
33
+ :type recovery_timeframe: int
34
+ """
35
+
36
+
37
+
38
+ self._recovery_timeframe = None
39
+ self.discriminator = None
40
+
41
+ if recovery_timeframe is not None:
42
+ self.recovery_timeframe = recovery_timeframe
43
+
44
+ @property
45
+ def recovery_timeframe(self):
46
+ """Gets the recovery_timeframe of this RecoveryCondition.
47
+
48
+ 告警恢复周期的个数。
49
+
50
+ :return: The recovery_timeframe of this RecoveryCondition.
51
+ :rtype: int
52
+ """
53
+ return self._recovery_timeframe
54
+
55
+ @recovery_timeframe.setter
56
+ def recovery_timeframe(self, recovery_timeframe):
57
+ """Sets the recovery_timeframe of this RecoveryCondition.
58
+
59
+ 告警恢复周期的个数。
60
+
61
+ :param recovery_timeframe: The recovery_timeframe of this RecoveryCondition.
62
+ :type recovery_timeframe: int
63
+ """
64
+ self._recovery_timeframe = recovery_timeframe
65
+
66
+ def to_dict(self):
67
+ """Returns the model properties as a dict"""
68
+ result = {}
69
+
70
+ for attr, _ in six.iteritems(self.openapi_types):
71
+ value = getattr(self, attr)
72
+ if isinstance(value, list):
73
+ result[attr] = list(map(
74
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
+ value
76
+ ))
77
+ elif hasattr(value, "to_dict"):
78
+ result[attr] = value.to_dict()
79
+ elif isinstance(value, dict):
80
+ result[attr] = dict(map(
81
+ lambda item: (item[0], item[1].to_dict())
82
+ if hasattr(item[1], "to_dict") else item,
83
+ value.items()
84
+ ))
85
+ else:
86
+ if attr in self.sensitive_list:
87
+ result[attr] = "****"
88
+ else:
89
+ result[attr] = value
90
+
91
+ return result
92
+
93
+ def to_str(self):
94
+ """Returns the string representation of the model"""
95
+ import simplejson as json
96
+ if six.PY2:
97
+ import sys
98
+ reload(sys)
99
+ sys.setdefaultencoding("utf-8")
100
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
+
102
+ def __repr__(self):
103
+ """For `print`"""
104
+ return self.to_str()
105
+
106
+ def __eq__(self, other):
107
+ """Returns true if both objects are equal"""
108
+ if not isinstance(other, RecoveryCondition):
109
+ return False
110
+
111
+ return self.__dict__ == other.__dict__
112
+
113
+ def __ne__(self, other):
114
+ """Returns true if both objects are not equal"""
115
+ return not self == other
@@ -18,7 +18,7 @@ class SmnInfo:
18
18
 
19
19
  openapi_types = {
20
20
  'smn_notified_content': 'str',
21
- 'smn_subscription_status': 'str',
21
+ 'smn_subscription_status': 'int',
22
22
  'smn_subscription_type': 'str'
23
23
  }
24
24
 
@@ -36,7 +36,7 @@ class SmnInfo:
36
36
  :param smn_notified_content: smn发送消息的内容
37
37
  :type smn_notified_content: str
38
38
  :param smn_subscription_status: smn的订阅的状态
39
- :type smn_subscription_status: str
39
+ :type smn_subscription_status: int
40
40
  :param smn_subscription_type: smn的订阅类型
41
41
  :type smn_subscription_type: str
42
42
  """
@@ -84,7 +84,7 @@ class SmnInfo:
84
84
  smn的订阅的状态
85
85
 
86
86
  :return: The smn_subscription_status of this SmnInfo.
87
- :rtype: str
87
+ :rtype: int
88
88
  """
89
89
  return self._smn_subscription_status
90
90
 
@@ -95,7 +95,7 @@ class SmnInfo:
95
95
  smn的订阅的状态
96
96
 
97
97
  :param smn_subscription_status: The smn_subscription_status of this SmnInfo.
98
- :type smn_subscription_status: str
98
+ :type smn_subscription_status: int
99
99
  """
100
100
  self._smn_subscription_status = smn_subscription_status
101
101