tencentcloud-sdk-antiddos 1.0.243 → 1.0.244
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/v20200309/client.rb +24 -0
- data/lib/v20200309/models.rb +87 -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: 8a469ec0d07a39f7c4dd2f773f1612774fda68ad
|
4
|
+
data.tar.gz: b5f34832e90add3745e120983584b8b9f9b68b8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe62c801b6366f3fa6fa9af188903b9442eb92db38d0e2ac551540feacf5bf75014cf4027b1a1aaeda0e1982db3a78065ea559deab49dc724822f854289f98c7
|
7
|
+
data.tar.gz: 748355d496b525c88c87fbb2f7a46c2016a48ed26dae72389bddf4db6c2b433430738c5ca9701e6ce6323c6fa5db22656d17f966dd129a52a8063b94d8b7d46f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.244
|
data/lib/v20200309/client.rb
CHANGED
@@ -173,6 +173,30 @@ module TencentCloud
|
|
173
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
174
|
end
|
175
175
|
|
176
|
+
# 配置DDoS连接抑制选项
|
177
|
+
|
178
|
+
# @param request: Request instance for CreateDDoSConnectLimit.
|
179
|
+
# @type request: :class:`Tencentcloud::antiddos::V20200309::CreateDDoSConnectLimitRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::antiddos::V20200309::CreateDDoSConnectLimitResponse`
|
181
|
+
def CreateDDoSConnectLimit(request)
|
182
|
+
body = send_request('CreateDDoSConnectLimit', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = CreateDDoSConnectLimitResponse.new
|
186
|
+
model.deserialize(response['Response'])
|
187
|
+
model
|
188
|
+
else
|
189
|
+
code = response['Response']['Error']['Code']
|
190
|
+
message = response['Response']['Error']['Message']
|
191
|
+
reqid = response['Response']['RequestId']
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
+
end
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
+
raise e
|
196
|
+
rescue StandardError => e
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
+
end
|
199
|
+
|
176
200
|
# 添加DDoS防护的区域封禁配置
|
177
201
|
|
178
202
|
# @param request: Request instance for CreateDDoSGeoIPBlockConfig.
|
data/lib/v20200309/models.rb
CHANGED
@@ -598,6 +598,54 @@ module TencentCloud
|
|
598
598
|
end
|
599
599
|
end
|
600
600
|
|
601
|
+
# 连接抑制相关配置
|
602
|
+
class ConnectLimitConfig < TencentCloud::Common::AbstractModel
|
603
|
+
# @param SdNewLimit: 基于源IP+目的IP的每秒新建数限制
|
604
|
+
# @type SdNewLimit: Integer
|
605
|
+
# @param DstNewLimit: 基于目的IP的每秒新建数限制
|
606
|
+
# @type DstNewLimit: Integer
|
607
|
+
# @param SdConnLimit: 基于源IP+目的IP的并发连接控制
|
608
|
+
# @type SdConnLimit: Integer
|
609
|
+
# @param DstConnLimit: 基于目的IP+目的端口的并发连接控制
|
610
|
+
# @type DstConnLimit: Integer
|
611
|
+
# @param BadConnThreshold: 基于连接抑制触发阈值,取值范围[0,4294967295]
|
612
|
+
# @type BadConnThreshold: Integer
|
613
|
+
# @param NullConnEnable: 异常连接检测条件,空连接防护开关,,取值范围[0,1]
|
614
|
+
# @type NullConnEnable: Integer
|
615
|
+
# @param ConnTimeout: 异常连接检测条件,连接超时,,取值范围[0,65535]
|
616
|
+
# @type ConnTimeout: Integer
|
617
|
+
# @param SynRate: 异常连接检测条件,syn占比ack百分比,,取值范围[0,100]
|
618
|
+
# @type SynRate: Integer
|
619
|
+
# @param SynLimit: 异常连接检测条件,syn阈值,取值范围[0,100]
|
620
|
+
# @type SynLimit: Integer
|
621
|
+
|
622
|
+
attr_accessor :SdNewLimit, :DstNewLimit, :SdConnLimit, :DstConnLimit, :BadConnThreshold, :NullConnEnable, :ConnTimeout, :SynRate, :SynLimit
|
623
|
+
|
624
|
+
def initialize(sdnewlimit=nil, dstnewlimit=nil, sdconnlimit=nil, dstconnlimit=nil, badconnthreshold=nil, nullconnenable=nil, conntimeout=nil, synrate=nil, synlimit=nil)
|
625
|
+
@SdNewLimit = sdnewlimit
|
626
|
+
@DstNewLimit = dstnewlimit
|
627
|
+
@SdConnLimit = sdconnlimit
|
628
|
+
@DstConnLimit = dstconnlimit
|
629
|
+
@BadConnThreshold = badconnthreshold
|
630
|
+
@NullConnEnable = nullconnenable
|
631
|
+
@ConnTimeout = conntimeout
|
632
|
+
@SynRate = synrate
|
633
|
+
@SynLimit = synlimit
|
634
|
+
end
|
635
|
+
|
636
|
+
def deserialize(params)
|
637
|
+
@SdNewLimit = params['SdNewLimit']
|
638
|
+
@DstNewLimit = params['DstNewLimit']
|
639
|
+
@SdConnLimit = params['SdConnLimit']
|
640
|
+
@DstConnLimit = params['DstConnLimit']
|
641
|
+
@BadConnThreshold = params['BadConnThreshold']
|
642
|
+
@NullConnEnable = params['NullConnEnable']
|
643
|
+
@ConnTimeout = params['ConnTimeout']
|
644
|
+
@SynRate = params['SynRate']
|
645
|
+
@SynLimit = params['SynLimit']
|
646
|
+
end
|
647
|
+
end
|
648
|
+
|
601
649
|
# CreateBlackWhiteIpList请求参数结构体
|
602
650
|
class CreateBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel
|
603
651
|
# @param InstanceId: 资源实例ID
|
@@ -793,6 +841,45 @@ module TencentCloud
|
|
793
841
|
end
|
794
842
|
end
|
795
843
|
|
844
|
+
# CreateDDoSConnectLimit请求参数结构体
|
845
|
+
class CreateDDoSConnectLimitRequest < TencentCloud::Common::AbstractModel
|
846
|
+
# @param InstanceId: 资源实例Id
|
847
|
+
# @type InstanceId: String
|
848
|
+
# @param ConnectLimitConfig: 连接抑制配置
|
849
|
+
# @type ConnectLimitConfig: :class:`Tencentcloud::Antiddos.v20200309.models.ConnectLimitConfig`
|
850
|
+
|
851
|
+
attr_accessor :InstanceId, :ConnectLimitConfig
|
852
|
+
|
853
|
+
def initialize(instanceid=nil, connectlimitconfig=nil)
|
854
|
+
@InstanceId = instanceid
|
855
|
+
@ConnectLimitConfig = connectlimitconfig
|
856
|
+
end
|
857
|
+
|
858
|
+
def deserialize(params)
|
859
|
+
@InstanceId = params['InstanceId']
|
860
|
+
unless params['ConnectLimitConfig'].nil?
|
861
|
+
@ConnectLimitConfig = ConnectLimitConfig.new
|
862
|
+
@ConnectLimitConfig.deserialize(params['ConnectLimitConfig'])
|
863
|
+
end
|
864
|
+
end
|
865
|
+
end
|
866
|
+
|
867
|
+
# CreateDDoSConnectLimit返回参数结构体
|
868
|
+
class CreateDDoSConnectLimitResponse < TencentCloud::Common::AbstractModel
|
869
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
870
|
+
# @type RequestId: String
|
871
|
+
|
872
|
+
attr_accessor :RequestId
|
873
|
+
|
874
|
+
def initialize(requestid=nil)
|
875
|
+
@RequestId = requestid
|
876
|
+
end
|
877
|
+
|
878
|
+
def deserialize(params)
|
879
|
+
@RequestId = params['RequestId']
|
880
|
+
end
|
881
|
+
end
|
882
|
+
|
796
883
|
# CreateDDoSGeoIPBlockConfig请求参数结构体
|
797
884
|
class CreateDDoSGeoIPBlockConfigRequest < TencentCloud::Common::AbstractModel
|
798
885
|
# @param InstanceId: 资源实例ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-antiddos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.244
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|