huaweicloudsdkaom 3.1.86__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.
- huaweicloudsdkaom/v1/region/aom_region.py +9 -0
- huaweicloudsdkaom/v2/__init__.py +23 -0
- huaweicloudsdkaom/v2/aom_async_client.py +255 -24
- huaweicloudsdkaom/v2/aom_client.py +255 -24
- huaweicloudsdkaom/v2/model/__init__.py +23 -0
- huaweicloudsdkaom/v2/model/add_or_update_alarm_rule_v4_item_result.py +142 -0
- huaweicloudsdkaom/v2/model/add_or_update_alarm_rule_v4_request_body.py +304 -0
- huaweicloudsdkaom/v2/model/add_or_update_metric_or_event_alarm_rule_request.py +168 -0
- huaweicloudsdkaom/v2/model/add_or_update_metric_or_event_alarm_rule_response.py +174 -0
- huaweicloudsdkaom/v2/model/alarm_notification.py +315 -0
- huaweicloudsdkaom/v2/model/alarm_param_for_v4_db.py +470 -0
- huaweicloudsdkaom/v2/model/alarm_tags.py +173 -0
- huaweicloudsdkaom/v2/model/cmdb_info.py +144 -0
- huaweicloudsdkaom/v2/model/count_events_response.py +32 -3
- huaweicloudsdkaom/v2/model/delete_alarm_rule_v4_request_body.py +114 -0
- huaweicloudsdkaom/v2/model/delete_metric_or_event_alarm_rule_request.py +111 -0
- huaweicloudsdkaom/v2/model/delete_metric_or_event_alarm_rule_response.py +174 -0
- huaweicloudsdkaom/v2/model/delete_prom_instance_request.py +31 -3
- huaweicloudsdkaom/v2/model/event_alarm_spec.py +260 -0
- huaweicloudsdkaom/v2/model/event_trigger_condition.py +260 -0
- huaweicloudsdkaom/v2/model/item_result.py +114 -0
- huaweicloudsdkaom/v2/model/list_agents_request.py +6 -6
- huaweicloudsdkaom/v2/model/list_event_model.py +405 -0
- huaweicloudsdkaom/v2/model/list_events_request.py +88 -1
- huaweicloudsdkaom/v2/model/list_events_response.py +31 -6
- huaweicloudsdkaom/v2/model/list_metric_or_event_alarm_rule_request.py +434 -0
- huaweicloudsdkaom/v2/model/list_metric_or_event_alarm_rule_response.py +174 -0
- huaweicloudsdkaom/v2/model/list_prom_instance_request.py +31 -3
- huaweicloudsdkaom/v2/model/metric_alarm_spec.py +310 -0
- huaweicloudsdkaom/v2/model/no_data_condition.py +173 -0
- huaweicloudsdkaom/v2/model/node_info.py +144 -0
- huaweicloudsdkaom/v2/model/page_info.py +170 -0
- huaweicloudsdkaom/v2/model/push_events_request.py +18 -18
- huaweicloudsdkaom/v2/model/recovery_condition.py +115 -0
- huaweicloudsdkaom/v2/model/smn_info.py +4 -4
- huaweicloudsdkaom/v2/model/trigger_condition.py +742 -0
- huaweicloudsdkaom/v2/region/aom_region.py +9 -0
- huaweicloudsdkaom/v3/aom_async_client.py +19 -19
- huaweicloudsdkaom/v3/aom_client.py +19 -19
- huaweicloudsdkaom/v3/model/biz_app_param.py +12 -12
- huaweicloudsdkaom/v3/model/component_param.py +3 -3
- huaweicloudsdkaom/v3/model/env_param.py +6 -6
- huaweicloudsdkaom/v3/model/sub_app_create_param.py +15 -15
- huaweicloudsdkaom/v3/model/sub_app_update_param.py +9 -9
- huaweicloudsdkaom/v3/region/aom_region.py +9 -0
- huaweicloudsdkaom/v4/__init__.py +21 -0
- huaweicloudsdkaom/v4/aom_async_client.py +279 -0
- huaweicloudsdkaom/v4/aom_client.py +276 -0
- huaweicloudsdkaom/v4/model/__init__.py +18 -0
- huaweicloudsdkaom/v4/model/agent_batch_import_param_new.py +280 -0
- huaweicloudsdkaom/v4/model/agent_import_param_new.py +313 -0
- huaweicloudsdkaom/v4/model/agent_info_param.py +231 -0
- huaweicloudsdkaom/v4/model/agent_info_result.py +463 -0
- huaweicloudsdkaom/v4/model/agent_upgrade_param.py +142 -0
- huaweicloudsdkaom/v4/model/batch_import_agent_request.py +139 -0
- huaweicloudsdkaom/v4/model/batch_import_agent_response.py +116 -0
- huaweicloudsdkaom/v4/model/batch_update_agent_request.py +111 -0
- huaweicloudsdkaom/v4/model/batch_update_agent_response.py +116 -0
- huaweicloudsdkaom/v4/model/plugin_install_basic_param.py +173 -0
- huaweicloudsdkaom/v4/model/show_agent_infos_request.py +111 -0
- huaweicloudsdkaom/v4/model/show_agent_infos_response.py +203 -0
- huaweicloudsdkaom/v4/model/single_agent_param.py +142 -0
- huaweicloudsdkaom/v4/region/__init__.py +0 -0
- huaweicloudsdkaom/v4/region/aom_region.py +100 -0
- {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/RECORD +69 -27
- {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/top_level.txt +0 -0
|
@@ -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 PluginInstallBasicParam:
|
|
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
|
+
'install_version': 'str',
|
|
21
|
+
'domain_ak': 'str',
|
|
22
|
+
'domain_sk': 'str'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'install_version': 'install_version',
|
|
27
|
+
'domain_ak': 'domain_ak',
|
|
28
|
+
'domain_sk': 'domain_sk'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, install_version=None, domain_ak=None, domain_sk=None):
|
|
32
|
+
"""PluginInstallBasicParam
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param install_version: 指定安装的ICAgent版本。
|
|
37
|
+
:type install_version: str
|
|
38
|
+
:param domain_ak: IAM账号AK,选填。.
|
|
39
|
+
:type domain_ak: str
|
|
40
|
+
:param domain_sk: IAM账号SK,选填。
|
|
41
|
+
:type domain_sk: str
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._install_version = None
|
|
47
|
+
self._domain_ak = None
|
|
48
|
+
self._domain_sk = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
if install_version is not None:
|
|
52
|
+
self.install_version = install_version
|
|
53
|
+
if domain_ak is not None:
|
|
54
|
+
self.domain_ak = domain_ak
|
|
55
|
+
if domain_sk is not None:
|
|
56
|
+
self.domain_sk = domain_sk
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def install_version(self):
|
|
60
|
+
"""Gets the install_version of this PluginInstallBasicParam.
|
|
61
|
+
|
|
62
|
+
指定安装的ICAgent版本。
|
|
63
|
+
|
|
64
|
+
:return: The install_version of this PluginInstallBasicParam.
|
|
65
|
+
:rtype: str
|
|
66
|
+
"""
|
|
67
|
+
return self._install_version
|
|
68
|
+
|
|
69
|
+
@install_version.setter
|
|
70
|
+
def install_version(self, install_version):
|
|
71
|
+
"""Sets the install_version of this PluginInstallBasicParam.
|
|
72
|
+
|
|
73
|
+
指定安装的ICAgent版本。
|
|
74
|
+
|
|
75
|
+
:param install_version: The install_version of this PluginInstallBasicParam.
|
|
76
|
+
:type install_version: str
|
|
77
|
+
"""
|
|
78
|
+
self._install_version = install_version
|
|
79
|
+
|
|
80
|
+
@property
|
|
81
|
+
def domain_ak(self):
|
|
82
|
+
"""Gets the domain_ak of this PluginInstallBasicParam.
|
|
83
|
+
|
|
84
|
+
IAM账号AK,选填。.
|
|
85
|
+
|
|
86
|
+
:return: The domain_ak of this PluginInstallBasicParam.
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
89
|
+
return self._domain_ak
|
|
90
|
+
|
|
91
|
+
@domain_ak.setter
|
|
92
|
+
def domain_ak(self, domain_ak):
|
|
93
|
+
"""Sets the domain_ak of this PluginInstallBasicParam.
|
|
94
|
+
|
|
95
|
+
IAM账号AK,选填。.
|
|
96
|
+
|
|
97
|
+
:param domain_ak: The domain_ak of this PluginInstallBasicParam.
|
|
98
|
+
:type domain_ak: str
|
|
99
|
+
"""
|
|
100
|
+
self._domain_ak = domain_ak
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def domain_sk(self):
|
|
104
|
+
"""Gets the domain_sk of this PluginInstallBasicParam.
|
|
105
|
+
|
|
106
|
+
IAM账号SK,选填。
|
|
107
|
+
|
|
108
|
+
:return: The domain_sk of this PluginInstallBasicParam.
|
|
109
|
+
:rtype: str
|
|
110
|
+
"""
|
|
111
|
+
return self._domain_sk
|
|
112
|
+
|
|
113
|
+
@domain_sk.setter
|
|
114
|
+
def domain_sk(self, domain_sk):
|
|
115
|
+
"""Sets the domain_sk of this PluginInstallBasicParam.
|
|
116
|
+
|
|
117
|
+
IAM账号SK,选填。
|
|
118
|
+
|
|
119
|
+
:param domain_sk: The domain_sk of this PluginInstallBasicParam.
|
|
120
|
+
:type domain_sk: str
|
|
121
|
+
"""
|
|
122
|
+
self._domain_sk = domain_sk
|
|
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, PluginInstallBasicParam):
|
|
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,111 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ShowAgentInfosRequest:
|
|
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': 'AgentInfoParam'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, body=None):
|
|
28
|
+
"""ShowAgentInfosRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param body: Body of the ShowAgentInfosRequest
|
|
33
|
+
:type body: :class:`huaweicloudsdkaom.v4.AgentInfoParam`
|
|
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 ShowAgentInfosRequest.
|
|
47
|
+
|
|
48
|
+
:return: The body of this ShowAgentInfosRequest.
|
|
49
|
+
:rtype: :class:`huaweicloudsdkaom.v4.AgentInfoParam`
|
|
50
|
+
"""
|
|
51
|
+
return self._body
|
|
52
|
+
|
|
53
|
+
@body.setter
|
|
54
|
+
def body(self, body):
|
|
55
|
+
"""Sets the body of this ShowAgentInfosRequest.
|
|
56
|
+
|
|
57
|
+
:param body: The body of this ShowAgentInfosRequest.
|
|
58
|
+
:type body: :class:`huaweicloudsdkaom.v4.AgentInfoParam`
|
|
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, ShowAgentInfosRequest):
|
|
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,203 @@
|
|
|
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 ShowAgentInfosResponse(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
|
+
'page': 'int',
|
|
22
|
+
'page_size': 'int',
|
|
23
|
+
'total_count': 'int',
|
|
24
|
+
'data_list': 'list[AgentInfoResult]'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'page': 'page',
|
|
29
|
+
'page_size': 'page_size',
|
|
30
|
+
'total_count': 'total_count',
|
|
31
|
+
'data_list': 'data_list'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
def __init__(self, page=None, page_size=None, total_count=None, data_list=None):
|
|
35
|
+
"""ShowAgentInfosResponse
|
|
36
|
+
|
|
37
|
+
The model defined in huaweicloud sdk
|
|
38
|
+
|
|
39
|
+
:param page: 页码,默认1
|
|
40
|
+
:type page: int
|
|
41
|
+
:param page_size: 每页数量,默认20
|
|
42
|
+
:type page_size: int
|
|
43
|
+
:param total_count: 总数量
|
|
44
|
+
:type total_count: int
|
|
45
|
+
:param data_list: 主机列表信息。
|
|
46
|
+
:type data_list: list[:class:`huaweicloudsdkaom.v4.AgentInfoResult`]
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
super(ShowAgentInfosResponse, self).__init__()
|
|
50
|
+
|
|
51
|
+
self._page = None
|
|
52
|
+
self._page_size = None
|
|
53
|
+
self._total_count = None
|
|
54
|
+
self._data_list = None
|
|
55
|
+
self.discriminator = None
|
|
56
|
+
|
|
57
|
+
if page is not None:
|
|
58
|
+
self.page = page
|
|
59
|
+
if page_size is not None:
|
|
60
|
+
self.page_size = page_size
|
|
61
|
+
if total_count is not None:
|
|
62
|
+
self.total_count = total_count
|
|
63
|
+
if data_list is not None:
|
|
64
|
+
self.data_list = data_list
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def page(self):
|
|
68
|
+
"""Gets the page of this ShowAgentInfosResponse.
|
|
69
|
+
|
|
70
|
+
页码,默认1
|
|
71
|
+
|
|
72
|
+
:return: The page of this ShowAgentInfosResponse.
|
|
73
|
+
:rtype: int
|
|
74
|
+
"""
|
|
75
|
+
return self._page
|
|
76
|
+
|
|
77
|
+
@page.setter
|
|
78
|
+
def page(self, page):
|
|
79
|
+
"""Sets the page of this ShowAgentInfosResponse.
|
|
80
|
+
|
|
81
|
+
页码,默认1
|
|
82
|
+
|
|
83
|
+
:param page: The page of this ShowAgentInfosResponse.
|
|
84
|
+
:type page: int
|
|
85
|
+
"""
|
|
86
|
+
self._page = page
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def page_size(self):
|
|
90
|
+
"""Gets the page_size of this ShowAgentInfosResponse.
|
|
91
|
+
|
|
92
|
+
每页数量,默认20
|
|
93
|
+
|
|
94
|
+
:return: The page_size of this ShowAgentInfosResponse.
|
|
95
|
+
:rtype: int
|
|
96
|
+
"""
|
|
97
|
+
return self._page_size
|
|
98
|
+
|
|
99
|
+
@page_size.setter
|
|
100
|
+
def page_size(self, page_size):
|
|
101
|
+
"""Sets the page_size of this ShowAgentInfosResponse.
|
|
102
|
+
|
|
103
|
+
每页数量,默认20
|
|
104
|
+
|
|
105
|
+
:param page_size: The page_size of this ShowAgentInfosResponse.
|
|
106
|
+
:type page_size: int
|
|
107
|
+
"""
|
|
108
|
+
self._page_size = page_size
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def total_count(self):
|
|
112
|
+
"""Gets the total_count of this ShowAgentInfosResponse.
|
|
113
|
+
|
|
114
|
+
总数量
|
|
115
|
+
|
|
116
|
+
:return: The total_count of this ShowAgentInfosResponse.
|
|
117
|
+
:rtype: int
|
|
118
|
+
"""
|
|
119
|
+
return self._total_count
|
|
120
|
+
|
|
121
|
+
@total_count.setter
|
|
122
|
+
def total_count(self, total_count):
|
|
123
|
+
"""Sets the total_count of this ShowAgentInfosResponse.
|
|
124
|
+
|
|
125
|
+
总数量
|
|
126
|
+
|
|
127
|
+
:param total_count: The total_count of this ShowAgentInfosResponse.
|
|
128
|
+
:type total_count: int
|
|
129
|
+
"""
|
|
130
|
+
self._total_count = total_count
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def data_list(self):
|
|
134
|
+
"""Gets the data_list of this ShowAgentInfosResponse.
|
|
135
|
+
|
|
136
|
+
主机列表信息。
|
|
137
|
+
|
|
138
|
+
:return: The data_list of this ShowAgentInfosResponse.
|
|
139
|
+
:rtype: list[:class:`huaweicloudsdkaom.v4.AgentInfoResult`]
|
|
140
|
+
"""
|
|
141
|
+
return self._data_list
|
|
142
|
+
|
|
143
|
+
@data_list.setter
|
|
144
|
+
def data_list(self, data_list):
|
|
145
|
+
"""Sets the data_list of this ShowAgentInfosResponse.
|
|
146
|
+
|
|
147
|
+
主机列表信息。
|
|
148
|
+
|
|
149
|
+
:param data_list: The data_list of this ShowAgentInfosResponse.
|
|
150
|
+
:type data_list: list[:class:`huaweicloudsdkaom.v4.AgentInfoResult`]
|
|
151
|
+
"""
|
|
152
|
+
self._data_list = data_list
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
if attr in self.sensitive_list:
|
|
175
|
+
result[attr] = "****"
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
import simplejson as json
|
|
184
|
+
if six.PY2:
|
|
185
|
+
import sys
|
|
186
|
+
reload(sys)
|
|
187
|
+
sys.setdefaultencoding("utf-8")
|
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
189
|
+
|
|
190
|
+
def __repr__(self):
|
|
191
|
+
"""For `print`"""
|
|
192
|
+
return self.to_str()
|
|
193
|
+
|
|
194
|
+
def __eq__(self, other):
|
|
195
|
+
"""Returns true if both objects are equal"""
|
|
196
|
+
if not isinstance(other, ShowAgentInfosResponse):
|
|
197
|
+
return False
|
|
198
|
+
|
|
199
|
+
return self.__dict__ == other.__dict__
|
|
200
|
+
|
|
201
|
+
def __ne__(self, other):
|
|
202
|
+
"""Returns true if both objects are not equal"""
|
|
203
|
+
return not self == other
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SingleAgentParam:
|
|
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
|
+
'agent_id': 'str',
|
|
21
|
+
'inner_ip': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'agent_id': 'agent_id',
|
|
26
|
+
'inner_ip': 'inner_ip'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, agent_id=None, inner_ip=None):
|
|
30
|
+
"""SingleAgentParam
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param agent_id: agent ID唯一值。
|
|
35
|
+
:type agent_id: str
|
|
36
|
+
:param inner_ip: 主机ip。
|
|
37
|
+
:type inner_ip: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._agent_id = None
|
|
43
|
+
self._inner_ip = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.agent_id = agent_id
|
|
47
|
+
self.inner_ip = inner_ip
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def agent_id(self):
|
|
51
|
+
"""Gets the agent_id of this SingleAgentParam.
|
|
52
|
+
|
|
53
|
+
agent ID唯一值。
|
|
54
|
+
|
|
55
|
+
:return: The agent_id of this SingleAgentParam.
|
|
56
|
+
:rtype: str
|
|
57
|
+
"""
|
|
58
|
+
return self._agent_id
|
|
59
|
+
|
|
60
|
+
@agent_id.setter
|
|
61
|
+
def agent_id(self, agent_id):
|
|
62
|
+
"""Sets the agent_id of this SingleAgentParam.
|
|
63
|
+
|
|
64
|
+
agent ID唯一值。
|
|
65
|
+
|
|
66
|
+
:param agent_id: The agent_id of this SingleAgentParam.
|
|
67
|
+
:type agent_id: str
|
|
68
|
+
"""
|
|
69
|
+
self._agent_id = agent_id
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def inner_ip(self):
|
|
73
|
+
"""Gets the inner_ip of this SingleAgentParam.
|
|
74
|
+
|
|
75
|
+
主机ip。
|
|
76
|
+
|
|
77
|
+
:return: The inner_ip of this SingleAgentParam.
|
|
78
|
+
:rtype: str
|
|
79
|
+
"""
|
|
80
|
+
return self._inner_ip
|
|
81
|
+
|
|
82
|
+
@inner_ip.setter
|
|
83
|
+
def inner_ip(self, inner_ip):
|
|
84
|
+
"""Sets the inner_ip of this SingleAgentParam.
|
|
85
|
+
|
|
86
|
+
主机ip。
|
|
87
|
+
|
|
88
|
+
:param inner_ip: The inner_ip of this SingleAgentParam.
|
|
89
|
+
:type inner_ip: str
|
|
90
|
+
"""
|
|
91
|
+
self._inner_ip = inner_ip
|
|
92
|
+
|
|
93
|
+
def to_dict(self):
|
|
94
|
+
"""Returns the model properties as a dict"""
|
|
95
|
+
result = {}
|
|
96
|
+
|
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
98
|
+
value = getattr(self, attr)
|
|
99
|
+
if isinstance(value, list):
|
|
100
|
+
result[attr] = list(map(
|
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
102
|
+
value
|
|
103
|
+
))
|
|
104
|
+
elif hasattr(value, "to_dict"):
|
|
105
|
+
result[attr] = value.to_dict()
|
|
106
|
+
elif isinstance(value, dict):
|
|
107
|
+
result[attr] = dict(map(
|
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
|
110
|
+
value.items()
|
|
111
|
+
))
|
|
112
|
+
else:
|
|
113
|
+
if attr in self.sensitive_list:
|
|
114
|
+
result[attr] = "****"
|
|
115
|
+
else:
|
|
116
|
+
result[attr] = value
|
|
117
|
+
|
|
118
|
+
return result
|
|
119
|
+
|
|
120
|
+
def to_str(self):
|
|
121
|
+
"""Returns the string representation of the model"""
|
|
122
|
+
import simplejson as json
|
|
123
|
+
if six.PY2:
|
|
124
|
+
import sys
|
|
125
|
+
reload(sys)
|
|
126
|
+
sys.setdefaultencoding("utf-8")
|
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
128
|
+
|
|
129
|
+
def __repr__(self):
|
|
130
|
+
"""For `print`"""
|
|
131
|
+
return self.to_str()
|
|
132
|
+
|
|
133
|
+
def __eq__(self, other):
|
|
134
|
+
"""Returns true if both objects are equal"""
|
|
135
|
+
if not isinstance(other, SingleAgentParam):
|
|
136
|
+
return False
|
|
137
|
+
|
|
138
|
+
return self.__dict__ == other.__dict__
|
|
139
|
+
|
|
140
|
+
def __ne__(self, other):
|
|
141
|
+
"""Returns true if both objects are not equal"""
|
|
142
|
+
return not self == other
|
|
File without changes
|