huaweicloudsdkaom 3.1.101__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.101.dist-info → huaweicloudsdkaom-3.1.103.dist-info}/METADATA +2 -2
  35. {huaweicloudsdkaom-3.1.101.dist-info → huaweicloudsdkaom-3.1.103.dist-info}/RECORD +38 -17
  36. {huaweicloudsdkaom-3.1.101.dist-info → huaweicloudsdkaom-3.1.103.dist-info}/LICENSE +0 -0
  37. {huaweicloudsdkaom-3.1.101.dist-info → huaweicloudsdkaom-3.1.103.dist-info}/WHEEL +0 -0
  38. {huaweicloudsdkaom-3.1.101.dist-info → huaweicloudsdkaom-3.1.103.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CmdbInfo:
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
+ 'app_id': 'str',
21
+ 'node_ids': 'list[NodeInfo]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'app_id': 'app_id',
26
+ 'node_ids': 'node_ids'
27
+ }
28
+
29
+ def __init__(self, app_id=None, node_ids=None):
30
+ """CmdbInfo
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param app_id: 应用id。
35
+ :type app_id: str
36
+ :param node_ids: 节点信息列表。
37
+ :type node_ids: list[:class:`huaweicloudsdkaom.v2.NodeInfo`]
38
+ """
39
+
40
+
41
+
42
+ self._app_id = None
43
+ self._node_ids = None
44
+ self.discriminator = None
45
+
46
+ if app_id is not None:
47
+ self.app_id = app_id
48
+ if node_ids is not None:
49
+ self.node_ids = node_ids
50
+
51
+ @property
52
+ def app_id(self):
53
+ """Gets the app_id of this CmdbInfo.
54
+
55
+ 应用id。
56
+
57
+ :return: The app_id of this CmdbInfo.
58
+ :rtype: str
59
+ """
60
+ return self._app_id
61
+
62
+ @app_id.setter
63
+ def app_id(self, app_id):
64
+ """Sets the app_id of this CmdbInfo.
65
+
66
+ 应用id。
67
+
68
+ :param app_id: The app_id of this CmdbInfo.
69
+ :type app_id: str
70
+ """
71
+ self._app_id = app_id
72
+
73
+ @property
74
+ def node_ids(self):
75
+ """Gets the node_ids of this CmdbInfo.
76
+
77
+ 节点信息列表。
78
+
79
+ :return: The node_ids of this CmdbInfo.
80
+ :rtype: list[:class:`huaweicloudsdkaom.v2.NodeInfo`]
81
+ """
82
+ return self._node_ids
83
+
84
+ @node_ids.setter
85
+ def node_ids(self, node_ids):
86
+ """Sets the node_ids of this CmdbInfo.
87
+
88
+ 节点信息列表。
89
+
90
+ :param node_ids: The node_ids of this CmdbInfo.
91
+ :type node_ids: list[:class:`huaweicloudsdkaom.v2.NodeInfo`]
92
+ """
93
+ self._node_ids = node_ids
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, CmdbInfo):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ 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 DeleteAlarmRuleV4RequestBody:
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_rules': 'list[str]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'alarm_rules': 'alarm_rules'
25
+ }
26
+
27
+ def __init__(self, alarm_rules=None):
28
+ """DeleteAlarmRuleV4RequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param alarm_rules: 告警规则名称列表。
33
+ :type alarm_rules: list[str]
34
+ """
35
+
36
+
37
+
38
+ self._alarm_rules = None
39
+ self.discriminator = None
40
+
41
+ self.alarm_rules = alarm_rules
42
+
43
+ @property
44
+ def alarm_rules(self):
45
+ """Gets the alarm_rules of this DeleteAlarmRuleV4RequestBody.
46
+
47
+ 告警规则名称列表。
48
+
49
+ :return: The alarm_rules of this DeleteAlarmRuleV4RequestBody.
50
+ :rtype: list[str]
51
+ """
52
+ return self._alarm_rules
53
+
54
+ @alarm_rules.setter
55
+ def alarm_rules(self, alarm_rules):
56
+ """Sets the alarm_rules of this DeleteAlarmRuleV4RequestBody.
57
+
58
+ 告警规则名称列表。
59
+
60
+ :param alarm_rules: The alarm_rules of this DeleteAlarmRuleV4RequestBody.
61
+ :type alarm_rules: list[str]
62
+ """
63
+ self._alarm_rules = alarm_rules
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, DeleteAlarmRuleV4RequestBody):
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,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteMetricOrEventAlarmRuleRequest:
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
+ 'body': 'DeleteAlarmRuleV4RequestBody'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ """DeleteMetricOrEventAlarmRuleRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the DeleteMetricOrEventAlarmRuleRequest
33
+ :type body: :class:`huaweicloudsdkaom.v2.DeleteAlarmRuleV4RequestBody`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ """Gets the body of this DeleteMetricOrEventAlarmRuleRequest.
47
+
48
+ :return: The body of this DeleteMetricOrEventAlarmRuleRequest.
49
+ :rtype: :class:`huaweicloudsdkaom.v2.DeleteAlarmRuleV4RequestBody`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ """Sets the body of this DeleteMetricOrEventAlarmRuleRequest.
56
+
57
+ :param body: The body of this DeleteMetricOrEventAlarmRuleRequest.
58
+ :type body: :class:`huaweicloudsdkaom.v2.DeleteAlarmRuleV4RequestBody`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, DeleteMetricOrEventAlarmRuleRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other
@@ -0,0 +1,174 @@
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 DeleteMetricOrEventAlarmRuleResponse(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
+ 'error_code': 'str',
22
+ 'error_message': 'str',
23
+ 'resources': 'list[ItemResult]'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'error_code': 'error_code',
28
+ 'error_message': 'error_message',
29
+ 'resources': 'resources'
30
+ }
31
+
32
+ def __init__(self, error_code=None, error_message=None, resources=None):
33
+ """DeleteMetricOrEventAlarmRuleResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param error_code: 错误码。
38
+ :type error_code: str
39
+ :param error_message: 错误信息。
40
+ :type error_message: str
41
+ :param resources: 资源列表。
42
+ :type resources: list[:class:`huaweicloudsdkaom.v2.ItemResult`]
43
+ """
44
+
45
+ super(DeleteMetricOrEventAlarmRuleResponse, self).__init__()
46
+
47
+ self._error_code = None
48
+ self._error_message = None
49
+ self._resources = None
50
+ self.discriminator = None
51
+
52
+ if error_code is not None:
53
+ self.error_code = error_code
54
+ if error_message is not None:
55
+ self.error_message = error_message
56
+ if resources is not None:
57
+ self.resources = resources
58
+
59
+ @property
60
+ def error_code(self):
61
+ """Gets the error_code of this DeleteMetricOrEventAlarmRuleResponse.
62
+
63
+ 错误码。
64
+
65
+ :return: The error_code of this DeleteMetricOrEventAlarmRuleResponse.
66
+ :rtype: str
67
+ """
68
+ return self._error_code
69
+
70
+ @error_code.setter
71
+ def error_code(self, error_code):
72
+ """Sets the error_code of this DeleteMetricOrEventAlarmRuleResponse.
73
+
74
+ 错误码。
75
+
76
+ :param error_code: The error_code of this DeleteMetricOrEventAlarmRuleResponse.
77
+ :type error_code: str
78
+ """
79
+ self._error_code = error_code
80
+
81
+ @property
82
+ def error_message(self):
83
+ """Gets the error_message of this DeleteMetricOrEventAlarmRuleResponse.
84
+
85
+ 错误信息。
86
+
87
+ :return: The error_message of this DeleteMetricOrEventAlarmRuleResponse.
88
+ :rtype: str
89
+ """
90
+ return self._error_message
91
+
92
+ @error_message.setter
93
+ def error_message(self, error_message):
94
+ """Sets the error_message of this DeleteMetricOrEventAlarmRuleResponse.
95
+
96
+ 错误信息。
97
+
98
+ :param error_message: The error_message of this DeleteMetricOrEventAlarmRuleResponse.
99
+ :type error_message: str
100
+ """
101
+ self._error_message = error_message
102
+
103
+ @property
104
+ def resources(self):
105
+ """Gets the resources of this DeleteMetricOrEventAlarmRuleResponse.
106
+
107
+ 资源列表。
108
+
109
+ :return: The resources of this DeleteMetricOrEventAlarmRuleResponse.
110
+ :rtype: list[:class:`huaweicloudsdkaom.v2.ItemResult`]
111
+ """
112
+ return self._resources
113
+
114
+ @resources.setter
115
+ def resources(self, resources):
116
+ """Sets the resources of this DeleteMetricOrEventAlarmRuleResponse.
117
+
118
+ 资源列表。
119
+
120
+ :param resources: The resources of this DeleteMetricOrEventAlarmRuleResponse.
121
+ :type resources: list[:class:`huaweicloudsdkaom.v2.ItemResult`]
122
+ """
123
+ self._resources = resources
124
+
125
+ def to_dict(self):
126
+ """Returns the model properties as a dict"""
127
+ result = {}
128
+
129
+ for attr, _ in six.iteritems(self.openapi_types):
130
+ value = getattr(self, attr)
131
+ if isinstance(value, list):
132
+ result[attr] = list(map(
133
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
+ value
135
+ ))
136
+ elif hasattr(value, "to_dict"):
137
+ result[attr] = value.to_dict()
138
+ elif isinstance(value, dict):
139
+ result[attr] = dict(map(
140
+ lambda item: (item[0], item[1].to_dict())
141
+ if hasattr(item[1], "to_dict") else item,
142
+ value.items()
143
+ ))
144
+ else:
145
+ if attr in self.sensitive_list:
146
+ result[attr] = "****"
147
+ else:
148
+ result[attr] = value
149
+
150
+ return result
151
+
152
+ def to_str(self):
153
+ """Returns the string representation of the model"""
154
+ import simplejson as json
155
+ if six.PY2:
156
+ import sys
157
+ reload(sys)
158
+ sys.setdefaultencoding("utf-8")
159
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
+
161
+ def __repr__(self):
162
+ """For `print`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, DeleteMetricOrEventAlarmRuleResponse):
168
+ return False
169
+
170
+ return self.__dict__ == other.__dict__
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ return not self == other