tencentcloud-sdk-python-waf 3.1.45__tar.gz → 3.1.52__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/setup.py +1 -1
  3. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/tencentcloud/waf/v20180125/models.py +465 -2
  5. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/tencentcloud/waf/v20180125/waf_client.py +23 -0
  6. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/tencentcloud/waf/v20180125/waf_client_async.py +18 -0
  7. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_waf-3.1.52/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_waf-3.1.45/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/README.rst +0 -0
  11. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/tencentcloud/waf/__init__.py +0 -0
  13. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/tencentcloud/waf/v20180125/__init__.py +0 -0
  14. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_waf-3.1.45 → tencentcloud_sdk_python_waf-3.1.52}/tencentcloud_sdk_python_waf.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.1.45
3
+ Version: 3.1.52
4
4
  Summary: Tencent Cloud Waf 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.45
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.52
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-waf',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.45,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.52,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Waf SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.45'
17
+ __version__ = '3.1.52'
@@ -4901,6 +4901,134 @@ class ApiSecSceneRuleEntry(AbstractModel):
4901
4901
 
4902
4902
 
4903
4903
 
4904
+ class ApiSecSensitiveRule(AbstractModel):
4905
+ r"""api安全敏感规则列表
4906
+
4907
+ """
4908
+
4909
+ def __init__(self):
4910
+ r"""
4911
+ :param _RuleName: 身份证号,唯一主键
4912
+ :type RuleName: str
4913
+ :param _Source: 表示OS系统内置,"custom"表示客户自定义
4914
+ :type Source: str
4915
+ :param _Status: 开关状态,0:表示关,1表示开
4916
+ :type Status: int
4917
+ :param _Level: 风险等级,100,200,300表示低中高三个等级
4918
+ :type Level: str
4919
+ :param _Timestamp: 修改时间,默认0,表示没有进行修改
4920
+ :type Timestamp: int
4921
+ :param _CustomRule: 自定义规则部分
4922
+ :type CustomRule: :class:`tencentcloud.waf.v20180125.models.ApiSecCustomSensitiveRule`
4923
+ :param _IsPan: 是否泛化 0:不泛化,1:泛化
4924
+ :type IsPan: int
4925
+ """
4926
+ self._RuleName = None
4927
+ self._Source = None
4928
+ self._Status = None
4929
+ self._Level = None
4930
+ self._Timestamp = None
4931
+ self._CustomRule = None
4932
+ self._IsPan = None
4933
+
4934
+ @property
4935
+ def RuleName(self):
4936
+ r"""身份证号,唯一主键
4937
+ :rtype: str
4938
+ """
4939
+ return self._RuleName
4940
+
4941
+ @RuleName.setter
4942
+ def RuleName(self, RuleName):
4943
+ self._RuleName = RuleName
4944
+
4945
+ @property
4946
+ def Source(self):
4947
+ r"""表示OS系统内置,"custom"表示客户自定义
4948
+ :rtype: str
4949
+ """
4950
+ return self._Source
4951
+
4952
+ @Source.setter
4953
+ def Source(self, Source):
4954
+ self._Source = Source
4955
+
4956
+ @property
4957
+ def Status(self):
4958
+ r"""开关状态,0:表示关,1表示开
4959
+ :rtype: int
4960
+ """
4961
+ return self._Status
4962
+
4963
+ @Status.setter
4964
+ def Status(self, Status):
4965
+ self._Status = Status
4966
+
4967
+ @property
4968
+ def Level(self):
4969
+ r"""风险等级,100,200,300表示低中高三个等级
4970
+ :rtype: str
4971
+ """
4972
+ return self._Level
4973
+
4974
+ @Level.setter
4975
+ def Level(self, Level):
4976
+ self._Level = Level
4977
+
4978
+ @property
4979
+ def Timestamp(self):
4980
+ r"""修改时间,默认0,表示没有进行修改
4981
+ :rtype: int
4982
+ """
4983
+ return self._Timestamp
4984
+
4985
+ @Timestamp.setter
4986
+ def Timestamp(self, Timestamp):
4987
+ self._Timestamp = Timestamp
4988
+
4989
+ @property
4990
+ def CustomRule(self):
4991
+ r"""自定义规则部分
4992
+ :rtype: :class:`tencentcloud.waf.v20180125.models.ApiSecCustomSensitiveRule`
4993
+ """
4994
+ return self._CustomRule
4995
+
4996
+ @CustomRule.setter
4997
+ def CustomRule(self, CustomRule):
4998
+ self._CustomRule = CustomRule
4999
+
5000
+ @property
5001
+ def IsPan(self):
5002
+ r"""是否泛化 0:不泛化,1:泛化
5003
+ :rtype: int
5004
+ """
5005
+ return self._IsPan
5006
+
5007
+ @IsPan.setter
5008
+ def IsPan(self, IsPan):
5009
+ self._IsPan = IsPan
5010
+
5011
+
5012
+ def _deserialize(self, params):
5013
+ self._RuleName = params.get("RuleName")
5014
+ self._Source = params.get("Source")
5015
+ self._Status = params.get("Status")
5016
+ self._Level = params.get("Level")
5017
+ self._Timestamp = params.get("Timestamp")
5018
+ if params.get("CustomRule") is not None:
5019
+ self._CustomRule = ApiSecCustomSensitiveRule()
5020
+ self._CustomRule._deserialize(params.get("CustomRule"))
5021
+ self._IsPan = params.get("IsPan")
5022
+ memeber_set = set(params.keys())
5023
+ for name, value in vars(self).items():
5024
+ property_name = name[1:]
5025
+ if property_name in memeber_set:
5026
+ memeber_set.remove(property_name)
5027
+ if len(memeber_set) > 0:
5028
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5029
+
5030
+
5031
+
4904
5032
  class Area(AbstractModel):
