tencentcloud-sdk-python-waf 3.1.110__tar.gz → 3.1.112__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.110 → tencentcloud_sdk_python_waf-3.1.112}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/setup.py +1 -1
  3. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/tencentcloud/waf/v20180125/models.py +874 -72
  5. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/tencentcloud/waf/v20180125/waf_client.py +46 -0
  6. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/tencentcloud/waf/v20180125/waf_client_async.py +36 -0
  7. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_waf-3.1.112/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_waf-3.1.110/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/README.rst +0 -0
  11. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/tencentcloud/waf/__init__.py +0 -0
  13. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/tencentcloud/waf/v20180125/__init__.py +0 -0
  14. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_waf-3.1.110 → tencentcloud_sdk_python_waf-3.1.112}/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.110
3
+ Version: 3.1.112
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.110
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.112
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.110,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.112,<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.110'
17
+ __version__ = '3.1.112'
@@ -3973,6 +3973,177 @@ class ApiDetailSampleHistory(AbstractModel):
3973
3973
 
3974
3974
 
3975
3975
 
3976
+ class ApiEvent(AbstractModel):
3977
+ r"""APi事件列表
3978
+
3979
+ """
3980
+
3981
+ def __init__(self):
3982
+ r"""
3983
+ :param _EventId: 事件id
3984
+ :type EventId: str
3985
+ :param _EventType: 事件类型
3986
+ :type EventType: str
3987
+ :param _Level: 事件等级,100,200,300对应低中高
3988
+ :type Level: str
3989
+ :param _Domain: 域名
3990
+ :type Domain: str
3991
+ :param _Mode: 处置状态,1:新发现,2,确认中,3,已确认,4,已下线,5,已忽略
3992
+ :type Mode: str
3993
+ :param _StartTime: 发现时间
3994
+ :type StartTime: int
3995
+ :param _UpdateTime: 更新时间
3996
+ :type UpdateTime: int
3997
+ :param _ApiName: 关联的api
3998
+ :type ApiName: str
3999
+ :param _Method: 请求方式
4000
+ :type Method: str
4001
+ :param _Source: 事件来源,custom标识自定义
4002
+ :type Source: str
4003
+ """
4004
+ self._EventId = None
4005
+ self._EventType = None
4006
+ self._Level = None
4007
+ self._Domain = None
4008
+ self._Mode = None
4009
+ self._StartTime = None
4010
+ self._UpdateTime = None
4011
+ self._ApiName = None
4012
+ self._Method = None
4013
+ self._Source = None
4014
+
4015
+ @property
4016
+ def EventId(self):
4017
+ r"""事件id
4018
+ :rtype: str
4019
+ """
4020
+ return self._EventId
4021
+
4022
+ @EventId.setter
4023
+ def EventId(self, EventId):
4024
+ self._EventId = EventId
4025
+
4026
+ @property
4027
+ def EventType(self):
4028
+ r"""事件类型
4029
+ :rtype: str
4030
+ """
4031
+ return self._EventType
4032
+
4033
+ @EventType.setter
4034
+ def EventType(self, EventType):
4035
+ self._EventType = EventType
4036
+
4037
+ @property
4038
+ def Level(self):
4039
+ r"""事件等级,100,200,300对应低中高
4040
+ :rtype: str
4041
+ """
4042
+ return self._Level
4043
+
4044
+ @Level.setter
4045
+ def Level(self, Level):
4046
+ self._Level = Level
4047
+
4048
+ @property
4049
+ def Domain(self):
4050
+ r"""域名
4051
+ :rtype: str
4052
+ """
4053
+ return self._Domain
4054
+
4055
+ @Domain.setter
4056
+ def Domain(self, Domain):
4057
+ self._Domain = Domain
4058
+
4059
+ @property
4060
+ def Mode(self):
4061
+ r"""处置状态,1:新发现,2,确认中,3,已确认,4,已下线,5,已忽略
4062
+ :rtype: str
4063
+ """
4064
+ return self._Mode
4065
+
4066
+ @Mode.setter
4067
+ def Mode(self, Mode):
4068
+ self._Mode = Mode
4069
+
4070
+ @property
4071
+ def StartTime(self):
4072
+ r"""发现时间
4073
+ :rtype: int
4074
+ """
4075
+ return self._StartTime
4076
+
4077
+ @StartTime.setter
4078
+ def StartTime(self, StartTime):
4079
+ self._StartTime = StartTime
4080
+
4081
+ @property
4082
+ def UpdateTime(self):
4083
+ r"""更新时间
4084
+ :rtype: int
4085
+ """
4086
+ return self._UpdateTime
4087
+
4088
+ @UpdateTime.setter
4089
+ def UpdateTime(self, UpdateTime):
4090
+ self._UpdateTime = UpdateTime
4091
+
4092
+ @property
4093
+ def ApiName(self):
4094
+ r"""关联的api
4095
+ :rtype: str
4096
+ """
4097
+ return self._ApiName
4098
+
4099
+ @ApiName.setter
4100
+ def ApiName(self, ApiName):
4101
+ self._ApiName = ApiName
4102
+
4103
+ @property
4104
+ def Method(self):
4105
+ r"""请求方式
4106
+ :rtype: str
4107
+ """
4108
+ return self._Method
4109
+
4110
+ @Method.setter
4111
+ def Method(self, Method):
4112
+ self._Method = Method
4113
+
4114
+ @property
4115
+ def Source(self):
4116
+ r"""事件来源,custom标识自定义
4117
+ :rtype: str
4118
+ """
4119
+ return self._Source
4120
+
4121
+ @Source.setter
4122
+ def Source(self, Source):
4123
+ self._Source = Source
4124
+
4125
+
4126
+ def _deserialize(self, params):
4127
+ self._EventId = params.get("EventId")
4128
+ self._EventType = params.get("EventType")
4129
+ self._Level = params.get("Level")
4130
+ self._Domain = params.get("Domain")
4131
+ self._Mode = params.get("Mode")
4132
+ self._StartTime = params.get("StartTime")
4133
+ self._UpdateTime = params.get("UpdateTime")
4134
+ self._ApiName = params.get("ApiName")
4135
+ self._Method = params.get("Method")
4136
+ self._Source = params.get("Source")
4137
+ memeber_set = set(params.keys())
4138
+ for name, value in vars(self).items():
4139
+ property_name = name[1:]
4140
+ if property_name in memeber_set:
4141
+ memeber_set.remove(property_name)
4142
+ if len(memeber_set) > 0:
4143
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4144
+
4145
+
4146
+
3976
4147
  class ApiGuardContent(AbstractModel):
