tencentcloud-sdk-python-waf 3.1.20__tar.gz → 3.1.35__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.20 → tencentcloud_sdk_python_waf-3.1.35}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/setup.py +1 -1
  3. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/tencentcloud/waf/v20180125/models.py +629 -0
  5. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/tencentcloud/waf/v20180125/waf_client.py +46 -0
  6. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/tencentcloud/waf/v20180125/waf_client_async.py +36 -0
  7. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_waf-3.1.35/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_waf-3.1.20/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/README.rst +0 -0
  11. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/tencentcloud/waf/__init__.py +0 -0
  13. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/tencentcloud/waf/v20180125/__init__.py +0 -0
  14. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_waf-3.1.20 → tencentcloud_sdk_python_waf-3.1.35}/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.20
3
+ Version: 3.1.35
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.20
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.35
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.20,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.35,<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.20'
17
+ __version__ = '3.1.35'
@@ -5912,6 +5912,363 @@ class BotIdConfig(AbstractModel):
5912
5912
 
5913
5913
 
5914
5914
 
5915
+ class BotIdDetail(AbstractModel):
5916
+ r"""BOT-ID规则配置详情
5917
+
5918
+ """
5919
+
5920
+ def __init__(self):
5921
+ r"""
5922
+ :param _RuleId: 规则ID
5923
+ :type RuleId: str
5924
+ :param _BotId: 规则名称
5925
+ :type BotId: str
5926
+ :param _Status: 规则开关
5927
+ :type Status: bool
5928
+ :param _Action: 规则动作
5929
+ :type Action: str
5930
+ :param _Level: 风险等级
5931
+ :type Level: int
5932
+ :param _BotIdType: 规则类型
5933
+ :type BotIdType: str
5934
+ :param _ModifyTime: 修改时间
5935
+ :type ModifyTime: int
5936
+ :param _InsertTime: 插入时间
5937
+ :type InsertTime: int
5938
+ :param _Description: 规则描述
5939
+ :type Description: str
5940
+ :param _Influence: 影响
5941
+ :type Influence: str
5942
+ :param _Redirect: 重定向路径
5943
+ :type Redirect: str
5944
+ :param _HasEvent: 是否关联事件
5945
+ :type HasEvent: bool
5946
+ """
5947
+ self._RuleId = None
5948
+ self._BotId = None
5949
+ self._Status = None
5950
+ self._Action = None
5951
+ self._Level = None
5952
+ self._BotIdType = None
5953
+ self._ModifyTime = None
5954
+ self._InsertTime = None
5955
+ self._Description = None
5956
+ self._Influence = None
5957
+ self._Redirect = None
5958
+ self._HasEvent = None
5959
+
5960
+ @property
5961
+ def RuleId(self):
5962
+ r"""规则ID
5963
+ :rtype: str
5964
+ """
5965
+ return self._RuleId
5966
+
5967
+ @RuleId.setter
5968
+ def RuleId(self, RuleId):
5969
+ self._RuleId = RuleId
5970
+
5971
+ @property
5972
+ def BotId(self):
5973
+ r"""规则名称
5974
+ :rtype: str
5975
+ """
5976
+ return self._BotId
5977
+
5978
+ @BotId.setter
5979
+ def BotId(self, BotId):
5980
+ self._BotId = BotId
5981
+
5982
+ @property
5983
+ def Status(self):
5984
+ r"""规则开关
5985
+ :rtype: bool
5986
+ """
5987
+ return self._Status
5988
+
5989
+ @Status.setter
5990
+ def Status(self, Status):
5991
+ self._Status = Status
5992
+
5993
+ @property
5994
+ def Action(self):
5995
+ r"""规则动作
5996
+ :rtype: str
5997
+ """
5998
+ return self._Action
5999
+
6000
+ @Action.setter
6001
+ def Action(self, Action):
6002
+ self._Action = Action
6003
+
6004
+ @property
6005
+ def Level(self):
6006
+ r"""风险等级
6007
+ :rtype: int
6008
+ """
6009
+ return self._Level
6010
+
6011
+ @Level.setter
6012
+ def Level(self, Level):
6013
+ self._Level = Level
6014
+
6015
+ @property
6016
+ def BotIdType(self):
6017
+ r"""规则类型
6018
+ :rtype: str
6019
+ """
6020
+ return self._BotIdType
6021
+
6022
+ @BotIdType.setter
6023
+ def BotIdType(self, BotIdType):
6024
+ self._BotIdType = BotIdType
6025
+
6026
+ @property
6027
+ def ModifyTime(self):
6028
+ r"""修改时间
6029
+ :rtype: int
6030
+ """
6031
+ return self._ModifyTime
6032
+
6033
+ @ModifyTime.setter
6034
+ def ModifyTime(self, ModifyTime):
6035
+ self._ModifyTime = ModifyTime
6036
+
6037
+ @property
6038
+ def InsertTime(self):
6039
+ r"""插入时间
6040
+ :rtype: int
6041
+ """
6042
+ return self._InsertTime
6043
+
6044
+ @InsertTime.setter
6045
+ def InsertTime(self, InsertTime):
6046
+ self._InsertTime = InsertTime
6047
+
6048
+ @property
6049
+ def Description(self):
6050
+ r"""规则描述
6051
+ :rtype: str
6052
+ """
6053
+ return self._Description
6054
+
6055
+ @Description.setter
6056
+ def Description(self, Description):
6057
+ self._Description = Description
6058
+
6059
+ @property
6060
+ def Influence(self):
6061
+ r"""影响
6062
+ :rtype: str
6063
+ """
6064
+ return self._Influence
6065
+
6066
+ @Influence.setter
6067
+ def Influence(self, Influence):
6068
+ self._Influence = Influence
6069
+
6070
+ @property
6071
+ def Redirect(self):
6072
+ r"""重定向路径
6073
+ :rtype: str
6074
+ """
6075
+ return self._Redirect
6076
+
6077
+ @Redirect.setter
6078
+ def Redirect(self, Redirect):
6079
+ self._Redirect = Redirect
6080
+
6081
+ @property
6082
+ def HasEvent(self):
6083
+ r"""是否关联事件
6084
+ :rtype: bool
6085
+ """
6086
+ return self._HasEvent
6087
+
6088
+ @HasEvent.setter
6089
+ def HasEvent(self, HasEvent):
6090
+ self._HasEvent = HasEvent
6091
+
6092
+
6093
+ def _deserialize(self, params):
6094
+ self._RuleId = params.get("RuleId")
6095
+ self._BotId = params.get("BotId")
6096
+ self._Status = params.get("Status")
6097
+ self._Action = params.get("Action")
6098
+ self._Level = params.get("Level")
6099
+ self._BotIdType = params.get("BotIdType")
6100
+ self._ModifyTime = params.get("ModifyTime")
6101
+ self._InsertTime = params.get("InsertTime")
6102
+ self._Description = params.get("Description")
6103
+ self._Influence = params.get("Influence")
6104
+ self._Redirect = params.get("Redirect")
6105
+ self._HasEvent = params.get("HasEvent")
6106
+ memeber_set = set(params.keys())
6107
+ for name, value in vars(self).items():
6108
+ property_name = name[1:]
6109
+ if property_name in memeber_set:
6110
+ memeber_set.remove(property_name)
6111
+ if len(memeber_set) > 0:
6112
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6113
+
6114
+
6115
+
6116
+ class BotIdStat(AbstractModel):
6117
+ r"""Bot-Id规则统计信息
6118
+
6119
+ """
6120
+
6121
+ def __init__(self):
6122
+ r"""
6123
+ :param _Pattern: 模式:观察/拦截/自定义
6124
+ :type Pattern: str
6125
+ :param _TotalCount: 规则总数
6126
+ :type TotalCount: int
6127
+ :param _MonitorCount: 配置观察的规则数
6128
+ :type MonitorCount: int
6129
+ :param _InterceptCount: 配置拦截的规则数
6130
+ :type InterceptCount: int
6131
+ :param _RedirectCount: 配置重定向的规则数
6132
+ :type RedirectCount: int
6133
+ :param _CaptchaCount: 配置人机识别的规则数
6134
+ :type CaptchaCount: int
6135
+ :param _ProtectLevel: 全局防护等级
6136
+ :type ProtectLevel: str
6137
+ :param _GlobalRedirect: 全局重定向路径
6138
+ :type GlobalRedirect: str
6139
+ :param _JsChallengeCount: JS挑战的数目
6140
+ :type JsChallengeCount: int
6141
+ """
6142
+ self._Pattern = None
6143
+ self._TotalCount = None
6144
+ self._MonitorCount = None
6145
+ self._InterceptCount = None
6146
+ self._RedirectCount = None
6147
+ self._CaptchaCount = None
6148
+ self._ProtectLevel = None
6149
+ self._GlobalRedirect = None
6150
+ self._JsChallengeCount = None
6151
+
6152
+ @property
6153
+ def Pattern(self):
6154
+ r"""模式:观察/拦截/自定义
6155
+ :rtype: str
6156
+ """
6157
+ return self._Pattern
6158
+
6159
+ @Pattern.setter
6160
+ def Pattern(self, Pattern):
6161
+ self._Pattern = Pattern
6162
+
6163
+ @property
6164
+ def TotalCount(self):
6165
+ r"""规则总数
6166
+ :rtype: int
6167
+ """
6168
+ return self._TotalCount
6169
+
6170
+ @TotalCount.setter
6171
+ def TotalCount(self, TotalCount):
6172
+ self._TotalCount = TotalCount
6173
+
6174
+ @property
6175
+ def MonitorCount(self):
6176
+ r"""配置观察的规则数
6177
+ :rtype: int
6178
+ """
6179
+ return self._MonitorCount
6180
+
6181
+ @MonitorCount.setter
6182
+ def MonitorCount(self, MonitorCount):
6183
+ self._MonitorCount = MonitorCount
6184
+
6185
+ @property
6186
+ def InterceptCount(self):
6187
+ r"""配置拦截的规则数
6188
+ :rtype: int
6189
+ """
6190
+ return self._InterceptCount
6191
+
6192
+ @InterceptCount.setter
6193
+ def InterceptCount(self, InterceptCount):
6194
+ self._InterceptCount = InterceptCount
6195
+
6196
+ @property
6197
+ def RedirectCount(self):
6198
+ r"""配置重定向的规则数
6199
+ :rtype: int
6200
+ """
6201
+ return self._RedirectCount
6202
+
6203
+ @RedirectCount.setter
6204
+ def RedirectCount(self, RedirectCount):
6205
+ self._RedirectCount = RedirectCount
6206
+
6207
+ @property
6208
+ def CaptchaCount(self):
6209
+ r"""配置人机识别的规则数
6210
+ :rtype: int
6211
+ """
6212
+ return self._CaptchaCount
6213
+
6214
+ @CaptchaCount.setter
6215
+ def CaptchaCount(self, CaptchaCount):
6216
+ self._CaptchaCount = CaptchaCount
6217
+
6218
+ @property
6219
+ def ProtectLevel(self):
6220
+ r"""全局防护等级
6221
+ :rtype: str
6222
+ """
6223
+ return self._ProtectLevel
6224
+
6225
+ @ProtectLevel.setter
6226
+ def ProtectLevel(self, ProtectLevel):
6227
+ self._ProtectLevel = ProtectLevel
6228
+
6229
+ @property
6230
+ def GlobalRedirect(self):
6231
+ r"""全局重定向路径
6232
+ :rtype: str
6233
+ """
6234
+ return self._GlobalRedirect
6235
+
6236
+ @GlobalRedirect.setter
6237
+ def GlobalRedirect(self, GlobalRedirect):
6238
+ self._GlobalRedirect = GlobalRedirect
6239
+
6240
+ @property
6241
+ def JsChallengeCount(self):
6242
+ r"""JS挑战的数目
6243
+ :rtype: int
6244
+ """
6245
+ return self._JsChallengeCount
6246
+
6247
+ @JsChallengeCount.setter
6248
+ def JsChallengeCount(self, JsChallengeCount):
6249
+ self._JsChallengeCount = JsChallengeCount
6250
+
6251
+
6252
+ def _deserialize(self, params):
6253
+ self._Pattern = params.get("Pattern")
6254
+ self._TotalCount = params.get("TotalCount")
6255
+ self._MonitorCount = params.get("MonitorCount")
6256
+ self._InterceptCount = params.get("InterceptCount")
6257
+ self._RedirectCount = params.get("RedirectCount")
6258
+ self._CaptchaCount = params.get("CaptchaCount")
6259
+ self._ProtectLevel = params.get("ProtectLevel")
6260
+ self._GlobalRedirect = params.get("GlobalRedirect")
6261
+ self._JsChallengeCount = params.get("JsChallengeCount")
6262
+ memeber_set = set(params.keys())
6263
+ for name, value in vars(self).items():
6264
+ property_name = name[1:]
6265
+ if property_name in memeber_set:
6266
+ memeber_set.remove(property_name)
6267
+ if len(memeber_set) > 0:
6268
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6269
+
6270
+
6271
+
5915
6272
  class BotMonitorPkg(AbstractModel):
