tencentcloud-sdk-python-teo 3.1.179__tar.gz → 3.1.180__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_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/setup.py +1 -1
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220901/models.py +321 -53
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud_sdk_python_teo.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_teo-3.1.180/tencentcloud_sdk_python_teo.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_teo-3.1.179/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/README.rst +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/setup.cfg +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/__init__.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220106/__init__.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220106/models.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220106/teo_client.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220106/teo_client_async.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220901/__init__.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220901/errorcodes.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220901/teo_client.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220901/teo_client_async.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_teo-3.1.179 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud_sdk_python_teo.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-teo
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.180
|
|
4
4
|
Summary: Tencent Cloud Teo 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.180
|
|
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-teo',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.180,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Teo SDK for Python',
|
|
@@ -901,6 +901,89 @@ class AccessURLRedirectQueryString(AbstractModel):
|
|
|
901
901
|
|
|
902
902
|
|
|
903
903
|
|
|
904
|
+
class AccountProtectionSettings(AbstractModel):
|
|
905
|
+
r"""账号保护配置。
|
|
906
|
+
|
|
907
|
+
"""
|
|
908
|
+
|
|
909
|
+
def __init__(self):
|
|
910
|
+
r"""
|
|
911
|
+
:param _Enabled: <p>账号保护功能开关。</p><p>枚举值:</p><ul><li>on: 开启;</li><li>off: 关闭。</li></ul><p>默认值:off。</p>
|
|
912
|
+
:type Enabled: str
|
|
913
|
+
:param _RequestPurpose: <p>请求目的。用于标识请求所属的业务操作场景。</p> <p>枚举值:</p> <ul> <li>ACCOUNT.CHANGE_PASSWORD:在已知原密码的情况下修改密码的请求;</li> <li>ACCOUNT.CHANGE_SECURITY_QUESTION:修改账号安全问题的请求;</li> <li>ACCOUNT.CHECK_EXISTENCE:校验账号是否已存在的请求,常见于登录或注册页面输入邮箱、手机号后的预校验;</li> <li>ACCOUNT.LOGIN:登录账号的请求;</li> <li>ACCOUNT.REGISTER:注册新账号的请求;</li> <li>ACCOUNT.RESET_PASSWORD:重置密码的请求,通常通过邮箱或短信验证身份后设置新密码;</li> <li>ACCOUNT.UPDATE:修改账号关联信息的请求,例如手机号、邮箱、支付卡号、收货地址等;</li> <li>ASSET.CHECK_GIFTCARD_BALANCE:通过卡号等信息查询礼品卡余额的请求;</li> <li>ASSET.CHECK_LOYALTY_POINTS:查询账号积分余额的请求;</li> <li>ASSET.REDEEM_CODE:使用兑换码兑换权益的请求;</li> <li>BROWSE.QUERY:站内搜索商品或服务的请求;</li> <li>PAYMENT.ADD_TO_CART:将商品加入购物车的请求;</li> <li>PAYMENT.GET_METHODS:获取账号已绑定支付方式列表的请求;</li> <li>PAYMENT.MAKE_PAYMENT:提交支付、结算或转账的请求。</li> </ul>
|
|
914
|
+
:type RequestPurpose: str
|
|
915
|
+
:param _UserIDSource: <p>用户标识在请求来源中的位置,其中 key 替换为实际的参数名称。</p><p>取值有:</p><ul><li>http.request.cookies["key"]:从 Cookie 中获取名称为 key 的 Cookie 值;</li><li>http.request.headers["key"]:从请求头中获取名称为 key 的头部值;</li><li>http.request.uri.args["key"]:从 URL 查询参数中获取名称为 key 的参数值。</li></ul>
|
|
916
|
+
:type UserIDSource: str
|
|
917
|
+
:param _UserRiskProfile: <p>用户风险等级配置。</p>
|
|
918
|
+
:type UserRiskProfile: :class:`tencentcloud.teo.v20220901.models.UserRiskProfile`
|
|
919
|
+
"""
|
|
920
|
+
self._Enabled = None
|
|
921
|
+
self._RequestPurpose = None
|
|
922
|
+
self._UserIDSource = None
|
|
923
|
+
self._UserRiskProfile = None
|
|
924
|
+
|
|
925
|
+
@property
|
|
926
|
+
def Enabled(self):
|
|
927
|
+
r"""<p>账号保护功能开关。</p><p>枚举值:</p><ul><li>on: 开启;</li><li>off: 关闭。</li></ul><p>默认值:off。</p>
|
|
928
|
+
:rtype: str
|
|
929
|
+
"""
|
|
930
|
+
return self._Enabled
|
|
931
|
+
|
|
932
|
+
@Enabled.setter
|
|
933
|
+
def Enabled(self, Enabled):
|
|
934
|
+
self._Enabled = Enabled
|
|
935
|
+
|
|
936
|
+
@property
|
|
937
|
+
def RequestPurpose(self):
|
|
938
|
+
r"""<p>请求目的。用于标识请求所属的业务操作场景。</p> <p>枚举值:</p> <ul> <li>ACCOUNT.CHANGE_PASSWORD:在已知原密码的情况下修改密码的请求;</li> <li>ACCOUNT.CHANGE_SECURITY_QUESTION:修改账号安全问题的请求;</li> <li>ACCOUNT.CHECK_EXISTENCE:校验账号是否已存在的请求,常见于登录或注册页面输入邮箱、手机号后的预校验;</li> <li>ACCOUNT.LOGIN:登录账号的请求;</li> <li>ACCOUNT.REGISTER:注册新账号的请求;</li> <li>ACCOUNT.RESET_PASSWORD:重置密码的请求,通常通过邮箱或短信验证身份后设置新密码;</li> <li>ACCOUNT.UPDATE:修改账号关联信息的请求,例如手机号、邮箱、支付卡号、收货地址等;</li> <li>ASSET.CHECK_GIFTCARD_BALANCE:通过卡号等信息查询礼品卡余额的请求;</li> <li>ASSET.CHECK_LOYALTY_POINTS:查询账号积分余额的请求;</li> <li>ASSET.REDEEM_CODE:使用兑换码兑换权益的请求;</li> <li>BROWSE.QUERY:站内搜索商品或服务的请求;</li> <li>PAYMENT.ADD_TO_CART:将商品加入购物车的请求;</li> <li>PAYMENT.GET_METHODS:获取账号已绑定支付方式列表的请求;</li> <li>PAYMENT.MAKE_PAYMENT:提交支付、结算或转账的请求。</li> </ul>
|
|
939
|
+
:rtype: str
|
|
940
|
+
"""
|
|
941
|
+
return self._RequestPurpose
|
|
942
|
+
|
|
943
|
+
@RequestPurpose.setter
|
|
944
|
+
def RequestPurpose(self, RequestPurpose):
|
|
945
|
+
self._RequestPurpose = RequestPurpose
|
|
946
|
+
|
|
947
|
+
@property
|
|
948
|
+
def UserIDSource(self):
|
|
949
|
+
r"""<p>用户标识在请求来源中的位置,其中 key 替换为实际的参数名称。</p><p>取值有:</p><ul><li>http.request.cookies["key"]:从 Cookie 中获取名称为 key 的 Cookie 值;</li><li>http.request.headers["key"]:从请求头中获取名称为 key 的头部值;</li><li>http.request.uri.args["key"]:从 URL 查询参数中获取名称为 key 的参数值。</li></ul>
|
|
950
|
+
:rtype: str
|
|
951
|
+
"""
|
|
952
|
+
return self._UserIDSource
|
|
953
|
+
|
|
954
|
+
@UserIDSource.setter
|
|
955
|
+
def UserIDSource(self, UserIDSource):
|
|
956
|
+
self._UserIDSource = UserIDSource
|
|
957
|
+
|
|
958
|
+
@property
|
|
959
|
+
def UserRiskProfile(self):
|
|
960
|
+
r"""<p>用户风险等级配置。</p>
|
|
961
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.UserRiskProfile`
|
|
962
|
+
"""
|
|
963
|
+
return self._UserRiskProfile
|
|
964
|
+
|
|
965
|
+
@UserRiskProfile.setter
|
|
966
|
+
def UserRiskProfile(self, UserRiskProfile):
|
|
967
|
+
self._UserRiskProfile = UserRiskProfile
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
def _deserialize(self, params):
|
|
971
|
+
self._Enabled = params.get("Enabled")
|
|
972
|
+
self._RequestPurpose = params.get("RequestPurpose")
|
|
973
|
+
self._UserIDSource = params.get("UserIDSource")
|
|
974
|
+
if params.get("UserRiskProfile") is not None:
|
|
975
|
+
self._UserRiskProfile = UserRiskProfile()
|
|
976
|
+
self._UserRiskProfile._deserialize(params.get("UserRiskProfile"))
|
|
977
|
+
memeber_set = set(params.keys())
|
|
978
|
+
for name, value in vars(self).items():
|
|
979
|
+
property_name = name[1:]
|
|
980
|
+
if property_name in memeber_set:
|
|
981
|
+
memeber_set.remove(property_name)
|
|
982
|
+
if len(memeber_set) > 0:
|
|
983
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
|
|
904
987
|
class AclCondition(AbstractModel):
|
|
905
988
|
r"""精准防护条件
|
|
906
989
|
|
|
@@ -7600,22 +7683,24 @@ class ClientAttestationRule(AbstractModel):
|
|
|
7600
7683
|
|
|
7601
7684
|
def __init__(self):
|
|
7602
7685
|
r"""
|
|
7603
|
-
:param _Id:
|
|
7686
|
+
:param _Id: <p>客户端认证规则的 ID。<br>通过规则 ID 可支持不同的规则配置操作:<br> <li> <b>增加</b>新规则:ID 为空或不指定 ID 参数;</li><li> <b>修改</b>已有规则:指定需要更新/修改的规则 ID;</li><li> <b>删除</b>已有规则:BotManagement 参数中,ClientAttestationRule 列表中未包含的已有规则将被删除。</li></p>
|
|
7604
7687
|
:type Id: str
|
|
7605
|
-
:param _Name:
|
|
7688
|
+
:param _Name: <p>客户端认证规则的名称。</p>
|
|
7606
7689
|
:type Name: str
|
|
7607
|
-
:param _Enabled:
|
|
7690
|
+
:param _Enabled: <p>规则是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li></p>
|
|
7608
7691
|
:type Enabled: str
|
|
7609
|
-
:param _Priority:
|
|
7692
|
+
:param _Priority: <p>规则的优先级,数值越小越优先执行,范围是 0 ~ 100,默认为 0。</p>
|
|
7610
7693
|
:type Priority: int
|
|
7611
|
-
:param _Condition:
|
|
7694
|
+
:param _Condition: <p>规则的具体内容,需符合表达式语法,详细规范参见产品文档。</p>
|
|
7612
7695
|
:type Condition: str
|
|
7613
|
-
:param _AttesterId:
|
|
7696
|
+
:param _AttesterId: <p>客户端认证选项 ID。</p>
|
|
7614
7697
|
:type AttesterId: str
|
|
7615
|
-
:param
|
|
7616
|
-
:type DeviceProfiles: list of DeviceProfile
|
|
7617
|
-
:param _InvalidAttestationAction: 客户端认证未通过的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。
|
|
7698
|
+
:param _InvalidAttestationAction: <p>客户端认证未通过的处置方式。SecurityAction.Name 取值范围如下:</p><ul><li>Allow:放行,其中 AllowActionParameters 支持 MinDelayTime 和 MaxDelayTime 配置;</li><li>Deny:拦截,其中 DenyActionParameters 中支持 BlockIp、ReturnCustomPage 和 Stall 配置;</li><li>Monitor:观察;</li><li>Challenge:挑战,其中 ChallengeActionParameters.ChallengeOption 支持 JSChallenge、ManagedChallenge、InterstitialChallenge 和 InlineChallenge;</li><li>Redirect:重定向至URL。</li></ul>
|
|
7618
7699
|
:type InvalidAttestationAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
7700
|
+
:param _DeviceProfiles: <p>客户端设备配置。若 ClientAttestationRules 参数中,未指定 DeviceProfiles 参数值:保持已有客户端设备配置,不做修改。</p>
|
|
7701
|
+
:type DeviceProfiles: list of DeviceProfile
|
|
7702
|
+
:param _AccountProtectionSettings: <p>账号保护配置。</p>
|
|
7703
|
+
:type AccountProtectionSettings: :class:`tencentcloud.teo.v20220901.models.AccountProtectionSettings`
|
|
7619
7704
|
"""
|
|
7620
7705
|
self._Id = None
|
|
7621
7706
|
self._Name = None
|
|
@@ -7623,12 +7708,13 @@ class ClientAttestationRule(AbstractModel):
|
|
|
7623
7708
|
self._Priority = None
|
|
7624
7709
|
self._Condition = None
|
|
7625
7710
|
self._AttesterId = None
|
|
7626
|
-
self._DeviceProfiles = None
|
|
7627
7711
|
self._InvalidAttestationAction = None
|
|
7712
|
+
self._DeviceProfiles = None
|
|
7713
|
+
self._AccountProtectionSettings = None
|
|
7628
7714
|
|
|
7629
7715
|
@property
|
|
7630
7716
|
def Id(self):
|
|
7631
|
-
r"""
|
|
7717
|
+
r"""<p>客户端认证规则的 ID。<br>通过规则 ID 可支持不同的规则配置操作:<br> <li> <b>增加</b>新规则:ID 为空或不指定 ID 参数;</li><li> <b>修改</b>已有规则:指定需要更新/修改的规则 ID;</li><li> <b>删除</b>已有规则:BotManagement 参数中,ClientAttestationRule 列表中未包含的已有规则将被删除。</li></p>
|
|
7632
7718
|
:rtype: str
|
|
7633
7719
|
"""
|
|
7634
7720
|
return self._Id
|
|
@@ -7639,7 +7725,7 @@ class ClientAttestationRule(AbstractModel):
|
|
|
7639
7725
|
|
|
7640
7726
|
@property
|
|
7641
7727
|
def Name(self):
|
|
7642
|
-
r"""
|
|
7728
|
+
r"""<p>客户端认证规则的名称。</p>
|
|
7643
7729
|
:rtype: str
|
|
7644
7730
|
"""
|
|
7645
7731
|
return self._Name
|
|
@@ -7650,7 +7736,7 @@ class ClientAttestationRule(AbstractModel):
|
|
|
7650
7736
|
|
|
7651
7737
|
@property
|
|
7652
7738
|
def Enabled(self):
|
|
7653
|
-
r"""
|
|
7739
|
+
r"""<p>规则是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li></p>
|
|
7654
7740
|
:rtype: str
|
|
7655
7741
|
"""
|
|
7656
7742
|
return self._Enabled
|
|
@@ -7661,7 +7747,7 @@ class ClientAttestationRule(AbstractModel):
|
|
|
7661
7747
|
|
|
7662
7748
|
@property
|
|
7663
7749
|
def Priority(self):
|
|
7664
|
-
r"""
|
|
7750
|
+
r"""<p>规则的优先级,数值越小越优先执行,范围是 0 ~ 100,默认为 0。</p>
|
|
7665
7751
|
:rtype: int
|
|
7666
7752
|
"""
|
|
7667
7753
|
return self._Priority
|
|
@@ -7672,7 +7758,7 @@ class ClientAttestationRule(AbstractModel):
|
|
|
7672
7758
|
|
|
7673
7759
|
@property
|
|
7674
7760
|
def Condition(self):
|
|
7675
|
-
r"""
|
|
7761
|
+
r"""<p>规则的具体内容,需符合表达式语法,详细规范参见产品文档。</p>
|
|
7676
7762
|
:rtype: str
|
|
7677
7763
|
"""
|
|
7678
7764
|
return self._Condition
|
|
@@ -7683,7 +7769,7 @@ class ClientAttestationRule(AbstractModel):
|
|
|
7683
7769
|
|
|
7684
7770
|
@property
|
|
7685
7771
|
def AttesterId(self):
|
|
7686
|
-
r"""
|
|
7772
|
+
r"""<p>客户端认证选项 ID。</p>
|
|
7687
7773
|
:rtype: str
|
|
7688
7774
|
"""
|
|
7689
7775
|
return self._AttesterId
|
|
@@ -7692,9 +7778,20 @@ class ClientAttestationRule(AbstractModel):
|
|
|
7692
7778
|
def AttesterId(self, AttesterId):
|
|
7693
7779
|
self._AttesterId = AttesterId
|
|
7694
7780
|
|
|
7781
|
+
@property
|
|
7782
|
+
def InvalidAttestationAction(self):
|
|
7783
|
+
r"""<p>客户端认证未通过的处置方式。SecurityAction.Name 取值范围如下:</p><ul><li>Allow:放行,其中 AllowActionParameters 支持 MinDelayTime 和 MaxDelayTime 配置;</li><li>Deny:拦截,其中 DenyActionParameters 中支持 BlockIp、ReturnCustomPage 和 Stall 配置;</li><li>Monitor:观察;</li><li>Challenge:挑战,其中 ChallengeActionParameters.ChallengeOption 支持 JSChallenge、ManagedChallenge、InterstitialChallenge 和 InlineChallenge;</li><li>Redirect:重定向至URL。</li></ul>
|
|
7784
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
7785
|
+
"""
|
|
7786
|
+
return self._InvalidAttestationAction
|
|
7787
|
+
|
|
7788
|
+
@InvalidAttestationAction.setter
|
|
7789
|
+
def InvalidAttestationAction(self, InvalidAttestationAction):
|
|
7790
|
+
self._InvalidAttestationAction = InvalidAttestationAction
|
|
7791
|
+
|
|
7695
7792
|
@property
|
|
7696
7793
|
def DeviceProfiles(self):
|
|
7697
|
-
r"""
|
|
7794
|
+
r"""<p>客户端设备配置。若 ClientAttestationRules 参数中,未指定 DeviceProfiles 参数值:保持已有客户端设备配置,不做修改。</p>
|
|
7698
7795
|
:rtype: list of DeviceProfile
|
|
7699
7796
|
"""
|
|
7700
7797
|
return self._DeviceProfiles
|
|
@@ -7704,15 +7801,15 @@ class ClientAttestationRule(AbstractModel):
|
|
|
7704
7801
|
self._DeviceProfiles = DeviceProfiles
|
|
7705
7802
|
|
|
7706
7803
|
@property
|
|
7707
|
-
def
|
|
7708
|
-
r"""
|
|
7709
|
-
:rtype: :class:`tencentcloud.teo.v20220901.models.
|
|
7804
|
+
def AccountProtectionSettings(self):
|
|
7805
|
+
r"""<p>账号保护配置。</p>
|
|
7806
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.AccountProtectionSettings`
|
|
7710
7807
|
"""
|
|
7711
|
-
return self.
|
|
7808
|
+
return self._AccountProtectionSettings
|
|
7712
7809
|
|
|
7713
|
-
@
|
|
7714
|
-
def
|
|
7715
|
-
self.
|
|
7810
|
+
@AccountProtectionSettings.setter
|
|
7811
|
+
def AccountProtectionSettings(self, AccountProtectionSettings):
|
|
7812
|
+
self._AccountProtectionSettings = AccountProtectionSettings
|
|
7716
7813
|
|
|
7717
7814
|
|
|
7718
7815
|
def _deserialize(self, params):
|
|
@@ -7722,15 +7819,18 @@ class ClientAttestationRule(AbstractModel):
|
|
|
7722
7819
|
self._Priority = params.get("Priority")
|
|
7723
7820
|
self._Condition = params.get("Condition")
|
|
7724
7821
|
self._AttesterId = params.get("AttesterId")
|
|
7822
|
+
if params.get("InvalidAttestationAction") is not None:
|
|
7823
|
+
self._InvalidAttestationAction = SecurityAction()
|
|
7824
|
+
self._InvalidAttestationAction._deserialize(params.get("InvalidAttestationAction"))
|
|
7725
7825
|
if params.get("DeviceProfiles") is not None:
|
|
7726
7826
|
self._DeviceProfiles = []
|
|
7727
7827
|
for item in params.get("DeviceProfiles"):
|
|
7728
7828
|
obj = DeviceProfile()
|
|
7729
7829
|
obj._deserialize(item)
|
|
7730
7830
|
self._DeviceProfiles.append(obj)
|
|
7731
|
-
if params.get("
|
|
7732
|
-
self.
|
|
7733
|
-
self.
|
|
7831
|
+
if params.get("AccountProtectionSettings") is not None:
|
|
7832
|
+
self._AccountProtectionSettings = AccountProtectionSettings()
|
|
7833
|
+
self._AccountProtectionSettings._deserialize(params.get("AccountProtectionSettings"))
|
|
7734
7834
|
memeber_set = set(params.keys())
|
|
7735
7835
|
for name, value in vars(self).items():
|
|
7736
7836
|
property_name = name[1:]
|
|
@@ -34020,15 +34120,15 @@ class DeviceProfile(AbstractModel):
|
|
|
34020
34120
|
|
|
34021
34121
|
def __init__(self):
|
|
34022
34122
|
r"""
|
|
34023
|
-
:param _ClientType:
|
|
34123
|
+
:param _ClientType: <p>客户端设备类型。取值有:<li>iOS;</li><li>Android;</li><li>WebView;</li><li>WeChatMiniProgram。</li></p>
|
|
34024
34124
|
:type ClientType: str
|
|
34025
|
-
:param _HighRiskMinScore:
|
|
34125
|
+
:param _HighRiskMinScore: <p>高风险请求的最低风险分数。分数大于等于该值时,判定为高风险。</p><p>取值范围:[2, 99]</p><p>默认值:50</p>
|
|
34026
34126
|
:type HighRiskMinScore: int
|
|
34027
|
-
:param _HighRiskRequestAction:
|
|
34127
|
+
:param _HighRiskRequestAction: <p>高风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。</p>
|
|
34028
34128
|
:type HighRiskRequestAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
34029
|
-
:param _MediumRiskMinScore:
|
|
34129
|
+
:param _MediumRiskMinScore: <p>中风险请求的最低风险分数。分数大于等于该值且小于 HighRiskMinScore 时,判定为中风险;低于该值时,判定为低风险。</p><p>取值范围:[1, 98]</p><p>默认值:15</p>
|
|
34030
34130
|
:type MediumRiskMinScore: int
|
|
34031
|
-
:param _MediumRiskRequestAction:
|
|
34131
|
+
:param _MediumRiskRequestAction: <p>中风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。</p>
|
|
34032
34132
|
:type MediumRiskRequestAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
34033
34133
|
"""
|
|
34034
34134
|
self._ClientType = None
|
|
@@ -34039,7 +34139,7 @@ class DeviceProfile(AbstractModel):
|
|
|
34039
34139
|
|
|
34040
34140
|
@property
|
|
34041
34141
|
def ClientType(self):
|
|
34042
|
-
r"""
|
|
34142
|
+
r"""<p>客户端设备类型。取值有:<li>iOS;</li><li>Android;</li><li>WebView;</li><li>WeChatMiniProgram。</li></p>
|
|
34043
34143
|
:rtype: str
|
|
34044
34144
|
"""
|
|
34045
34145
|
return self._ClientType
|
|
@@ -34050,7 +34150,7 @@ class DeviceProfile(AbstractModel):
|
|
|
34050
34150
|
|
|
34051
34151
|
@property
|
|
34052
34152
|
def HighRiskMinScore(self):
|
|
34053
|
-
r"""
|
|
34153
|
+
r"""<p>高风险请求的最低风险分数。分数大于等于该值时,判定为高风险。</p><p>取值范围:[2, 99]</p><p>默认值:50</p>
|
|
34054
34154
|
:rtype: int
|
|
34055
34155
|
"""
|
|
34056
34156
|
return self._HighRiskMinScore
|
|
@@ -34061,7 +34161,7 @@ class DeviceProfile(AbstractModel):
|
|
|
34061
34161
|
|
|
34062
34162
|
@property
|
|
34063
34163
|
def HighRiskRequestAction(self):
|
|
34064
|
-
r"""
|
|
34164
|
+
r"""<p>高风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。</p>
|
|
34065
34165
|
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
34066
34166
|
"""
|
|
34067
34167
|
return self._HighRiskRequestAction
|
|
@@ -34072,7 +34172,7 @@ class DeviceProfile(AbstractModel):
|
|
|
34072
34172
|
|
|
34073
34173
|
@property
|
|
34074
34174
|
def MediumRiskMinScore(self):
|
|
34075
|
-
r"""
|
|
34175
|
+
r"""<p>中风险请求的最低风险分数。分数大于等于该值且小于 HighRiskMinScore 时,判定为中风险;低于该值时,判定为低风险。</p><p>取值范围:[1, 98]</p><p>默认值:15</p>
|
|
34076
34176
|
:rtype: int
|
|
34077
34177
|
"""
|
|
34078
34178
|
return self._MediumRiskMinScore
|
|
@@ -34083,7 +34183,7 @@ class DeviceProfile(AbstractModel):
|
|
|
34083
34183
|
|
|
34084
34184
|
@property
|
|
34085
34185
|
def MediumRiskRequestAction(self):
|
|
34086
|
-
r"""
|
|
34186
|
+
r"""<p>中风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。</p>
|
|
34087
34187
|
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
34088
34188
|
"""
|
|
34089
34189
|
return self._MediumRiskRequestAction
|
|
@@ -63437,6 +63537,72 @@ class SecurityConfig(AbstractModel):
|
|
|
63437
63537
|
|
|
63438
63538
|
|
|
63439
63539
|
|
|
63540
|
+
class SecurityHeadersToOrigin(AbstractModel):
|
|
63541
|
+
r"""回源请求携带安全头部配置,配置生效后将携带对应 keyname 的请求头部回源。
|
|
63542
|
+
|
|
63543
|
+
"""
|
|
63544
|
+
|
|
63545
|
+
def __init__(self):
|
|
63546
|
+
r"""
|
|
63547
|
+
:param _BotIdentificationHeaders: <p>Bot 标识信息回源头部配置。</p><p>枚举值:</p><ul><li>EO-Bot-Botnet-ID: 基于 Bot 请求特征生成的识别标识。</li></ul>
|
|
63548
|
+
:type BotIdentificationHeaders: list of str
|
|
63549
|
+
:param _BotManagementHeaders: <p>高级 Bot 管理模块识别结果回源头部配置。</p><p>枚举值:</p><ul><li>EO-Bot-Client-Attestation: 高级 Bot 管理 - 客户端认证模块认证票据校验结果;</li><li>EO-Bot-Client-Risk: 高级 Bot 管理 - 客户端认证模块设备风险评估结果;</li><li>EO-Bot-Intelligence: 高级 Bot 管理 - Bot 智能分析模块识别结果;</li><li>EO-Bot-IP-Reputation: 高级 Bot 管理 - 客户端画像分析识别结果;</li><li>EO-Bot-Known-Tool: 高级 Bot 管理 - 基础特征管理 - UA 特征规则模块识别结果;</li><li>EO-Bot-Search-Engine: 高级 Bot 管理 - 基础特征管理 - 搜索引擎规则模块识别结果;</li><li>EO-Bot-Source-IDC: 高级 Bot 管理 - 基础特征管理 - IDC 规则模块识别结果;</li><li>EO-Bot-User-Risk: 高级 Bot 管理 - 客户端认证模块账号风险评估结果。</li></ul>
|
|
63550
|
+
:type BotManagementHeaders: list of str
|
|
63551
|
+
:param _ClientFingerprintHeaders: <p>客户端指纹信息回源头部配置。</p><p>枚举值:</p><ul><li>EO-Bot-Fingerprint: 客户端指纹信息。</li></ul>
|
|
63552
|
+
:type ClientFingerprintHeaders: list of str
|
|
63553
|
+
"""
|
|
63554
|
+
self._BotIdentificationHeaders = None
|
|
63555
|
+
self._BotManagementHeaders = None
|
|
63556
|
+
self._ClientFingerprintHeaders = None
|
|
63557
|
+
|
|
63558
|
+
@property
|
|
63559
|
+
def BotIdentificationHeaders(self):
|
|
63560
|
+
r"""<p>Bot 标识信息回源头部配置。</p><p>枚举值:</p><ul><li>EO-Bot-Botnet-ID: 基于 Bot 请求特征生成的识别标识。</li></ul>
|
|
63561
|
+
:rtype: list of str
|
|
63562
|
+
"""
|
|
63563
|
+
return self._BotIdentificationHeaders
|
|
63564
|
+
|
|
63565
|
+
@BotIdentificationHeaders.setter
|
|
63566
|
+
def BotIdentificationHeaders(self, BotIdentificationHeaders):
|
|
63567
|
+
self._BotIdentificationHeaders = BotIdentificationHeaders
|
|
63568
|
+
|
|
63569
|
+
@property
|
|
63570
|
+
def BotManagementHeaders(self):
|
|
63571
|
+
r"""<p>高级 Bot 管理模块识别结果回源头部配置。</p><p>枚举值:</p><ul><li>EO-Bot-Client-Attestation: 高级 Bot 管理 - 客户端认证模块认证票据校验结果;</li><li>EO-Bot-Client-Risk: 高级 Bot 管理 - 客户端认证模块设备风险评估结果;</li><li>EO-Bot-Intelligence: 高级 Bot 管理 - Bot 智能分析模块识别结果;</li><li>EO-Bot-IP-Reputation: 高级 Bot 管理 - 客户端画像分析识别结果;</li><li>EO-Bot-Known-Tool: 高级 Bot 管理 - 基础特征管理 - UA 特征规则模块识别结果;</li><li>EO-Bot-Search-Engine: 高级 Bot 管理 - 基础特征管理 - 搜索引擎规则模块识别结果;</li><li>EO-Bot-Source-IDC: 高级 Bot 管理 - 基础特征管理 - IDC 规则模块识别结果;</li><li>EO-Bot-User-Risk: 高级 Bot 管理 - 客户端认证模块账号风险评估结果。</li></ul>
|
|
63572
|
+
:rtype: list of str
|
|
63573
|
+
"""
|
|
63574
|
+
return self._BotManagementHeaders
|
|
63575
|
+
|
|
63576
|
+
@BotManagementHeaders.setter
|
|
63577
|
+
def BotManagementHeaders(self, BotManagementHeaders):
|
|
63578
|
+
self._BotManagementHeaders = BotManagementHeaders
|
|
63579
|
+
|
|
63580
|
+
@property
|
|
63581
|
+
def ClientFingerprintHeaders(self):
|
|
63582
|
+
r"""<p>客户端指纹信息回源头部配置。</p><p>枚举值:</p><ul><li>EO-Bot-Fingerprint: 客户端指纹信息。</li></ul>
|
|
63583
|
+
:rtype: list of str
|
|
63584
|
+
"""
|
|
63585
|
+
return self._ClientFingerprintHeaders
|
|
63586
|
+
|
|
63587
|
+
@ClientFingerprintHeaders.setter
|
|
63588
|
+
def ClientFingerprintHeaders(self, ClientFingerprintHeaders):
|
|
63589
|
+
self._ClientFingerprintHeaders = ClientFingerprintHeaders
|
|
63590
|
+
|
|
63591
|
+
|
|
63592
|
+
def _deserialize(self, params):
|
|
63593
|
+
self._BotIdentificationHeaders = params.get("BotIdentificationHeaders")
|
|
63594
|
+
self._BotManagementHeaders = params.get("BotManagementHeaders")
|
|
63595
|
+
self._ClientFingerprintHeaders = params.get("ClientFingerprintHeaders")
|
|
63596
|
+
memeber_set = set(params.keys())
|
|
63597
|
+
for name, value in vars(self).items():
|
|
63598
|
+
property_name = name[1:]
|
|
63599
|
+
if property_name in memeber_set:
|
|
63600
|
+
memeber_set.remove(property_name)
|
|
63601
|
+
if len(memeber_set) > 0:
|
|
63602
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
63603
|
+
|
|
63604
|
+
|
|
63605
|
+
|
|
63440
63606
|
class SecurityPolicy(AbstractModel):
|
|
63441
63607
|
r"""安全策略配置
|
|
63442
63608
|
|
|
@@ -63444,22 +63610,24 @@ class SecurityPolicy(AbstractModel):
|
|
|
63444
63610
|
|
|
63445
63611
|
def __init__(self):
|
|
63446
63612
|
r"""
|
|
63447
|
-
:param _CustomRules:
|
|
63613
|
+
:param _CustomRules: <p>自定义规则配置。</p>
|
|
63448
63614
|
:type CustomRules: :class:`tencentcloud.teo.v20220901.models.CustomRules`
|
|
63449
|
-
:param _ManagedRules:
|
|
63615
|
+
:param _ManagedRules: <p>托管规则配置。</p>
|
|
63450
63616
|
:type ManagedRules: :class:`tencentcloud.teo.v20220901.models.ManagedRules`
|
|
63451
|
-
:param _HttpDDoSProtection: HTTP DDOS
|
|
63617
|
+
:param _HttpDDoSProtection: <p>HTTP DDOS 防护配置。</p>
|
|
63452
63618
|
:type HttpDDoSProtection: :class:`tencentcloud.teo.v20220901.models.HttpDDoSProtection`
|
|
63453
|
-
:param _RateLimitingRules:
|
|
63619
|
+
:param _RateLimitingRules: <p>速率限制规则配置。</p>
|
|
63454
63620
|
:type RateLimitingRules: :class:`tencentcloud.teo.v20220901.models.RateLimitingRules`
|
|
63455
|
-
:param _ExceptionRules:
|
|
63621
|
+
:param _ExceptionRules: <p>例外规则配置。</p>
|
|
63456
63622
|
:type ExceptionRules: :class:`tencentcloud.teo.v20220901.models.ExceptionRules`
|
|
63457
|
-
:param _BotManagement: Bot
|
|
63623
|
+
:param _BotManagement: <p>Bot 管理配置。</p>
|
|
63458
63624
|
:type BotManagement: :class:`tencentcloud.teo.v20220901.models.BotManagement`
|
|
63459
|
-
:param _BotManagementLite:
|
|
63625
|
+
:param _BotManagementLite: <p>基础 Bot 管理配置。</p>
|
|
63460
63626
|
:type BotManagementLite: :class:`tencentcloud.teo.v20220901.models.BotManagementLite`
|
|
63461
|
-
:param _DefaultDenySecurityActionParameters:
|
|
63627
|
+
:param _DefaultDenySecurityActionParameters: <p>默认拦截动作配置。</p>
|
|
63462
63628
|
:type DefaultDenySecurityActionParameters: :class:`tencentcloud.teo.v20220901.models.DefaultDenySecurityActionParameters`
|
|
63629
|
+
:param _SecurityHeadersToOrigin: <p>回源请求携带安全头部配置,配置生效后将携带对应 keyname 的请求头部回源。</p>
|
|
63630
|
+
:type SecurityHeadersToOrigin: :class:`tencentcloud.teo.v20220901.models.SecurityHeadersToOrigin`
|
|
63463
63631
|
"""
|
|
63464
63632
|
self._CustomRules = None
|
|
63465
63633
|
self._ManagedRules = None
|
|
@@ -63469,10 +63637,11 @@ class SecurityPolicy(AbstractModel):
|
|
|
63469
63637
|
self._BotManagement = None
|
|
63470
63638
|
self._BotManagementLite = None
|
|
63471
63639
|
self._DefaultDenySecurityActionParameters = None
|
|
63640
|
+
self._SecurityHeadersToOrigin = None
|
|
63472
63641
|
|
|
63473
63642
|
@property
|
|
63474
63643
|
def CustomRules(self):
|
|
63475
|
-
r"""
|
|
63644
|
+
r"""<p>自定义规则配置。</p>
|
|
63476
63645
|
:rtype: :class:`tencentcloud.teo.v20220901.models.CustomRules`
|
|
63477
63646
|
"""
|
|
63478
63647
|
return self._CustomRules
|
|
@@ -63483,7 +63652,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63483
63652
|
|
|
63484
63653
|
@property
|
|
63485
63654
|
def ManagedRules(self):
|
|
63486
|
-
r"""
|
|
63655
|
+
r"""<p>托管规则配置。</p>
|
|
63487
63656
|
:rtype: :class:`tencentcloud.teo.v20220901.models.ManagedRules`
|
|
63488
63657
|
"""
|
|
63489
63658
|
return self._ManagedRules
|
|
@@ -63494,7 +63663,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63494
63663
|
|
|
63495
63664
|
@property
|
|
63496
63665
|
def HttpDDoSProtection(self):
|
|
63497
|
-
r"""HTTP DDOS
|
|
63666
|
+
r"""<p>HTTP DDOS 防护配置。</p>
|
|
63498
63667
|
:rtype: :class:`tencentcloud.teo.v20220901.models.HttpDDoSProtection`
|
|
63499
63668
|
"""
|
|
63500
63669
|
return self._HttpDDoSProtection
|
|
@@ -63505,7 +63674,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63505
63674
|
|
|
63506
63675
|
@property
|
|
63507
63676
|
def RateLimitingRules(self):
|
|
63508
|
-
r"""
|
|
63677
|
+
r"""<p>速率限制规则配置。</p>
|
|
63509
63678
|
:rtype: :class:`tencentcloud.teo.v20220901.models.RateLimitingRules`
|
|
63510
63679
|
"""
|
|
63511
63680
|
return self._RateLimitingRules
|
|
@@ -63516,7 +63685,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63516
63685
|
|
|
63517
63686
|
@property
|
|
63518
63687
|
def ExceptionRules(self):
|
|
63519
|
-
r"""
|
|
63688
|
+
r"""<p>例外规则配置。</p>
|
|
63520
63689
|
:rtype: :class:`tencentcloud.teo.v20220901.models.ExceptionRules`
|
|
63521
63690
|
"""
|
|
63522
63691
|
return self._ExceptionRules
|
|
@@ -63527,7 +63696,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63527
63696
|
|
|
63528
63697
|
@property
|
|
63529
63698
|
def BotManagement(self):
|
|
63530
|
-
r"""Bot
|
|
63699
|
+
r"""<p>Bot 管理配置。</p>
|
|
63531
63700
|
:rtype: :class:`tencentcloud.teo.v20220901.models.BotManagement`
|
|
63532
63701
|
"""
|
|
63533
63702
|
return self._BotManagement
|
|
@@ -63538,7 +63707,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63538
63707
|
|
|
63539
63708
|
@property
|
|
63540
63709
|
def BotManagementLite(self):
|
|
63541
|
-
r"""
|
|
63710
|
+
r"""<p>基础 Bot 管理配置。</p>
|
|
63542
63711
|
:rtype: :class:`tencentcloud.teo.v20220901.models.BotManagementLite`
|
|
63543
63712
|
"""
|
|
63544
63713
|
return self._BotManagementLite
|
|
@@ -63549,7 +63718,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63549
63718
|
|
|
63550
63719
|
@property
|
|
63551
63720
|
def DefaultDenySecurityActionParameters(self):
|
|
63552
|
-
r"""
|
|
63721
|
+
r"""<p>默认拦截动作配置。</p>
|
|
63553
63722
|
:rtype: :class:`tencentcloud.teo.v20220901.models.DefaultDenySecurityActionParameters`
|
|
63554
63723
|
"""
|
|
63555
63724
|
return self._DefaultDenySecurityActionParameters
|
|
@@ -63558,6 +63727,17 @@ class SecurityPolicy(AbstractModel):
|
|
|
63558
63727
|
def DefaultDenySecurityActionParameters(self, DefaultDenySecurityActionParameters):
|
|
63559
63728
|
self._DefaultDenySecurityActionParameters = DefaultDenySecurityActionParameters
|
|
63560
63729
|
|
|
63730
|
+
@property
|
|
63731
|
+
def SecurityHeadersToOrigin(self):
|
|
63732
|
+
r"""<p>回源请求携带安全头部配置,配置生效后将携带对应 keyname 的请求头部回源。</p>
|
|
63733
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityHeadersToOrigin`
|
|
63734
|
+
"""
|
|
63735
|
+
return self._SecurityHeadersToOrigin
|
|
63736
|
+
|
|
63737
|
+
@SecurityHeadersToOrigin.setter
|
|
63738
|
+
def SecurityHeadersToOrigin(self, SecurityHeadersToOrigin):
|
|
63739
|
+
self._SecurityHeadersToOrigin = SecurityHeadersToOrigin
|
|
63740
|
+
|
|
63561
63741
|
|
|
63562
63742
|
def _deserialize(self, params):
|
|
63563
63743
|
if params.get("CustomRules") is not None:
|
|
@@ -63584,6 +63764,9 @@ class SecurityPolicy(AbstractModel):
|
|
|
63584
63764
|
if params.get("DefaultDenySecurityActionParameters") is not None:
|
|
63585
63765
|
self._DefaultDenySecurityActionParameters = DefaultDenySecurityActionParameters()
|
|
63586
63766
|
self._DefaultDenySecurityActionParameters._deserialize(params.get("DefaultDenySecurityActionParameters"))
|
|
63767
|
+
if params.get("SecurityHeadersToOrigin") is not None:
|
|
63768
|
+
self._SecurityHeadersToOrigin = SecurityHeadersToOrigin()
|
|
63769
|
+
self._SecurityHeadersToOrigin._deserialize(params.get("SecurityHeadersToOrigin"))
|
|
63587
63770
|
memeber_set = set(params.keys())
|
|
63588
63771
|
for name, value in vars(self).items():
|
|
63589
63772
|
property_name = name[1:]
|
|
@@ -67401,6 +67584,91 @@ class UpstreamURLRewriteParameters(AbstractModel):
|
|
|
67401
67584
|
|
|
67402
67585
|
|
|
67403
67586
|
|
|
67587
|
+
class UserRiskProfile(AbstractModel):
|
|
67588
|
+
r"""用户风险等级配置。风险分数范围为 0~100,分数越高表示风险越高。
|
|
67589
|
+
|
|
67590
|
+
"""
|
|
67591
|
+
|
|
67592
|
+
def __init__(self):
|
|
67593
|
+
r"""
|
|
67594
|
+
:param _HighRiskMinScore: <p>高风险请求的最低风险分数。分数大于等于该值时,判定为高风险。</p><p>取值范围:[2, 99]</p><p>默认值:50</p>
|
|
67595
|
+
:type HighRiskMinScore: int
|
|
67596
|
+
:param _HighRiskRequestAction: <p>高风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值:Monitor</p>
|
|
67597
|
+
:type HighRiskRequestAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
67598
|
+
:param _MediumRiskMinScore: <p>中风险请求的最低风险分数。分数大于等于该值且小于 HighRiskMinScore 时,判定为中风险;低于该值时,判定为低风险。</p><p>取值范围:[1, 98]</p><p>默认值:15</p>
|
|
67599
|
+
:type MediumRiskMinScore: int
|
|
67600
|
+
:param _MediumRiskRequestAction: <p>中风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值:Monitor</p>
|
|
67601
|
+
:type MediumRiskRequestAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
67602
|
+
"""
|
|
67603
|
+
self._HighRiskMinScore = None
|
|
67604
|
+
self._HighRiskRequestAction = None
|
|
67605
|
+
self._MediumRiskMinScore = None
|
|
67606
|
+
self._MediumRiskRequestAction = None
|
|
67607
|
+
|
|
67608
|
+
@property
|
|
67609
|
+
def HighRiskMinScore(self):
|
|
67610
|
+
r"""<p>高风险请求的最低风险分数。分数大于等于该值时,判定为高风险。</p><p>取值范围:[2, 99]</p><p>默认值:50</p>
|
|
67611
|
+
:rtype: int
|
|
67612
|
+
"""
|
|
67613
|
+
return self._HighRiskMinScore
|
|
67614
|
+
|
|
67615
|
+
@HighRiskMinScore.setter
|
|
67616
|
+
def HighRiskMinScore(self, HighRiskMinScore):
|
|
67617
|
+
self._HighRiskMinScore = HighRiskMinScore
|
|
67618
|
+
|
|
67619
|
+
@property
|
|
67620
|
+
def HighRiskRequestAction(self):
|
|
67621
|
+
r"""<p>高风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值:Monitor</p>
|
|
67622
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
67623
|
+
"""
|
|
67624
|
+
return self._HighRiskRequestAction
|
|
67625
|
+
|
|
67626
|
+
@HighRiskRequestAction.setter
|
|
67627
|
+
def HighRiskRequestAction(self, HighRiskRequestAction):
|
|
67628
|
+
self._HighRiskRequestAction = HighRiskRequestAction
|
|
67629
|
+
|
|
67630
|
+
@property
|
|
67631
|
+
def MediumRiskMinScore(self):
|
|
67632
|
+
r"""<p>中风险请求的最低风险分数。分数大于等于该值且小于 HighRiskMinScore 时,判定为中风险;低于该值时,判定为低风险。</p><p>取值范围:[1, 98]</p><p>默认值:15</p>
|
|
67633
|
+
:rtype: int
|
|
67634
|
+
"""
|
|
67635
|
+
return self._MediumRiskMinScore
|
|
67636
|
+
|
|
67637
|
+
@MediumRiskMinScore.setter
|
|
67638
|
+
def MediumRiskMinScore(self, MediumRiskMinScore):
|
|
67639
|
+
self._MediumRiskMinScore = MediumRiskMinScore
|
|
67640
|
+
|
|
67641
|
+
@property
|
|
67642
|
+
def MediumRiskRequestAction(self):
|
|
67643
|
+
r"""<p>中风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值:Monitor</p>
|
|
67644
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
67645
|
+
"""
|
|
67646
|
+
return self._MediumRiskRequestAction
|
|
67647
|
+
|
|
67648
|
+
@MediumRiskRequestAction.setter
|
|
67649
|
+
def MediumRiskRequestAction(self, MediumRiskRequestAction):
|
|
67650
|
+
self._MediumRiskRequestAction = MediumRiskRequestAction
|
|
67651
|
+
|
|
67652
|
+
|
|
67653
|
+
def _deserialize(self, params):
|
|
67654
|
+
self._HighRiskMinScore = params.get("HighRiskMinScore")
|
|
67655
|
+
if params.get("HighRiskRequestAction") is not None:
|
|
67656
|
+
self._HighRiskRequestAction = SecurityAction()
|
|
67657
|
+
self._HighRiskRequestAction._deserialize(params.get("HighRiskRequestAction"))
|
|
67658
|
+
self._MediumRiskMinScore = params.get("MediumRiskMinScore")
|
|
67659
|
+
if params.get("MediumRiskRequestAction") is not None:
|
|
67660
|
+
self._MediumRiskRequestAction = SecurityAction()
|
|
67661
|
+
self._MediumRiskRequestAction._deserialize(params.get("MediumRiskRequestAction"))
|
|
67662
|
+
memeber_set = set(params.keys())
|
|
67663
|
+
for name, value in vars(self).items():
|
|
67664
|
+
property_name = name[1:]
|
|
67665
|
+
if property_name in memeber_set:
|
|
67666
|
+
memeber_set.remove(property_name)
|
|
67667
|
+
if len(memeber_set) > 0:
|
|
67668
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
67669
|
+
|
|
67670
|
+
|
|
67671
|
+
|
|
67404
67672
|
class VanityNameServers(AbstractModel):
|
|
67405
67673
|
r"""自定义 nameservers
|
|
67406
67674
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-teo
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.180
|
|
4
4
|
Summary: Tencent Cloud Teo 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.180
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.180
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.179
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|