huaweicloudsdktics 3.1.181__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.
Files changed (77) hide show
  1. huaweicloudsdktics/__init__.py +0 -0
  2. huaweicloudsdktics/v1/__init__.py +74 -0
  3. huaweicloudsdktics/v1/model/__init__.py +71 -0
  4. huaweicloudsdktics/v1/model/agent_list_vo.py +514 -0
  5. huaweicloudsdktics/v1/model/deploy_vo.py +221 -0
  6. huaweicloudsdktics/v1/model/fl_job_list_vo.py +450 -0
  7. huaweicloudsdktics/v1/model/job_report_base_info_vo.py +249 -0
  8. huaweicloudsdktics/v1/model/job_report_env_vo.py +224 -0
  9. huaweicloudsdktics/v1/model/job_report_output_vo.py +166 -0
  10. huaweicloudsdktics/v1/model/job_report_partner_vo.py +224 -0
  11. huaweicloudsdktics/v1/model/league_dataset_statistics_vo.py +253 -0
  12. huaweicloudsdktics/v1/model/league_partner_statistics_vo.py +311 -0
  13. huaweicloudsdktics/v1/model/league_update_vo.py +166 -0
  14. huaweicloudsdktics/v1/model/list_agents_request.py +193 -0
  15. huaweicloudsdktics/v1/model/list_agents_response.py +141 -0
  16. huaweicloudsdktics/v1/model/list_audit_info_request.py +163 -0
  17. huaweicloudsdktics/v1/model/list_audit_info_response.py +141 -0
  18. huaweicloudsdktics/v1/model/list_fl_job_request.py +163 -0
  19. huaweicloudsdktics/v1/model/list_fl_job_response.py +141 -0
  20. huaweicloudsdktics/v1/model/list_instance_history_request.py +192 -0
  21. huaweicloudsdktics/v1/model/list_instance_history_response.py +141 -0
  22. huaweicloudsdktics/v1/model/list_league_datasets_request.py +221 -0
  23. huaweicloudsdktics/v1/model/list_league_datasets_response.py +141 -0
  24. huaweicloudsdktics/v1/model/list_leagues_request.py +163 -0
  25. huaweicloudsdktics/v1/model/list_leagues_response.py +141 -0
  26. huaweicloudsdktics/v1/model/list_nodes_request.py +163 -0
  27. huaweicloudsdktics/v1/model/list_nodes_response.py +141 -0
  28. huaweicloudsdktics/v1/model/list_notices_request.py +135 -0
  29. huaweicloudsdktics/v1/model/list_notices_response.py +141 -0
  30. huaweicloudsdktics/v1/model/list_partners_request.py +163 -0
  31. huaweicloudsdktics/v1/model/list_partners_response.py +141 -0
  32. huaweicloudsdktics/v1/model/list_sql_job_request.py +163 -0
  33. huaweicloudsdktics/v1/model/list_sql_job_response.py +141 -0
  34. huaweicloudsdktics/v1/model/partner_data_vo.py +282 -0
  35. huaweicloudsdktics/v1/model/processor_vo.py +367 -0
  36. huaweicloudsdktics/v1/model/round_deploy_vo.py +137 -0
  37. huaweicloudsdktics/v1/model/show_agent_detail_request.py +107 -0
  38. huaweicloudsdktics/v1/model/show_agent_detail_response.py +208 -0
  39. huaweicloudsdktics/v1/model/show_dataset_statistics_request.py +165 -0
  40. huaweicloudsdktics/v1/model/show_dataset_statistics_response.py +108 -0
  41. huaweicloudsdktics/v1/model/show_instance_report_request.py +135 -0
  42. huaweicloudsdktics/v1/model/show_instance_report_response.py +216 -0
  43. huaweicloudsdktics/v1/model/show_job_instance_dag_request.py +163 -0
  44. huaweicloudsdktics/v1/model/show_job_instance_dag_response.py +108 -0
  45. huaweicloudsdktics/v1/model/show_job_statistics_request.py +165 -0
  46. huaweicloudsdktics/v1/model/show_job_statistics_response.py +228 -0
  47. huaweicloudsdktics/v1/model/show_league_request.py +107 -0
  48. huaweicloudsdktics/v1/model/show_league_response.py +721 -0
  49. huaweicloudsdktics/v1/model/show_overview_request.py +77 -0
  50. huaweicloudsdktics/v1/model/show_overview_response.py +199 -0
  51. huaweicloudsdktics/v1/model/show_partner_statistics_request.py +165 -0
  52. huaweicloudsdktics/v1/model/show_partner_statistics_response.py +108 -0
  53. huaweicloudsdktics/v1/model/stage_vo.py +194 -0
  54. huaweicloudsdktics/v1/model/tics_agent_deploy.py +717 -0
  55. huaweicloudsdktics/v1/model/tics_agent_deploy_bcs.py +282 -0
  56. huaweicloudsdktics/v1/model/tics_agent_deploy_detail.py +456 -0
  57. huaweicloudsdktics/v1/model/tics_agent_nat_common_info.py +195 -0
  58. huaweicloudsdktics/v1/model/tics_agent_node_info.py +485 -0
  59. huaweicloudsdktics/v1/model/tics_approve_log_vo.py +477 -0
  60. huaweicloudsdktics/v1/model/tics_dataset_column.py +398 -0
  61. huaweicloudsdktics/v1/model/tics_job_instance_vo.py +394 -0
  62. huaweicloudsdktics/v1/model/tics_league_audit_log.py +369 -0
  63. huaweicloudsdktics/v1/model/tics_league_list_vo.py +536 -0
  64. huaweicloudsdktics/v1/model/tics_league_notice_vo.py +423 -0
  65. huaweicloudsdktics/v1/model/tics_league_partner_vo.py +195 -0
  66. huaweicloudsdktics/v1/model/tics_sql_job_vo.py +476 -0
  67. huaweicloudsdktics/v1/model/tics_trust_info_vo.py +340 -0
  68. huaweicloudsdktics/v1/model/update_league_request.py +132 -0
  69. huaweicloudsdktics/v1/model/update_league_response.py +108 -0
  70. huaweicloudsdktics/v1/region/__init__.py +0 -0
  71. huaweicloudsdktics/v1/region/tics_region.py +34 -0
  72. huaweicloudsdktics/v1/tics_async_client.py +1382 -0
  73. huaweicloudsdktics/v1/tics_client.py +1379 -0
  74. huaweicloudsdktics-3.1.181.dist-info/METADATA +25 -0
  75. huaweicloudsdktics-3.1.181.dist-info/RECORD +77 -0
  76. huaweicloudsdktics-3.1.181.dist-info/WHEEL +4 -0
  77. huaweicloudsdktics-3.1.181.dist-info/licenses/LICENSE +13 -0