4905
5033
  r"""地域信息
4906
5034
 
@@ -17060,6 +17188,341 @@ class DescribeApiListVersionTwoResponse(AbstractModel):
17060
17188
  self._RequestId = params.get("RequestId")
17061
17189
 
17062
17190
 
17191
+ class DescribeApiSecSensitiveRuleListRequest(AbstractModel):
17192
+ r"""DescribeApiSecSensitiveRuleList请求参数结构体
17193
+
17194
+ """
17195
+
17196
+ def __init__(self):
17197
+ r"""
17198
+ :param _Domain: 域名
17199
+ :type Domain: str
17200
+ :param _IsQueryApiExtractRule: 是否查询api提取规则策略,true表示查询
17201
+ :type IsQueryApiExtractRule: bool
17202
+ :param _IsQueryApiPrivilegeRule: 是否查询api鉴权规则
17203
+ :type IsQueryApiPrivilegeRule: bool
17204
+ :param _IsQueryApiSceneRule: 是否查询api场景规则
17205
+ :type IsQueryApiSceneRule: bool
17206
+ :param _RuleName: 查询鉴权配置的时候,该rule只返回鉴权配置的规则
17207
+ :type RuleName: str
17208
+ :param _IsQueryApiCustomEventRule: 是否查询api自定义事件规则
17209
+ :type IsQueryApiCustomEventRule: bool
17210
+ :param _IsQueryApiExcludeRule: 是否查询无效api排除策略
17211
+ :type IsQueryApiExcludeRule: bool
17212
+ """
17213
+ self._Domain = None
17214
+ self._IsQueryApiExtractRule = None
17215
+ self._IsQueryApiPrivilegeRule = None
17216
+ self._IsQueryApiSceneRule = None
17217
+ self._RuleName = None
17218
+ self._IsQueryApiCustomEventRule = None
17219
+ self._IsQueryApiExcludeRule = None
17220
+
17221
+ @property
17222
+ def Domain(self):
17223
+ r"""域名
17224
+ :rtype: str
17225
+ """
17226
+ return self._Domain
17227
+
17228
+ @Domain.setter
17229
+ def Domain(self, Domain):
17230
+ self._Domain = Domain
17231
+
17232
+ @property
17233
+ def IsQueryApiExtractRule(self):
17234
+ r"""是否查询api提取规则策略,true表示查询
17235
+ :rtype: bool
17236
+ """
17237
+ return self._IsQueryApiExtractRule
17238
+
17239
+ @IsQueryApiExtractRule.setter
17240
+ def IsQueryApiExtractRule(self, IsQueryApiExtractRule):
17241
+ self._IsQueryApiExtractRule = IsQueryApiExtractRule
17242
+
17243
+ @property
17244
+ def IsQueryApiPrivilegeRule(self):
17245
+ r"""是否查询api鉴权规则
17246
+ :rtype: bool
17247
+ """
17248
+ return self._IsQueryApiPrivilegeRule
17249
+
17250
+ @IsQueryApiPrivilegeRule.setter
17251
+ def IsQueryApiPrivilegeRule(self, IsQueryApiPrivilegeRule):
17252
+ self._IsQueryApiPrivilegeRule = IsQueryApiPrivilegeRule
17253
+
17254
+ @property
17255
+ def IsQueryApiSceneRule(self):
17256
+ r"""是否查询api场景规则
17257
+ :rtype: bool
17258
+ """
17259
+ return self._IsQueryApiSceneRule
17260
+
17261
+ @IsQueryApiSceneRule.setter
17262
+ def IsQueryApiSceneRule(self, IsQueryApiSceneRule):
17263
+ self._IsQueryApiSceneRule = IsQueryApiSceneRule
17264
+
17265
+ @property
17266
+ def RuleName(self):
17267
+ r"""查询鉴权配置的时候,该rule只返回鉴权配置的规则
17268
+ :rtype: str
17269
+ """
17270
+ return self._RuleName
17271
+
17272
+ @RuleName.setter
17273
+ def RuleName(self, RuleName):
17274
+ self._RuleName = RuleName
17275
+
17276
+ @property
17277
+ def IsQueryApiCustomEventRule(self):
17278
+ r"""是否查询api自定义事件规则
17279
+ :rtype: bool
17280
+ """
17281
+ return self._IsQueryApiCustomEventRule
17282
+
17283
+ @IsQueryApiCustomEventRule.setter
17284
+ def IsQueryApiCustomEventRule(self, IsQueryApiCustomEventRule):
17285
+ self._IsQueryApiCustomEventRule = IsQueryApiCustomEventRule
17286
+
17287
+ @property
17288
+ def IsQueryApiExcludeRule(self):
17289
+ r"""是否查询无效api排除策略
17290
+ :rtype: bool
17291
+ """
17292
+ return self._IsQueryApiExcludeRule
17293
+
17294
+ @IsQueryApiExcludeRule.setter
17295
+ def IsQueryApiExcludeRule(self, IsQueryApiExcludeRule):
17296
+ self._IsQueryApiExcludeRule = IsQueryApiExcludeRule
17297
+
17298
+
17299
+ def _deserialize(self, params):
17300
+ self._Domain = params.get("Domain")
17301
+ self._IsQueryApiExtractRule = params.get("IsQueryApiExtractRule")
17302
+ self._IsQueryApiPrivilegeRule = params.get("IsQueryApiPrivilegeRule")
17303
+ self._IsQueryApiSceneRule = params.get("IsQueryApiSceneRule")
17304
+ self._RuleName = params.get("RuleName")
17305
+ self._IsQueryApiCustomEventRule = params.get("IsQueryApiCustomEventRule")
17306
+ self._IsQueryApiExcludeRule = params.get("IsQueryApiExcludeRule")
17307
+ memeber_set = set(params.keys())
17308
+ for name, value in vars(self).items():
17309
+ property_name = name[1:]
17310
+ if property_name in memeber_set:
17311
+ memeber_set.remove(property_name)
17312
+ if len(memeber_set) > 0:
17313
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
17314
+
17315
+
17316
+
17317
+ class DescribeApiSecSensitiveRuleListResponse(AbstractModel):
17318
+ r"""DescribeApiSecSensitiveRuleList返回参数结构体
17319
+
17320
+ """
17321
+
17322
+ def __init__(self):
17323
+ r"""
17324
+ :param _Data: api敏感规则列表
17325
+ 注意:此字段可能返回 null,表示取不到有效值。
17326
+ :type Data: list of ApiSecSensitiveRule
17327
+ :param _Total: 规则数量
17328
+ 注意:此字段可能返回 null,表示取不到有效值。
17329
+ :type Total: int
17330
+ :param _Status: 自定义敏感检测规则总开关
17331
+ :type Status: int
17332
+ :param _RuleNameList: 非内置规则的rulename列表
17333
+ 注意:此字段可能返回 null,表示取不到有效值。
17334
+ :type RuleNameList: list of str
17335
+ :param _ApiExtractRule: api提取规则列表
17336
+ 注意:此字段可能返回 null,表示取不到有效值。
17337
+ :type ApiExtractRule: list of ApiSecExtractRule
17338
+ :param _ApiSecPrivilegeRule: api鉴权规则列表
17339
+ 注意:此字段可能返回 null,表示取不到有效值。
17340
+ :type ApiSecPrivilegeRule: list of ApiSecPrivilegeRule
17341
+ :param _ApiSecSceneRule: api场景规则列表
17342
+ 注意:此字段可能返回 null,表示取不到有效值。
17343
+ :type ApiSecSceneRule: list of ApiSecSceneRule
17344
+ :param _ApiSecCustomEventRule: 自定义事件规则
17345
+ 注意:此字段可能返回 null,表示取不到有效值。
17346
+ :type ApiSecCustomEventRule: list of ApiSecCustomEventRule
17347
+ :param _ApiExcludeRule: 无效api排除规则列表
17348
+ 注意:此字段可能返回 null,表示取不到有效值。
17349
+ :type ApiExcludeRule: list of ApiSecExcludeRule
17350
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17351
+ :type RequestId: str
17352
+ """
17353
+ self._Data = None
17354
+ self._Total = None
17355
+ self._Status = None
17356
+ self._RuleNameList = None
17357
+ self._ApiExtractRule = None
17358
+ self._ApiSecPrivilegeRule = None
17359
+ self._ApiSecSceneRule = None
17360
+ self._ApiSecCustomEventRule = None
17361
+ self._ApiExcludeRule = None
17362
+ self._RequestId = None
17363
+
17364
+ @property
17365
+ def Data(self):
17366
+ r"""api敏感规则列表
17367
+ 注意:此字段可能返回 null,表示取不到有效值。
17368
+ :rtype: list of ApiSecSensitiveRule
17369
+ """
17370
+ return self._Data
17371
+
17372
+ @Data.setter
17373
+ def Data(self, Data):
17374
+ self._Data = Data
17375
+
17376
+ @property
17377
+ def Total(self):
17378
+ r"""规则数量
17379
+ 注意:此字段可能返回 null,表示取不到有效值。
17380
+ :rtype: int
17381
+ """
17382
+ return self._Total
17383
+
17384
+ @Total.setter
17385
+ def Total(self, Total):
17386
+ self._Total = Total
17387
+
17388
+ @property
17389
+ def Status(self):
17390
+ r"""自定义敏感检测规则总开关
17391
+ :rtype: int
17392
+ """
17393
+ return self._Status
17394
+
17395
+ @Status.setter
17396
+ def Status(self, Status):
17397
+ self._Status = Status
17398
+
17399
+ @property
17400
+ def RuleNameList(self):
17401
+ r"""非内置规则的rulename列表
17402
+ 注意:此字段可能返回 null,表示取不到有效值。
17403
+ :rtype: list of str
17404
+ """
17405
+ return self._RuleNameList
17406
+
17407
+ @RuleNameList.setter
17408
+ def RuleNameList(self, RuleNameList):
17409
+ self._RuleNameList = RuleNameList
17410
+
17411
+ @property
17412
+ def ApiExtractRule(self):
17413
+ r"""api提取规则列表
17414
+ 注意:此字段可能返回 null,表示取不到有效值。
17415
+ :rtype: list of ApiSecExtractRule
17416
+ """
17417
+ return self._ApiExtractRule
17418
+
17419
+ @ApiExtractRule.setter
17420
+ def ApiExtractRule(self, ApiExtractRule):
17421
+ self._ApiExtractRule = ApiExtractRule
17422
+
17423
+ @property
17424
+ def ApiSecPrivilegeRule(self):
17425
+ r"""api鉴权规则列表
17426
+ 注意:此字段可能返回 null,表示取不到有效值。
17427
+ :rtype: list of ApiSecPrivilegeRule
17428
+ """
17429
+ return self._ApiSecPrivilegeRule
17430
+
17431
+ @ApiSecPrivilegeRule.setter
17432
+ def ApiSecPrivilegeRule(self, ApiSecPrivilegeRule):
17433
+ self._ApiSecPrivilegeRule = ApiSecPrivilegeRule
17434
+
17435
+ @property
17436
+ def ApiSecSceneRule(self):
17437
+ r"""api场景规则列表
17438
+ 注意:此字段可能返回 null,表示取不到有效值。
17439
+ :rtype: list of ApiSecSceneRule
17440
+ """
17441
+ return self._ApiSecSceneRule
17442
+
17443
+ @ApiSecSceneRule.setter
17444
+ def ApiSecSceneRule(self, ApiSecSceneRule):
17445
+ self._ApiSecSceneRule = ApiSecSceneRule
17446
+
17447
+ @property
17448
+ def ApiSecCustomEventRule(self):
17449
+ r"""自定义事件规则
17450
+ 注意:此字段可能返回 null,表示取不到有效值。
17451
+ :rtype: list of ApiSecCustomEventRule
17452
+ """
17453
+ return self._ApiSecCustomEventRule
17454
+
17455
+ @ApiSecCustomEventRule.setter
17456
+ def ApiSecCustomEventRule(self, ApiSecCustomEventRule):
17457
+ self._ApiSecCustomEventRule = ApiSecCustomEventRule
17458
+
17459
+ @property
17460
+ def ApiExcludeRule(self):
17461
+ r"""无效api排除规则列表
17462
+ 注意:此字段可能返回 null,表示取不到有效值。
17463
+ :rtype: list of ApiSecExcludeRule
17464
+ """
17465
+ return self._ApiExcludeRule
17466
+
17467
+ @ApiExcludeRule.setter
17468
+ def ApiExcludeRule(self, ApiExcludeRule):
17469
+ self._ApiExcludeRule = ApiExcludeRule
17470
+
17471
+ @property
17472
+ def RequestId(self):
17473
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17474
+ :rtype: str
17475
+ """
17476
+ return self._RequestId
17477
+
17478
+ @RequestId.setter
17479
+ def RequestId(self, RequestId):
17480
+ self._RequestId = RequestId
17481
+
17482
+
17483
+ def _deserialize(self, params):
17484
+ if params.get("Data") is not None:
17485
+ self._Data = []
17486
+ for item in params.get("Data"):
17487
+ obj = ApiSecSensitiveRule()
17488
+ obj._deserialize(item)
17489
+ self._Data.append(obj)
17490
+ self._Total = params.get("Total")
17491
+ self._Status = params.get("Status")
17492
+ self._RuleNameList = params.get("RuleNameList")
17493
+ if params.get("ApiExtractRule") is not None:
17494
+ self._ApiExtractRule = []
17495
+ for item in params.get("ApiExtractRule"):
17496
+ obj = ApiSecExtractRule()
17497
+ obj._deserialize(item)
17498
+ self._ApiExtractRule.append(obj)
17499
+ if params.get("ApiSecPrivilegeRule") is not None:
17500
+ self._ApiSecPrivilegeRule = []
17501
+ for item in params.get("ApiSecPrivilegeRule"):
17502
+ obj = ApiSecPrivilegeRule()
17503
+ obj._deserialize(item)
17504
+ self._ApiSecPrivilegeRule.append(obj)
17505
+ if params.get("ApiSecSceneRule") is not None:
17506
+ self._ApiSecSceneRule = []
17507
+ for item in params.get("ApiSecSceneRule"):
17508
+ obj = ApiSecSceneRule()
17509
+ obj._deserialize(item)
17510
+ self._ApiSecSceneRule.append(obj)
17511
+ if params.get("ApiSecCustomEventRule") is not None:
17512
+ self._ApiSecCustomEventRule = []
17513
+ for item in params.get("ApiSecCustomEventRule"):
17514
+ obj = ApiSecCustomEventRule()
17515
+ obj._deserialize(item)
17516
+ self._ApiSecCustomEventRule.append(obj)
17517
+ if params.get("ApiExcludeRule") is not None:
17518
+ self._ApiExcludeRule = []
17519
+ for item in params.get("ApiExcludeRule"):
17520
+ obj = ApiSecExcludeRule()
17521
+ obj._deserialize(item)
17522
+ self._ApiExcludeRule.append(obj)
17523
+ self._RequestId = params.get("RequestId")
17524
+
17525
+
17063
17526
  class DescribeAreaBanAreasRequest(AbstractModel):