5916
6273
  r"""BOT安全监测资源信息
5917
6274
 
@@ -17390,6 +17747,229 @@ class DescribeBatchIpAccessControlResponse(AbstractModel):
17390
17747
  self._RequestId = params.get("RequestId")
17391
17748
 
17392
17749
 
17750
+ class DescribeBotIdRuleRequest(AbstractModel):
17751
+ r"""DescribeBotIdRule请求参数结构体
17752
+
17753
+ """
17754
+
17755
+ def __init__(self):
17756
+ r"""
17757
+ :param _Domain: 域名
17758
+ :type Domain: str
17759
+ :param _SceneId: 场景ID
17760
+ :type SceneId: str
17761
+ :param _RuleId: 规则ID
17762
+ :type RuleId: str
17763
+ :param _BotId: 规则名称
17764
+ :type BotId: str
17765
+ :param _Level: 风险等级筛选
17766
+ :type Level: list of int
17767
+ :param _BotIdType: 规则类型筛选
17768
+ :type BotIdType: list of str
17769
+ :param _Status: 规则开关-用于筛选: 0-全部 1-关闭 2-开启
17770
+ :type Status: int
17771
+ :param _RuleAction: 动作类型-用于筛选
17772
+ :type RuleAction: list of str
17773
+ """
17774
+ self._Domain = None
17775
+ self._SceneId = None
17776
+ self._RuleId = None
17777
+ self._BotId = None
17778
+ self._Level = None
17779
+ self._BotIdType = None
17780
+ self._Status = None
17781
+ self._RuleAction = None
17782
+
17783
+ @property
17784
+ def Domain(self):
17785
+ r"""域名
17786
+ :rtype: str
17787
+ """
17788
+ return self._Domain
17789
+
17790
+ @Domain.setter
17791
+ def Domain(self, Domain):
17792
+ self._Domain = Domain
17793
+
17794
+ @property
17795
+ def SceneId(self):
17796
+ r"""场景ID
17797
+ :rtype: str
17798
+ """
17799
+ return self._SceneId
17800
+
17801
+ @SceneId.setter
17802
+ def SceneId(self, SceneId):
17803
+ self._SceneId = SceneId
17804
+
17805
+ @property
17806
+ def RuleId(self):
17807
+ r"""规则ID
17808
+ :rtype: str
17809
+ """
17810
+ return self._RuleId
17811
+
17812
+ @RuleId.setter
17813
+ def RuleId(self, RuleId):
17814
+ self._RuleId = RuleId
17815
+
17816
+ @property
17817
+ def BotId(self):
17818
+ r"""规则名称
17819
+ :rtype: str
17820
+ """
17821
+ return self._BotId
17822
+
17823
+ @BotId.setter
17824
+ def BotId(self, BotId):
17825
+ self._BotId = BotId
17826
+
17827
+ @property
17828
+ def Level(self):
17829
+ r"""风险等级筛选
17830
+ :rtype: list of int
17831
+ """
17832
+ return self._Level
17833
+
17834
+ @Level.setter
17835
+ def Level(self, Level):
17836
+ self._Level = Level
17837
+
17838
+ @property
17839
+ def BotIdType(self):
17840
+ r"""规则类型筛选
17841
+ :rtype: list of str
17842
+ """
17843
+ return self._BotIdType
17844
+
17845
+ @BotIdType.setter
17846
+ def BotIdType(self, BotIdType):
17847
+ self._BotIdType = BotIdType
17848
+
17849
+ @property
17850
+ def Status(self):
17851
+ r"""规则开关-用于筛选: 0-全部 1-关闭 2-开启
17852
+ :rtype: int
17853
+ """
17854
+ return self._Status
17855
+
17856
+ @Status.setter
17857
+ def Status(self, Status):
17858
+ self._Status = Status
17859
+
17860
+ @property
17861
+ def RuleAction(self):
17862
+ r"""动作类型-用于筛选
17863
+ :rtype: list of str
17864
+ """
17865
+ return self._RuleAction
17866
+
17867
+ @RuleAction.setter
17868
+ def RuleAction(self, RuleAction):
17869
+ self._RuleAction = RuleAction
17870
+
17871
+
17872
+ def _deserialize(self, params):
17873
+ self._Domain = params.get("Domain")
17874
+ self._SceneId = params.get("SceneId")
17875
+ self._RuleId = params.get("RuleId")
17876
+ self._BotId = params.get("BotId")
17877
+ self._Level = params.get("Level")
17878
+ self._BotIdType = params.get("BotIdType")
17879
+ self._Status = params.get("Status")
17880
+ self._RuleAction = params.get("RuleAction")
17881
+ memeber_set = set(params.keys())
17882
+ for name, value in vars(self).items():
17883
+ property_name = name[1:]
17884
+ if property_name in memeber_set:
17885
+ memeber_set.remove(property_name)
17886
+ if len(memeber_set) > 0:
17887
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
17888
+
17889
+
17890
+
17891
+ class DescribeBotIdRuleResponse(AbstractModel):
17892
+ r"""DescribeBotIdRule返回参数结构体
17893
+
17894
+ """
17895
+
17896
+ def __init__(self):
17897
+ r"""
17898
+ :param _Data: 规则列表
17899
+ 注意:此字段可能返回 null,表示取不到有效值。
17900
+ :type Data: list of BotIdDetail
17901
+ :param _TotalCount: 符合条件的规则数量
17902
+ :type TotalCount: int
17903
+ :param _StatInfo: Bot规则数量统计信息
17904
+ :type StatInfo: :class:`tencentcloud.waf.v20180125.models.BotIdStat`
17905
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17906
+ :type RequestId: str
17907
+ """
17908
+ self._Data = None
17909
+ self._TotalCount = None
17910
+ self._StatInfo = None
17911
+ self._RequestId = None
17912
+
17913
+ @property
17914
+ def Data(self):
17915
+ r"""规则列表
17916
+ 注意:此字段可能返回 null,表示取不到有效值。
17917
+ :rtype: list of BotIdDetail
17918
+ """
17919
+ return self._Data
17920
+
17921
+ @Data.setter
17922
+ def Data(self, Data):
17923
+ self._Data = Data
17924
+
17925
+ @property
17926
+ def TotalCount(self):
17927
+ r"""符合条件的规则数量
17928
+ :rtype: int
17929
+ """
17930
+ return self._TotalCount
17931
+
17932
+ @TotalCount.setter
17933
+ def TotalCount(self, TotalCount):
17934
+ self._TotalCount = TotalCount
17935
+
17936
+ @property
17937
+ def StatInfo(self):
17938
+ r"""Bot规则数量统计信息
17939
+ :rtype: :class:`tencentcloud.waf.v20180125.models.BotIdStat`
17940
+ """
17941
+ return self._StatInfo
17942
+
17943
+ @StatInfo.setter
17944
+ def StatInfo(self, StatInfo):
17945
+ self._StatInfo = StatInfo
17946
+
17947
+ @property
17948
+ def RequestId(self):
17949
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17950
+ :rtype: str
17951
+ """
17952
+ return self._RequestId
17953
+
17954
+ @RequestId.setter
17955
+ def RequestId(self, RequestId):
17956
+ self._RequestId = RequestId
17957
+
17958
+
17959
+ def _deserialize(self, params):
17960
+ if params.get("Data") is not None:
17961
+ self._Data = []
17962
+ for item in params.get("Data"):
17963
+ obj = BotIdDetail()
17964
+ obj._deserialize(item)
17965
+ self._Data.append(obj)
17966
+ self._TotalCount = params.get("TotalCount")
17967
+ if params.get("StatInfo") is not None:
17968
+ self._StatInfo = BotIdStat()
17969
+ self._StatInfo._deserialize(params.get("StatInfo"))
17970
+ self._RequestId = params.get("RequestId")
17971
+
17972
+
17393
17973
  class DescribeBotSceneListRequest(AbstractModel):