3977
4148
  r"""guard content
3978
4149
 
@@ -4488,113 +4659,299 @@ class ApiPkg(AbstractModel):
4488
4659
 
4489
4660
 
4490
4661
 
4491
- class ApiSecCustomEventRule(AbstractModel):
4492
- r"""api安全自定义事件规则结构体
4662
+ class ApiSecAttackSource(AbstractModel):
4663
+ r"""api安全攻击源详情
4493
4664
 
4494
4665
  """
4495
4666
 
4496
4667
  def __init__(self):
4497
4668
  r"""
4498
- :param _RuleName: 规则名称
4499
- :type RuleName: str
4500
- :param _Status: 开关,1:开,0:关
4501
- :type Status: int
4502
- :param _ApiNameOp: api匹配列表
4503
- :type ApiNameOp: list of ApiNameOp
4504
- :param _Description: 事件详情
4505
- :type Description: str
4506
- :param _UpdateTime: 时间戳,出参有该值,入参不需要传没有
4507
- :type UpdateTime: int
4508
- :param _MatchRuleList: 匹配规则列表
4509
- :type MatchRuleList: list of ApiSecSceneRuleEntry
4510
- :param _StatRuleList: 统计规则列表
4511
- :type StatRuleList: list of ApiSecSceneRuleEntry
4512
- :param _ReqFrequency: 访问频次,第一个字段表示次数,第二个字段表示分钟
4513
- :type ReqFrequency: list of int
4514
- :param _RiskLevel: 风险等级,取值为100,200,300,分别表示低位、中危、高危
4515
- :type RiskLevel: str
4516
- :param _Source: 规则来源
4517
- :type Source: str
4669
+ :param _SrcIp: 攻击来源ip
4670
+ :type SrcIp: str
4671
+ :param _EventLevel: 威胁等级
4672
+ :type EventLevel: str
4673
+ :param _BotLabel: BOT标签
4674
+ :type BotLabel: str
4675
+ :param _Timestamp: 变更时间
4676
+ :type Timestamp: int
4677
+ :param _City: 地理位置
4678
+ :type City: str
4679
+ :param _StartTime: 开始时间
4680
+ :type StartTime: int
4681
+ :param _EventCount: 关联事件数量
4682
+ :type EventCount: int
4683
+ :param _AttackCount: 攻击数量
4684
+ :type AttackCount: int
4685
+ :param _MissUserName: 缺失参数名,当事件类型是缺失参数名,缺失参数名和密码时,返回此字段
4686
+ :type MissUserName: str
4687
+ :param _AttackDetail: 当是水平越权和垂直越权时,返回此字段
4688
+ :type AttackDetail: list of str
4689
+ :param _MissPassword: 缺失密码参数,当事件类型是缺失参数名,缺失参数名和密码时,返回此字段
4690
+ :type MissPassword: str
4691
+ """
4692
+ self._SrcIp = None
4693
+ self._EventLevel = None
4694
+ self._BotLabel = None
4695
+ self._Timestamp = None
4696
+ self._City = None
4697
+ self._StartTime = None
4698
+ self._EventCount = None
4699
+ self._AttackCount = None
4700
+ self._MissUserName = None
4701
+ self._AttackDetail = None
4702
+ self._MissPassword = None
4703
+
4704
+ @property
4705
+ def SrcIp(self):
4706
+ r"""攻击来源ip
4707
+ :rtype: str
4518
4708
  """
4519
- self._RuleName = None
4520
- self._Status = None
4521
- self._ApiNameOp = None
4522
- self._Description = None
4523
- self._UpdateTime = None
4524
- self._MatchRuleList = None
4525
- self._StatRuleList = None
4526
- self._ReqFrequency = None
4527
- self._RiskLevel = None
4528
- self._Source = None
4709
+ return self._SrcIp
4710
+
4711
+ @SrcIp.setter
4712
+ def SrcIp(self, SrcIp):
4713
+ self._SrcIp = SrcIp
4529
4714
 
