tencentcloud-sdk-teo 3.0.1097 → 3.0.1099
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220901/client.rb +120 -0
- data/lib/v20220901/models.rb +286 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5114a53a8aa67c9ce777f54f08e4bf681f531d0e
|
4
|
+
data.tar.gz: 9d7a619d819f12959f77d83d9e4d5e072f9e84c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60688502a3a11641177becfb51ce418f89fa76d5453b69dcec6cabd6a196844506d7fc8da0ee1826bd6aa5ae630c3b2934c155eb2adc1b08be17b62d92c90455
|
7
|
+
data.tar.gz: 3f0499d0a2e173c880ab24116bade887fabbe54b94b39021618afb498686e0e6b1ca4f1b9dcd214211088d02da256c6ae69f1bb281dfe83d2283b96984a5ccc8
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1099
|
data/lib/v20220901/client.rb
CHANGED
@@ -734,6 +734,30 @@ module TencentCloud
|
|
734
734
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
735
735
|
end
|
736
736
|
|
737
|
+
# 创建安全策略配置模板
|
738
|
+
|
739
|
+
# @param request: Request instance for CreateWebSecurityTemplate.
|
740
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::CreateWebSecurityTemplateRequest`
|
741
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::CreateWebSecurityTemplateResponse`
|
742
|
+
def CreateWebSecurityTemplate(request)
|
743
|
+
body = send_request('CreateWebSecurityTemplate', request.serialize)
|
744
|
+
response = JSON.parse(body)
|
745
|
+
if response['Response'].key?('Error') == false
|
746
|
+
model = CreateWebSecurityTemplateResponse.new
|
747
|
+
model.deserialize(response['Response'])
|
748
|
+
model
|
749
|
+
else
|
750
|
+
code = response['Response']['Error']['Code']
|
751
|
+
message = response['Response']['Error']['Message']
|
752
|
+
reqid = response['Response']['RequestId']
|
753
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
754
|
+
end
|
755
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
756
|
+
raise e
|
757
|
+
rescue StandardError => e
|
758
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
759
|
+
end
|
760
|
+
|
737
761
|
# EdgeOne 为您提供 CNAME、NS 和无域名接入三种接入方式,您需要先通过此接口完成站点创建。CNAME 和 NS 接入站点的场景可参考 [从零开始快速接入 EdgeOne](https://cloud.tencent.com/document/product/1552/87601); 无域名接入的场景可参考 [快速启用四层代理服务](https://cloud.tencent.com/document/product/1552/96051)。
|
738
762
|
|
739
763
|
# > 建议您在账号下已存在套餐时调用本接口创建站点,请在入参时传入 PlanId ,直接将站点绑定至该套餐;不传入 PlanId 时,创建出来的站点会处于未激活状态,无法正常服务,您需要通过 [BindZoneToPlan](https://cloud.tencent.com/document/product/1552/83042) 完成套餐绑定之后,站点才可正常提供服务 。若您当前没有可绑定的套餐时,请前往控制台购买套餐完成站点创建。
|
@@ -1195,6 +1219,30 @@ module TencentCloud
|
|
1195
1219
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1196
1220
|
end
|
1197
1221
|
|
1222
|
+
# 删除安全策略配置模板
|
1223
|
+
|
1224
|
+
# @param request: Request instance for DeleteWebSecurityTemplate.
|
1225
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DeleteWebSecurityTemplateRequest`
|
1226
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DeleteWebSecurityTemplateResponse`
|
1227
|
+
def DeleteWebSecurityTemplate(request)
|
1228
|
+
body = send_request('DeleteWebSecurityTemplate', request.serialize)
|
1229
|
+
response = JSON.parse(body)
|
1230
|
+
if response['Response'].key?('Error') == false
|
1231
|
+
model = DeleteWebSecurityTemplateResponse.new
|
1232
|
+
model.deserialize(response['Response'])
|
1233
|
+
model
|
1234
|
+
else
|
1235
|
+
code = response['Response']['Error']['Code']
|
1236
|
+
message = response['Response']['Error']['Message']
|
1237
|
+
reqid = response['Response']['RequestId']
|
1238
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1239
|
+
end
|
1240
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1241
|
+
raise e
|
1242
|
+
rescue StandardError => e
|
1243
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1244
|
+
end
|
1245
|
+
|
1198
1246
|
# 删除站点。
|
1199
1247
|
|
1200
1248
|
# @param request: Request instance for DeleteZone.
|
@@ -2402,6 +2450,54 @@ module TencentCloud
|
|
2402
2450
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2403
2451
|
end
|
2404
2452
|
|
2453
|
+
# 查询安全策略配置模板详情
|
2454
|
+
|
2455
|
+
# @param request: Request instance for DescribeWebSecurityTemplate.
|
2456
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeWebSecurityTemplateRequest`
|
2457
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeWebSecurityTemplateResponse`
|
2458
|
+
def DescribeWebSecurityTemplate(request)
|
2459
|
+
body = send_request('DescribeWebSecurityTemplate', request.serialize)
|
2460
|
+
response = JSON.parse(body)
|
2461
|
+
if response['Response'].key?('Error') == false
|
2462
|
+
model = DescribeWebSecurityTemplateResponse.new
|
2463
|
+
model.deserialize(response['Response'])
|
2464
|
+
model
|
2465
|
+
else
|
2466
|
+
code = response['Response']['Error']['Code']
|
2467
|
+
message = response['Response']['Error']['Message']
|
2468
|
+
reqid = response['Response']['RequestId']
|
2469
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2470
|
+
end
|
2471
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2472
|
+
raise e
|
2473
|
+
rescue StandardError => e
|
2474
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2475
|
+
end
|
2476
|
+
|
2477
|
+
# 查询安全策略配置模板列表
|
2478
|
+
|
2479
|
+
# @param request: Request instance for DescribeWebSecurityTemplates.
|
2480
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::DescribeWebSecurityTemplatesRequest`
|
2481
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::DescribeWebSecurityTemplatesResponse`
|
2482
|
+
def DescribeWebSecurityTemplates(request)
|
2483
|
+
body = send_request('DescribeWebSecurityTemplates', request.serialize)
|
2484
|
+
response = JSON.parse(body)
|
2485
|
+
if response['Response'].key?('Error') == false
|
2486
|
+
model = DescribeWebSecurityTemplatesResponse.new
|
2487
|
+
model.deserialize(response['Response'])
|
2488
|
+
model
|
2489
|
+
else
|
2490
|
+
code = response['Response']['Error']['Code']
|
2491
|
+
message = response['Response']['Error']['Message']
|
2492
|
+
reqid = response['Response']['RequestId']
|
2493
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2494
|
+
end
|
2495
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2496
|
+
raise e
|
2497
|
+
rescue StandardError => e
|
2498
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2499
|
+
end
|
2500
|
+
|
2405
2501
|
# 查询站点配置项导入结果接口,本接口用于站点配置导入接口(ImportZoneConfig)的结果查询。该功能仅支持标准版或企业版套餐的站点使用。
|
2406
2502
|
|
2407
2503
|
# @param request: Request instance for DescribeZoneConfigImportResult.
|
@@ -3479,6 +3575,30 @@ module TencentCloud
|
|
3479
3575
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3480
3576
|
end
|
3481
3577
|
|
3578
|
+
# 修改安全策略配置模板
|
3579
|
+
|
3580
|
+
# @param request: Request instance for ModifyWebSecurityTemplate.
|
3581
|
+
# @type request: :class:`Tencentcloud::teo::V20220901::ModifyWebSecurityTemplateRequest`
|
3582
|
+
# @rtype: :class:`Tencentcloud::teo::V20220901::ModifyWebSecurityTemplateResponse`
|
3583
|
+
def ModifyWebSecurityTemplate(request)
|
3584
|
+
body = send_request('ModifyWebSecurityTemplate', request.serialize)
|
3585
|
+
response = JSON.parse(body)
|
3586
|
+
if response['Response'].key?('Error') == false
|
3587
|
+
model = ModifyWebSecurityTemplateResponse.new
|
3588
|
+
model.deserialize(response['Response'])
|
3589
|
+
model
|
3590
|
+
else
|
3591
|
+
code = response['Response']['Error']['Code']
|
3592
|
+
message = response['Response']['Error']['Message']
|
3593
|
+
reqid = response['Response']['RequestId']
|
3594
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3595
|
+
end
|
3596
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3597
|
+
raise e
|
3598
|
+
rescue StandardError => e
|
3599
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3600
|
+
end
|
3601
|
+
|
3482
3602
|
# 修改站点信息。
|
3483
3603
|
|
3484
3604
|
# @param request: Request instance for ModifyZone.
|
data/lib/v20220901/models.rb
CHANGED
@@ -1221,6 +1221,33 @@ module TencentCloud
|
|
1221
1221
|
end
|
1222
1222
|
end
|
1223
1223
|
|
1224
|
+
# 策略模板绑定的域名信息
|
1225
|
+
class BindDomainInfo < TencentCloud::Common::AbstractModel
|
1226
|
+
# @param Domain: 域名。
|
1227
|
+
# @type Domain: String
|
1228
|
+
# @param ZoneId: 域名所属的站点 ID。
|
1229
|
+
# @type ZoneId: String
|
1230
|
+
# @param Status: 绑定状态,取值有:
|
1231
|
+
# <li>process:绑定中;</li>
|
1232
|
+
# <li>online:绑定成功;</li>
|
1233
|
+
# <li>fail:绑定失败。</li>
|
1234
|
+
# @type Status: String
|
1235
|
+
|
1236
|
+
attr_accessor :Domain, :ZoneId, :Status
|
1237
|
+
|
1238
|
+
def initialize(domain=nil, zoneid=nil, status=nil)
|
1239
|
+
@Domain = domain
|
1240
|
+
@ZoneId = zoneid
|
1241
|
+
@Status = status
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
def deserialize(params)
|
1245
|
+
@Domain = params['Domain']
|
1246
|
+
@ZoneId = params['ZoneId']
|
1247
|
+
@Status = params['Status']
|
1248
|
+
end
|
1249
|
+
end
|
1250
|
+
|
1224
1251
|
# BindSecurityTemplateToEntity请求参数结构体
|
1225
1252
|
class BindSecurityTemplateToEntityRequest < TencentCloud::Common::AbstractModel
|
1226
1253
|
# @param ZoneId: 需要绑定或解绑的策略模板所属站点 ID。
|
@@ -4334,6 +4361,53 @@ module TencentCloud
|
|
4334
4361
|
end
|
4335
4362
|
end
|
4336
4363
|
|
4364
|
+
# CreateWebSecurityTemplate请求参数结构体
|
4365
|
+
class CreateWebSecurityTemplateRequest < TencentCloud::Common::AbstractModel
|
4366
|
+
# @param ZoneId: 站点 ID。该参数明确策略模板在访问权限上归属的站点。
|
4367
|
+
# @type ZoneId: String
|
4368
|
+
# @param TemplateName: 策略模板名称。由中文、英文、数字和下划线组成,不能以下划线开头,且长度不能超过 32 个字符。
|
4369
|
+
# @type TemplateName: String
|
4370
|
+
# @param SecurityPolicy: 安全策略模板配置内容,字段为空时生成默认配置。目前支持 Web 防护模块中的例外规则、自定义规则、速率限制规则和托管规则配置,通过表达式语法对安全策略进行配置。 Bot 管理规则配置暂不支持,正在开发中。
|
4371
|
+
# @type SecurityPolicy: :class:`Tencentcloud::Teo.v20220901.models.SecurityPolicy`
|
4372
|
+
|
4373
|
+
attr_accessor :ZoneId, :TemplateName, :SecurityPolicy
|
4374
|
+
|
4375
|
+
def initialize(zoneid=nil, templatename=nil, securitypolicy=nil)
|
4376
|
+
@ZoneId = zoneid
|
4377
|
+
@TemplateName = templatename
|
4378
|
+
@SecurityPolicy = securitypolicy
|
4379
|
+
end
|
4380
|
+
|
4381
|
+
def deserialize(params)
|
4382
|
+
@ZoneId = params['ZoneId']
|
4383
|
+
@TemplateName = params['TemplateName']
|
4384
|
+
unless params['SecurityPolicy'].nil?
|
4385
|
+
@SecurityPolicy = SecurityPolicy.new
|
4386
|
+
@SecurityPolicy.deserialize(params['SecurityPolicy'])
|
4387
|
+
end
|
4388
|
+
end
|
4389
|
+
end
|
4390
|
+
|
4391
|
+
# CreateWebSecurityTemplate返回参数结构体
|
4392
|
+
class CreateWebSecurityTemplateResponse < TencentCloud::Common::AbstractModel
|
4393
|
+
# @param TemplateId: 策略模板 ID。
|
4394
|
+
# @type TemplateId: String
|
4395
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4396
|
+
# @type RequestId: String
|
4397
|
+
|
4398
|
+
attr_accessor :TemplateId, :RequestId
|
4399
|
+
|
4400
|
+
def initialize(templateid=nil, requestid=nil)
|
4401
|
+
@TemplateId = templateid
|
4402
|
+
@RequestId = requestid
|
4403
|
+
end
|
4404
|
+
|
4405
|
+
def deserialize(params)
|
4406
|
+
@TemplateId = params['TemplateId']
|
4407
|
+
@RequestId = params['RequestId']
|
4408
|
+
end
|
4409
|
+
end
|
4410
|
+
|
4337
4411
|
# CreateZone请求参数结构体
|
4338
4412
|
class CreateZoneRequest < TencentCloud::Common::AbstractModel
|
4339
4413
|
# @param Type: 站点接入类型。该参数取值如下,不填写时默认为 partial:
|
@@ -4349,7 +4423,9 @@ module TencentCloud
|
|
4349
4423
|
# <li> mainland: 中国大陆可用区;</li>
|
4350
4424
|
# <li> overseas: 全球可用区(不含中国大陆)。</li>
|
4351
4425
|
# @type Area: String
|
4352
|
-
# @param PlanId: 待绑定的目标套餐 ID
|
4426
|
+
# @param PlanId: 待绑定的目标套餐 ID。当您账号下已存在套餐时,可以填写此参数,直接将站点绑定至该套餐。若您当前没有可绑定的套餐时,可通过 [CreatePlan](https://cloud.tencent.com/document/product/1552/105771) 购买套餐。
|
4427
|
+
# 注意:如果不填写此参数,将创建一个处于“init”状态的站点,该站点为未激活状态,并不会显示在控制台上。您可以通过访问 [BindZoneToPlan](https://cloud.tencent.com/document/product/1552/83042) 来绑定套餐并激活站点,激活后站点可以正常提供服务。
|
4428
|
+
|
4353
4429
|
# @type PlanId: String
|
4354
4430
|
# @param AliasZoneName: 同名站点标识。限制输入数字、英文、"." 、"-" 和 "_",长度 200 个字符以内。详情参考 [同名站点标识](https://cloud.tencent.com/document/product/1552/70202),无此使用场景时,该字段保留为空即可。
|
4355
4431
|
# @type AliasZoneName: String
|
@@ -5567,6 +5643,42 @@ module TencentCloud
|
|
5567
5643
|
end
|
5568
5644
|
end
|
5569
5645
|
|
5646
|
+
# DeleteWebSecurityTemplate请求参数结构体
|
5647
|
+
class DeleteWebSecurityTemplateRequest < TencentCloud::Common::AbstractModel
|
5648
|
+
# @param ZoneId: 站点 ID。需要传入目标策略模板在访问权限上归属的站点,可使用 DescribeWebSecurityTemplates 接口查询策略模板归属的站点。
|
5649
|
+
# @type ZoneId: String
|
5650
|
+
# @param TemplateId: 策略模板 ID。
|
5651
|
+
# @type TemplateId: String
|
5652
|
+
|
5653
|
+
attr_accessor :ZoneId, :TemplateId
|
5654
|
+
|
5655
|
+
def initialize(zoneid=nil, templateid=nil)
|
5656
|
+
@ZoneId = zoneid
|
5657
|
+
@TemplateId = templateid
|
5658
|
+
end
|
5659
|
+
|
5660
|
+
def deserialize(params)
|
5661
|
+
@ZoneId = params['ZoneId']
|
5662
|
+
@TemplateId = params['TemplateId']
|
5663
|
+
end
|
5664
|
+
end
|
5665
|
+
|
5666
|
+
# DeleteWebSecurityTemplate返回参数结构体
|
5667
|
+
class DeleteWebSecurityTemplateResponse < TencentCloud::Common::AbstractModel
|
5668
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5669
|
+
# @type RequestId: String
|
5670
|
+
|
5671
|
+
attr_accessor :RequestId
|
5672
|
+
|
5673
|
+
def initialize(requestid=nil)
|
5674
|
+
@RequestId = requestid
|
5675
|
+
end
|
5676
|
+
|
5677
|
+
def deserialize(params)
|
5678
|
+
@RequestId = params['RequestId']
|
5679
|
+
end
|
5680
|
+
end
|
5681
|
+
|
5570
5682
|
# DeleteZone请求参数结构体
|
5571
5683
|
class DeleteZoneRequest < TencentCloud::Common::AbstractModel
|
5572
5684
|
# @param ZoneId: 站点 ID。
|
@@ -9100,6 +9212,96 @@ module TencentCloud
|
|
9100
9212
|
end
|
9101
9213
|
end
|
9102
9214
|
|
9215
|
+
# DescribeWebSecurityTemplate请求参数结构体
|
9216
|
+
class DescribeWebSecurityTemplateRequest < TencentCloud::Common::AbstractModel
|
9217
|
+
# @param ZoneId: 站点 ID。需要传入目标策略模板在访问权限上归属的站点,可使用 DescribeWebSecurityTemplates 接口查询策略模板归属的站点。
|
9218
|
+
# @type ZoneId: String
|
9219
|
+
# @param TemplateId: 策略模板 ID。
|
9220
|
+
# @type TemplateId: String
|
9221
|
+
|
9222
|
+
attr_accessor :ZoneId, :TemplateId
|
9223
|
+
|
9224
|
+
def initialize(zoneid=nil, templateid=nil)
|
9225
|
+
@ZoneId = zoneid
|
9226
|
+
@TemplateId = templateid
|
9227
|
+
end
|
9228
|
+
|
9229
|
+
def deserialize(params)
|
9230
|
+
@ZoneId = params['ZoneId']
|
9231
|
+
@TemplateId = params['TemplateId']
|
9232
|
+
end
|
9233
|
+
end
|
9234
|
+
|
9235
|
+
# DescribeWebSecurityTemplate返回参数结构体
|
9236
|
+
class DescribeWebSecurityTemplateResponse < TencentCloud::Common::AbstractModel
|
9237
|
+
# @param SecurityPolicy: 安全策略模板配置内容,Bot 配置暂不支持,正在开发中。
|
9238
|
+
# @type SecurityPolicy: :class:`Tencentcloud::Teo.v20220901.models.SecurityPolicy`
|
9239
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9240
|
+
# @type RequestId: String
|
9241
|
+
|
9242
|
+
attr_accessor :SecurityPolicy, :RequestId
|
9243
|
+
|
9244
|
+
def initialize(securitypolicy=nil, requestid=nil)
|
9245
|
+
@SecurityPolicy = securitypolicy
|
9246
|
+
@RequestId = requestid
|
9247
|
+
end
|
9248
|
+
|
9249
|
+
def deserialize(params)
|
9250
|
+
unless params['SecurityPolicy'].nil?
|
9251
|
+
@SecurityPolicy = SecurityPolicy.new
|
9252
|
+
@SecurityPolicy.deserialize(params['SecurityPolicy'])
|
9253
|
+
end
|
9254
|
+
@RequestId = params['RequestId']
|
9255
|
+
end
|
9256
|
+
end
|
9257
|
+
|
9258
|
+
# DescribeWebSecurityTemplates请求参数结构体
|
9259
|
+
class DescribeWebSecurityTemplatesRequest < TencentCloud::Common::AbstractModel
|
9260
|
+
# @param ZoneIds: 站点 ID 列表。单次查询最多传入 100 个站点。
|
9261
|
+
# @type ZoneIds: Array
|
9262
|
+
|
9263
|
+
attr_accessor :ZoneIds
|
9264
|
+
|
9265
|
+
def initialize(zoneids=nil)
|
9266
|
+
@ZoneIds = zoneids
|
9267
|
+
end
|
9268
|
+
|
9269
|
+
def deserialize(params)
|
9270
|
+
@ZoneIds = params['ZoneIds']
|
9271
|
+
end
|
9272
|
+
end
|
9273
|
+
|
9274
|
+
# DescribeWebSecurityTemplates返回参数结构体
|
9275
|
+
class DescribeWebSecurityTemplatesResponse < TencentCloud::Common::AbstractModel
|
9276
|
+
# @param TotalCount: 策略模板总数。
|
9277
|
+
# @type TotalCount: Integer
|
9278
|
+
# @param SecurityPolicyTemplates: 策略模板列表。
|
9279
|
+
# @type SecurityPolicyTemplates: Array
|
9280
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9281
|
+
# @type RequestId: String
|
9282
|
+
|
9283
|
+
attr_accessor :TotalCount, :SecurityPolicyTemplates, :RequestId
|
9284
|
+
|
9285
|
+
def initialize(totalcount=nil, securitypolicytemplates=nil, requestid=nil)
|
9286
|
+
@TotalCount = totalcount
|
9287
|
+
@SecurityPolicyTemplates = securitypolicytemplates
|
9288
|
+
@RequestId = requestid
|
9289
|
+
end
|
9290
|
+
|
9291
|
+
def deserialize(params)
|
9292
|
+
@TotalCount = params['TotalCount']
|
9293
|
+
unless params['SecurityPolicyTemplates'].nil?
|
9294
|
+
@SecurityPolicyTemplates = []
|
9295
|
+
params['SecurityPolicyTemplates'].each do |i|
|
9296
|
+
securitypolicytemplateinfo_tmp = SecurityPolicyTemplateInfo.new
|
9297
|
+
securitypolicytemplateinfo_tmp.deserialize(i)
|
9298
|
+
@SecurityPolicyTemplates << securitypolicytemplateinfo_tmp
|
9299
|
+
end
|
9300
|
+
end
|
9301
|
+
@RequestId = params['RequestId']
|
9302
|
+
end
|
9303
|
+
end
|
9304
|
+
|
9103
9305
|
# DescribeZoneConfigImportResult请求参数结构体
|
9104
9306
|
class DescribeZoneConfigImportResultRequest < TencentCloud::Common::AbstractModel
|
9105
9307
|
# @param ZoneId: 站点 ID。
|
@@ -14202,6 +14404,54 @@ module TencentCloud
|
|
14202
14404
|
end
|
14203
14405
|
end
|
14204
14406
|
|
14407
|
+
# ModifyWebSecurityTemplate请求参数结构体
|
14408
|
+
class ModifyWebSecurityTemplateRequest < TencentCloud::Common::AbstractModel
|
14409
|
+
# @param ZoneId: 站点 ID。需要传入目标策略模板在访问权限上归属的站点,可使用 DescribeWebSecurityTemplates 接口查询策略模板归属的站点。
|
14410
|
+
# @type ZoneId: String
|
14411
|
+
# @param TemplateId: 策略模板 ID。
|
14412
|
+
# @type TemplateId: String
|
14413
|
+
# @param TemplateName: 修改后的策略模板名称。由中文、英文、数字和下划线组成,不能以下划线开头,且长度不能超过32个字符。字段为空时则不修改。
|
14414
|
+
# @type TemplateName: String
|
14415
|
+
# @param SecurityPolicy: 安全策略模板配置内容。值为空时不修改;没有传入的子模块结构不会被修改。目前支持 Web 防护模块中的例外规则、自定义规则、速率限制规则和托管规则配置,通过表达式语法对安全策略进行配置。 Bot 管理规则配置暂不支持,正在开发中。
|
14416
|
+
# 特别说明:当入参某个子模块结构时,请确保携带所有需要保留的规则内容,未传入规则内容视为删除。
|
14417
|
+
# @type SecurityPolicy: :class:`Tencentcloud::Teo.v20220901.models.SecurityPolicy`
|
14418
|
+
|
14419
|
+
attr_accessor :ZoneId, :TemplateId, :TemplateName, :SecurityPolicy
|
14420
|
+
|
14421
|
+
def initialize(zoneid=nil, templateid=nil, templatename=nil, securitypolicy=nil)
|
14422
|
+
@ZoneId = zoneid
|
14423
|
+
@TemplateId = templateid
|
14424
|
+
@TemplateName = templatename
|
14425
|
+
@SecurityPolicy = securitypolicy
|
14426
|
+
end
|
14427
|
+
|
14428
|
+
def deserialize(params)
|
14429
|
+
@ZoneId = params['ZoneId']
|
14430
|
+
@TemplateId = params['TemplateId']
|
14431
|
+
@TemplateName = params['TemplateName']
|
14432
|
+
unless params['SecurityPolicy'].nil?
|
14433
|
+
@SecurityPolicy = SecurityPolicy.new
|
14434
|
+
@SecurityPolicy.deserialize(params['SecurityPolicy'])
|
14435
|
+
end
|
14436
|
+
end
|
14437
|
+
end
|
14438
|
+
|
14439
|
+
# ModifyWebSecurityTemplate返回参数结构体
|
14440
|
+
class ModifyWebSecurityTemplateResponse < TencentCloud::Common::AbstractModel
|
14441
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
14442
|
+
# @type RequestId: String
|
14443
|
+
|
14444
|
+
attr_accessor :RequestId
|
14445
|
+
|
14446
|
+
def initialize(requestid=nil)
|
14447
|
+
@RequestId = requestid
|
14448
|
+
end
|
14449
|
+
|
14450
|
+
def deserialize(params)
|
14451
|
+
@RequestId = params['RequestId']
|
14452
|
+
end
|
14453
|
+
end
|
14454
|
+
|
14205
14455
|
# ModifyZone请求参数结构体
|
14206
14456
|
class ModifyZoneRequest < TencentCloud::Common::AbstractModel
|
14207
14457
|
# @param ZoneId: 站点 ID。
|
@@ -17776,6 +18026,41 @@ module TencentCloud
|
|
17776
18026
|
end
|
17777
18027
|
end
|
17778
18028
|
|
18029
|
+
# 策略模板信息
|
18030
|
+
class SecurityPolicyTemplateInfo < TencentCloud::Common::AbstractModel
|
18031
|
+
# @param ZoneId: 策略模板所属的站点 ID。
|
18032
|
+
# @type ZoneId: String
|
18033
|
+
# @param TemplateId: 策略模板 ID。
|
18034
|
+
# @type TemplateId: String
|
18035
|
+
# @param TemplateName: 策略模板名称。
|
18036
|
+
# @type TemplateName: String
|
18037
|
+
# @param BindDomains: 策略模板绑定的域名信息。
|
18038
|
+
# @type BindDomains: Array
|
18039
|
+
|
18040
|
+
attr_accessor :ZoneId, :TemplateId, :TemplateName, :BindDomains
|
18041
|
+
|
18042
|
+
def initialize(zoneid=nil, templateid=nil, templatename=nil, binddomains=nil)
|
18043
|
+
@ZoneId = zoneid
|
18044
|
+
@TemplateId = templateid
|
18045
|
+
@TemplateName = templatename
|
18046
|
+
@BindDomains = binddomains
|
18047
|
+
end
|
18048
|
+
|
18049
|
+
def deserialize(params)
|
18050
|
+
@ZoneId = params['ZoneId']
|
18051
|
+
@TemplateId = params['TemplateId']
|
18052
|
+
@TemplateName = params['TemplateName']
|
18053
|
+
unless params['BindDomains'].nil?
|
18054
|
+
@BindDomains = []
|
18055
|
+
params['BindDomains'].each do |i|
|
18056
|
+
binddomaininfo_tmp = BindDomainInfo.new
|
18057
|
+
binddomaininfo_tmp.deserialize(i)
|
18058
|
+
@BindDomains << binddomaininfo_tmp
|
18059
|
+
end
|
18060
|
+
end
|
18061
|
+
end
|
18062
|
+
end
|
18063
|
+
|
17779
18064
|
# 安全策略模板的绑定关系。
|
17780
18065
|
class SecurityTemplateBinding < TencentCloud::Common::AbstractModel
|
17781
18066
|
# @param TemplateId: 模板ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-teo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1099
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|