@@ -0,0 +1,456 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class TicsAgentDeployDetail:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'agent_access_address': 'str',
19
+ 'agent_id': 'str',
20
+ 'cce_cluster_id': 'str',
21
+ 'cce_cluster_name': 'str',
22
+ 'console_ip': 'str',
23
+ 'console_port': 'int',
24
+ 'host_path': 'str',
25
+ 'ief_instance_id': 'str',
26
+ 'namespace_name': 'str',
27
+ 'obs_pvc_name': 'str',
28
+ 'persistence_id': 'str',
29
+ 'resource_spec_code': 'str',
30
+ 'web_port': 'int'
31
+ }
32
+
33
+ attribute_map = {
34
+ 'agent_access_address': 'agent_access_address',
35
+ 'agent_id': 'agent_id',
36
+ 'cce_cluster_id': 'cce_cluster_id',
37
+ 'cce_cluster_name': 'cce_cluster_name',
38
+ 'console_ip': 'console_ip',
39
+ 'console_port': 'console_port',
40
+ 'host_path': 'host_path',
41
+ 'ief_instance_id': 'ief_instance_id',
42
+ 'namespace_name': 'namespace_name',
43
+ 'obs_pvc_name': 'obs_pvc_name',
44
+ 'persistence_id': 'persistence_id',
45
+ 'resource_spec_code': 'resource_spec_code',
46
+ 'web_port': 'web_port'
47
+ }
48
+
49
+ def __init__(self, agent_access_address=None, agent_id=None, cce_cluster_id=None, cce_cluster_name=None, console_ip=None, console_port=None, host_path=None, ief_instance_id=None, namespace_name=None, obs_pvc_name=None, persistence_id=None, resource_spec_code=None, web_port=None):
50
+ r"""TicsAgentDeployDetail
51
+
52
+ The model defined in huaweicloud sdk
53
+
54
+ :param agent_access_address: 可信节点访问地址
55
+ :type agent_access_address: str
56
+ :param agent_id: 可信节点Id
57
+ :type agent_id: str
58
+ :param cce_cluster_id: 可信节点所在cce集群的Id
59
+ :type cce_cluster_id: str
60
+ :param cce_cluster_name: 可信节点所在cce集群的名称
61
+ :type cce_cluster_name: str
62
+ :param console_ip: 可信节点所在ip
63
+ :type console_ip: str
64
+ :param console_port: 可信节点服务端口
65
+ :type console_port: int
66
+ :param host_path: 主机挂载路径,本地挂载才会有值
67
+ :type host_path: str
68
+ :param ief_instance_id: ief白金版实例id, 仅IEF高可用部署有值
69
+ :type ief_instance_id: str
70
+ :param namespace_name: 命名空间名称
71
+ :type namespace_name: str
72
+ :param obs_pvc_name: 可信节点CCE部署场景,对象文件存储PVC
73
+ :type obs_pvc_name: str
74
+ :param persistence_id: 持久化存储唯一标识
75
+ :type persistence_id: str
76
+ :param resource_spec_code: 代理部署规格
77
+ :type resource_spec_code: str
78
+ :param web_port: 可信节点访问端口
79
+ :type web_port: int
80
+ """
81
+
82
+
83
+
84
+ self._agent_access_address = None
85
+ self._agent_id = None
86
+ self._cce_cluster_id = None
87
+ self._cce_cluster_name = None
88
+ self._console_ip = None
89
+ self._console_port = None
90
+ self._host_path = None
91
+ self._ief_instance_id = None
92
+ self._namespace_name = None
93
+ self._obs_pvc_name = None
94
+ self._persistence_id = None
95
+ self._resource_spec_code = None
96
+ self._web_port = None
97
+ self.discriminator = None
98
+
99
+ if agent_access_address is not None:
100
+ self.agent_access_address = agent_access_address
101
+ if agent_id is not None:
102
+ self.agent_id = agent_id
103
+ if cce_cluster_id is not None:
104
+ self.cce_cluster_id = cce_cluster_id
105
+ if cce_cluster_name is not None:
106
+ self.cce_cluster_name = cce_cluster_name
107
+ if console_ip is not None:
108
+ self.console_ip = console_ip
109
+ if console_port is not None:
110
+ self.console_port = console_port
111
+ if host_path is not None:
112
+ self.host_path = host_path
113
+ if ief_instance_id is not None:
114
+ self.ief_instance_id = ief_instance_id
115
+ if namespace_name is not None:
116
+ self.namespace_name = namespace_name
117
+ if obs_pvc_name is not None:
118
+ self.obs_pvc_name = obs_pvc_name
119
+ if persistence_id is not None:
120
+ self.persistence_id = persistence_id
121
+ if resource_spec_code is not None:
122
+ self.resource_spec_code = resource_spec_code
123
+ if web_port is not None:
124
+ self.web_port = web_port
125
+
126
+ @property
127
+ def agent_access_address(self):
128
+ r"""Gets the agent_access_address of this TicsAgentDeployDetail.
129
+
130
+ 可信节点访问地址
131
+
132
+ :return: The agent_access_address of this TicsAgentDeployDetail.
133
+ :rtype: str
134
+ """
135
+ return self._agent_access_address
136
+
137
+ @agent_access_address.setter
138
+ def agent_access_address(self, agent_access_address):
139
+ r"""Sets the agent_access_address of this TicsAgentDeployDetail.
140
+
141
+ 可信节点访问地址
142
+
143
+ :param agent_access_address: The agent_access_address of this TicsAgentDeployDetail.
144
+ :type agent_access_address: str
145
+ """
146
+ self._agent_access_address = agent_access_address
147
+
148
+ @property
149
+ def agent_id(self):
150
+ r"""Gets the agent_id of this TicsAgentDeployDetail.
151
+
152
+ 可信节点Id
153
+
154
+ :return: The agent_id of this TicsAgentDeployDetail.
155
+ :rtype: str
156
+ """
157
+ return self._agent_id
158
+
159
+ @agent_id.setter
160
+ def agent_id(self, agent_id):
161
+ r"""Sets the agent_id of this TicsAgentDeployDetail.
162
+
163
+ 可信节点Id
164
+
165
+ :param agent_id: The agent_id of this TicsAgentDeployDetail.
166
+ :type agent_id: str
167
+ """
168
+ self._agent_id = agent_id
169
+
170
+ @property
171
+ def cce_cluster_id(self):
172
+ r"""Gets the cce_cluster_id of this TicsAgentDeployDetail.
173
+
174
+ 可信节点所在cce集群的Id
175
+
176
+ :return: The cce_cluster_id of this TicsAgentDeployDetail.
177
+ :rtype: str
178
+ """
179
+ return self._cce_cluster_id
180
+
181
+ @cce_cluster_id.setter
182
+ def cce_cluster_id(self, cce_cluster_id):
183
+ r"""Sets the cce_cluster_id of this TicsAgentDeployDetail.
184
+
185
+ 可信节点所在cce集群的Id
186
+
187
+ :param cce_cluster_id: The cce_cluster_id of this TicsAgentDeployDetail.
188
+ :type cce_cluster_id: str
189
+ """
190
+ self._cce_cluster_id = cce_cluster_id
191
+
192
+ @property
193
+ def cce_cluster_name(self):
194
+ r"""Gets the cce_cluster_name of this TicsAgentDeployDetail.
195
+
196
+ 可信节点所在cce集群的名称
197
+
198
+ :return: The cce_cluster_name of this TicsAgentDeployDetail.
199
+ :rtype: str
200
+ """
201
+ return self._cce_cluster_name
202
+
203
+ @cce_cluster_name.setter
204
+ def cce_cluster_name(self, cce_cluster_name):
205
+ r"""Sets the cce_cluster_name of this TicsAgentDeployDetail.
206
+
207
+ 可信节点所在cce集群的名称
208
+
209
+ :param cce_cluster_name: The cce_cluster_name of this TicsAgentDeployDetail.
210
+ :type cce_cluster_name: str
211
+ """
212
+ self._cce_cluster_name = cce_cluster_name
213
+
214
+ @property
215
+ def console_ip(self):
216
+ r"""Gets the console_ip of this TicsAgentDeployDetail.
217
+
218
+ 可信节点所在ip
219
+
220
+ :return: The console_ip of this TicsAgentDeployDetail.
221
+ :rtype: str
222
+ """
223
+ return self._console_ip
224
+
225
+ @console_ip.setter
226
+ def console_ip(self, console_ip):
227
+ r"""Sets the console_ip of this TicsAgentDeployDetail.
228
+
229
+ 可信节点所在ip
230
+
231
+ :param console_ip: The console_ip of this TicsAgentDeployDetail.
232
+ :type console_ip: str
233
+ """
234
+ self._console_ip = console_ip
235
+
236
+ @property
237
+ def console_port(self):
238
+ r"""Gets the console_port of this TicsAgentDeployDetail.
239
+
240
+ 可信节点服务端口
241
+
242
+ :return: The console_port of this TicsAgentDeployDetail.
243
+ :rtype: int
244
+ """
245
+ return self._console_port
246
+
247
+ @console_port.setter
248
+ def console_port(self, console_port):
249
+ r"""Sets the console_port of this TicsAgentDeployDetail.
250
+
251
+ 可信节点服务端口
252
+
253
+ :param console_port: The console_port of this TicsAgentDeployDetail.
254
+ :type console_port: int
255
+ """
256
+ self._console_port = console_port
257
+
258
+ @property
259
+ def host_path(self):
260
+ r"""Gets the host_path of this TicsAgentDeployDetail.
261
+
262
+ 主机挂载路径,本地挂载才会有值
263
+
264
+ :return: The host_path of this TicsAgentDeployDetail.
265
+ :rtype: str
266
+ """
267
+ return self._host_path
268
+
269
+ @host_path.setter
270
+ def host_path(self, host_path):
271
+ r"""Sets the host_path of this TicsAgentDeployDetail.
272
+
273
+ 主机挂载路径,本地挂载才会有值
274
+
275
+ :param host_path: The host_path of this TicsAgentDeployDetail.
276
+ :type host_path: str
277
+ """
278
+ self._host_path = host_path
279
+
280
+ @property
281
+ def ief_instance_id(self):
282
+ r"""Gets the ief_instance_id of this TicsAgentDeployDetail.
283
+
284
+ ief白金版实例id, 仅IEF高可用部署有值
285
+
286
+ :return: The ief_instance_id of this TicsAgentDeployDetail.
287
+ :rtype: str
288
+ """
289
+ return self._ief_instance_id
290
+
291
+ @ief_instance_id.setter
292
+ def ief_instance_id(self, ief_instance_id):
293
+ r"""Sets the ief_instance_id of this TicsAgentDeployDetail.
294
+
295
+ ief白金版实例id, 仅IEF高可用部署有值
296
+
297
+ :param ief_instance_id: The ief_instance_id of this TicsAgentDeployDetail.
298
+ :type ief_instance_id: str
299
+ """
300
+ self._ief_instance_id = ief_instance_id
301
+
302
+ @property
303
+ def namespace_name(self):
304
+ r"""Gets the namespace_name of this TicsAgentDeployDetail.
305
+
306
+ 命名空间名称
307
+
308
+ :return: The namespace_name of this TicsAgentDeployDetail.
309
+ :rtype: str
310
+ """
311
+ return self._namespace_name
312
+
313
+ @namespace_name.setter
314
+ def namespace_name(self, namespace_name):
315
+ r"""Sets the namespace_name of this TicsAgentDeployDetail.
316
+
317
+ 命名空间名称
318
+
319
+ :param namespace_name: The namespace_name of this TicsAgentDeployDetail.
320
+ :type namespace_name: str
321
+ """
322
+ self._namespace_name = namespace_name
323
+
324
+ @property
325
+ def obs_pvc_name(self):
326
+ r"""Gets the obs_pvc_name of this TicsAgentDeployDetail.
327
+
328
+ 可信节点CCE部署场景,对象文件存储PVC
329
+
330
+ :return: The obs_pvc_name of this TicsAgentDeployDetail.
331
+ :rtype: str
332
+ """
333
+ return self._obs_pvc_name
334
+
335
+ @obs_pvc_name.setter
336
+ def obs_pvc_name(self, obs_pvc_name):
337
+ r"""Sets the obs_pvc_name of this TicsAgentDeployDetail.
338
+
339
+ 可信节点CCE部署场景,对象文件存储PVC
340
+
341
+ :param obs_pvc_name: The obs_pvc_name of this TicsAgentDeployDetail.
342
+ :type obs_pvc_name: str
343
+ """
344
+ self._obs_pvc_name = obs_pvc_name
345
+
346
+ @property
347
+ def persistence_id(self):
348
+ r"""Gets the persistence_id of this TicsAgentDeployDetail.
349
+
350
+ 持久化存储唯一标识
351
+
352
+ :return: The persistence_id of this TicsAgentDeployDetail.
353
+ :rtype: str
354
+ """
355
+ return self._persistence_id
356
+
357
+ @persistence_id.setter
358
+ def persistence_id(self, persistence_id):
359
+ r"""Sets the persistence_id of this TicsAgentDeployDetail.
360
+
361
+ 持久化存储唯一标识
362
+
363
+ :param persistence_id: The persistence_id of this TicsAgentDeployDetail.
364
+ :type persistence_id: str
365
+ """
366
+ self._persistence_id = persistence_id
367
+
368
+ @property
369
+ def resource_spec_code(self):
370
+ r"""Gets the resource_spec_code of this TicsAgentDeployDetail.
371
+
372
+ 代理部署规格
373
+
374
+ :return: The resource_spec_code of this TicsAgentDeployDetail.
375
+ :rtype: str
376
+ """
377
+ return self._resource_spec_code
378
+
379
+ @resource_spec_code.setter
380
+ def resource_spec_code(self, resource_spec_code):
381
+ r"""Sets the resource_spec_code of this TicsAgentDeployDetail.
382
+
383
+ 代理部署规格
384
+
385
+ :param resource_spec_code: The resource_spec_code of this TicsAgentDeployDetail.
386
+ :type resource_spec_code: str
387
+ """
388
+ self._resource_spec_code = resource_spec_code
389
+
390
+ @property
391
+ def web_port(self):
392
+ r"""Gets the web_port of this TicsAgentDeployDetail.
393
+
394
+ 可信节点访问端口
395
+
396
+ :return: The web_port of this TicsAgentDeployDetail.
397
+ :rtype: int
398
+ """
399
+ return self._web_port
400
+
401
+ @web_port.setter
402
+ def web_port(self, web_port):
403
+ r"""Sets the web_port of this TicsAgentDeployDetail.
404
+
405
+ 可信节点访问端口
406
+
407
+ :param web_port: The web_port of this TicsAgentDeployDetail.
408
+ :type web_port: int
409
+ """
410
+ self._web_port = web_port
411
+
412
+ def to_dict(self):
413
+ result = {}
414
+
415
+ for attr, _ in self.openapi_types.items():
416
+ value = getattr(self, attr)
417
+ if isinstance(value, list):
418
+ result[attr] = list(map(
419
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
420
+ value
421
+ ))
422
+ elif hasattr(value, "to_dict"):
423
+ result[attr] = value.to_dict()
424
+ elif isinstance(value, dict):
425
+ result[attr] = dict(map(
426
+ lambda item: (item[0], item[1].to_dict())
427
+ if hasattr(item[1], "to_dict") else item,
428
+ value.items()
429
+ ))
430
+ else:
431
+ if attr in self.sensitive_list:
432
+ result[attr] = "****"
433
+ else:
434
+ result[attr] = value
435
+
436
+ return result
437
+
438
+ def to_str(self):
439
+ """Returns the string representation of the model"""
440
+ import simplejson as json
441
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
442
+
443
+ def __repr__(self):
444
+ """For `print`"""
445
+ return self.to_str()
446
+
447
+ def __eq__(self, other):
448
+ """Returns true if both objects are equal"""
449
+ if not isinstance(other, TicsAgentDeployDetail):
450
+ return False
451
+
452
+ return self.__dict__ == other.__dict__
453
+
454
+ def __ne__(self, other):
455
+ """Returns true if both objects are not equal"""
456
+ return not self == other
@@ -0,0 +1,195 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class TicsAgentNatCommonInfo:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'nat_id': 'str',
19
+ 'project_id': 'str',
20
+ 'subnet_id': 'str',
21
+ 'vpc_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'nat_id': 'nat_id',
26
+ 'project_id': 'project_id',
27
+ 'subnet_id': 'subnet_id',
28
+ 'vpc_id': 'vpc_id'
29
+ }
30
+
31
+ def __init__(self, nat_id=None, project_id=None, subnet_id=None, vpc_id=None):
32
+ r"""TicsAgentNatCommonInfo
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param nat_id: 可信节点绑定的网关id
37
+ :type nat_id: str
38
+ :param project_id: 项目id
39
+ :type project_id: str
40
+ :param subnet_id: 可信节点绑定的CCE集群所在子网id
41
+ :type subnet_id: str
42
+ :param vpc_id: 可信节点绑定的CCE集群所在虚拟私有云id
43
+ :type vpc_id: str
44
+ """
45
+
46
+
47
+
48
+ self._nat_id = None
49
+ self._project_id = None
50
+ self._subnet_id = None
51
+ self._vpc_id = None
52
+ self.discriminator = None
53
+
54
+ if nat_id is not None:
55
+ self.nat_id = nat_id
56
+ if project_id is not None:
57
+ self.project_id = project_id
58
+ if subnet_id is not None:
59
+ self.subnet_id = subnet_id
60
+ if vpc_id is not None:
61
+ self.vpc_id = vpc_id
62
+
63
+ @property
64
+ def nat_id(self):
65
+ r"""Gets the nat_id of this TicsAgentNatCommonInfo.
66
+
67
+ 可信节点绑定的网关id
68
+
69
+ :return: The nat_id of this TicsAgentNatCommonInfo.
70
+ :rtype: str
71
+ """
72
+ return self._nat_id
73
+
74
+ @nat_id.setter
75
+ def nat_id(self, nat_id):
76
+ r"""Sets the nat_id of this TicsAgentNatCommonInfo.
77
+
78
+ 可信节点绑定的网关id
79
+
80
+ :param nat_id: The nat_id of this TicsAgentNatCommonInfo.
81
+ :type nat_id: str
82
+ """
83
+ self._nat_id = nat_id
84
+
85
+ @property
86
+ def project_id(self):
87
+ r"""Gets the project_id of this TicsAgentNatCommonInfo.
88
+
89
+ 项目id
90
+
91
+ :return: The project_id of this TicsAgentNatCommonInfo.
92
+ :rtype: str
93
+ """
94
+ return self._project_id
95
+
96
+ @project_id.setter
97
+ def project_id(self, project_id):
98
+ r"""Sets the project_id of this TicsAgentNatCommonInfo.
99
+
100
+ 项目id
101
+
102
+ :param project_id: The project_id of this TicsAgentNatCommonInfo.
103
+ :type project_id: str
104
+ """
105
+ self._project_id = project_id
106
+
107
+ @property
108
+ def subnet_id(self):
109
+ r"""Gets the subnet_id of this TicsAgentNatCommonInfo.
110
+
111
+ 可信节点绑定的CCE集群所在子网id
112
+
113
+ :return: The subnet_id of this TicsAgentNatCommonInfo.
114
+ :rtype: str
115
+ """
116
+ return self._subnet_id
117
+
118
+ @subnet_id.setter
119
+ def subnet_id(self, subnet_id):
120
+ r"""Sets the subnet_id of this TicsAgentNatCommonInfo.
121
+
122
+ 可信节点绑定的CCE集群所在子网id
123
+
124
+ :param subnet_id: The subnet_id of this TicsAgentNatCommonInfo.
125
+ :type subnet_id: str
126
+ """
127
+ self._subnet_id = subnet_id
128
+
129
+ @property
130
+ def vpc_id(self):
131
+ r"""Gets the vpc_id of this TicsAgentNatCommonInfo.
132
+
133
+ 可信节点绑定的CCE集群所在虚拟私有云id
134
+
135
+ :return: The vpc_id of this TicsAgentNatCommonInfo.
136
+ :rtype: str
137
+ """
138
+ return self._vpc_id
139
+
140
+ @vpc_id.setter
141
+ def vpc_id(self, vpc_id):
142
+ r"""Sets the vpc_id of this TicsAgentNatCommonInfo.
143
+
144
+ 可信节点绑定的CCE集群所在虚拟私有云id
145
+
146
+ :param vpc_id: The vpc_id of this TicsAgentNatCommonInfo.
147
+ :type vpc_id: str
148
+ """
149
+ self._vpc_id = vpc_id
150
+
151
+ def to_dict(self):
152
+ result = {}
153
+
154
+ for attr, _ in self.openapi_types.items():
155
+ value = getattr(self, attr)
156
+ if isinstance(value, list):
157
+ result[attr] = list(map(
158
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
159
+ value
160
+ ))
161
+ elif hasattr(value, "to_dict"):
162
+ result[attr] = value.to_dict()
163
+ elif isinstance(value, dict):
164
+ result[attr] = dict(map(
165
+ lambda item: (item[0], item[1].to_dict())
166
+ if hasattr(item[1], "to_dict") else item,
167
+ value.items()
168
+ ))
169
+ else:
170
+ if attr in self.sensitive_list:
171
+ result[attr] = "****"
172
+ else:
173
+ result[attr] = value
174
+
175
+ return result
176
+
177
+ def to_str(self):
178
+ """Returns the string representation of the model"""
179
+ import simplejson as json
180
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
181
+
182
+ def __repr__(self):
183
+ """For `print`"""
184
+ return self.to_str()
185
+
186
+ def __eq__(self, other):
187
+ """Returns true if both objects are equal"""
188
+ if not isinstance(other, TicsAgentNatCommonInfo):
189
+ return False
190
+
191
+ return self.__dict__ == other.__dict__
192
+
193
+ def __ne__(self, other):
194
+ """Returns true if both objects are not equal"""
195
+ return not self == other