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.

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.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/METADATA +2 -2
  66. {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/RECORD +69 -27
  67. {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/WHEEL +1 -1
  68. {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/LICENSE +0 -0
  69. {huaweicloudsdkaom-3.1.86.dist-info → huaweicloudsdkaom-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,280 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class AgentBatchImportParamNew:
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_import_param_list': 'list[AgentImportParamNew]',
21
+ 'proxy_region_id': 'int',
22
+ 'installer_agent_id': 'str',
23
+ 'icagent_install_flag': 'bool',
24
+ 'plugin_install_base_param': 'PluginInstallBasicParam',
25
+ 'version': 'str',
26
+ 'public_net_flag': 'bool'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'agent_import_param_list': 'agent_import_param_list',
31
+ 'proxy_region_id': 'proxy_region_id',
32
+ 'installer_agent_id': 'installer_agent_id',
33
+ 'icagent_install_flag': 'icagent_install_flag',
34
+ 'plugin_install_base_param': 'plugin_install_base_param',
35
+ 'version': 'version',
36
+ 'public_net_flag': 'public_net_flag'
37
+ }
38
+
39
+ def __init__(self, agent_import_param_list=None, proxy_region_id=None, installer_agent_id=None, icagent_install_flag=None, plugin_install_base_param=None, version=None, public_net_flag=None):
40
+ """AgentBatchImportParamNew
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param agent_import_param_list: 导入待安装UniAgent的机器参数列表。
45
+ :type agent_import_param_list: list[:class:`huaweicloudsdkaom.v4.AgentImportParamNew`]
46
+ :param proxy_region_id: 代理区域ID: - 直连接入填0。 - 代理接入填实际代理区域ID。
47
+ :type proxy_region_id: int
48
+ :param installer_agent_id: 安装机(代理机)的agent ID。
49
+ :type installer_agent_id: str
50
+ :param icagent_install_flag: 是否需要安装ICAgent插件: - true:安装ICAgent插件。默认安装最新版本的ICAgent插件。 - false:不安装ICAgent插件。
51
+ :type icagent_install_flag: bool
52
+ :param plugin_install_base_param:
53
+ :type plugin_install_base_param: :class:`huaweicloudsdkaom.v4.PluginInstallBasicParam`
54
+ :param version: 待安装的UniAgent版本号。
55
+ :type version: str
56
+ :param public_net_flag: 是否公网接入: - true:公网接入设置。 - false:代理接入设置。
57
+ :type public_net_flag: bool
58
+ """
59
+
60
+
61
+
62
+ self._agent_import_param_list = None
63
+ self._proxy_region_id = None
64
+ self._installer_agent_id = None
65
+ self._icagent_install_flag = None
66
+ self._plugin_install_base_param = None
67
+ self._version = None
68
+ self._public_net_flag = None
69
+ self.discriminator = None
70
+
71
+ self.agent_import_param_list = agent_import_param_list
72
+ self.proxy_region_id = proxy_region_id
73
+ self.installer_agent_id = installer_agent_id
74
+ if icagent_install_flag is not None:
75
+ self.icagent_install_flag = icagent_install_flag
76
+ if plugin_install_base_param is not None:
77
+ self.plugin_install_base_param = plugin_install_base_param
78
+ self.version = version
79
+ self.public_net_flag = public_net_flag
80
+
81
+ @property
82
+ def agent_import_param_list(self):
83
+ """Gets the agent_import_param_list of this AgentBatchImportParamNew.
84
+
85
+ 导入待安装UniAgent的机器参数列表。
86
+
87
+ :return: The agent_import_param_list of this AgentBatchImportParamNew.
88
+ :rtype: list[:class:`huaweicloudsdkaom.v4.AgentImportParamNew`]
89
+ """
90
+ return self._agent_import_param_list
91
+
92
+ @agent_import_param_list.setter
93
+ def agent_import_param_list(self, agent_import_param_list):
94
+ """Sets the agent_import_param_list of this AgentBatchImportParamNew.
95
+
96
+ 导入待安装UniAgent的机器参数列表。
97
+
98
+ :param agent_import_param_list: The agent_import_param_list of this AgentBatchImportParamNew.
99
+ :type agent_import_param_list: list[:class:`huaweicloudsdkaom.v4.AgentImportParamNew`]
100
+ """
101
+ self._agent_import_param_list = agent_import_param_list
102
+
103
+ @property
104
+ def proxy_region_id(self):
105
+ """Gets the proxy_region_id of this AgentBatchImportParamNew.
106
+
107
+ 代理区域ID: - 直连接入填0。 - 代理接入填实际代理区域ID。
108
+
109
+ :return: The proxy_region_id of this AgentBatchImportParamNew.
110
+ :rtype: int
111
+ """
112
+ return self._proxy_region_id
113
+
114
+ @proxy_region_id.setter
115
+ def proxy_region_id(self, proxy_region_id):
116
+ """Sets the proxy_region_id of this AgentBatchImportParamNew.
117
+
118
+ 代理区域ID: - 直连接入填0。 - 代理接入填实际代理区域ID。
119
+
120
+ :param proxy_region_id: The proxy_region_id of this AgentBatchImportParamNew.
121
+ :type proxy_region_id: int
122
+ """
123
+ self._proxy_region_id = proxy_region_id
124
+
125
+ @property
126
+ def installer_agent_id(self):
127
+ """Gets the installer_agent_id of this AgentBatchImportParamNew.
128
+
129
+ 安装机(代理机)的agent ID。
130
+
131
+ :return: The installer_agent_id of this AgentBatchImportParamNew.
132
+ :rtype: str
133
+ """
134
+ return self._installer_agent_id
135
+
136
+ @installer_agent_id.setter
137
+ def installer_agent_id(self, installer_agent_id):
138
+ """Sets the installer_agent_id of this AgentBatchImportParamNew.
139
+
140
+ 安装机(代理机)的agent ID。
141
+
142
+ :param installer_agent_id: The installer_agent_id of this AgentBatchImportParamNew.
143
+ :type installer_agent_id: str
144
+ """
145
+ self._installer_agent_id = installer_agent_id
146
+
147
+ @property
148
+ def icagent_install_flag(self):
149
+ """Gets the icagent_install_flag of this AgentBatchImportParamNew.
150
+
151
+ 是否需要安装ICAgent插件: - true:安装ICAgent插件。默认安装最新版本的ICAgent插件。 - false:不安装ICAgent插件。
152
+
153
+ :return: The icagent_install_flag of this AgentBatchImportParamNew.
154
+ :rtype: bool
155
+ """
156
+ return self._icagent_install_flag
157
+
158
+ @icagent_install_flag.setter
159
+ def icagent_install_flag(self, icagent_install_flag):
160
+ """Sets the icagent_install_flag of this AgentBatchImportParamNew.
161
+
162
+ 是否需要安装ICAgent插件: - true:安装ICAgent插件。默认安装最新版本的ICAgent插件。 - false:不安装ICAgent插件。
163
+
164
+ :param icagent_install_flag: The icagent_install_flag of this AgentBatchImportParamNew.
165
+ :type icagent_install_flag: bool
166
+ """
167
+ self._icagent_install_flag = icagent_install_flag
168
+
169
+ @property
170
+ def plugin_install_base_param(self):
171
+ """Gets the plugin_install_base_param of this AgentBatchImportParamNew.
172
+
173
+ :return: The plugin_install_base_param of this AgentBatchImportParamNew.
174
+ :rtype: :class:`huaweicloudsdkaom.v4.PluginInstallBasicParam`
175
+ """
176
+ return self._plugin_install_base_param
177
+
178
+ @plugin_install_base_param.setter
179
+ def plugin_install_base_param(self, plugin_install_base_param):
180
+ """Sets the plugin_install_base_param of this AgentBatchImportParamNew.
181
+
182
+ :param plugin_install_base_param: The plugin_install_base_param of this AgentBatchImportParamNew.
183
+ :type plugin_install_base_param: :class:`huaweicloudsdkaom.v4.PluginInstallBasicParam`
184
+ """
185
+ self._plugin_install_base_param = plugin_install_base_param
186
+
187
+ @property
188
+ def version(self):
189
+ """Gets the version of this AgentBatchImportParamNew.
190
+
191
+ 待安装的UniAgent版本号。
192
+
193
+ :return: The version of this AgentBatchImportParamNew.
194
+ :rtype: str
195
+ """
196
+ return self._version
197
+
198
+ @version.setter
199
+ def version(self, version):
200
+ """Sets the version of this AgentBatchImportParamNew.
201
+
202
+ 待安装的UniAgent版本号。
203
+
204
+ :param version: The version of this AgentBatchImportParamNew.
205
+ :type version: str
206
+ """
207
+ self._version = version
208
+
209
+ @property
210
+ def public_net_flag(self):
211
+ """Gets the public_net_flag of this AgentBatchImportParamNew.
212
+
213
+ 是否公网接入: - true:公网接入设置。 - false:代理接入设置。
214
+
215
+ :return: The public_net_flag of this AgentBatchImportParamNew.
216
+ :rtype: bool
217
+ """
218
+ return self._public_net_flag
219
+
220
+ @public_net_flag.setter
221
+ def public_net_flag(self, public_net_flag):
222
+ """Sets the public_net_flag of this AgentBatchImportParamNew.
223
+
224
+ 是否公网接入: - true:公网接入设置。 - false:代理接入设置。
225
+
226
+ :param public_net_flag: The public_net_flag of this AgentBatchImportParamNew.
227
+ :type public_net_flag: bool
228
+ """
229
+ self._public_net_flag = public_net_flag
230
+
231
+ def to_dict(self):
232
+ """Returns the model properties as a dict"""
233
+ result = {}
234
+
235
+ for attr, _ in six.iteritems(self.openapi_types):
236
+ value = getattr(self, attr)
237
+ if isinstance(value, list):
238
+ result[attr] = list(map(
239
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
240
+ value
241
+ ))
242
+ elif hasattr(value, "to_dict"):
243
+ result[attr] = value.to_dict()
244
+ elif isinstance(value, dict):
245
+ result[attr] = dict(map(
246
+ lambda item: (item[0], item[1].to_dict())
247
+ if hasattr(item[1], "to_dict") else item,
248
+ value.items()
249
+ ))
250
+ else:
251
+ if attr in self.sensitive_list:
252
+ result[attr] = "****"
253
+ else:
254
+ result[attr] = value
255
+
256
+ return result
257
+
258
+ def to_str(self):
259
+ """Returns the string representation of the model"""
260
+ import simplejson as json
261
+ if six.PY2:
262
+ import sys
263
+ reload(sys)
264
+ sys.setdefaultencoding("utf-8")
265
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
266
+
267
+ def __repr__(self):
268
+ """For `print`"""
269
+ return self.to_str()
270
+
271
+ def __eq__(self, other):
272
+ """Returns true if both objects are equal"""
273
+ if not isinstance(other, AgentBatchImportParamNew):
274
+ return False
275
+
276
+ return self.__dict__ == other.__dict__
277
+
278
+ def __ne__(self, other):
279
+ """Returns true if both objects are not equal"""
280
+ return not self == other
@@ -0,0 +1,313 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class AgentImportParamNew:
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
+ 'password': 'str',
21
+ 'agent_id': 'str',
22
+ 'inner_ip': 'str',
23
+ 'port': 'int',
24
+ 'account': 'str',
25
+ 'os_type': 'str',
26
+ 'vpc_id': 'str',
27
+ 'coc_cmdb_id': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'password': 'password',
32
+ 'agent_id': 'agent_id',
33
+ 'inner_ip': 'inner_ip',
34
+ 'port': 'port',
35
+ 'account': 'account',
36
+ 'os_type': 'os_type',
37
+ 'vpc_id': 'vpc_id',
38
+ 'coc_cmdb_id': 'coc_cmdb_id'
39
+ }
40
+
41
+ def __init__(self, password=None, agent_id=None, inner_ip=None, port=None, account=None, os_type=None, vpc_id=None, coc_cmdb_id=None):
42
+ """AgentImportParamNew
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param password: 机器登录密码。
47
+ :type password: str
48
+ :param agent_id: agent唯一值,重复导入时需要传递。
49
+ :type agent_id: str
50
+ :param inner_ip: 机器IP。
51
+ :type inner_ip: str
52
+ :param port: 机器登录端口,默认22。
53
+ :type port: int
54
+ :param account: 机器ssh账号。
55
+ :type account: str
56
+ :param os_type: 机器操作系统类型。
57
+ :type os_type: str
58
+ :param vpc_id: 机器所属VPC ID。
59
+ :type vpc_id: str
60
+ :param coc_cmdb_id: 外来唯一标识,COC用。
61
+ :type coc_cmdb_id: str
62
+ """
63
+
64
+
65
+
66
+ self._password = None
67
+ self._agent_id = None
68
+ self._inner_ip = None
69
+ self._port = None
70
+ self._account = None
71
+ self._os_type = None
72
+ self._vpc_id = None
73
+ self._coc_cmdb_id = None
74
+ self.discriminator = None
75
+
76
+ self.password = password
77
+ if agent_id is not None:
78
+ self.agent_id = agent_id
79
+ self.inner_ip = inner_ip
80
+ self.port = port
81
+ self.account = account
82
+ self.os_type = os_type
83
+ if vpc_id is not None:
84
+ self.vpc_id = vpc_id
85
+ if coc_cmdb_id is not None:
86
+ self.coc_cmdb_id = coc_cmdb_id
87
+
88
+ @property
89
+ def password(self):
90
+ """Gets the password of this AgentImportParamNew.
91
+
92
+ 机器登录密码。
93
+
94
+ :return: The password of this AgentImportParamNew.
95
+ :rtype: str
96
+ """
97
+ return self._password
98
+
99
+ @password.setter
100
+ def password(self, password):
101
+ """Sets the password of this AgentImportParamNew.
102
+
103
+ 机器登录密码。
104
+
105
+ :param password: The password of this AgentImportParamNew.
106
+ :type password: str
107
+ """
108
+ self._password = password
109
+
110
+ @property
111
+ def agent_id(self):
112
+ """Gets the agent_id of this AgentImportParamNew.
113
+
114
+ agent唯一值,重复导入时需要传递。
115
+
116
+ :return: The agent_id of this AgentImportParamNew.
117
+ :rtype: str
118
+ """
119
+ return self._agent_id
120
+
121
+ @agent_id.setter
122
+ def agent_id(self, agent_id):
123
+ """Sets the agent_id of this AgentImportParamNew.
124
+
125
+ agent唯一值,重复导入时需要传递。
126
+
127
+ :param agent_id: The agent_id of this AgentImportParamNew.
128
+ :type agent_id: str
129
+ """
130
+ self._agent_id = agent_id
131
+
132
+ @property
133
+ def inner_ip(self):
134
+ """Gets the inner_ip of this AgentImportParamNew.
135
+
136
+ 机器IP。
137
+
138
+ :return: The inner_ip of this AgentImportParamNew.
139
+ :rtype: str
140
+ """
141
+ return self._inner_ip
142
+
143
+ @inner_ip.setter
144
+ def inner_ip(self, inner_ip):
145
+ """Sets the inner_ip of this AgentImportParamNew.
146
+
147
+ 机器IP。
148
+
149
+ :param inner_ip: The inner_ip of this AgentImportParamNew.
150
+ :type inner_ip: str
151
+ """
152
+ self._inner_ip = inner_ip
153
+
154
+ @property
155
+ def port(self):
156
+ """Gets the port of this AgentImportParamNew.
157
+
158
+ 机器登录端口,默认22。
159
+
160
+ :return: The port of this AgentImportParamNew.
161
+ :rtype: int
162
+ """
163
+ return self._port
164
+
165
+ @port.setter
166
+ def port(self, port):
167
+ """Sets the port of this AgentImportParamNew.
168
+
169
+ 机器登录端口,默认22。
170
+
171
+ :param port: The port of this AgentImportParamNew.
172
+ :type port: int
173
+ """
174
+ self._port = port
175
+
176
+ @property
177
+ def account(self):
178
+ """Gets the account of this AgentImportParamNew.
179
+
180
+ 机器ssh账号。
181
+
182
+ :return: The account of this AgentImportParamNew.
183
+ :rtype: str
184
+ """
185
+ return self._account
186
+
187
+ @account.setter
188
+ def account(self, account):
189
+ """Sets the account of this AgentImportParamNew.
190
+
191
+ 机器ssh账号。
192
+
193
+ :param account: The account of this AgentImportParamNew.
194
+ :type account: str
195
+ """
196
+ self._account = account
197
+
198
+ @property
199
+ def os_type(self):
200
+ """Gets the os_type of this AgentImportParamNew.
201
+
202
+ 机器操作系统类型。
203
+
204
+ :return: The os_type of this AgentImportParamNew.
205
+ :rtype: str
206
+ """
207
+ return self._os_type
208
+
209
+ @os_type.setter
210
+ def os_type(self, os_type):
211
+ """Sets the os_type of this AgentImportParamNew.
212
+
213
+ 机器操作系统类型。
214
+
215
+ :param os_type: The os_type of this AgentImportParamNew.
216
+ :type os_type: str
217
+ """
218
+ self._os_type = os_type
219
+
220
+ @property
221
+ def vpc_id(self):
222
+ """Gets the vpc_id of this AgentImportParamNew.
223
+
224
+ 机器所属VPC ID。
225
+
226
+ :return: The vpc_id of this AgentImportParamNew.
227
+ :rtype: str
228
+ """
229
+ return self._vpc_id
230
+
231
+ @vpc_id.setter
232
+ def vpc_id(self, vpc_id):
233
+ """Sets the vpc_id of this AgentImportParamNew.
234
+
235
+ 机器所属VPC ID。
236
+
237
+ :param vpc_id: The vpc_id of this AgentImportParamNew.
238
+ :type vpc_id: str
239
+ """
240
+ self._vpc_id = vpc_id
241
+
242
+ @property
243
+ def coc_cmdb_id(self):
244
+ """Gets the coc_cmdb_id of this AgentImportParamNew.
245
+
246
+ 外来唯一标识,COC用。
247
+
248
+ :return: The coc_cmdb_id of this AgentImportParamNew.
249
+ :rtype: str
250
+ """
251
+ return self._coc_cmdb_id
252
+
253
+ @coc_cmdb_id.setter
254
+ def coc_cmdb_id(self, coc_cmdb_id):
255
+ """Sets the coc_cmdb_id of this AgentImportParamNew.
256
+
257
+ 外来唯一标识,COC用。
258
+
259
+ :param coc_cmdb_id: The coc_cmdb_id of this AgentImportParamNew.
260
+ :type coc_cmdb_id: str
261
+ """
262
+ self._coc_cmdb_id = coc_cmdb_id
263
+
264
+ def to_dict(self):
265
+ """Returns the model properties as a dict"""
266
+ result = {}
267
+
268
+ for attr, _ in six.iteritems(self.openapi_types):
269
+ value = getattr(self, attr)
270
+ if isinstance(value, list):
271
+ result[attr] = list(map(
272
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
273
+ value
274
+ ))
275
+ elif hasattr(value, "to_dict"):
276
+ result[attr] = value.to_dict()
277
+ elif isinstance(value, dict):
278
+ result[attr] = dict(map(
279
+ lambda item: (item[0], item[1].to_dict())
280
+ if hasattr(item[1], "to_dict") else item,
281
+ value.items()
282
+ ))
283
+ else:
284
+ if attr in self.sensitive_list:
285
+ result[attr] = "****"
286
+ else:
287
+ result[attr] = value
288
+
289
+ return result
290
+
291
+ def to_str(self):
292
+ """Returns the string representation of the model"""
293
+ import simplejson as json
294
+ if six.PY2:
295
+ import sys
296
+ reload(sys)
297
+ sys.setdefaultencoding("utf-8")
298
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
299
+
300
+ def __repr__(self):
301
+ """For `print`"""
302
+ return self.to_str()
303
+
304
+ def __eq__(self, other):
305
+ """Returns true if both objects are equal"""
306
+ if not isinstance(other, AgentImportParamNew):
307
+ return False
308
+
309
+ return self.__dict__ == other.__dict__
310
+
311
+ def __ne__(self, other):
312
+ """Returns true if both objects are not equal"""
313
+ return not self == other