17394
17974
  r"""DescribeBotSceneList请求参数结构体
17395
17975
 
@@ -30875,6 +31455,55 @@ class GetInstanceQpsLimitResponse(AbstractModel):
30875
31455
  self._RequestId = params.get("RequestId")
30876
31456
 
30877
31457
 
31458
+ class GetOrganizationRoleRequest(AbstractModel):
31459
+ r"""GetOrganizationRole请求参数结构体
31460
+
31461
+ """
31462
+
31463
+
31464
+ class GetOrganizationRoleResponse(AbstractModel):
31465
+ r"""GetOrganizationRole返回参数结构体
31466
+
31467
+ """
31468
+
31469
+ def __init__(self):
31470
+ r"""
31471
+ :param _Role: Admin:集团账号创建,DelegatedAdmin:委派管理员,Member:成员,NoMember:非集团账号成员
31472
+ :type Role: str
31473
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
31474
+ :type RequestId: str
31475
+ """
31476
+ self._Role = None
31477
+ self._RequestId = None
31478
+
31479
+ @property
31480
+ def Role(self):
31481
+ r"""Admin:集团账号创建,DelegatedAdmin:委派管理员,Member:成员,NoMember:非集团账号成员
31482
+ :rtype: str
31483
+ """
31484
+ return self._Role
31485
+
31486
+ @Role.setter
31487
+ def Role(self, Role):
31488
+ self._Role = Role
31489
+
31490
+ @property
31491
+ def RequestId(self):
31492
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
31493
+ :rtype: str
31494
+ """
31495
+ return self._RequestId
31496
+
31497
+ @RequestId.setter
31498
+ def RequestId(self, RequestId):
31499
+ self._RequestId = RequestId
31500
+
31501
+
31502
+ def _deserialize(self, params):
31503
+ self._Role = params.get("Role")
31504
+ self._RequestId = params.get("RequestId")
31505
+
31506
+
30878
31507
  class GlobalSceneInfo(AbstractModel):
