tencentcloud-sdk-python-cfw 3.1.190__tar.gz → 3.1.202__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_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/setup.py +1 -1
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/tencentcloud/cfw/v20190904/models.py +110 -65
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/tencentcloud_sdk_python_cfw.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cfw-3.1.202/tencentcloud_sdk_python_cfw.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cfw-3.1.190/tencentcloud_sdk_python_cfw.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/README.rst +0 -0
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/tencentcloud/cfw/__init__.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/tencentcloud/cfw/v20190904/__init__.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/tencentcloud/cfw/v20190904/cfw_client.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/tencentcloud/cfw/v20190904/cfw_client_async.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/tencentcloud/cfw/v20190904/errorcodes.py +0 -0
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/tencentcloud_sdk_python_cfw.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/tencentcloud_sdk_python_cfw.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cfw-3.1.190 → tencentcloud_sdk_python_cfw-3.1.202}/tencentcloud_sdk_python_cfw.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cfw
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.202
|
|
4
4
|
Summary: Tencent Cloud Cfw 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.202
|
|
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-cfw',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.202,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cfw SDK for Python',
|
|
@@ -4164,7 +4164,7 @@ class Column(AbstractModel):
|
|
|
4164
4164
|
|
|
4165
4165
|
|
|
4166
4166
|
class CommonFilter(AbstractModel):
|
|
4167
|
-
r"""
|
|
4167
|
+
r"""通用的列表检索过滤选项.
|
|
4168
4168
|
|
|
4169
4169
|
"""
|
|
4170
4170
|
|
|
@@ -5129,36 +5129,38 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5129
5129
|
|
|
5130
5130
|
def __init__(self):
|
|
5131
5131
|
r"""
|
|
5132
|
-
:param _AlertDirection: <p
|
|
5132
|
+
:param _AlertDirection: <p>当前日志方向: 0 出向 1 入向</p>
|
|
5133
5133
|
:type AlertDirection: int
|
|
5134
|
-
:param _HandleDirection: <p
|
|
5134
|
+
:param _HandleDirection: <p>处置方向: 0出向 1入向 0,1出入向 3内网</p>
|
|
5135
5135
|
:type HandleDirection: str
|
|
5136
|
-
:param _HandleTime: <p
|
|
5136
|
+
:param _HandleTime: <p>处置时间<br>1 1天<br>7 7天<br>-2 永久</p>
|
|
5137
5137
|
:type HandleTime: int
|
|
5138
|
-
:param _HandleType: <p
|
|
5138
|
+
:param _HandleType: <p>处置类型<br>当HandleIdList 不为空时:1封禁 2放通<br>当HandleIpList 不为空时:3放通 4封禁</p>
|
|
5139
5139
|
:type HandleType: int
|
|
5140
|
-
:param _AssetIdList: <p
|
|
5140
|
+
:param _AssetIdList: <p>隔离资产列表</p>
|
|
5141
5141
|
:type AssetIdList: list of str
|
|
5142
|
-
:param _BlockDomain: <p
|
|
5142
|
+
:param _BlockDomain: <p>封禁域名-保留字段</p>
|
|
5143
5143
|
:type BlockDomain: str
|
|
5144
5144
|
:param _CfwAiAgentOperationSource: <p>AI操作来源</p><p>枚举值:</p><ul><li>console: 控制台来源值</li><li>wechat: 微信</li></ul>。
|
|
5145
5145
|
:type CfwAiAgentOperationSource: str
|
|
5146
|
-
:param _HandleComment: <p
|
|
5146
|
+
:param _HandleComment: <p>处置描述</p>
|
|
5147
5147
|
:type HandleComment: str
|
|
5148
|
-
:param _HandleEventIdList: <p
|
|
5148
|
+
:param _HandleEventIdList: <p>处置对象,事件ID列表, IdLists,IpList,EventIdList三选一</p>
|
|
5149
5149
|
:type HandleEventIdList: list of str
|
|
5150
|
-
:param _HandleIdList: <p
|
|
5150
|
+
:param _HandleIdList: <p>处置对象,ID列表, IdLists,IpList,EventIdList三选一</p>
|
|
5151
5151
|
:type HandleIdList: list of str
|
|
5152
|
-
:param _HandleIpList: <p
|
|
5152
|
+
:param _HandleIpList: <p>处置对象,IP列表, IdLists,IpList,EventIdList三选一</p>
|
|
5153
5153
|
:type HandleIpList: list of str
|
|
5154
|
-
:param _IgnoreReason: <p
|
|
5154
|
+
:param _IgnoreReason: <p>放通原因:<br>0默认 1重复 2误报 3紧急放通</p>
|
|
5155
5155
|
:type IgnoreReason: int
|
|
5156
|
-
:param _IsolateType: <p
|
|
5156
|
+
:param _IsolateType: <p>隔离类型 1 互联网入站 2 互联网出站 4 内网访问</p>
|
|
5157
5157
|
:type IsolateType: list of int
|
|
5158
|
-
:param _TargetEventIdList: <p
|
|
5158
|
+
:param _TargetEventIdList: <p>处置HandleIpList,属于的告警事件ID</p>
|
|
5159
5159
|
:type TargetEventIdList: list of str
|
|
5160
|
-
:param _WhiteIpList: <p
|
|
5160
|
+
:param _WhiteIpList: <p>加白IP列表 隔离时放通的ip列表</p>
|
|
5161
5161
|
:type WhiteIpList: list of str
|
|
5162
|
+
:param _ExcludeIdList: <p>排除列表</p>
|
|
5163
|
+
:type ExcludeIdList: list of str
|
|
5162
5164
|
"""
|
|
5163
5165
|
self._AlertDirection = None
|
|
5164
5166
|
self._HandleDirection = None
|
|
@@ -5175,10 +5177,11 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5175
5177
|
self._IsolateType = None
|
|
5176
5178
|
self._TargetEventIdList = None
|
|
5177
5179
|
self._WhiteIpList = None
|
|
5180
|
+
self._ExcludeIdList = None
|
|
5178
5181
|
|
|
5179
5182
|
@property
|
|
5180
5183
|
def AlertDirection(self):
|
|
5181
|
-
r"""<p
|
|
5184
|
+
r"""<p>当前日志方向: 0 出向 1 入向</p>
|
|
5182
5185
|
:rtype: int
|
|
5183
5186
|
"""
|
|
5184
5187
|
return self._AlertDirection
|
|
@@ -5189,7 +5192,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5189
5192
|
|
|
5190
5193
|
@property
|
|
5191
5194
|
def HandleDirection(self):
|
|
5192
|
-
r"""<p
|
|
5195
|
+
r"""<p>处置方向: 0出向 1入向 0,1出入向 3内网</p>
|
|
5193
5196
|
:rtype: str
|
|
5194
5197
|
"""
|
|
5195
5198
|
return self._HandleDirection
|
|
@@ -5200,7 +5203,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5200
5203
|
|
|
5201
5204
|
@property
|
|
5202
5205
|
def HandleTime(self):
|
|
5203
|
-
r"""<p
|
|
5206
|
+
r"""<p>处置时间<br>1 1天<br>7 7天<br>-2 永久</p>
|
|
5204
5207
|
:rtype: int
|
|
5205
5208
|
"""
|
|
5206
5209
|
return self._HandleTime
|
|
@@ -5211,7 +5214,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5211
5214
|
|
|
5212
5215
|
@property
|
|
5213
5216
|
def HandleType(self):
|
|
5214
|
-
r"""<p
|
|
5217
|
+
r"""<p>处置类型<br>当HandleIdList 不为空时:1封禁 2放通<br>当HandleIpList 不为空时:3放通 4封禁</p>
|
|
5215
5218
|
:rtype: int
|
|
5216
5219
|
"""
|
|
5217
5220
|
return self._HandleType
|
|
@@ -5222,7 +5225,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5222
5225
|
|
|
5223
5226
|
@property
|
|
5224
5227
|
def AssetIdList(self):
|
|
5225
|
-
r"""<p
|
|
5228
|
+
r"""<p>隔离资产列表</p>
|
|
5226
5229
|
:rtype: list of str
|
|
5227
5230
|
"""
|
|
5228
5231
|
return self._AssetIdList
|
|
@@ -5233,7 +5236,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5233
5236
|
|
|
5234
5237
|
@property
|
|
5235
5238
|
def BlockDomain(self):
|
|
5236
|
-
r"""<p
|
|
5239
|
+
r"""<p>封禁域名-保留字段</p>
|
|
5237
5240
|
:rtype: str
|
|
5238
5241
|
"""
|
|
5239
5242
|
return self._BlockDomain
|
|
@@ -5255,7 +5258,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5255
5258
|
|
|
5256
5259
|
@property
|
|
5257
5260
|
def HandleComment(self):
|
|
5258
|
-
r"""<p
|
|
5261
|
+
r"""<p>处置描述</p>
|
|
5259
5262
|
:rtype: str
|
|
5260
5263
|
"""
|
|
5261
5264
|
return self._HandleComment
|
|
@@ -5266,7 +5269,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5266
5269
|
|
|
5267
5270
|
@property
|
|
5268
5271
|
def HandleEventIdList(self):
|
|
5269
|
-
r"""<p
|
|
5272
|
+
r"""<p>处置对象,事件ID列表, IdLists,IpList,EventIdList三选一</p>
|
|
5270
5273
|
:rtype: list of str
|
|
5271
5274
|
"""
|
|
5272
5275
|
return self._HandleEventIdList
|
|
@@ -5277,7 +5280,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5277
5280
|
|
|
5278
5281
|
@property
|
|
5279
5282
|
def HandleIdList(self):
|
|
5280
|
-
r"""<p
|
|
5283
|
+
r"""<p>处置对象,ID列表, IdLists,IpList,EventIdList三选一</p>
|
|
5281
5284
|
:rtype: list of str
|
|
5282
5285
|
"""
|
|
5283
5286
|
return self._HandleIdList
|
|
@@ -5288,7 +5291,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5288
5291
|
|
|
5289
5292
|
@property
|
|
5290
5293
|
def HandleIpList(self):
|
|
5291
|
-
r"""<p
|
|
5294
|
+
r"""<p>处置对象,IP列表, IdLists,IpList,EventIdList三选一</p>
|
|
5292
5295
|
:rtype: list of str
|
|
5293
5296
|
"""
|
|
5294
5297
|
return self._HandleIpList
|
|
@@ -5299,7 +5302,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5299
5302
|
|
|
5300
5303
|
@property
|
|
5301
5304
|
def IgnoreReason(self):
|
|
5302
|
-
r"""<p
|
|
5305
|
+
r"""<p>放通原因:<br>0默认 1重复 2误报 3紧急放通</p>
|
|
5303
5306
|
:rtype: int
|
|
5304
5307
|
"""
|
|
5305
5308
|
return self._IgnoreReason
|
|
@@ -5310,7 +5313,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5310
5313
|
|
|
5311
5314
|
@property
|
|
5312
5315
|
def IsolateType(self):
|
|
5313
|
-
r"""<p
|
|
5316
|
+
r"""<p>隔离类型 1 互联网入站 2 互联网出站 4 内网访问</p>
|
|
5314
5317
|
:rtype: list of int
|
|
5315
5318
|
"""
|
|
5316
5319
|
return self._IsolateType
|
|
@@ -5321,7 +5324,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5321
5324
|
|
|
5322
5325
|
@property
|
|
5323
5326
|
def TargetEventIdList(self):
|
|
5324
|
-
r"""<p
|
|
5327
|
+
r"""<p>处置HandleIpList,属于的告警事件ID</p>
|
|
5325
5328
|
:rtype: list of str
|
|
5326
5329
|
"""
|
|
5327
5330
|
return self._TargetEventIdList
|
|
@@ -5332,7 +5335,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5332
5335
|
|
|
5333
5336
|
@property
|
|
5334
5337
|
def WhiteIpList(self):
|
|
5335
|
-
r"""<p
|
|
5338
|
+
r"""<p>加白IP列表 隔离时放通的ip列表</p>
|
|
5336
5339
|
:rtype: list of str
|
|
5337
5340
|
"""
|
|
5338
5341
|
return self._WhiteIpList
|
|
@@ -5341,6 +5344,17 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5341
5344
|
def WhiteIpList(self, WhiteIpList):
|
|
5342
5345
|
self._WhiteIpList = WhiteIpList
|
|
5343
5346
|
|
|
5347
|
+
@property
|
|
5348
|
+
def ExcludeIdList(self):
|
|
5349
|
+
r"""<p>排除列表</p>
|
|
5350
|
+
:rtype: list of str
|
|
5351
|
+
"""
|
|
5352
|
+
return self._ExcludeIdList
|
|
5353
|
+
|
|
5354
|
+
@ExcludeIdList.setter
|
|
5355
|
+
def ExcludeIdList(self, ExcludeIdList):
|
|
5356
|
+
self._ExcludeIdList = ExcludeIdList
|
|
5357
|
+
|
|
5344
5358
|
|
|
5345
5359
|
def _deserialize(self, params):
|
|
5346
5360
|
self._AlertDirection = params.get("AlertDirection")
|
|
@@ -5358,6 +5372,7 @@ class CreateAlertCenterRuleAsyncRequest(AbstractModel):
|
|
|
5358
5372
|
self._IsolateType = params.get("IsolateType")
|
|
5359
5373
|
self._TargetEventIdList = params.get("TargetEventIdList")
|
|
5360
5374
|
self._WhiteIpList = params.get("WhiteIpList")
|
|
5375
|
+
self._ExcludeIdList = params.get("ExcludeIdList")
|
|
5361
5376
|
memeber_set = set(params.keys())
|
|
5362
5377
|
for name, value in vars(self).items():
|
|
5363
5378
|
property_name = name[1:]
|
|
@@ -5375,11 +5390,11 @@ class CreateAlertCenterRuleAsyncResponse(AbstractModel):
|
|
|
5375
5390
|
|
|
5376
5391
|
def __init__(self):
|
|
5377
5392
|
r"""
|
|
5378
|
-
:param _ReturnCode:
|
|
5393
|
+
:param _ReturnCode: <p>返回状态码:<br>0 成功<br>非0 失败</p>
|
|
5379
5394
|
:type ReturnCode: int
|
|
5380
|
-
:param _ReturnMsg:
|
|
5395
|
+
:param _ReturnMsg: <p>返回信息:<br>success 成功<br>其他</p>
|
|
5381
5396
|
:type ReturnMsg: str
|
|
5382
|
-
:param _Status:
|
|
5397
|
+
:param _Status: <p>处置状态码:0 处置成功 1处置中 -1 通用错误,不用处理-3 表示重复,需重新刷新列表其他</p>
|
|
5383
5398
|
:type Status: int
|
|
5384
5399
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5385
5400
|
:type RequestId: str
|
|
@@ -5391,7 +5406,7 @@ class CreateAlertCenterRuleAsyncResponse(AbstractModel):
|
|
|
5391
5406
|
|
|
5392
5407
|
@property
|
|
5393
5408
|
def ReturnCode(self):
|
|
5394
|
-
r"""
|
|
5409
|
+
r"""<p>返回状态码:<br>0 成功<br>非0 失败</p>
|
|
5395
5410
|
:rtype: int
|
|
5396
5411
|
"""
|
|
5397
5412
|
return self._ReturnCode
|
|
@@ -5402,7 +5417,7 @@ class CreateAlertCenterRuleAsyncResponse(AbstractModel):
|
|
|
5402
5417
|
|
|
5403
5418
|
@property
|
|
5404
5419
|
def ReturnMsg(self):
|
|
5405
|
-
r"""
|
|
5420
|
+
r"""<p>返回信息:<br>success 成功<br>其他</p>
|
|
5406
5421
|
:rtype: str
|
|
5407
5422
|
"""
|
|
5408
5423
|
return self._ReturnMsg
|
|
@@ -5413,7 +5428,7 @@ class CreateAlertCenterRuleAsyncResponse(AbstractModel):
|
|
|
5413
5428
|
|
|
5414
5429
|
@property
|
|
5415
5430
|
def Status(self):
|
|
5416
|
-
r"""
|
|
5431
|
+
r"""<p>处置状态码:0 处置成功 1处置中 -1 通用错误,不用处理-3 表示重复,需重新刷新列表其他</p>
|
|
5417
5432
|
:rtype: int
|
|
5418
5433
|
"""
|
|
5419
5434
|
return self._Status
|
|
@@ -29540,17 +29555,20 @@ class ModifyBlockIgnoreRuleNewRequest(AbstractModel):
|
|
|
29540
29555
|
|
|
29541
29556
|
def __init__(self):
|
|
29542
29557
|
r"""
|
|
29543
|
-
:param _Rule:
|
|
29558
|
+
:param _Rule: <p>规则</p>
|
|
29544
29559
|
:type Rule: :class:`tencentcloud.cfw.v20190904.models.BanAndAllowRule`
|
|
29545
|
-
:param _RuleType: RuleType: 1放通列表 2外部IP 3域名 4情报 5资产 6自定义规则 7
|
|
29560
|
+
:param _RuleType: <p>RuleType: 1放通列表 2外部IP 3域名 4情报 5资产 6自定义规则 7入侵防御规则</p>
|
|
29546
29561
|
:type RuleType: int
|
|
29562
|
+
:param _CoverDuplicate: <p>冲突选择</p><p>枚举值:</p><ul><li>1: 删除对端写入</li><li>0: 跳过写入</li></ul>
|
|
29563
|
+
:type CoverDuplicate: int
|
|
29547
29564
|
"""
|
|
29548
29565
|
self._Rule = None
|
|
29549
29566
|
self._RuleType = None
|
|
29567
|
+
self._CoverDuplicate = None
|
|
29550
29568
|
|
|
29551
29569
|
@property
|
|
29552
29570
|
def Rule(self):
|
|
29553
|
-
r"""
|
|
29571
|
+
r"""<p>规则</p>
|
|
29554
29572
|
:rtype: :class:`tencentcloud.cfw.v20190904.models.BanAndAllowRule`
|
|
29555
29573
|
"""
|
|
29556
29574
|
return self._Rule
|
|
@@ -29561,7 +29579,7 @@ class ModifyBlockIgnoreRuleNewRequest(AbstractModel):
|
|
|
29561
29579
|
|
|
29562
29580
|
@property
|
|
29563
29581
|
def RuleType(self):
|
|
29564
|
-
r"""RuleType: 1放通列表 2外部IP 3域名 4情报 5资产 6自定义规则 7
|
|
29582
|
+
r"""<p>RuleType: 1放通列表 2外部IP 3域名 4情报 5资产 6自定义规则 7入侵防御规则</p>
|
|
29565
29583
|
:rtype: int
|
|
29566
29584
|
"""
|
|
29567
29585
|
return self._RuleType
|
|
@@ -29570,12 +29588,24 @@ class ModifyBlockIgnoreRuleNewRequest(AbstractModel):
|
|
|
29570
29588
|
def RuleType(self, RuleType):
|
|
29571
29589
|
self._RuleType = RuleType
|
|
29572
29590
|
|
|
29591
|
+
@property
|
|
29592
|
+
def CoverDuplicate(self):
|
|
29593
|
+
r"""<p>冲突选择</p><p>枚举值:</p><ul><li>1: 删除对端写入</li><li>0: 跳过写入</li></ul>
|
|
29594
|
+
:rtype: int
|
|
29595
|
+
"""
|
|
29596
|
+
return self._CoverDuplicate
|
|
29597
|
+
|
|
29598
|
+
@CoverDuplicate.setter
|
|
29599
|
+
def CoverDuplicate(self, CoverDuplicate):
|
|
29600
|
+
self._CoverDuplicate = CoverDuplicate
|
|
29601
|
+
|
|
29573
29602
|
|
|
29574
29603
|
def _deserialize(self, params):
|
|
29575
29604
|
if params.get("Rule") is not None:
|
|
29576
29605
|
self._Rule = BanAndAllowRule()
|
|
29577
29606
|
self._Rule._deserialize(params.get("Rule"))
|
|
29578
29607
|
self._RuleType = params.get("RuleType")
|
|
29608
|
+
self._CoverDuplicate = params.get("CoverDuplicate")
|
|
29579
29609
|
memeber_set = set(params.keys())
|
|
29580
29610
|
for name, value in vars(self).items():
|
|
29581
29611
|
property_name = name[1:]
|
|
@@ -44898,32 +44928,34 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
44898
44928
|
|
|
44899
44929
|
def __init__(self):
|
|
44900
44930
|
r"""
|
|
44901
|
-
:param _DstIP:
|
|
44931
|
+
:param _DstIP: <p>访问目的。RuleType=2:本字段与 SrcIP 两个字段中恰好填写一个,值为精确 IP;RuleType=5:本字段与 SrcIP 两个字段中恰好填写一个,值为资产 instance_id;RuleType=6:与 SrcIP 至少一项为具体 IP,另一项可省略或使用同 IP 版本的 0.0.0.0/0、::/0,两项均为具体 IP 时使用相同 IP 版本;FwType=16 时具体目的 IPv4 可带端口。RuleType=8:IP、CIDR、IP:端口或 CIDR:端口,可与 SrcIP 组合;RuleType=9:IP、CIDR 或带端口地址,可与 NDR 专属条件组合;搭配 IdsRuleId 时使用 IPv4 或 IPv4:端口。IPv6 带端口时使用 [IPv6]:端口;已选字段的多值用逗号分隔。</p>
|
|
44902
44932
|
:type DstIP: str
|
|
44903
|
-
:param _FileMd5:
|
|
44933
|
+
:param _FileMd5: <p>文件 MD5,仅 RuleType=9。32 位十六进制;多值逗号分隔,最多 10 个。</p>
|
|
44904
44934
|
:type FileMd5: str
|
|
44905
|
-
:param _FileName:
|
|
44935
|
+
:param _FileName: <p>文件名,仅 RuleType=9;支持精确匹配及 ?、* 通配符,区分大小写;多值用逗号分隔,最多 10 个。</p>
|
|
44906
44936
|
:type FileName: str
|
|
44907
|
-
:param _HostName: HTTP Host,仅 RuleType=9;填写主机名或 IP,支持 ?、*
|
|
44937
|
+
:param _HostName: <p>HTTP Host,仅 RuleType=9;填写主机名或 IP,支持 ?、* 通配符并区分大小写;多值用逗号分隔。</p>
|
|
44908
44938
|
:type HostName: str
|
|
44909
|
-
:param _Id:
|
|
44939
|
+
:param _Id: <p>服务端内部字段。</p>
|
|
44910
44940
|
:type Id: int
|
|
44911
|
-
:param _IdsRuleId: IPS 规则 ID,取自 DescribeIpsRuleListNew.Data[].RuleID。RuleType=6 必填;RuleType=9 可选,填写时同时填写 SrcIP 或 DstIP
|
|
44941
|
+
:param _IdsRuleId: <p>IPS 规则 ID,取自 DescribeIpsRuleListNew.Data[].RuleID。RuleType=6 必填;RuleType=9 可选,填写时同时填写 SrcIP 或 DstIP。</p>
|
|
44912
44942
|
:type IdsRuleId: str
|
|
44913
|
-
:param _IdsRuleName:
|
|
44943
|
+
:param _IdsRuleName: <p>服务端保留字段。</p>
|
|
44914
44944
|
:type IdsRuleName: str
|
|
44915
|
-
:param _Ioc: RuleType=3 填一个合法域名;RuleType=4 填情报 IP、CIDR
|
|
44945
|
+
:param _Ioc: <p>RuleType=3 填一个合法域名;RuleType=4 填情报 IP、CIDR 或域名。</p>
|
|
44916
44946
|
:type Ioc: str
|
|
44917
|
-
:param _SrcIP:
|
|
44947
|
+
:param _SrcIP: <p>访问源。RuleType=2:本字段与 DstIP 两个字段中恰好填写一个,值为精确 IP;RuleType=5:本字段与 DstIP 两个字段中恰好填写一个,值为资产 instance_id;RuleType=6:与 DstIP 至少一项为具体 IP,另一项可省略或使用同 IP 版本的 0.0.0.0/0、::/0,两项均为具体 IP 时使用相同 IP 版本;RuleType=8:IP 或 CIDR;RuleType=9:IP 或 CIDR,可与 NDR 专属条件组合;搭配 IdsRuleId 时使用 IPv4。源地址使用无端口格式;已选字段的多值用逗号分隔。</p>
|
|
44918
44948
|
:type SrcIP: str
|
|
44919
|
-
:param _Url: HTTP URL,仅 RuleType=9;支持精确匹配及 ?、* 通配符,区分大小写;多值用逗号分隔,最多 10
|
|
44949
|
+
:param _Url: <p>HTTP URL,仅 RuleType=9;支持精确匹配及 ?、* 通配符,区分大小写;多值用逗号分隔,最多 10 个。</p>
|
|
44920
44950
|
:type Url: str
|
|
44921
|
-
:param _UserAgent: HTTP User-Agent,仅 RuleType=9;支持精确匹配及 ?、* 通配符,区分大小写;单值少于 255 个字符,最多 2 个,多值用
|
|
44951
|
+
:param _UserAgent: <p>HTTP User-Agent,仅 RuleType=9;支持精确匹配及 ?、* 通配符,区分大小写;单值少于 255 个字符,最多 2 个,多值用 <#cfw-splite#> 分隔。</p>
|
|
44922
44952
|
:type UserAgent: str
|
|
44923
|
-
:param _WhiteId:
|
|
44953
|
+
:param _WhiteId: <p>白名单策略唯一 ID。</p>
|
|
44924
44954
|
:type WhiteId: str
|
|
44925
|
-
:param _XForwardedFor: HTTP X-Forwarded-For,仅 RuleType=9;精确 IP,多值逗号分隔,最多 50
|
|
44955
|
+
:param _XForwardedFor: <p>HTTP X-Forwarded-For,仅 RuleType=9;精确 IP,多值逗号分隔,最多 50 个。</p>
|
|
44926
44956
|
:type XForwardedFor: str
|
|
44957
|
+
:param _RiskEventType: <p>风险事件类型</p>
|
|
44958
|
+
:type RiskEventType: str
|
|
44927
44959
|
"""
|
|
44928
44960
|
self._DstIP = None
|
|
44929
44961
|
self._FileMd5 = None
|
|
@@ -44938,10 +44970,11 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
44938
44970
|
self._UserAgent = None
|
|
44939
44971
|
self._WhiteId = None
|
|
44940
44972
|
self._XForwardedFor = None
|
|
44973
|
+
self._RiskEventType = None
|
|
44941
44974
|
|
|
44942
44975
|
@property
|
|
44943
44976
|
def DstIP(self):
|
|
44944
|
-
r"""
|
|
44977
|
+
r"""<p>访问目的。RuleType=2:本字段与 SrcIP 两个字段中恰好填写一个,值为精确 IP;RuleType=5:本字段与 SrcIP 两个字段中恰好填写一个,值为资产 instance_id;RuleType=6:与 SrcIP 至少一项为具体 IP,另一项可省略或使用同 IP 版本的 0.0.0.0/0、::/0,两项均为具体 IP 时使用相同 IP 版本;FwType=16 时具体目的 IPv4 可带端口。RuleType=8:IP、CIDR、IP:端口或 CIDR:端口,可与 SrcIP 组合;RuleType=9:IP、CIDR 或带端口地址,可与 NDR 专属条件组合;搭配 IdsRuleId 时使用 IPv4 或 IPv4:端口。IPv6 带端口时使用 [IPv6]:端口;已选字段的多值用逗号分隔。</p>
|
|
44945
44978
|
:rtype: str
|
|
44946
44979
|
"""
|
|
44947
44980
|
return self._DstIP
|
|
@@ -44952,7 +44985,7 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
44952
44985
|
|
|
44953
44986
|
@property
|
|
44954
44987
|
def FileMd5(self):
|
|
44955
|
-
r"""
|
|
44988
|
+
r"""<p>文件 MD5,仅 RuleType=9。32 位十六进制;多值逗号分隔,最多 10 个。</p>
|
|
44956
44989
|
:rtype: str
|
|
44957
44990
|
"""
|
|
44958
44991
|
return self._FileMd5
|
|
@@ -44963,7 +44996,7 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
44963
44996
|
|
|
44964
44997
|
@property
|
|
44965
44998
|
def FileName(self):
|
|
44966
|
-
r"""
|
|
44999
|
+
r"""<p>文件名,仅 RuleType=9;支持精确匹配及 ?、* 通配符,区分大小写;多值用逗号分隔,最多 10 个。</p>
|
|
44967
45000
|
:rtype: str
|
|
44968
45001
|
"""
|
|
44969
45002
|
return self._FileName
|
|
@@ -44974,7 +45007,7 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
44974
45007
|
|
|
44975
45008
|
@property
|
|
44976
45009
|
def HostName(self):
|
|
44977
|
-
r"""HTTP Host,仅 RuleType=9;填写主机名或 IP,支持 ?、*
|
|
45010
|
+
r"""<p>HTTP Host,仅 RuleType=9;填写主机名或 IP,支持 ?、* 通配符并区分大小写;多值用逗号分隔。</p>
|
|
44978
45011
|
:rtype: str
|
|
44979
45012
|
"""
|
|
44980
45013
|
return self._HostName
|
|
@@ -44985,7 +45018,7 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
44985
45018
|
|
|
44986
45019
|
@property
|
|
44987
45020
|
def Id(self):
|
|
44988
|
-
r"""
|
|
45021
|
+
r"""<p>服务端内部字段。</p>
|
|
44989
45022
|
:rtype: int
|
|
44990
45023
|
"""
|
|
44991
45024
|
return self._Id
|
|
@@ -44996,7 +45029,7 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
44996
45029
|
|
|
44997
45030
|
@property
|
|
44998
45031
|
def IdsRuleId(self):
|
|
44999
|
-
r"""IPS 规则 ID,取自 DescribeIpsRuleListNew.Data[].RuleID。RuleType=6 必填;RuleType=9 可选,填写时同时填写 SrcIP 或 DstIP
|
|
45032
|
+
r"""<p>IPS 规则 ID,取自 DescribeIpsRuleListNew.Data[].RuleID。RuleType=6 必填;RuleType=9 可选,填写时同时填写 SrcIP 或 DstIP。</p>
|
|
45000
45033
|
:rtype: str
|
|
45001
45034
|
"""
|
|
45002
45035
|
return self._IdsRuleId
|
|
@@ -45007,7 +45040,7 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
45007
45040
|
|
|
45008
45041
|
@property
|
|
45009
45042
|
def IdsRuleName(self):
|
|
45010
|
-
r"""
|
|
45043
|
+
r"""<p>服务端保留字段。</p>
|
|
45011
45044
|
:rtype: str
|
|
45012
45045
|
"""
|
|
45013
45046
|
return self._IdsRuleName
|
|
@@ -45018,7 +45051,7 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
45018
45051
|
|
|
45019
45052
|
@property
|
|
45020
45053
|
def Ioc(self):
|
|
45021
|
-
r"""RuleType=3 填一个合法域名;RuleType=4 填情报 IP、CIDR
|
|
45054
|
+
r"""<p>RuleType=3 填一个合法域名;RuleType=4 填情报 IP、CIDR 或域名。</p>
|
|
45022
45055
|
:rtype: str
|
|
45023
45056
|
"""
|
|
45024
45057
|
return self._Ioc
|
|
@@ -45029,7 +45062,7 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
45029
45062
|
|
|
45030
45063
|
@property
|
|
45031
45064
|
def SrcIP(self):
|
|
45032
|
-
r"""
|
|
45065
|
+
r"""<p>访问源。RuleType=2:本字段与 DstIP 两个字段中恰好填写一个,值为精确 IP;RuleType=5:本字段与 DstIP 两个字段中恰好填写一个,值为资产 instance_id;RuleType=6:与 DstIP 至少一项为具体 IP,另一项可省略或使用同 IP 版本的 0.0.0.0/0、::/0,两项均为具体 IP 时使用相同 IP 版本;RuleType=8:IP 或 CIDR;RuleType=9:IP 或 CIDR,可与 NDR 专属条件组合;搭配 IdsRuleId 时使用 IPv4。源地址使用无端口格式;已选字段的多值用逗号分隔。</p>
|
|
45033
45066
|
:rtype: str
|
|
45034
45067
|
"""
|
|
45035
45068
|
return self._SrcIP
|
|
@@ -45040,7 +45073,7 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
45040
45073
|
|
|
45041
45074
|
@property
|
|
45042
45075
|
def Url(self):
|
|
45043
|
-
r"""HTTP URL,仅 RuleType=9;支持精确匹配及 ?、* 通配符,区分大小写;多值用逗号分隔,最多 10
|
|
45076
|
+
r"""<p>HTTP URL,仅 RuleType=9;支持精确匹配及 ?、* 通配符,区分大小写;多值用逗号分隔,最多 10 个。</p>
|
|
45044
45077
|
:rtype: str
|
|
45045
45078
|
"""
|
|
45046
45079
|
return self._Url
|
|
@@ -45051,7 +45084,7 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
45051
45084
|
|
|
45052
45085
|
@property
|
|
45053
45086
|
def UserAgent(self):
|
|
45054
|
-
r"""HTTP User-Agent,仅 RuleType=9;支持精确匹配及 ?、* 通配符,区分大小写;单值少于 255 个字符,最多 2 个,多值用
|
|
45087
|
+
r"""<p>HTTP User-Agent,仅 RuleType=9;支持精确匹配及 ?、* 通配符,区分大小写;单值少于 255 个字符,最多 2 个,多值用 <#cfw-splite#> 分隔。</p>
|
|
45055
45088
|
:rtype: str
|
|
45056
45089
|
"""
|
|
45057
45090
|
return self._UserAgent
|
|
@@ -45062,7 +45095,7 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
45062
45095
|
|
|
45063
45096
|
@property
|
|
45064
45097
|
def WhiteId(self):
|
|
45065
|
-
r"""
|
|
45098
|
+
r"""<p>白名单策略唯一 ID。</p>
|
|
45066
45099
|
:rtype: str
|
|
45067
45100
|
"""
|
|
45068
45101
|
return self._WhiteId
|
|
@@ -45073,7 +45106,7 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
45073
45106
|
|
|
45074
45107
|
@property
|
|
45075
45108
|
def XForwardedFor(self):
|
|
45076
|
-
r"""HTTP X-Forwarded-For,仅 RuleType=9;精确 IP,多值逗号分隔,最多 50
|
|
45109
|
+
r"""<p>HTTP X-Forwarded-For,仅 RuleType=9;精确 IP,多值逗号分隔,最多 50 个。</p>
|
|
45077
45110
|
:rtype: str
|
|
45078
45111
|
"""
|
|
45079
45112
|
return self._XForwardedFor
|
|
@@ -45082,6 +45115,17 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
45082
45115
|
def XForwardedFor(self, XForwardedFor):
|
|
45083
45116
|
self._XForwardedFor = XForwardedFor
|
|
45084
45117
|
|
|
45118
|
+
@property
|
|
45119
|
+
def RiskEventType(self):
|
|
45120
|
+
r"""<p>风险事件类型</p>
|
|
45121
|
+
:rtype: str
|
|
45122
|
+
"""
|
|
45123
|
+
return self._RiskEventType
|
|
45124
|
+
|
|
45125
|
+
@RiskEventType.setter
|
|
45126
|
+
def RiskEventType(self, RiskEventType):
|
|
45127
|
+
self._RiskEventType = RiskEventType
|
|
45128
|
+
|
|
45085
45129
|
|
|
45086
45130
|
def _deserialize(self, params):
|
|
45087
45131
|
self._DstIP = params.get("DstIP")
|
|
@@ -45097,6 +45141,7 @@ class WhiteRuleInfo(AbstractModel):
|
|
|
45097
45141
|
self._UserAgent = params.get("UserAgent")
|
|
45098
45142
|
self._WhiteId = params.get("WhiteId")
|
|
45099
45143
|
self._XForwardedFor = params.get("XForwardedFor")
|
|
45144
|
+
self._RiskEventType = params.get("RiskEventType")
|
|
45100
45145
|
memeber_set = set(params.keys())
|
|
45101
45146
|
for name, value in vars(self).items():
|
|
45102
45147
|
property_name = name[1:]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cfw
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.202
|
|
4
4
|
Summary: Tencent Cloud Cfw 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.202
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.202
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.190
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|