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,170 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class PageInfo:
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
+ 'current_count': 'int',
21
+ 'previous_marker': 'str',
22
+ 'next_marker': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'current_count': 'current_count',
27
+ 'previous_marker': 'previous_marker',
28
+ 'next_marker': 'next_marker'
29
+ }
30
+
31
+ def __init__(self, current_count=None, previous_marker=None, next_marker=None):
32
+ """PageInfo
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param current_count: 当前页事件、告警总数
37
+ :type current_count: int
38
+ :param previous_marker: 前一个marker
39
+ :type previous_marker: str
40
+ :param next_marker: 下一个marker
41
+ :type next_marker: str
42
+ """
43
+
44
+
45
+
46
+ self._current_count = None
47
+ self._previous_marker = None
48
+ self._next_marker = None
49
+ self.discriminator = None
50
+
51
+ self.current_count = current_count
52
+ self.previous_marker = previous_marker
53
+ self.next_marker = next_marker
54
+
55
+ @property
56
+ def current_count(self):
57
+ """Gets the current_count of this PageInfo.
58
+
59
+ 当前页事件、告警总数
60
+
61
+ :return: The current_count of this PageInfo.
62
+ :rtype: int
63
+ """
64
+ return self._current_count
65
+
66
+ @current_count.setter
67
+ def current_count(self, current_count):
68
+ """Sets the current_count of this PageInfo.
69
+
70
+ 当前页事件、告警总数
71
+
72
+ :param current_count: The current_count of this PageInfo.
73
+ :type current_count: int
74
+ """
75
+ self._current_count = current_count
76
+
77
+ @property
78
+ def previous_marker(self):
79
+ """Gets the previous_marker of this PageInfo.
80
+
81
+ 前一个marker
82
+
83
+ :return: The previous_marker of this PageInfo.
84
+ :rtype: str
85
+ """
86
+ return self._previous_marker
87
+
88
+ @previous_marker.setter
89
+ def previous_marker(self, previous_marker):
90
+ """Sets the previous_marker of this PageInfo.
91
+
92
+ 前一个marker
93
+
94
+ :param previous_marker: The previous_marker of this PageInfo.
95
+ :type previous_marker: str
96
+ """
97
+ self._previous_marker = previous_marker
98
+
99
+ @property
100
+ def next_marker(self):
101
+ """Gets the next_marker of this PageInfo.
102
+
103
+ 下一个marker
104
+
105
+ :return: The next_marker of this PageInfo.
106
+ :rtype: str
107
+ """
108
+ return self._next_marker
109
+
110
+ @next_marker.setter
111
+ def next_marker(self, next_marker):
112
+ """Sets the next_marker of this PageInfo.
113
+
114
+ 下一个marker
115
+
116
+ :param next_marker: The next_marker of this PageInfo.
117
+ :type next_marker: str
118
+ """
119
+ self._next_marker = next_marker
120
+
121
+ def to_dict(self):
122
+ """Returns the model properties as a dict"""
123
+ result = {}
124
+
125
+ for attr, _ in six.iteritems(self.openapi_types):
126
+ value = getattr(self, attr)
127
+ if isinstance(value, list):
128
+ result[attr] = list(map(
129
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
130
+ value
131
+ ))
132
+ elif hasattr(value, "to_dict"):
133
+ result[attr] = value.to_dict()
134
+ elif isinstance(value, dict):
135
+ result[attr] = dict(map(
136
+ lambda item: (item[0], item[1].to_dict())
137
+ if hasattr(item[1], "to_dict") else item,
138
+ value.items()
139
+ ))
140
+ else:
141
+ if attr in self.sensitive_list:
142
+ result[attr] = "****"
143
+ else:
144
+ result[attr] = value
145
+
146
+ return result
147
+
148
+ def to_str(self):
149
+ """Returns the string representation of the model"""
150
+ import simplejson as json
151
+ if six.PY2:
152
+ import sys
153
+ reload(sys)
154
+ sys.setdefaultencoding("utf-8")
155
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
156
+
157
+ def __repr__(self):
158
+ """For `print`"""
159
+ return self.to_str()
160
+
161
+ def __eq__(self, other):
162
+ """Returns true if both objects are equal"""
163
+ if not isinstance(other, PageInfo):
164
+ return False
165
+
166
+ return self.__dict__ == other.__dict__
167
+
168
+ def __ne__(self, other):
169
+ """Returns true if both objects are not equal"""
170
+ return not self == other
@@ -17,24 +17,24 @@ class PushEventsRequest:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'x_enterprise_prject_id': 'str',
20
+ 'enterprise_project_id': 'str',
21
21
  'action': 'str',