17064
17527
  r"""DescribeAreaBanAreas请求参数结构体
17065
17528
 
@@ -53891,7 +54354,7 @@ class UpsertCCRuleRequest(AbstractModel):
53891
54354
  :type Url: str
53892
54355
  :param _MatchFunc: 匹配方法,0表示等于,1表示前缀匹配,2表示包含,3表示不等于,6表示后缀匹配,7表示不包含
53893
54356
  :type MatchFunc: int
53894
- :param _OptionsArr: CC的匹配条件JSON序列化的字符串,示例:[{\"key\":\"Method\",\"args\":[\"=R0VU\"],\"match\":\"0\",\"encodeflag\":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader、CaptchaRisk、CaptchaDeviceRisk、CaptchaScore match可选值为,当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、2(包含),3(不等于)、7(不包含)、 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空)。 Key为IPLocation时,可选值为13(属于)、14(不属于)。 Key为CaptchaRisk时,可选值为0(等于)、3(不等于)、13(属于)、14(不属于)、12(存在)、5(不存在)。 Key为CaptchaDeviceRisk时,可选值为0(等于)、3(不等于)、13(属于)、14(不属于)、12(存在)、5(不存在)。 Key为CaptchaScore时,可选值为15(数值等于)、16(数值不等于)、17(数值大于)、18(数值小于)、19(数值大于等于)、20(数值小于等于)、12(存在)、5(不存在)。args用来表示匹配内容,需要设置encodeflag为true,当KeyPost、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当KeyReferer、User-Agent时,用等号=来串接Value,类似=YWJj。
54357
+ :param _OptionsArr: CC的匹配条件JSON序列化的字符串,示例:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key可选值为 URL、Method、Post、Referer、Cookie、User-Agent、CustomHeader、IPLocation、CaptchaRisk、CaptchaDeviceRisk、CaptchaScorematch可选值为:当Key为URL的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)。 当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含), 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、4(内容为空)、5(不存在)。 Key为IPLocation时,可选值为13(属于)、14(不属于)。 Key为CaptchaRisk时,可选值为15(数值等于)、16(数值不等于)、13(属于)、14(不属于)、12(存在)、5(不存在)。 Key为CaptchaDeviceRisk时,可选值为13(属于)、14(不属于)、12(存在)、5(不存在)。 Key为CaptchaScore时,可选值为15(数值等于)、17(数值大于)、18(数值小于)、19(数值大于等于)、20(数值小于等于)、12(存在)、5(不存在)。args用来表示匹配内容,需要设置encodeflag为true。当匹配字段(Key)为Post、Cookie、CustomHeader时,需要将具体的参数名和参数值分别进行Base64编码并去掉末尾的等号=,然后再用等号=连接起来,类似YWJj=ZGVm;当匹配字段(Key)为Referer、User-Agent时,只需将目标值进行Base64编码并去掉末尾的等号=,然后再在其前面用等号=来串接,类似=YWJj。
53895
54358
  :type OptionsArr: str
53896
54359
  :param _Edition: waf版本,sparta-waf或者clb-waf
53897
54360
  :type Edition: str
@@ -54081,7 +54544,7 @@ class UpsertCCRuleRequest(AbstractModel):
54081
54544
 
54082
54545
  @property
54083
54546
  def OptionsArr(self):
54084
- r"""CC的匹配条件JSON序列化的字符串,示例:[{\"key\":\"Method\",\"args\":[\"=R0VU\"],\"match\":\"0\",\"encodeflag\":true}] Key可选值为 Method、Post、Referer、Cookie、User-Agent、CustomHeader、CaptchaRisk、CaptchaDeviceRisk、CaptchaScore match可选值为,当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、2(包含),3(不等于)、7(不包含)、 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空)。 Key为IPLocation时,可选值为13(属于)、14(不属于)。 Key为CaptchaRisk时,可选值为0(等于)、3(不等于)、13(属于)、14(不属于)、12(存在)、5(不存在)。 Key为CaptchaDeviceRisk时,可选值为0(等于)、3(不等于)、13(属于)、14(不属于)、12(存在)、5(不存在)。 Key为CaptchaScore时,可选值为15(数值等于)、16(数值不等于)、17(数值大于)、18(数值小于)、19(数值大于等于)、20(数值小于等于)、12(存在)、5(不存在)。args用来表示匹配内容,需要设置encodeflag为true,当KeyPost、Cookie、CustomHeader时,用等号=来分别串接Key和Value,并分别用Base64编码,类似YWJj=YWJj。当KeyReferer、User-Agent时,用等号=来串接Value,类似=YWJj。
54547
+ r"""CC的匹配条件JSON序列化的字符串,示例:[{"key":"Method","args":["=R0VU"],"match":"0","encodeflag":true}] Key可选值为 URL、Method、Post、Referer、Cookie、User-Agent、CustomHeader、IPLocation、CaptchaRisk、CaptchaDeviceRisk、CaptchaScorematch可选值为:当Key为URL的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)。 当Key为Method的时候可选值为0(等于)、3(不等于)。 Key为Post的时候可选值为0(等于)、3(不等于),Key为Cookie的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含), 当Key为Referer的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为User-Agent的时候可选值为0(等于)、3(不等于)、1(前缀匹配)、6(后缀匹配)、2(包含)、7(不包含)、12(存在)、5(不存在)、4(内容为空), 当Key为CustomHeader的时候可选值为0(等于)、3(不等于)、2(包含)、7(不包含)、4(内容为空)、5(不存在)。 Key为IPLocation时,可选值为13(属于)、14(不属于)。 Key为CaptchaRisk时,可选值为15(数值等于)、16(数值不等于)、13(属于)、14(不属于)、12(存在)、5(不存在)。 Key为CaptchaDeviceRisk时,可选值为13(属于)、14(不属于)、12(存在)、5(不存在)。 Key为CaptchaScore时,可选值为15(数值等于)、17(数值大于)、18(数值小于)、19(数值大于等于)、20(数值小于等于)、12(存在)、5(不存在)。args用来表示匹配内容,需要设置encodeflag为true。当匹配字段(Key)为Post、Cookie、CustomHeader时,需要将具体的参数名和参数值分别进行Base64编码并去掉末尾的等号=,然后再用等号=连接起来,类似YWJj=ZGVm;当匹配字段(Key)为Referer、User-Agent时,只需将目标值进行Base64编码并去掉末尾的等号=,然后再在其前面用等号=来串接,类似=YWJj。
54085
54548
  :rtype: str
54086
54549
  """
54087
54550
  return self._OptionsArr
@@ -1176,6 +1176,29 @@ class WafClient(AbstractClient):
1176
1176
  raise TencentCloudSDKException(type(e).__name__, str(e))
1177
1177
 
1178
1178
 
1179
+ def DescribeApiSecSensitiveRuleList(self, request):
1180
+ r"""获取api安全敏感规则列表
1181
+
1182
+ :param request: Request instance for DescribeApiSecSensitiveRuleList.
1183
+ :type request: :class:`tencentcloud.waf.v20180125.models.DescribeApiSecSensitiveRuleListRequest`
1184
+ :rtype: :class:`tencentcloud.waf.v20180125.models.DescribeApiSecSensitiveRuleListResponse`
1185
+
1186
+ """
1187
+ try:
1188
+ params = request._serialize()
1189
+ headers = request.headers
1190
+ body = self.call("DescribeApiSecSensitiveRuleList", params, headers=headers)
1191
+ response = json.loads(body)
1192
+ model = models.DescribeApiSecSensitiveRuleListResponse()
1193
+ model._deserialize(response["Response"])
1194
+ return model
1195
+ except Exception as e:
1196
+ if isinstance(e, TencentCloudSDKException):
1197
+ raise
1198
+ else:
1199
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1200
+
1201
+
1179
1202
  def DescribeAreaBanAreas(self, request):
1180
1203
  r"""获取地域封禁配置包括地域封禁开关,设置封禁的地区信息
1181
1204
 
@@ -925,6 +925,24 @@ class WafClient(AbstractClient):
925
925
 
926
926
  return await self.call_and_deserialize(**kwargs)
927
927
 
928
+ async def DescribeApiSecSensitiveRuleList(
929
+ self,
930
+ request: models.DescribeApiSecSensitiveRuleListRequest,
931
+ opts: Dict = None,
932
+ ) -> models.DescribeApiSecSensitiveRuleListResponse:
933
+ """
934
+ 获取api安全敏感规则列表
935
+ """
936
+
937
+ kwargs = {}
938
+ kwargs["action"] = "DescribeApiSecSensitiveRuleList"
939
+ kwargs["params"] = request._serialize()
940
+ kwargs["resp_cls"] = models.DescribeApiSecSensitiveRuleListResponse
941
+ kwargs["headers"] = request.headers
942
+ kwargs["opts"] = opts or {}
943
+
944
+ return await self.call_and_deserialize(**kwargs)
945
+
928
946
  async def DescribeAreaBanAreas(
929
947
  self,
930
948
  request: models.DescribeAreaBanAreasRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.1.45
3
+ Version: 3.1.52
4
4
  Summary: Tencent Cloud Waf 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.45
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.52
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.52
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.45