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,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
@@ -20,16 +20,18 @@ class CountEventsResponse(SdkResponse):
20
20
  openapi_types = {
21
21
  'step': 'int',
22
22
  'timestamps': 'list[int]',
23
- 'series': 'list[EventSeries]'
23
+ 'series': 'list[EventSeries]',
24
+ 'summary': 'dict(str, int)'
24
25
  }
25
26
 
26
27
  attribute_map = {
27
28
  'step': 'step',
28
29
  'timestamps': 'timestamps',
29
- 'series': 'series'
30
+ 'series': 'series',
31
+ 'summary': 'summary'
30
32
  }
31
33
 
32
- def __init__(self, step=None, timestamps=None, series=None):
34
+ def __init__(self, step=None, timestamps=None, series=None, summary=None):
33
35
  """CountEventsResponse
34
36
 
35
37
  The model defined in huaweicloud sdk
@@ -40,6 +42,8 @@ class CountEventsResponse(SdkResponse):
40
42
  :type timestamps: list[int]
41
43
  :param series: 事件或者告警不同级别相同时间序列对应的统计结果。
42
44
  :type series: list[:class:`huaweicloudsdkaom.v2.EventSeries`]
45
+ :param summary: 各类告警信息的数量汇总
46
+ :type summary: dict(str, int)
43
47
  """
44
48
 
45
49
  super(CountEventsResponse, self).__init__()
@@ -47,6 +51,7 @@ class CountEventsResponse(SdkResponse):
47
51
  self._step = None
48
52
  self._timestamps = None
49
53
  self._series = None
54
+ self._summary = None
50
55
  self.discriminator = None
51
56
 
52
57
  if step is not None:
@@ -55,6 +60,8 @@ class CountEventsResponse(SdkResponse):
55
60
  self.timestamps = timestamps
56
61
  if series is not None:
57
62
  self.series = series
63
+ if summary is not None:
64
+ self.summary = summary
58
65
 
59
66
  @property
60
67
  def step(self):
@@ -122,6 +129,28 @@ class CountEventsResponse(SdkResponse):
122
129
  """
123
130
  self._series = series
124
131
 
132
+ @property
133
+ def summary(self):
134
+ """Gets the summary of this CountEventsResponse.
135
+
136
+ 各类告警信息的数量汇总
137
+
138
+ :return: The summary of this CountEventsResponse.
139
+ :rtype: dict(str, int)
140
+ """
141
+ return self._summary
142
+
143
+ @summary.setter
144
+ def summary(self, summary):
145
+ """Sets the summary of this CountEventsResponse.
146
+
147
+ 各类告警信息的数量汇总
148
+
149
+ :param summary: The summary of this CountEventsResponse.
150
+ :type summary: dict(str, int)
151
+ """
152
+ self._summary = summary
153
+
125
154
  def to_dict(self):
126
155
  """Returns the model properties as a dict"""
127
156
  result = {}
@@ -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
@@ -17,28 +17,34 @@ class DeletePromInstanceRequest:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'prom_id': 'str'
20
+ 'prom_id': 'str',
21
+ 'enterprise_project_id': 'str'
21
22
  }
22
23
 
23
24
  attribute_map = {
24
- 'prom_id': 'prom_id'
25
+ 'prom_id': 'prom_id',
26
+ 'enterprise_project_id': 'Enterprise-Project-Id'
25
27
  }
26
28
 
27
- def __init__(self, prom_id=None):
29
+ def __init__(self, prom_id=None, enterprise_project_id=None):
28
30
  """DeletePromInstanceRequest
29
31
 
30
32
  The model defined in huaweicloud sdk
31
33
 
32
34
  :param prom_id: Prometheus实例id。
33
35
  :type prom_id: str
36
+ :param enterprise_project_id: 企业项目id。 - 删除单个企业项目下实例,填写企业项目id。
37
+ :type enterprise_project_id: str
34
38
  """
35
39
 
36
40
 
37
41
 
38
42
  self._prom_id = None
43
+ self._enterprise_project_id = None
39
44
  self.discriminator = None
40
45
 
41
46
  self.prom_id = prom_id
47
+ self.enterprise_project_id = enterprise_project_id
42
48
 
43
49
  @property
44
50
  def prom_id(self):
@@ -62,6 +68,28 @@ class DeletePromInstanceRequest:
62
68
  """
63
69
  self._prom_id = prom_id
64
70
 
71
+ @property
72
+ def enterprise_project_id(self):
73
+ """Gets the enterprise_project_id of this DeletePromInstanceRequest.
74
+
75
+ 企业项目id。 - 删除单个企业项目下实例,填写企业项目id。
76
+
77
+ :return: The enterprise_project_id of this DeletePromInstanceRequest.
78
+ :rtype: str
79
+ """
80
+ return self._enterprise_project_id
81
+
82
+ @enterprise_project_id.setter
83
+ def enterprise_project_id(self, enterprise_project_id):
84
+ """Sets the enterprise_project_id of this DeletePromInstanceRequest.
85
+
86
+ 企业项目id。 - 删除单个企业项目下实例,填写企业项目id。
87
+
88
+ :param enterprise_project_id: The enterprise_project_id of this DeletePromInstanceRequest.
89
+ :type enterprise_project_id: str
90
+ """
91
+ self._enterprise_project_id = enterprise_project_id
92
+
65
93
  def to_dict(self):
66
94
  """Returns the model properties as a dict"""
67
95
  result = {}