4530
4715
  @property
4531
- def RuleName(self):
4532
- r"""规则名称
4716
+ def EventLevel(self):
4717
+ r"""威胁等级
4533
4718
  :rtype: str
4534
4719
  """
4535
- return self._RuleName
4720
+ return self._EventLevel
4536
4721
 
4537
- @RuleName.setter
4538
- def RuleName(self, RuleName):
4539
- self._RuleName = RuleName
4722
+ @EventLevel.setter
4723
+ def EventLevel(self, EventLevel):
4724
+ self._EventLevel = EventLevel
4540
4725
 
4541
4726
  @property
4542
- def Status(self):
4543
- r"""开关,1:开,0:关
4544
- :rtype: int
4727
+ def BotLabel(self):
4728
+ r"""BOT标签
4729
+ :rtype: str
4545
4730
  """
4546
- return self._Status
4731
+ return self._BotLabel
4547
4732
 
4548
- @Status.setter
4549
- def Status(self, Status):
4550
- self._Status = Status
4733
+ @BotLabel.setter
4734
+ def BotLabel(self, BotLabel):
4735
+ self._BotLabel = BotLabel
4551
4736
 
4552
4737
  @property
4553
- def ApiNameOp(self):
4554
- r"""api匹配列表
4555
- :rtype: list of ApiNameOp
4738
+ def Timestamp(self):
4739
+ r"""变更时间
4740
+ :rtype: int
4556
4741
  """
4557
- return self._ApiNameOp
4742
+ return self._Timestamp
4558
4743
 
4559
- @ApiNameOp.setter
4560
- def ApiNameOp(self, ApiNameOp):
4561
- self._ApiNameOp = ApiNameOp
4744
+ @Timestamp.setter
4745
+ def Timestamp(self, Timestamp):
4746
+ self._Timestamp = Timestamp
4562
4747
 
4563
4748
  @property
4564
- def Description(self):
4565
- r"""事件详情
4749
+ def City(self):
4750
+ r"""地理位置
4566
4751
  :rtype: str
4567
4752
  """
4568
- return self._Description
4753
+ return self._City
4569
4754
 
4570
- @Description.setter
4571
- def Description(self, Description):
4572
- self._Description = Description
4755
+ @City.setter
4756
+ def City(self, City):
4757
+ self._City = City
4573
4758
 
4574
4759
  @property
4575
- def UpdateTime(self):
4576
- r"""时间戳,出参有该值,入参不需要传没有
4760
+ def StartTime(self):
4761
+ r"""开始时间
4577
4762
  :rtype: int
4578
4763
  """
4579
- return self._UpdateTime
4764
+ return self._StartTime
4580
4765
 
4581
- @UpdateTime.setter
4582
- def UpdateTime(self, UpdateTime):
4583
- self._UpdateTime = UpdateTime
4766
+ @StartTime.setter
4767
+ def StartTime(self, StartTime):
4768
+ self._StartTime = StartTime
4584
4769
 
4585
4770
  @property
4586
- def MatchRuleList(self):
4587
- r"""匹配规则列表
4588
- :rtype: list of ApiSecSceneRuleEntry
4771
+ def EventCount(self):
4772
+ r"""关联事件数量
4773
+ :rtype: int
4589
4774
  """
4590
- return self._MatchRuleList
4775
+ return self._EventCount
4591
4776
 
4592
- @MatchRuleList.setter
4593
- def MatchRuleList(self, MatchRuleList):
4594
- self._MatchRuleList = MatchRuleList
4777
+ @EventCount.setter
4778
+ def EventCount(self, EventCount):
4779
+ self._EventCount = EventCount
4595
4780
 
4596
4781
  @property
