tencentcloud-sdk-python-waf 3.1.67__tar.gz → 3.1.71__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_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/setup.py +1 -1
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/tencentcloud/waf/v20180125/models.py +16 -302
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/tencentcloud/waf/v20180125/waf_client.py +0 -23
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/tencentcloud/waf/v20180125/waf_client_async.py +0 -18
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/tencentcloud_sdk_python_waf.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_waf-3.1.71/tencentcloud_sdk_python_waf.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_waf-3.1.67/tencentcloud_sdk_python_waf.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/README.rst +0 -0
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/setup.cfg +0 -0
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/tencentcloud/waf/__init__.py +0 -0
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/tencentcloud/waf/v20180125/__init__.py +0 -0
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/tencentcloud/waf/v20180125/errorcodes.py +0 -0
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/tencentcloud_sdk_python_waf.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/tencentcloud_sdk_python_waf.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_waf-3.1.67 → tencentcloud_sdk_python_waf-3.1.71}/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.
|
|
3
|
+
Version: 3.1.71
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.71
|
|
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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.71,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Waf SDK for Python',
|
|
@@ -3511,42 +3511,6 @@ class ApiDetailSampleHistory(AbstractModel):
|
|
|
3511
3511
|
|
|
3512
3512
|
|
|
3513
3513
|
|
|
3514
|
-
class ApiGuardContent(AbstractModel):
|
|
3515
|
-
r"""guard content
|
|
3516
|
-
|
|
3517
|
-
"""
|
|
3518
|
-
|
|
3519
|
-
def __init__(self):
|
|
3520
|
-
r"""
|
|
3521
|
-
:param _Prompt: prompt
|
|
3522
|
-
:type Prompt: str
|
|
3523
|
-
"""
|
|
3524
|
-
self._Prompt = None
|
|
3525
|
-
|
|
3526
|
-
@property
|
|
3527
|
-
def Prompt(self):
|
|
3528
|
-
r"""prompt
|
|
3529
|
-
:rtype: str
|
|
3530
|
-
"""
|
|
3531
|
-
return self._Prompt
|
|
3532
|
-
|
|
3533
|
-
@Prompt.setter
|
|
3534
|
-
def Prompt(self, Prompt):
|
|
3535
|
-
self._Prompt = Prompt
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
def _deserialize(self, params):
|
|
3539
|
-
self._Prompt = params.get("Prompt")
|
|
3540
|
-
memeber_set = set(params.keys())
|
|
3541
|
-
for name, value in vars(self).items():
|
|
3542
|
-
property_name = name[1:]
|
|
3543
|
-
if property_name in memeber_set:
|
|
3544
|
-
memeber_set.remove(property_name)
|
|
3545
|
-
if len(memeber_set) > 0:
|
|
3546
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
3514
|
class ApiNameMethod(AbstractModel):
|
|
3551
3515
|
r"""带有请求方式的apiname结构体
|
|
3552
3516
|
|
|
@@ -9632,87 +9596,6 @@ class CdcRegion(AbstractModel):
|
|
|
9632
9596
|
|
|
9633
9597
|
|
|
9634
9598
|
|
|
9635
|
-
class ClawRiskItem(AbstractModel):
|
|
9636
|
-
r"""ClawRiskItem
|
|
9637
|
-
|
|
9638
|
-
"""
|
|
9639
|
-
|
|
9640
|
-
def __init__(self):
|
|
9641
|
-
r"""
|
|
9642
|
-
:param _RiskType: 风险类别
|
|
9643
|
-
:type RiskType: str
|
|
9644
|
-
:param _RuleId: 规则id
|
|
9645
|
-
:type RuleId: str
|
|
9646
|
-
:param _RuleName: 规则名称
|
|
9647
|
-
:type RuleName: str
|
|
9648
|
-
:param _Score: 分数
|
|
9649
|
-
:type Score: float
|
|
9650
|
-
"""
|
|
9651
|
-
self._RiskType = None
|
|
9652
|
-
self._RuleId = None
|
|
9653
|
-
self._RuleName = None
|
|
9654
|
-
self._Score = None
|
|
9655
|
-
|
|
9656
|
-
@property
|
|
9657
|
-
def RiskType(self):
|
|
9658
|
-
r"""风险类别
|
|
9659
|
-
:rtype: str
|
|
9660
|
-
"""
|
|
9661
|
-
return self._RiskType
|
|
9662
|
-
|
|
9663
|
-
@RiskType.setter
|
|
9664
|
-
def RiskType(self, RiskType):
|
|
9665
|
-
self._RiskType = RiskType
|
|
9666
|
-
|
|
9667
|
-
@property
|
|
9668
|
-
def RuleId(self):
|
|
9669
|
-
r"""规则id
|
|
9670
|
-
:rtype: str
|
|
9671
|
-
"""
|
|
9672
|
-
return self._RuleId
|
|
9673
|
-
|
|
9674
|
-
@RuleId.setter
|
|
9675
|
-
def RuleId(self, RuleId):
|
|
9676
|
-
self._RuleId = RuleId
|
|
9677
|
-
|
|
9678
|
-
@property
|
|
9679
|
-
def RuleName(self):
|
|
9680
|
-
r"""规则名称
|
|
9681
|
-
:rtype: str
|
|
9682
|
-
"""
|
|
9683
|
-
return self._RuleName
|
|
9684
|
-
|
|
9685
|
-
@RuleName.setter
|
|
9686
|
-
def RuleName(self, RuleName):
|
|
9687
|
-
self._RuleName = RuleName
|
|
9688
|
-
|
|
9689
|
-
@property
|
|
9690
|
-
def Score(self):
|
|
9691
|
-
r"""分数
|
|
9692
|
-
:rtype: float
|
|
9693
|
-
"""
|
|
9694
|
-
return self._Score
|
|
9695
|
-
|
|
9696
|
-
@Score.setter
|
|
9697
|
-
def Score(self, Score):
|
|
9698
|
-
self._Score = Score
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
def _deserialize(self, params):
|
|
9702
|
-
self._RiskType = params.get("RiskType")
|
|
9703
|
-
self._RuleId = params.get("RuleId")
|
|
9704
|
-
self._RuleName = params.get("RuleName")
|
|
9705
|
-
self._Score = params.get("Score")
|
|
9706
|
-
memeber_set = set(params.keys())
|
|
9707
|
-
for name, value in vars(self).items():
|
|
9708
|
-
property_name = name[1:]
|
|
9709
|
-
if property_name in memeber_set:
|
|
9710
|
-
memeber_set.remove(property_name)
|
|
9711
|
-
if len(memeber_set) > 0:
|
|
9712
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
9599
|
class ClbDomainsInfo(AbstractModel):
|
|
9717
9600
|
r"""负载均衡型WAF域名详情
|
|
9718
9601
|
|
|
@@ -26043,134 +25926,6 @@ class DescribeProtectionModesResponse(AbstractModel):
|
|
|
26043
25926
|
self._RequestId = params.get("RequestId")
|
|
26044
25927
|
|
|
26045
25928
|
|
|
26046
|
-
class DescribeQClawContentSecCheckRequest(AbstractModel):
|
|
26047
|
-
r"""DescribeQClawContentSecCheck请求参数结构体
|
|
26048
|
-
|
|
26049
|
-
"""
|
|
26050
|
-
|
|
26051
|
-
def __init__(self):
|
|
26052
|
-
r"""
|
|
26053
|
-
:param _ServiceId: 服务id,使用哪一套防护策略,就需要传哪一套服务id,模型会检测该服务id下的所有规则
|
|
26054
|
-
:type ServiceId: str
|
|
26055
|
-
:param _Content: 要审核的内容
|
|
26056
|
-
:type Content: :class:`tencentcloud.waf.v20180125.models.ApiGuardContent`
|
|
26057
|
-
:param _UserId: 标识用户的id,限速使用,不填,则限速会不生效
|
|
26058
|
-
:type UserId: str
|
|
26059
|
-
:param _SessionId: 会话id
|
|
26060
|
-
:type SessionId: str
|
|
26061
|
-
"""
|
|
26062
|
-
self._ServiceId = None
|
|
26063
|
-
self._Content = None
|
|
26064
|
-
self._UserId = None
|
|
26065
|
-
self._SessionId = None
|
|
26066
|
-
|
|
26067
|
-
@property
|
|
26068
|
-
def ServiceId(self):
|
|
26069
|
-
r""" 服务id,使用哪一套防护策略,就需要传哪一套服务id,模型会检测该服务id下的所有规则
|
|
26070
|
-
:rtype: str
|
|
26071
|
-
"""
|
|
26072
|
-
return self._ServiceId
|
|
26073
|
-
|
|
26074
|
-
@ServiceId.setter
|
|
26075
|
-
def ServiceId(self, ServiceId):
|
|
26076
|
-
self._ServiceId = ServiceId
|
|
26077
|
-
|
|
26078
|
-
@property
|
|
26079
|
-
def Content(self):
|
|
26080
|
-
r"""要审核的内容
|
|
26081
|
-
:rtype: :class:`tencentcloud.waf.v20180125.models.ApiGuardContent`
|
|
26082
|
-
"""
|
|
26083
|
-
return self._Content
|
|
26084
|
-
|
|
26085
|
-
@Content.setter
|
|
26086
|
-
def Content(self, Content):
|
|
26087
|
-
self._Content = Content
|
|
26088
|
-
|
|
26089
|
-
@property
|
|
26090
|
-
def UserId(self):
|
|
26091
|
-
r"""标识用户的id,限速使用,不填,则限速会不生效
|
|
26092
|
-
:rtype: str
|
|
26093
|
-
"""
|
|
26094
|
-
return self._UserId
|
|
26095
|
-
|
|
26096
|
-
@UserId.setter
|
|
26097
|
-
def UserId(self, UserId):
|
|
26098
|
-
self._UserId = UserId
|
|
26099
|
-
|
|
26100
|
-
@property
|
|
26101
|
-
def SessionId(self):
|
|
26102
|
-
r"""会话id
|
|
26103
|
-
:rtype: str
|
|
26104
|
-
"""
|
|
26105
|
-
return self._SessionId
|
|
26106
|
-
|
|
26107
|
-
@SessionId.setter
|
|
26108
|
-
def SessionId(self, SessionId):
|
|
26109
|
-
self._SessionId = SessionId
|
|
26110
|
-
|
|
26111
|
-
|
|
26112
|
-
def _deserialize(self, params):
|
|
26113
|
-
self._ServiceId = params.get("ServiceId")
|
|
26114
|
-
if params.get("Content") is not None:
|
|
26115
|
-
self._Content = ApiGuardContent()
|
|
26116
|
-
self._Content._deserialize(params.get("Content"))
|
|
26117
|
-
self._UserId = params.get("UserId")
|
|
26118
|
-
self._SessionId = params.get("SessionId")
|
|
26119
|
-
memeber_set = set(params.keys())
|
|
26120
|
-
for name, value in vars(self).items():
|
|
26121
|
-
property_name = name[1:]
|
|
26122
|
-
if property_name in memeber_set:
|
|
26123
|
-
memeber_set.remove(property_name)
|
|
26124
|
-
if len(memeber_set) > 0:
|
|
26125
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
26126
|
-
|
|
26127
|
-
|
|
26128
|
-
|
|
26129
|
-
class DescribeQClawContentSecCheckResponse(AbstractModel):
|
|
26130
|
-
r"""DescribeQClawContentSecCheck返回参数结构体
|
|
26131
|
-
|
|
26132
|
-
"""
|
|
26133
|
-
|
|
26134
|
-
def __init__(self):
|
|
26135
|
-
r"""
|
|
26136
|
-
:param _Data: 检测结果
|
|
26137
|
-
:type Data: :class:`tencentcloud.waf.v20180125.models.LLMRisks`
|
|
26138
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
26139
|
-
:type RequestId: str
|
|
26140
|
-
"""
|
|
26141
|
-
self._Data = None
|
|
26142
|
-
self._RequestId = None
|
|
26143
|
-
|
|
26144
|
-
@property
|
|
26145
|
-
def Data(self):
|
|
26146
|
-
r"""检测结果
|
|
26147
|
-
:rtype: :class:`tencentcloud.waf.v20180125.models.LLMRisks`
|
|
26148
|
-
"""
|
|
26149
|
-
return self._Data
|
|
26150
|
-
|
|
26151
|
-
@Data.setter
|
|
26152
|
-
def Data(self, Data):
|
|
26153
|
-
self._Data = Data
|
|
26154
|
-
|
|
26155
|
-
@property
|
|
26156
|
-
def RequestId(self):
|
|
26157
|
-
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
26158
|
-
:rtype: str
|
|
26159
|
-
"""
|
|
26160
|
-
return self._RequestId
|
|
26161
|
-
|
|
26162
|
-
@RequestId.setter
|
|
26163
|
-
def RequestId(self, RequestId):
|
|
26164
|
-
self._RequestId = RequestId
|
|
26165
|
-
|
|
26166
|
-
|
|
26167
|
-
def _deserialize(self, params):
|
|
26168
|
-
if params.get("Data") is not None:
|
|
26169
|
-
self._Data = LLMRisks()
|
|
26170
|
-
self._Data._deserialize(params.get("Data"))
|
|
26171
|
-
self._RequestId = params.get("RequestId")
|
|
26172
|
-
|
|
26173
|
-
|
|
26174
25929
|
class DescribeRateLimitsV2Request(AbstractModel):
|
|
26175
25930
|
r"""DescribeRateLimitsV2请求参数结构体
|
|
26176
25931
|
|
|
@@ -37229,21 +36984,21 @@ class LLMDetectResult(AbstractModel):
|
|
|
37229
36984
|
|
|
37230
36985
|
def __init__(self):
|
|
37231
36986
|
r"""
|
|
37232
|
-
:param _SensitiveResult:
|
|
36987
|
+
:param _SensitiveResult: <p>仅输出侧:涉敏信息</p>
|
|
37233
36988
|
:type SensitiveResult: list of LLMSensitiveValueLevel
|
|
37234
|
-
:param _KeyWordsResult:
|
|
36989
|
+
:param _KeyWordsResult: <p>输入输出均检测:关键词库命中信息</p>
|
|
37235
36990
|
:type KeyWordsResult: list of KeyWordInfo
|
|
37236
|
-
:param _DataCategoryResult:
|
|
36991
|
+
:param _DataCategoryResult: <p>输入输出均检测:数据分类分级结果</p>
|
|
37237
36992
|
:type DataCategoryResult: list of str
|
|
37238
|
-
:param _PromptInjectionResult:
|
|
36993
|
+
:param _PromptInjectionResult: <p>仅输入侧检出:prompt检测的结果</p>
|
|
37239
36994
|
:type PromptInjectionResult: :class:`tencentcloud.waf.v20180125.models.PromptDetectResult`
|
|
37240
|
-
:param _RuleId:
|
|
36995
|
+
:param _RuleId: <p>命中的规则ID</p>
|
|
37241
36996
|
:type RuleId: str
|
|
37242
|
-
:param _RuleName:
|
|
36997
|
+
:param _RuleName: <p>命中的规则名称</p>
|
|
37243
36998
|
:type RuleName: str
|
|
37244
|
-
:param _Action:
|
|
36999
|
+
:param _Action: <p>规则动作</p>
|
|
37245
37000
|
:type Action: str
|
|
37246
|
-
:param _Payload:
|
|
37001
|
+
:param _Payload: <p>攻击payload</p>
|
|
37247
37002
|
:type Payload: str
|
|
37248
37003
|
"""
|
|
37249
37004
|
self._SensitiveResult = None
|
|
@@ -37257,7 +37012,7 @@ class LLMDetectResult(AbstractModel):
|
|
|
37257
37012
|
|
|
37258
37013
|
@property
|
|
37259
37014
|
def SensitiveResult(self):
|
|
37260
|
-
r"""
|
|
37015
|
+
r"""<p>仅输出侧:涉敏信息</p>
|
|
37261
37016
|
:rtype: list of LLMSensitiveValueLevel
|
|
37262
37017
|
"""
|
|
37263
37018
|
return self._SensitiveResult
|
|
@@ -37268,7 +37023,7 @@ class LLMDetectResult(AbstractModel):
|
|
|
37268
37023
|
|
|
37269
37024
|
@property
|
|
37270
37025
|
def KeyWordsResult(self):
|
|
37271
|
-
r"""
|
|
37026
|
+
r"""<p>输入输出均检测:关键词库命中信息</p>
|
|
37272
37027
|
:rtype: list of KeyWordInfo
|
|
37273
37028
|
"""
|
|
37274
37029
|
return self._KeyWordsResult
|
|
@@ -37279,7 +37034,7 @@ class LLMDetectResult(AbstractModel):
|
|
|
37279
37034
|
|
|
37280
37035
|
@property
|
|
37281
37036
|
def DataCategoryResult(self):
|
|
37282
|
-
r"""
|
|
37037
|
+
r"""<p>输入输出均检测:数据分类分级结果</p>
|
|
37283
37038
|
:rtype: list of str
|
|
37284
37039
|
"""
|
|
37285
37040
|
return self._DataCategoryResult
|
|
@@ -37290,7 +37045,7 @@ class LLMDetectResult(AbstractModel):
|
|
|
37290
37045
|
|
|
37291
37046
|
@property
|
|
37292
37047
|
def PromptInjectionResult(self):
|
|
37293
|
-
r"""
|
|
37048
|
+
r"""<p>仅输入侧检出:prompt检测的结果</p>
|
|
37294
37049
|
:rtype: :class:`tencentcloud.waf.v20180125.models.PromptDetectResult`
|
|
37295
37050
|
"""
|
|
37296
37051
|
return self._PromptInjectionResult
|
|
@@ -37301,7 +37056,7 @@ class LLMDetectResult(AbstractModel):
|
|
|
37301
37056
|
|
|
37302
37057
|
@property
|
|
37303
37058
|
def RuleId(self):
|
|
37304
|
-
r"""
|
|
37059
|
+
r"""<p>命中的规则ID</p>
|
|
37305
37060
|
:rtype: str
|
|
37306
37061
|
"""
|
|
37307
37062
|
return self._RuleId
|
|
@@ -37312,7 +37067,7 @@ class LLMDetectResult(AbstractModel):
|
|
|
37312
37067
|
|
|
37313
37068
|
@property
|
|
37314
37069
|
def RuleName(self):
|
|
37315
|
-
r"""
|
|
37070
|
+
r"""<p>命中的规则名称</p>
|
|
37316
37071
|
:rtype: str
|
|
37317
37072
|
"""
|
|
37318
37073
|
return self._RuleName
|
|
@@ -37323,7 +37078,7 @@ class LLMDetectResult(AbstractModel):
|
|
|
37323
37078
|
|
|
37324
37079
|
@property
|
|
37325
37080
|
def Action(self):
|
|
37326
|
-
r"""
|
|
37081
|
+
r"""<p>规则动作</p>
|
|
37327
37082
|
:rtype: str
|
|
37328
37083
|
"""
|
|
37329
37084
|
return self._Action
|
|
@@ -37334,7 +37089,7 @@ class LLMDetectResult(AbstractModel):
|
|
|
37334
37089
|
|
|
37335
37090
|
@property
|
|
37336
37091
|
def Payload(self):
|
|
37337
|
-
r"""
|
|
37092
|
+
r"""<p>攻击payload</p>
|
|
37338
37093
|
:rtype: str
|
|
37339
37094
|
"""
|
|
37340
37095
|
return self._Payload
|
|
@@ -37644,47 +37399,6 @@ class LLMPkg(AbstractModel):
|
|
|
37644
37399
|
|
|
37645
37400
|
|
|
37646
37401
|
|
|
37647
|
-
class LLMRisks(AbstractModel):
|
|
37648
|
-
r"""LLMRisks
|
|
37649
|
-
|
|
37650
|
-
"""
|
|
37651
|
-
|
|
37652
|
-
def __init__(self):
|
|
37653
|
-
r"""
|
|
37654
|
-
:param _Risks: 分数
|
|
37655
|
-
:type Risks: list of ClawRiskItem
|
|
37656
|
-
"""
|
|
37657
|
-
self._Risks = None
|
|
37658
|
-
|
|
37659
|
-
@property
|
|
37660
|
-
def Risks(self):
|
|
37661
|
-
r"""分数
|
|
37662
|
-
:rtype: list of ClawRiskItem
|
|
37663
|
-
"""
|
|
37664
|
-
return self._Risks
|
|
37665
|
-
|
|
37666
|
-
@Risks.setter
|
|
37667
|
-
def Risks(self, Risks):
|
|
37668
|
-
self._Risks = Risks
|
|
37669
|
-
|
|
37670
|
-
|
|
37671
|
-
def _deserialize(self, params):
|
|
37672
|
-
if params.get("Risks") is not None:
|
|
37673
|
-
self._Risks = []
|
|
37674
|
-
for item in params.get("Risks"):
|
|
37675
|
-
obj = ClawRiskItem()
|
|
37676
|
-
obj._deserialize(item)
|
|
37677
|
-
self._Risks.append(obj)
|
|
37678
|
-
memeber_set = set(params.keys())
|
|
37679
|
-
for name, value in vars(self).items():
|
|
37680
|
-
property_name = name[1:]
|
|
37681
|
-
if property_name in memeber_set:
|
|
37682
|
-
memeber_set.remove(property_name)
|
|
37683
|
-
if len(memeber_set) > 0:
|
|
37684
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
37685
|
-
|
|
37686
|
-
|
|
37687
|
-
|
|
37688
37402
|
class LLMSensitiveValueLevel(AbstractModel):
|
|
37689
37403
|
r"""涉敏信息结果结构体
|
|
37690
37404
|
|
|
@@ -2349,29 +2349,6 @@ class WafClient(AbstractClient):
|
|
|
2349
2349
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2350
2350
|
|
|
2351
2351
|
|
|
2352
|
-
def DescribeQClawContentSecCheck(self, request):
|
|
2353
|
-
r"""大模型请求内容和响应内容审核接口
|
|
2354
|
-
|
|
2355
|
-
:param request: Request instance for DescribeQClawContentSecCheck.
|
|
2356
|
-
:type request: :class:`tencentcloud.waf.v20180125.models.DescribeQClawContentSecCheckRequest`
|
|
2357
|
-
:rtype: :class:`tencentcloud.waf.v20180125.models.DescribeQClawContentSecCheckResponse`
|
|
2358
|
-
|
|
2359
|
-
"""
|
|
2360
|
-
try:
|
|
2361
|
-
params = request._serialize()
|
|
2362
|
-
headers = request.headers
|
|
2363
|
-
body = self.call("DescribeQClawContentSecCheck", params, headers=headers)
|
|
2364
|
-
response = json.loads(body)
|
|
2365
|
-
model = models.DescribeQClawContentSecCheckResponse()
|
|
2366
|
-
model._deserialize(response["Response"])
|
|
2367
|
-
return model
|
|
2368
|
-
except Exception as e:
|
|
2369
|
-
if isinstance(e, TencentCloudSDKException):
|
|
2370
|
-
raise
|
|
2371
|
-
else:
|
|
2372
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
2352
|
def DescribeRateLimitsV2(self, request):
|
|
2376
2353
|
r"""查询限流规则列表接口
|
|
2377
2354
|
|
|
@@ -1843,24 +1843,6 @@ class WafClient(AbstractClient):
|
|
|
1843
1843
|
|
|
1844
1844
|
return await self.call_and_deserialize(**kwargs)
|
|
1845
1845
|
|
|
1846
|
-
async def DescribeQClawContentSecCheck(
|
|
1847
|
-
self,
|
|
1848
|
-
request: models.DescribeQClawContentSecCheckRequest,
|
|
1849
|
-
opts: Dict = None,
|
|
1850
|
-
) -> models.DescribeQClawContentSecCheckResponse:
|
|
1851
|
-
"""
|
|
1852
|
-
大模型请求内容和响应内容审核接口
|
|
1853
|
-
"""
|
|
1854
|
-
|
|
1855
|
-
kwargs = {}
|
|
1856
|
-
kwargs["action"] = "DescribeQClawContentSecCheck"
|
|
1857
|
-
kwargs["params"] = request._serialize()
|
|
1858
|
-
kwargs["resp_cls"] = models.DescribeQClawContentSecCheckResponse
|
|
1859
|
-
kwargs["headers"] = request.headers
|
|
1860
|
-
kwargs["opts"] = opts or {}
|
|
1861
|
-
|
|
1862
|
-
return await self.call_and_deserialize(**kwargs)
|
|
1863
|
-
|
|
1864
1846
|
async def DescribeRateLimitsV2(
|
|
1865
1847
|
self,
|
|
1866
1848
|
request: models.DescribeRateLimitsV2Request,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-waf
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.71
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.71
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.71
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.67
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|