huaweicloudsdkaom 3.1.171__py3-none-any.whl → 3.1.172__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.
- huaweicloudsdkaom/v2/__init__.py +6 -0
- huaweicloudsdkaom/v2/aom_async_client.py +69 -0
- huaweicloudsdkaom/v2/aom_client.py +69 -0
- huaweicloudsdkaom/v2/model/__init__.py +6 -0
- huaweicloudsdkaom/v2/model/batch_alarm_rules_body.py +226 -0
- huaweicloudsdkaom/v2/model/batch_update_action_rules.py +399 -0
- huaweicloudsdkaom/v2/model/batch_update_alarm_rule_request.py +168 -0
- huaweicloudsdkaom/v2/model/batch_update_alarm_rule_response.py +174 -0
- huaweicloudsdkaom/v2/model/batch_update_item_result.py +173 -0
- huaweicloudsdkaom/v2/model/batch_update_request.py +173 -0
- {huaweicloudsdkaom-3.1.171.dist-info → huaweicloudsdkaom-3.1.172.dist-info}/METADATA +2 -2
- {huaweicloudsdkaom-3.1.171.dist-info → huaweicloudsdkaom-3.1.172.dist-info}/RECORD +14 -8
- {huaweicloudsdkaom-3.1.171.dist-info → huaweicloudsdkaom-3.1.172.dist-info}/WHEEL +0 -0
- {huaweicloudsdkaom-3.1.171.dist-info → huaweicloudsdkaom-3.1.172.dist-info}/licenses/LICENSE +0 -0
|
@@ -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 BatchUpdateAlarmRuleResponse(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[BatchUpdateItemResult]'
|
|
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
|
+
r"""BatchUpdateAlarmRuleResponse
|
|
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.BatchUpdateItemResult`]
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
super(BatchUpdateAlarmRuleResponse, 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
|
+
r"""Gets the error_code of this BatchUpdateAlarmRuleResponse.
|
|
62
|
+
|
|
63
|
+
错误码。
|
|
64
|
+
|
|
65
|
+
:return: The error_code of this BatchUpdateAlarmRuleResponse.
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._error_code
|
|
69
|
+
|
|
70
|
+
@error_code.setter
|
|
71
|
+
def error_code(self, error_code):
|
|
72
|
+
r"""Sets the error_code of this BatchUpdateAlarmRuleResponse.
|
|
73
|
+
|
|
74
|
+
错误码。
|
|
75
|
+
|
|
76
|
+
:param error_code: The error_code of this BatchUpdateAlarmRuleResponse.
|
|
77
|
+
:type error_code: str
|
|
78
|
+
"""
|
|
79
|
+
self._error_code = error_code
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def error_message(self):
|
|
83
|
+
r"""Gets the error_message of this BatchUpdateAlarmRuleResponse.
|
|
84
|
+
|
|
85
|
+
错误信息。
|
|
86
|
+
|
|
87
|
+
:return: The error_message of this BatchUpdateAlarmRuleResponse.
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._error_message
|
|
91
|
+
|
|
92
|
+
@error_message.setter
|
|
93
|
+
def error_message(self, error_message):
|
|
94
|
+
r"""Sets the error_message of this BatchUpdateAlarmRuleResponse.
|
|
95
|
+
|
|
96
|
+
错误信息。
|
|
97
|
+
|
|
98
|
+
:param error_message: The error_message of this BatchUpdateAlarmRuleResponse.
|
|
99
|
+
:type error_message: str
|
|
100
|
+
"""
|
|
101
|
+
self._error_message = error_message
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def resources(self):
|
|
105
|
+
r"""Gets the resources of this BatchUpdateAlarmRuleResponse.
|
|
106
|
+
|
|
107
|
+
资源列表。
|
|
108
|
+
|
|
109
|
+
:return: The resources of this BatchUpdateAlarmRuleResponse.
|
|
110
|
+
:rtype: list[:class:`huaweicloudsdkaom.v2.BatchUpdateItemResult`]
|
|
111
|
+
"""
|
|
112
|
+
return self._resources
|
|
113
|
+
|
|
114
|
+
@resources.setter
|
|
115
|
+
def resources(self, resources):
|
|
116
|
+
r"""Sets the resources of this BatchUpdateAlarmRuleResponse.
|
|
117
|
+
|
|
118
|
+
资源列表。
|
|
119
|
+
|
|
120
|
+
:param resources: The resources of this BatchUpdateAlarmRuleResponse.
|
|
121
|
+
:type resources: list[:class:`huaweicloudsdkaom.v2.BatchUpdateItemResult`]
|
|
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, BatchUpdateAlarmRuleResponse):
|
|
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
|
|
@@ -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 BatchUpdateItemResult:
|
|
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
|
+
'resource_alias': 'str',
|
|
21
|
+
'resource_name': 'str',
|
|
22
|
+
'ret_status': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'resource_alias': 'resource_alias',
|
|
27
|
+
'resource_name': 'resource_name',
|
|
28
|
+
'ret_status': 'ret_status'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, resource_alias=None, resource_name=None, ret_status=None):
|
|
32
|
+
r"""BatchUpdateItemResult
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param resource_alias: 资源名称别名。
|
|
37
|
+
:type resource_alias: str
|
|
38
|
+
:param resource_name: 资源名称。
|
|
39
|
+
:type resource_name: str
|
|
40
|
+
:param ret_status: 资源更新状态。
|
|
41
|
+
:type ret_status: str
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._resource_alias = None
|
|
47
|
+
self._resource_name = None
|
|
48
|
+
self._ret_status = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
if resource_alias is not None:
|
|
52
|
+
self.resource_alias = resource_alias
|
|
53
|
+
if resource_name is not None:
|
|
54
|
+
self.resource_name = resource_name
|
|
55
|
+
if ret_status is not None:
|
|
56
|
+
self.ret_status = ret_status
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def resource_alias(self):
|
|
60
|
+
r"""Gets the resource_alias of this BatchUpdateItemResult.
|
|
61
|
+
|
|
62
|
+
资源名称别名。
|
|
63
|
+
|
|
64
|
+
:return: The resource_alias of this BatchUpdateItemResult.
|
|
65
|
+
:rtype: str
|
|
66
|
+
"""
|
|
67
|
+
return self._resource_alias
|
|
68
|
+
|
|
69
|
+
@resource_alias.setter
|
|
70
|
+
def resource_alias(self, resource_alias):
|
|
71
|
+
r"""Sets the resource_alias of this BatchUpdateItemResult.
|
|
72
|
+
|
|
73
|
+
资源名称别名。
|
|
74
|
+
|
|
75
|
+
:param resource_alias: The resource_alias of this BatchUpdateItemResult.
|
|
76
|
+
:type resource_alias: str
|
|
77
|
+
"""
|
|
78
|
+
self._resource_alias = resource_alias
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def resource_name(self):
|
|
82
|
+
r"""Gets the resource_name of this BatchUpdateItemResult.
|
|
83
|
+
|
|
84
|
+
资源名称。
|
|
85
|
+
|
|
86
|
+
:return: The resource_name of this BatchUpdateItemResult.
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
89
|
+
return self._resource_name
|
|
90
|
+
|
|
91
|
+
@resource_name.setter
|
|
92
|
+
def resource_name(self, resource_name):
|
|
93
|
+
r"""Sets the resource_name of this BatchUpdateItemResult.
|
|
94
|
+
|
|
95
|
+
资源名称。
|
|
96
|
+
|
|
97
|
+
:param resource_name: The resource_name of this BatchUpdateItemResult.
|
|
98
|
+
:type resource_name: str
|
|
99
|
+
"""
|
|
100
|
+
self._resource_name = resource_name
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def ret_status(self):
|
|
104
|
+
r"""Gets the ret_status of this BatchUpdateItemResult.
|
|
105
|
+
|
|
106
|
+
资源更新状态。
|
|
107
|
+
|
|
108
|
+
:return: The ret_status of this BatchUpdateItemResult.
|
|
109
|
+
:rtype: str
|
|
110
|
+
"""
|
|
111
|
+
return self._ret_status
|
|
112
|
+
|
|
113
|
+
@ret_status.setter
|
|
114
|
+
def ret_status(self, ret_status):
|
|
115
|
+
r"""Sets the ret_status of this BatchUpdateItemResult.
|
|
116
|
+
|
|
117
|
+
资源更新状态。
|
|
118
|
+
|
|
119
|
+
:param ret_status: The ret_status of this BatchUpdateItemResult.
|
|
120
|
+
:type ret_status: str
|
|
121
|
+
"""
|
|
122
|
+
self._ret_status = ret_status
|
|
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, BatchUpdateItemResult):
|
|
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
|
|
@@ -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 BatchUpdateRequest:
|
|
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[BatchAlarmRulesBody]',
|
|
21
|
+
'update_action_rules': 'list[BatchUpdateActionRules]',
|
|
22
|
+
'update_type': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'alarm_rules': 'alarm_rules',
|
|
27
|
+
'update_action_rules': 'update_action_rules',
|
|
28
|
+
'update_type': 'update_type'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, alarm_rules=None, update_action_rules=None, update_type=None):
|
|
32
|
+
r"""BatchUpdateRequest
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param alarm_rules: 批量启停的告警规则列表。批量启停告警规则时,该参数必填。
|
|
37
|
+
:type alarm_rules: list[:class:`huaweicloudsdkaom.v2.BatchAlarmRulesBody`]
|
|
38
|
+
:param update_action_rules: 批量修改告警行动规则的告警规则列表。批量修改告警行动规则时,该参数必填。
|
|
39
|
+
:type update_action_rules: list[:class:`huaweicloudsdkaom.v2.BatchUpdateActionRules`]
|
|
40
|
+
:param update_type: 更新类型:BATCH_UPDATE_ACTION_RULE。批量修改告警行动规则时,该参数必填。
|
|
41
|
+
:type update_type: str
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._alarm_rules = None
|
|
47
|
+
self._update_action_rules = None
|
|
48
|
+
self._update_type = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
if alarm_rules is not None:
|
|
52
|
+
self.alarm_rules = alarm_rules
|
|
53
|
+
if update_action_rules is not None:
|
|
54
|
+
self.update_action_rules = update_action_rules
|
|
55
|
+
if update_type is not None:
|
|
56
|
+
self.update_type = update_type
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def alarm_rules(self):
|
|
60
|
+
r"""Gets the alarm_rules of this BatchUpdateRequest.
|
|
61
|
+
|
|
62
|
+
批量启停的告警规则列表。批量启停告警规则时,该参数必填。
|
|
63
|
+
|
|
64
|
+
:return: The alarm_rules of this BatchUpdateRequest.
|
|
65
|
+
:rtype: list[:class:`huaweicloudsdkaom.v2.BatchAlarmRulesBody`]
|
|
66
|
+
"""
|
|
67
|
+
return self._alarm_rules
|
|
68
|
+
|
|
69
|
+
@alarm_rules.setter
|
|
70
|
+
def alarm_rules(self, alarm_rules):
|
|
71
|
+
r"""Sets the alarm_rules of this BatchUpdateRequest.
|
|
72
|
+
|
|
73
|
+
批量启停的告警规则列表。批量启停告警规则时,该参数必填。
|
|
74
|
+
|
|
75
|
+
:param alarm_rules: The alarm_rules of this BatchUpdateRequest.
|
|
76
|
+
:type alarm_rules: list[:class:`huaweicloudsdkaom.v2.BatchAlarmRulesBody`]
|
|
77
|
+
"""
|
|
78
|
+
self._alarm_rules = alarm_rules
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def update_action_rules(self):
|
|
82
|
+
r"""Gets the update_action_rules of this BatchUpdateRequest.
|
|
83
|
+
|
|
84
|
+
批量修改告警行动规则的告警规则列表。批量修改告警行动规则时,该参数必填。
|
|
85
|
+
|
|
86
|
+
:return: The update_action_rules of this BatchUpdateRequest.
|
|
87
|
+
:rtype: list[:class:`huaweicloudsdkaom.v2.BatchUpdateActionRules`]
|
|
88
|
+
"""
|
|
89
|
+
return self._update_action_rules
|
|
90
|
+
|
|
91
|
+
@update_action_rules.setter
|
|
92
|
+
def update_action_rules(self, update_action_rules):
|
|
93
|
+
r"""Sets the update_action_rules of this BatchUpdateRequest.
|
|
94
|
+
|
|
95
|
+
批量修改告警行动规则的告警规则列表。批量修改告警行动规则时,该参数必填。
|
|
96
|
+
|
|
97
|
+
:param update_action_rules: The update_action_rules of this BatchUpdateRequest.
|
|
98
|
+
:type update_action_rules: list[:class:`huaweicloudsdkaom.v2.BatchUpdateActionRules`]
|
|
99
|
+
"""
|
|
100
|
+
self._update_action_rules = update_action_rules
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def update_type(self):
|
|
104
|
+
r"""Gets the update_type of this BatchUpdateRequest.
|
|
105
|
+
|
|
106
|
+
更新类型:BATCH_UPDATE_ACTION_RULE。批量修改告警行动规则时,该参数必填。
|
|
107
|
+
|
|
108
|
+
:return: The update_type of this BatchUpdateRequest.
|
|
109
|
+
:rtype: str
|
|
110
|
+
"""
|
|
111
|
+
return self._update_type
|
|
112
|
+
|
|
113
|
+
@update_type.setter
|
|
114
|
+
def update_type(self, update_type):
|
|
115
|
+
r"""Sets the update_type of this BatchUpdateRequest.
|
|
116
|
+
|
|
117
|
+
更新类型:BATCH_UPDATE_ACTION_RULE。批量修改告警行动规则时,该参数必填。
|
|
118
|
+
|
|
119
|
+
:param update_type: The update_type of this BatchUpdateRequest.
|
|
120
|
+
:type update_type: str
|
|
121
|
+
"""
|
|
122
|
+
self._update_type = update_type
|
|
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, BatchUpdateRequest):
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: huaweicloudsdkaom
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.172
|
|
4
4
|
Summary: AOM
|
|
5
5
|
Project-URL: Homepage, https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
|
6
6
|
Author-email: HuaweiCloud SDK <hwcloudsdk@huawei.com>
|
|
@@ -19,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
20
|
Classifier: Topic :: Software Development
|
|
21
21
|
Requires-Python: >=3.6
|
|
22
|
-
Requires-Dist: huaweicloudsdkcore>=3.1.
|
|
22
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.172
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
|
|
25
25
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
|
@@ -52,10 +52,10 @@ huaweicloudsdkaom/v1/model/workflow_query_param.py,sha256=jKZqPYqzPgG6QXpCUf5pa3
|
|
|
52
52
|
huaweicloudsdkaom/v1/model/workflow_request_body.py,sha256=L4kl5muHs-_ukrXN37us5Cc3XFDDLMRJhclZf9jvrHk,13322
|
|
53
53
|
huaweicloudsdkaom/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
54
54
|
huaweicloudsdkaom/v1/region/aom_region.py,sha256=FuDOwuroS7_DKXx3RvUXERsiEvDn-h6feB0P35SARBM,5331
|
|
55
|
-
huaweicloudsdkaom/v2/__init__.py,sha256=
|
|
56
|
-
huaweicloudsdkaom/v2/aom_async_client.py,sha256=
|
|
57
|
-
huaweicloudsdkaom/v2/aom_client.py,sha256=
|
|
58
|
-
huaweicloudsdkaom/v2/model/__init__.py,sha256=
|
|
55
|
+
huaweicloudsdkaom/v2/__init__.py,sha256=SeFT9RWrgdWylDI-UEE7n-UTJ90L3hHtDgR7Agr897I,16142
|
|
56
|
+
huaweicloudsdkaom/v2/aom_async_client.py,sha256=iKQ2WpSOvfkCF8Mm7z5I-gBPnKC2z4W_sTNjKHw9LSA,116937
|
|
57
|
+
huaweicloudsdkaom/v2/aom_client.py,sha256=Ez0_he5cMhd2NRVFtix3CHj8ACeE2Rp5UvbNyxrsRyA,116934
|
|
58
|
+
huaweicloudsdkaom/v2/model/__init__.py,sha256=OzvlVdjAQTTENGJ_OFPI7i8Tpp_Ab8kkgx47bUlyEfE,16056
|
|
59
59
|
huaweicloudsdkaom/v2/model/access_code_model.py,sha256=xCGrQhNOkk-6iC2tdB3hffKvO9OpgsyY50ujeJgx9ZQ,5489
|
|
60
60
|
huaweicloudsdkaom/v2/model/action_rule.py,sha256=cCsf_INSZD7gHgOkjkQCSPvaQybQaiiLiKZvxcF0zDA,10834
|
|
61
61
|
huaweicloudsdkaom/v2/model/add_action_rule_request.py,sha256=ZcbPZ3SsH_OsTBUZewA8IANnsHyJ_bSlDvO6kj7DMmQ,3086
|
|
@@ -83,6 +83,12 @@ huaweicloudsdkaom/v2/model/app_rules.py,sha256=wlEldAuLFtwhViRhhjvC7GtSj9rP1Gu-A
|
|
|
83
83
|
huaweicloudsdkaom/v2/model/app_rules_body.py,sha256=ivHErI6zY2enRx7IuINBdz-xBUujkGSh2xqtOoXqlXc,3193
|
|
84
84
|
huaweicloudsdkaom/v2/model/app_rules_spec.py,sha256=G0XxeqA3fQ5N57l7fwUCfCUXtBRfdYnLN2Cnv8QJHgM,17486
|
|
85
85
|
huaweicloudsdkaom/v2/model/application_name_rule.py,sha256=Z_6JGoUgqUmT_YIiqldnA4KeI32lihWuPK0DEphX6VQ,4710
|
|
86
|
+
huaweicloudsdkaom/v2/model/batch_alarm_rules_body.py,sha256=-IhmGlWGQ0Ya770ZHGl0g7VnT3ii7T1RkslRpJqO-Ig,7556
|
|
87
|
+
huaweicloudsdkaom/v2/model/batch_update_action_rules.py,sha256=tpcwjFp9E9P2A5IFrACetPjBDzwoCljx2q4ic1P_yR8,16581
|
|
88
|
+
huaweicloudsdkaom/v2/model/batch_update_alarm_rule_request.py,sha256=lHdLvWdDZOVNy1s8jIK4EF0cn73rna4Yyj7B-TJR50w,6355
|
|
89
|
+
huaweicloudsdkaom/v2/model/batch_update_alarm_rule_response.py,sha256=3ozH5x3Rn9yn9ZcN6ffRvxPh-jXVsIma8-t5xCajMO0,5243
|
|
90
|
+
huaweicloudsdkaom/v2/model/batch_update_item_result.py,sha256=mGBKjxZQzQJcY_5uefIBFU7uWp8ik3bBIwFq1jK9X9U,4991
|
|
91
|
+
huaweicloudsdkaom/v2/model/batch_update_request.py,sha256=wAW-y0WAkxSm9mN_QrloeAkCoP1uthMkmSpjhvgjD_s,6099
|
|
86
92
|
huaweicloudsdkaom/v2/model/cmdb_info.py,sha256=Pp0Y2kQek7dMNjhur8hvLvqIG5BfOoM_-mdW0aFu6VM,3829
|
|
87
93
|
huaweicloudsdkaom/v2/model/count_events_request.py,sha256=2pTxvWqeQX0SNUKKyjxLZAdumJQEgIoxPLadi44OZ1U,4248
|
|
88
94
|
huaweicloudsdkaom/v2/model/count_events_response.py,sha256=-b1hW0jowewMLajO521Kxqnefmn03oa3a5jgUvET77Y,6036
|
|
@@ -310,7 +316,7 @@ huaweicloudsdkaom/v4/model/show_agent_infos_response.py,sha256=Exxt7gM29JNucfg3U
|
|
|
310
316
|
huaweicloudsdkaom/v4/model/single_agent_param.py,sha256=B9jIRnXql23LujJlxFJm9NysHZoT28uoMgfpadckXhw,3752
|
|
311
317
|
huaweicloudsdkaom/v4/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
312
318
|
huaweicloudsdkaom/v4/region/aom_region.py,sha256=FuDOwuroS7_DKXx3RvUXERsiEvDn-h6feB0P35SARBM,5331
|
|
313
|
-
huaweicloudsdkaom-3.1.
|
|
314
|
-
huaweicloudsdkaom-3.1.
|
|
315
|
-
huaweicloudsdkaom-3.1.
|
|
316
|
-
huaweicloudsdkaom-3.1.
|
|
319
|
+
huaweicloudsdkaom-3.1.172.dist-info/METADATA,sha256=N_LYyfYD8LCFFA7h9dQl7G6dvUfQx_bdXrrJADMzQFA,1072
|
|
320
|
+
huaweicloudsdkaom-3.1.172.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
321
|
+
huaweicloudsdkaom-3.1.172.dist-info/licenses/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
|
322
|
+
huaweicloudsdkaom-3.1.172.dist-info/RECORD,,
|
|
File without changes
|
{huaweicloudsdkaom-3.1.171.dist-info → huaweicloudsdkaom-3.1.172.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|