4597
- def StatRuleList(self):
4782
+ def AttackCount(self):
4783
+ r"""攻击数量
4784
+ :rtype: int
4785
+ """
4786
+ return self._AttackCount
4787
+
4788
+ @AttackCount.setter
4789
+ def AttackCount(self, AttackCount):
4790
+ self._AttackCount = AttackCount
4791
+
4792
+ @property
4793
+ def MissUserName(self):
4794
+ r"""缺失参数名,当事件类型是缺失参数名,缺失参数名和密码时,返回此字段
4795
+ :rtype: str
4796
+ """
4797
+ return self._MissUserName
4798
+
4799
+ @MissUserName.setter
4800
+ def MissUserName(self, MissUserName):
4801
+ self._MissUserName = MissUserName
4802
+
4803
+ @property
4804
+ def AttackDetail(self):
4805
+ r"""当是水平越权和垂直越权时,返回此字段
4806
+ :rtype: list of str
4807
+ """
4808
+ return self._AttackDetail
4809
+
4810
+ @AttackDetail.setter
4811
+ def AttackDetail(self, AttackDetail):
4812
+ self._AttackDetail = AttackDetail
4813
+
4814
+ @property
4815
+ def MissPassword(self):
4816
+ r"""缺失密码参数,当事件类型是缺失参数名,缺失参数名和密码时,返回此字段
4817
+ :rtype: str
4818
+ """
4819
+ return self._MissPassword
4820
+
4821
+ @MissPassword.setter
4822
+ def MissPassword(self, MissPassword):
4823
+ self._MissPassword = MissPassword
4824
+
4825
+
4826
+ def _deserialize(self, params):
4827
+ self._SrcIp = params.get("SrcIp")
4828
+ self._EventLevel = params.get("EventLevel")
4829
+ self._BotLabel = params.get("BotLabel")
4830
+ self._Timestamp = params.get("Timestamp")
4831
+ self._City = params.get("City")
4832
+ self._StartTime = params.get("StartTime")
4833
+ self._EventCount = params.get("EventCount")
4834
+ self._AttackCount = params.get("AttackCount")
4835
+ self._MissUserName = params.get("MissUserName")
4836
+ self._AttackDetail = params.get("AttackDetail")
4837
+ self._MissPassword = params.get("MissPassword")
4838
+ memeber_set = set(params.keys())
4839
+ for name, value in vars(self).items():
4840
+ property_name = name[1:]
4841
+ if property_name in memeber_set:
4842
+ memeber_set.remove(property_name)
4843
+ if len(memeber_set) > 0:
4844
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4845
+
4846
+
4847
+
4848
+ class ApiSecCustomEventRule(AbstractModel):
4849
+ r"""api安全自定义事件规则结构体
4850
+
4851
+ """
4852
+
4853
+ def __init__(self):
4854
+ r"""
4855
+ :param _RuleName: 规则名称
4856
+ :type RuleName: str
4857
+ :param _Status: 开关,1:开,0:关
4858
+ :type Status: int
4859
+ :param _ApiNameOp: api匹配列表
4860
+ :type ApiNameOp: list of ApiNameOp
4861
+ :param _Description: 事件详情
4862
+ :type Description: str
4863
+ :param _UpdateTime: 时间戳,出参有该值,入参不需要传没有
4864
+ :type UpdateTime: int
4865
+ :param _MatchRuleList: 匹配规则列表
4866
+ :type MatchRuleList: list of ApiSecSceneRuleEntry
4867
+ :param _StatRuleList: 统计规则列表
4868
+ :type StatRuleList: list of ApiSecSceneRuleEntry
4869
+ :param _ReqFrequency: 访问频次,第一个字段表示次数,第二个字段表示分钟
4870
+ :type ReqFrequency: list of int
4871
+ :param _RiskLevel: 风险等级,取值为100,200,300,分别表示低位、中危、高危
4872
+ :type RiskLevel: str
4873
+ :param _Source: 规则来源
4874
+ :type Source: str
4875
+ """
4876
+ self._RuleName = None
4877
+ self._Status = None
4878
+ self._ApiNameOp = None
4879
+ self._Description = None
4880
+ self._UpdateTime = None
4881
+ self._MatchRuleList = None
4882
+ self._StatRuleList = None
4883
+ self._ReqFrequency = None
4884
+ self._RiskLevel = None
4885
+ self._Source = None
4886
+
4887
+ @property
4888
+ def RuleName(self):
4889
+ r"""规则名称
4890
+ :rtype: str
4891
+ """
4892
+ return self._RuleName
4893
+
4894
+ @RuleName.setter
4895
+ def RuleName(self, RuleName):
4896
+ self._RuleName = RuleName
4897
+
4898
+ @property
4899
+ def Status(self):
4900
+ r"""开关,1:开,0:关
4901
+ :rtype: int
4902
+ """
4903
+ return self._Status
4904
+
4905
+ @Status.setter
4906
+ def Status(self, Status):
4907
+ self._Status = Status
4908
+
4909
+ @property
4910
+ def ApiNameOp(self):
4911
+ r"""api匹配列表
4912
+ :rtype: list of ApiNameOp
4913
+ """
4914
+ return self._ApiNameOp
4915
+
4916
+ @ApiNameOp.setter
4917
+ def ApiNameOp(self, ApiNameOp):
4918
+ self._ApiNameOp = ApiNameOp
4919
+
4920
+ @property
4921
+ def Description(self):
4922
+ r"""事件详情
4923
+ :rtype: str
4924
+ """
4925
+ return self._Description
4926
+
4927
+ @Description.setter
4928
+ def Description(self, Description):
4929
+ self._Description = Description
4930
+
4931
+ @property
4932
+ def UpdateTime(self):
4933
+ r"""时间戳,出参有该值,入参不需要传没有
4934
+ :rtype: int
4935
+ """
4936
+ return self._UpdateTime
4937
+
4938
+ @UpdateTime.setter
4939
+ def UpdateTime(self, UpdateTime):
4940
+ self._UpdateTime = UpdateTime
4941
+
4942
+ @property
4943
+ def MatchRuleList(self):
4944
+ r"""匹配规则列表
4945
+ :rtype: list of ApiSecSceneRuleEntry
4946
+ """
4947
+ return self._MatchRuleList
4948
+
4949
+ @MatchRuleList.setter
4950
+ def MatchRuleList(self, MatchRuleList):
4951
+ self._MatchRuleList = MatchRuleList
4952
+
4953
+ @property
4954
+ def StatRuleList(self):
4598
4955
  r"""统计规则列表
4599
4956
  :rtype: list of ApiSecSceneRuleEntry
4600
4957
  """
