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,231 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AgentInfoParam:
|
|
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
|
+
'page': 'int',
|
|
21
|
+
'page_size': 'int',
|
|
22
|
+
'ecs_id_list': 'list[str]',
|
|
23
|
+
'agent_id_list': 'list[str]',
|
|
24
|
+
'coc_cmdb_id_list': 'list[str]'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'page': 'page',
|
|
29
|
+
'page_size': 'page_size',
|
|
30
|
+
'ecs_id_list': 'ecs_id_list',
|
|
31
|
+
'agent_id_list': 'agent_id_list',
|
|
32
|
+
'coc_cmdb_id_list': 'coc_cmdb_id_list'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, page=None, page_size=None, ecs_id_list=None, agent_id_list=None, coc_cmdb_id_list=None):
|
|
36
|
+
"""AgentInfoParam
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param page: 分页查询的起始页数(第几页)。默认值:1。
|
|
41
|
+
:type page: int
|
|
42
|
+
:param page_size: 每页查询数量,默认20。
|
|
43
|
+
:type page_size: int
|
|
44
|
+
:param ecs_id_list: ecs ID列表信息。
|
|
45
|
+
:type ecs_id_list: list[str]
|
|
46
|
+
:param agent_id_list: agent ID列表信息。
|
|
47
|
+
:type agent_id_list: list[str]
|
|
48
|
+
:param coc_cmdb_id_list: cmdb ID列表信息。
|
|
49
|
+
:type coc_cmdb_id_list: list[str]
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
self._page = None
|
|
55
|
+
self._page_size = None
|
|
56
|
+
self._ecs_id_list = None
|
|
57
|
+
self._agent_id_list = None
|
|
58
|
+
self._coc_cmdb_id_list = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if page is not None:
|
|
62
|
+
self.page = page
|
|
63
|
+
if page_size is not None:
|
|
64
|
+
self.page_size = page_size
|
|
65
|
+
if ecs_id_list is not None:
|
|
66
|
+
self.ecs_id_list = ecs_id_list
|
|
67
|
+
if agent_id_list is not None:
|
|
68
|
+
self.agent_id_list = agent_id_list
|
|
69
|
+
if coc_cmdb_id_list is not None:
|
|
70
|
+
self.coc_cmdb_id_list = coc_cmdb_id_list
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def page(self):
|
|
74
|
+
"""Gets the page of this AgentInfoParam.
|
|
75
|
+
|
|
76
|
+
分页查询的起始页数(第几页)。默认值:1。
|
|
77
|
+
|
|
78
|
+
:return: The page of this AgentInfoParam.
|
|
79
|
+
:rtype: int
|
|
80
|
+
"""
|
|
81
|
+
return self._page
|
|
82
|
+
|
|
83
|
+
@page.setter
|
|
84
|
+
def page(self, page):
|
|
85
|
+
"""Sets the page of this AgentInfoParam.
|
|
86
|
+
|
|
87
|
+
分页查询的起始页数(第几页)。默认值:1。
|
|
88
|
+
|
|
89
|
+
:param page: The page of this AgentInfoParam.
|
|
90
|
+
:type page: int
|
|
91
|
+
"""
|
|
92
|
+
self._page = page
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def page_size(self):
|
|
96
|
+
"""Gets the page_size of this AgentInfoParam.
|
|
97
|
+
|
|
98
|
+
每页查询数量,默认20。
|
|
99
|
+
|
|
100
|
+
:return: The page_size of this AgentInfoParam.
|
|
101
|
+
:rtype: int
|
|
102
|
+
"""
|
|
103
|
+
return self._page_size
|
|
104
|
+
|
|
105
|
+
@page_size.setter
|
|
106
|
+
def page_size(self, page_size):
|
|
107
|
+
"""Sets the page_size of this AgentInfoParam.
|
|
108
|
+
|
|
109
|
+
每页查询数量,默认20。
|
|
110
|
+
|
|
111
|
+
:param page_size: The page_size of this AgentInfoParam.
|
|
112
|
+
:type page_size: int
|
|
113
|
+
"""
|
|
114
|
+
self._page_size = page_size
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def ecs_id_list(self):
|
|
118
|
+
"""Gets the ecs_id_list of this AgentInfoParam.
|
|
119
|
+
|
|
120
|
+
ecs ID列表信息。
|
|
121
|
+
|
|
122
|
+
:return: The ecs_id_list of this AgentInfoParam.
|
|
123
|
+
:rtype: list[str]
|
|
124
|
+
"""
|
|
125
|
+
return self._ecs_id_list
|
|
126
|
+
|
|
127
|
+
@ecs_id_list.setter
|
|
128
|
+
def ecs_id_list(self, ecs_id_list):
|
|
129
|
+
"""Sets the ecs_id_list of this AgentInfoParam.
|
|
130
|
+
|
|
131
|
+
ecs ID列表信息。
|
|
132
|
+
|
|
133
|
+
:param ecs_id_list: The ecs_id_list of this AgentInfoParam.
|
|
134
|
+
:type ecs_id_list: list[str]
|
|
135
|
+
"""
|
|
136
|
+
self._ecs_id_list = ecs_id_list
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def agent_id_list(self):
|
|
140
|
+
"""Gets the agent_id_list of this AgentInfoParam.
|
|
141
|
+
|
|
142
|
+
agent ID列表信息。
|
|
143
|
+
|
|
144
|
+
:return: The agent_id_list of this AgentInfoParam.
|
|
145
|
+
:rtype: list[str]
|
|
146
|
+
"""
|
|
147
|
+
return self._agent_id_list
|
|
148
|
+
|
|
149
|
+
@agent_id_list.setter
|
|
150
|
+
def agent_id_list(self, agent_id_list):
|
|
151
|
+
"""Sets the agent_id_list of this AgentInfoParam.
|
|
152
|
+
|
|
153
|
+
agent ID列表信息。
|
|
154
|
+
|
|
155
|
+
:param agent_id_list: The agent_id_list of this AgentInfoParam.
|
|
156
|
+
:type agent_id_list: list[str]
|
|
157
|
+
"""
|
|
158
|
+
self._agent_id_list = agent_id_list
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def coc_cmdb_id_list(self):
|
|
162
|
+
"""Gets the coc_cmdb_id_list of this AgentInfoParam.
|
|
163
|
+
|
|
164
|
+
cmdb ID列表信息。
|
|
165
|
+
|
|
166
|
+
:return: The coc_cmdb_id_list of this AgentInfoParam.
|
|
167
|
+
:rtype: list[str]
|
|
168
|
+
"""
|
|
169
|
+
return self._coc_cmdb_id_list
|
|
170
|
+
|
|
171
|
+
@coc_cmdb_id_list.setter
|
|
172
|
+
def coc_cmdb_id_list(self, coc_cmdb_id_list):
|
|
173
|
+
"""Sets the coc_cmdb_id_list of this AgentInfoParam.
|
|
174
|
+
|
|
175
|
+
cmdb ID列表信息。
|
|
176
|
+
|
|
177
|
+
:param coc_cmdb_id_list: The coc_cmdb_id_list of this AgentInfoParam.
|
|
178
|
+
:type coc_cmdb_id_list: list[str]
|
|
179
|
+
"""
|
|
180
|
+
self._coc_cmdb_id_list = coc_cmdb_id_list
|
|
181
|
+
|
|
182
|
+
def to_dict(self):
|
|
183
|
+
"""Returns the model properties as a dict"""
|
|
184
|
+
result = {}
|
|
185
|
+
|
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
187
|
+
value = getattr(self, attr)
|
|
188
|
+
if isinstance(value, list):
|
|
189
|
+
result[attr] = list(map(
|
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
191
|
+
value
|
|
192
|
+
))
|
|
193
|
+
elif hasattr(value, "to_dict"):
|
|
194
|
+
result[attr] = value.to_dict()
|
|
195
|
+
elif isinstance(value, dict):
|
|
196
|
+
result[attr] = dict(map(
|
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
|
199
|
+
value.items()
|
|
200
|
+
))
|
|
201
|
+
else:
|
|
202
|
+
if attr in self.sensitive_list:
|
|
203
|
+
result[attr] = "****"
|
|
204
|
+
else:
|
|
205
|
+
result[attr] = value
|
|
206
|
+
|
|
207
|
+
return result
|
|
208
|
+
|
|
209
|
+
def to_str(self):
|
|
210
|
+
"""Returns the string representation of the model"""
|
|
211
|
+
import simplejson as json
|
|
212
|
+
if six.PY2:
|
|
213
|
+
import sys
|
|
214
|
+
reload(sys)
|
|
215
|
+
sys.setdefaultencoding("utf-8")
|
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
217
|
+
|
|
218
|
+
def __repr__(self):
|
|
219
|
+
"""For `print`"""
|
|
220
|
+
return self.to_str()
|
|
221
|
+
|
|
222
|
+
def __eq__(self, other):
|
|
223
|
+
"""Returns true if both objects are equal"""
|
|
224
|
+
if not isinstance(other, AgentInfoParam):
|
|
225
|
+
return False
|
|
226
|
+
|
|
227
|
+
return self.__dict__ == other.__dict__
|
|
228
|
+
|
|
229
|
+
def __ne__(self, other):
|
|
230
|
+
"""Returns true if both objects are not equal"""
|
|
231
|
+
return not self == other
|
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AgentInfoResult:
|
|
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
|
+
'inner_ip': 'str',
|
|
21
|
+
'import_ip': 'str',
|
|
22
|
+
'agent_id': 'str',
|
|
23
|
+
'host_name': 'str',
|
|
24
|
+
'os_type': 'str',
|
|
25
|
+
'agent_state': 'str',
|
|
26
|
+
'project_id': 'str',
|
|
27
|
+
'version': 'str',
|
|
28
|
+
'is_hw_cloud_host': 'str',
|
|
29
|
+
'vpc_id': 'str',
|
|
30
|
+
'cmdb_id': 'str',
|
|
31
|
+
'ecs_id': 'str',
|
|
32
|
+
'domain_id': 'str'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
attribute_map = {
|
|
36
|
+
'inner_ip': 'inner_ip',
|
|
37
|
+
'import_ip': 'import_ip',
|
|
38
|
+
'agent_id': 'agent_id',
|
|
39
|
+
'host_name': 'host_name',
|
|
40
|
+
'os_type': 'os_type',
|
|
41
|
+
'agent_state': 'agent_state',
|
|
42
|
+
'project_id': 'project_id',
|
|
43
|
+
'version': 'version',
|
|
44
|
+
'is_hw_cloud_host': 'is_hw_cloud_host',
|
|
45
|
+
'vpc_id': 'vpc_id',
|
|
46
|
+
'cmdb_id': 'cmdb_id',
|
|
47
|
+
'ecs_id': 'ecs_id',
|
|
48
|
+
'domain_id': 'domain_id'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, inner_ip=None, import_ip=None, agent_id=None, host_name=None, os_type=None, agent_state=None, project_id=None, version=None, is_hw_cloud_host=None, vpc_id=None, cmdb_id=None, ecs_id=None, domain_id=None):
|
|
52
|
+
"""AgentInfoResult
|
|
53
|
+
|
|
54
|
+
The model defined in huaweicloud sdk
|
|
55
|
+
|
|
56
|
+
:param inner_ip: 机器 IP。
|
|
57
|
+
:type inner_ip: str
|
|
58
|
+
:param import_ip: 机器导入IP。
|
|
59
|
+
:type import_ip: str
|
|
60
|
+
:param agent_id: agent id。
|
|
61
|
+
:type agent_id: str
|
|
62
|
+
:param host_name: 主机名。
|
|
63
|
+
:type host_name: str
|
|
64
|
+
:param os_type: 操作系统。
|
|
65
|
+
:type os_type: str
|
|
66
|
+
:param agent_state: UniAgent状态。
|
|
67
|
+
:type agent_state: str
|
|
68
|
+
:param project_id: 所属project ID。
|
|
69
|
+
:type project_id: str
|
|
70
|
+
:param version: UniAgent版本。
|
|
71
|
+
:type version: str
|
|
72
|
+
:param is_hw_cloud_host: 是否华为云机器。
|
|
73
|
+
:type is_hw_cloud_host: str
|
|
74
|
+
:param vpc_id: VPC ID。
|
|
75
|
+
:type vpc_id: str
|
|
76
|
+
:param cmdb_id: CMDB ID.
|
|
77
|
+
:type cmdb_id: str
|
|
78
|
+
:param ecs_id: ECS ID。唯一值.
|
|
79
|
+
:type ecs_id: str
|
|
80
|
+
:param domain_id: 机器所属domain ID。
|
|
81
|
+
:type domain_id: str
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
self._inner_ip = None
|
|
87
|
+
self._import_ip = None
|
|
88
|
+
self._agent_id = None
|
|
89
|
+
self._host_name = None
|
|
90
|
+
self._os_type = None
|
|
91
|
+
self._agent_state = None
|
|
92
|
+
self._project_id = None
|
|
93
|
+
self._version = None
|
|
94
|
+
self._is_hw_cloud_host = None
|
|
95
|
+
self._vpc_id = None
|
|
96
|
+
self._cmdb_id = None
|
|
97
|
+
self._ecs_id = None
|
|
98
|
+
self._domain_id = None
|
|
99
|
+
self.discriminator = None
|
|
100
|
+
|
|
101
|
+
if inner_ip is not None:
|
|
102
|
+
self.inner_ip = inner_ip
|
|
103
|
+
if import_ip is not None:
|
|
104
|
+
self.import_ip = import_ip
|
|
105
|
+
if agent_id is not None:
|
|
106
|
+
self.agent_id = agent_id
|
|
107
|
+
if host_name is not None:
|
|
108
|
+
self.host_name = host_name
|
|
109
|
+
if os_type is not None:
|
|
110
|
+
self.os_type = os_type
|
|
111
|
+
if agent_state is not None:
|
|
112
|
+
self.agent_state = agent_state
|
|
113
|
+
if project_id is not None:
|
|
114
|
+
self.project_id = project_id
|
|
115
|
+
if version is not None:
|
|
116
|
+
self.version = version
|
|
117
|
+
if is_hw_cloud_host is not None:
|
|
118
|
+
self.is_hw_cloud_host = is_hw_cloud_host
|
|
119
|
+
if vpc_id is not None:
|
|
120
|
+
self.vpc_id = vpc_id
|
|
121
|
+
if cmdb_id is not None:
|
|
122
|
+
self.cmdb_id = cmdb_id
|
|
123
|
+
if ecs_id is not None:
|
|
124
|
+
self.ecs_id = ecs_id
|
|
125
|
+
if domain_id is not None:
|
|
126
|
+
self.domain_id = domain_id
|
|
127
|
+
|
|
128
|
+
@property
|
|
129
|
+
def inner_ip(self):
|
|
130
|
+
"""Gets the inner_ip of this AgentInfoResult.
|
|
131
|
+
|
|
132
|
+
机器 IP。
|
|
133
|
+
|
|
134
|
+
:return: The inner_ip of this AgentInfoResult.
|
|
135
|
+
:rtype: str
|
|
136
|
+
"""
|
|
137
|
+
return self._inner_ip
|
|
138
|
+
|
|
139
|
+
@inner_ip.setter
|
|
140
|
+
def inner_ip(self, inner_ip):
|
|
141
|
+
"""Sets the inner_ip of this AgentInfoResult.
|
|
142
|
+
|
|
143
|
+
机器 IP。
|
|
144
|
+
|
|
145
|
+
:param inner_ip: The inner_ip of this AgentInfoResult.
|
|
146
|
+
:type inner_ip: str
|
|
147
|
+
"""
|
|
148
|
+
self._inner_ip = inner_ip
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def import_ip(self):
|
|
152
|
+
"""Gets the import_ip of this AgentInfoResult.
|
|
153
|
+
|
|
154
|
+
机器导入IP。
|
|
155
|
+
|
|
156
|
+
:return: The import_ip of this AgentInfoResult.
|
|
157
|
+
:rtype: str
|
|
158
|
+
"""
|
|
159
|
+
return self._import_ip
|
|
160
|
+
|
|
161
|
+
@import_ip.setter
|
|
162
|
+
def import_ip(self, import_ip):
|
|
163
|
+
"""Sets the import_ip of this AgentInfoResult.
|
|
164
|
+
|
|
165
|
+
机器导入IP。
|
|
166
|
+
|
|
167
|
+
:param import_ip: The import_ip of this AgentInfoResult.
|
|
168
|
+
:type import_ip: str
|
|
169
|
+
"""
|
|
170
|
+
self._import_ip = import_ip
|
|
171
|
+
|
|
172
|
+
@property
|
|
173
|
+
def agent_id(self):
|
|
174
|
+
"""Gets the agent_id of this AgentInfoResult.
|
|
175
|
+
|
|
176
|
+
agent id。
|
|
177
|
+
|
|
178
|
+
:return: The agent_id of this AgentInfoResult.
|
|
179
|
+
:rtype: str
|
|
180
|
+
"""
|
|
181
|
+
return self._agent_id
|
|
182
|
+
|
|
183
|
+
@agent_id.setter
|
|
184
|
+
def agent_id(self, agent_id):
|
|
185
|
+
"""Sets the agent_id of this AgentInfoResult.
|
|
186
|
+
|
|
187
|
+
agent id。
|
|
188
|
+
|
|
189
|
+
:param agent_id: The agent_id of this AgentInfoResult.
|
|
190
|
+
:type agent_id: str
|
|
191
|
+
"""
|
|
192
|
+
self._agent_id = agent_id
|
|
193
|
+
|
|
194
|
+
@property
|
|
195
|
+
def host_name(self):
|
|
196
|
+
"""Gets the host_name of this AgentInfoResult.
|
|
197
|
+
|
|
198
|
+
主机名。
|
|
199
|
+
|
|
200
|
+
:return: The host_name of this AgentInfoResult.
|
|
201
|
+
:rtype: str
|
|
202
|
+
"""
|
|
203
|
+
return self._host_name
|
|
204
|
+
|
|
205
|
+
@host_name.setter
|
|
206
|
+
def host_name(self, host_name):
|
|
207
|
+
"""Sets the host_name of this AgentInfoResult.
|
|
208
|
+
|
|
209
|
+
主机名。
|
|
210
|
+
|
|
211
|
+
:param host_name: The host_name of this AgentInfoResult.
|
|
212
|
+
:type host_name: str
|
|
213
|
+
"""
|
|
214
|
+
self._host_name = host_name
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
def os_type(self):
|
|
218
|
+
"""Gets the os_type of this AgentInfoResult.
|
|
219
|
+
|
|
220
|
+
操作系统。
|
|
221
|
+
|
|
222
|
+
:return: The os_type of this AgentInfoResult.
|
|
223
|
+
:rtype: str
|
|
224
|
+
"""
|
|
225
|
+
return self._os_type
|
|
226
|
+
|
|
227
|
+
@os_type.setter
|
|
228
|
+
def os_type(self, os_type):
|
|
229
|
+
"""Sets the os_type of this AgentInfoResult.
|
|
230
|
+
|
|
231
|
+
操作系统。
|
|
232
|
+
|
|
233
|
+
:param os_type: The os_type of this AgentInfoResult.
|
|
234
|
+
:type os_type: str
|
|
235
|
+
"""
|
|
236
|
+
self._os_type = os_type
|
|
237
|
+
|
|
238
|
+
@property
|
|
239
|
+
def agent_state(self):
|
|
240
|
+
"""Gets the agent_state of this AgentInfoResult.
|
|
241
|
+
|
|
242
|
+
UniAgent状态。
|
|
243
|
+
|
|
244
|
+
:return: The agent_state of this AgentInfoResult.
|
|
245
|
+
:rtype: str
|
|
246
|
+
"""
|
|
247
|
+
return self._agent_state
|
|
248
|
+
|
|
249
|
+
@agent_state.setter
|
|
250
|
+
def agent_state(self, agent_state):
|
|
251
|
+
"""Sets the agent_state of this AgentInfoResult.
|
|
252
|
+
|
|
253
|
+
UniAgent状态。
|
|
254
|
+
|
|
255
|
+
:param agent_state: The agent_state of this AgentInfoResult.
|
|
256
|
+
:type agent_state: str
|
|
257
|
+
"""
|
|
258
|
+
self._agent_state = agent_state
|
|
259
|
+
|
|
260
|
+
@property
|
|
261
|
+
def project_id(self):
|
|
262
|
+
"""Gets the project_id of this AgentInfoResult.
|
|
263
|
+
|
|
264
|
+
所属project ID。
|
|
265
|
+
|
|
266
|
+
:return: The project_id of this AgentInfoResult.
|
|
267
|
+
:rtype: str
|
|
268
|
+
"""
|
|
269
|
+
return self._project_id
|
|
270
|
+
|
|
271
|
+
@project_id.setter
|
|
272
|
+
def project_id(self, project_id):
|
|
273
|
+
"""Sets the project_id of this AgentInfoResult.
|
|
274
|
+
|
|
275
|
+
所属project ID。
|
|
276
|
+
|
|
277
|
+
:param project_id: The project_id of this AgentInfoResult.
|
|
278
|
+
:type project_id: str
|
|
279
|
+
"""
|
|
280
|
+
self._project_id = project_id
|
|
281
|
+
|
|
282
|
+
@property
|
|
283
|
+
def version(self):
|
|
284
|
+
"""Gets the version of this AgentInfoResult.
|
|
285
|
+
|
|
286
|
+
UniAgent版本。
|
|
287
|
+
|
|
288
|
+
:return: The version of this AgentInfoResult.
|
|
289
|
+
:rtype: str
|
|
290
|
+
"""
|
|
291
|
+
return self._version
|
|
292
|
+
|
|
293
|
+
@version.setter
|
|
294
|
+
def version(self, version):
|
|
295
|
+
"""Sets the version of this AgentInfoResult.
|
|
296
|
+
|
|
297
|
+
UniAgent版本。
|
|
298
|
+
|
|
299
|
+
:param version: The version of this AgentInfoResult.
|
|
300
|
+
:type version: str
|
|
301
|
+
"""
|
|
302
|
+
self._version = version
|
|
303
|
+
|
|
304
|
+
@property
|
|
305
|
+
def is_hw_cloud_host(self):
|
|
306
|
+
"""Gets the is_hw_cloud_host of this AgentInfoResult.
|
|
307
|
+
|
|
308
|
+
是否华为云机器。
|
|
309
|
+
|
|
310
|
+
:return: The is_hw_cloud_host of this AgentInfoResult.
|
|
311
|
+
:rtype: str
|
|
312
|
+
"""
|
|
313
|
+
return self._is_hw_cloud_host
|
|
314
|
+
|
|
315
|
+
@is_hw_cloud_host.setter
|
|
316
|
+
def is_hw_cloud_host(self, is_hw_cloud_host):
|
|
317
|
+
"""Sets the is_hw_cloud_host of this AgentInfoResult.
|
|
318
|
+
|
|
319
|
+
是否华为云机器。
|
|
320
|
+
|
|
321
|
+
:param is_hw_cloud_host: The is_hw_cloud_host of this AgentInfoResult.
|
|
322
|
+
:type is_hw_cloud_host: str
|
|
323
|
+
"""
|
|
324
|
+
self._is_hw_cloud_host = is_hw_cloud_host
|
|
325
|
+
|
|
326
|
+
@property
|
|
327
|
+
def vpc_id(self):
|
|
328
|
+
"""Gets the vpc_id of this AgentInfoResult.
|
|
329
|
+
|
|
330
|
+
VPC ID。
|
|
331
|
+
|
|
332
|
+
:return: The vpc_id of this AgentInfoResult.
|
|
333
|
+
:rtype: str
|
|
334
|
+
"""
|
|
335
|
+
return self._vpc_id
|
|
336
|
+
|
|
337
|
+
@vpc_id.setter
|
|
338
|
+
def vpc_id(self, vpc_id):
|
|
339
|
+
"""Sets the vpc_id of this AgentInfoResult.
|
|
340
|
+
|
|
341
|
+
VPC ID。
|
|
342
|
+
|
|
343
|
+
:param vpc_id: The vpc_id of this AgentInfoResult.
|
|
344
|
+
:type vpc_id: str
|
|
345
|
+
"""
|
|
346
|
+
self._vpc_id = vpc_id
|
|
347
|
+
|
|
348
|
+
@property
|
|
349
|
+
def cmdb_id(self):
|
|
350
|
+
"""Gets the cmdb_id of this AgentInfoResult.
|
|
351
|
+
|
|
352
|
+
CMDB ID.
|
|
353
|
+
|
|
354
|
+
:return: The cmdb_id of this AgentInfoResult.
|
|
355
|
+
:rtype: str
|
|
356
|
+
"""
|
|
357
|
+
return self._cmdb_id
|
|
358
|
+
|
|
359
|
+
@cmdb_id.setter
|
|
360
|
+
def cmdb_id(self, cmdb_id):
|
|
361
|
+
"""Sets the cmdb_id of this AgentInfoResult.
|
|
362
|
+
|
|
363
|
+
CMDB ID.
|
|
364
|
+
|
|
365
|
+
:param cmdb_id: The cmdb_id of this AgentInfoResult.
|
|
366
|
+
:type cmdb_id: str
|
|
367
|
+
"""
|
|
368
|
+
self._cmdb_id = cmdb_id
|
|
369
|
+
|
|
370
|
+
@property
|
|
371
|
+
def ecs_id(self):
|
|
372
|
+
"""Gets the ecs_id of this AgentInfoResult.
|
|
373
|
+
|
|
374
|
+
ECS ID。唯一值.
|
|
375
|
+
|
|
376
|
+
:return: The ecs_id of this AgentInfoResult.
|
|
377
|
+
:rtype: str
|
|
378
|
+
"""
|
|
379
|
+
return self._ecs_id
|
|
380
|
+
|
|
381
|
+
@ecs_id.setter
|
|
382
|
+
def ecs_id(self, ecs_id):
|
|
383
|
+
"""Sets the ecs_id of this AgentInfoResult.
|
|
384
|
+
|
|
385
|
+
ECS ID。唯一值.
|
|
386
|
+
|
|
387
|
+
:param ecs_id: The ecs_id of this AgentInfoResult.
|
|
388
|
+
:type ecs_id: str
|
|
389
|
+
"""
|
|
390
|
+
self._ecs_id = ecs_id
|
|
391
|
+
|
|
392
|
+
@property
|
|
393
|
+
def domain_id(self):
|
|
394
|
+
"""Gets the domain_id of this AgentInfoResult.
|
|
395
|
+
|
|
396
|
+
机器所属domain ID。
|
|
397
|
+
|
|
398
|
+
:return: The domain_id of this AgentInfoResult.
|
|
399
|
+
:rtype: str
|
|
400
|
+
"""
|
|
401
|
+
return self._domain_id
|
|
402
|
+
|
|
403
|
+
@domain_id.setter
|
|
404
|
+
def domain_id(self, domain_id):
|
|
405
|
+
"""Sets the domain_id of this AgentInfoResult.
|
|
406
|
+
|
|
407
|
+
机器所属domain ID。
|
|
408
|
+
|
|
409
|
+
:param domain_id: The domain_id of this AgentInfoResult.
|
|
410
|
+
:type domain_id: str
|
|
411
|
+
"""
|
|
412
|
+
self._domain_id = domain_id
|
|
413
|
+
|
|
414
|
+
def to_dict(self):
|
|
415
|
+
"""Returns the model properties as a dict"""
|
|
416
|
+
result = {}
|
|
417
|
+
|
|
418
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
419
|
+
value = getattr(self, attr)
|
|
420
|
+
if isinstance(value, list):
|
|
421
|
+
result[attr] = list(map(
|
|
422
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
423
|
+
value
|
|
424
|
+
))
|
|
425
|
+
elif hasattr(value, "to_dict"):
|
|
426
|
+
result[attr] = value.to_dict()
|
|
427
|
+
elif isinstance(value, dict):
|
|
428
|
+
result[attr] = dict(map(
|
|
429
|
+
lambda item: (item[0], item[1].to_dict())
|
|
430
|
+
if hasattr(item[1], "to_dict") else item,
|
|
431
|
+
value.items()
|
|
432
|
+
))
|
|
433
|
+
else:
|
|
434
|
+
if attr in self.sensitive_list:
|
|
435
|
+
result[attr] = "****"
|
|
436
|
+
else:
|
|
437
|
+
result[attr] = value
|
|
438
|
+
|
|
439
|
+
return result
|
|
440
|
+
|
|
441
|
+
def to_str(self):
|
|
442
|
+
"""Returns the string representation of the model"""
|
|
443
|
+
import simplejson as json
|
|
444
|
+
if six.PY2:
|
|
445
|
+
import sys
|
|
446
|
+
reload(sys)
|
|
447
|
+
sys.setdefaultencoding("utf-8")
|
|
448
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
449
|
+
|
|
450
|
+
def __repr__(self):
|
|
451
|
+
"""For `print`"""
|
|
452
|
+
return self.to_str()
|
|
453
|
+
|
|
454
|
+
def __eq__(self, other):
|
|
455
|
+
"""Returns true if both objects are equal"""
|
|
456
|
+
if not isinstance(other, AgentInfoResult):
|
|
457
|
+
return False
|
|
458
|
+
|
|
459
|
+
return self.__dict__ == other.__dict__
|
|
460
|
+
|
|
461
|
+
def __ne__(self, other):
|
|
462
|
+
"""Returns true if both objects are not equal"""
|
|
463
|
+
return not self == other
|