tencentcloud-sdk-python-teo 3.1.178__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.178 → tencentcloud_sdk_python_teo-3.1.180}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/setup.py +1 -1
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220901/models.py +541 -69
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220901/teo_client.py +50 -0
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220901/teo_client_async.py +40 -0
- {tencentcloud_sdk_python_teo-3.1.178 → 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.178/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/README.rst +0 -0
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/setup.cfg +0 -0
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/__init__.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220106/__init__.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220106/models.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220106/teo_client.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220106/teo_client_async.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220901/__init__.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud/teo/v20220901/errorcodes.py +0 -0
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_teo-3.1.178 → tencentcloud_sdk_python_teo-3.1.180}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_teo-3.1.178 → 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:]
|
|
@@ -32945,6 +33045,110 @@ class DescribeZoneConfigImportResultResponse(AbstractModel):
|
|
|
32945
33045
|
self._RequestId = params.get("RequestId")
|
|
32946
33046
|
|
|
32947
33047
|
|
|
33048
|
+
class DescribeZoneCustomVariablesRequest(AbstractModel):
|
|
33049
|
+
r"""DescribeZoneCustomVariables请求参数结构体
|
|
33050
|
+
|
|
33051
|
+
"""
|
|
33052
|
+
|
|
33053
|
+
def __init__(self):
|
|
33054
|
+
r"""
|
|
33055
|
+
:param _ZoneId: <p>站点 ID。</p>
|
|
33056
|
+
:type ZoneId: str
|
|
33057
|
+
"""
|
|
33058
|
+
self._ZoneId = None
|
|
33059
|
+
|
|
33060
|
+
@property
|
|
33061
|
+
def ZoneId(self):
|
|
33062
|
+
r"""<p>站点 ID。</p>
|
|
33063
|
+
:rtype: str
|
|
33064
|
+
"""
|
|
33065
|
+
return self._ZoneId
|
|
33066
|
+
|
|
33067
|
+
@ZoneId.setter
|
|
33068
|
+
def ZoneId(self, ZoneId):
|
|
33069
|
+
self._ZoneId = ZoneId
|
|
33070
|
+
|
|
33071
|
+
|
|
33072
|
+
def _deserialize(self, params):
|
|
33073
|
+
self._ZoneId = params.get("ZoneId")
|
|
33074
|
+
memeber_set = set(params.keys())
|
|
33075
|
+
for name, value in vars(self).items():
|
|
33076
|
+
property_name = name[1:]
|
|
33077
|
+
if property_name in memeber_set:
|
|
33078
|
+
memeber_set.remove(property_name)
|
|
33079
|
+
if len(memeber_set) > 0:
|
|
33080
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
33081
|
+
|
|
33082
|
+
|
|
33083
|
+
|
|
33084
|
+
class DescribeZoneCustomVariablesResponse(AbstractModel):
|
|
33085
|
+
r"""DescribeZoneCustomVariables返回参数结构体
|
|
33086
|
+
|
|
33087
|
+
"""
|
|
33088
|
+
|
|
33089
|
+
def __init__(self):
|
|
33090
|
+
r"""
|
|
33091
|
+
:param _CustomVariables: <p>站点级自定义变量列表。</p>
|
|
33092
|
+
:type CustomVariables: list of CustomVariable
|
|
33093
|
+
:param _CustomVariableOperations: <p>站点级自定义变量运算规则。</p>
|
|
33094
|
+
:type CustomVariableOperations: list of CustomVariableOperation
|
|
33095
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
33096
|
+
:type RequestId: str
|
|
33097
|
+
"""
|
|
33098
|
+
self._CustomVariables = None
|
|
33099
|
+
self._CustomVariableOperations = None
|
|
33100
|
+
self._RequestId = None
|
|
33101
|
+
|
|
33102
|
+
@property
|
|
33103
|
+
def CustomVariables(self):
|
|
33104
|
+
r"""<p>站点级自定义变量列表。</p>
|
|
33105
|
+
:rtype: list of CustomVariable
|
|
33106
|
+
"""
|
|
33107
|
+
return self._CustomVariables
|
|
33108
|
+
|
|
33109
|
+
@CustomVariables.setter
|
|
33110
|
+
def CustomVariables(self, CustomVariables):
|
|
33111
|
+
self._CustomVariables = CustomVariables
|
|
33112
|
+
|
|
33113
|
+
@property
|
|
33114
|
+
def CustomVariableOperations(self):
|
|
33115
|
+
r"""<p>站点级自定义变量运算规则。</p>
|
|
33116
|
+
:rtype: list of CustomVariableOperation
|
|
33117
|
+
"""
|
|
33118
|
+
return self._CustomVariableOperations
|
|
33119
|
+
|
|
33120
|
+
@CustomVariableOperations.setter
|
|
33121
|
+
def CustomVariableOperations(self, CustomVariableOperations):
|
|
33122
|
+
self._CustomVariableOperations = CustomVariableOperations
|
|
33123
|
+
|
|
33124
|
+
@property
|
|
33125
|
+
def RequestId(self):
|
|
33126
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
33127
|
+
:rtype: str
|
|
33128
|
+
"""
|
|
33129
|
+
return self._RequestId
|
|
33130
|
+
|
|
33131
|
+
@RequestId.setter
|
|
33132
|
+
def RequestId(self, RequestId):
|
|
33133
|
+
self._RequestId = RequestId
|
|
33134
|
+
|
|
33135
|
+
|
|
33136
|
+
def _deserialize(self, params):
|
|
33137
|
+
if params.get("CustomVariables") is not None:
|
|
33138
|
+
self._CustomVariables = []
|
|
33139
|
+
for item in params.get("CustomVariables"):
|
|
33140
|
+
obj = CustomVariable()
|
|
33141
|
+
obj._deserialize(item)
|
|
33142
|
+
self._CustomVariables.append(obj)
|
|
33143
|
+
if params.get("CustomVariableOperations") is not None:
|
|
33144
|
+
self._CustomVariableOperations = []
|
|
33145
|
+
for item in params.get("CustomVariableOperations"):
|
|
33146
|
+
obj = CustomVariableOperation()
|
|
33147
|
+
obj._deserialize(item)
|
|
33148
|
+
self._CustomVariableOperations.append(obj)
|
|
33149
|
+
self._RequestId = params.get("RequestId")
|
|
33150
|
+
|
|
33151
|
+
|
|
32948
33152
|
class DescribeZoneSettingRequest(AbstractModel):
|
|
32949
33153
|
r"""DescribeZoneSetting请求参数结构体
|
|
32950
33154
|
|
|
@@ -33916,15 +34120,15 @@ class DeviceProfile(AbstractModel):
|
|
|
33916
34120
|
|
|
33917
34121
|
def __init__(self):
|
|
33918
34122
|
r"""
|
|
33919
|
-
:param _ClientType:
|
|
34123
|
+
:param _ClientType: <p>客户端设备类型。取值有:<li>iOS;</li><li>Android;</li><li>WebView;</li><li>WeChatMiniProgram。</li></p>
|
|
33920
34124
|
:type ClientType: str
|
|
33921
|
-
:param _HighRiskMinScore:
|
|
34125
|
+
:param _HighRiskMinScore: <p>高风险请求的最低风险分数。分数大于等于该值时,判定为高风险。</p><p>取值范围:[2, 99]</p><p>默认值:50</p>
|
|
33922
34126
|
:type HighRiskMinScore: int
|
|
33923
|
-
:param _HighRiskRequestAction:
|
|
34127
|
+
:param _HighRiskRequestAction: <p>高风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。</p>
|
|
33924
34128
|
:type HighRiskRequestAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
33925
|
-
:param _MediumRiskMinScore:
|
|
34129
|
+
:param _MediumRiskMinScore: <p>中风险请求的最低风险分数。分数大于等于该值且小于 HighRiskMinScore 时,判定为中风险;低于该值时,判定为低风险。</p><p>取值范围:[1, 98]</p><p>默认值:15</p>
|
|
33926
34130
|
:type MediumRiskMinScore: int
|
|
33927
|
-
:param _MediumRiskRequestAction:
|
|
34131
|
+
:param _MediumRiskRequestAction: <p>中风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。</p>
|
|
33928
34132
|
:type MediumRiskRequestAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
33929
34133
|
"""
|
|
33930
34134
|
self._ClientType = None
|
|
@@ -33935,7 +34139,7 @@ class DeviceProfile(AbstractModel):
|
|
|
33935
34139
|
|
|
33936
34140
|
@property
|
|
33937
34141
|
def ClientType(self):
|
|
33938
|
-
r"""
|
|
34142
|
+
r"""<p>客户端设备类型。取值有:<li>iOS;</li><li>Android;</li><li>WebView;</li><li>WeChatMiniProgram。</li></p>
|
|
33939
34143
|
:rtype: str
|
|
33940
34144
|
"""
|
|
33941
34145
|
return self._ClientType
|
|
@@ -33946,7 +34150,7 @@ class DeviceProfile(AbstractModel):
|
|
|
33946
34150
|
|
|
33947
34151
|
@property
|
|
33948
34152
|
def HighRiskMinScore(self):
|
|
33949
|
-
r"""
|
|
34153
|
+
r"""<p>高风险请求的最低风险分数。分数大于等于该值时,判定为高风险。</p><p>取值范围:[2, 99]</p><p>默认值:50</p>
|
|
33950
34154
|
:rtype: int
|
|
33951
34155
|
"""
|
|
33952
34156
|
return self._HighRiskMinScore
|
|
@@ -33957,7 +34161,7 @@ class DeviceProfile(AbstractModel):
|
|
|
33957
34161
|
|
|
33958
34162
|
@property
|
|
33959
34163
|
def HighRiskRequestAction(self):
|
|
33960
|
-
r"""
|
|
34164
|
+
r"""<p>高风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。</p>
|
|
33961
34165
|
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
33962
34166
|
"""
|
|
33963
34167
|
return self._HighRiskRequestAction
|
|
@@ -33968,7 +34172,7 @@ class DeviceProfile(AbstractModel):
|
|
|
33968
34172
|
|
|
33969
34173
|
@property
|
|
33970
34174
|
def MediumRiskMinScore(self):
|
|
33971
|
-
r"""
|
|
34175
|
+
r"""<p>中风险请求的最低风险分数。分数大于等于该值且小于 HighRiskMinScore 时,判定为中风险;低于该值时,判定为低风险。</p><p>取值范围:[1, 98]</p><p>默认值:15</p>
|
|
33972
34176
|
:rtype: int
|
|
33973
34177
|
"""
|
|
33974
34178
|
return self._MediumRiskMinScore
|
|
@@ -33979,7 +34183,7 @@ class DeviceProfile(AbstractModel):
|
|
|
33979
34183
|
|
|
33980
34184
|
@property
|
|
33981
34185
|
def MediumRiskRequestAction(self):
|
|
33982
|
-
r"""
|
|
34186
|
+
r"""<p>中风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。</p>
|
|
33983
34187
|
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
33984
34188
|
"""
|
|
33985
34189
|
return self._MediumRiskRequestAction
|
|
@@ -52212,6 +52416,110 @@ class ModifyWebSecurityTemplateResponse(AbstractModel):
|
|
|
52212
52416
|
self._RequestId = params.get("RequestId")
|
|
52213
52417
|
|
|
52214
52418
|
|
|
52419
|
+
class ModifyZoneCustomVariablesRequest(AbstractModel):
|
|
52420
|
+
r"""ModifyZoneCustomVariables请求参数结构体
|
|
52421
|
+
|
|
52422
|
+
"""
|
|
52423
|
+
|
|
52424
|
+
def __init__(self):
|
|
52425
|
+
r"""
|
|
52426
|
+
:param _ZoneId: <p>站点 ID。</p>
|
|
52427
|
+
:type ZoneId: str
|
|
52428
|
+
:param _CustomVariables: <p>站点级自定义变量列表。CustomVariable.Name 需要使用 user.zone. 作为前缀。变量按照数组顺序依次初始化,InitialValue 仅支持引用位于当前变量之前的变量,不支持引用当前变量自身或位于当前变量之后的变量。</p>
|
|
52429
|
+
:type CustomVariables: list of CustomVariable
|
|
52430
|
+
:param _CustomVariableOperations: <p>站点级自定义变量运算规则。运算中支持引用已定义的站点级自定义变量。此列表当前只支持填写一项规则,多填无效。</p>
|
|
52431
|
+
:type CustomVariableOperations: list of CustomVariableOperation
|
|
52432
|
+
"""
|
|
52433
|
+
self._ZoneId = None
|
|
52434
|
+
self._CustomVariables = None
|
|
52435
|
+
self._CustomVariableOperations = None
|
|
52436
|
+
|
|
52437
|
+
@property
|
|
52438
|
+
def ZoneId(self):
|
|
52439
|
+
r"""<p>站点 ID。</p>
|
|
52440
|
+
:rtype: str
|
|
52441
|
+
"""
|
|
52442
|
+
return self._ZoneId
|
|
52443
|
+
|
|
52444
|
+
@ZoneId.setter
|
|
52445
|
+
def ZoneId(self, ZoneId):
|
|
52446
|
+
self._ZoneId = ZoneId
|
|
52447
|
+
|
|
52448
|
+
@property
|
|
52449
|
+
def CustomVariables(self):
|
|
52450
|
+
r"""<p>站点级自定义变量列表。CustomVariable.Name 需要使用 user.zone. 作为前缀。变量按照数组顺序依次初始化,InitialValue 仅支持引用位于当前变量之前的变量,不支持引用当前变量自身或位于当前变量之后的变量。</p>
|
|
52451
|
+
:rtype: list of CustomVariable
|
|
52452
|
+
"""
|
|
52453
|
+
return self._CustomVariables
|
|
52454
|
+
|
|
52455
|
+
@CustomVariables.setter
|
|
52456
|
+
def CustomVariables(self, CustomVariables):
|
|
52457
|
+
self._CustomVariables = CustomVariables
|
|
52458
|
+
|
|
52459
|
+
@property
|
|
52460
|
+
def CustomVariableOperations(self):
|
|
52461
|
+
r"""<p>站点级自定义变量运算规则。运算中支持引用已定义的站点级自定义变量。此列表当前只支持填写一项规则,多填无效。</p>
|
|
52462
|
+
:rtype: list of CustomVariableOperation
|
|
52463
|
+
"""
|
|
52464
|
+
return self._CustomVariableOperations
|
|
52465
|
+
|
|
52466
|
+
@CustomVariableOperations.setter
|
|
52467
|
+
def CustomVariableOperations(self, CustomVariableOperations):
|
|
52468
|
+
self._CustomVariableOperations = CustomVariableOperations
|
|
52469
|
+
|
|
52470
|
+
|
|
52471
|
+
def _deserialize(self, params):
|
|
52472
|
+
self._ZoneId = params.get("ZoneId")
|
|
52473
|
+
if params.get("CustomVariables") is not None:
|
|
52474
|
+
self._CustomVariables = []
|
|
52475
|
+
for item in params.get("CustomVariables"):
|
|
52476
|
+
obj = CustomVariable()
|
|
52477
|
+
obj._deserialize(item)
|
|
52478
|
+
self._CustomVariables.append(obj)
|
|
52479
|
+
if params.get("CustomVariableOperations") is not None:
|
|
52480
|
+
self._CustomVariableOperations = []
|
|
52481
|
+
for item in params.get("CustomVariableOperations"):
|
|
52482
|
+
obj = CustomVariableOperation()
|
|
52483
|
+
obj._deserialize(item)
|
|
52484
|
+
self._CustomVariableOperations.append(obj)
|
|
52485
|
+
memeber_set = set(params.keys())
|
|
52486
|
+
for name, value in vars(self).items():
|
|
52487
|
+
property_name = name[1:]
|
|
52488
|
+
if property_name in memeber_set:
|
|
52489
|
+
memeber_set.remove(property_name)
|
|
52490
|
+
if len(memeber_set) > 0:
|
|
52491
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
52492
|
+
|
|
52493
|
+
|
|
52494
|
+
|
|
52495
|
+
class ModifyZoneCustomVariablesResponse(AbstractModel):
|
|
52496
|
+
r"""ModifyZoneCustomVariables返回参数结构体
|
|
52497
|
+
|
|
52498
|
+
"""
|
|
52499
|
+
|
|
52500
|
+
def __init__(self):
|
|
52501
|
+
r"""
|
|
52502
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
52503
|
+
:type RequestId: str
|
|
52504
|
+
"""
|
|
52505
|
+
self._RequestId = None
|
|
52506
|
+
|
|
52507
|
+
@property
|
|
52508
|
+
def RequestId(self):
|
|
52509
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
52510
|
+
:rtype: str
|
|
52511
|
+
"""
|
|
52512
|
+
return self._RequestId
|
|
52513
|
+
|
|
52514
|
+
@RequestId.setter
|
|
52515
|
+
def RequestId(self, RequestId):
|
|
52516
|
+
self._RequestId = RequestId
|
|
52517
|
+
|
|
52518
|
+
|
|
52519
|
+
def _deserialize(self, params):
|
|
52520
|
+
self._RequestId = params.get("RequestId")
|
|
52521
|
+
|
|
52522
|
+
|
|
52215
52523
|
class ModifyZoneRequest(AbstractModel):
|
|
52216
52524
|
r"""ModifyZone请求参数结构体
|
|
52217
52525
|
|
|
@@ -63229,6 +63537,72 @@ class SecurityConfig(AbstractModel):
|
|
|
63229
63537
|
|
|
63230
63538
|
|
|
63231
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
|
+
|
|
63232
63606
|
class SecurityPolicy(AbstractModel):
|
|
63233
63607
|
r"""安全策略配置
|
|
63234
63608
|
|
|
@@ -63236,22 +63610,24 @@ class SecurityPolicy(AbstractModel):
|
|
|
63236
63610
|
|
|
63237
63611
|
def __init__(self):
|
|
63238
63612
|
r"""
|
|
63239
|
-
:param _CustomRules:
|
|
63613
|
+
:param _CustomRules: <p>自定义规则配置。</p>
|
|
63240
63614
|
:type CustomRules: :class:`tencentcloud.teo.v20220901.models.CustomRules`
|
|
63241
|
-
:param _ManagedRules:
|
|
63615
|
+
:param _ManagedRules: <p>托管规则配置。</p>
|
|
63242
63616
|
:type ManagedRules: :class:`tencentcloud.teo.v20220901.models.ManagedRules`
|
|
63243
|
-
:param _HttpDDoSProtection: HTTP DDOS
|
|
63617
|
+
:param _HttpDDoSProtection: <p>HTTP DDOS 防护配置。</p>
|
|
63244
63618
|
:type HttpDDoSProtection: :class:`tencentcloud.teo.v20220901.models.HttpDDoSProtection`
|
|
63245
|
-
:param _RateLimitingRules:
|
|
63619
|
+
:param _RateLimitingRules: <p>速率限制规则配置。</p>
|
|
63246
63620
|
:type RateLimitingRules: :class:`tencentcloud.teo.v20220901.models.RateLimitingRules`
|
|
63247
|
-
:param _ExceptionRules:
|
|
63621
|
+
:param _ExceptionRules: <p>例外规则配置。</p>
|
|
63248
63622
|
:type ExceptionRules: :class:`tencentcloud.teo.v20220901.models.ExceptionRules`
|
|
63249
|
-
:param _BotManagement: Bot
|
|
63623
|
+
:param _BotManagement: <p>Bot 管理配置。</p>
|
|
63250
63624
|
:type BotManagement: :class:`tencentcloud.teo.v20220901.models.BotManagement`
|
|
63251
|
-
:param _BotManagementLite:
|
|
63625
|
+
:param _BotManagementLite: <p>基础 Bot 管理配置。</p>
|
|
63252
63626
|
:type BotManagementLite: :class:`tencentcloud.teo.v20220901.models.BotManagementLite`
|
|
63253
|
-
:param _DefaultDenySecurityActionParameters:
|
|
63627
|
+
:param _DefaultDenySecurityActionParameters: <p>默认拦截动作配置。</p>
|
|
63254
63628
|
:type DefaultDenySecurityActionParameters: :class:`tencentcloud.teo.v20220901.models.DefaultDenySecurityActionParameters`
|
|
63629
|
+
:param _SecurityHeadersToOrigin: <p>回源请求携带安全头部配置,配置生效后将携带对应 keyname 的请求头部回源。</p>
|
|
63630
|
+
:type SecurityHeadersToOrigin: :class:`tencentcloud.teo.v20220901.models.SecurityHeadersToOrigin`
|
|
63255
63631
|
"""
|
|
63256
63632
|
self._CustomRules = None
|
|
63257
63633
|
self._ManagedRules = None
|
|
@@ -63261,10 +63637,11 @@ class SecurityPolicy(AbstractModel):
|
|
|
63261
63637
|
self._BotManagement = None
|
|
63262
63638
|
self._BotManagementLite = None
|
|
63263
63639
|
self._DefaultDenySecurityActionParameters = None
|
|
63640
|
+
self._SecurityHeadersToOrigin = None
|
|
63264
63641
|
|
|
63265
63642
|
@property
|
|
63266
63643
|
def CustomRules(self):
|
|
63267
|
-
r"""
|
|
63644
|
+
r"""<p>自定义规则配置。</p>
|
|
63268
63645
|
:rtype: :class:`tencentcloud.teo.v20220901.models.CustomRules`
|
|
63269
63646
|
"""
|
|
63270
63647
|
return self._CustomRules
|
|
@@ -63275,7 +63652,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63275
63652
|
|
|
63276
63653
|
@property
|
|
63277
63654
|
def ManagedRules(self):
|
|
63278
|
-
r"""
|
|
63655
|
+
r"""<p>托管规则配置。</p>
|
|
63279
63656
|
:rtype: :class:`tencentcloud.teo.v20220901.models.ManagedRules`
|
|
63280
63657
|
"""
|
|
63281
63658
|
return self._ManagedRules
|
|
@@ -63286,7 +63663,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63286
63663
|
|
|
63287
63664
|
@property
|
|
63288
63665
|
def HttpDDoSProtection(self):
|
|
63289
|
-
r"""HTTP DDOS
|
|
63666
|
+
r"""<p>HTTP DDOS 防护配置。</p>
|
|
63290
63667
|
:rtype: :class:`tencentcloud.teo.v20220901.models.HttpDDoSProtection`
|
|
63291
63668
|
"""
|
|
63292
63669
|
return self._HttpDDoSProtection
|
|
@@ -63297,7 +63674,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63297
63674
|
|
|
63298
63675
|
@property
|
|
63299
63676
|
def RateLimitingRules(self):
|
|
63300
|
-
r"""
|
|
63677
|
+
r"""<p>速率限制规则配置。</p>
|
|
63301
63678
|
:rtype: :class:`tencentcloud.teo.v20220901.models.RateLimitingRules`
|
|
63302
63679
|
"""
|
|
63303
63680
|
return self._RateLimitingRules
|
|
@@ -63308,7 +63685,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63308
63685
|
|
|
63309
63686
|
@property
|
|
63310
63687
|
def ExceptionRules(self):
|
|
63311
|
-
r"""
|
|
63688
|
+
r"""<p>例外规则配置。</p>
|
|
63312
63689
|
:rtype: :class:`tencentcloud.teo.v20220901.models.ExceptionRules`
|
|
63313
63690
|
"""
|
|
63314
63691
|
return self._ExceptionRules
|
|
@@ -63319,7 +63696,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63319
63696
|
|
|
63320
63697
|
@property
|
|
63321
63698
|
def BotManagement(self):
|
|
63322
|
-
r"""Bot
|
|
63699
|
+
r"""<p>Bot 管理配置。</p>
|
|
63323
63700
|
:rtype: :class:`tencentcloud.teo.v20220901.models.BotManagement`
|
|
63324
63701
|
"""
|
|
63325
63702
|
return self._BotManagement
|
|
@@ -63330,7 +63707,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63330
63707
|
|
|
63331
63708
|
@property
|
|
63332
63709
|
def BotManagementLite(self):
|
|
63333
|
-
r"""
|
|
63710
|
+
r"""<p>基础 Bot 管理配置。</p>
|
|
63334
63711
|
:rtype: :class:`tencentcloud.teo.v20220901.models.BotManagementLite`
|
|
63335
63712
|
"""
|
|
63336
63713
|
return self._BotManagementLite
|
|
@@ -63341,7 +63718,7 @@ class SecurityPolicy(AbstractModel):
|
|
|
63341
63718
|
|
|
63342
63719
|
@property
|
|
63343
63720
|
def DefaultDenySecurityActionParameters(self):
|
|
63344
|
-
r"""
|
|
63721
|
+
r"""<p>默认拦截动作配置。</p>
|
|
63345
63722
|
:rtype: :class:`tencentcloud.teo.v20220901.models.DefaultDenySecurityActionParameters`
|
|
63346
63723
|
"""
|
|
63347
63724
|
return self._DefaultDenySecurityActionParameters
|
|
@@ -63350,6 +63727,17 @@ class SecurityPolicy(AbstractModel):
|
|
|
63350
63727
|
def DefaultDenySecurityActionParameters(self, DefaultDenySecurityActionParameters):
|
|
63351
63728
|
self._DefaultDenySecurityActionParameters = DefaultDenySecurityActionParameters
|
|
63352
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
|
+
|
|
63353
63741
|
|
|
63354
63742
|
def _deserialize(self, params):
|
|
63355
63743
|
if params.get("CustomRules") is not None:
|
|
@@ -63376,6 +63764,9 @@ class SecurityPolicy(AbstractModel):
|
|
|
63376
63764
|
if params.get("DefaultDenySecurityActionParameters") is not None:
|
|
63377
63765
|
self._DefaultDenySecurityActionParameters = DefaultDenySecurityActionParameters()
|
|
63378
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"))
|
|
63379
63770
|
memeber_set = set(params.keys())
|
|
63380
63771
|
for name, value in vars(self).items():
|
|
63381
63772
|
property_name = name[1:]
|
|
@@ -63987,19 +64378,17 @@ class SharedCNAMEInfo(AbstractModel):
|
|
|
63987
64378
|
|
|
63988
64379
|
def __init__(self):
|
|
63989
64380
|
r"""
|
|
63990
|
-
:param _Type:
|
|
63991
|
-
<li>custom:由用户创建的自定义共享CNAME</li>
|
|
63992
|
-
<li>ip-ssl:IP SSL类型的共享CNAME</li>
|
|
64381
|
+
:param _Type: <p>共享CNAME类型:取值范围如下:</p><li>custom:由用户创建的自定义共享CNAME</li><li>ip-ssl:IP SSL类型的共享CNAME</li><li>zero-rating:免流类型的共享CNAME</li><li>preset:预置资源类型的共享CNAME</li>
|
|
63993
64382
|
:type Type: str
|
|
63994
|
-
:param _SharedCNAME:
|
|
64383
|
+
:param _SharedCNAME: <p>共享CNAME名称。</p>
|
|
63995
64384
|
:type SharedCNAME: str
|
|
63996
|
-
:param _Description:
|
|
64385
|
+
:param _Description: <p>描述。</p>
|
|
63997
64386
|
:type Description: str
|
|
63998
|
-
:param _IPSSLConfig:
|
|
64387
|
+
:param _IPSSLConfig: <p>当type为ip-ssl时,展示该共享CNAME关联的 IP SSL 配置信息。</p>
|
|
63999
64388
|
:type IPSSLConfig: :class:`tencentcloud.teo.v20220901.models.IPSSLConfig`
|
|
64000
|
-
:param _BindDomainCount:
|
|
64389
|
+
:param _BindDomainCount: <p>共享CNAME绑定的加速域名数量。</p>
|
|
64001
64390
|
:type BindDomainCount: int
|
|
64002
|
-
:param _AccelerationDomains:
|
|
64391
|
+
:param _AccelerationDomains: <p>加入该共享CNAME的加速域名列表。当加入的域名数量超过100个时,只返回前100个加速域名。</p>
|
|
64003
64392
|
:type AccelerationDomains: list of ReferenceHolder
|
|
64004
64393
|
"""
|
|
64005
64394
|
self._Type = None
|
|
@@ -64011,9 +64400,7 @@ class SharedCNAMEInfo(AbstractModel):
|
|
|
64011
64400
|
|
|
64012
64401
|
@property
|
|
64013
64402
|
def Type(self):
|
|
64014
|
-
r"""
|
|
64015
|
-
<li>custom:由用户创建的自定义共享CNAME</li>
|
|
64016
|
-
<li>ip-ssl:IP SSL类型的共享CNAME</li>
|
|
64403
|
+
r"""<p>共享CNAME类型:取值范围如下:</p><li>custom:由用户创建的自定义共享CNAME</li><li>ip-ssl:IP SSL类型的共享CNAME</li><li>zero-rating:免流类型的共享CNAME</li><li>preset:预置资源类型的共享CNAME</li>
|
|
64017
64404
|
:rtype: str
|
|
64018
64405
|
"""
|
|
64019
64406
|
return self._Type
|
|
@@ -64024,7 +64411,7 @@ class SharedCNAMEInfo(AbstractModel):
|
|
|
64024
64411
|
|
|
64025
64412
|
@property
|
|
64026
64413
|
def SharedCNAME(self):
|
|
64027
|
-
r"""
|
|
64414
|
+
r"""<p>共享CNAME名称。</p>
|
|
64028
64415
|
:rtype: str
|
|
64029
64416
|
"""
|
|
64030
64417
|
return self._SharedCNAME
|
|
@@ -64035,7 +64422,7 @@ class SharedCNAMEInfo(AbstractModel):
|
|
|
64035
64422
|
|
|
64036
64423
|
@property
|
|
64037
64424
|
def Description(self):
|
|
64038
|
-
r"""
|
|
64425
|
+
r"""<p>描述。</p>
|
|
64039
64426
|
:rtype: str
|
|
64040
64427
|
"""
|
|
64041
64428
|
return self._Description
|
|
@@ -64046,7 +64433,7 @@ class SharedCNAMEInfo(AbstractModel):
|
|
|
64046
64433
|
|
|
64047
64434
|
@property
|
|
64048
64435
|
def IPSSLConfig(self):
|
|
64049
|
-
r"""
|
|
64436
|
+
r"""<p>当type为ip-ssl时,展示该共享CNAME关联的 IP SSL 配置信息。</p>
|
|
64050
64437
|
:rtype: :class:`tencentcloud.teo.v20220901.models.IPSSLConfig`
|
|
64051
64438
|
"""
|
|
64052
64439
|
return self._IPSSLConfig
|
|
@@ -64057,7 +64444,7 @@ class SharedCNAMEInfo(AbstractModel):
|
|
|
64057
64444
|
|
|
64058
64445
|
@property
|
|
64059
64446
|
def BindDomainCount(self):
|
|
64060
|
-
r"""
|
|
64447
|
+
r"""<p>共享CNAME绑定的加速域名数量。</p>
|
|
64061
64448
|
:rtype: int
|
|
64062
64449
|
"""
|
|
64063
64450
|
return self._BindDomainCount
|
|
@@ -64068,7 +64455,7 @@ class SharedCNAMEInfo(AbstractModel):
|
|
|
64068
64455
|
|
|
64069
64456
|
@property
|
|
64070
64457
|
def AccelerationDomains(self):
|
|
64071
|
-
r"""
|
|
64458
|
+
r"""<p>加入该共享CNAME的加速域名列表。当加入的域名数量超过100个时,只返回前100个加速域名。</p>
|
|
64072
64459
|
:rtype: list of ReferenceHolder
|
|
64073
64460
|
"""
|
|
64074
64461
|
return self._AccelerationDomains
|
|
@@ -67197,6 +67584,91 @@ class UpstreamURLRewriteParameters(AbstractModel):
|
|
|
67197
67584
|
|
|
67198
67585
|
|
|
67199
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
|
+
|
|
67200
67672
|
class VanityNameServers(AbstractModel):
|
|
67201
67673
|
r"""自定义 nameservers
|
|
67202
67674
|
|
|
@@ -3752,6 +3752,31 @@ class TeoClient(AbstractClient):
|
|
|
3752
3752
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3753
3753
|
|
|
3754
3754
|
|
|
3755
|
+
def DescribeZoneCustomVariables(self, request):
|
|
3756
|
+
r"""本接口用于查询站点级自定义变量配置,包括变量定义和变量运算。未配置时,变量定义和变量运算均返回空列表。
|
|
3757
|
+
|
|
3758
|
+
如需查询规则级自定义变量,请调用 DescribeL7AccRules 接口。
|
|
3759
|
+
|
|
3760
|
+
:param request: Request instance for DescribeZoneCustomVariables.
|
|
3761
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.DescribeZoneCustomVariablesRequest`
|
|
3762
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.DescribeZoneCustomVariablesResponse`
|
|
3763
|
+
|
|
3764
|
+
"""
|
|
3765
|
+
try:
|
|
3766
|
+
params = request._serialize()
|
|
3767
|
+
headers = request.headers
|
|
3768
|
+
body = self.call("DescribeZoneCustomVariables", params, headers=headers)
|
|
3769
|
+
response = json.loads(body)
|
|
3770
|
+
model = models.DescribeZoneCustomVariablesResponse()
|
|
3771
|
+
model._deserialize(response["Response"])
|
|
3772
|
+
return model
|
|
3773
|
+
except Exception as e:
|
|
3774
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3775
|
+
raise
|
|
3776
|
+
else:
|
|
3777
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3778
|
+
|
|
3779
|
+
|
|
3755
3780
|
def DescribeZoneSetting(self, request):
|
|
3756
3781
|
r"""本接口为旧版,EdgeOne 已对规则引擎相关接口全面升级,详情请参考 [DescribeL7AccSetting](https://cloud.tencent.com/document/product/1552/115819)。
|
|
3757
3782
|
|
|
@@ -5271,6 +5296,31 @@ class TeoClient(AbstractClient):
|
|
|
5271
5296
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
5272
5297
|
|
|
5273
5298
|
|
|
5299
|
+
def ModifyZoneCustomVariables(self, request):
|
|
5300
|
+
r"""本接口用于管理站点级自定义变量,支持创建、修改和删除变量定义及变量运算。提交的列表将覆盖对应的现有配置;如需清空配置,请传入空列表。未传入的配置项保持不变。变量定义和变量运算的默认值均为空。
|
|
5301
|
+
|
|
5302
|
+
规则级自定义变量相关操作,请调用 CreateL7AccRules 或 ModifyL7AccRule 接口。
|
|
5303
|
+
|
|
5304
|
+
:param request: Request instance for ModifyZoneCustomVariables.
|
|
5305
|
+
:type request: :class:`tencentcloud.teo.v20220901.models.ModifyZoneCustomVariablesRequest`
|
|
5306
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.ModifyZoneCustomVariablesResponse`
|
|
5307
|
+
|
|
5308
|
+
"""
|
|
5309
|
+
try:
|
|
5310
|
+
params = request._serialize()
|
|
5311
|
+
headers = request.headers
|
|
5312
|
+
body = self.call("ModifyZoneCustomVariables", params, headers=headers)
|
|
5313
|
+
response = json.loads(body)
|
|
5314
|
+
model = models.ModifyZoneCustomVariablesResponse()
|
|
5315
|
+
model._deserialize(response["Response"])
|
|
5316
|
+
return model
|
|
5317
|
+
except Exception as e:
|
|
5318
|
+
if isinstance(e, TencentCloudSDKException):
|
|
5319
|
+
raise
|
|
5320
|
+
else:
|
|
5321
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
5322
|
+
|
|
5323
|
+
|
|
5274
5324
|
def ModifyZoneSetting(self, request):
|
|
5275
5325
|
r"""本接口为旧版,EdgeOne 已对规则引擎相关接口全面升级,详情请参考 [ModifyL7AccSetting](https://cloud.tencent.com/document/product/1552/115817)。
|
|
5276
5326
|
|
|
@@ -2956,6 +2956,26 @@ class TeoClient(AbstractClient):
|
|
|
2956
2956
|
|
|
2957
2957
|
return await self.call_and_deserialize(**kwargs)
|
|
2958
2958
|
|
|
2959
|
+
async def DescribeZoneCustomVariables(
|
|
2960
|
+
self,
|
|
2961
|
+
request: models.DescribeZoneCustomVariablesRequest,
|
|
2962
|
+
opts: Dict = None,
|
|
2963
|
+
) -> models.DescribeZoneCustomVariablesResponse:
|
|
2964
|
+
"""
|
|
2965
|
+
本接口用于查询站点级自定义变量配置,包括变量定义和变量运算。未配置时,变量定义和变量运算均返回空列表。
|
|
2966
|
+
|
|
2967
|
+
如需查询规则级自定义变量,请调用 DescribeL7AccRules 接口。
|
|
2968
|
+
"""
|
|
2969
|
+
|
|
2970
|
+
kwargs = {}
|
|
2971
|
+
kwargs["action"] = "DescribeZoneCustomVariables"
|
|
2972
|
+
kwargs["params"] = request._serialize()
|
|
2973
|
+
kwargs["resp_cls"] = models.DescribeZoneCustomVariablesResponse
|
|
2974
|
+
kwargs["headers"] = request.headers
|
|
2975
|
+
kwargs["opts"] = opts or {}
|
|
2976
|
+
|
|
2977
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2978
|
+
|
|
2959
2979
|
async def DescribeZoneSetting(
|
|
2960
2980
|
self,
|
|
2961
2981
|
request: models.DescribeZoneSettingRequest,
|
|
@@ -4150,6 +4170,26 @@ class TeoClient(AbstractClient):
|
|
|
4150
4170
|
|
|
4151
4171
|
return await self.call_and_deserialize(**kwargs)
|
|
4152
4172
|
|
|
4173
|
+
async def ModifyZoneCustomVariables(
|
|
4174
|
+
self,
|
|
4175
|
+
request: models.ModifyZoneCustomVariablesRequest,
|
|
4176
|
+
opts: Dict = None,
|
|
4177
|
+
) -> models.ModifyZoneCustomVariablesResponse:
|
|
4178
|
+
"""
|
|
4179
|
+
本接口用于管理站点级自定义变量,支持创建、修改和删除变量定义及变量运算。提交的列表将覆盖对应的现有配置;如需清空配置,请传入空列表。未传入的配置项保持不变。变量定义和变量运算的默认值均为空。
|
|
4180
|
+
|
|
4181
|
+
规则级自定义变量相关操作,请调用 CreateL7AccRules 或 ModifyL7AccRule 接口。
|
|
4182
|
+
"""
|
|
4183
|
+
|
|
4184
|
+
kwargs = {}
|
|
4185
|
+
kwargs["action"] = "ModifyZoneCustomVariables"
|
|
4186
|
+
kwargs["params"] = request._serialize()
|
|
4187
|
+
kwargs["resp_cls"] = models.ModifyZoneCustomVariablesResponse
|
|
4188
|
+
kwargs["headers"] = request.headers
|
|
4189
|
+
kwargs["opts"] = opts or {}
|
|
4190
|
+
|
|
4191
|
+
return await self.call_and_deserialize(**kwargs)
|
|
4192
|
+
|
|
4153
4193
|
async def ModifyZoneSetting(
|
|
4154
4194
|
self,
|
|
4155
4195
|
request: models.ModifyZoneSettingRequest,
|
|
@@ -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.178
|
|
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
|