@@ -4785,6 +5142,87 @@ class ApiSecCustomSensitiveRule(AbstractModel):
4785
5142
 
4786
5143
 
4787
5144
 
5145
+ class ApiSecEventChange(AbstractModel):
5146
+ r"""事件变更内容
5147
+
5148
+ """
5149
+
5150
+ def __init__(self):
5151
+ r"""
5152
+ :param _UserName: 变更人
5153
+ :type UserName: str
5154
+ :param _Mode: 变更的状态
5155
+ :type Mode: str
5156
+ :param _Timestamp: 时间戳
5157
+ :type Timestamp: int
5158
+ :param _Remark: 备注
5159
+ :type Remark: str
5160
+ """
5161
+ self._UserName = None
5162
+ self._Mode = None
5163
+ self._Timestamp = None
5164
+ self._Remark = None
5165
+
5166
+ @property
5167
+ def UserName(self):
5168
+ r"""变更人
5169
+ :rtype: str
5170
+ """
5171
+ return self._UserName
5172
+
5173
+ @UserName.setter
5174
+ def UserName(self, UserName):
5175
+ self._UserName = UserName
5176
+
5177
+ @property
5178
+ def Mode(self):
5179
+ r"""变更的状态
5180
+ :rtype: str
5181
+ """
5182
+ return self._Mode
5183
+
5184
+ @Mode.setter
5185
+ def Mode(self, Mode):
5186
+ self._Mode = Mode
5187
+
5188
+ @property
5189
+ def Timestamp(self):
5190
+ r"""时间戳
5191
+ :rtype: int
5192
+ """
5193
+ return self._Timestamp
5194
+
5195
+ @Timestamp.setter
5196
+ def Timestamp(self, Timestamp):
5197
+ self._Timestamp = Timestamp
5198
+
5199
+ @property
5200
+ def Remark(self):
5201
+ r"""备注
5202
+ :rtype: str
5203
+ """
5204
+ return self._Remark
5205
+
5206
+ @Remark.setter
5207
+ def Remark(self, Remark):
5208
+ self._Remark = Remark
5209
+
5210
+
5211
+ def _deserialize(self, params):
5212
+ self._UserName = params.get("UserName")
5213
+ self._Mode = params.get("Mode")
5214
+ self._Timestamp = params.get("Timestamp")
5215
+ self._Remark = params.get("Remark")
5216
+ memeber_set = set(params.keys())
5217
+ for name, value in vars(self).items():
5218
+ property_name = name[1:]
5219
+ if property_name in memeber_set:
5220
+ memeber_set.remove(property_name)
5221
+ if len(memeber_set) > 0:
5222
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5223
+
5224
+
5225
+
4788
5226
  class ApiSecExcludeRule(AbstractModel):
