tencentcloud-sdk-python 3.0.1478__py2.py3-none-any.whl → 3.0.1480__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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cdb/v20170320/models.py +30 -0
- tencentcloud/cdn/v20180606/errorcodes.py +3 -0
- tencentcloud/cdwdoris/v20211228/models.py +20 -0
- tencentcloud/cfg/v20210820/models.py +15 -0
- tencentcloud/csip/v20221121/models.py +84 -0
- tencentcloud/dts/v20211206/dts_client.py +8 -8
- tencentcloud/dts/v20211206/errorcodes.py +9 -0
- tencentcloud/dts/v20211206/models.py +259 -104
- tencentcloud/es/v20180416/models.py +150 -0
- tencentcloud/live/v20180801/models.py +2 -0
- tencentcloud/monitor/v20180724/models.py +182 -2
- tencentcloud/monitor/v20180724/monitor_client.py +23 -0
- tencentcloud/oceanus/v20190422/models.py +4 -4
- tencentcloud/ocr/v20181119/models.py +159 -0
- tencentcloud/ocr/v20181119/ocr_client.py +40 -5
- tencentcloud/organization/v20210331/models.py +15 -0
- tencentcloud/teo/v20220901/models.py +1953 -204
- tencentcloud/tke/v20180525/models.py +232 -8
- tencentcloud/tms/v20201229/errorcodes.py +30 -0
- tencentcloud/tms/v20201229/models.py +431 -0
- tencentcloud/tms/v20201229/tms_client.py +46 -0
- tencentcloud/tsf/v20180326/errorcodes.py +3 -0
- tencentcloud/tsf/v20180326/models.py +96 -0
- tencentcloud/vclm/v20240523/models.py +260 -0
- tencentcloud/vclm/v20240523/vclm_client.py +46 -0
- {tencentcloud_sdk_python-3.0.1478.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1478.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/RECORD +31 -31
- {tencentcloud_sdk_python-3.0.1478.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1478.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1478.dist-info → tencentcloud_sdk_python-3.0.1480.dist-info}/top_level.txt +0 -0
|
@@ -601,7 +601,7 @@ class AccelerationDomainCertificate(AbstractModel):
|
|
|
601
601
|
|
|
602
602
|
def __init__(self):
|
|
603
603
|
r"""
|
|
604
|
-
:param _Mode:
|
|
604
|
+
:param _Mode: 配置服务端证书的模式,取值有: <ul><li>disable:不配置服务端证书;</li> <li>eofreecert:通过自动验证申请免费证书并部署。验证方式详见:[申请免费证书支持的验证方式](https://cloud.tencent.com/document/product/1552/90437) - 在 NS 或者 DNSPod 托管接入模式下,仅支持自动验证的方式申请免费证书。 - 当免费证书申请失败时会导致证书部署失败,您可以通过<a href = 'https://tcloud4api.woa.com/document/product/1657/927938?!preview&!document=1'>检查免费证书申请结果</a>接口获取申请失败原因。</li><li>eofreecert_manual:部署 DNS 委派验证或者文件验证申请的免费证书。在部署免费证书前,您需要触发<a href = 'https://tcloud4api.woa.com/document/product/1657/927322?!preview&!document=1'>申请免费证书</a>接口申请免费证书。在免费证书申请成功后,你可以通过该枚举值对免费证书进行部署;</li> <ul><li>注意:在对免费证书部署时,需要保证当前已存在申请成功的免费证书。您可以通过<a href = 'https://tcloud4api.woa.com/document/product/1657/927938?!preview&!document=1'>检查免费证书申请结果</a>接口检查当前是否已存在申请成功的免费证书。</li> </ul> <li>sslcert:配置 SSL 托管服务端证书。</li></ul>
|
|
605
605
|
:type Mode: str
|
|
606
606
|
:param _List: 服务端证书列表,相关证书部署在 EO 的入口侧。
|
|
607
607
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -618,7 +618,7 @@ class AccelerationDomainCertificate(AbstractModel):
|
|
|
618
618
|
|
|
619
619
|
@property
|
|
620
620
|
def Mode(self):
|
|
621
|
-
r"""
|
|
621
|
+
r"""配置服务端证书的模式,取值有: <ul><li>disable:不配置服务端证书;</li> <li>eofreecert:通过自动验证申请免费证书并部署。验证方式详见:[申请免费证书支持的验证方式](https://cloud.tencent.com/document/product/1552/90437) - 在 NS 或者 DNSPod 托管接入模式下,仅支持自动验证的方式申请免费证书。 - 当免费证书申请失败时会导致证书部署失败,您可以通过<a href = 'https://tcloud4api.woa.com/document/product/1657/927938?!preview&!document=1'>检查免费证书申请结果</a>接口获取申请失败原因。</li><li>eofreecert_manual:部署 DNS 委派验证或者文件验证申请的免费证书。在部署免费证书前,您需要触发<a href = 'https://tcloud4api.woa.com/document/product/1657/927322?!preview&!document=1'>申请免费证书</a>接口申请免费证书。在免费证书申请成功后,你可以通过该枚举值对免费证书进行部署;</li> <ul><li>注意:在对免费证书部署时,需要保证当前已存在申请成功的免费证书。您可以通过<a href = 'https://tcloud4api.woa.com/document/product/1657/927938?!preview&!document=1'>检查免费证书申请结果</a>接口检查当前是否已存在申请成功的免费证书。</li> </ul> <li>sslcert:配置 SSL 托管服务端证书。</li></ul>
|
|
622
622
|
:rtype: str
|
|
623
623
|
"""
|
|
624
624
|
return self._Mode
|
|
@@ -3270,6 +3270,112 @@ class BandwidthAbuseDefense(AbstractModel):
|
|
|
3270
3270
|
|
|
3271
3271
|
|
|
3272
3272
|
|
|
3273
|
+
class BasicBotSettings(AbstractModel):
|
|
3274
|
+
r"""Bot 管理的基础配置,对策略关联的所有域名生效。可以通过 CustomRules 进行精细化定制。
|
|
3275
|
+
|
|
3276
|
+
"""
|
|
3277
|
+
|
|
3278
|
+
def __init__(self):
|
|
3279
|
+
r"""
|
|
3280
|
+
:param _SourceIDC: 客户端 IP 的来源 IDC 配置,用于处置来自 IDC(数据中心) 的客户端 IP 的访问请求。此类来源请求不是由移动端或浏览器端直接访问。
|
|
3281
|
+
:type SourceIDC: :class:`tencentcloud.teo.v20220901.models.SourceIDC`
|
|
3282
|
+
:param _SearchEngineBots: 搜索引擎爬虫配置,用于处置来自搜索引擎爬虫的请求。此类请求的 IP、User-Agent 或 rDNS 结果匹配已知搜索引擎爬虫。
|
|
3283
|
+
:type SearchEngineBots: :class:`tencentcloud.teo.v20220901.models.SearchEngineBots`
|
|
3284
|
+
:param _KnownBotCategories: 商业或开源工具 UA 特征配置(原 UA 特征规则),用于处置来自已知商业工具或开源工具的访问请求。此类请求的 User-Agent 头部符合已知商业或开源工具特征。
|
|
3285
|
+
:type KnownBotCategories: :class:`tencentcloud.teo.v20220901.models.KnownBotCategories`
|
|
3286
|
+
:param _IPReputation: IP 威胁情报库(原客户端画像分析)配置,用于处置近期访问行为具有特定风险特征的客户端 IP。
|
|
3287
|
+
:type IPReputation: :class:`tencentcloud.teo.v20220901.models.IPReputation`
|
|
3288
|
+
:param _BotIntelligence: Bot 智能分析的具体配置。
|
|
3289
|
+
:type BotIntelligence: :class:`tencentcloud.teo.v20220901.models.BotIntelligence`
|
|
3290
|
+
"""
|
|
3291
|
+
self._SourceIDC = None
|
|
3292
|
+
self._SearchEngineBots = None
|
|
3293
|
+
self._KnownBotCategories = None
|
|
3294
|
+
self._IPReputation = None
|
|
3295
|
+
self._BotIntelligence = None
|
|
3296
|
+
|
|
3297
|
+
@property
|
|
3298
|
+
def SourceIDC(self):
|
|
3299
|
+
r"""客户端 IP 的来源 IDC 配置,用于处置来自 IDC(数据中心) 的客户端 IP 的访问请求。此类来源请求不是由移动端或浏览器端直接访问。
|
|
3300
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SourceIDC`
|
|
3301
|
+
"""
|
|
3302
|
+
return self._SourceIDC
|
|
3303
|
+
|
|
3304
|
+
@SourceIDC.setter
|
|
3305
|
+
def SourceIDC(self, SourceIDC):
|
|
3306
|
+
self._SourceIDC = SourceIDC
|
|
3307
|
+
|
|
3308
|
+
@property
|
|
3309
|
+
def SearchEngineBots(self):
|
|
3310
|
+
r"""搜索引擎爬虫配置,用于处置来自搜索引擎爬虫的请求。此类请求的 IP、User-Agent 或 rDNS 结果匹配已知搜索引擎爬虫。
|
|
3311
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SearchEngineBots`
|
|
3312
|
+
"""
|
|
3313
|
+
return self._SearchEngineBots
|
|
3314
|
+
|
|
3315
|
+
@SearchEngineBots.setter
|
|
3316
|
+
def SearchEngineBots(self, SearchEngineBots):
|
|
3317
|
+
self._SearchEngineBots = SearchEngineBots
|
|
3318
|
+
|
|
3319
|
+
@property
|
|
3320
|
+
def KnownBotCategories(self):
|
|
3321
|
+
r"""商业或开源工具 UA 特征配置(原 UA 特征规则),用于处置来自已知商业工具或开源工具的访问请求。此类请求的 User-Agent 头部符合已知商业或开源工具特征。
|
|
3322
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.KnownBotCategories`
|
|
3323
|
+
"""
|
|
3324
|
+
return self._KnownBotCategories
|
|
3325
|
+
|
|
3326
|
+
@KnownBotCategories.setter
|
|
3327
|
+
def KnownBotCategories(self, KnownBotCategories):
|
|
3328
|
+
self._KnownBotCategories = KnownBotCategories
|
|
3329
|
+
|
|
3330
|
+
@property
|
|
3331
|
+
def IPReputation(self):
|
|
3332
|
+
r"""IP 威胁情报库(原客户端画像分析)配置,用于处置近期访问行为具有特定风险特征的客户端 IP。
|
|
3333
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.IPReputation`
|
|
3334
|
+
"""
|
|
3335
|
+
return self._IPReputation
|
|
3336
|
+
|
|
3337
|
+
@IPReputation.setter
|
|
3338
|
+
def IPReputation(self, IPReputation):
|
|
3339
|
+
self._IPReputation = IPReputation
|
|
3340
|
+
|
|
3341
|
+
@property
|
|
3342
|
+
def BotIntelligence(self):
|
|
3343
|
+
r"""Bot 智能分析的具体配置。
|
|
3344
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.BotIntelligence`
|
|
3345
|
+
"""
|
|
3346
|
+
return self._BotIntelligence
|
|
3347
|
+
|
|
3348
|
+
@BotIntelligence.setter
|
|
3349
|
+
def BotIntelligence(self, BotIntelligence):
|
|
3350
|
+
self._BotIntelligence = BotIntelligence
|
|
3351
|
+
|
|
3352
|
+
|
|
3353
|
+
def _deserialize(self, params):
|
|
3354
|
+
if params.get("SourceIDC") is not None:
|
|
3355
|
+
self._SourceIDC = SourceIDC()
|
|
3356
|
+
self._SourceIDC._deserialize(params.get("SourceIDC"))
|
|
3357
|
+
if params.get("SearchEngineBots") is not None:
|
|
3358
|
+
self._SearchEngineBots = SearchEngineBots()
|
|
3359
|
+
self._SearchEngineBots._deserialize(params.get("SearchEngineBots"))
|
|
3360
|
+
if params.get("KnownBotCategories") is not None:
|
|
3361
|
+
self._KnownBotCategories = KnownBotCategories()
|
|
3362
|
+
self._KnownBotCategories._deserialize(params.get("KnownBotCategories"))
|
|
3363
|
+
if params.get("IPReputation") is not None:
|
|
3364
|
+
self._IPReputation = IPReputation()
|
|
3365
|
+
self._IPReputation._deserialize(params.get("IPReputation"))
|
|
3366
|
+
if params.get("BotIntelligence") is not None:
|
|
3367
|
+
self._BotIntelligence = BotIntelligence()
|
|
3368
|
+
self._BotIntelligence._deserialize(params.get("BotIntelligence"))
|
|
3369
|
+
memeber_set = set(params.keys())
|
|
3370
|
+
for name, value in vars(self).items():
|
|
3371
|
+
property_name = name[1:]
|
|
3372
|
+
if property_name in memeber_set:
|
|
3373
|
+
memeber_set.remove(property_name)
|
|
3374
|
+
if len(memeber_set) > 0:
|
|
3375
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3376
|
+
|
|
3377
|
+
|
|
3378
|
+
|
|
3273
3379
|
class BillingData(AbstractModel):
|
|
3274
3380
|
r"""计费数据项。
|
|
3275
3381
|
|
|
@@ -4127,6 +4233,65 @@ class BotExtendAction(AbstractModel):
|
|
|
4127
4233
|
|
|
4128
4234
|
|
|
4129
4235
|
|
|
4236
|
+
class BotIntelligence(AbstractModel):
|
|
4237
|
+
r"""Bot 智能分析的具体配置。
|
|
4238
|
+
|
|
4239
|
+
"""
|
|
4240
|
+
|
|
4241
|
+
def __init__(self):
|
|
4242
|
+
r"""
|
|
4243
|
+
:param _BotRatings: 基于客户端和请求特征,将请求来源分为人类来源请求、合法 Bot 请求、疑似 Bot 请求和高风险 Bot 请求,并提供请求处置选项。
|
|
4244
|
+
:type BotRatings: :class:`tencentcloud.teo.v20220901.models.BotRatings`
|
|
4245
|
+
:param _Enabled: Bot 智能分析的具体配置开关。取值有:
|
|
4246
|
+
|
|
4247
|
+
on:开启;
|
|
4248
|
+
off:关闭。
|
|
4249
|
+
:type Enabled: str
|
|
4250
|
+
"""
|
|
4251
|
+
self._BotRatings = None
|
|
4252
|
+
self._Enabled = None
|
|
4253
|
+
|
|
4254
|
+
@property
|
|
4255
|
+
def BotRatings(self):
|
|
4256
|
+
r"""基于客户端和请求特征,将请求来源分为人类来源请求、合法 Bot 请求、疑似 Bot 请求和高风险 Bot 请求,并提供请求处置选项。
|
|
4257
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.BotRatings`
|
|
4258
|
+
"""
|
|
4259
|
+
return self._BotRatings
|
|
4260
|
+
|
|
4261
|
+
@BotRatings.setter
|
|
4262
|
+
def BotRatings(self, BotRatings):
|
|
4263
|
+
self._BotRatings = BotRatings
|
|
4264
|
+
|
|
4265
|
+
@property
|
|
4266
|
+
def Enabled(self):
|
|
4267
|
+
r"""Bot 智能分析的具体配置开关。取值有:
|
|
4268
|
+
|
|
4269
|
+
on:开启;
|
|
4270
|
+
off:关闭。
|
|
4271
|
+
:rtype: str
|
|
4272
|
+
"""
|
|
4273
|
+
return self._Enabled
|
|
4274
|
+
|
|
4275
|
+
@Enabled.setter
|
|
4276
|
+
def Enabled(self, Enabled):
|
|
4277
|
+
self._Enabled = Enabled
|
|
4278
|
+
|
|
4279
|
+
|
|
4280
|
+
def _deserialize(self, params):
|
|
4281
|
+
if params.get("BotRatings") is not None:
|
|
4282
|
+
self._BotRatings = BotRatings()
|
|
4283
|
+
self._BotRatings._deserialize(params.get("BotRatings"))
|
|
4284
|
+
self._Enabled = params.get("Enabled")
|
|
4285
|
+
memeber_set = set(params.keys())
|
|
4286
|
+
for name, value in vars(self).items():
|
|
4287
|
+
property_name = name[1:]
|
|
4288
|
+
if property_name in memeber_set:
|
|
4289
|
+
memeber_set.remove(property_name)
|
|
4290
|
+
if len(memeber_set) > 0:
|
|
4291
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4292
|
+
|
|
4293
|
+
|
|
4294
|
+
|
|
4130
4295
|
class BotManagedRule(AbstractModel):
|
|
4131
4296
|
r"""Bot 规则,下列规则ID可参考接口 DescribeBotManagedRules返回的ID信息
|
|
4132
4297
|
|
|
@@ -4268,14 +4433,59 @@ class BotManagement(AbstractModel):
|
|
|
4268
4433
|
|
|
4269
4434
|
def __init__(self):
|
|
4270
4435
|
r"""
|
|
4271
|
-
:param
|
|
4436
|
+
:param _Enabled: Bot 管理是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
|
4437
|
+
:type Enabled: str
|
|
4438
|
+
:param _CustomRules: Bot 管理的自定义规则,组合各类爬虫和请求行为特征,精准定义 Bot 并配置定制化处置方式。
|
|
4439
|
+
:type CustomRules: :class:`tencentcloud.teo.v20220901.models.BotManagementCustomRules`
|
|
4440
|
+
:param _BasicBotSettings: Bot 管理的基础配置,对策略关联的所有域名生效。可以通过 CustomRules 进行精细化定制。
|
|
4441
|
+
:type BasicBotSettings: :class:`tencentcloud.teo.v20220901.models.BasicBotSettings`
|
|
4442
|
+
:param _ClientAttestationRules: 客户端认证规则的定义列表。该功能内测中,如需使用,请提工单。
|
|
4272
4443
|
:type ClientAttestationRules: :class:`tencentcloud.teo.v20220901.models.ClientAttestationRules`
|
|
4444
|
+
:param _BrowserImpersonationDetection: 配置浏览器伪造识别规则(原主动特征识别规则)。设置注入 JavaScript 的响应页面范围,浏览器校验选项,以及对非浏览器客户端的处置方式。
|
|
4445
|
+
:type BrowserImpersonationDetection: :class:`tencentcloud.teo.v20220901.models.BrowserImpersonationDetection`
|
|
4273
4446
|
"""
|
|
4447
|
+
self._Enabled = None
|
|
4448
|
+
self._CustomRules = None
|
|
4449
|
+
self._BasicBotSettings = None
|
|
4274
4450
|
self._ClientAttestationRules = None
|
|
4451
|
+
self._BrowserImpersonationDetection = None
|
|
4452
|
+
|
|
4453
|
+
@property
|
|
4454
|
+
def Enabled(self):
|
|
4455
|
+
r"""Bot 管理是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
|
4456
|
+
:rtype: str
|
|
4457
|
+
"""
|
|
4458
|
+
return self._Enabled
|
|
4459
|
+
|
|
4460
|
+
@Enabled.setter
|
|
4461
|
+
def Enabled(self, Enabled):
|
|
4462
|
+
self._Enabled = Enabled
|
|
4463
|
+
|
|
4464
|
+
@property
|
|
4465
|
+
def CustomRules(self):
|
|
4466
|
+
r"""Bot 管理的自定义规则,组合各类爬虫和请求行为特征,精准定义 Bot 并配置定制化处置方式。
|
|
4467
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.BotManagementCustomRules`
|
|
4468
|
+
"""
|
|
4469
|
+
return self._CustomRules
|
|
4470
|
+
|
|
4471
|
+
@CustomRules.setter
|
|
4472
|
+
def CustomRules(self, CustomRules):
|
|
4473
|
+
self._CustomRules = CustomRules
|
|
4474
|
+
|
|
4475
|
+
@property
|
|
4476
|
+
def BasicBotSettings(self):
|
|
4477
|
+
r"""Bot 管理的基础配置,对策略关联的所有域名生效。可以通过 CustomRules 进行精细化定制。
|
|
4478
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.BasicBotSettings`
|
|
4479
|
+
"""
|
|
4480
|
+
return self._BasicBotSettings
|
|
4481
|
+
|
|
4482
|
+
@BasicBotSettings.setter
|
|
4483
|
+
def BasicBotSettings(self, BasicBotSettings):
|
|
4484
|
+
self._BasicBotSettings = BasicBotSettings
|
|
4275
4485
|
|
|
4276
4486
|
@property
|
|
4277
4487
|
def ClientAttestationRules(self):
|
|
4278
|
-
r"""
|
|
4488
|
+
r"""客户端认证规则的定义列表。该功能内测中,如需使用,请提工单。
|
|
4279
4489
|
:rtype: :class:`tencentcloud.teo.v20220901.models.ClientAttestationRules`
|
|
4280
4490
|
"""
|
|
4281
4491
|
return self._ClientAttestationRules
|
|
@@ -4284,11 +4494,244 @@ class BotManagement(AbstractModel):
|
|
|
4284
4494
|
def ClientAttestationRules(self, ClientAttestationRules):
|
|
4285
4495
|
self._ClientAttestationRules = ClientAttestationRules
|
|
4286
4496
|
|
|
4497
|
+
@property
|
|
4498
|
+
def BrowserImpersonationDetection(self):
|
|
4499
|
+
r"""配置浏览器伪造识别规则(原主动特征识别规则)。设置注入 JavaScript 的响应页面范围,浏览器校验选项,以及对非浏览器客户端的处置方式。
|
|
4500
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.BrowserImpersonationDetection`
|
|
4501
|
+
"""
|
|
4502
|
+
return self._BrowserImpersonationDetection
|
|
4503
|
+
|
|
4504
|
+
@BrowserImpersonationDetection.setter
|
|
4505
|
+
def BrowserImpersonationDetection(self, BrowserImpersonationDetection):
|
|
4506
|
+
self._BrowserImpersonationDetection = BrowserImpersonationDetection
|
|
4507
|
+
|
|
4287
4508
|
|
|
4288
4509
|
def _deserialize(self, params):
|
|
4510
|
+
self._Enabled = params.get("Enabled")
|
|
4511
|
+
if params.get("CustomRules") is not None:
|
|
4512
|
+
self._CustomRules = BotManagementCustomRules()
|
|
4513
|
+
self._CustomRules._deserialize(params.get("CustomRules"))
|
|
4514
|
+
if params.get("BasicBotSettings") is not None:
|
|
4515
|
+
self._BasicBotSettings = BasicBotSettings()
|
|
4516
|
+
self._BasicBotSettings._deserialize(params.get("BasicBotSettings"))
|
|
4289
4517
|
if params.get("ClientAttestationRules") is not None:
|
|
4290
4518
|
self._ClientAttestationRules = ClientAttestationRules()
|
|
4291
4519
|
self._ClientAttestationRules._deserialize(params.get("ClientAttestationRules"))
|
|
4520
|
+
if params.get("BrowserImpersonationDetection") is not None:
|
|
4521
|
+
self._BrowserImpersonationDetection = BrowserImpersonationDetection()
|
|
4522
|
+
self._BrowserImpersonationDetection._deserialize(params.get("BrowserImpersonationDetection"))
|
|
4523
|
+
memeber_set = set(params.keys())
|
|
4524
|
+
for name, value in vars(self).items():
|
|
4525
|
+
property_name = name[1:]
|
|
4526
|
+
if property_name in memeber_set:
|
|
4527
|
+
memeber_set.remove(property_name)
|
|
4528
|
+
if len(memeber_set) > 0:
|
|
4529
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4530
|
+
|
|
4531
|
+
|
|
4532
|
+
|
|
4533
|
+
class BotManagementActionOverrides(AbstractModel):
|
|
4534
|
+
r"""Bot 规则项的具体配置,用于覆盖上层的默认配置。
|
|
4535
|
+
|
|
4536
|
+
"""
|
|
4537
|
+
|
|
4538
|
+
def __init__(self):
|
|
4539
|
+
r"""
|
|
4540
|
+
:param _Ids: Bot 规则组下的具体项,用于改写此单条规则项配置的内容,Ids 所对应的具体信息请参考 DescribeBotManagedRules 接口返回的信息。
|
|
4541
|
+
:type Ids: list of str
|
|
4542
|
+
:param _Action: Ids 中指定 Bot 规则项的处置动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Disabled:未启用,不启用指定规则;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge;</li><li>Allow:放行(仅限Bot基础特征管理)。</li>
|
|
4543
|
+
|
|
4544
|
+
:type Action: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
4545
|
+
"""
|
|
4546
|
+
self._Ids = None
|
|
4547
|
+
self._Action = None
|
|
4548
|
+
|
|
4549
|
+
@property
|
|
4550
|
+
def Ids(self):
|
|
4551
|
+
r"""Bot 规则组下的具体项,用于改写此单条规则项配置的内容,Ids 所对应的具体信息请参考 DescribeBotManagedRules 接口返回的信息。
|
|
4552
|
+
:rtype: list of str
|
|
4553
|
+
"""
|
|
4554
|
+
return self._Ids
|
|
4555
|
+
|
|
4556
|
+
@Ids.setter
|
|
4557
|
+
def Ids(self, Ids):
|
|
4558
|
+
self._Ids = Ids
|
|
4559
|
+
|
|
4560
|
+
@property
|
|
4561
|
+
def Action(self):
|
|
4562
|
+
r"""Ids 中指定 Bot 规则项的处置动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Disabled:未启用,不启用指定规则;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge;</li><li>Allow:放行(仅限Bot基础特征管理)。</li>
|
|
4563
|
+
|
|
4564
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
4565
|
+
"""
|
|
4566
|
+
return self._Action
|
|
4567
|
+
|
|
4568
|
+
@Action.setter
|
|
4569
|
+
def Action(self, Action):
|
|
4570
|
+
self._Action = Action
|
|
4571
|
+
|
|
4572
|
+
|
|
4573
|
+
def _deserialize(self, params):
|
|
4574
|
+
self._Ids = params.get("Ids")
|
|
4575
|
+
if params.get("Action") is not None:
|
|
4576
|
+
self._Action = SecurityAction()
|
|
4577
|
+
self._Action._deserialize(params.get("Action"))
|
|
4578
|
+
memeber_set = set(params.keys())
|
|
4579
|
+
for name, value in vars(self).items():
|
|
4580
|
+
property_name = name[1:]
|
|
4581
|
+
if property_name in memeber_set:
|
|
4582
|
+
memeber_set.remove(property_name)
|
|
4583
|
+
if len(memeber_set) > 0:
|
|
4584
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4585
|
+
|
|
4586
|
+
|
|
4587
|
+
|
|
4588
|
+
class BotManagementCustomRule(AbstractModel):
|
|
4589
|
+
r"""Web 安全的 Bot 自定义规则。
|
|
4590
|
+
|
|
4591
|
+
"""
|
|
4592
|
+
|
|
4593
|
+
def __init__(self):
|
|
4594
|
+
r"""
|
|
4595
|
+
:param _Id: Bot 自定义规则的 ID。<br>通过规则 ID 可支持不同的规则配置操作:<br> <li> <b>增加</b>新规则:ID 为空或不指定 ID 参数;</li><li><b>修改</b>已有规则:指定需要更新/修改的规则 ID;</li><li><b>删除</b>已有规则:BotManagementCustomRules 参数中,Rules 列表中未包含的已有规则将被删除。</li>
|
|
4596
|
+
:type Id: str
|
|
4597
|
+
:param _Name: Bot 自定义规则的名称。
|
|
4598
|
+
:type Name: str
|
|
4599
|
+
:param _Enabled: Bot 自定义规则是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
|
4600
|
+
:type Enabled: str
|
|
4601
|
+
:param _Priority: Bot 自定义规则的优先级,范围是 1 ~ 100,默认为 50。
|
|
4602
|
+
:type Priority: int
|
|
4603
|
+
:param _Condition: Bot 自定义规则的具体内容,需符合表达式语法,详细规范参见产品文档。
|
|
4604
|
+
:type Condition: str
|
|
4605
|
+
:param _Action: Bot 自定义规则的处置方式。取值有:<li>Monitor:观察;</li><li>Deny:拦截,其中 DenyActionParameters.Name 支持 Deny 和 ReturnCustomPage;</li><li>Challenge:挑战,其中 ChallengeActionParameters.Name 支持 JSChallenge 和 ManagedChallenge;</li><li>Redirect:重定向至 URL。</li>
|
|
4606
|
+
:type Action: list of SecurityWeightedAction
|
|
4607
|
+
"""
|
|
4608
|
+
self._Id = None
|
|
4609
|
+
self._Name = None
|
|
4610
|
+
self._Enabled = None
|
|
4611
|
+
self._Priority = None
|
|
4612
|
+
self._Condition = None
|
|
4613
|
+
self._Action = None
|
|
4614
|
+
|
|
4615
|
+
@property
|
|
4616
|
+
def Id(self):
|
|
4617
|
+
r"""Bot 自定义规则的 ID。<br>通过规则 ID 可支持不同的规则配置操作:<br> <li> <b>增加</b>新规则:ID 为空或不指定 ID 参数;</li><li><b>修改</b>已有规则:指定需要更新/修改的规则 ID;</li><li><b>删除</b>已有规则:BotManagementCustomRules 参数中,Rules 列表中未包含的已有规则将被删除。</li>
|
|
4618
|
+
:rtype: str
|
|
4619
|
+
"""
|
|
4620
|
+
return self._Id
|
|
4621
|
+
|
|
4622
|
+
@Id.setter
|
|
4623
|
+
def Id(self, Id):
|
|
4624
|
+
self._Id = Id
|
|
4625
|
+
|
|
4626
|
+
@property
|
|
4627
|
+
def Name(self):
|
|
4628
|
+
r"""Bot 自定义规则的名称。
|
|
4629
|
+
:rtype: str
|
|
4630
|
+
"""
|
|
4631
|
+
return self._Name
|
|
4632
|
+
|
|
4633
|
+
@Name.setter
|
|
4634
|
+
def Name(self, Name):
|
|
4635
|
+
self._Name = Name
|
|
4636
|
+
|
|
4637
|
+
@property
|
|
4638
|
+
def Enabled(self):
|
|
4639
|
+
r"""Bot 自定义规则是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
|
4640
|
+
:rtype: str
|
|
4641
|
+
"""
|
|
4642
|
+
return self._Enabled
|
|
4643
|
+
|
|
4644
|
+
@Enabled.setter
|
|
4645
|
+
def Enabled(self, Enabled):
|
|
4646
|
+
self._Enabled = Enabled
|
|
4647
|
+
|
|
4648
|
+
@property
|
|
4649
|
+
def Priority(self):
|
|
4650
|
+
r"""Bot 自定义规则的优先级,范围是 1 ~ 100,默认为 50。
|
|
4651
|
+
:rtype: int
|
|
4652
|
+
"""
|
|
4653
|
+
return self._Priority
|
|
4654
|
+
|
|
4655
|
+
@Priority.setter
|
|
4656
|
+
def Priority(self, Priority):
|
|
4657
|
+
self._Priority = Priority
|
|
4658
|
+
|
|
4659
|
+
@property
|
|
4660
|
+
def Condition(self):
|
|
4661
|
+
r"""Bot 自定义规则的具体内容,需符合表达式语法,详细规范参见产品文档。
|
|
4662
|
+
:rtype: str
|
|
4663
|
+
"""
|
|
4664
|
+
return self._Condition
|
|
4665
|
+
|
|
4666
|
+
@Condition.setter
|
|
4667
|
+
def Condition(self, Condition):
|
|
4668
|
+
self._Condition = Condition
|
|
4669
|
+
|
|
4670
|
+
@property
|
|
4671
|
+
def Action(self):
|
|
4672
|
+
r"""Bot 自定义规则的处置方式。取值有:<li>Monitor:观察;</li><li>Deny:拦截,其中 DenyActionParameters.Name 支持 Deny 和 ReturnCustomPage;</li><li>Challenge:挑战,其中 ChallengeActionParameters.Name 支持 JSChallenge 和 ManagedChallenge;</li><li>Redirect:重定向至 URL。</li>
|
|
4673
|
+
:rtype: list of SecurityWeightedAction
|
|
4674
|
+
"""
|
|
4675
|
+
return self._Action
|
|
4676
|
+
|
|
4677
|
+
@Action.setter
|
|
4678
|
+
def Action(self, Action):
|
|
4679
|
+
self._Action = Action
|
|
4680
|
+
|
|
4681
|
+
|
|
4682
|
+
def _deserialize(self, params):
|
|
4683
|
+
self._Id = params.get("Id")
|
|
4684
|
+
self._Name = params.get("Name")
|
|
4685
|
+
self._Enabled = params.get("Enabled")
|
|
4686
|
+
self._Priority = params.get("Priority")
|
|
4687
|
+
self._Condition = params.get("Condition")
|
|
4688
|
+
if params.get("Action") is not None:
|
|
4689
|
+
self._Action = []
|
|
4690
|
+
for item in params.get("Action"):
|
|
4691
|
+
obj = SecurityWeightedAction()
|
|
4692
|
+
obj._deserialize(item)
|
|
4693
|
+
self._Action.append(obj)
|
|
4694
|
+
memeber_set = set(params.keys())
|
|
4695
|
+
for name, value in vars(self).items():
|
|
4696
|
+
property_name = name[1:]
|
|
4697
|
+
if property_name in memeber_set:
|
|
4698
|
+
memeber_set.remove(property_name)
|
|
4699
|
+
if len(memeber_set) > 0:
|
|
4700
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4701
|
+
|
|
4702
|
+
|
|
4703
|
+
|
|
4704
|
+
class BotManagementCustomRules(AbstractModel):
|
|
4705
|
+
r"""Bot 自定义规则的配置。
|
|
4706
|
+
|
|
4707
|
+
"""
|
|
4708
|
+
|
|
4709
|
+
def __init__(self):
|
|
4710
|
+
r"""
|
|
4711
|
+
:param _Rules: Bot 自定义规则的列表。使用 ModifySecurityPolicy 修改 Web 防护配置时: <br> <li> 若未指定 SecurityPolicy.BotManagement.CustomRules 中的 Rules 参数,或 Rules 参数长度为零:清空所有 Bot 自定义规则配置。</li> <li> 若 SecurityPolicy.BotManagement 参数中,未指定 CustomRules 参数值:保持已有 Bot 自定义规则配置,不做修改。</li>
|
|
4712
|
+
:type Rules: list of BotManagementCustomRule
|
|
4713
|
+
"""
|
|
4714
|
+
self._Rules = None
|
|
4715
|
+
|
|
4716
|
+
@property
|
|
4717
|
+
def Rules(self):
|
|
4718
|
+
r"""Bot 自定义规则的列表。使用 ModifySecurityPolicy 修改 Web 防护配置时: <br> <li> 若未指定 SecurityPolicy.BotManagement.CustomRules 中的 Rules 参数,或 Rules 参数长度为零:清空所有 Bot 自定义规则配置。</li> <li> 若 SecurityPolicy.BotManagement 参数中,未指定 CustomRules 参数值:保持已有 Bot 自定义规则配置,不做修改。</li>
|
|
4719
|
+
:rtype: list of BotManagementCustomRule
|
|
4720
|
+
"""
|
|
4721
|
+
return self._Rules
|
|
4722
|
+
|
|
4723
|
+
@Rules.setter
|
|
4724
|
+
def Rules(self, Rules):
|
|
4725
|
+
self._Rules = Rules
|
|
4726
|
+
|
|
4727
|
+
|
|
4728
|
+
def _deserialize(self, params):
|
|
4729
|
+
if params.get("Rules") is not None:
|
|
4730
|
+
self._Rules = []
|
|
4731
|
+
for item in params.get("Rules"):
|
|
4732
|
+
obj = BotManagementCustomRule()
|
|
4733
|
+
obj._deserialize(item)
|
|
4734
|
+
self._Rules.append(obj)
|
|
4292
4735
|
memeber_set = set(params.keys())
|
|
4293
4736
|
for name, value in vars(self).items():
|
|
4294
4737
|
property_name = name[1:]
|
|
@@ -4414,6 +4857,199 @@ class BotPortraitRule(AbstractModel):
|
|
|
4414
4857
|
|
|
4415
4858
|
|
|
4416
4859
|
|
|
4860
|
+
class BotRatings(AbstractModel):
|
|
4861
|
+
r"""基于客户端和请求特征,将请求来源分为人类来源请求、合法 Bot 请求、疑似 Bot 请求和高风险 Bot 请求,并提供请求处置选项。
|
|
4862
|
+
|
|
4863
|
+
"""
|
|
4864
|
+
|
|
4865
|
+
def __init__(self):
|
|
4866
|
+
r"""
|
|
4867
|
+
:param _HighRiskBotRequestsAction: 恶意 Bot 请求的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Allow:放行;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge。</li>
|
|
4868
|
+
:type HighRiskBotRequestsAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
4869
|
+
:param _LikelyBotRequestsAction: 疑似 Bot 请求的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Allow:放行;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge。</li>
|
|
4870
|
+
:type LikelyBotRequestsAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
4871
|
+
:param _VerifiedBotRequestsAction: 友好 Bot 请求的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Allow:放行;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge。</li>
|
|
4872
|
+
:type VerifiedBotRequestsAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
4873
|
+
:param _HumanRequestsAction: 正常 Bot 请求的执行动作。 SecurityAction 的 Name 取值支持:<li>Allow:放行。</li>
|
|
4874
|
+
:type HumanRequestsAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
4875
|
+
"""
|
|
4876
|
+
self._HighRiskBotRequestsAction = None
|
|
4877
|
+
self._LikelyBotRequestsAction = None
|
|
4878
|
+
self._VerifiedBotRequestsAction = None
|
|
4879
|
+
self._HumanRequestsAction = None
|
|
4880
|
+
|
|
4881
|
+
@property
|
|
4882
|
+
def HighRiskBotRequestsAction(self):
|
|
4883
|
+
r"""恶意 Bot 请求的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Allow:放行;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge。</li>
|
|
4884
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
4885
|
+
"""
|
|
4886
|
+
return self._HighRiskBotRequestsAction
|
|
4887
|
+
|
|
4888
|
+
@HighRiskBotRequestsAction.setter
|
|
4889
|
+
def HighRiskBotRequestsAction(self, HighRiskBotRequestsAction):
|
|
4890
|
+
self._HighRiskBotRequestsAction = HighRiskBotRequestsAction
|
|
4891
|
+
|
|
4892
|
+
@property
|
|
4893
|
+
def LikelyBotRequestsAction(self):
|
|
4894
|
+
r"""疑似 Bot 请求的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Allow:放行;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge。</li>
|
|
4895
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
4896
|
+
"""
|
|
4897
|
+
return self._LikelyBotRequestsAction
|
|
4898
|
+
|
|
4899
|
+
@LikelyBotRequestsAction.setter
|
|
4900
|
+
def LikelyBotRequestsAction(self, LikelyBotRequestsAction):
|
|
4901
|
+
self._LikelyBotRequestsAction = LikelyBotRequestsAction
|
|
4902
|
+
|
|
4903
|
+
@property
|
|
4904
|
+
def VerifiedBotRequestsAction(self):
|
|
4905
|
+
r"""友好 Bot 请求的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Allow:放行;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge。</li>
|
|
4906
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
4907
|
+
"""
|
|
4908
|
+
return self._VerifiedBotRequestsAction
|
|
4909
|
+
|
|
4910
|
+
@VerifiedBotRequestsAction.setter
|
|
4911
|
+
def VerifiedBotRequestsAction(self, VerifiedBotRequestsAction):
|
|
4912
|
+
self._VerifiedBotRequestsAction = VerifiedBotRequestsAction
|
|
4913
|
+
|
|
4914
|
+
@property
|
|
4915
|
+
def HumanRequestsAction(self):
|
|
4916
|
+
r"""正常 Bot 请求的执行动作。 SecurityAction 的 Name 取值支持:<li>Allow:放行。</li>
|
|
4917
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
4918
|
+
"""
|
|
4919
|
+
return self._HumanRequestsAction
|
|
4920
|
+
|
|
4921
|
+
@HumanRequestsAction.setter
|
|
4922
|
+
def HumanRequestsAction(self, HumanRequestsAction):
|
|
4923
|
+
self._HumanRequestsAction = HumanRequestsAction
|
|
4924
|
+
|
|
4925
|
+
|
|
4926
|
+
def _deserialize(self, params):
|
|
4927
|
+
if params.get("HighRiskBotRequestsAction") is not None:
|
|
4928
|
+
self._HighRiskBotRequestsAction = SecurityAction()
|
|
4929
|
+
self._HighRiskBotRequestsAction._deserialize(params.get("HighRiskBotRequestsAction"))
|
|
4930
|
+
if params.get("LikelyBotRequestsAction") is not None:
|
|
4931
|
+
self._LikelyBotRequestsAction = SecurityAction()
|
|
4932
|
+
self._LikelyBotRequestsAction._deserialize(params.get("LikelyBotRequestsAction"))
|
|
4933
|
+
if params.get("VerifiedBotRequestsAction") is not None:
|
|
4934
|
+
self._VerifiedBotRequestsAction = SecurityAction()
|
|
4935
|
+
self._VerifiedBotRequestsAction._deserialize(params.get("VerifiedBotRequestsAction"))
|
|
4936
|
+
if params.get("HumanRequestsAction") is not None:
|
|
4937
|
+
self._HumanRequestsAction = SecurityAction()
|
|
4938
|
+
self._HumanRequestsAction._deserialize(params.get("HumanRequestsAction"))
|
|
4939
|
+
memeber_set = set(params.keys())
|
|
4940
|
+
for name, value in vars(self).items():
|
|
4941
|
+
property_name = name[1:]
|
|
4942
|
+
if property_name in memeber_set:
|
|
4943
|
+
memeber_set.remove(property_name)
|
|
4944
|
+
if len(memeber_set) > 0:
|
|
4945
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4946
|
+
|
|
4947
|
+
|
|
4948
|
+
|
|
4949
|
+
class BotSessionValidation(AbstractModel):
|
|
4950
|
+
r"""Cookie 校验和会话跟踪行为具体配置。
|
|
4951
|
+
|
|
4952
|
+
"""
|
|
4953
|
+
|
|
4954
|
+
def __init__(self):
|
|
4955
|
+
r"""
|
|
4956
|
+
:param _IssueNewBotSessionCookie: 是否更新 Cookie 并校验。取值有:<li>on:更新 Cookie 并校验;</li><li>off:仅校验。</li>
|
|
4957
|
+
:type IssueNewBotSessionCookie: str
|
|
4958
|
+
:param _MaxNewSessionTriggerConfig: 更新 Cookie 并校验时的触发阈值,仅当 IssueNewBotSessionCookie 为 on 时有效。
|
|
4959
|
+
:type MaxNewSessionTriggerConfig: :class:`tencentcloud.teo.v20220901.models.MaxNewSessionTriggerConfig`
|
|
4960
|
+
:param _SessionExpiredAction: 未携带 Cookie 或 Cookie 已过期的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
4961
|
+
:type SessionExpiredAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
4962
|
+
:param _SessionInvalidAction: 不合法 Cookie 的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
4963
|
+
:type SessionInvalidAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
4964
|
+
:param _SessionRateControl: 会话速率和周期特征校验的具体配置。
|
|
4965
|
+
:type SessionRateControl: :class:`tencentcloud.teo.v20220901.models.SessionRateControl`
|
|
4966
|
+
"""
|
|
4967
|
+
self._IssueNewBotSessionCookie = None
|
|
4968
|
+
self._MaxNewSessionTriggerConfig = None
|
|
4969
|
+
self._SessionExpiredAction = None
|
|
4970
|
+
self._SessionInvalidAction = None
|
|
4971
|
+
self._SessionRateControl = None
|
|
4972
|
+
|
|
4973
|
+
@property
|
|
4974
|
+
def IssueNewBotSessionCookie(self):
|
|
4975
|
+
r"""是否更新 Cookie 并校验。取值有:<li>on:更新 Cookie 并校验;</li><li>off:仅校验。</li>
|
|
4976
|
+
:rtype: str
|
|
4977
|
+
"""
|
|
4978
|
+
return self._IssueNewBotSessionCookie
|
|
4979
|
+
|
|
4980
|
+
@IssueNewBotSessionCookie.setter
|
|
4981
|
+
def IssueNewBotSessionCookie(self, IssueNewBotSessionCookie):
|
|
4982
|
+
self._IssueNewBotSessionCookie = IssueNewBotSessionCookie
|
|
4983
|
+
|
|
4984
|
+
@property
|
|
4985
|
+
def MaxNewSessionTriggerConfig(self):
|
|
4986
|
+
r"""更新 Cookie 并校验时的触发阈值,仅当 IssueNewBotSessionCookie 为 on 时有效。
|
|
4987
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.MaxNewSessionTriggerConfig`
|
|
4988
|
+
"""
|
|
4989
|
+
return self._MaxNewSessionTriggerConfig
|
|
4990
|
+
|
|
4991
|
+
@MaxNewSessionTriggerConfig.setter
|
|
4992
|
+
def MaxNewSessionTriggerConfig(self, MaxNewSessionTriggerConfig):
|
|
4993
|
+
self._MaxNewSessionTriggerConfig = MaxNewSessionTriggerConfig
|
|
4994
|
+
|
|
4995
|
+
@property
|
|
4996
|
+
def SessionExpiredAction(self):
|
|
4997
|
+
r"""未携带 Cookie 或 Cookie 已过期的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
4998
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
4999
|
+
"""
|
|
5000
|
+
return self._SessionExpiredAction
|
|
5001
|
+
|
|
5002
|
+
@SessionExpiredAction.setter
|
|
5003
|
+
def SessionExpiredAction(self, SessionExpiredAction):
|
|
5004
|
+
self._SessionExpiredAction = SessionExpiredAction
|
|
5005
|
+
|
|
5006
|
+
@property
|
|
5007
|
+
def SessionInvalidAction(self):
|
|
5008
|
+
r"""不合法 Cookie 的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
5009
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
5010
|
+
"""
|
|
5011
|
+
return self._SessionInvalidAction
|
|
5012
|
+
|
|
5013
|
+
@SessionInvalidAction.setter
|
|
5014
|
+
def SessionInvalidAction(self, SessionInvalidAction):
|
|
5015
|
+
self._SessionInvalidAction = SessionInvalidAction
|
|
5016
|
+
|
|
5017
|
+
@property
|
|
5018
|
+
def SessionRateControl(self):
|
|
5019
|
+
r"""会话速率和周期特征校验的具体配置。
|
|
5020
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SessionRateControl`
|
|
5021
|
+
"""
|
|
5022
|
+
return self._SessionRateControl
|
|
5023
|
+
|
|
5024
|
+
@SessionRateControl.setter
|
|
5025
|
+
def SessionRateControl(self, SessionRateControl):
|
|
5026
|
+
self._SessionRateControl = SessionRateControl
|
|
5027
|
+
|
|
5028
|
+
|
|
5029
|
+
def _deserialize(self, params):
|
|
5030
|
+
self._IssueNewBotSessionCookie = params.get("IssueNewBotSessionCookie")
|
|
5031
|
+
if params.get("MaxNewSessionTriggerConfig") is not None:
|
|
5032
|
+
self._MaxNewSessionTriggerConfig = MaxNewSessionTriggerConfig()
|
|
5033
|
+
self._MaxNewSessionTriggerConfig._deserialize(params.get("MaxNewSessionTriggerConfig"))
|
|
5034
|
+
if params.get("SessionExpiredAction") is not None:
|
|
5035
|
+
self._SessionExpiredAction = SecurityAction()
|
|
5036
|
+
self._SessionExpiredAction._deserialize(params.get("SessionExpiredAction"))
|
|
5037
|
+
if params.get("SessionInvalidAction") is not None:
|
|
5038
|
+
self._SessionInvalidAction = SecurityAction()
|
|
5039
|
+
self._SessionInvalidAction._deserialize(params.get("SessionInvalidAction"))
|
|
5040
|
+
if params.get("SessionRateControl") is not None:
|
|
5041
|
+
self._SessionRateControl = SessionRateControl()
|
|
5042
|
+
self._SessionRateControl._deserialize(params.get("SessionRateControl"))
|
|
5043
|
+
memeber_set = set(params.keys())
|
|
5044
|
+
for name, value in vars(self).items():
|
|
5045
|
+
property_name = name[1:]
|
|
5046
|
+
if property_name in memeber_set:
|
|
5047
|
+
memeber_set.remove(property_name)
|
|
5048
|
+
if len(memeber_set) > 0:
|
|
5049
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5050
|
+
|
|
5051
|
+
|
|
5052
|
+
|
|
4417
5053
|
class BotUserRule(AbstractModel):
|
|
4418
5054
|
r"""Bot自定义规则
|
|
4419
5055
|
|
|
@@ -4691,6 +5327,200 @@ class BotUserRule(AbstractModel):
|
|
|
4691
5327
|
|
|
4692
5328
|
|
|
4693
5329
|
|
|
5330
|
+
class BrowserImpersonationDetection(AbstractModel):
|
|
5331
|
+
r"""浏览器伪造识别规则(原主动特征识别规则)的配置。
|
|
5332
|
+
|
|
5333
|
+
"""
|
|
5334
|
+
|
|
5335
|
+
def __init__(self):
|
|
5336
|
+
r"""
|
|
5337
|
+
:param _Rules: 浏览器伪造识别规则的列表。使用 ModifySecurityPolicy 修改 Web 防护配置时: <br> <li> 若未指定 SecurityPolicy.BotManagement.BrowserImpersonationDetection 中的 Rules 参数,或 Rules 参数长度为零: 清空所有浏览器伪造识别规则配置。</li> <li> 若 SecurityPolicy.BotManagement 参数中,未指定 BrowserImpersonationDetection 参数值: 保持已有浏览器伪造识别规则配置,不做修改。</li>
|
|
5338
|
+
:type Rules: list of BrowserImpersonationDetectionRule
|
|
5339
|
+
"""
|
|
5340
|
+
self._Rules = None
|
|
5341
|
+
|
|
5342
|
+
@property
|
|
5343
|
+
def Rules(self):
|
|
5344
|
+
r"""浏览器伪造识别规则的列表。使用 ModifySecurityPolicy 修改 Web 防护配置时: <br> <li> 若未指定 SecurityPolicy.BotManagement.BrowserImpersonationDetection 中的 Rules 参数,或 Rules 参数长度为零: 清空所有浏览器伪造识别规则配置。</li> <li> 若 SecurityPolicy.BotManagement 参数中,未指定 BrowserImpersonationDetection 参数值: 保持已有浏览器伪造识别规则配置,不做修改。</li>
|
|
5345
|
+
:rtype: list of BrowserImpersonationDetectionRule
|
|
5346
|
+
"""
|
|
5347
|
+
return self._Rules
|
|
5348
|
+
|
|
5349
|
+
@Rules.setter
|
|
5350
|
+
def Rules(self, Rules):
|
|
5351
|
+
self._Rules = Rules
|
|
5352
|
+
|
|
5353
|
+
|
|
5354
|
+
def _deserialize(self, params):
|
|
5355
|
+
if params.get("Rules") is not None:
|
|
5356
|
+
self._Rules = []
|
|
5357
|
+
for item in params.get("Rules"):
|
|
5358
|
+
obj = BrowserImpersonationDetectionRule()
|
|
5359
|
+
obj._deserialize(item)
|
|
5360
|
+
self._Rules.append(obj)
|
|
5361
|
+
memeber_set = set(params.keys())
|
|
5362
|
+
for name, value in vars(self).items():
|
|
5363
|
+
property_name = name[1:]
|
|
5364
|
+
if property_name in memeber_set:
|
|
5365
|
+
memeber_set.remove(property_name)
|
|
5366
|
+
if len(memeber_set) > 0:
|
|
5367
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5368
|
+
|
|
5369
|
+
|
|
5370
|
+
|
|
5371
|
+
class BrowserImpersonationDetectionAction(AbstractModel):
|
|
5372
|
+
r"""Bot 浏览器校验规则(原主动特征识别规则)的 Action。
|
|
5373
|
+
|
|
5374
|
+
"""
|
|
5375
|
+
|
|
5376
|
+
def __init__(self):
|
|
5377
|
+
r"""
|
|
5378
|
+
:param _BotSessionValidation: Cookie 校验和会话跟踪配置。
|
|
5379
|
+
:type BotSessionValidation: :class:`tencentcloud.teo.v20220901.models.BotSessionValidation`
|
|
5380
|
+
:param _ClientBehaviorDetection: 客户端行为校验配置。
|
|
5381
|
+
:type ClientBehaviorDetection: :class:`tencentcloud.teo.v20220901.models.ClientBehaviorDetection`
|
|
5382
|
+
"""
|
|
5383
|
+
self._BotSessionValidation = None
|
|
5384
|
+
self._ClientBehaviorDetection = None
|
|
5385
|
+
|
|
5386
|
+
@property
|
|
5387
|
+
def BotSessionValidation(self):
|
|
5388
|
+
r"""Cookie 校验和会话跟踪配置。
|
|
5389
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.BotSessionValidation`
|
|
5390
|
+
"""
|
|
5391
|
+
return self._BotSessionValidation
|
|
5392
|
+
|
|
5393
|
+
@BotSessionValidation.setter
|
|
5394
|
+
def BotSessionValidation(self, BotSessionValidation):
|
|
5395
|
+
self._BotSessionValidation = BotSessionValidation
|
|
5396
|
+
|
|
5397
|
+
@property
|
|
5398
|
+
def ClientBehaviorDetection(self):
|
|
5399
|
+
r"""客户端行为校验配置。
|
|
5400
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.ClientBehaviorDetection`
|
|
5401
|
+
"""
|
|
5402
|
+
return self._ClientBehaviorDetection
|
|
5403
|
+
|
|
5404
|
+
@ClientBehaviorDetection.setter
|
|
5405
|
+
def ClientBehaviorDetection(self, ClientBehaviorDetection):
|
|
5406
|
+
self._ClientBehaviorDetection = ClientBehaviorDetection
|
|
5407
|
+
|
|
5408
|
+
|
|
5409
|
+
def _deserialize(self, params):
|
|
5410
|
+
if params.get("BotSessionValidation") is not None:
|
|
5411
|
+
self._BotSessionValidation = BotSessionValidation()
|
|
5412
|
+
self._BotSessionValidation._deserialize(params.get("BotSessionValidation"))
|
|
5413
|
+
if params.get("ClientBehaviorDetection") is not None:
|
|
5414
|
+
self._ClientBehaviorDetection = ClientBehaviorDetection()
|
|
5415
|
+
self._ClientBehaviorDetection._deserialize(params.get("ClientBehaviorDetection"))
|
|
5416
|
+
memeber_set = set(params.keys())
|
|
5417
|
+
for name, value in vars(self).items():
|
|
5418
|
+
property_name = name[1:]
|
|
5419
|
+
if property_name in memeber_set:
|
|
5420
|
+
memeber_set.remove(property_name)
|
|
5421
|
+
if len(memeber_set) > 0:
|
|
5422
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5423
|
+
|
|
5424
|
+
|
|
5425
|
+
|
|
5426
|
+
class BrowserImpersonationDetectionRule(AbstractModel):
|
|
5427
|
+
r"""浏览器伪造识别规则(原主动特征识别规则)。
|
|
5428
|
+
|
|
5429
|
+
"""
|
|
5430
|
+
|
|
5431
|
+
def __init__(self):
|
|
5432
|
+
r"""
|
|
5433
|
+
:param _Id: 浏览器伪造识别规则的 ID。<br>通过规则 ID 可支持不同的规则配置操作:<br> <li> <b>增加</b>新规则:ID 为空或不指定 ID 参数;</li><li><b>修改</b>已有规则:指定需要更新/修改的规则 ID;</li><li><b>删除</b>已有规则:BrowserImpersonationDetection 参数中,Rules 列表中未包含的已有规则将被删除。</li>
|
|
5434
|
+
:type Id: str
|
|
5435
|
+
:param _Name: 浏览器伪造识别规则的名称。
|
|
5436
|
+
:type Name: str
|
|
5437
|
+
:param _Enabled: 浏览器伪造识别规则是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
|
5438
|
+
:type Enabled: str
|
|
5439
|
+
:param _Condition: 浏览器伪造识别规则的具体内容,其中仅支持请求方式(Method)、请求路径(Path)和请求 URL 的配置,需符合表达式语法,详细规范参见产品文档。
|
|
5440
|
+
:type Condition: str
|
|
5441
|
+
:param _Action: 浏览器伪造识别规则的处置方式,包括 Cookie 校验和会话跟踪配置以及客户端行为校验配置。
|
|
5442
|
+
:type Action: :class:`tencentcloud.teo.v20220901.models.BrowserImpersonationDetectionAction`
|
|
5443
|
+
"""
|
|
5444
|
+
self._Id = None
|
|
5445
|
+
self._Name = None
|
|
5446
|
+
self._Enabled = None
|
|
5447
|
+
self._Condition = None
|
|
5448
|
+
self._Action = None
|
|
5449
|
+
|
|
5450
|
+
@property
|
|
5451
|
+
def Id(self):
|
|
5452
|
+
r"""浏览器伪造识别规则的 ID。<br>通过规则 ID 可支持不同的规则配置操作:<br> <li> <b>增加</b>新规则:ID 为空或不指定 ID 参数;</li><li><b>修改</b>已有规则:指定需要更新/修改的规则 ID;</li><li><b>删除</b>已有规则:BrowserImpersonationDetection 参数中,Rules 列表中未包含的已有规则将被删除。</li>
|
|
5453
|
+
:rtype: str
|
|
5454
|
+
"""
|
|
5455
|
+
return self._Id
|
|
5456
|
+
|
|
5457
|
+
@Id.setter
|
|
5458
|
+
def Id(self, Id):
|
|
5459
|
+
self._Id = Id
|
|
5460
|
+
|
|
5461
|
+
@property
|
|
5462
|
+
def Name(self):
|
|
5463
|
+
r"""浏览器伪造识别规则的名称。
|
|
5464
|
+
:rtype: str
|
|
5465
|
+
"""
|
|
5466
|
+
return self._Name
|
|
5467
|
+
|
|
5468
|
+
@Name.setter
|
|
5469
|
+
def Name(self, Name):
|
|
5470
|
+
self._Name = Name
|
|
5471
|
+
|
|
5472
|
+
@property
|
|
5473
|
+
def Enabled(self):
|
|
5474
|
+
r"""浏览器伪造识别规则是否开启。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
|
5475
|
+
:rtype: str
|
|
5476
|
+
"""
|
|
5477
|
+
return self._Enabled
|
|
5478
|
+
|
|
5479
|
+
@Enabled.setter
|
|
5480
|
+
def Enabled(self, Enabled):
|
|
5481
|
+
self._Enabled = Enabled
|
|
5482
|
+
|
|
5483
|
+
@property
|
|
5484
|
+
def Condition(self):
|
|
5485
|
+
r"""浏览器伪造识别规则的具体内容,其中仅支持请求方式(Method)、请求路径(Path)和请求 URL 的配置,需符合表达式语法,详细规范参见产品文档。
|
|
5486
|
+
:rtype: str
|
|
5487
|
+
"""
|
|
5488
|
+
return self._Condition
|
|
5489
|
+
|
|
5490
|
+
@Condition.setter
|
|
5491
|
+
def Condition(self, Condition):
|
|
5492
|
+
self._Condition = Condition
|
|
5493
|
+
|
|
5494
|
+
@property
|
|
5495
|
+
def Action(self):
|
|
5496
|
+
r"""浏览器伪造识别规则的处置方式,包括 Cookie 校验和会话跟踪配置以及客户端行为校验配置。
|
|
5497
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.BrowserImpersonationDetectionAction`
|
|
5498
|
+
"""
|
|
5499
|
+
return self._Action
|
|
5500
|
+
|
|
5501
|
+
@Action.setter
|
|
5502
|
+
def Action(self, Action):
|
|
5503
|
+
self._Action = Action
|
|
5504
|
+
|
|
5505
|
+
|
|
5506
|
+
def _deserialize(self, params):
|
|
5507
|
+
self._Id = params.get("Id")
|
|
5508
|
+
self._Name = params.get("Name")
|
|
5509
|
+
self._Enabled = params.get("Enabled")
|
|
5510
|
+
self._Condition = params.get("Condition")
|
|
5511
|
+
if params.get("Action") is not None:
|
|
5512
|
+
self._Action = BrowserImpersonationDetectionAction()
|
|
5513
|
+
self._Action._deserialize(params.get("Action"))
|
|
5514
|
+
memeber_set = set(params.keys())
|
|
5515
|
+
for name, value in vars(self).items():
|
|
5516
|
+
property_name = name[1:]
|
|
5517
|
+
if property_name in memeber_set:
|
|
5518
|
+
memeber_set.remove(property_name)
|
|
5519
|
+
if len(memeber_set) > 0:
|
|
5520
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5521
|
+
|
|
5522
|
+
|
|
5523
|
+
|
|
4694
5524
|
class CC(AbstractModel):
|
|
4695
5525
|
r"""cc配置项。
|
|
4696
5526
|
|
|
@@ -4812,6 +5642,65 @@ class CLSTopic(AbstractModel):
|
|
|
4812
5642
|
|
|
4813
5643
|
|
|
4814
5644
|
|
|
5645
|
+
class CNAMEDetail(AbstractModel):
|
|
5646
|
+
r"""CNAME 接入类型站点参数详情。
|
|
5647
|
+
|
|
5648
|
+
"""
|
|
5649
|
+
|
|
5650
|
+
def __init__(self):
|
|
5651
|
+
r"""
|
|
5652
|
+
:param _IsFake: 是否伪站点,取值有:
|
|
5653
|
+
<li> 0:非伪站点;</li>
|
|
5654
|
+
<li> 1:伪站点。</li>
|
|
5655
|
+
|
|
5656
|
+
:type IsFake: int
|
|
5657
|
+
:param _OwnershipVerification: 归属权验证信息。详情请参考 [站点/域名归属权验证](https://cloud.tencent.com/document/product/1552/70789) 。
|
|
5658
|
+
:type OwnershipVerification: :class:`tencentcloud.teo.v20220901.models.OwnershipVerification`
|
|
5659
|
+
"""
|
|
5660
|
+
self._IsFake = None
|
|
5661
|
+
self._OwnershipVerification = None
|
|
5662
|
+
|
|
5663
|
+
@property
|
|
5664
|
+
def IsFake(self):
|
|
5665
|
+
r"""是否伪站点,取值有:
|
|
5666
|
+
<li> 0:非伪站点;</li>
|
|
5667
|
+
<li> 1:伪站点。</li>
|
|
5668
|
+
|
|
5669
|
+
:rtype: int
|
|
5670
|
+
"""
|
|
5671
|
+
return self._IsFake
|
|
5672
|
+
|
|
5673
|
+
@IsFake.setter
|
|
5674
|
+
def IsFake(self, IsFake):
|
|
5675
|
+
self._IsFake = IsFake
|
|
5676
|
+
|
|
5677
|
+
@property
|
|
5678
|
+
def OwnershipVerification(self):
|
|
5679
|
+
r"""归属权验证信息。详情请参考 [站点/域名归属权验证](https://cloud.tencent.com/document/product/1552/70789) 。
|
|
5680
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.OwnershipVerification`
|
|
5681
|
+
"""
|
|
5682
|
+
return self._OwnershipVerification
|
|
5683
|
+
|
|
5684
|
+
@OwnershipVerification.setter
|
|
5685
|
+
def OwnershipVerification(self, OwnershipVerification):
|
|
5686
|
+
self._OwnershipVerification = OwnershipVerification
|
|
5687
|
+
|
|
5688
|
+
|
|
5689
|
+
def _deserialize(self, params):
|
|
5690
|
+
self._IsFake = params.get("IsFake")
|
|
5691
|
+
if params.get("OwnershipVerification") is not None:
|
|
5692
|
+
self._OwnershipVerification = OwnershipVerification()
|
|
5693
|
+
self._OwnershipVerification._deserialize(params.get("OwnershipVerification"))
|
|
5694
|
+
memeber_set = set(params.keys())
|
|
5695
|
+
for name, value in vars(self).items():
|
|
5696
|
+
property_name = name[1:]
|
|
5697
|
+
if property_name in memeber_set:
|
|
5698
|
+
memeber_set.remove(property_name)
|
|
5699
|
+
if len(memeber_set) > 0:
|
|
5700
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5701
|
+
|
|
5702
|
+
|
|
5703
|
+
|
|
4815
5704
|
class Cache(AbstractModel):
|
|
4816
5705
|
r"""缓存时间设置
|
|
4817
5706
|
|
|
@@ -6600,6 +7489,138 @@ class ClientAttester(AbstractModel):
|
|
|
6600
7489
|
|
|
6601
7490
|
|
|
6602
7491
|
|
|
7492
|
+
class ClientBehaviorDetection(AbstractModel):
|
|
7493
|
+
r"""客户端行为校验
|
|
7494
|
+
|
|
7495
|
+
"""
|
|
7496
|
+
|
|
7497
|
+
def __init__(self):
|
|
7498
|
+
r"""
|
|
7499
|
+
:param _CryptoChallengeIntensity: 工作量证明校验强度。取值有:<li>low:低;</li><li>medium:中;</li><li>high:高。</li>
|
|
7500
|
+
:type CryptoChallengeIntensity: str
|
|
7501
|
+
:param _CryptoChallengeDelayBefore: 客户端行为校验的执行方式。取值有:<li>0ms:立即执行;</li><li>100ms:延迟 100ms 执行;</li><li>200ms:延迟 200ms 执行;</li><li>300ms:延迟 300ms 执行;</li><li>400ms:延迟 400ms 执行;</li><li>500ms:延迟 500ms 执行;</li><li>600ms:延迟 600ms 执行;</li><li>700ms:延迟 700ms 执行;</li><li>800ms:延迟 800ms 执行;</li><li>900ms:延迟 900ms 执行;</li><li>1000ms:延迟 1000ms 执行。</li>
|
|
7502
|
+
:type CryptoChallengeDelayBefore: str
|
|
7503
|
+
:param _MaxChallengeCountInterval: 触发阈值统计的时间窗口,取值有:<li>5s:5 秒内;</li><li>10s:10 秒内;</li><li>15s:15 秒内;</li><li>30s:30 秒内;</li><li>60s:60 秒内;</li><li>5m:5 分钟内;</li><li>10m:10 分钟内;</li><li>30m:30 分钟内;</li><li>60m:60 分钟内。</li>
|
|
7504
|
+
:type MaxChallengeCountInterval: str
|
|
7505
|
+
:param _MaxChallengeCountThreshold: 触发阈值统计的累计次数,取值范围 1 ~ 100000000。
|
|
7506
|
+
:type MaxChallengeCountThreshold: int
|
|
7507
|
+
:param _ChallengeNotFinishedAction: 客户端未启用 JS(未完成检测)时的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
7508
|
+
:type ChallengeNotFinishedAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
7509
|
+
:param _ChallengeTimeoutAction: 客户端检测超时的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
7510
|
+
:type ChallengeTimeoutAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
7511
|
+
:param _BotClientAction: Bot 客户端的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
7512
|
+
:type BotClientAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
7513
|
+
"""
|
|
7514
|
+
self._CryptoChallengeIntensity = None
|
|
7515
|
+
self._CryptoChallengeDelayBefore = None
|
|
7516
|
+
self._MaxChallengeCountInterval = None
|
|
7517
|
+
self._MaxChallengeCountThreshold = None
|
|
7518
|
+
self._ChallengeNotFinishedAction = None
|
|
7519
|
+
self._ChallengeTimeoutAction = None
|
|
7520
|
+
self._BotClientAction = None
|
|
7521
|
+
|
|
7522
|
+
@property
|
|
7523
|
+
def CryptoChallengeIntensity(self):
|
|
7524
|
+
r"""工作量证明校验强度。取值有:<li>low:低;</li><li>medium:中;</li><li>high:高。</li>
|
|
7525
|
+
:rtype: str
|
|
7526
|
+
"""
|
|
7527
|
+
return self._CryptoChallengeIntensity
|
|
7528
|
+
|
|
7529
|
+
@CryptoChallengeIntensity.setter
|
|
7530
|
+
def CryptoChallengeIntensity(self, CryptoChallengeIntensity):
|
|
7531
|
+
self._CryptoChallengeIntensity = CryptoChallengeIntensity
|
|
7532
|
+
|
|
7533
|
+
@property
|
|
7534
|
+
def CryptoChallengeDelayBefore(self):
|
|
7535
|
+
r"""客户端行为校验的执行方式。取值有:<li>0ms:立即执行;</li><li>100ms:延迟 100ms 执行;</li><li>200ms:延迟 200ms 执行;</li><li>300ms:延迟 300ms 执行;</li><li>400ms:延迟 400ms 执行;</li><li>500ms:延迟 500ms 执行;</li><li>600ms:延迟 600ms 执行;</li><li>700ms:延迟 700ms 执行;</li><li>800ms:延迟 800ms 执行;</li><li>900ms:延迟 900ms 执行;</li><li>1000ms:延迟 1000ms 执行。</li>
|
|
7536
|
+
:rtype: str
|
|
7537
|
+
"""
|
|
7538
|
+
return self._CryptoChallengeDelayBefore
|
|
7539
|
+
|
|
7540
|
+
@CryptoChallengeDelayBefore.setter
|
|
7541
|
+
def CryptoChallengeDelayBefore(self, CryptoChallengeDelayBefore):
|
|
7542
|
+
self._CryptoChallengeDelayBefore = CryptoChallengeDelayBefore
|
|
7543
|
+
|
|
7544
|
+
@property
|
|
7545
|
+
def MaxChallengeCountInterval(self):
|
|
7546
|
+
r"""触发阈值统计的时间窗口,取值有:<li>5s:5 秒内;</li><li>10s:10 秒内;</li><li>15s:15 秒内;</li><li>30s:30 秒内;</li><li>60s:60 秒内;</li><li>5m:5 分钟内;</li><li>10m:10 分钟内;</li><li>30m:30 分钟内;</li><li>60m:60 分钟内。</li>
|
|
7547
|
+
:rtype: str
|
|
7548
|
+
"""
|
|
7549
|
+
return self._MaxChallengeCountInterval
|
|
7550
|
+
|
|
7551
|
+
@MaxChallengeCountInterval.setter
|
|
7552
|
+
def MaxChallengeCountInterval(self, MaxChallengeCountInterval):
|
|
7553
|
+
self._MaxChallengeCountInterval = MaxChallengeCountInterval
|
|
7554
|
+
|
|
7555
|
+
@property
|
|
7556
|
+
def MaxChallengeCountThreshold(self):
|
|
7557
|
+
r"""触发阈值统计的累计次数,取值范围 1 ~ 100000000。
|
|
7558
|
+
:rtype: int
|
|
7559
|
+
"""
|
|
7560
|
+
return self._MaxChallengeCountThreshold
|
|
7561
|
+
|
|
7562
|
+
@MaxChallengeCountThreshold.setter
|
|
7563
|
+
def MaxChallengeCountThreshold(self, MaxChallengeCountThreshold):
|
|
7564
|
+
self._MaxChallengeCountThreshold = MaxChallengeCountThreshold
|
|
7565
|
+
|
|
7566
|
+
@property
|
|
7567
|
+
def ChallengeNotFinishedAction(self):
|
|
7568
|
+
r"""客户端未启用 JS(未完成检测)时的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
7569
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
7570
|
+
"""
|
|
7571
|
+
return self._ChallengeNotFinishedAction
|
|
7572
|
+
|
|
7573
|
+
@ChallengeNotFinishedAction.setter
|
|
7574
|
+
def ChallengeNotFinishedAction(self, ChallengeNotFinishedAction):
|
|
7575
|
+
self._ChallengeNotFinishedAction = ChallengeNotFinishedAction
|
|
7576
|
+
|
|
7577
|
+
@property
|
|
7578
|
+
def ChallengeTimeoutAction(self):
|
|
7579
|
+
r"""客户端检测超时的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
7580
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
7581
|
+
"""
|
|
7582
|
+
return self._ChallengeTimeoutAction
|
|
7583
|
+
|
|
7584
|
+
@ChallengeTimeoutAction.setter
|
|
7585
|
+
def ChallengeTimeoutAction(self, ChallengeTimeoutAction):
|
|
7586
|
+
self._ChallengeTimeoutAction = ChallengeTimeoutAction
|
|
7587
|
+
|
|
7588
|
+
@property
|
|
7589
|
+
def BotClientAction(self):
|
|
7590
|
+
r"""Bot 客户端的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
7591
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
7592
|
+
"""
|
|
7593
|
+
return self._BotClientAction
|
|
7594
|
+
|
|
7595
|
+
@BotClientAction.setter
|
|
7596
|
+
def BotClientAction(self, BotClientAction):
|
|
7597
|
+
self._BotClientAction = BotClientAction
|
|
7598
|
+
|
|
7599
|
+
|
|
7600
|
+
def _deserialize(self, params):
|
|
7601
|
+
self._CryptoChallengeIntensity = params.get("CryptoChallengeIntensity")
|
|
7602
|
+
self._CryptoChallengeDelayBefore = params.get("CryptoChallengeDelayBefore")
|
|
7603
|
+
self._MaxChallengeCountInterval = params.get("MaxChallengeCountInterval")
|
|
7604
|
+
self._MaxChallengeCountThreshold = params.get("MaxChallengeCountThreshold")
|
|
7605
|
+
if params.get("ChallengeNotFinishedAction") is not None:
|
|
7606
|
+
self._ChallengeNotFinishedAction = SecurityAction()
|
|
7607
|
+
self._ChallengeNotFinishedAction._deserialize(params.get("ChallengeNotFinishedAction"))
|
|
7608
|
+
if params.get("ChallengeTimeoutAction") is not None:
|
|
7609
|
+
self._ChallengeTimeoutAction = SecurityAction()
|
|
7610
|
+
self._ChallengeTimeoutAction._deserialize(params.get("ChallengeTimeoutAction"))
|
|
7611
|
+
if params.get("BotClientAction") is not None:
|
|
7612
|
+
self._BotClientAction = SecurityAction()
|
|
7613
|
+
self._BotClientAction._deserialize(params.get("BotClientAction"))
|
|
7614
|
+
memeber_set = set(params.keys())
|
|
7615
|
+
for name, value in vars(self).items():
|
|
7616
|
+
property_name = name[1:]
|
|
7617
|
+
if property_name in memeber_set:
|
|
7618
|
+
memeber_set.remove(property_name)
|
|
7619
|
+
if len(memeber_set) > 0:
|
|
7620
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7621
|
+
|
|
7622
|
+
|
|
7623
|
+
|
|
6603
7624
|
class ClientFiltering(AbstractModel):
|
|
6604
7625
|
r"""智能客户端过滤
|
|
6605
7626
|
|
|
@@ -14049,6 +15070,48 @@ class DDosProtectionConfig(AbstractModel):
|
|
|
14049
15070
|
|
|
14050
15071
|
|
|
14051
15072
|
|
|
15073
|
+
class DNSPodDetail(AbstractModel):
|
|
15074
|
+
r"""DNSPod 托管类型站点参数详情。
|
|
15075
|
+
|
|
15076
|
+
"""
|
|
15077
|
+
|
|
15078
|
+
def __init__(self):
|
|
15079
|
+
r"""
|
|
15080
|
+
:param _IsFake: 是否伪站点,取值有:
|
|
15081
|
+
<li> 0:非伪站点;</li>
|
|
15082
|
+
<li> 1:伪站点。</li>
|
|
15083
|
+
|
|
15084
|
+
:type IsFake: int
|
|
15085
|
+
"""
|
|
15086
|
+
self._IsFake = None
|
|
15087
|
+
|
|
15088
|
+
@property
|
|
15089
|
+
def IsFake(self):
|
|
15090
|
+
r"""是否伪站点,取值有:
|
|
15091
|
+
<li> 0:非伪站点;</li>
|
|
15092
|
+
<li> 1:伪站点。</li>
|
|
15093
|
+
|
|
15094
|
+
:rtype: int
|
|
15095
|
+
"""
|
|
15096
|
+
return self._IsFake
|
|
15097
|
+
|
|
15098
|
+
@IsFake.setter
|
|
15099
|
+
def IsFake(self, IsFake):
|
|
15100
|
+
self._IsFake = IsFake
|
|
15101
|
+
|
|
15102
|
+
|
|
15103
|
+
def _deserialize(self, params):
|
|
15104
|
+
self._IsFake = params.get("IsFake")
|
|
15105
|
+
memeber_set = set(params.keys())
|
|
15106
|
+
for name, value in vars(self).items():
|
|
15107
|
+
property_name = name[1:]
|
|
15108
|
+
if property_name in memeber_set:
|
|
15109
|
+
memeber_set.remove(property_name)
|
|
15110
|
+
if len(memeber_set) > 0:
|
|
15111
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15112
|
+
|
|
15113
|
+
|
|
15114
|
+
|
|
14052
15115
|
class DefaultServerCertInfo(AbstractModel):
|
|
14053
15116
|
r"""https 服务端证书配置
|
|
14054
15117
|
|
|
@@ -26527,7 +27590,7 @@ class DescribeZonesRequest(AbstractModel):
|
|
|
26527
27590
|
:param _Limit: 分页查询限制数目。默认值:20,最大值:100。
|
|
26528
27591
|
:type Limit: int
|
|
26529
27592
|
:param _Filters: 过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回当前 appid 下有权限的所有站点信息。详细的过滤条件如下:
|
|
26530
|
-
<li>zone-name:按照站点名称进行过滤;</li><li>zone-id:按照站点 ID
|
|
27593
|
+
<li>zone-name:按照站点名称进行过滤;</li><li>zone-type:按照站点类型进行过滤。可选项:<br> full:NS 接入类型;<br> partial:CNAME 接入类型;<br> partialComposite:无域名接入类型;<br> dnsPodAccess:DNSPod 托管接入类型;<br> pages:Pages 类型。</li><li>zone-id:按照站点 ID 进行过滤,站点 ID 形如:zone-2noz78a8ev6k;</li><li>status:按照站点状态进行过滤。可选项:<br> active:NS 已切换;<br> pending:NS 待切换;<br> deleted:已删除。</li><li>tag-key:按照标签键进行过滤;</li><li>tag-value: 按照标签值进行过滤;</li><li>alias-zone-name: 按照同名站点标识进行过滤。</li>模糊查询时支持过滤字段名为 zone-name 或 alias-zone-name。
|
|
26531
27594
|
:type Filters: list of AdvancedFilter
|
|
26532
27595
|
:param _Order: 可根据该字段对返回结果进行排序,取值有:
|
|
26533
27596
|
<li> type:接入类型;</li>
|
|
@@ -26573,7 +27636,7 @@ class DescribeZonesRequest(AbstractModel):
|
|
|
26573
27636
|
@property
|
|
26574
27637
|
def Filters(self):
|
|
26575
27638
|
r"""过滤条件,Filters.Values 的上限为 20。该参数不填写时,返回当前 appid 下有权限的所有站点信息。详细的过滤条件如下:
|
|
26576
|
-
<li>zone-name:按照站点名称进行过滤;</li><li>zone-id:按照站点 ID
|
|
27639
|
+
<li>zone-name:按照站点名称进行过滤;</li><li>zone-type:按照站点类型进行过滤。可选项:<br> full:NS 接入类型;<br> partial:CNAME 接入类型;<br> partialComposite:无域名接入类型;<br> dnsPodAccess:DNSPod 托管接入类型;<br> pages:Pages 类型。</li><li>zone-id:按照站点 ID 进行过滤,站点 ID 形如:zone-2noz78a8ev6k;</li><li>status:按照站点状态进行过滤。可选项:<br> active:NS 已切换;<br> pending:NS 待切换;<br> deleted:已删除。</li><li>tag-key:按照标签键进行过滤;</li><li>tag-value: 按照标签值进行过滤;</li><li>alias-zone-name: 按照同名站点标识进行过滤。</li>模糊查询时支持过滤字段名为 zone-name 或 alias-zone-name。
|
|
26577
27640
|
:rtype: list of AdvancedFilter
|
|
26578
27641
|
"""
|
|
26579
27642
|
return self._Filters
|
|
@@ -26643,7 +27706,7 @@ class DescribeZonesResponse(AbstractModel):
|
|
|
26643
27706
|
r"""
|
|
26644
27707
|
:param _TotalCount: 符合条件的站点个数。
|
|
26645
27708
|
:type TotalCount: int
|
|
26646
|
-
:param _Zones:
|
|
27709
|
+
:param _Zones: 站点列表详情。
|
|
26647
27710
|
:type Zones: list of Zone
|
|
26648
27711
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
26649
27712
|
:type RequestId: str
|
|
@@ -26665,7 +27728,7 @@ class DescribeZonesResponse(AbstractModel):
|
|
|
26665
27728
|
|
|
26666
27729
|
@property
|
|
26667
27730
|
def Zones(self):
|
|
26668
|
-
r"""
|
|
27731
|
+
r"""站点列表详情。
|
|
26669
27732
|
:rtype: list of Zone
|
|
26670
27733
|
"""
|
|
26671
27734
|
return self._Zones
|
|
@@ -27869,7 +28932,7 @@ class DnsRecord(AbstractModel):
|
|
|
27869
28932
|
|
|
27870
28933
|
|
|
27871
28934
|
class DnsVerification(AbstractModel):
|
|
27872
|
-
r"""CNAME
|
|
28935
|
+
r"""站点 CNAME 模式接入验证归属权或域名申请免费证书时,使用 DNS 解析验证时所需的信息。
|
|
27873
28936
|
|
|
27874
28937
|
"""
|
|
27875
28938
|
|
|
@@ -29858,13 +30921,13 @@ class FileAscriptionInfo(AbstractModel):
|
|
|
29858
30921
|
|
|
29859
30922
|
|
|
29860
30923
|
class FileVerification(AbstractModel):
|
|
29861
|
-
r"""CNAME
|
|
30924
|
+
r"""站点 CNAME 模式接入验证归属权或域名申请免费证书时,使用 HTTP 访问验证文件时所需的信息。
|
|
29862
30925
|
|
|
29863
30926
|
"""
|
|
29864
30927
|
|
|
29865
30928
|
def __init__(self):
|
|
29866
30929
|
r"""
|
|
29867
|
-
:param _Path: EdgeOne 后台服务器将通过
|
|
30930
|
+
:param _Path: EdgeOne 后台服务器将通过 http://{Host}{URL Path} 的格式(例如 http://www.example.com/.well-known/teo-verification/z12h416twn.txt)获取文件验证信息。其中,本字段为您需要创建的 URL Path 部分,Host 为当前加速域名。
|
|
29868
30931
|
:type Path: str
|
|
29869
30932
|
:param _Content: 验证文件的内容。该字段的内容需要您填写至 Path 字段返回的 txt 文件中。
|
|
29870
30933
|
:type Content: str
|
|
@@ -29874,7 +30937,7 @@ class FileVerification(AbstractModel):
|
|
|
29874
30937
|
|
|
29875
30938
|
@property
|
|
29876
30939
|
def Path(self):
|
|
29877
|
-
r"""EdgeOne 后台服务器将通过
|
|
30940
|
+
r"""EdgeOne 后台服务器将通过 http://{Host}{URL Path} 的格式(例如 http://www.example.com/.well-known/teo-verification/z12h416twn.txt)获取文件验证信息。其中,本字段为您需要创建的 URL Path 部分,Host 为当前加速域名。
|
|
29878
30941
|
:rtype: str
|
|
29879
30942
|
"""
|
|
29880
30943
|
return self._Path
|
|
@@ -32429,6 +33492,117 @@ class IPRegionInfo(AbstractModel):
|
|
|
32429
33492
|
|
|
32430
33493
|
|
|
32431
33494
|
|
|
33495
|
+
class IPReputation(AbstractModel):
|
|
33496
|
+
r"""IP 情报库(原客户端画像分析)配置。
|
|
33497
|
+
|
|
33498
|
+
"""
|
|
33499
|
+
|
|
33500
|
+
def __init__(self):
|
|
33501
|
+
r"""
|
|
33502
|
+
:param _Enabled: IP 情报库(原客户端画像分析)。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
|
33503
|
+
:type Enabled: str
|
|
33504
|
+
:param _IPReputationGroup: IP 情报库(原客户端画像分析)的具体配置内容。
|
|
33505
|
+
:type IPReputationGroup: :class:`tencentcloud.teo.v20220901.models.IPReputationGroup`
|
|
33506
|
+
"""
|
|
33507
|
+
self._Enabled = None
|
|
33508
|
+
self._IPReputationGroup = None
|
|
33509
|
+
|
|
33510
|
+
@property
|
|
33511
|
+
def Enabled(self):
|
|
33512
|
+
r"""IP 情报库(原客户端画像分析)。取值有:<li>on:开启;</li><li>off:关闭。</li>
|
|
33513
|
+
:rtype: str
|
|
33514
|
+
"""
|
|
33515
|
+
return self._Enabled
|
|
33516
|
+
|
|
33517
|
+
@Enabled.setter
|
|
33518
|
+
def Enabled(self, Enabled):
|
|
33519
|
+
self._Enabled = Enabled
|
|
33520
|
+
|
|
33521
|
+
@property
|
|
33522
|
+
def IPReputationGroup(self):
|
|
33523
|
+
r"""IP 情报库(原客户端画像分析)的具体配置内容。
|
|
33524
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.IPReputationGroup`
|
|
33525
|
+
"""
|
|
33526
|
+
return self._IPReputationGroup
|
|
33527
|
+
|
|
33528
|
+
@IPReputationGroup.setter
|
|
33529
|
+
def IPReputationGroup(self, IPReputationGroup):
|
|
33530
|
+
self._IPReputationGroup = IPReputationGroup
|
|
33531
|
+
|
|
33532
|
+
|
|
33533
|
+
def _deserialize(self, params):
|
|
33534
|
+
self._Enabled = params.get("Enabled")
|
|
33535
|
+
if params.get("IPReputationGroup") is not None:
|
|
33536
|
+
self._IPReputationGroup = IPReputationGroup()
|
|
33537
|
+
self._IPReputationGroup._deserialize(params.get("IPReputationGroup"))
|
|
33538
|
+
memeber_set = set(params.keys())
|
|
33539
|
+
for name, value in vars(self).items():
|
|
33540
|
+
property_name = name[1:]
|
|
33541
|
+
if property_name in memeber_set:
|
|
33542
|
+
memeber_set.remove(property_name)
|
|
33543
|
+
if len(memeber_set) > 0:
|
|
33544
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
33545
|
+
|
|
33546
|
+
|
|
33547
|
+
|
|
33548
|
+
class IPReputationGroup(AbstractModel):
|
|
33549
|
+
r"""IP 情报库(原客户端画像分析)的具体配置。
|
|
33550
|
+
|
|
33551
|
+
"""
|
|
33552
|
+
|
|
33553
|
+
def __init__(self):
|
|
33554
|
+
r"""
|
|
33555
|
+
:param _BaseAction: IP 情报库(原客户端画像分析)的执行动作。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Disabled:未启用,不启用指定规则;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge。</li>
|
|
33556
|
+
:type BaseAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
33557
|
+
:param _BotManagementActionOverrides: IP 情报库(原客户端画像分析)的具体配置,用于覆盖 BaseAction 中的默认配置。其中 BotManagementActionOverrides 的 Ids 中可以填写:<li>IPREP_WEB_AND_DDOS_ATTACKERS_LOW:网络攻击 - 一般置信度;</li><li>IPREP_WEB_AND_DDOS_ATTACKERS_MID:网络攻击 - 中等置信度;</li><li>IPREP_WEB_AND_DDOS_ATTACKERS_HIGH:网络攻击 - 高置信度;</li><li>IPREP_PROXIES_AND_ANONYMIZERS_LOW:网络代理 - 一般置信度;</li><li>IPREP_PROXIES_AND_ANONYMIZERS_MID:网络代理 - 中等置信度;</li><li>IPREP_PROXIES_AND_ANONYMIZERS_HIGH:网络代理 - 高置信度;</li><li>IPREP_SCANNING_TOOLS_LOW:扫描器 - 一般置信度;</li><li>IPREP_SCANNING_TOOLS_MID:扫描器 - 中等置信度;</li><li>IPREP_SCANNING_TOOLS_HIGH:扫描器 - 高置信度;</li><li>IPREP_ATO_ATTACKERS_LOW:账号接管攻击 - 一般置信度;</li><li>IPREP_ATO_ATTACKERS_MID:账号接管攻击 - 中等置信度;</li><li>IPREP_ATO_ATTACKERS_HIGH:账号接管攻击 - 高置信度;</li><li>IPREP_WEB_SCRAPERS_AND_TRAFFIC_BOTS_LOW:恶意 BOT - 一般置信度;</li><li>IPREP_WEB_SCRAPERS_AND_TRAFFIC_BOTS_MID:恶意 BOT - 中等置信度;</li><li>IPREP_WEB_SCRAPERS_AND_TRAFFIC_BOTS_HIGH:恶意 BOT - 高置信度。</li>
|
|
33558
|
+
:type BotManagementActionOverrides: list of BotManagementActionOverrides
|
|
33559
|
+
"""
|
|
33560
|
+
self._BaseAction = None
|
|
33561
|
+
self._BotManagementActionOverrides = None
|
|
33562
|
+
|
|
33563
|
+
@property
|
|
33564
|
+
def BaseAction(self):
|
|
33565
|
+
r"""IP 情报库(原客户端画像分析)的执行动作。SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Disabled:未启用,不启用指定规则;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge。</li>
|
|
33566
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
33567
|
+
"""
|
|
33568
|
+
return self._BaseAction
|
|
33569
|
+
|
|
33570
|
+
@BaseAction.setter
|
|
33571
|
+
def BaseAction(self, BaseAction):
|
|
33572
|
+
self._BaseAction = BaseAction
|
|
33573
|
+
|
|
33574
|
+
@property
|
|
33575
|
+
def BotManagementActionOverrides(self):
|
|
33576
|
+
r"""IP 情报库(原客户端画像分析)的具体配置,用于覆盖 BaseAction 中的默认配置。其中 BotManagementActionOverrides 的 Ids 中可以填写:<li>IPREP_WEB_AND_DDOS_ATTACKERS_LOW:网络攻击 - 一般置信度;</li><li>IPREP_WEB_AND_DDOS_ATTACKERS_MID:网络攻击 - 中等置信度;</li><li>IPREP_WEB_AND_DDOS_ATTACKERS_HIGH:网络攻击 - 高置信度;</li><li>IPREP_PROXIES_AND_ANONYMIZERS_LOW:网络代理 - 一般置信度;</li><li>IPREP_PROXIES_AND_ANONYMIZERS_MID:网络代理 - 中等置信度;</li><li>IPREP_PROXIES_AND_ANONYMIZERS_HIGH:网络代理 - 高置信度;</li><li>IPREP_SCANNING_TOOLS_LOW:扫描器 - 一般置信度;</li><li>IPREP_SCANNING_TOOLS_MID:扫描器 - 中等置信度;</li><li>IPREP_SCANNING_TOOLS_HIGH:扫描器 - 高置信度;</li><li>IPREP_ATO_ATTACKERS_LOW:账号接管攻击 - 一般置信度;</li><li>IPREP_ATO_ATTACKERS_MID:账号接管攻击 - 中等置信度;</li><li>IPREP_ATO_ATTACKERS_HIGH:账号接管攻击 - 高置信度;</li><li>IPREP_WEB_SCRAPERS_AND_TRAFFIC_BOTS_LOW:恶意 BOT - 一般置信度;</li><li>IPREP_WEB_SCRAPERS_AND_TRAFFIC_BOTS_MID:恶意 BOT - 中等置信度;</li><li>IPREP_WEB_SCRAPERS_AND_TRAFFIC_BOTS_HIGH:恶意 BOT - 高置信度。</li>
|
|
33577
|
+
:rtype: list of BotManagementActionOverrides
|
|
33578
|
+
"""
|
|
33579
|
+
return self._BotManagementActionOverrides
|
|
33580
|
+
|
|
33581
|
+
@BotManagementActionOverrides.setter
|
|
33582
|
+
def BotManagementActionOverrides(self, BotManagementActionOverrides):
|
|
33583
|
+
self._BotManagementActionOverrides = BotManagementActionOverrides
|
|
33584
|
+
|
|
33585
|
+
|
|
33586
|
+
def _deserialize(self, params):
|
|
33587
|
+
if params.get("BaseAction") is not None:
|
|
33588
|
+
self._BaseAction = SecurityAction()
|
|
33589
|
+
self._BaseAction._deserialize(params.get("BaseAction"))
|
|
33590
|
+
if params.get("BotManagementActionOverrides") is not None:
|
|
33591
|
+
self._BotManagementActionOverrides = []
|
|
33592
|
+
for item in params.get("BotManagementActionOverrides"):
|
|
33593
|
+
obj = BotManagementActionOverrides()
|
|
33594
|
+
obj._deserialize(item)
|
|
33595
|
+
self._BotManagementActionOverrides.append(obj)
|
|
33596
|
+
memeber_set = set(params.keys())
|
|
33597
|
+
for name, value in vars(self).items():
|
|
33598
|
+
property_name = name[1:]
|
|
33599
|
+
if property_name in memeber_set:
|
|
33600
|
+
memeber_set.remove(property_name)
|
|
33601
|
+
if len(memeber_set) > 0:
|
|
33602
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
33603
|
+
|
|
33604
|
+
|
|
33605
|
+
|
|
32432
33606
|
class IPWhitelist(AbstractModel):
|
|
32433
33607
|
r"""源站防护IP白名单
|
|
32434
33608
|
|
|
@@ -33738,6 +34912,64 @@ class JustInTimeTranscodeTemplate(AbstractModel):
|
|
|
33738
34912
|
|
|
33739
34913
|
|
|
33740
34914
|
|
|
34915
|
+
class KnownBotCategories(AbstractModel):
|
|
34916
|
+
r"""商业或开源工具 UA 特征配置(原 UA 特征规则)。
|
|
34917
|
+
|
|
34918
|
+
"""
|
|
34919
|
+
|
|
34920
|
+
def __init__(self):
|
|
34921
|
+
r"""
|
|
34922
|
+
:param _BaseAction: 来自已知商业工具或开源工具的访问请求的处置方式。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Disabled:未启用,不启用指定规则;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge;</li><li>Allow:放行(待废弃)。</li>
|
|
34923
|
+
:type BaseAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
34924
|
+
:param _BotManagementActionOverrides: 指定已知商业工具或开源工具的访问请求的处置方式。
|
|
34925
|
+
:type BotManagementActionOverrides: list of BotManagementActionOverrides
|
|
34926
|
+
"""
|
|
34927
|
+
self._BaseAction = None
|
|
34928
|
+
self._BotManagementActionOverrides = None
|
|
34929
|
+
|
|
34930
|
+
@property
|
|
34931
|
+
def BaseAction(self):
|
|
34932
|
+
r"""来自已知商业工具或开源工具的访问请求的处置方式。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Disabled:未启用,不启用指定规则;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge;</li><li>Allow:放行(待废弃)。</li>
|
|
34933
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
34934
|
+
"""
|
|
34935
|
+
return self._BaseAction
|
|
34936
|
+
|
|
34937
|
+
@BaseAction.setter
|
|
34938
|
+
def BaseAction(self, BaseAction):
|
|
34939
|
+
self._BaseAction = BaseAction
|
|
34940
|
+
|
|
34941
|
+
@property
|
|
34942
|
+
def BotManagementActionOverrides(self):
|
|
34943
|
+
r"""指定已知商业工具或开源工具的访问请求的处置方式。
|
|
34944
|
+
:rtype: list of BotManagementActionOverrides
|
|
34945
|
+
"""
|
|
34946
|
+
return self._BotManagementActionOverrides
|
|
34947
|
+
|
|
34948
|
+
@BotManagementActionOverrides.setter
|
|
34949
|
+
def BotManagementActionOverrides(self, BotManagementActionOverrides):
|
|
34950
|
+
self._BotManagementActionOverrides = BotManagementActionOverrides
|
|
34951
|
+
|
|
34952
|
+
|
|
34953
|
+
def _deserialize(self, params):
|
|
34954
|
+
if params.get("BaseAction") is not None:
|
|
34955
|
+
self._BaseAction = SecurityAction()
|
|
34956
|
+
self._BaseAction._deserialize(params.get("BaseAction"))
|
|
34957
|
+
if params.get("BotManagementActionOverrides") is not None:
|
|
34958
|
+
self._BotManagementActionOverrides = []
|
|
34959
|
+
for item in params.get("BotManagementActionOverrides"):
|
|
34960
|
+
obj = BotManagementActionOverrides()
|
|
34961
|
+
obj._deserialize(item)
|
|
34962
|
+
self._BotManagementActionOverrides.append(obj)
|
|
34963
|
+
memeber_set = set(params.keys())
|
|
34964
|
+
for name, value in vars(self).items():
|
|
34965
|
+
property_name = name[1:]
|
|
34966
|
+
if property_name in memeber_set:
|
|
34967
|
+
memeber_set.remove(property_name)
|
|
34968
|
+
if len(memeber_set) > 0:
|
|
34969
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
34970
|
+
|
|
34971
|
+
|
|
34972
|
+
|
|
33741
34973
|
class L4OfflineLog(AbstractModel):
|
|
33742
34974
|
r"""离线日志详细信息
|
|
33743
34975
|
|
|
@@ -35588,6 +36820,57 @@ class MaxAgeParameters(AbstractModel):
|
|
|
35588
36820
|
|
|
35589
36821
|
|
|
35590
36822
|
|
|
36823
|
+
class MaxNewSessionTriggerConfig(AbstractModel):
|
|
36824
|
+
r"""Bot 管理中校验的触发阈值。
|
|
36825
|
+
|
|
36826
|
+
"""
|
|
36827
|
+
|
|
36828
|
+
def __init__(self):
|
|
36829
|
+
r"""
|
|
36830
|
+
:param _MaxNewSessionCountInterval: 触发阈值统计的时间窗口,取值有:<li>5s:5 秒内;</li><li>10s:10 秒内;</li><li>15s:15 秒内;</li><li>30s:30 秒内;</li><li>60s:60 秒内;</li><li>5m:5 分钟内;</li><li>10m:10 分钟内;</li><li>30m:30 分钟内;</li><li>60m:60 分钟内。</li>
|
|
36831
|
+
:type MaxNewSessionCountInterval: str
|
|
36832
|
+
:param _MaxNewSessionCountThreshold: 触发阈值统计的累计次数,取值范围 1 ~ 100000000。
|
|
36833
|
+
:type MaxNewSessionCountThreshold: int
|
|
36834
|
+
"""
|
|
36835
|
+
self._MaxNewSessionCountInterval = None
|
|
36836
|
+
self._MaxNewSessionCountThreshold = None
|
|
36837
|
+
|
|
36838
|
+
@property
|
|
36839
|
+
def MaxNewSessionCountInterval(self):
|
|
36840
|
+
r"""触发阈值统计的时间窗口,取值有:<li>5s:5 秒内;</li><li>10s:10 秒内;</li><li>15s:15 秒内;</li><li>30s:30 秒内;</li><li>60s:60 秒内;</li><li>5m:5 分钟内;</li><li>10m:10 分钟内;</li><li>30m:30 分钟内;</li><li>60m:60 分钟内。</li>
|
|
36841
|
+
:rtype: str
|
|
36842
|
+
"""
|
|
36843
|
+
return self._MaxNewSessionCountInterval
|
|
36844
|
+
|
|
36845
|
+
@MaxNewSessionCountInterval.setter
|
|
36846
|
+
def MaxNewSessionCountInterval(self, MaxNewSessionCountInterval):
|
|
36847
|
+
self._MaxNewSessionCountInterval = MaxNewSessionCountInterval
|
|
36848
|
+
|
|
36849
|
+
@property
|
|
36850
|
+
def MaxNewSessionCountThreshold(self):
|
|
36851
|
+
r"""触发阈值统计的累计次数,取值范围 1 ~ 100000000。
|
|
36852
|
+
:rtype: int
|
|
36853
|
+
"""
|
|
36854
|
+
return self._MaxNewSessionCountThreshold
|
|
36855
|
+
|
|
36856
|
+
@MaxNewSessionCountThreshold.setter
|
|
36857
|
+
def MaxNewSessionCountThreshold(self, MaxNewSessionCountThreshold):
|
|
36858
|
+
self._MaxNewSessionCountThreshold = MaxNewSessionCountThreshold
|
|
36859
|
+
|
|
36860
|
+
|
|
36861
|
+
def _deserialize(self, params):
|
|
36862
|
+
self._MaxNewSessionCountInterval = params.get("MaxNewSessionCountInterval")
|
|
36863
|
+
self._MaxNewSessionCountThreshold = params.get("MaxNewSessionCountThreshold")
|
|
36864
|
+
memeber_set = set(params.keys())
|
|
36865
|
+
for name, value in vars(self).items():
|
|
36866
|
+
property_name = name[1:]
|
|
36867
|
+
if property_name in memeber_set:
|
|
36868
|
+
memeber_set.remove(property_name)
|
|
36869
|
+
if len(memeber_set) > 0:
|
|
36870
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
36871
|
+
|
|
36872
|
+
|
|
36873
|
+
|
|
35591
36874
|
class MinimalRequestBodyTransferRate(AbstractModel):
|
|
35592
36875
|
r"""正文传输最小速率阈值的具体配置。
|
|
35593
36876
|
|
|
@@ -37680,10 +38963,14 @@ class ModifyHostsCertificateRequest(AbstractModel):
|
|
|
37680
38963
|
:param _Hosts: 需要修改证书配置的加速域名。
|
|
37681
38964
|
:type Hosts: list of str
|
|
37682
38965
|
:param _Mode: 配置服务端证书的模式,取值有:
|
|
37683
|
-
<li>disable:不配置服务端证书;</li>
|
|
37684
|
-
<li>eofreecert
|
|
37685
|
-
|
|
37686
|
-
|
|
38966
|
+
<ul><li>disable:不配置服务端证书;</li>
|
|
38967
|
+
<li>eofreecert:通过自动验证申请免费证书并部署。验证方式详见:[申请免费证书支持的验证方式](https://cloud.tencent.com/document/product/1552/90437)
|
|
38968
|
+
|
|
38969
|
+
- 在 NS 或者 DNSPod 托管接入模式下,仅支持自动验证的方式申请免费证书。
|
|
38970
|
+
- 当免费证书申请失败时会导致证书部署失败,您可以通过<a href = 'https://tcloud4api.woa.com/document/product/1657/927938?!preview&!document=1'>检查免费证书申请结果</a>接口获取申请失败原因。</li>
|
|
38971
|
+
</ul><li>eofreecert_manual:部署 DNS 委派验证或者文件验证申请的免费证书。在部署免费证书前,您需要触发<a href = 'https://tcloud4api.woa.com/document/product/1657/927322?!preview&!document=1'>申请免费证书</a>接口申请免费证书。在免费证书申请成功后,你可以通过该枚举值对免费证书进行部署;</li>
|
|
38972
|
+
<ul><li>注意:在对免费证书部署时,需要保证当前已存在申请成功的免费证书。您可以通过<a href = 'https://tcloud4api.woa.com/document/product/1657/927938?!preview&!document=1'>检查免费证书申请结果</a>接口检查当前是否已存在申请成功的免费证书。</li>
|
|
38973
|
+
</ul><li>sslcert:配置 SSL 托管服务端证书。</li>
|
|
37687
38974
|
:type Mode: str
|
|
37688
38975
|
:param _ServerCertInfo: SSL 证书配置,本参数仅在 mode 为 sslcert 时生效,传入对应证书的 CertId 即可。您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/ssl) 查看 CertId。
|
|
37689
38976
|
:type ServerCertInfo: list of ServerCertInfo
|
|
@@ -37730,10 +39017,14 @@ class ModifyHostsCertificateRequest(AbstractModel):
|
|
|
37730
39017
|
@property
|
|
37731
39018
|
def Mode(self):
|
|
37732
39019
|
r"""配置服务端证书的模式,取值有:
|
|
37733
|
-
<li>disable:不配置服务端证书;</li>
|
|
37734
|
-
<li>eofreecert
|
|
37735
|
-
|
|
37736
|
-
|
|
39020
|
+
<ul><li>disable:不配置服务端证书;</li>
|
|
39021
|
+
<li>eofreecert:通过自动验证申请免费证书并部署。验证方式详见:[申请免费证书支持的验证方式](https://cloud.tencent.com/document/product/1552/90437)
|
|
39022
|
+
|
|
39023
|
+
- 在 NS 或者 DNSPod 托管接入模式下,仅支持自动验证的方式申请免费证书。
|
|
39024
|
+
- 当免费证书申请失败时会导致证书部署失败,您可以通过<a href = 'https://tcloud4api.woa.com/document/product/1657/927938?!preview&!document=1'>检查免费证书申请结果</a>接口获取申请失败原因。</li>
|
|
39025
|
+
</ul><li>eofreecert_manual:部署 DNS 委派验证或者文件验证申请的免费证书。在部署免费证书前,您需要触发<a href = 'https://tcloud4api.woa.com/document/product/1657/927322?!preview&!document=1'>申请免费证书</a>接口申请免费证书。在免费证书申请成功后,你可以通过该枚举值对免费证书进行部署;</li>
|
|
39026
|
+
<ul><li>注意:在对免费证书部署时,需要保证当前已存在申请成功的免费证书。您可以通过<a href = 'https://tcloud4api.woa.com/document/product/1657/927938?!preview&!document=1'>检查免费证书申请结果</a>接口检查当前是否已存在申请成功的免费证书。</li>
|
|
39027
|
+
</ul><li>sslcert:配置 SSL 托管服务端证书。</li>
|
|
37737
39028
|
:rtype: str
|
|
37738
39029
|
"""
|
|
37739
39030
|
return self._Mode
|
|
@@ -40569,9 +41860,9 @@ class ModifySecurityPolicyRequest(AbstractModel):
|
|
|
40569
41860
|
r"""
|
|
40570
41861
|
:param _ZoneId: 站点 ID。
|
|
40571
41862
|
:type ZoneId: str
|
|
40572
|
-
:param _SecurityConfig: 安全策略配置。<li>当 SecurityPolicy 参数中的 ExceptionRules 被设置时,SecurityConfig 参数中的 ExceptConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 CustomRules 被设置时,SecurityConfig 参数中的 AclConfig、 IpTableConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 HttpDDoSProtection 和 RateLimitingRules 被设置时,SecurityConfig 参数中的 RateLimitConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 ManagedRule 被设置时,SecurityConfig 参数中的 WafConfig 将被忽略;</li><li
|
|
41863
|
+
:param _SecurityConfig: 安全策略配置。<li>当 SecurityPolicy 参数中的 ExceptionRules 被设置时,SecurityConfig 参数中的 ExceptConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 CustomRules 被设置时,SecurityConfig 参数中的 AclConfig、 IpTableConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 HttpDDoSProtection 和 RateLimitingRules 被设置时,SecurityConfig 参数中的 RateLimitConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 ManagedRule 被设置时,SecurityConfig 参数中的 WafConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 BotManagement 被设置时,SecurityConfig 参数中的 BotConfig 将被忽略;</li><li>对于例外规则、自定义规则、速率限制、托管规则以及 Bot 管理策略配置建议使用 SecurityPolicy 参数进行设置。</li>
|
|
40573
41864
|
:type SecurityConfig: :class:`tencentcloud.teo.v20220901.models.SecurityConfig`
|
|
40574
|
-
:param _SecurityPolicy: 安全策略配置。对 Web
|
|
41865
|
+
:param _SecurityPolicy: 安全策略配置。对 Web 例外规则、防护自定义策略、速率规则、托管规则和 Bot 管理配置建议使用,支持表达式语法对安全策略进行配置。
|
|
40575
41866
|
:type SecurityPolicy: :class:`tencentcloud.teo.v20220901.models.SecurityPolicy`
|
|
40576
41867
|
:param _Entity: 安全策略类型,可使用以下参数值: <li>ZoneDefaultPolicy:用于指定站点级策略;</li><li>Template:用于指定策略模板,需要同时指定 TemplateId 参数;</li><li>Host:用于指定域名级策略(注意:当使用域名来指定域名服务策略时,仅支持已经应用了域名级策略的域名服务或者策略模板)。</li>
|
|
40577
41868
|
:type Entity: str
|
|
@@ -40600,7 +41891,7 @@ class ModifySecurityPolicyRequest(AbstractModel):
|
|
|
40600
41891
|
|
|
40601
41892
|
@property
|
|
40602
41893
|
def SecurityConfig(self):
|
|
40603
|
-
r"""安全策略配置。<li>当 SecurityPolicy 参数中的 ExceptionRules 被设置时,SecurityConfig 参数中的 ExceptConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 CustomRules 被设置时,SecurityConfig 参数中的 AclConfig、 IpTableConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 HttpDDoSProtection 和 RateLimitingRules 被设置时,SecurityConfig 参数中的 RateLimitConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 ManagedRule 被设置时,SecurityConfig 参数中的 WafConfig 将被忽略;</li><li
|
|
41894
|
+
r"""安全策略配置。<li>当 SecurityPolicy 参数中的 ExceptionRules 被设置时,SecurityConfig 参数中的 ExceptConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 CustomRules 被设置时,SecurityConfig 参数中的 AclConfig、 IpTableConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 HttpDDoSProtection 和 RateLimitingRules 被设置时,SecurityConfig 参数中的 RateLimitConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 ManagedRule 被设置时,SecurityConfig 参数中的 WafConfig 将被忽略;</li><li>当 SecurityPolicy 参数中的 BotManagement 被设置时,SecurityConfig 参数中的 BotConfig 将被忽略;</li><li>对于例外规则、自定义规则、速率限制、托管规则以及 Bot 管理策略配置建议使用 SecurityPolicy 参数进行设置。</li>
|
|
40604
41895
|
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityConfig`
|
|
40605
41896
|
"""
|
|
40606
41897
|
return self._SecurityConfig
|
|
@@ -40611,7 +41902,7 @@ class ModifySecurityPolicyRequest(AbstractModel):
|
|
|
40611
41902
|
|
|
40612
41903
|
@property
|
|
40613
41904
|
def SecurityPolicy(self):
|
|
40614
|
-
r"""安全策略配置。对 Web
|
|
41905
|
+
r"""安全策略配置。对 Web 例外规则、防护自定义策略、速率规则、托管规则和 Bot 管理配置建议使用,支持表达式语法对安全策略进行配置。
|
|
40615
41906
|
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityPolicy`
|
|
40616
41907
|
"""
|
|
40617
41908
|
return self._SecurityPolicy
|
|
@@ -42087,6 +43378,149 @@ class MutualTLS(AbstractModel):
|
|
|
42087
43378
|
|
|
42088
43379
|
|
|
42089
43380
|
|
|
43381
|
+
class NSDetail(AbstractModel):
|
|
43382
|
+
r"""NS 接入类型站点参数详情。
|
|
43383
|
+
|
|
43384
|
+
"""
|
|
43385
|
+
|
|
43386
|
+
def __init__(self):
|
|
43387
|
+
r"""
|
|
43388
|
+
:param _CnameSpeedUp: 是否开启 CNAME 加速,取值有:
|
|
43389
|
+
<li> enabled:开启;</li>
|
|
43390
|
+
<li> disabled:关闭。</li>
|
|
43391
|
+
:type CnameSpeedUp: str
|
|
43392
|
+
:param _IsFake: 是否存在同名站点,取值有:
|
|
43393
|
+
<li> 0:不存在同名站点;</li>
|
|
43394
|
+
<li> 1:已存在同名站点。</li>
|
|
43395
|
+
:type IsFake: int
|
|
43396
|
+
:param _OwnershipVerification: 归属权验证信息。针对 NS 接入类型的站点,将当前的 NS 服务器切换至腾讯云 EdgeOne 指定的 NS 服务器,即视为通过归属权验证。详情请参考 [站点/域名归属权验证](https://cloud.tencent.com/document/product/1552/70789) 。
|
|
43397
|
+
:type OwnershipVerification: :class:`tencentcloud.teo.v20220901.models.OwnershipVerification`
|
|
43398
|
+
:param _OriginalNameServers: 由 EdgeOne 检测到的站点当前正在使用的 NS 服务器列表。
|
|
43399
|
+
:type OriginalNameServers: list of str
|
|
43400
|
+
:param _NameServers: 腾讯云 EdgeOne 分配的 NS 服务器列表。需要将当前站点 NS 服务器指向该地址,站点才能生效。
|
|
43401
|
+
:type NameServers: list of str
|
|
43402
|
+
:param _VanityNameServers: 用户自定义 NS 服务器域名信息。如果启用了自定义 NS 服务,需要在域名注册厂商内将 NS 指向该地址。
|
|
43403
|
+
:type VanityNameServers: :class:`tencentcloud.teo.v20220901.models.VanityNameServers`
|
|
43404
|
+
:param _VanityNameServersIps: 用户自定义 NS 服务器对应的 IP 地址信息。
|
|
43405
|
+
:type VanityNameServersIps: list of VanityNameServersIps
|
|
43406
|
+
"""
|
|
43407
|
+
self._CnameSpeedUp = None
|
|
43408
|
+
self._IsFake = None
|
|
43409
|
+
self._OwnershipVerification = None
|
|
43410
|
+
self._OriginalNameServers = None
|
|
43411
|
+
self._NameServers = None
|
|
43412
|
+
self._VanityNameServers = None
|
|
43413
|
+
self._VanityNameServersIps = None
|
|
43414
|
+
|
|
43415
|
+
@property
|
|
43416
|
+
def CnameSpeedUp(self):
|
|
43417
|
+
r"""是否开启 CNAME 加速,取值有:
|
|
43418
|
+
<li> enabled:开启;</li>
|
|
43419
|
+
<li> disabled:关闭。</li>
|
|
43420
|
+
:rtype: str
|
|
43421
|
+
"""
|
|
43422
|
+
return self._CnameSpeedUp
|
|
43423
|
+
|
|
43424
|
+
@CnameSpeedUp.setter
|
|
43425
|
+
def CnameSpeedUp(self, CnameSpeedUp):
|
|
43426
|
+
self._CnameSpeedUp = CnameSpeedUp
|
|
43427
|
+
|
|
43428
|
+
@property
|
|
43429
|
+
def IsFake(self):
|
|
43430
|
+
r"""是否存在同名站点,取值有:
|
|
43431
|
+
<li> 0:不存在同名站点;</li>
|
|
43432
|
+
<li> 1:已存在同名站点。</li>
|
|
43433
|
+
:rtype: int
|
|
43434
|
+
"""
|
|
43435
|
+
return self._IsFake
|
|
43436
|
+
|
|
43437
|
+
@IsFake.setter
|
|
43438
|
+
def IsFake(self, IsFake):
|
|
43439
|
+
self._IsFake = IsFake
|
|
43440
|
+
|
|
43441
|
+
@property
|
|
43442
|
+
def OwnershipVerification(self):
|
|
43443
|
+
r"""归属权验证信息。针对 NS 接入类型的站点,将当前的 NS 服务器切换至腾讯云 EdgeOne 指定的 NS 服务器,即视为通过归属权验证。详情请参考 [站点/域名归属权验证](https://cloud.tencent.com/document/product/1552/70789) 。
|
|
43444
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.OwnershipVerification`
|
|
43445
|
+
"""
|
|
43446
|
+
return self._OwnershipVerification
|
|
43447
|
+
|
|
43448
|
+
@OwnershipVerification.setter
|
|
43449
|
+
def OwnershipVerification(self, OwnershipVerification):
|
|
43450
|
+
self._OwnershipVerification = OwnershipVerification
|
|
43451
|
+
|
|
43452
|
+
@property
|
|
43453
|
+
def OriginalNameServers(self):
|
|
43454
|
+
r"""由 EdgeOne 检测到的站点当前正在使用的 NS 服务器列表。
|
|
43455
|
+
:rtype: list of str
|
|
43456
|
+
"""
|
|
43457
|
+
return self._OriginalNameServers
|
|
43458
|
+
|
|
43459
|
+
@OriginalNameServers.setter
|
|
43460
|
+
def OriginalNameServers(self, OriginalNameServers):
|
|
43461
|
+
self._OriginalNameServers = OriginalNameServers
|
|
43462
|
+
|
|
43463
|
+
@property
|
|
43464
|
+
def NameServers(self):
|
|
43465
|
+
r"""腾讯云 EdgeOne 分配的 NS 服务器列表。需要将当前站点 NS 服务器指向该地址,站点才能生效。
|
|
43466
|
+
:rtype: list of str
|
|
43467
|
+
"""
|
|
43468
|
+
return self._NameServers
|
|
43469
|
+
|
|
43470
|
+
@NameServers.setter
|
|
43471
|
+
def NameServers(self, NameServers):
|
|
43472
|
+
self._NameServers = NameServers
|
|
43473
|
+
|
|
43474
|
+
@property
|
|
43475
|
+
def VanityNameServers(self):
|
|
43476
|
+
r"""用户自定义 NS 服务器域名信息。如果启用了自定义 NS 服务,需要在域名注册厂商内将 NS 指向该地址。
|
|
43477
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.VanityNameServers`
|
|
43478
|
+
"""
|
|
43479
|
+
return self._VanityNameServers
|
|
43480
|
+
|
|
43481
|
+
@VanityNameServers.setter
|
|
43482
|
+
def VanityNameServers(self, VanityNameServers):
|
|
43483
|
+
self._VanityNameServers = VanityNameServers
|
|
43484
|
+
|
|
43485
|
+
@property
|
|
43486
|
+
def VanityNameServersIps(self):
|
|
43487
|
+
r"""用户自定义 NS 服务器对应的 IP 地址信息。
|
|
43488
|
+
:rtype: list of VanityNameServersIps
|
|
43489
|
+
"""
|
|
43490
|
+
return self._VanityNameServersIps
|
|
43491
|
+
|
|
43492
|
+
@VanityNameServersIps.setter
|
|
43493
|
+
def VanityNameServersIps(self, VanityNameServersIps):
|
|
43494
|
+
self._VanityNameServersIps = VanityNameServersIps
|
|
43495
|
+
|
|
43496
|
+
|
|
43497
|
+
def _deserialize(self, params):
|
|
43498
|
+
self._CnameSpeedUp = params.get("CnameSpeedUp")
|
|
43499
|
+
self._IsFake = params.get("IsFake")
|
|
43500
|
+
if params.get("OwnershipVerification") is not None:
|
|
43501
|
+
self._OwnershipVerification = OwnershipVerification()
|
|
43502
|
+
self._OwnershipVerification._deserialize(params.get("OwnershipVerification"))
|
|
43503
|
+
self._OriginalNameServers = params.get("OriginalNameServers")
|
|
43504
|
+
self._NameServers = params.get("NameServers")
|
|
43505
|
+
if params.get("VanityNameServers") is not None:
|
|
43506
|
+
self._VanityNameServers = VanityNameServers()
|
|
43507
|
+
self._VanityNameServers._deserialize(params.get("VanityNameServers"))
|
|
43508
|
+
if params.get("VanityNameServersIps") is not None:
|
|
43509
|
+
self._VanityNameServersIps = []
|
|
43510
|
+
for item in params.get("VanityNameServersIps"):
|
|
43511
|
+
obj = VanityNameServersIps()
|
|
43512
|
+
obj._deserialize(item)
|
|
43513
|
+
self._VanityNameServersIps.append(obj)
|
|
43514
|
+
memeber_set = set(params.keys())
|
|
43515
|
+
for name, value in vars(self).items():
|
|
43516
|
+
property_name = name[1:]
|
|
43517
|
+
if property_name in memeber_set:
|
|
43518
|
+
memeber_set.remove(property_name)
|
|
43519
|
+
if len(memeber_set) > 0:
|
|
43520
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
43521
|
+
|
|
43522
|
+
|
|
43523
|
+
|
|
42090
43524
|
class NextOriginACL(AbstractModel):
|
|
42091
43525
|
r"""当回源 IP 网段发生更新时,该字段会返回下一个版本将要生效的回源 IP 网段,包含与当前生效的回源 IP 网段的对比。
|
|
42092
43526
|
|
|
@@ -49843,6 +51277,64 @@ class S3(AbstractModel):
|
|
|
49843
51277
|
|
|
49844
51278
|
|
|
49845
51279
|
|
|
51280
|
+
class SearchEngineBots(AbstractModel):
|
|
51281
|
+
r"""搜索引擎规则配置。
|
|
51282
|
+
|
|
51283
|
+
"""
|
|
51284
|
+
|
|
51285
|
+
def __init__(self):
|
|
51286
|
+
r"""
|
|
51287
|
+
:param _BaseAction: 来自搜索引擎爬虫的请求的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Disabled:未启用,不启用指定规则;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge;</li><li>Allow:放行(待废弃)。</li>
|
|
51288
|
+
:type BaseAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
51289
|
+
:param _BotManagementActionOverrides: 指定搜索引擎爬虫请求的处置方式。
|
|
51290
|
+
:type BotManagementActionOverrides: list of BotManagementActionOverrides
|
|
51291
|
+
"""
|
|
51292
|
+
self._BaseAction = None
|
|
51293
|
+
self._BotManagementActionOverrides = None
|
|
51294
|
+
|
|
51295
|
+
@property
|
|
51296
|
+
def BaseAction(self):
|
|
51297
|
+
r"""来自搜索引擎爬虫的请求的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Disabled:未启用,不启用指定规则;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge;</li><li>Allow:放行(待废弃)。</li>
|
|
51298
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
51299
|
+
"""
|
|
51300
|
+
return self._BaseAction
|
|
51301
|
+
|
|
51302
|
+
@BaseAction.setter
|
|
51303
|
+
def BaseAction(self, BaseAction):
|
|
51304
|
+
self._BaseAction = BaseAction
|
|
51305
|
+
|
|
51306
|
+
@property
|
|
51307
|
+
def BotManagementActionOverrides(self):
|
|
51308
|
+
r"""指定搜索引擎爬虫请求的处置方式。
|
|
51309
|
+
:rtype: list of BotManagementActionOverrides
|
|
51310
|
+
"""
|
|
51311
|
+
return self._BotManagementActionOverrides
|
|
51312
|
+
|
|
51313
|
+
@BotManagementActionOverrides.setter
|
|
51314
|
+
def BotManagementActionOverrides(self, BotManagementActionOverrides):
|
|
51315
|
+
self._BotManagementActionOverrides = BotManagementActionOverrides
|
|
51316
|
+
|
|
51317
|
+
|
|
51318
|
+
def _deserialize(self, params):
|
|
51319
|
+
if params.get("BaseAction") is not None:
|
|
51320
|
+
self._BaseAction = SecurityAction()
|
|
51321
|
+
self._BaseAction._deserialize(params.get("BaseAction"))
|
|
51322
|
+
if params.get("BotManagementActionOverrides") is not None:
|
|
51323
|
+
self._BotManagementActionOverrides = []
|
|
51324
|
+
for item in params.get("BotManagementActionOverrides"):
|
|
51325
|
+
obj = BotManagementActionOverrides()
|
|
51326
|
+
obj._deserialize(item)
|
|
51327
|
+
self._BotManagementActionOverrides.append(obj)
|
|
51328
|
+
memeber_set = set(params.keys())
|
|
51329
|
+
for name, value in vars(self).items():
|
|
51330
|
+
property_name = name[1:]
|
|
51331
|
+
if property_name in memeber_set:
|
|
51332
|
+
memeber_set.remove(property_name)
|
|
51333
|
+
if len(memeber_set) > 0:
|
|
51334
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
51335
|
+
|
|
51336
|
+
|
|
51337
|
+
|
|
49846
51338
|
class SecEntry(AbstractModel):
|
|
49847
51339
|
r"""安全数据Entry返回值
|
|
49848
51340
|
|
|
@@ -50014,6 +51506,7 @@ class SecurityAction(AbstractModel):
|
|
|
50014
51506
|
<li>Disabled:未启用,不启用指定规则;</li>
|
|
50015
51507
|
<li>Allow:允许访问,但延迟处理请求;</li>
|
|
50016
51508
|
<li>Challenge:挑战,响应挑战内容;</li>
|
|
51509
|
+
<li>Trans:放行,允许请求直接访问站点资源;</li>
|
|
50017
51510
|
<li>BlockIP:待废弃,IP 封禁;</li>
|
|
50018
51511
|
<li>ReturnCustomPage:待废弃,使用指定页面拦截;</li>
|
|
50019
51512
|
<li>JSChallenge:待废弃,JavaScript 挑战;</li>
|
|
@@ -50049,6 +51542,7 @@ class SecurityAction(AbstractModel):
|
|
|
50049
51542
|
<li>Disabled:未启用,不启用指定规则;</li>
|
|
50050
51543
|
<li>Allow:允许访问,但延迟处理请求;</li>
|
|
50051
51544
|
<li>Challenge:挑战,响应挑战内容;</li>
|
|
51545
|
+
<li>Trans:放行,允许请求直接访问站点资源;</li>
|
|
50052
51546
|
<li>BlockIP:待废弃,IP 封禁;</li>
|
|
50053
51547
|
<li>ReturnCustomPage:待废弃,使用指定页面拦截;</li>
|
|
50054
51548
|
<li>JSChallenge:待废弃,JavaScript 挑战;</li>
|
|
@@ -50671,6 +52165,59 @@ class SecurityType(AbstractModel):
|
|
|
50671
52165
|
|
|
50672
52166
|
|
|
50673
52167
|
|
|
52168
|
+
class SecurityWeightedAction(AbstractModel):
|
|
52169
|
+
r"""按权重分配的 SecurityAction。
|
|
52170
|
+
|
|
52171
|
+
"""
|
|
52172
|
+
|
|
52173
|
+
def __init__(self):
|
|
52174
|
+
r"""
|
|
52175
|
+
:param _SecurityAction: Bot 自定义规则的处置方式。取值有:<li>Allow:放行,其中 AllowActionParameters 支持 MinDelayTime 和 MaxDelayTime 配置;</li><li>Deny:拦截,其中 DenyActionParameters 中支持 BlockIp、ReturnCustomPage 和 Stall 配置;</li><li>Monitor:观察;</li><li>Challenge:挑战,其中 ChallengeActionParameters.ChallengeOption 支持 JSChallenge 和 ManagedChallenge;</li><li>Redirect:重定向至URL。</li>
|
|
52176
|
+
:type SecurityAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
52177
|
+
:param _Weight: 当前 SecurityAction 的权重,仅支持 10 ~ 100 且必须为 10 的倍数,其中 Weight 参数全部相加须等于 100。
|
|
52178
|
+
:type Weight: int
|
|
52179
|
+
"""
|
|
52180
|
+
self._SecurityAction = None
|
|
52181
|
+
self._Weight = None
|
|
52182
|
+
|
|
52183
|
+
@property
|
|
52184
|
+
def SecurityAction(self):
|
|
52185
|
+
r"""Bot 自定义规则的处置方式。取值有:<li>Allow:放行,其中 AllowActionParameters 支持 MinDelayTime 和 MaxDelayTime 配置;</li><li>Deny:拦截,其中 DenyActionParameters 中支持 BlockIp、ReturnCustomPage 和 Stall 配置;</li><li>Monitor:观察;</li><li>Challenge:挑战,其中 ChallengeActionParameters.ChallengeOption 支持 JSChallenge 和 ManagedChallenge;</li><li>Redirect:重定向至URL。</li>
|
|
52186
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
52187
|
+
"""
|
|
52188
|
+
return self._SecurityAction
|
|
52189
|
+
|
|
52190
|
+
@SecurityAction.setter
|
|
52191
|
+
def SecurityAction(self, SecurityAction):
|
|
52192
|
+
self._SecurityAction = SecurityAction
|
|
52193
|
+
|
|
52194
|
+
@property
|
|
52195
|
+
def Weight(self):
|
|
52196
|
+
r"""当前 SecurityAction 的权重,仅支持 10 ~ 100 且必须为 10 的倍数,其中 Weight 参数全部相加须等于 100。
|
|
52197
|
+
:rtype: int
|
|
52198
|
+
"""
|
|
52199
|
+
return self._Weight
|
|
52200
|
+
|
|
52201
|
+
@Weight.setter
|
|
52202
|
+
def Weight(self, Weight):
|
|
52203
|
+
self._Weight = Weight
|
|
52204
|
+
|
|
52205
|
+
|
|
52206
|
+
def _deserialize(self, params):
|
|
52207
|
+
if params.get("SecurityAction") is not None:
|
|
52208
|
+
self._SecurityAction = SecurityAction()
|
|
52209
|
+
self._SecurityAction._deserialize(params.get("SecurityAction"))
|
|
52210
|
+
self._Weight = params.get("Weight")
|
|
52211
|
+
memeber_set = set(params.keys())
|
|
52212
|
+
for name, value in vars(self).items():
|
|
52213
|
+
property_name = name[1:]
|
|
52214
|
+
if property_name in memeber_set:
|
|
52215
|
+
memeber_set.remove(property_name)
|
|
52216
|
+
if len(memeber_set) > 0:
|
|
52217
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
52218
|
+
|
|
52219
|
+
|
|
52220
|
+
|
|
50674
52221
|
class ServerCertInfo(AbstractModel):
|
|
50675
52222
|
r"""https 服务端证书配置
|
|
50676
52223
|
|
|
@@ -50805,6 +52352,93 @@ class ServerCertInfo(AbstractModel):
|
|
|
50805
52352
|
|
|
50806
52353
|
|
|
50807
52354
|
|
|
52355
|
+
class SessionRateControl(AbstractModel):
|
|
52356
|
+
r"""会话速率和周期特征校验配置。
|
|
52357
|
+
|
|
52358
|
+
"""
|
|
52359
|
+
|
|
52360
|
+
def __init__(self):
|
|
52361
|
+
r"""
|
|
52362
|
+
:param _Enabled: 会话速率和周期特征校验配置是否开启。取值有:<li>on:启用</li><li>off:关闭</li>
|
|
52363
|
+
:type Enabled: str
|
|
52364
|
+
:param _HighRateSessionAction: 会话速率和周期特征校验高风险的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
52365
|
+
:type HighRateSessionAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
52366
|
+
:param _MidRateSessionAction: 会话速率和周期特征校验中风险的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
52367
|
+
:type MidRateSessionAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
52368
|
+
:param _LowRateSessionAction: 会话速率和周期特征校验低风险的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
52369
|
+
:type LowRateSessionAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
52370
|
+
"""
|
|
52371
|
+
self._Enabled = None
|
|
52372
|
+
self._HighRateSessionAction = None
|
|
52373
|
+
self._MidRateSessionAction = None
|
|
52374
|
+
self._LowRateSessionAction = None
|
|
52375
|
+
|
|
52376
|
+
@property
|
|
52377
|
+
def Enabled(self):
|
|
52378
|
+
r"""会话速率和周期特征校验配置是否开启。取值有:<li>on:启用</li><li>off:关闭</li>
|
|
52379
|
+
:rtype: str
|
|
52380
|
+
"""
|
|
52381
|
+
return self._Enabled
|
|
52382
|
+
|
|
52383
|
+
@Enabled.setter
|
|
52384
|
+
def Enabled(self, Enabled):
|
|
52385
|
+
self._Enabled = Enabled
|
|
52386
|
+
|
|
52387
|
+
@property
|
|
52388
|
+
def HighRateSessionAction(self):
|
|
52389
|
+
r"""会话速率和周期特征校验高风险的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
52390
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
52391
|
+
"""
|
|
52392
|
+
return self._HighRateSessionAction
|
|
52393
|
+
|
|
52394
|
+
@HighRateSessionAction.setter
|
|
52395
|
+
def HighRateSessionAction(self, HighRateSessionAction):
|
|
52396
|
+
self._HighRateSessionAction = HighRateSessionAction
|
|
52397
|
+
|
|
52398
|
+
@property
|
|
52399
|
+
def MidRateSessionAction(self):
|
|
52400
|
+
r"""会话速率和周期特征校验中风险的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
52401
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
52402
|
+
"""
|
|
52403
|
+
return self._MidRateSessionAction
|
|
52404
|
+
|
|
52405
|
+
@MidRateSessionAction.setter
|
|
52406
|
+
def MidRateSessionAction(self, MidRateSessionAction):
|
|
52407
|
+
self._MidRateSessionAction = MidRateSessionAction
|
|
52408
|
+
|
|
52409
|
+
@property
|
|
52410
|
+
def LowRateSessionAction(self):
|
|
52411
|
+
r"""会话速率和周期特征校验低风险的执行动作。 SecurityAction 的 Name 取值支持:<li>Deny:拦截,其中 DenyActionParameters 中支持 Stall 配置;</li><li>Monitor:观察;</li><li>Allow:等待后响应,其中 AllowActionParameters 需要 MinDelayTime 和 MaxDelayTime 配置。</li>
|
|
52412
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
52413
|
+
"""
|
|
52414
|
+
return self._LowRateSessionAction
|
|
52415
|
+
|
|
52416
|
+
@LowRateSessionAction.setter
|
|
52417
|
+
def LowRateSessionAction(self, LowRateSessionAction):
|
|
52418
|
+
self._LowRateSessionAction = LowRateSessionAction
|
|
52419
|
+
|
|
52420
|
+
|
|
52421
|
+
def _deserialize(self, params):
|
|
52422
|
+
self._Enabled = params.get("Enabled")
|
|
52423
|
+
if params.get("HighRateSessionAction") is not None:
|
|
52424
|
+
self._HighRateSessionAction = SecurityAction()
|
|
52425
|
+
self._HighRateSessionAction._deserialize(params.get("HighRateSessionAction"))
|
|
52426
|
+
if params.get("MidRateSessionAction") is not None:
|
|
52427
|
+
self._MidRateSessionAction = SecurityAction()
|
|
52428
|
+
self._MidRateSessionAction._deserialize(params.get("MidRateSessionAction"))
|
|
52429
|
+
if params.get("LowRateSessionAction") is not None:
|
|
52430
|
+
self._LowRateSessionAction = SecurityAction()
|
|
52431
|
+
self._LowRateSessionAction._deserialize(params.get("LowRateSessionAction"))
|
|
52432
|
+
memeber_set = set(params.keys())
|
|
52433
|
+
for name, value in vars(self).items():
|
|
52434
|
+
property_name = name[1:]
|
|
52435
|
+
if property_name in memeber_set:
|
|
52436
|
+
memeber_set.remove(property_name)
|
|
52437
|
+
if len(memeber_set) > 0:
|
|
52438
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
52439
|
+
|
|
52440
|
+
|
|
52441
|
+
|
|
50808
52442
|
class SetContentIdentifierParameters(AbstractModel):
|
|
50809
52443
|
r"""内容标识配置参数。
|
|
50810
52444
|
|
|
@@ -51331,6 +52965,64 @@ class SmartRoutingParameters(AbstractModel):
|
|
|
51331
52965
|
|
|
51332
52966
|
|
|
51333
52967
|
|
|
52968
|
+
class SourceIDC(AbstractModel):
|
|
52969
|
+
r"""IDC 规则配置的具体内容。
|
|
52970
|
+
|
|
52971
|
+
"""
|
|
52972
|
+
|
|
52973
|
+
def __init__(self):
|
|
52974
|
+
r"""
|
|
52975
|
+
:param _BaseAction: 来自指定 IDC 请求的处置方式。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Disabled:未启用,不启用指定规则;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge;</li><li>Allow:放行(待废弃)。</li>
|
|
52976
|
+
:type BaseAction: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
52977
|
+
:param _BotManagementActionOverrides: 指定 IDC 请求的处置方式。
|
|
52978
|
+
:type BotManagementActionOverrides: list of BotManagementActionOverrides
|
|
52979
|
+
"""
|
|
52980
|
+
self._BaseAction = None
|
|
52981
|
+
self._BotManagementActionOverrides = None
|
|
52982
|
+
|
|
52983
|
+
@property
|
|
52984
|
+
def BaseAction(self):
|
|
52985
|
+
r"""来自指定 IDC 请求的处置方式。 SecurityAction 的 Name 取值支持:<li>Deny:拦截;</li><li>Monitor:观察;</li><li>Disabled:未启用,不启用指定规则;</li><li>Challenge:挑战,其中 ChallengeActionParameters 中的 ChallengeOption 支持 JSChallenge 和 ManagedChallenge;</li><li>Allow:放行(待废弃)。</li>
|
|
52986
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.SecurityAction`
|
|
52987
|
+
"""
|
|
52988
|
+
return self._BaseAction
|
|
52989
|
+
|
|
52990
|
+
@BaseAction.setter
|
|
52991
|
+
def BaseAction(self, BaseAction):
|
|
52992
|
+
self._BaseAction = BaseAction
|
|
52993
|
+
|
|
52994
|
+
@property
|
|
52995
|
+
def BotManagementActionOverrides(self):
|
|
52996
|
+
r"""指定 IDC 请求的处置方式。
|
|
52997
|
+
:rtype: list of BotManagementActionOverrides
|
|
52998
|
+
"""
|
|
52999
|
+
return self._BotManagementActionOverrides
|
|
53000
|
+
|
|
53001
|
+
@BotManagementActionOverrides.setter
|
|
53002
|
+
def BotManagementActionOverrides(self, BotManagementActionOverrides):
|
|
53003
|
+
self._BotManagementActionOverrides = BotManagementActionOverrides
|
|
53004
|
+
|
|
53005
|
+
|
|
53006
|
+
def _deserialize(self, params):
|
|
53007
|
+
if params.get("BaseAction") is not None:
|
|
53008
|
+
self._BaseAction = SecurityAction()
|
|
53009
|
+
self._BaseAction._deserialize(params.get("BaseAction"))
|
|
53010
|
+
if params.get("BotManagementActionOverrides") is not None:
|
|
53011
|
+
self._BotManagementActionOverrides = []
|
|
53012
|
+
for item in params.get("BotManagementActionOverrides"):
|
|
53013
|
+
obj = BotManagementActionOverrides()
|
|
53014
|
+
obj._deserialize(item)
|
|
53015
|
+
self._BotManagementActionOverrides.append(obj)
|
|
53016
|
+
memeber_set = set(params.keys())
|
|
53017
|
+
for name, value in vars(self).items():
|
|
53018
|
+
property_name = name[1:]
|
|
53019
|
+
if property_name in memeber_set:
|
|
53020
|
+
memeber_set.remove(property_name)
|
|
53021
|
+
if len(memeber_set) > 0:
|
|
53022
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
53023
|
+
|
|
53024
|
+
|
|
53025
|
+
|
|
51334
53026
|
class StandardDebug(AbstractModel):
|
|
51335
53027
|
r"""支持标准debug结构体
|
|
51336
53028
|
|
|
@@ -54144,7 +55836,7 @@ class WebSocketParameters(AbstractModel):
|
|
|
54144
55836
|
|
|
54145
55837
|
|
|
54146
55838
|
class Zone(AbstractModel):
|
|
54147
|
-
r"""
|
|
55839
|
+
r"""站点详情。
|
|
54148
55840
|
|
|
54149
55841
|
"""
|
|
54150
55842
|
|
|
@@ -54154,10 +55846,34 @@ class Zone(AbstractModel):
|
|
|
54154
55846
|
:type ZoneId: str
|
|
54155
55847
|
:param _ZoneName: 站点名称。
|
|
54156
55848
|
:type ZoneName: str
|
|
54157
|
-
:param
|
|
54158
|
-
:type
|
|
54159
|
-
:param
|
|
54160
|
-
|
|
55849
|
+
:param _AliasZoneName: 同名站点标识。允许输入数字、英文、"." 、"-" 和 "_" 组合,长度 200 个字符以内。
|
|
55850
|
+
:type AliasZoneName: str
|
|
55851
|
+
:param _Area: 站点加速区域,取值有:
|
|
55852
|
+
<li> global:全球可用区;</li>
|
|
55853
|
+
<li> mainland:中国大陆可用区;</li>
|
|
55854
|
+
<li> overseas:全球可用区(不含中国大陆)。</li>
|
|
55855
|
+
:type Area: str
|
|
55856
|
+
:param _Type: 站点接入类型,取值有:
|
|
55857
|
+
<li> full:NS 接入类型;</li>
|
|
55858
|
+
<li> partial:CNAME 接入类型;</li>
|
|
55859
|
+
<li> noDomainAccess:无域名接入类型;</li>
|
|
55860
|
+
<li>dnsPodAccess:DNSPod 托管类型,该类型要求您的域名已托管在腾讯云 DNSPod;</li>
|
|
55861
|
+
<li> pages:Pages 类型。</li>
|
|
55862
|
+
:type Type: str
|
|
55863
|
+
:param _Tags: 站点关联的标签。
|
|
55864
|
+
:type Tags: list of Tag
|
|
55865
|
+
:param _Resources: 计费资源列表。
|
|
55866
|
+
:type Resources: list of Resource
|
|
55867
|
+
:param _NSDetail: NS 类型站点详情。仅当 Type = full 时返回值。
|
|
55868
|
+
:type NSDetail: :class:`tencentcloud.teo.v20220901.models.NSDetail`
|
|
55869
|
+
:param _CNAMEDetail: CNAME 类型站点详情。仅当 Type = partial 时返回值。
|
|
55870
|
+
:type CNAMEDetail: :class:`tencentcloud.teo.v20220901.models.CNAMEDetail`
|
|
55871
|
+
:param _DNSPodDetail: DNSPod 托管类型站点详情。仅当 Type = dnsPodAccess 时返回值。
|
|
55872
|
+
:type DNSPodDetail: :class:`tencentcloud.teo.v20220901.models.DNSPodDetail`
|
|
55873
|
+
:param _CreatedOn: 站点创建时间。
|
|
55874
|
+
:type CreatedOn: str
|
|
55875
|
+
:param _ModifiedOn: 站点修改时间。
|
|
55876
|
+
:type ModifiedOn: str
|
|
54161
55877
|
:param _Status: 站点状态,取值有:
|
|
54162
55878
|
<li> active:NS 已切换; </li>
|
|
54163
55879
|
<li> pending:NS 未切换;</li>
|
|
@@ -54165,78 +55881,66 @@ class Zone(AbstractModel):
|
|
|
54165
55881
|
<li> deactivated:被封禁。 </li>
|
|
54166
55882
|
<li> initializing:待绑定套餐。 </li>
|
|
54167
55883
|
:type Status: str
|
|
54168
|
-
:param _Type: 站点接入方式,取值有:
|
|
54169
|
-
<li> full:NS 接入;</li>
|
|
54170
|
-
<li> partial:CNAME 接入;</li>
|
|
54171
|
-
<li> noDomainAccess:无域名接入;</li>
|
|
54172
|
-
:type Type: str
|
|
54173
|
-
:param _Paused: 站点是否关闭。
|
|
54174
|
-
:type Paused: bool
|
|
54175
|
-
:param _CnameSpeedUp: 是否开启 CNAME 加速,取值有:
|
|
54176
|
-
<li> enabled:开启;</li>
|
|
54177
|
-
<li> disabled:关闭。</li>
|
|
54178
|
-
:type CnameSpeedUp: str
|
|
54179
55884
|
:param _CnameStatus: CNAME 接入状态,取值有:
|
|
54180
55885
|
<li> finished:站点已验证;</li>
|
|
54181
55886
|
<li> pending:站点验证中。</li>
|
|
54182
55887
|
:type CnameStatus: str
|
|
54183
|
-
:param _Tags: 资源标签列表。
|
|
54184
|
-
:type Tags: list of Tag
|
|
54185
|
-
:param _Resources: 计费资源列表。
|
|
54186
|
-
:type Resources: list of Resource
|
|
54187
|
-
:param _CreatedOn: 站点创建时间。
|
|
54188
|
-
:type CreatedOn: str
|
|
54189
|
-
:param _ModifiedOn: 站点修改时间。
|
|
54190
|
-
:type ModifiedOn: str
|
|
54191
|
-
:param _Area: 站点接入地域,取值有:
|
|
54192
|
-
<li> global:全球;</li>
|
|
54193
|
-
<li> mainland:中国大陆;</li>
|
|
54194
|
-
<li> overseas:境外区域。</li>
|
|
54195
|
-
:type Area: str
|
|
54196
|
-
:param _VanityNameServers: 用户自定义 NS 信息。
|
|
54197
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
54198
|
-
:type VanityNameServers: :class:`tencentcloud.teo.v20220901.models.VanityNameServers`
|
|
54199
|
-
:param _VanityNameServersIps: 用户自定义 NS IP 信息。
|
|
54200
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
54201
|
-
:type VanityNameServersIps: list of VanityNameServersIps
|
|
54202
55888
|
:param _ActiveStatus: 展示状态,取值有:
|
|
54203
55889
|
<li> active:已启用;</li>
|
|
54204
55890
|
<li> inactive:未生效;</li>
|
|
54205
55891
|
<li> paused:已停用。</li>
|
|
54206
55892
|
:type ActiveStatus: str
|
|
54207
|
-
:param
|
|
54208
|
-
:type
|
|
54209
|
-
:param
|
|
55893
|
+
:param _LockStatus: 锁定状态,取值有:<li> enable:正常,允许进行修改操作;</li><li> disable:锁定中,不允许进行修改操作;</li><li> plan_migrate:套餐迁移中,不允许进行修改操作。</li>
|
|
55894
|
+
:type LockStatus: str
|
|
55895
|
+
:param _Paused: 站点是否关闭。
|
|
55896
|
+
:type Paused: bool
|
|
55897
|
+
:param _IsFake: 是否伪站点(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段),取值有:
|
|
54210
55898
|
<li> 0:非伪站点;</li>
|
|
54211
55899
|
<li> 1:伪站点。</li>
|
|
55900
|
+
|
|
54212
55901
|
:type IsFake: int
|
|
54213
|
-
:param
|
|
54214
|
-
|
|
54215
|
-
|
|
55902
|
+
:param _CnameSpeedUp: 是否开启 CNAME 加速(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段),取值有:
|
|
55903
|
+
<li> enabled:开启;</li>
|
|
55904
|
+
<li> disabled:关闭。</li>
|
|
55905
|
+
:type CnameSpeedUp: str
|
|
55906
|
+
:param _OwnershipVerification: 归属权验证信息。(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段)
|
|
54216
55907
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
54217
55908
|
:type OwnershipVerification: :class:`tencentcloud.teo.v20220901.models.OwnershipVerification`
|
|
55909
|
+
:param _OriginalNameServers: 站点当前使用的 NS 列表。(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段)
|
|
55910
|
+
:type OriginalNameServers: list of str
|
|
55911
|
+
:param _NameServers: 腾讯云分配的 NS 列表。(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段)
|
|
55912
|
+
:type NameServers: list of str
|
|
55913
|
+
:param _VanityNameServers: 用户自定义 NS 信息。(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段)
|
|
55914
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
55915
|
+
:type VanityNameServers: :class:`tencentcloud.teo.v20220901.models.VanityNameServers`
|
|
55916
|
+
:param _VanityNameServersIps: 用户自定义 NS IP 信息。(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段)
|
|
55917
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
55918
|
+
:type VanityNameServersIps: list of VanityNameServersIps
|
|
54218
55919
|
"""
|
|
54219
55920
|
self._ZoneId = None
|
|
54220
55921
|
self._ZoneName = None
|
|
54221
|
-
self.
|
|
54222
|
-
self.
|
|
54223
|
-
self._Status = None
|
|
55922
|
+
self._AliasZoneName = None
|
|
55923
|
+
self._Area = None
|
|
54224
55924
|
self._Type = None
|
|
54225
|
-
self._Paused = None
|
|
54226
|
-
self._CnameSpeedUp = None
|
|
54227
|
-
self._CnameStatus = None
|
|
54228
55925
|
self._Tags = None
|
|
54229
55926
|
self._Resources = None
|
|
55927
|
+
self._NSDetail = None
|
|
55928
|
+
self._CNAMEDetail = None
|
|
55929
|
+
self._DNSPodDetail = None
|
|
54230
55930
|
self._CreatedOn = None
|
|
54231
55931
|
self._ModifiedOn = None
|
|
54232
|
-
self.
|
|
54233
|
-
self.
|
|
54234
|
-
self._VanityNameServersIps = None
|
|
55932
|
+
self._Status = None
|
|
55933
|
+
self._CnameStatus = None
|
|
54235
55934
|
self._ActiveStatus = None
|
|
54236
|
-
self._AliasZoneName = None
|
|
54237
|
-
self._IsFake = None
|
|
54238
55935
|
self._LockStatus = None
|
|
55936
|
+
self._Paused = None
|
|
55937
|
+
self._IsFake = None
|
|
55938
|
+
self._CnameSpeedUp = None
|
|
54239
55939
|
self._OwnershipVerification = None
|
|
55940
|
+
self._OriginalNameServers = None
|
|
55941
|
+
self._NameServers = None
|
|
55942
|
+
self._VanityNameServers = None
|
|
55943
|
+
self._VanityNameServersIps = None
|
|
54240
55944
|
|
|
54241
55945
|
@property
|
|
54242
55946
|
def ZoneId(self):
|
|
@@ -54261,49 +55965,38 @@ class Zone(AbstractModel):
|
|
|
54261
55965
|
self._ZoneName = ZoneName
|
|
54262
55966
|
|
|
54263
55967
|
@property
|
|
54264
|
-
def
|
|
54265
|
-
r"""
|
|
54266
|
-
:rtype:
|
|
54267
|
-
"""
|
|
54268
|
-
return self._OriginalNameServers
|
|
54269
|
-
|
|
54270
|
-
@OriginalNameServers.setter
|
|
54271
|
-
def OriginalNameServers(self, OriginalNameServers):
|
|
54272
|
-
self._OriginalNameServers = OriginalNameServers
|
|
54273
|
-
|
|
54274
|
-
@property
|
|
54275
|
-
def NameServers(self):
|
|
54276
|
-
r"""腾讯云分配的 NS 列表。
|
|
54277
|
-
:rtype: list of str
|
|
55968
|
+
def AliasZoneName(self):
|
|
55969
|
+
r"""同名站点标识。允许输入数字、英文、"." 、"-" 和 "_" 组合,长度 200 个字符以内。
|
|
55970
|
+
:rtype: str
|
|
54278
55971
|
"""
|
|
54279
|
-
return self.
|
|
55972
|
+
return self._AliasZoneName
|
|
54280
55973
|
|
|
54281
|
-
@
|
|
54282
|
-
def
|
|
54283
|
-
self.
|
|
55974
|
+
@AliasZoneName.setter
|
|
55975
|
+
def AliasZoneName(self, AliasZoneName):
|
|
55976
|
+
self._AliasZoneName = AliasZoneName
|
|
54284
55977
|
|
|
54285
55978
|
@property
|
|
54286
|
-
def
|
|
54287
|
-
r"""
|
|
54288
|
-
<li>
|
|
54289
|
-
<li>
|
|
54290
|
-
<li>
|
|
54291
|
-
<li> deactivated:被封禁。 </li>
|
|
54292
|
-
<li> initializing:待绑定套餐。 </li>
|
|
55979
|
+
def Area(self):
|
|
55980
|
+
r"""站点加速区域,取值有:
|
|
55981
|
+
<li> global:全球可用区;</li>
|
|
55982
|
+
<li> mainland:中国大陆可用区;</li>
|
|
55983
|
+
<li> overseas:全球可用区(不含中国大陆)。</li>
|
|
54293
55984
|
:rtype: str
|
|
54294
55985
|
"""
|
|
54295
|
-
return self.
|
|
55986
|
+
return self._Area
|
|
54296
55987
|
|
|
54297
|
-
@
|
|
54298
|
-
def
|
|
54299
|
-
self.
|
|
55988
|
+
@Area.setter
|
|
55989
|
+
def Area(self, Area):
|
|
55990
|
+
self._Area = Area
|
|
54300
55991
|
|
|
54301
55992
|
@property
|
|
54302
55993
|
def Type(self):
|
|
54303
|
-
r"""
|
|
54304
|
-
<li> full:NS
|
|
54305
|
-
<li> partial:CNAME
|
|
54306
|
-
<li> noDomainAccess
|
|
55994
|
+
r"""站点接入类型,取值有:
|
|
55995
|
+
<li> full:NS 接入类型;</li>
|
|
55996
|
+
<li> partial:CNAME 接入类型;</li>
|
|
55997
|
+
<li> noDomainAccess:无域名接入类型;</li>
|
|
55998
|
+
<li>dnsPodAccess:DNSPod 托管类型,该类型要求您的域名已托管在腾讯云 DNSPod;</li>
|
|
55999
|
+
<li> pages:Pages 类型。</li>
|
|
54307
56000
|
:rtype: str
|
|
54308
56001
|
"""
|
|
54309
56002
|
return self._Type
|
|
@@ -54312,46 +56005,9 @@ class Zone(AbstractModel):
|
|
|
54312
56005
|
def Type(self, Type):
|
|
54313
56006
|
self._Type = Type
|
|
54314
56007
|
|
|
54315
|
-
@property
|
|
54316
|
-
def Paused(self):
|
|
54317
|
-
r"""站点是否关闭。
|
|
54318
|
-
:rtype: bool
|
|
54319
|
-
"""
|
|
54320
|
-
return self._Paused
|
|
54321
|
-
|
|
54322
|
-
@Paused.setter
|
|
54323
|
-
def Paused(self, Paused):
|
|
54324
|
-
self._Paused = Paused
|
|
54325
|
-
|
|
54326
|
-
@property
|
|
54327
|
-
def CnameSpeedUp(self):
|
|
54328
|
-
r"""是否开启 CNAME 加速,取值有:
|
|
54329
|
-
<li> enabled:开启;</li>
|
|
54330
|
-
<li> disabled:关闭。</li>
|
|
54331
|
-
:rtype: str
|
|
54332
|
-
"""
|
|
54333
|
-
return self._CnameSpeedUp
|
|
54334
|
-
|
|
54335
|
-
@CnameSpeedUp.setter
|
|
54336
|
-
def CnameSpeedUp(self, CnameSpeedUp):
|
|
54337
|
-
self._CnameSpeedUp = CnameSpeedUp
|
|
54338
|
-
|
|
54339
|
-
@property
|
|
54340
|
-
def CnameStatus(self):
|
|
54341
|
-
r"""CNAME 接入状态,取值有:
|
|
54342
|
-
<li> finished:站点已验证;</li>
|
|
54343
|
-
<li> pending:站点验证中。</li>
|
|
54344
|
-
:rtype: str
|
|
54345
|
-
"""
|
|
54346
|
-
return self._CnameStatus
|
|
54347
|
-
|
|
54348
|
-
@CnameStatus.setter
|
|
54349
|
-
def CnameStatus(self, CnameStatus):
|
|
54350
|
-
self._CnameStatus = CnameStatus
|
|
54351
|
-
|
|
54352
56008
|
@property
|
|
54353
56009
|
def Tags(self):
|
|
54354
|
-
r"""
|
|
56010
|
+
r"""站点关联的标签。
|
|
54355
56011
|
:rtype: list of Tag
|
|
54356
56012
|
"""
|
|
54357
56013
|
return self._Tags
|
|
@@ -54371,6 +56027,39 @@ class Zone(AbstractModel):
|
|
|
54371
56027
|
def Resources(self, Resources):
|
|
54372
56028
|
self._Resources = Resources
|
|
54373
56029
|
|
|
56030
|
+
@property
|
|
56031
|
+
def NSDetail(self):
|
|
56032
|
+
r"""NS 类型站点详情。仅当 Type = full 时返回值。
|
|
56033
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.NSDetail`
|
|
56034
|
+
"""
|
|
56035
|
+
return self._NSDetail
|
|
56036
|
+
|
|
56037
|
+
@NSDetail.setter
|
|
56038
|
+
def NSDetail(self, NSDetail):
|
|
56039
|
+
self._NSDetail = NSDetail
|
|
56040
|
+
|
|
56041
|
+
@property
|
|
56042
|
+
def CNAMEDetail(self):
|
|
56043
|
+
r"""CNAME 类型站点详情。仅当 Type = partial 时返回值。
|
|
56044
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.CNAMEDetail`
|
|
56045
|
+
"""
|
|
56046
|
+
return self._CNAMEDetail
|
|
56047
|
+
|
|
56048
|
+
@CNAMEDetail.setter
|
|
56049
|
+
def CNAMEDetail(self, CNAMEDetail):
|
|
56050
|
+
self._CNAMEDetail = CNAMEDetail
|
|
56051
|
+
|
|
56052
|
+
@property
|
|
56053
|
+
def DNSPodDetail(self):
|
|
56054
|
+
r"""DNSPod 托管类型站点详情。仅当 Type = dnsPodAccess 时返回值。
|
|
56055
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.DNSPodDetail`
|
|
56056
|
+
"""
|
|
56057
|
+
return self._DNSPodDetail
|
|
56058
|
+
|
|
56059
|
+
@DNSPodDetail.setter
|
|
56060
|
+
def DNSPodDetail(self, DNSPodDetail):
|
|
56061
|
+
self._DNSPodDetail = DNSPodDetail
|
|
56062
|
+
|
|
54374
56063
|
@property
|
|
54375
56064
|
def CreatedOn(self):
|
|
54376
56065
|
r"""站点创建时间。
|
|
@@ -54394,42 +56083,33 @@ class Zone(AbstractModel):
|
|
|
54394
56083
|
self._ModifiedOn = ModifiedOn
|
|
54395
56084
|
|
|
54396
56085
|
@property
|
|
54397
|
-
def
|
|
54398
|
-
r"""
|
|
54399
|
-
<li>
|
|
54400
|
-
<li>
|
|
54401
|
-
<li>
|
|
56086
|
+
def Status(self):
|
|
56087
|
+
r"""站点状态,取值有:
|
|
56088
|
+
<li> active:NS 已切换; </li>
|
|
56089
|
+
<li> pending:NS 未切换;</li>
|
|
56090
|
+
<li> moved:NS 已切走;</li>
|
|
56091
|
+
<li> deactivated:被封禁。 </li>
|
|
56092
|
+
<li> initializing:待绑定套餐。 </li>
|
|
54402
56093
|
:rtype: str
|
|
54403
56094
|
"""
|
|
54404
|
-
return self.
|
|
54405
|
-
|
|
54406
|
-
@Area.setter
|
|
54407
|
-
def Area(self, Area):
|
|
54408
|
-
self._Area = Area
|
|
54409
|
-
|
|
54410
|
-
@property
|
|
54411
|
-
def VanityNameServers(self):
|
|
54412
|
-
r"""用户自定义 NS 信息。
|
|
54413
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
54414
|
-
:rtype: :class:`tencentcloud.teo.v20220901.models.VanityNameServers`
|
|
54415
|
-
"""
|
|
54416
|
-
return self._VanityNameServers
|
|
56095
|
+
return self._Status
|
|
54417
56096
|
|
|
54418
|
-
@
|
|
54419
|
-
def
|
|
54420
|
-
self.
|
|
56097
|
+
@Status.setter
|
|
56098
|
+
def Status(self, Status):
|
|
56099
|
+
self._Status = Status
|
|
54421
56100
|
|
|
54422
56101
|
@property
|
|
54423
|
-
def
|
|
54424
|
-
r"""
|
|
54425
|
-
|
|
54426
|
-
|
|
56102
|
+
def CnameStatus(self):
|
|
56103
|
+
r"""CNAME 接入状态,取值有:
|
|
56104
|
+
<li> finished:站点已验证;</li>
|
|
56105
|
+
<li> pending:站点验证中。</li>
|
|
56106
|
+
:rtype: str
|
|
54427
56107
|
"""
|
|
54428
|
-
return self.
|
|
56108
|
+
return self._CnameStatus
|
|
54429
56109
|
|
|
54430
|
-
@
|
|
54431
|
-
def
|
|
54432
|
-
self.
|
|
56110
|
+
@CnameStatus.setter
|
|
56111
|
+
def CnameStatus(self, CnameStatus):
|
|
56112
|
+
self._CnameStatus = CnameStatus
|
|
54433
56113
|
|
|
54434
56114
|
@property
|
|
54435
56115
|
def ActiveStatus(self):
|
|
@@ -54446,21 +56126,33 @@ class Zone(AbstractModel):
|
|
|
54446
56126
|
self._ActiveStatus = ActiveStatus
|
|
54447
56127
|
|
|
54448
56128
|
@property
|
|
54449
|
-
def
|
|
54450
|
-
r"""
|
|
56129
|
+
def LockStatus(self):
|
|
56130
|
+
r"""锁定状态,取值有:<li> enable:正常,允许进行修改操作;</li><li> disable:锁定中,不允许进行修改操作;</li><li> plan_migrate:套餐迁移中,不允许进行修改操作。</li>
|
|
54451
56131
|
:rtype: str
|
|
54452
56132
|
"""
|
|
54453
|
-
return self.
|
|
56133
|
+
return self._LockStatus
|
|
54454
56134
|
|
|
54455
|
-
@
|
|
54456
|
-
def
|
|
54457
|
-
self.
|
|
56135
|
+
@LockStatus.setter
|
|
56136
|
+
def LockStatus(self, LockStatus):
|
|
56137
|
+
self._LockStatus = LockStatus
|
|
56138
|
+
|
|
56139
|
+
@property
|
|
56140
|
+
def Paused(self):
|
|
56141
|
+
r"""站点是否关闭。
|
|
56142
|
+
:rtype: bool
|
|
56143
|
+
"""
|
|
56144
|
+
return self._Paused
|
|
56145
|
+
|
|
56146
|
+
@Paused.setter
|
|
56147
|
+
def Paused(self, Paused):
|
|
56148
|
+
self._Paused = Paused
|
|
54458
56149
|
|
|
54459
56150
|
@property
|
|
54460
56151
|
def IsFake(self):
|
|
54461
|
-
r"""
|
|
56152
|
+
r"""是否伪站点(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段),取值有:
|
|
54462
56153
|
<li> 0:非伪站点;</li>
|
|
54463
56154
|
<li> 1:伪站点。</li>
|
|
56155
|
+
|
|
54464
56156
|
:rtype: int
|
|
54465
56157
|
"""
|
|
54466
56158
|
return self._IsFake
|
|
@@ -54470,19 +56162,21 @@ class Zone(AbstractModel):
|
|
|
54470
56162
|
self._IsFake = IsFake
|
|
54471
56163
|
|
|
54472
56164
|
@property
|
|
54473
|
-
def
|
|
54474
|
-
r"""
|
|
56165
|
+
def CnameSpeedUp(self):
|
|
56166
|
+
r"""是否开启 CNAME 加速(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段),取值有:
|
|
56167
|
+
<li> enabled:开启;</li>
|
|
56168
|
+
<li> disabled:关闭。</li>
|
|
54475
56169
|
:rtype: str
|
|
54476
56170
|
"""
|
|
54477
|
-
return self.
|
|
56171
|
+
return self._CnameSpeedUp
|
|
54478
56172
|
|
|
54479
|
-
@
|
|
54480
|
-
def
|
|
54481
|
-
self.
|
|
56173
|
+
@CnameSpeedUp.setter
|
|
56174
|
+
def CnameSpeedUp(self, CnameSpeedUp):
|
|
56175
|
+
self._CnameSpeedUp = CnameSpeedUp
|
|
54482
56176
|
|
|
54483
56177
|
@property
|
|
54484
56178
|
def OwnershipVerification(self):
|
|
54485
|
-
r"""
|
|
56179
|
+
r"""归属权验证信息。(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段)
|
|
54486
56180
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
54487
56181
|
:rtype: :class:`tencentcloud.teo.v20220901.models.OwnershipVerification`
|
|
54488
56182
|
"""
|
|
@@ -54492,17 +56186,59 @@ class Zone(AbstractModel):
|
|
|
54492
56186
|
def OwnershipVerification(self, OwnershipVerification):
|
|
54493
56187
|
self._OwnershipVerification = OwnershipVerification
|
|
54494
56188
|
|
|
56189
|
+
@property
|
|
56190
|
+
def OriginalNameServers(self):
|
|
56191
|
+
r"""站点当前使用的 NS 列表。(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段)
|
|
56192
|
+
:rtype: list of str
|
|
56193
|
+
"""
|
|
56194
|
+
return self._OriginalNameServers
|
|
56195
|
+
|
|
56196
|
+
@OriginalNameServers.setter
|
|
56197
|
+
def OriginalNameServers(self, OriginalNameServers):
|
|
56198
|
+
self._OriginalNameServers = OriginalNameServers
|
|
56199
|
+
|
|
56200
|
+
@property
|
|
56201
|
+
def NameServers(self):
|
|
56202
|
+
r"""腾讯云分配的 NS 列表。(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段)
|
|
56203
|
+
:rtype: list of str
|
|
56204
|
+
"""
|
|
56205
|
+
return self._NameServers
|
|
56206
|
+
|
|
56207
|
+
@NameServers.setter
|
|
56208
|
+
def NameServers(self, NameServers):
|
|
56209
|
+
self._NameServers = NameServers
|
|
56210
|
+
|
|
56211
|
+
@property
|
|
56212
|
+
def VanityNameServers(self):
|
|
56213
|
+
r"""用户自定义 NS 信息。(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段)
|
|
56214
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
56215
|
+
:rtype: :class:`tencentcloud.teo.v20220901.models.VanityNameServers`
|
|
56216
|
+
"""
|
|
56217
|
+
return self._VanityNameServers
|
|
56218
|
+
|
|
56219
|
+
@VanityNameServers.setter
|
|
56220
|
+
def VanityNameServers(self, VanityNameServers):
|
|
56221
|
+
self._VanityNameServers = VanityNameServers
|
|
56222
|
+
|
|
56223
|
+
@property
|
|
56224
|
+
def VanityNameServersIps(self):
|
|
56225
|
+
r"""用户自定义 NS IP 信息。(该字段为历史保留字段,已不再维护,请根据站点类型参考对应字段)
|
|
56226
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
56227
|
+
:rtype: list of VanityNameServersIps
|
|
56228
|
+
"""
|
|
56229
|
+
return self._VanityNameServersIps
|
|
56230
|
+
|
|
56231
|
+
@VanityNameServersIps.setter
|
|
56232
|
+
def VanityNameServersIps(self, VanityNameServersIps):
|
|
56233
|
+
self._VanityNameServersIps = VanityNameServersIps
|
|
56234
|
+
|
|
54495
56235
|
|
|
54496
56236
|
def _deserialize(self, params):
|
|
54497
56237
|
self._ZoneId = params.get("ZoneId")
|
|
54498
56238
|
self._ZoneName = params.get("ZoneName")
|
|
54499
|
-
self.
|
|
54500
|
-
self.
|
|
54501
|
-
self._Status = params.get("Status")
|
|
56239
|
+
self._AliasZoneName = params.get("AliasZoneName")
|
|
56240
|
+
self._Area = params.get("Area")
|
|
54502
56241
|
self._Type = params.get("Type")
|
|
54503
|
-
self._Paused = params.get("Paused")
|
|
54504
|
-
self._CnameSpeedUp = params.get("CnameSpeedUp")
|
|
54505
|
-
self._CnameStatus = params.get("CnameStatus")
|
|
54506
56242
|
if params.get("Tags") is not None:
|
|
54507
56243
|
self._Tags = []
|
|
54508
56244
|
for item in params.get("Tags"):
|
|
@@ -54515,9 +56251,29 @@ class Zone(AbstractModel):
|
|
|
54515
56251
|
obj = Resource()
|
|
54516
56252
|
obj._deserialize(item)
|
|
54517
56253
|
self._Resources.append(obj)
|
|
56254
|
+
if params.get("NSDetail") is not None:
|
|
56255
|
+
self._NSDetail = NSDetail()
|
|
56256
|
+
self._NSDetail._deserialize(params.get("NSDetail"))
|
|
56257
|
+
if params.get("CNAMEDetail") is not None:
|
|
56258
|
+
self._CNAMEDetail = CNAMEDetail()
|
|
56259
|
+
self._CNAMEDetail._deserialize(params.get("CNAMEDetail"))
|
|
56260
|
+
if params.get("DNSPodDetail") is not None:
|
|
56261
|
+
self._DNSPodDetail = DNSPodDetail()
|
|
56262
|
+
self._DNSPodDetail._deserialize(params.get("DNSPodDetail"))
|
|
54518
56263
|
self._CreatedOn = params.get("CreatedOn")
|
|
54519
56264
|
self._ModifiedOn = params.get("ModifiedOn")
|
|
54520
|
-
self.
|
|
56265
|
+
self._Status = params.get("Status")
|
|
56266
|
+
self._CnameStatus = params.get("CnameStatus")
|
|
56267
|
+
self._ActiveStatus = params.get("ActiveStatus")
|
|
56268
|
+
self._LockStatus = params.get("LockStatus")
|
|
56269
|
+
self._Paused = params.get("Paused")
|
|
56270
|
+
self._IsFake = params.get("IsFake")
|
|
56271
|
+
self._CnameSpeedUp = params.get("CnameSpeedUp")
|
|
56272
|
+
if params.get("OwnershipVerification") is not None:
|
|
56273
|
+
self._OwnershipVerification = OwnershipVerification()
|
|
56274
|
+
self._OwnershipVerification._deserialize(params.get("OwnershipVerification"))
|
|
56275
|
+
self._OriginalNameServers = params.get("OriginalNameServers")
|
|
56276
|
+
self._NameServers = params.get("NameServers")
|
|
54521
56277
|
if params.get("VanityNameServers") is not None:
|
|
54522
56278
|
self._VanityNameServers = VanityNameServers()
|
|
54523
56279
|
self._VanityNameServers._deserialize(params.get("VanityNameServers"))
|
|
@@ -54527,13 +56283,6 @@ class Zone(AbstractModel):
|
|
|
54527
56283
|
obj = VanityNameServersIps()
|
|
54528
56284
|
obj._deserialize(item)
|
|
54529
56285
|
self._VanityNameServersIps.append(obj)
|
|
54530
|
-
self._ActiveStatus = params.get("ActiveStatus")
|
|
54531
|
-
self._AliasZoneName = params.get("AliasZoneName")
|
|
54532
|
-
self._IsFake = params.get("IsFake")
|
|
54533
|
-
self._LockStatus = params.get("LockStatus")
|
|
54534
|
-
if params.get("OwnershipVerification") is not None:
|
|
54535
|
-
self._OwnershipVerification = OwnershipVerification()
|
|
54536
|
-
self._OwnershipVerification._deserialize(params.get("OwnershipVerification"))
|
|
54537
56286
|
memeber_set = set(params.keys())
|
|
54538
56287
|
for name, value in vars(self).items():
|
|
54539
56288
|
property_name = name[1:]
|