30879
31508
  r"""当前开启的、匹配范围为全局、优先级最高的场景信息
30880
31509
 
@@ -1337,6 +1337,29 @@ class WafClient(AbstractClient):
1337
1337
  raise TencentCloudSDKException(type(e).__name__, str(e))
1338
1338
 
1339
1339
 
1340
+ def DescribeBotIdRule(self, request):
1341
+ r"""获取BotId规则列表1
1342
+
1343
+ :param request: Request instance for DescribeBotIdRule.
1344
+ :type request: :class:`tencentcloud.waf.v20180125.models.DescribeBotIdRuleRequest`
1345
+ :rtype: :class:`tencentcloud.waf.v20180125.models.DescribeBotIdRuleResponse`
1346
+
1347
+ """
1348
+ try:
1349
+ params = request._serialize()
1350
+ headers = request.headers
1351
+ body = self.call("DescribeBotIdRule", params, headers=headers)
1352
+ response = json.loads(body)
1353
+ model = models.DescribeBotIdRuleResponse()
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
+
1340
1363
  def DescribeBotSceneList(self, request):
1341
1364
  r"""获取BOT场景列表与概览
1342
1365
 
@@ -2926,6 +2949,29 @@ class WafClient(AbstractClient):
2926
2949
  raise TencentCloudSDKException(type(e).__name__, str(e))