4789
5227
  r"""排除无效api资产的规则
4790
5228
 
@@ -19206,6 +19644,370 @@ class DescribeApiListVersionTwoResponse(AbstractModel):
19206
19644
  self._RequestId = params.get("RequestId")
19207
19645
 
19208
19646
 
19647
+ class DescribeApiSecEventDetailRequest(AbstractModel):
19648
+ r"""DescribeApiSecEventDetail请求参数结构体
19649
+
19650
+ """
19651
+
19652
+ def __init__(self):
19653
+ r"""
19654
+ :param _Domain: <p>域名</p>
19655
+ :type Domain: str
19656
+ :param _EventId: <p>API安全事件ID</p>
19657
+ :type EventId: str
19658
+ """
19659
+ self._Domain = None
19660
+ self._EventId = None
19661
+
19662
+ @property
19663
+ def Domain(self):
19664
+ r"""<p>域名</p>
19665
+ :rtype: str
19666
+ """
19667
+ return self._Domain
19668
+
19669
+ @Domain.setter
19670
+ def Domain(self, Domain):
19671
+ self._Domain = Domain
19672
+
19673
+ @property
19674
+ def EventId(self):
19675
+ r"""<p>API安全事件ID</p>
19676
+ :rtype: str
19677
+ """
19678
+ return self._EventId
19679
+
19680
+ @EventId.setter
19681
+ def EventId(self, EventId):
19682
+ self._EventId = EventId
19683
+
19684
+
19685
+ def _deserialize(self, params):
19686
+ self._Domain = params.get("Domain")
19687
+ self._EventId = params.get("EventId")
19688
+ memeber_set = set(params.keys())
19689
+ for name, value in vars(self).items():
19690
+ property_name = name[1:]
19691
+ if property_name in memeber_set:
19692
+ memeber_set.remove(property_name)
19693
+ if len(memeber_set) > 0:
19694
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
19695
+
19696
+
19697
+
19698
+ class DescribeApiSecEventDetailResponse(AbstractModel):
19699
+ r"""DescribeApiSecEventDetail返回参数结构体
19700
+
19701
+ """
19702
+
19703
+ def __init__(self):
19704
+ r"""
19705
+ :param _Description: <p>事件描述信息</p>
19706
+ :type Description: str
19707
+ :param _EventInfo: <p>事件基本信息</p>
19708
+ :type EventInfo: :class:`tencentcloud.waf.v20180125.models.ApiEvent`
19709
+ :param _AttackSource: <p>攻击源详情</p>
19710
+ :type AttackSource: list of ApiSecAttackSource
19711
+ :param _ChangeHistory: <p>变更历史</p>
19712
+ :type ChangeHistory: list of ApiSecEventChange
19713
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19714
+ :type RequestId: str
19715
+ """
19716
+ self._Description = None
19717
+ self._EventInfo = None
19718
+ self._AttackSource = None
19719
+ self._ChangeHistory = None
19720
+ self._RequestId = None
19721
+
19722
+ @property
19723
+ def Description(self):
19724
+ r"""<p>事件描述信息</p>
19725
+ :rtype: str
19726
+ """
19727
+ return self._Description
19728
+
19729
+ @Description.setter
19730
+ def Description(self, Description):
19731
+ self._Description = Description
19732
+
19733
+ @property
19734
+ def EventInfo(self):
19735
+ r"""<p>事件基本信息</p>
19736
+ :rtype: :class:`tencentcloud.waf.v20180125.models.ApiEvent`
19737
+ """
19738
+ return self._EventInfo
19739
+
19740
+ @EventInfo.setter
19741
+ def EventInfo(self, EventInfo):
19742
+ self._EventInfo = EventInfo
19743
+
19744
+ @property
19745
+ def AttackSource(self):
19746
+ r"""<p>攻击源详情</p>
19747
+ :rtype: list of ApiSecAttackSource
19748
+ """
19749
+ return self._AttackSource
19750
+
19751
+ @AttackSource.setter
19752
+ def AttackSource(self, AttackSource):
19753
+ self._AttackSource = AttackSource
19754
+
19755
+ @property
19756
+ def ChangeHistory(self):
19757
+ r"""<p>变更历史</p>
19758
+ :rtype: list of ApiSecEventChange
19759
+ """
19760
+ return self._ChangeHistory
19761
+
19762
+ @ChangeHistory.setter
19763
+ def ChangeHistory(self, ChangeHistory):
19764
+ self._ChangeHistory = ChangeHistory
19765
+
19766
+ @property
19767
+ def RequestId(self):
19768
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19769
+ :rtype: str
19770
+ """
19771
+ return self._RequestId
19772
+
19773
+ @RequestId.setter
19774
+ def RequestId(self, RequestId):
19775
+ self._RequestId = RequestId
19776
+
19777
+
19778
+ def _deserialize(self, params):
19779
+ self._Description = params.get("Description")
19780
+ if params.get("EventInfo") is not None:
19781
+ self._EventInfo = ApiEvent()
19782
+ self._EventInfo._deserialize(params.get("EventInfo"))
19783
+ if params.get("AttackSource") is not None:
19784
+ self._AttackSource = []
19785
+ for item in params.get("AttackSource"):
19786
+ obj = ApiSecAttackSource()
19787
+ obj._deserialize(item)
19788
+ self._AttackSource.append(obj)
19789
+ if params.get("ChangeHistory") is not None:
19790
+ self._ChangeHistory = []
19791
+ for item in params.get("ChangeHistory"):
19792
+ obj = ApiSecEventChange()
19793
+ obj._deserialize(item)
19794
+ self._ChangeHistory.append(obj)
19795
+ self._RequestId = params.get("RequestId")
19796
+
19797
+
19798
+ class DescribeApiSecEventListRequest(AbstractModel):
19799
+ r"""DescribeApiSecEventList请求参数结构体
19800
+
19801
+ """
19802
+
19803
+ def __init__(self):
19804
+ r"""
19805
+ :param _Domain: 域名
19806
+ :type Domain: str
19807
+ :param _NeedTotalCount: 是否查询数量,默认不查询,为true则进行查询
19808
+ :type NeedTotalCount: bool
19809
+ :param _Filters: 过滤条件
19810
+ :type Filters: list of ApiDataFilter
19811
+ :param _PageIndex: 查询当前的页
19812
+ :type PageIndex: int
19813
+ :param _PageSize: 每一页显示多少条数据
19814
+ :type PageSize: int
19815
+ :param _Sort: 排序,第一个元素为排序的key,第二个元素为排序规则,其中1 为升序排列,而-1 是用于降序排列
19816
+ :type Sort: list of str
19817
+ :param _StartTs: 查询开始时间
19818
+ :type StartTs: int
19819
+ :param _EndTs: 查询结束时间
19820
+ :type EndTs: int
19821
+ """
19822
+ self._Domain = None
19823
+ self._NeedTotalCount = None
19824
+ self._Filters = None
19825
+ self._PageIndex = None
19826
+ self._PageSize = None
19827
+ self._Sort = None
19828
+ self._StartTs = None
19829
+ self._EndTs = None
19830
+
19831
+ @property
19832
+ def Domain(self):
19833
+ r"""域名
19834
+ :rtype: str
19835
+ """
19836
+ return self._Domain
19837
+
19838
+ @Domain.setter
19839
+ def Domain(self, Domain):
19840
+ self._Domain = Domain
19841
+
19842
+ @property
19843
+ def NeedTotalCount(self):
19844
+ r"""是否查询数量,默认不查询,为true则进行查询
19845
+ :rtype: bool
19846
+ """
19847
+ return self._NeedTotalCount
19848
+
19849
+ @NeedTotalCount.setter
19850
+ def NeedTotalCount(self, NeedTotalCount):
19851
+ self._NeedTotalCount = NeedTotalCount
19852
+
19853
+ @property
19854
+ def Filters(self):
19855
+ r"""过滤条件
19856
+ :rtype: list of ApiDataFilter
19857
+ """
19858
+ return self._Filters
19859
+
19860
+ @Filters.setter
19861
+ def Filters(self, Filters):
19862
+ self._Filters = Filters
19863
+
19864
+ @property
19865
+ def PageIndex(self):
19866
+ r"""查询当前的页
19867
+ :rtype: int
19868
+ """
19869
+ return self._PageIndex
19870
+
19871
+ @PageIndex.setter
19872
+ def PageIndex(self, PageIndex):
19873
+ self._PageIndex = PageIndex
19874
+
19875
+ @property
19876
+ def PageSize(self):
19877
+ r"""每一页显示多少条数据
19878
+ :rtype: int
19879
+ """
19880
+ return self._PageSize
19881
+
19882
+ @PageSize.setter
19883
+ def PageSize(self, PageSize):
19884
+ self._PageSize = PageSize
19885
+
19886
+ @property
19887
+ def Sort(self):
19888
+ r"""排序,第一个元素为排序的key,第二个元素为排序规则,其中1 为升序排列,而-1 是用于降序排列
19889
+ :rtype: list of str
19890
+ """
19891
+ return self._Sort
19892
+
19893
+ @Sort.setter
19894
+ def Sort(self, Sort):
19895
+ self._Sort = Sort
19896
+
19897
+ @property
19898
+ def StartTs(self):
19899
+ r"""查询开始时间
19900
+ :rtype: int
19901
+ """
19902
+ return self._StartTs
19903
+
19904
+ @StartTs.setter
19905
+ def StartTs(self, StartTs):
19906
+ self._StartTs = StartTs
19907
+
19908
+ @property
19909
+ def EndTs(self):
19910
+ r"""查询结束时间
19911
+ :rtype: int
19912
+ """
19913
+ return self._EndTs
19914
+
19915
+ @EndTs.setter
19916
+ def EndTs(self, EndTs):
19917
+ self._EndTs = EndTs
19918
+
19919
+
19920
+ def _deserialize(self, params):
19921
+ self._Domain = params.get("Domain")
19922
+ self._NeedTotalCount = params.get("NeedTotalCount")
19923
+ if params.get("Filters") is not None:
19924
+ self._Filters = []
19925
+ for item in params.get("Filters"):
19926
+ obj = ApiDataFilter()
19927
+ obj._deserialize(item)
19928
+ self._Filters.append(obj)
19929
+ self._PageIndex = params.get("PageIndex")
19930
+ self._PageSize = params.get("PageSize")
19931
+ self._Sort = params.get("Sort")
19932
+ self._StartTs = params.get("StartTs")
19933
+ self._EndTs = params.get("EndTs")
19934
+ memeber_set = set(params.keys())
19935
+ for name, value in vars(self).items():
19936
+ property_name = name[1:]
19937
+ if property_name in memeber_set:
19938
+ memeber_set.remove(property_name)
19939
+ if len(memeber_set) > 0:
19940
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
19941
+
19942
+
19943
+
19944
+ class DescribeApiSecEventListResponse(AbstractModel):
19945
+ r"""DescribeApiSecEventList返回参数结构体
19946
+
19947
+ """
19948
+
19949
+ def __init__(self):
19950
+ r"""
19951
+ :param _Data: 事件列表
19952
+ 注意:此字段可能返回 null,表示取不到有效值。
19953
+ :type Data: list of ApiEvent
19954
+ :param _Total: 事件总数
19955
+ 注意:此字段可能返回 null,表示取不到有效值。
19956
+ :type Total: int
19957
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19958
+ :type RequestId: str
19959
+ """
19960
+ self._Data = None
19961
+ self._Total = None
19962
+ self._RequestId = None
19963
+
19964
+ @property
19965
+ def Data(self):
19966
+ r"""事件列表
19967
+ 注意:此字段可能返回 null,表示取不到有效值。
19968
+ :rtype: list of ApiEvent
19969
+ """
19970
+ return self._Data
19971
+
19972
+ @Data.setter
19973
+ def Data(self, Data):
19974
+ self._Data = Data
19975
+
19976
+ @property
19977
+ def Total(self):
19978
+ r"""事件总数
19979
+ 注意:此字段可能返回 null,表示取不到有效值。
19980
+ :rtype: int
19981
+ """
19982
+ return self._Total
19983
+
19984
+ @Total.setter
19985
+ def Total(self, Total):
19986
+ self._Total = Total
19987
+
19988
+ @property
19989
+ def RequestId(self):
19990
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
19991
+ :rtype: str
19992
+ """
19993
+ return self._RequestId
19994
+
19995
+ @RequestId.setter
19996
+ def RequestId(self, RequestId):
19997
+ self._RequestId = RequestId
19998
+
19999
+
20000
+ def _deserialize(self, params):
20001
+ if params.get("Data") is not None:
20002
+ self._Data = []
20003
+ for item in params.get("Data"):
20004
+ obj = ApiEvent()
20005
+ obj._deserialize(item)
20006
+ self._Data.append(obj)
20007
+ self._Total = params.get("Total")
20008
+ self._RequestId = params.get("RequestId")
20009
+
20010
+
19209
20011
  class DescribeApiSecSensitiveRuleListRequest(AbstractModel):
19210
20012
  r"""DescribeApiSecSensitiveRuleList请求参数结构体