22
22
  'body': 'EventList'
23
23
  }
24
24
 
25
25
  attribute_map = {
26
- 'x_enterprise_prject_id': 'x-enterprise-prject-id',
26
+ 'enterprise_project_id': 'enterprise-project-id',
27
27
  'action': 'action',
28
28
  'body': 'body'
29
29
  }
30
30
 
31
- def __init__(self, x_enterprise_prject_id=None, action=None, body=None):
31
+ def __init__(self, enterprise_project_id=None, action=None, body=None):
32
32
  """PushEventsRequest
33
33
 
34
34
  The model defined in huaweicloud sdk
35
35
 
36
- :param x_enterprise_prject_id: 告警所属的企业项目id。
37
- :type x_enterprise_prject_id: str
36
+ :param enterprise_project_id: 告警所属的企业项目id。
37
+ :type enterprise_project_id: str
38
38
  :param action: 接口请求动作。action=clear代表清除告警,不传或者传其他值默认为上报动作。
39
39
  :type action: str
40
40
  :param body: Body of the PushEventsRequest
@@ -43,39 +43,39 @@ class PushEventsRequest:
43
43
 
44
44
 
45
45
 
46
- self._x_enterprise_prject_id = None
46
+ self._enterprise_project_id = None
47
47
  self._action = None
48
48
  self._body = None
49
49
  self.discriminator = None
50
50
 
51
- if x_enterprise_prject_id is not None:
52
- self.x_enterprise_prject_id = x_enterprise_prject_id
51
+ if enterprise_project_id is not None:
52
+ self.enterprise_project_id = enterprise_project_id
53
53
  if action is not None:
54
54
  self.action = action
55
55
  if body is not None:
56
56
  self.body = body
57
57
 
58
58
  @property
59
- def x_enterprise_prject_id(self):
60
- """Gets the x_enterprise_prject_id of this PushEventsRequest.
59
+ def enterprise_project_id(self):
60
+ """Gets the enterprise_project_id of this PushEventsRequest.
61
61
 
62
62
  告警所属的企业项目id。
63
63
 
64
- :return: The x_enterprise_prject_id of this PushEventsRequest.
64
+ :return: The enterprise_project_id of this PushEventsRequest.
65
65
  :rtype: str
66
66
  """
67
- return self._x_enterprise_prject_id
67
+ return self._enterprise_project_id
68
68
 
69
- @x_enterprise_prject_id.setter
70
- def x_enterprise_prject_id(self, x_enterprise_prject_id):
71
- """Sets the x_enterprise_prject_id of this PushEventsRequest.
69
+ @enterprise_project_id.setter
70
+ def enterprise_project_id(self, enterprise_project_id):
71
+ """Sets the enterprise_project_id of this PushEventsRequest.
72
72
 
73
73
  告警所属的企业项目id。
74
74
 
75
- :param x_enterprise_prject_id: The x_enterprise_prject_id of this PushEventsRequest.
76
- :type x_enterprise_prject_id: str
75
+ :param enterprise_project_id: The enterprise_project_id of this PushEventsRequest.
76
+ :type enterprise_project_id: str
77
77
  """
78
- self._x_enterprise_prject_id = x_enterprise_prject_id
78
+ self._enterprise_project_id = enterprise_project_id
79
79
 
80
80
  @property
81
81
  def action(self):
@@ -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