Skip to content

Commit 2a54116

Browse files
author
BitsAdmin
committed
Merge branch 'seccenter-Python-2024-05-08-online-1762-2025_10_30_16_09_13' into 'integration_2025-10-30_1074886721538'
feat: [development task] seccenter-1762-Python (1783314) See merge request iaasng/volcengine-python-sdk!882
2 parents a9114ce + 4f9104d commit 2a54116

File tree

150 files changed

+36252
-4019
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+36252
-4019
lines changed

volcenginesdkseccenter20240508/__init__.py

Lines changed: 128 additions & 0 deletions
Large diffs are not rendered by default.

volcenginesdkseccenter20240508/api/seccenter20240508_api.py

Lines changed: 7987 additions & 3913 deletions
Large diffs are not rendered by default.

volcenginesdkseccenter20240508/models/__init__.py

Lines changed: 128 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 383 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,383 @@
1+
# coding: utf-8
2+
3+
"""
4+
seccenter20240508
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: common-version
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from volcenginesdkcore.configuration import Configuration
20+
21+
22+
class AddBaselineCheckConfigRequest(object):
23+
"""NOTE: This class is auto generated by the swagger code generator program.
24+
25+
Do not edit the class manually.
26+
"""
27+
28+
"""
29+
Attributes:
30+
swagger_types (dict): The key is attribute name
31+
and the value is attribute type.
32+
attribute_map (dict): The key is attribute name
33+
and the value is json key in definition.
34+
"""
35+
swagger_types = {
36+
'agent_id_list': 'list[str]',
37+
'baseline_list': 'list[BaselineListForAddBaselineCheckConfigInput]',
38+
'config_name': 'str',
39+
'enable': 'bool',
40+
'end_time': 'int',
41+
'if_all_host': 'bool',
42+
'leaf_group_ids': 'list[str]',
43+
'model': 'str',
44+
'period': 'str',
45+
'remark': 'str',
46+
'start_time': 'int'
47+
}
48+
49+
attribute_map = {
50+
'agent_id_list': 'AgentIDList',
51+
'baseline_list': 'BaselineList',
52+
'config_name': 'ConfigName',
53+
'enable': 'Enable',
54+
'end_time': 'EndTime',
55+
'if_all_host': 'IfAllHost',
56+
'leaf_group_ids': 'LeafGroupIDs',
57+
'model': 'Model',
58+
'period': 'Period',
59+
'remark': 'Remark',
60+
'start_time': 'StartTime'
61+
}
62+
63+
def __init__(self, agent_id_list=None, baseline_list=None, config_name=None, enable=None, end_time=None, if_all_host=None, leaf_group_ids=None, model=None, period=None, remark=None, start_time=None, _configuration=None): # noqa: E501
64+
"""AddBaselineCheckConfigRequest - a model defined in Swagger""" # noqa: E501
65+
if _configuration is None:
66+
_configuration = Configuration()
67+
self._configuration = _configuration
68+
69+
self._agent_id_list = None
70+
self._baseline_list = None
71+
self._config_name = None
72+
self._enable = None
73+
self._end_time = None
74+
self._if_all_host = None
75+
self._leaf_group_ids = None
76+
self._model = None
77+
self._period = None
78+
self._remark = None
79+
self._start_time = None
80+
self.discriminator = None
81+
82+
if agent_id_list is not None:
83+
self.agent_id_list = agent_id_list
84+
if baseline_list is not None:
85+
self.baseline_list = baseline_list
86+
if config_name is not None:
87+
self.config_name = config_name
88+
if enable is not None:
89+
self.enable = enable
90+
if end_time is not None:
91+
self.end_time = end_time
92+
if if_all_host is not None:
93+
self.if_all_host = if_all_host
94+
if leaf_group_ids is not None:
95+
self.leaf_group_ids = leaf_group_ids
96+
if model is not None:
97+
self.model = model
98+
if period is not None:
99+
self.period = period
100+
if remark is not None:
101+
self.remark = remark
102+
if start_time is not None:
103+
self.start_time = start_time
104+
105+
@property
106+
def agent_id_list(self):
107+
"""Gets the agent_id_list of this AddBaselineCheckConfigRequest. # noqa: E501
108+
109+
110+
:return: The agent_id_list of this AddBaselineCheckConfigRequest. # noqa: E501
111+
:rtype: list[str]
112+
"""
113+
return self._agent_id_list
114+
115+
@agent_id_list.setter
116+
def agent_id_list(self, agent_id_list):
117+
"""Sets the agent_id_list of this AddBaselineCheckConfigRequest.
118+
119+
120+
:param agent_id_list: The agent_id_list of this AddBaselineCheckConfigRequest. # noqa: E501
121+
:type: list[str]
122+
"""
123+
124+
self._agent_id_list = agent_id_list
125+
126+
@property
127+
def baseline_list(self):
128+
"""Gets the baseline_list of this AddBaselineCheckConfigRequest. # noqa: E501
129+
130+
131+
:return: The baseline_list of this AddBaselineCheckConfigRequest. # noqa: E501
132+
:rtype: list[BaselineListForAddBaselineCheckConfigInput]
133+
"""
134+
return self._baseline_list
135+
136+
@baseline_list.setter
137+
def baseline_list(self, baseline_list):
138+
"""Sets the baseline_list of this AddBaselineCheckConfigRequest.
139+
140+
141+
:param baseline_list: The baseline_list of this AddBaselineCheckConfigRequest. # noqa: E501
142+
:type: list[BaselineListForAddBaselineCheckConfigInput]
143+
"""
144+
145+
self._baseline_list = baseline_list
146+
147+
@property
148+
def config_name(self):
149+
"""Gets the config_name of this AddBaselineCheckConfigRequest. # noqa: E501
150+
151+
152+
:return: The config_name of this AddBaselineCheckConfigRequest. # noqa: E501
153+
:rtype: str
154+
"""
155+
return self._config_name
156+
157+
@config_name.setter
158+
def config_name(self, config_name):
159+
"""Sets the config_name of this AddBaselineCheckConfigRequest.
160+
161+
162+
:param config_name: The config_name of this AddBaselineCheckConfigRequest. # noqa: E501
163+
:type: str
164+
"""
165+
166+
self._config_name = config_name
167+
168+
@property
169+
def enable(self):
170+
"""Gets the enable of this AddBaselineCheckConfigRequest. # noqa: E501
171+
172+
173+
:return: The enable of this AddBaselineCheckConfigRequest. # noqa: E501
174+
:rtype: bool
175+
"""
176+
return self._enable
177+
178+
@enable.setter
179+
def enable(self, enable):
180+
"""Sets the enable of this AddBaselineCheckConfigRequest.
181+
182+
183+
:param enable: The enable of this AddBaselineCheckConfigRequest. # noqa: E501
184+
:type: bool
185+
"""
186+
187+
self._enable = enable
188+
189+
@property
190+
def end_time(self):
191+
"""Gets the end_time of this AddBaselineCheckConfigRequest. # noqa: E501
192+
193+
194+
:return: The end_time of this AddBaselineCheckConfigRequest. # noqa: E501
195+
:rtype: int
196+
"""
197+
return self._end_time
198+
199+
@end_time.setter
200+
def end_time(self, end_time):
201+
"""Sets the end_time of this AddBaselineCheckConfigRequest.
202+
203+
204+
:param end_time: The end_time of this AddBaselineCheckConfigRequest. # noqa: E501
205+
:type: int
206+
"""
207+
208+
self._end_time = end_time
209+
210+
@property
211+
def if_all_host(self):
212+
"""Gets the if_all_host of this AddBaselineCheckConfigRequest. # noqa: E501
213+
214+
215+
:return: The if_all_host of this AddBaselineCheckConfigRequest. # noqa: E501
216+
:rtype: bool
217+
"""
218+
return self._if_all_host
219+
220+
@if_all_host.setter
221+
def if_all_host(self, if_all_host):
222+
"""Sets the if_all_host of this AddBaselineCheckConfigRequest.
223+
224+
225+
:param if_all_host: The if_all_host of this AddBaselineCheckConfigRequest. # noqa: E501
226+
:type: bool
227+
"""
228+
229+
self._if_all_host = if_all_host
230+
231+
@property
232+
def leaf_group_ids(self):
233+
"""Gets the leaf_group_ids of this AddBaselineCheckConfigRequest. # noqa: E501
234+
235+
236+
:return: The leaf_group_ids of this AddBaselineCheckConfigRequest. # noqa: E501
237+
:rtype: list[str]
238+
"""
239+
return self._leaf_group_ids
240+
241+
@leaf_group_ids.setter
242+
def leaf_group_ids(self, leaf_group_ids):
243+
"""Sets the leaf_group_ids of this AddBaselineCheckConfigRequest.
244+
245+
246+
:param leaf_group_ids: The leaf_group_ids of this AddBaselineCheckConfigRequest. # noqa: E501
247+
:type: list[str]
248+
"""
249+
250+
self._leaf_group_ids = leaf_group_ids
251+
252+
@property
253+
def model(self):
254+
"""Gets the model of this AddBaselineCheckConfigRequest. # noqa: E501
255+
256+
257+
:return: The model of this AddBaselineCheckConfigRequest. # noqa: E501
258+
:rtype: str
259+
"""
260+
return self._model
261+
262+
@model.setter
263+
def model(self, model):
264+
"""Sets the model of this AddBaselineCheckConfigRequest.
265+
266+
267+
:param model: The model of this AddBaselineCheckConfigRequest. # noqa: E501
268+
:type: str
269+
"""
270+
271+
self._model = model
272+
273+
@property
274+
def period(self):
275+
"""Gets the period of this AddBaselineCheckConfigRequest. # noqa: E501
276+
277+
278+
:return: The period of this AddBaselineCheckConfigRequest. # noqa: E501
279+
:rtype: str
280+
"""
281+
return self._period
282+
283+
@period.setter
284+
def period(self, period):
285+
"""Sets the period of this AddBaselineCheckConfigRequest.
286+
287+
288+
:param period: The period of this AddBaselineCheckConfigRequest. # noqa: E501
289+
:type: str
290+
"""
291+
292+
self._period = period
293+
294+
@property
295+
def remark(self):
296+
"""Gets the remark of this AddBaselineCheckConfigRequest. # noqa: E501
297+
298+
299+
:return: The remark of this AddBaselineCheckConfigRequest. # noqa: E501
300+
:rtype: str
301+
"""
302+
return self._remark
303+
304+
@remark.setter
305+
def remark(self, remark):
306+
"""Sets the remark of this AddBaselineCheckConfigRequest.
307+
308+
309+
:param remark: The remark of this AddBaselineCheckConfigRequest. # noqa: E501
310+
:type: str
311+
"""
312+
313+
self._remark = remark
314+
315+
@property
316+
def start_time(self):
317+
"""Gets the start_time of this AddBaselineCheckConfigRequest. # noqa: E501
318+
319+
320+
:return: The start_time of this AddBaselineCheckConfigRequest. # noqa: E501
321+
:rtype: int
322+
"""
323+
return self._start_time
324+
325+
@start_time.setter
326+
def start_time(self, start_time):
327+
"""Sets the start_time of this AddBaselineCheckConfigRequest.
328+
329+
330+
:param start_time: The start_time of this AddBaselineCheckConfigRequest. # noqa: E501
331+
:type: int
332+
"""
333+
334+
self._start_time = start_time
335+
336+
def to_dict(self):
337+
"""Returns the model properties as a dict"""
338+
result = {}
339+
340+
for attr, _ in six.iteritems(self.swagger_types):
341+
value = getattr(self, attr)
342+
if isinstance(value, list):
343+
result[attr] = list(map(
344+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
345+
value
346+
))
347+
elif hasattr(value, "to_dict"):
348+
result[attr] = value.to_dict()
349+
elif isinstance(value, dict):
350+
result[attr] = dict(map(
351+
lambda item: (item[0], item[1].to_dict())
352+
if hasattr(item[1], "to_dict") else item,
353+
value.items()
354+
))
355+
else:
356+
result[attr] = value
357+
if issubclass(AddBaselineCheckConfigRequest, dict):
358+
for key, value in self.items():
359+
result[key] = value
360+
361+
return result
362+
363+
def to_str(self):
364+
"""Returns the string representation of the model"""
365+
return pprint.pformat(self.to_dict())
366+
367+
def __repr__(self):
368+
"""For `print` and `pprint`"""
369+
return self.to_str()
370+
371+
def __eq__(self, other):
372+
"""Returns true if both objects are equal"""
373+
if not isinstance(other, AddBaselineCheckConfigRequest):
374+
return False
375+
376+
return self.to_dict() == other.to_dict()
377+
378+
def __ne__(self, other):
379+
"""Returns true if both objects are not equal"""
380+
if not isinstance(other, AddBaselineCheckConfigRequest):
381+
return True
382+
383+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)