19211
20013
 
@@ -1337,6 +1337,52 @@ class WafClient(AbstractClient):
1337
1337
  raise TencentCloudSDKException(type(e).__name__, str(e))
1338
1338
 
1339
1339
 
1340
+ def DescribeApiSecEventDetail(self, request):
1341
+ r"""API安全事件详情查询接口
1342
+
1343
+ :param request: Request instance for DescribeApiSecEventDetail.
1344
+ :type request: :class:`tencentcloud.waf.v20180125.models.DescribeApiSecEventDetailRequest`
1345
+ :rtype: :class:`tencentcloud.waf.v20180125.models.DescribeApiSecEventDetailResponse`
1346
+
1347
+ """
1348
+ try:
1349
+ params = request._serialize()
1350
+ headers = request.headers
1351
+ body = self.call("DescribeApiSecEventDetail", params, headers=headers)
1352
+ response = json.loads(body)
1353
+ model = models.DescribeApiSecEventDetailResponse()
1354
+ model._deserialize(response["Response"])
1355
+ return model
1356
+ except Exception as e:
1357
+ if isinstance(e, TencentCloudSDKException):
1358
+ raise
1359
+ else:
1360
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1361
+
1362
+
1363
+ def DescribeApiSecEventList(self, request):
1364
+ r"""api安全事件列表
1365
+
1366
+ :param request: Request instance for DescribeApiSecEventList.
1367
+ :type request: :class:`tencentcloud.waf.v20180125.models.DescribeApiSecEventListRequest`
1368
+ :rtype: :class:`tencentcloud.waf.v20180125.models.DescribeApiSecEventListResponse`
1369
+
1370
+ """
1371
+ try:
1372
+ params = request._serialize()
1373
+ headers = request.headers
1374
+ body = self.call("DescribeApiSecEventList", params, headers=headers)
1375
+ response = json.loads(body)
1376
+ model = models.DescribeApiSecEventListResponse()
1377
+ model._deserialize(response["Response"])
1378
+ return model
1379
+ except Exception as e:
1380
+ if isinstance(e, TencentCloudSDKException):
1381
+ raise
1382
+ else:
1383
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1384
+
1385
+
1340
1386
  def DescribeApiSecSensitiveRuleList(self, request):