2927
2950
 
2928
2951
 
2952
+ def GetOrganizationRole(self, request):
2953
+ r"""获取集团账号角色
2954
+
2955
+ :param request: Request instance for GetOrganizationRole.
2956
+ :type request: :class:`tencentcloud.waf.v20180125.models.GetOrganizationRoleRequest`
2957
+ :rtype: :class:`tencentcloud.waf.v20180125.models.GetOrganizationRoleResponse`
2958
+
2959
+ """
2960
+ try:
2961
+ params = request._serialize()
2962
+ headers = request.headers
2963
+ body = self.call("GetOrganizationRole", params, headers=headers)
2964
+ response = json.loads(body)
2965
+ model = models.GetOrganizationRoleResponse()
2966
+ model._deserialize(response["Response"])
2967
+ return model
2968
+ except Exception as e:
2969
+ if isinstance(e, TencentCloudSDKException):
2970
+ raise
2971
+ else:
2972
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2973
+
2974
+
2929
2975
  def ImportIpAccessControl(self, request):
2930
2976
  r"""导入IP黑白名单
2931
2977
 
@@ -1051,6 +1051,24 @@ class WafClient(AbstractClient):
1051
1051
 
1052
1052
  return await self.call_and_deserialize(**kwargs)
1053
1053
 
1054
+ async def DescribeBotIdRule(
1055
+ self,
1056
+ request: models.DescribeBotIdRuleRequest,
1057
+ opts: Dict = None,
1058
+ ) -> models.DescribeBotIdRuleResponse:
1059
+ """
1060
+ 获取BotId规则列表1
1061
+ """
1062
+
1063
+ kwargs = {}
1064
+ kwargs["action"] = "DescribeBotIdRule"
1065
+ kwargs["params"] = request._serialize()
1066
+ kwargs["resp_cls"] = models.DescribeBotIdRuleResponse
1067
+ kwargs["headers"] = request.headers
1068
+ kwargs["opts"] = opts or {}
1069
+
1070
+ return await self.call_and_deserialize(**kwargs)
1071
+
1054
1072
  async def DescribeBotSceneList(
1055
1073
  self,
1056
1074
  request: models.DescribeBotSceneListRequest,
@@ -2295,6 +2313,24 @@ class WafClient(AbstractClient):
2295
2313
 
2296
2314
  return await self.call_and_deserialize(**kwargs)
2297
2315
 
2316
+ async def GetOrganizationRole(
2317
+ self,
2318
+ request: models.GetOrganizationRoleRequest,
2319
+ opts: Dict = None,
2320
+ ) -> models.GetOrganizationRoleResponse:
2321
+ """
2322
+ 获取集团账号角色
2323
+ """
2324
+
2325
+ kwargs = {}
2326
+ kwargs["action"] = "GetOrganizationRole"
2327
+ kwargs["params"] = request._serialize()
2328
+ kwargs["resp_cls"] = models.GetOrganizationRoleResponse
2329
+ kwargs["headers"] = request.headers
2330
+ kwargs["opts"] = opts or {}
2331
+
2332
+ return await self.call_and_deserialize(**kwargs)
2333
+
2298
2334
  async def ImportIpAccessControl(
2299
2335
  self,
2300
2336
  request: models.ImportIpAccessControlRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-waf
3
- Version: 3.1.20
3
+ Version: 3.1.35
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.20
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.35
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.35
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.20