tencentcloud-sdk-python-cwp 3.1.112__tar.gz → 3.1.124__tar.gz
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.
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/setup.py +1 -1
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/tencentcloud/cwp/v20180228/cwp_client.py +23 -0
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/tencentcloud/cwp/v20180228/cwp_client_async.py +18 -0
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/tencentcloud/cwp/v20180228/models.py +242 -0
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/tencentcloud_sdk_python_cwp.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cwp-3.1.124/tencentcloud_sdk_python_cwp.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cwp-3.1.112/tencentcloud_sdk_python_cwp.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/README.rst +0 -0
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/tencentcloud/cwp/__init__.py +0 -0
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/tencentcloud/cwp/v20180228/__init__.py +0 -0
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/tencentcloud/cwp/v20180228/errorcodes.py +0 -0
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/tencentcloud_sdk_python_cwp.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/tencentcloud_sdk_python_cwp.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cwp-3.1.112 → tencentcloud_sdk_python_cwp-3.1.124}/tencentcloud_sdk_python_cwp.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cwp
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.124
|
|
4
4
|
Summary: Tencent Cloud Cwp SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.124
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-cwp',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.124,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cwp SDK for Python',
|
|
@@ -49,6 +49,29 @@ class CwpClient(AbstractClient):
|
|
|
49
49
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
def AddVulIgnoreRule(self, request):
|
|
53
|
+
r"""添加漏洞忽略规则
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for AddVulIgnoreRule.
|
|
56
|
+
:type request: :class:`tencentcloud.cwp.v20180228.models.AddVulIgnoreRuleRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.cwp.v20180228.models.AddVulIgnoreRuleResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("AddVulIgnoreRule", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.AddVulIgnoreRuleResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
|
+
|
|
74
|
+
|
|
52
75
|
def ChangeRuleEventsIgnoreStatus(self, request):
|
|
53
76
|
r"""根据检测项id或事件id批量忽略事件或取消忽略
|
|
54
77
|
|
|
@@ -43,6 +43,24 @@ class CwpClient(AbstractClient):
|
|
|
43
43
|
|
|
44
44
|
return await self.call_and_deserialize(**kwargs)
|
|
45
45
|
|
|
46
|
+
async def AddVulIgnoreRule(
|
|
47
|
+
self,
|
|
48
|
+
request: models.AddVulIgnoreRuleRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.AddVulIgnoreRuleResponse:
|
|
51
|
+
"""
|
|
52
|
+
添加漏洞忽略规则
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "AddVulIgnoreRule"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.AddVulIgnoreRuleResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
46
64
|
async def ChangeRuleEventsIgnoreStatus(
|
|
47
65
|
self,
|
|
48
66
|
request: models.ChangeRuleEventsIgnoreStatusRequest,
|
|
@@ -236,6 +236,75 @@ class AddLoginWhiteListsResponse(AbstractModel):
|
|
|
236
236
|
self._RequestId = params.get("RequestId")
|
|
237
237
|
|
|
238
238
|
|
|
239
|
+
class AddVulIgnoreRuleRequest(AbstractModel):
|
|
240
|
+
r"""AddVulIgnoreRule请求参数结构体
|
|
241
|
+
|
|
242
|
+
"""
|
|
243
|
+
|
|
244
|
+
def __init__(self):
|
|
245
|
+
r"""
|
|
246
|
+
:param _RuleDetailList: 忽略规则集合
|
|
247
|
+
:type RuleDetailList: list of VulIgnoreRule
|
|
248
|
+
"""
|
|
249
|
+
self._RuleDetailList = None
|
|
250
|
+
|
|
251
|
+
@property
|
|
252
|
+
def RuleDetailList(self):
|
|
253
|
+
r"""忽略规则集合
|
|
254
|
+
:rtype: list of VulIgnoreRule
|
|
255
|
+
"""
|
|
256
|
+
return self._RuleDetailList
|
|
257
|
+
|
|
258
|
+
@RuleDetailList.setter
|
|
259
|
+
def RuleDetailList(self, RuleDetailList):
|
|
260
|
+
self._RuleDetailList = RuleDetailList
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
def _deserialize(self, params):
|
|
264
|
+
if params.get("RuleDetailList") is not None:
|
|
265
|
+
self._RuleDetailList = []
|
|
266
|
+
for item in params.get("RuleDetailList"):
|
|
267
|
+
obj = VulIgnoreRule()
|
|
268
|
+
obj._deserialize(item)
|
|
269
|
+
self._RuleDetailList.append(obj)
|
|
270
|
+
memeber_set = set(params.keys())
|
|
271
|
+
for name, value in vars(self).items():
|
|
272
|
+
property_name = name[1:]
|
|
273
|
+
if property_name in memeber_set:
|
|
274
|
+
memeber_set.remove(property_name)
|
|
275
|
+
if len(memeber_set) > 0:
|
|
276
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
class AddVulIgnoreRuleResponse(AbstractModel):
|
|
281
|
+
r"""AddVulIgnoreRule返回参数结构体
|
|
282
|
+
|
|
283
|
+
"""
|
|
284
|
+
|
|
285
|
+
def __init__(self):
|
|
286
|
+
r"""
|
|
287
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
288
|
+
:type RequestId: str
|
|
289
|
+
"""
|
|
290
|
+
self._RequestId = None
|
|
291
|
+
|
|
292
|
+
@property
|
|
293
|
+
def RequestId(self):
|
|
294
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
295
|
+
:rtype: str
|
|
296
|
+
"""
|
|
297
|
+
return self._RequestId
|
|
298
|
+
|
|
299
|
+
@RequestId.setter
|
|
300
|
+
def RequestId(self, RequestId):
|
|
301
|
+
self._RequestId = RequestId
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
def _deserialize(self, params):
|
|
305
|
+
self._RequestId = params.get("RequestId")
|
|
306
|
+
|
|
307
|
+
|
|
239
308
|
class AlarmInfo(AbstractModel):
|
|
240
309
|
r"""节点关联的告警信息
|
|
241
310
|
|
|
@@ -113394,6 +113463,179 @@ class VulHostTopInfo(AbstractModel):
|
|
|
113394
113463
|
|
|
113395
113464
|
|
|
113396
113465
|
|
|
113466
|
+
class VulIgnoreRule(AbstractModel):
|
|
113467
|
+
r"""漏洞忽略规则
|
|
113468
|
+
|
|
113469
|
+
"""
|
|
113470
|
+
|
|
113471
|
+
def __init__(self):
|
|
113472
|
+
r"""
|
|
113473
|
+
:param _VulID: 漏洞规则ID
|
|
113474
|
+
:type VulID: int
|
|
113475
|
+
:param _AssetScopeType: <li>0:全部主机</li>
|
|
113476
|
+
<li>1:自选主机</li>
|
|
113477
|
+
:type AssetScopeType: int
|
|
113478
|
+
:param _IncludeQuuidList: 自选主机情况下自选主机quuid列表
|
|
113479
|
+
:type IncludeQuuidList: list of str
|
|
113480
|
+
:param _ExcludeQuuidList: 全部主机情况下排出的主机
|
|
113481
|
+
:type ExcludeQuuidList: list of str
|
|
113482
|
+
:param _Remark: 忽略的原因
|
|
113483
|
+
:type Remark: str
|
|
113484
|
+
:param _ConfigHostCount: 配置主机数
|
|
113485
|
+
:type ConfigHostCount: int
|
|
113486
|
+
:param _AffectedHostCount: 实际受影响主机数
|
|
113487
|
+
:type AffectedHostCount: int
|
|
113488
|
+
:param _VulName: 漏洞名字
|
|
113489
|
+
:type VulName: str
|
|
113490
|
+
:param _RuleID: 忽略规则ID
|
|
113491
|
+
:type RuleID: int
|
|
113492
|
+
:param _ModifyTime: 最近更新时间
|
|
113493
|
+
:type ModifyTime: str
|
|
113494
|
+
"""
|
|
113495
|
+
self._VulID = None
|
|
113496
|
+
self._AssetScopeType = None
|
|
113497
|
+
self._IncludeQuuidList = None
|
|
113498
|
+
self._ExcludeQuuidList = None
|
|
113499
|
+
self._Remark = None
|
|
113500
|
+
self._ConfigHostCount = None
|
|
113501
|
+
self._AffectedHostCount = None
|
|
113502
|
+
self._VulName = None
|
|
113503
|
+
self._RuleID = None
|
|
113504
|
+
self._ModifyTime = None
|
|
113505
|
+
|
|
113506
|
+
@property
|
|
113507
|
+
def VulID(self):
|
|
113508
|
+
r"""漏洞规则ID
|
|
113509
|
+
:rtype: int
|
|
113510
|
+
"""
|
|
113511
|
+
return self._VulID
|
|
113512
|
+
|
|
113513
|
+
@VulID.setter
|
|
113514
|
+
def VulID(self, VulID):
|
|
113515
|
+
self._VulID = VulID
|
|
113516
|
+
|
|
113517
|
+
@property
|
|
113518
|
+
def AssetScopeType(self):
|
|
113519
|
+
r"""<li>0:全部主机</li>
|
|
113520
|
+
<li>1:自选主机</li>
|
|
113521
|
+
:rtype: int
|
|
113522
|
+
"""
|
|
113523
|
+
return self._AssetScopeType
|
|
113524
|
+
|
|
113525
|
+
@AssetScopeType.setter
|
|
113526
|
+
def AssetScopeType(self, AssetScopeType):
|
|
113527
|
+
self._AssetScopeType = AssetScopeType
|
|
113528
|
+
|
|
113529
|
+
@property
|
|
113530
|
+
def IncludeQuuidList(self):
|
|
113531
|
+
r"""自选主机情况下自选主机quuid列表
|
|
113532
|
+
:rtype: list of str
|
|
113533
|
+
"""
|
|
113534
|
+
return self._IncludeQuuidList
|
|
113535
|
+
|
|
113536
|
+
@IncludeQuuidList.setter
|
|
113537
|
+
def IncludeQuuidList(self, IncludeQuuidList):
|
|
113538
|
+
self._IncludeQuuidList = IncludeQuuidList
|
|
113539
|
+
|
|
113540
|
+
@property
|
|
113541
|
+
def ExcludeQuuidList(self):
|
|
113542
|
+
r"""全部主机情况下排出的主机
|
|
113543
|
+
:rtype: list of str
|
|
113544
|
+
"""
|
|
113545
|
+
return self._ExcludeQuuidList
|
|
113546
|
+
|
|
113547
|
+
@ExcludeQuuidList.setter
|
|
113548
|
+
def ExcludeQuuidList(self, ExcludeQuuidList):
|
|
113549
|
+
self._ExcludeQuuidList = ExcludeQuuidList
|
|
113550
|
+
|
|
113551
|
+
@property
|
|
113552
|
+
def Remark(self):
|
|
113553
|
+
r"""忽略的原因
|
|
113554
|
+
:rtype: str
|
|
113555
|
+
"""
|
|
113556
|
+
return self._Remark
|
|
113557
|
+
|
|
113558
|
+
@Remark.setter
|
|
113559
|
+
def Remark(self, Remark):
|
|
113560
|
+
self._Remark = Remark
|
|
113561
|
+
|
|
113562
|
+
@property
|
|
113563
|
+
def ConfigHostCount(self):
|
|
113564
|
+
r"""配置主机数
|
|
113565
|
+
:rtype: int
|
|
113566
|
+
"""
|
|
113567
|
+
return self._ConfigHostCount
|
|
113568
|
+
|
|
113569
|
+
@ConfigHostCount.setter
|
|
113570
|
+
def ConfigHostCount(self, ConfigHostCount):
|
|
113571
|
+
self._ConfigHostCount = ConfigHostCount
|
|
113572
|
+
|
|
113573
|
+
@property
|
|
113574
|
+
def AffectedHostCount(self):
|
|
113575
|
+
r"""实际受影响主机数
|
|
113576
|
+
:rtype: int
|
|
113577
|
+
"""
|
|
113578
|
+
return self._AffectedHostCount
|
|
113579
|
+
|
|
113580
|
+
@AffectedHostCount.setter
|
|
113581
|
+
def AffectedHostCount(self, AffectedHostCount):
|
|
113582
|
+
self._AffectedHostCount = AffectedHostCount
|
|
113583
|
+
|
|
113584
|
+
@property
|
|
113585
|
+
def VulName(self):
|
|
113586
|
+
r"""漏洞名字
|
|
113587
|
+
:rtype: str
|
|
113588
|
+
"""
|
|
113589
|
+
return self._VulName
|
|
113590
|
+
|
|
113591
|
+
@VulName.setter
|
|
113592
|
+
def VulName(self, VulName):
|
|
113593
|
+
self._VulName = VulName
|
|
113594
|
+
|
|
113595
|
+
@property
|
|
113596
|
+
def RuleID(self):
|
|
113597
|
+
r"""忽略规则ID
|
|
113598
|
+
:rtype: int
|
|
113599
|
+
"""
|
|
113600
|
+
return self._RuleID
|
|
113601
|
+
|
|
113602
|
+
@RuleID.setter
|
|
113603
|
+
def RuleID(self, RuleID):
|
|
113604
|
+
self._RuleID = RuleID
|
|
113605
|
+
|
|
113606
|
+
@property
|
|
113607
|
+
def ModifyTime(self):
|
|
113608
|
+
r"""最近更新时间
|
|
113609
|
+
:rtype: str
|
|
113610
|
+
"""
|
|
113611
|
+
return self._ModifyTime
|
|
113612
|
+
|
|
113613
|
+
@ModifyTime.setter
|
|
113614
|
+
def ModifyTime(self, ModifyTime):
|
|
113615
|
+
self._ModifyTime = ModifyTime
|
|
113616
|
+
|
|
113617
|
+
|
|
113618
|
+
def _deserialize(self, params):
|
|
113619
|
+
self._VulID = params.get("VulID")
|
|
113620
|
+
self._AssetScopeType = params.get("AssetScopeType")
|
|
113621
|
+
self._IncludeQuuidList = params.get("IncludeQuuidList")
|
|
113622
|
+
self._ExcludeQuuidList = params.get("ExcludeQuuidList")
|
|
113623
|
+
self._Remark = params.get("Remark")
|
|
113624
|
+
self._ConfigHostCount = params.get("ConfigHostCount")
|
|
113625
|
+
self._AffectedHostCount = params.get("AffectedHostCount")
|
|
113626
|
+
self._VulName = params.get("VulName")
|
|
113627
|
+
self._RuleID = params.get("RuleID")
|
|
113628
|
+
self._ModifyTime = params.get("ModifyTime")
|
|
113629
|
+
memeber_set = set(params.keys())
|
|
113630
|
+
for name, value in vars(self).items():
|
|
113631
|
+
property_name = name[1:]
|
|
113632
|
+
if property_name in memeber_set:
|
|
113633
|
+
memeber_set.remove(property_name)
|
|
113634
|
+
if len(memeber_set) > 0:
|
|
113635
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
113636
|
+
|
|
113637
|
+
|
|
113638
|
+
|
|
113397
113639
|
class VulInfoByCveId(AbstractModel):
|
|
113398
113640
|
r"""根据cve_id查询漏洞详情
|
|
113399
113641
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cwp
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.124
|
|
4
4
|
Summary: Tencent Cloud Cwp SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.124
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.124
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.112
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|