1341
1387
  r"""获取api安全敏感规则列表
1342
1388
 
@@ -1051,6 +1051,42 @@ class WafClient(AbstractClient):
1051
1051
 
1052
1052
  return await self.call_and_deserialize(**kwargs)
1053
1053
 
1054
+ async def DescribeApiSecEventDetail(
1055
+ self,
1056
+ request: models.DescribeApiSecEventDetailRequest,
1057
+ opts: Dict = None,
1058
+ ) -> models.DescribeApiSecEventDetailResponse:
1059
+ """
1060
+ API安全事件详情查询接口
1061
+ """
1062
+
1063
+ kwargs = {}
1064
+ kwargs["action"] = "DescribeApiSecEventDetail"
1065
+ kwargs["params"] = request._serialize()
1066
+ kwargs["resp_cls"] = models.DescribeApiSecEventDetailResponse
1067
+ kwargs["headers"] = request.headers
1068
+ kwargs["opts"] = opts or {}
1069
+
1070
+ return await self.call_and_deserialize(**kwargs)
1071
+
1072
+ async def DescribeApiSecEventList(
1073
+ self,
1074
+ request: models.DescribeApiSecEventListRequest,
1075
+ opts: Dict = None,
1076
+ ) -> models.DescribeApiSecEventListResponse:
1077
+ """
1078
+ api安全事件列表
1079
+ """
1080
+
1081
+ kwargs = {}
1082
+ kwargs["action"] = "DescribeApiSecEventList"
1083
+ kwargs["params"] = request._serialize()
1084
+ kwargs["resp_cls"] = models.DescribeApiSecEventListResponse
1085
+ kwargs["headers"] = request.headers
1086
+ kwargs["opts"] = opts or {}
1087
+
1088
+ return await self.call_and_deserialize(**kwargs)
1089
+
1054
1090
  async def DescribeApiSecSensitiveRuleList(
1055
1091
  self,
1056
1092
  request: models.DescribeApiSecSensitiveRuleListRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.1.110
3
+ Version: 3.1.112
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.110
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.112
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.112
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.110