tencentcloud-sdk-waf 3.0.841 → 3.0.842
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180125/client.rb +48 -0
- data/lib/v20180125/models.rb +78 -0
- 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: e99cbfcdb891d51f0d0e62496030b4e9b9f1e02f
|
4
|
+
data.tar.gz: 191c8003663a7c0a98f35eb0a7eef814d36c49a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 611aedb51ae6b5e47ebe9d0978d22cdf935504dace13d24e83d17c656e96a9ded62b132ba99544ca49c7a5cee6aa6de2836130e19ba695ce8487fa04bc8b51b3
|
7
|
+
data.tar.gz: e7370ad97bd193bcf7d28b8e945b1f916b335dafc0ad2ac7dcf30f3eea94eccc7d0af7c2a84f5fafd7bc748260eeb0621ac7b15fd8215ed6efbbcc3cc4e83d39
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.842
|
data/lib/v20180125/client.rb
CHANGED
@@ -851,6 +851,30 @@ module TencentCloud
|
|
851
851
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
852
852
|
end
|
853
853
|
|
854
|
+
# 获取WAF地域封禁支持的地域列表
|
855
|
+
|
856
|
+
# @param request: Request instance for DescribeAreaBanSupportAreas.
|
857
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeAreaBanSupportAreasRequest`
|
858
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeAreaBanSupportAreasResponse`
|
859
|
+
def DescribeAreaBanSupportAreas(request)
|
860
|
+
body = send_request('DescribeAreaBanSupportAreas', request.serialize)
|
861
|
+
response = JSON.parse(body)
|
862
|
+
if response['Response'].key?('Error') == false
|
863
|
+
model = DescribeAreaBanSupportAreasResponse.new
|
864
|
+
model.deserialize(response['Response'])
|
865
|
+
model
|
866
|
+
else
|
867
|
+
code = response['Response']['Error']['Code']
|
868
|
+
message = response['Response']['Error']['Message']
|
869
|
+
reqid = response['Response']['RequestId']
|
870
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
871
|
+
end
|
872
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
873
|
+
raise e
|
874
|
+
rescue StandardError => e
|
875
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
876
|
+
end
|
877
|
+
|
854
878
|
# 攻击总览
|
855
879
|
|
856
880
|
# @param request: Request instance for DescribeAttackOverview.
|
@@ -2363,6 +2387,30 @@ module TencentCloud
|
|
2363
2387
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2364
2388
|
end
|
2365
2389
|
|
2390
|
+
# 修改地域封禁中的地域信息
|
2391
|
+
|
2392
|
+
# @param request: Request instance for ModifyAreaBanAreas.
|
2393
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyAreaBanAreasRequest`
|
2394
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyAreaBanAreasResponse`
|
2395
|
+
def ModifyAreaBanAreas(request)
|
2396
|
+
body = send_request('ModifyAreaBanAreas', request.serialize)
|
2397
|
+
response = JSON.parse(body)
|
2398
|
+
if response['Response'].key?('Error') == false
|
2399
|
+
model = ModifyAreaBanAreasResponse.new
|
2400
|
+
model.deserialize(response['Response'])
|
2401
|
+
model
|
2402
|
+
else
|
2403
|
+
code = response['Response']['Error']['Code']
|
2404
|
+
message = response['Response']['Error']['Message']
|
2405
|
+
reqid = response['Response']['RequestId']
|
2406
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2407
|
+
end
|
2408
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2409
|
+
raise e
|
2410
|
+
rescue StandardError => e
|
2411
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2412
|
+
end
|
2413
|
+
|
2366
2414
|
# 修改防护域名的地域封禁状态
|
2367
2415
|
|
2368
2416
|
# @param request: Request instance for ModifyAreaBanStatus.
|
data/lib/v20180125/models.rb
CHANGED
@@ -3562,6 +3562,37 @@ module TencentCloud
|
|
3562
3562
|
end
|
3563
3563
|
end
|
3564
3564
|
|
3565
|
+
# DescribeAreaBanSupportAreas请求参数结构体
|
3566
|
+
class DescribeAreaBanSupportAreasRequest < TencentCloud::Common::AbstractModel
|
3567
|
+
|
3568
|
+
|
3569
|
+
def initialize()
|
3570
|
+
end
|
3571
|
+
|
3572
|
+
def deserialize(params)
|
3573
|
+
end
|
3574
|
+
end
|
3575
|
+
|
3576
|
+
# DescribeAreaBanSupportAreas返回参数结构体
|
3577
|
+
class DescribeAreaBanSupportAreasResponse < TencentCloud::Common::AbstractModel
|
3578
|
+
# @param Data: 地域封禁的地域列表,要解析成json后使用
|
3579
|
+
# @type Data: String
|
3580
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3581
|
+
# @type RequestId: String
|
3582
|
+
|
3583
|
+
attr_accessor :Data, :RequestId
|
3584
|
+
|
3585
|
+
def initialize(data=nil, requestid=nil)
|
3586
|
+
@Data = data
|
3587
|
+
@RequestId = requestid
|
3588
|
+
end
|
3589
|
+
|
3590
|
+
def deserialize(params)
|
3591
|
+
@Data = params['Data']
|
3592
|
+
@RequestId = params['RequestId']
|
3593
|
+
end
|
3594
|
+
end
|
3595
|
+
|
3565
3596
|
# DescribeAttackOverview请求参数结构体
|
3566
3597
|
class DescribeAttackOverviewRequest < TencentCloud::Common::AbstractModel
|
3567
3598
|
# @param FromTime: 查询开始时间
|
@@ -9486,6 +9517,53 @@ module TencentCloud
|
|
9486
9517
|
end
|
9487
9518
|
end
|
9488
9519
|
|
9520
|
+
# ModifyAreaBanAreas请求参数结构体
|
9521
|
+
class ModifyAreaBanAreasRequest < TencentCloud::Common::AbstractModel
|
9522
|
+
# @param Domain: 需要修改的域名
|
9523
|
+
# @type Domain: String
|
9524
|
+
# @param Areas: 需要调整的地域信息,一个字符串数组
|
9525
|
+
# @type Areas: Array
|
9526
|
+
# @param JobType: 定时任务类型
|
9527
|
+
# @type JobType: String
|
9528
|
+
# @param JobDateTime: 定时任务配置
|
9529
|
+
# @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
|
9530
|
+
|
9531
|
+
attr_accessor :Domain, :Areas, :JobType, :JobDateTime
|
9532
|
+
|
9533
|
+
def initialize(domain=nil, areas=nil, jobtype=nil, jobdatetime=nil)
|
9534
|
+
@Domain = domain
|
9535
|
+
@Areas = areas
|
9536
|
+
@JobType = jobtype
|
9537
|
+
@JobDateTime = jobdatetime
|
9538
|
+
end
|
9539
|
+
|
9540
|
+
def deserialize(params)
|
9541
|
+
@Domain = params['Domain']
|
9542
|
+
@Areas = params['Areas']
|
9543
|
+
@JobType = params['JobType']
|
9544
|
+
unless params['JobDateTime'].nil?
|
9545
|
+
@JobDateTime = JobDateTime.new
|
9546
|
+
@JobDateTime.deserialize(params['JobDateTime'])
|
9547
|
+
end
|
9548
|
+
end
|
9549
|
+
end
|
9550
|
+
|
9551
|
+
# ModifyAreaBanAreas返回参数结构体
|
9552
|
+
class ModifyAreaBanAreasResponse < TencentCloud::Common::AbstractModel
|
9553
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9554
|
+
# @type RequestId: String
|
9555
|
+
|
9556
|
+
attr_accessor :RequestId
|
9557
|
+
|
9558
|
+
def initialize(requestid=nil)
|
9559
|
+
@RequestId = requestid
|
9560
|
+
end
|
9561
|
+
|
9562
|
+
def deserialize(params)
|
9563
|
+
@RequestId = params['RequestId']
|
9564
|
+
end
|
9565
|
+
end
|
9566
|
+
|
9489
9567
|
# ModifyAreaBanStatus请求参数结构体
|
9490
9568
|
class ModifyAreaBanStatusRequest < TencentCloud::Common::AbstractModel
|
9491
9569
|
# @param Domain: 需要修改的域名
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-waf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.842
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|