tencentcloud-sdk-python 3.0.1418__py2.py3-none-any.whl → 3.0.1420__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/ai3d/v20250513/models.py +2 -2
- tencentcloud/autoscaling/v20180419/errorcodes.py +3 -0
- tencentcloud/batch/v20170312/models.py +120 -0
- tencentcloud/cdb/v20170320/models.py +2 -2
- tencentcloud/cdn/v20180606/cdn_client.py +1 -1
- tencentcloud/cdn/v20180606/models.py +4 -4
- tencentcloud/cfs/v20190719/models.py +20 -20
- tencentcloud/cfw/v20190904/cfw_client.py +23 -0
- tencentcloud/cfw/v20190904/models.py +472 -0
- tencentcloud/csip/v20221121/csip_client.py +299 -0
- tencentcloud/csip/v20221121/models.py +3240 -47
- tencentcloud/cvm/v20170312/models.py +2 -2
- tencentcloud/cwp/v20180228/models.py +15 -0
- tencentcloud/emr/v20190103/models.py +355 -4
- tencentcloud/es/v20250101/models.py +30 -0
- tencentcloud/ess/v20201111/models.py +27 -2
- tencentcloud/essbasic/v20210526/models.py +14 -5
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +1 -1
- tencentcloud/lcic/v20220817/lcic_client.py +23 -0
- tencentcloud/lcic/v20220817/models.py +99 -0
- tencentcloud/live/v20180801/models.py +384 -2
- tencentcloud/lke/v20231130/models.py +395 -2
- tencentcloud/mrs/v20200910/models.py +15 -0
- tencentcloud/nlp/v20190408/errorcodes.py +0 -21
- tencentcloud/nlp/v20190408/models.py +99 -1004
- tencentcloud/nlp/v20190408/nlp_client.py +0 -138
- tencentcloud/ocr/v20181119/models.py +103 -0
- tencentcloud/redis/v20180412/models.py +20 -12
- tencentcloud/ses/v20201002/errorcodes.py +3 -0
- tencentcloud/ses/v20201002/models.py +19 -0
- tencentcloud/ssl/v20191205/errorcodes.py +6 -0
- tencentcloud/tdmq/v20200217/models.py +15 -0
- tencentcloud/teo/v20220901/models.py +439 -8
- tencentcloud/teo/v20220901/teo_client.py +1 -1
- tencentcloud/tione/v20211111/models.py +23 -0
- tencentcloud/tke/v20180525/models.py +46 -46
- tencentcloud/tke/v20220501/models.py +94 -0
- tencentcloud/tke/v20220501/tke_client.py +23 -0
- tencentcloud/tmt/v20180321/errorcodes.py +1 -1
- tencentcloud/tmt/v20180321/models.py +8 -8
- tencentcloud/tsf/v20180326/errorcodes.py +6 -0
- tencentcloud/tsf/v20180326/models.py +16 -0
- tencentcloud/vclm/v20240523/models.py +2 -28
- tencentcloud/vod/v20180717/models.py +8 -4
- tencentcloud/vpc/v20170312/errorcodes.py +3 -0
- {tencentcloud_sdk_python-3.0.1418.dist-info → tencentcloud_sdk_python-3.0.1420.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1418.dist-info → tencentcloud_sdk_python-3.0.1420.dist-info}/RECORD +51 -51
- {tencentcloud_sdk_python-3.0.1418.dist-info → tencentcloud_sdk_python-3.0.1420.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1418.dist-info → tencentcloud_sdk_python-3.0.1420.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1418.dist-info → tencentcloud_sdk_python-3.0.1420.dist-info}/top_level.txt +0 -0
@@ -2142,6 +2142,57 @@ class AliasDomain(AbstractModel):
|
|
2142
2142
|
|
2143
2143
|
|
2144
2144
|
|
2145
|
+
class AllowActionParameters(AbstractModel):
|
2146
|
+
"""Web 安全 Allow 的附加参数
|
2147
|
+
|
2148
|
+
"""
|
2149
|
+
|
2150
|
+
def __init__(self):
|
2151
|
+
r"""
|
2152
|
+
:param _MinDelayTime: 最小延迟响应时间,当配置为 0s 时,表示不延迟直接响应。支持的单位有:<li>s:秒,取值范围 0~5。</li>
|
2153
|
+
:type MinDelayTime: str
|
2154
|
+
:param _MaxDelayTime: 最大延迟响应时间,支持的单位有:<li>s:秒,取值范围 5~10。</li>
|
2155
|
+
:type MaxDelayTime: str
|
2156
|
+
"""
|
2157
|
+
self._MinDelayTime = None
|
2158
|
+
self._MaxDelayTime = None
|
2159
|
+
|
2160
|
+
@property
|
2161
|
+
def MinDelayTime(self):
|
2162
|
+
"""最小延迟响应时间,当配置为 0s 时,表示不延迟直接响应。支持的单位有:<li>s:秒,取值范围 0~5。</li>
|
2163
|
+
:rtype: str
|
2164
|
+
"""
|
2165
|
+
return self._MinDelayTime
|
2166
|
+
|
2167
|
+
@MinDelayTime.setter
|
2168
|
+
def MinDelayTime(self, MinDelayTime):
|
2169
|
+
self._MinDelayTime = MinDelayTime
|
2170
|
+
|
2171
|
+
@property
|
2172
|
+
def MaxDelayTime(self):
|
2173
|
+
"""最大延迟响应时间,支持的单位有:<li>s:秒,取值范围 5~10。</li>
|
2174
|
+
:rtype: str
|
2175
|
+
"""
|
2176
|
+
return self._MaxDelayTime
|
2177
|
+
|
2178
|
+
@MaxDelayTime.setter
|
2179
|
+
def MaxDelayTime(self, MaxDelayTime):
|
2180
|
+
self._MaxDelayTime = MaxDelayTime
|
2181
|
+
|
2182
|
+
|
2183
|
+
def _deserialize(self, params):
|
2184
|
+
self._MinDelayTime = params.get("MinDelayTime")
|
2185
|
+
self._MaxDelayTime = params.get("MaxDelayTime")
|
2186
|
+
memeber_set = set(params.keys())
|
2187
|
+
for name, value in vars(self).items():
|
2188
|
+
property_name = name[1:]
|
2189
|
+
if property_name in memeber_set:
|
2190
|
+
memeber_set.remove(property_name)
|
2191
|
+
if len(memeber_set) > 0:
|
2192
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2193
|
+
|
2194
|
+
|
2195
|
+
|
2145
2196
|
class ApplicationProxy(AbstractModel):
|
2146
2197
|
"""应用代理实例
|
2147
2198
|
|
@@ -3844,6 +3895,44 @@ class BotManagedRule(AbstractModel):
|
|
3844
3895
|
|
3845
3896
|
|
3846
3897
|
|
3898
|
+
class BotManagement(AbstractModel):
|
3899
|
+
"""Web 安全的 BOT 规则结构。
|
3900
|
+
|
3901
|
+
"""
|
3902
|
+
|
3903
|
+
def __init__(self):
|
3904
|
+
r"""
|
3905
|
+
:param _ClientAttestationRules: 客户端认证规则的定义列表。该功能内测中,如需使用,请提工单或联系智能客服。
|
3906
|
+
:type ClientAttestationRules: :class:`tencentcloud.teo.v20220901.models.ClientAttestationRules`
|
3907
|
+
"""
|
3908
|
+
self._ClientAttestationRules = None
|
3909
|
+
|
3910
|
+
@property
|
3911
|
+
def ClientAttestationRules(self):
|
3912
|
+
"""客户端认证规则的定义列表。该功能内测中,如需使用,请提工单或联系智能客服。
|
3913
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.ClientAttestationRules`
|
3914
|
+
"""
|
3915
|
+
return self._ClientAttestationRules
|
3916
|
+
|
3917
|
+
@ClientAttestationRules.setter
|
3918
|
+
def ClientAttestationRules(self, ClientAttestationRules):
|
3919
|
+
self._ClientAttestationRules = ClientAttestationRules
|
3920
|
+
|
3921
|
+
|
3922
|
+
def _deserialize(self, params):
|
3923
|
+
if params.get("ClientAttestationRules") is not None:
|
3924
|
+
self._ClientAttestationRules = ClientAttestationRules()
|
3925
|
+
self._ClientAttestationRules._deserialize(params.get("ClientAttestationRules"))
|
3926
|
+
memeber_set = set(params.keys())
|
3927
|
+
for name, value in vars(self).items():
|
3928
|
+
property_name = name[1:]
|
3929
|
+
if property_name in memeber_set:
|
3930
|
+
memeber_set.remove(property_name)
|
3931
|
+
if len(memeber_set) > 0:
|
3932
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3933
|
+
|
3934
|
+
|
3935
|
+
|
3847
3936
|
class BotPortraitRule(AbstractModel):
|
3848
3937
|
"""bot 用户画像规则
|
3849
3938
|
|
@@ -5808,6 +5897,195 @@ class CheckRegionHealthStatus(AbstractModel):
|
|
5808
5897
|
|
5809
5898
|
|
5810
5899
|
|
5900
|
+
class ClientAttestationRule(AbstractModel):
|
5901
|
+
"""客户端认证规则
|
5902
|
+
|
5903
|
+
"""
|
5904
|
+
|
5905
|
+
def __init__(self):
|
5906
|
+
r"""
|
5907
|
+
:param _Id: 客户端认证规则的 ID。<br>通过规则 ID 可支持不同的规则配置操作:<br> <li> <b>增加</b>新规则:ID 为空或不指定 ID 参数;</li><li> <b>修改</b>已有规则:指定需要更新/修改的规则 ID;</li><li> <b>删除</b>已有规则:BotManagement 参数中,ClientAttestationRule 列表中未包含的已有规则将被删除。</li>
|
5908
|
+
:type Id: str
|
5909
|
+
:param _Name: 客户端认证规则的名称。
|
5910
|
+
:type Name: str
|
5911
|
+
:param _Enabled: 规则是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
5912
|
+
:type Enabled: str
|
5913
|
+
:param _Priority: 规则的优先级,数值越小越优先执行,范围是 0 ~ 100,默认为 0。
|
5914
|
+
:type Priority: int
|
5915
|
+
:param _Condition: 规则的具体内容,需符合表达式语法,详细规范参见产品文档。
|
5916
|
+
:type Condition: str
|
5917
|
+
:param _AttesterId: 客户端认证选项 ID。
|
5918
|
+
:type AttesterId: str
|
5919
|
+
:param _DeviceProfiles: 客户端设备配置。若 ClientAttestationRules 参数中,未指定 DeviceProfiles 参数值:保持已有客户端设备配置,不做修改。
|
5920
|
+
:type DeviceProfiles: list of DeviceProfile
|
5921
|
+
:param _InvalidAttestationAction: 客户端认证未通过的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。
|
5922
|
+
:type InvalidAttestationAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
5923
|
+
"""
|
5924
|
+
self._Id = None
|
5925
|
+
self._Name = None
|
5926
|
+
self._Enabled = None
|
5927
|
+
self._Priority = None
|
5928
|
+
self._Condition = None
|
5929
|
+
self._AttesterId = None
|
5930
|
+
self._DeviceProfiles = None
|
5931
|
+
self._InvalidAttestationAction = None
|
5932
|
+
|
5933
|
+
@property
|
5934
|
+
def Id(self):
|
5935
|
+
"""客户端认证规则的 ID。<br>通过规则 ID 可支持不同的规则配置操作:<br> <li> <b>增加</b>新规则:ID 为空或不指定 ID 参数;</li><li> <b>修改</b>已有规则:指定需要更新/修改的规则 ID;</li><li> <b>删除</b>已有规则:BotManagement 参数中,ClientAttestationRule 列表中未包含的已有规则将被删除。</li>
|
5936
|
+
:rtype: str
|
5937
|
+
"""
|
5938
|
+
return self._Id
|
5939
|
+
|
5940
|
+
@Id.setter
|
5941
|
+
def Id(self, Id):
|
5942
|
+
self._Id = Id
|
5943
|
+
|
5944
|
+
@property
|
5945
|
+
def Name(self):
|
5946
|
+
"""客户端认证规则的名称。
|
5947
|
+
:rtype: str
|
5948
|
+
"""
|
5949
|
+
return self._Name
|
5950
|
+
|
5951
|
+
@Name.setter
|
5952
|
+
def Name(self, Name):
|
5953
|
+
self._Name = Name
|
5954
|
+
|
5955
|
+
@property
|
5956
|
+
def Enabled(self):
|
5957
|
+
"""规则是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
5958
|
+
:rtype: str
|
5959
|
+
"""
|
5960
|
+
return self._Enabled
|
5961
|
+
|
5962
|
+
@Enabled.setter
|
5963
|
+
def Enabled(self, Enabled):
|
5964
|
+
self._Enabled = Enabled
|
5965
|
+
|
5966
|
+
@property
|
5967
|
+
def Priority(self):
|
5968
|
+
"""规则的优先级,数值越小越优先执行,范围是 0 ~ 100,默认为 0。
|
5969
|
+
:rtype: int
|
5970
|
+
"""
|
5971
|
+
return self._Priority
|
5972
|
+
|
5973
|
+
@Priority.setter
|
5974
|
+
def Priority(self, Priority):
|
5975
|
+
self._Priority = Priority
|
5976
|
+
|
5977
|
+
@property
|
5978
|
+
def Condition(self):
|
5979
|
+
"""规则的具体内容,需符合表达式语法,详细规范参见产品文档。
|
5980
|
+
:rtype: str
|
5981
|
+
"""
|
5982
|
+
return self._Condition
|
5983
|
+
|
5984
|
+
@Condition.setter
|
5985
|
+
def Condition(self, Condition):
|
5986
|
+
self._Condition = Condition
|
5987
|
+
|
5988
|
+
@property
|
5989
|
+
def AttesterId(self):
|
5990
|
+
"""客户端认证选项 ID。
|
5991
|
+
:rtype: str
|
5992
|
+
"""
|
5993
|
+
return self._AttesterId
|
5994
|
+
|
5995
|
+
@AttesterId.setter
|
5996
|
+
def AttesterId(self, AttesterId):
|
5997
|
+
self._AttesterId = AttesterId
|
5998
|
+
|
5999
|
+
@property
|
6000
|
+
def DeviceProfiles(self):
|
6001
|
+
"""客户端设备配置。若 ClientAttestationRules 参数中,未指定 DeviceProfiles 参数值:保持已有客户端设备配置,不做修改。
|
6002
|
+
:rtype: list of DeviceProfile
|
6003
|
+
"""
|
6004
|
+
return self._DeviceProfiles
|
6005
|
+
|
6006
|
+
@DeviceProfiles.setter
|
6007
|
+
def DeviceProfiles(self, DeviceProfiles):
|
6008
|
+
self._DeviceProfiles = DeviceProfiles
|
6009
|
+
|
6010
|
+
@property
|
6011
|
+
def InvalidAttestationAction(self):
|
6012
|
+
"""客户端认证未通过的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。
|
6013
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
6014
|
+
"""
|
6015
|
+
return self._InvalidAttestationAction
|
6016
|
+
|
6017
|
+
@InvalidAttestationAction.setter
|
6018
|
+
def InvalidAttestationAction(self, InvalidAttestationAction):
|
6019
|
+
self._InvalidAttestationAction = InvalidAttestationAction
|
6020
|
+
|
6021
|
+
|
6022
|
+
def _deserialize(self, params):
|
6023
|
+
self._Id = params.get("Id")
|
6024
|
+
self._Name = params.get("Name")
|
6025
|
+
self._Enabled = params.get("Enabled")
|
6026
|
+
self._Priority = params.get("Priority")
|
6027
|
+
self._Condition = params.get("Condition")
|
6028
|
+
self._AttesterId = params.get("AttesterId")
|
6029
|
+
if params.get("DeviceProfiles") is not None:
|
6030
|
+
self._DeviceProfiles = []
|
6031
|
+
for item in params.get("DeviceProfiles"):
|
6032
|
+
obj = DeviceProfile()
|
6033
|
+
obj._deserialize(item)
|
6034
|
+
self._DeviceProfiles.append(obj)
|
6035
|
+
if params.get("InvalidAttestationAction") is not None:
|
6036
|
+
self._InvalidAttestationAction = SecurityAction()
|
6037
|
+
self._InvalidAttestationAction._deserialize(params.get("InvalidAttestationAction"))
|
6038
|
+
memeber_set = set(params.keys())
|
6039
|
+
for name, value in vars(self).items():
|
6040
|
+
property_name = name[1:]
|
6041
|
+
if property_name in memeber_set:
|
6042
|
+
memeber_set.remove(property_name)
|
6043
|
+
if len(memeber_set) > 0:
|
6044
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
6045
|
+
|
6046
|
+
|
6047
|
+
|
6048
|
+
class ClientAttestationRules(AbstractModel):
|
6049
|
+
"""客户端认证的配置。
|
6050
|
+
|
6051
|
+
"""
|
6052
|
+
|
6053
|
+
def __init__(self):
|
6054
|
+
r"""
|
6055
|
+
:param _Rules: 客户端认证的列表。使用 ModifySecurityPolicy 修改 Web 防护配置时:<li> 若未指定 SecurityPolicy.BotManagement.ClientAttestationRules 中的 Rules 参数,或 Rules 参数长度为零:清空所有客户端认证规则配置。</li> <li> 若 SecurityPolicy.BotManagement 参数中,未指定 ClientAttestationRules 参数值:保持已有客户端认证规则配置,不做修改。</li>
|
6056
|
+
:type Rules: list of ClientAttestationRule
|
6057
|
+
"""
|
6058
|
+
self._Rules = None
|
6059
|
+
|
6060
|
+
@property
|
6061
|
+
def Rules(self):
|
6062
|
+
"""客户端认证的列表。使用 ModifySecurityPolicy 修改 Web 防护配置时:<li> 若未指定 SecurityPolicy.BotManagement.ClientAttestationRules 中的 Rules 参数,或 Rules 参数长度为零:清空所有客户端认证规则配置。</li> <li> 若 SecurityPolicy.BotManagement 参数中,未指定 ClientAttestationRules 参数值:保持已有客户端认证规则配置,不做修改。</li>
|
6063
|
+
:rtype: list of ClientAttestationRule
|
6064
|
+
"""
|
6065
|
+
return self._Rules
|
6066
|
+
|
6067
|
+
@Rules.setter
|
6068
|
+
def Rules(self, Rules):
|
6069
|
+
self._Rules = Rules
|
6070
|
+
|
6071
|
+
|
6072
|
+
def _deserialize(self, params):
|
6073
|
+
if params.get("Rules") is not None:
|
6074
|
+
self._Rules = []
|
6075
|
+
for item in params.get("Rules"):
|
6076
|
+
obj = ClientAttestationRule()
|
6077
|
+
obj._deserialize(item)
|
6078
|
+
self._Rules.append(obj)
|
6079
|
+
memeber_set = set(params.keys())
|
6080
|
+
for name, value in vars(self).items():
|
6081
|
+
property_name = name[1:]
|
6082
|
+
if property_name in memeber_set:
|
6083
|
+
memeber_set.remove(property_name)
|
6084
|
+
if len(memeber_set) > 0:
|
6085
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
6086
|
+
|
6087
|
+
|
6088
|
+
|
5811
6089
|
class ClientFiltering(AbstractModel):
|
5812
6090
|
"""智能客户端过滤
|
5813
6091
|
|
@@ -20073,7 +20351,7 @@ class DescribeSecurityIPGroupResponse(AbstractModel):
|
|
20073
20351
|
|
20074
20352
|
def __init__(self):
|
20075
20353
|
r"""
|
20076
|
-
:param _IPGroups: 安全 IP 组的详细配置信息。包含每个安全 IP 组的 ID 、名称、 IP / 网段列表信息和过期时间信息。
|
20354
|
+
:param _IPGroups: 安全 IP 组的详细配置信息。包含每个安全 IP 组的 ID 、名称、IP / 网段总数量、 IP / 网段列表信息和过期时间信息。
|
20077
20355
|
:type IPGroups: list of IPGroup
|
20078
20356
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
20079
20357
|
:type RequestId: str
|
@@ -20083,7 +20361,7 @@ class DescribeSecurityIPGroupResponse(AbstractModel):
|
|
20083
20361
|
|
20084
20362
|
@property
|
20085
20363
|
def IPGroups(self):
|
20086
|
-
"""安全 IP 组的详细配置信息。包含每个安全 IP 组的 ID 、名称、 IP / 网段列表信息和过期时间信息。
|
20364
|
+
"""安全 IP 组的详细配置信息。包含每个安全 IP 组的 ID 、名称、IP / 网段总数量、 IP / 网段列表信息和过期时间信息。
|
20087
20365
|
:rtype: list of IPGroup
|
20088
20366
|
"""
|
20089
20367
|
return self._IPGroups
|
@@ -22750,6 +23028,106 @@ class DetectLengthLimitRule(AbstractModel):
|
|
22750
23028
|
|
22751
23029
|
|
22752
23030
|
|
23031
|
+
class DeviceProfile(AbstractModel):
|
23032
|
+
"""客户端设备配置
|
23033
|
+
|
23034
|
+
"""
|
23035
|
+
|
23036
|
+
def __init__(self):
|
23037
|
+
r"""
|
23038
|
+
:param _ClientType: 客户端设备类型。取值有:<li>iOS;</li><li>Android;</li><li>WebView。</li>
|
23039
|
+
:type ClientType: str
|
23040
|
+
:param _HighRiskMinScore: 判定请求为高风险的最低值,取值范围为 1~99。数值越大请求风险越高越接近 Bot 客户端发起的请求。默认值为 50,对应含义 51~100 为高风险。
|
23041
|
+
:type HighRiskMinScore: int
|
23042
|
+
:param _HighRiskRequestAction: 高风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。
|
23043
|
+
:type HighRiskRequestAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
23044
|
+
:param _MediumRiskMinScore: 判定请求为中风险的最低值,取值范围为 1~99。数值越大请求风险越高越接近 Bot 客户端发起的请求。默认值为 15,对应含义 16~50 为中风险。
|
23045
|
+
:type MediumRiskMinScore: int
|
23046
|
+
:param _MediumRiskRequestAction: 中风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。
|
23047
|
+
:type MediumRiskRequestAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
23048
|
+
"""
|
23049
|
+
self._ClientType = None
|
23050
|
+
self._HighRiskMinScore = None
|
23051
|
+
self._HighRiskRequestAction = None
|
23052
|
+
self._MediumRiskMinScore = None
|
23053
|
+
self._MediumRiskRequestAction = None
|
23054
|
+
|
23055
|
+
@property
|
23056
|
+
def ClientType(self):
|
23057
|
+
"""客户端设备类型。取值有:<li>iOS;</li><li>Android;</li><li>WebView。</li>
|
23058
|
+
:rtype: str
|
23059
|
+
"""
|
23060
|
+
return self._ClientType
|
23061
|
+
|
23062
|
+
@ClientType.setter
|
23063
|
+
def ClientType(self, ClientType):
|
23064
|
+
self._ClientType = ClientType
|
23065
|
+
|
23066
|
+
@property
|
23067
|
+
def HighRiskMinScore(self):
|
23068
|
+
"""判定请求为高风险的最低值,取值范围为 1~99。数值越大请求风险越高越接近 Bot 客户端发起的请求。默认值为 50,对应含义 51~100 为高风险。
|
23069
|
+
:rtype: int
|
23070
|
+
"""
|
23071
|
+
return self._HighRiskMinScore
|
23072
|
+
|
23073
|
+
@HighRiskMinScore.setter
|
23074
|
+
def HighRiskMinScore(self, HighRiskMinScore):
|
23075
|
+
self._HighRiskMinScore = HighRiskMinScore
|
23076
|
+
|
23077
|
+
@property
|
23078
|
+
def HighRiskRequestAction(self):
|
23079
|
+
"""高风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。
|
23080
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
23081
|
+
"""
|
23082
|
+
return self._HighRiskRequestAction
|
23083
|
+
|
23084
|
+
@HighRiskRequestAction.setter
|
23085
|
+
def HighRiskRequestAction(self, HighRiskRequestAction):
|
23086
|
+
self._HighRiskRequestAction = HighRiskRequestAction
|
23087
|
+
|
23088
|
+
@property
|
23089
|
+
def MediumRiskMinScore(self):
|
23090
|
+
"""判定请求为中风险的最低值,取值范围为 1~99。数值越大请求风险越高越接近 Bot 客户端发起的请求。默认值为 15,对应含义 16~50 为中风险。
|
23091
|
+
:rtype: int
|
23092
|
+
"""
|
23093
|
+
return self._MediumRiskMinScore
|
23094
|
+
|
23095
|
+
@MediumRiskMinScore.setter
|
23096
|
+
def MediumRiskMinScore(self, MediumRiskMinScore):
|
23097
|
+
self._MediumRiskMinScore = MediumRiskMinScore
|
23098
|
+
|
23099
|
+
@property
|
23100
|
+
def MediumRiskRequestAction(self):
|
23101
|
+
"""中风险请求的处置方式。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Redirect:重定向;</li><li>Challenge:挑战。</li>默认值为 Monitor。
|
23102
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
23103
|
+
"""
|
23104
|
+
return self._MediumRiskRequestAction
|
23105
|
+
|
23106
|
+
@MediumRiskRequestAction.setter
|
23107
|
+
def MediumRiskRequestAction(self, MediumRiskRequestAction):
|
23108
|
+
self._MediumRiskRequestAction = MediumRiskRequestAction
|
23109
|
+
|
23110
|
+
|
23111
|
+
def _deserialize(self, params):
|
23112
|
+
self._ClientType = params.get("ClientType")
|
23113
|
+
self._HighRiskMinScore = params.get("HighRiskMinScore")
|
23114
|
+
if params.get("HighRiskRequestAction") is not None:
|
23115
|
+
self._HighRiskRequestAction = SecurityAction()
|
23116
|
+
self._HighRiskRequestAction._deserialize(params.get("HighRiskRequestAction"))
|
23117
|
+
self._MediumRiskMinScore = params.get("MediumRiskMinScore")
|
23118
|
+
if params.get("MediumRiskRequestAction") is not None:
|
23119
|
+
self._MediumRiskRequestAction = SecurityAction()
|
23120
|
+
self._MediumRiskRequestAction._deserialize(params.get("MediumRiskRequestAction"))
|
23121
|
+
memeber_set = set(params.keys())
|
23122
|
+
for name, value in vars(self).items():
|
23123
|
+
property_name = name[1:]
|
23124
|
+
if property_name in memeber_set:
|
23125
|
+
memeber_set.remove(property_name)
|
23126
|
+
if len(memeber_set) > 0:
|
23127
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
23128
|
+
|
23129
|
+
|
23130
|
+
|
22753
23131
|
class DiffIPWhitelist(AbstractModel):
|
22754
23132
|
"""最新IP白名单列表相比于当前IP白名单列表的区别
|
22755
23133
|
|
@@ -27127,8 +27505,10 @@ class IPGroup(AbstractModel):
|
|
27127
27505
|
:type Name: str
|
27128
27506
|
:param _Content: IP 组内容,仅支持 IP 及 IP 网段。
|
27129
27507
|
:type Content: list of str
|
27508
|
+
:param _IPTotalCount: IP 组中正在生效的 IP 或网段个数。作为出参时有效,作为入参时无需填写该字段。
|
27509
|
+
:type IPTotalCount: int
|
27130
27510
|
:param _IPExpireInfo: IP 定时过期信息。
|
27131
|
-
|
27511
|
+
作为入参,用于为指定的 IP 地址或网段配置定时过期时间。
|
27132
27512
|
作为出参,包含以下两类信息:
|
27133
27513
|
<li>当前未到期的定时过期信息:尚未触发的过期配置。</li>
|
27134
27514
|
<li>一周内已到期的定时过期信息:已触发的过期配置。</li>
|
@@ -27137,6 +27517,7 @@ class IPGroup(AbstractModel):
|
|
27137
27517
|
self._GroupId = None
|
27138
27518
|
self._Name = None
|
27139
27519
|
self._Content = None
|
27520
|
+
self._IPTotalCount = None
|
27140
27521
|
self._IPExpireInfo = None
|
27141
27522
|
|
27142
27523
|
@property
|
@@ -27172,10 +27553,21 @@ class IPGroup(AbstractModel):
|
|
27172
27553
|
def Content(self, Content):
|
27173
27554
|
self._Content = Content
|
27174
27555
|
|
27556
|
+
@property
|
27557
|
+
def IPTotalCount(self):
|
27558
|
+
"""IP 组中正在生效的 IP 或网段个数。作为出参时有效,作为入参时无需填写该字段。
|
27559
|
+
:rtype: int
|
27560
|
+
"""
|
27561
|
+
return self._IPTotalCount
|
27562
|
+
|
27563
|
+
@IPTotalCount.setter
|
27564
|
+
def IPTotalCount(self, IPTotalCount):
|
27565
|
+
self._IPTotalCount = IPTotalCount
|
27566
|
+
|
27175
27567
|
@property
|
27176
27568
|
def IPExpireInfo(self):
|
27177
27569
|
"""IP 定时过期信息。
|
27178
|
-
|
27570
|
+
作为入参,用于为指定的 IP 地址或网段配置定时过期时间。
|
27179
27571
|
作为出参,包含以下两类信息:
|
27180
27572
|
<li>当前未到期的定时过期信息:尚未触发的过期配置。</li>
|
27181
27573
|
<li>一周内已到期的定时过期信息:已触发的过期配置。</li>
|
@@ -27192,6 +27584,7 @@ class IPGroup(AbstractModel):
|
|
27192
27584
|
self._GroupId = params.get("GroupId")
|
27193
27585
|
self._Name = params.get("Name")
|
27194
27586
|
self._Content = params.get("Content")
|
27587
|
+
self._IPTotalCount = params.get("IPTotalCount")
|
27195
27588
|
if params.get("IPExpireInfo") is not None:
|
27196
27589
|
self._IPExpireInfo = []
|
27197
27590
|
for item in params.get("IPExpireInfo"):
|
@@ -37204,7 +37597,9 @@ class PartialModule(AbstractModel):
|
|
37204
37597
|
def __init__(self):
|
37205
37598
|
r"""
|
37206
37599
|
:param _Module: 模块名称,取值为:
|
37207
|
-
<li>
|
37600
|
+
<li>managed-rule:托管规则 Id;</li>
|
37601
|
+
<li>managed-group:托管规则组;</li>
|
37602
|
+
<li>waf:待废弃,托管规则。</li>
|
37208
37603
|
:type Module: str
|
37209
37604
|
:param _Include: 模块下的需要例外的具体规则ID列表。
|
37210
37605
|
:type Include: list of int
|
@@ -37215,7 +37610,9 @@ class PartialModule(AbstractModel):
|
|
37215
37610
|
@property
|
37216
37611
|
def Module(self):
|
37217
37612
|
"""模块名称,取值为:
|
37218
|
-
<li>
|
37613
|
+
<li>managed-rule:托管规则 Id;</li>
|
37614
|
+
<li>managed-group:托管规则组;</li>
|
37615
|
+
<li>waf:待废弃,托管规则。</li>
|
37219
37616
|
:rtype: str
|
37220
37617
|
"""
|
37221
37618
|
return self._Module
|
@@ -42819,6 +43216,8 @@ class SecurityAction(AbstractModel):
|
|
42819
43216
|
:type DenyActionParameters: :class:`tencentcloud.teo.v20220901.models.DenyActionParameters`
|
42820
43217
|
:param _RedirectActionParameters: 当 Name 为 Redirect 时的附加参数。
|
42821
43218
|
:type RedirectActionParameters: :class:`tencentcloud.teo.v20220901.models.RedirectActionParameters`
|
43219
|
+
:param _AllowActionParameters: 当 Name 为 Allow 时的附加参数。
|
43220
|
+
:type AllowActionParameters: :class:`tencentcloud.teo.v20220901.models.AllowActionParameters`
|
42822
43221
|
:param _ChallengeActionParameters: 当 Name 为 Challenge 时的附加参数。
|
42823
43222
|
:type ChallengeActionParameters: :class:`tencentcloud.teo.v20220901.models.ChallengeActionParameters`
|
42824
43223
|
:param _BlockIPActionParameters: 待废弃,当 Name 为 BlockIP 时的附加参数。
|
@@ -42829,6 +43228,7 @@ class SecurityAction(AbstractModel):
|
|
42829
43228
|
self._Name = None
|
42830
43229
|
self._DenyActionParameters = None
|
42831
43230
|
self._RedirectActionParameters = None
|
43231
|
+
self._AllowActionParameters = None
|
42832
43232
|
self._ChallengeActionParameters = None
|
42833
43233
|
self._BlockIPActionParameters = None
|
42834
43234
|
self._ReturnCustomPageActionParameters = None
|
@@ -42876,6 +43276,17 @@ class SecurityAction(AbstractModel):
|
|
42876
43276
|
def RedirectActionParameters(self, RedirectActionParameters):
|
42877
43277
|
self._RedirectActionParameters = RedirectActionParameters
|
42878
43278
|
|
43279
|
+
@property
|
43280
|
+
def AllowActionParameters(self):
|
43281
|
+
"""当 Name 为 Allow 时的附加参数。
|
43282
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.AllowActionParameters`
|
43283
|
+
"""
|
43284
|
+
return self._AllowActionParameters
|
43285
|
+
|
43286
|
+
@AllowActionParameters.setter
|
43287
|
+
def AllowActionParameters(self, AllowActionParameters):
|
43288
|
+
self._AllowActionParameters = AllowActionParameters
|
43289
|
+
|
42879
43290
|
@property
|
42880
43291
|
def ChallengeActionParameters(self):
|
42881
43292
|
"""当 Name 为 Challenge 时的附加参数。
|
@@ -42918,6 +43329,9 @@ class SecurityAction(AbstractModel):
|
|
42918
43329
|
if params.get("RedirectActionParameters") is not None:
|
42919
43330
|
self._RedirectActionParameters = RedirectActionParameters()
|
42920
43331
|
self._RedirectActionParameters._deserialize(params.get("RedirectActionParameters"))
|
43332
|
+
if params.get("AllowActionParameters") is not None:
|
43333
|
+
self._AllowActionParameters = AllowActionParameters()
|
43334
|
+
self._AllowActionParameters._deserialize(params.get("AllowActionParameters"))
|
42921
43335
|
if params.get("ChallengeActionParameters") is not None:
|
42922
43336
|
self._ChallengeActionParameters = ChallengeActionParameters()
|
42923
43337
|
self._ChallengeActionParameters._deserialize(params.get("ChallengeActionParameters"))
|
@@ -43156,18 +43570,21 @@ class SecurityPolicy(AbstractModel):
|
|
43156
43570
|
:type CustomRules: :class:`tencentcloud.teo.v20220901.models.CustomRules`
|
43157
43571
|
:param _ManagedRules: 托管规则配置。
|
43158
43572
|
:type ManagedRules: :class:`tencentcloud.teo.v20220901.models.ManagedRules`
|
43159
|
-
:param _HttpDDoSProtection: HTTP DDOS防护配置。
|
43573
|
+
:param _HttpDDoSProtection: HTTP DDOS 防护配置。
|
43160
43574
|
:type HttpDDoSProtection: :class:`tencentcloud.teo.v20220901.models.HttpDDoSProtection`
|
43161
43575
|
:param _RateLimitingRules: 速率限制规则配置。
|
43162
43576
|
:type RateLimitingRules: :class:`tencentcloud.teo.v20220901.models.RateLimitingRules`
|
43163
43577
|
:param _ExceptionRules: 例外规则配置。
|
43164
43578
|
:type ExceptionRules: :class:`tencentcloud.teo.v20220901.models.ExceptionRules`
|
43579
|
+
:param _BotManagement: Bot 管理配置。
|
43580
|
+
:type BotManagement: :class:`tencentcloud.teo.v20220901.models.BotManagement`
|
43165
43581
|
"""
|
43166
43582
|
self._CustomRules = None
|
43167
43583
|
self._ManagedRules = None
|
43168
43584
|
self._HttpDDoSProtection = None
|
43169
43585
|
self._RateLimitingRules = None
|
43170
43586
|
self._ExceptionRules = None
|
43587
|
+
self._BotManagement = None
|
43171
43588
|
|
43172
43589
|
@property
|
43173
43590
|
def CustomRules(self):
|
@@ -43193,7 +43610,7 @@ class SecurityPolicy(AbstractModel):
|
|
43193
43610
|
|
43194
43611
|
@property
|
43195
43612
|
def HttpDDoSProtection(self):
|
43196
|
-
"""HTTP DDOS防护配置。
|
43613
|
+
"""HTTP DDOS 防护配置。
|
43197
43614
|
:rtype: :class:`tencentcloud.teo.v20220901.models.HttpDDoSProtection`
|
43198
43615
|
"""
|
43199
43616
|
return self._HttpDDoSProtection
|
@@ -43224,6 +43641,17 @@ class SecurityPolicy(AbstractModel):
|
|
43224
43641
|
def ExceptionRules(self, ExceptionRules):
|
43225
43642
|
self._ExceptionRules = ExceptionRules
|
43226
43643
|
|
43644
|
+
@property
|
43645
|
+
def BotManagement(self):
|
43646
|
+
"""Bot 管理配置。
|
43647
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.BotManagement`
|
43648
|
+
"""
|
43649
|
+
return self._BotManagement
|
43650
|
+
|
43651
|
+
@BotManagement.setter
|
43652
|
+
def BotManagement(self, BotManagement):
|
43653
|
+
self._BotManagement = BotManagement
|
43654
|
+
|
43227
43655
|
|
43228
43656
|
def _deserialize(self, params):
|
43229
43657
|
if params.get("CustomRules") is not None:
|
@@ -43241,6 +43669,9 @@ class SecurityPolicy(AbstractModel):
|
|
43241
43669
|
if params.get("ExceptionRules") is not None:
|
43242
43670
|
self._ExceptionRules = ExceptionRules()
|
43243
43671
|
self._ExceptionRules._deserialize(params.get("ExceptionRules"))
|
43672
|
+
if params.get("BotManagement") is not None:
|
43673
|
+
self._BotManagement = BotManagement()
|
43674
|
+
self._BotManagement._deserialize(params.get("BotManagement"))
|
43244
43675
|
memeber_set = set(params.keys())
|
43245
43676
|
for name, value in vars(self).items():
|
43246
43677
|
property_name = name[1:]
|
@@ -2092,7 +2092,7 @@ class TeoClient(AbstractClient):
|
|
2092
2092
|
|
2093
2093
|
|
2094
2094
|
def DescribeSecurityIPGroup(self, request):
|
2095
|
-
"""查询安全 IP 组的配置信息,包括安全 IP 组的 ID
|
2095
|
+
"""查询安全 IP 组的配置信息,包括安全 IP 组的 ID、名称和内容。本接口的查询结果中,每个 IP 组最多只返回 2000 个 IP / 网段。如果存在超过 2000 个 IP / 网段的超大 IP 组,请调用 DescribeSecurityIPGroupContent 进行分页查询。
|
2096
2096
|
|
2097
2097
|
:param request: Request instance for DescribeSecurityIPGroup.
|
2098
2098
|
:type request: :class:`tencentcloud.teo.v20220901.models.DescribeSecurityIPGroupRequest`
|
@@ -13409,6 +13409,8 @@ class ModelInfo(AbstractModel):
|
|
13409
13409
|
:type IsPrivateModel: bool
|
13410
13410
|
:param _ModelCategory: 模型的类别 多模态MultiModal, 文本大模型 LLM
|
13411
13411
|
:type ModelCategory: str
|
13412
|
+
:param _PublicDataSource: 数据源的配置
|
13413
|
+
:type PublicDataSource: :class:`tencentcloud.tione.v20211111.models.PublicDataSourceFS`
|
13412
13414
|
"""
|
13413
13415
|
self._ModelVersionId = None
|
13414
13416
|
self._ModelId = None
|
@@ -13422,6 +13424,7 @@ class ModelInfo(AbstractModel):
|
|
13422
13424
|
self._ModelFormat = None
|
13423
13425
|
self._IsPrivateModel = None
|
13424
13426
|
self._ModelCategory = None
|
13427
|
+
self._PublicDataSource = None
|
13425
13428
|
|
13426
13429
|
@property
|
13427
13430
|
def ModelVersionId(self):
|
@@ -13560,6 +13563,17 @@ class ModelInfo(AbstractModel):
|
|
13560
13563
|
def ModelCategory(self, ModelCategory):
|
13561
13564
|
self._ModelCategory = ModelCategory
|
13562
13565
|
|
13566
|
+
@property
|
13567
|
+
def PublicDataSource(self):
|
13568
|
+
"""数据源的配置
|
13569
|
+
:rtype: :class:`tencentcloud.tione.v20211111.models.PublicDataSourceFS`
|
13570
|
+
"""
|
13571
|
+
return self._PublicDataSource
|
13572
|
+
|
13573
|
+
@PublicDataSource.setter
|
13574
|
+
def PublicDataSource(self, PublicDataSource):
|
13575
|
+
self._PublicDataSource = PublicDataSource
|
13576
|
+
|
13563
13577
|
|
13564
13578
|
def _deserialize(self, params):
|
13565
13579
|
self._ModelVersionId = params.get("ModelVersionId")
|
@@ -13578,6 +13592,9 @@ class ModelInfo(AbstractModel):
|
|
13578
13592
|
self._ModelFormat = params.get("ModelFormat")
|
13579
13593
|
self._IsPrivateModel = params.get("IsPrivateModel")
|
13580
13594
|
self._ModelCategory = params.get("ModelCategory")
|
13595
|
+
if params.get("PublicDataSource") is not None:
|
13596
|
+
self._PublicDataSource = PublicDataSourceFS()
|
13597
|
+
self._PublicDataSource._deserialize(params.get("PublicDataSource"))
|
13581
13598
|
memeber_set = set(params.keys())
|
13582
13599
|
for name, value in vars(self).items():
|
13583
13600
|
property_name = name[1:]
|
@@ -17189,6 +17206,12 @@ class ProbeAction(AbstractModel):
|
|
17189
17206
|
|
17190
17207
|
|
17191
17208
|
|
17209
|
+
class PublicDataSourceFS(AbstractModel):
|
17210
|
+
"""公有云数据源结构
|
17211
|
+
|
17212
|
+
"""
|
17213
|
+
|
17214
|
+
|
17192
17215
|
class PushTrainingMetricsRequest(AbstractModel):
|
17193
17216
|
"""PushTrainingMetrics请求参数结构体
|
17194
17217
|
|