tencentcloud-sdk-antiddos 1.0.240 → 1.0.244
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/v20200309/client.rb +72 -0
- data/lib/v20200309/models.rb +206 -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.
|
@@ -317,6 +341,54 @@ module TencentCloud
|
|
317
341
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
342
|
end
|
319
343
|
|
344
|
+
# 添加DDoS防护的端口acl策略
|
345
|
+
|
346
|
+
# @param request: Request instance for CreatePortAclConfig.
|
347
|
+
# @type request: :class:`Tencentcloud::antiddos::V20200309::CreatePortAclConfigRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::antiddos::V20200309::CreatePortAclConfigResponse`
|
349
|
+
def CreatePortAclConfig(request)
|
350
|
+
body = send_request('CreatePortAclConfig', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = CreatePortAclConfigResponse.new
|
354
|
+
model.deserialize(response['Response'])
|
355
|
+
model
|
356
|
+
else
|
357
|
+
code = response['Response']['Error']['Code']
|
358
|
+
message = response['Response']['Error']['Message']
|
359
|
+
reqid = response['Response']['RequestId']
|
360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
+
end
|
362
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
+
raise e
|
364
|
+
rescue StandardError => e
|
365
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
+
end
|
367
|
+
|
368
|
+
# 批量添加DDoS防护的端口acl策略
|
369
|
+
|
370
|
+
# @param request: Request instance for CreatePortAclConfigList.
|
371
|
+
# @type request: :class:`Tencentcloud::antiddos::V20200309::CreatePortAclConfigListRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::antiddos::V20200309::CreatePortAclConfigListResponse`
|
373
|
+
def CreatePortAclConfigList(request)
|
374
|
+
body = send_request('CreatePortAclConfigList', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = CreatePortAclConfigListResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
320
392
|
# 设置DDoS防护的协议封禁配置
|
321
393
|
|
322
394
|
# @param request: Request instance for CreateProtocolBlockConfig.
|
data/lib/v20200309/models.rb
CHANGED
@@ -17,6 +17,47 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Antiddos
|
19
19
|
module V20200309
|
20
|
+
# 基于端口的acl策略
|
21
|
+
class AclConfig < TencentCloud::Common::AbstractModel
|
22
|
+
# @param ForwardProtocol: 协议类型, 可取值tcp, udp, all
|
23
|
+
# @type ForwardProtocol: String
|
24
|
+
# @param DPortStart: 目的端口起始,可取值范围0~65535
|
25
|
+
# @type DPortStart: Integer
|
26
|
+
# @param DPortEnd: 目的端口结束,可取值范围0~65535
|
27
|
+
# @type DPortEnd: Integer
|
28
|
+
# @param SPortStart: 来源端口起始,可取值范围0~65535
|
29
|
+
# @type SPortStart: Integer
|
30
|
+
# @param SPortEnd: 来源端口结束,可取值范围0~65535
|
31
|
+
# @type SPortEnd: Integer
|
32
|
+
# @param Action: 动作,可取值:drop, transmit, forward
|
33
|
+
# @type Action: String
|
34
|
+
# @param Priority: 策略优先级,数字越小,级别越高,该规则越靠前匹配,取值1-1000
|
35
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
36
|
+
# @type Priority: Integer
|
37
|
+
|
38
|
+
attr_accessor :ForwardProtocol, :DPortStart, :DPortEnd, :SPortStart, :SPortEnd, :Action, :Priority
|
39
|
+
|
40
|
+
def initialize(forwardprotocol=nil, dportstart=nil, dportend=nil, sportstart=nil, sportend=nil, action=nil, priority=nil)
|
41
|
+
@ForwardProtocol = forwardprotocol
|
42
|
+
@DPortStart = dportstart
|
43
|
+
@DPortEnd = dportend
|
44
|
+
@SPortStart = sportstart
|
45
|
+
@SPortEnd = sportend
|
46
|
+
@Action = action
|
47
|
+
@Priority = priority
|
48
|
+
end
|
49
|
+
|
50
|
+
def deserialize(params)
|
51
|
+
@ForwardProtocol = params['ForwardProtocol']
|
52
|
+
@DPortStart = params['DPortStart']
|
53
|
+
@DPortEnd = params['DPortEnd']
|
54
|
+
@SPortStart = params['SPortStart']
|
55
|
+
@SPortEnd = params['SPortEnd']
|
56
|
+
@Action = params['Action']
|
57
|
+
@Priority = params['Priority']
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
20
61
|
# AssociateDDoSEipAddress请求参数结构体
|
21
62
|
class AssociateDDoSEipAddressRequest < TencentCloud::Common::AbstractModel
|
22
63
|
# @param InstanceId: 资源实例ID,实例ID形如:bgpip-0000011x。只能填写高防IP实例。
|
@@ -557,6 +598,54 @@ module TencentCloud
|
|
557
598
|
end
|
558
599
|
end
|
559
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
|
+
|
560
649
|
# CreateBlackWhiteIpList请求参数结构体
|
561
650
|
class CreateBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel
|
562
651
|
# @param InstanceId: 资源实例ID
|
@@ -752,6 +841,45 @@ module TencentCloud
|
|
752
841
|
end
|
753
842
|
end
|
754
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
|
+
|
755
883
|
# CreateDDoSGeoIPBlockConfig请求参数结构体
|
756
884
|
class CreateDDoSGeoIPBlockConfigRequest < TencentCloud::Common::AbstractModel
|
757
885
|
# @param InstanceId: 资源实例ID
|
@@ -1000,6 +1128,84 @@ module TencentCloud
|
|
1000
1128
|
end
|
1001
1129
|
end
|
1002
1130
|
|
1131
|
+
# CreatePortAclConfigList请求参数结构体
|
1132
|
+
class CreatePortAclConfigListRequest < TencentCloud::Common::AbstractModel
|
1133
|
+
# @param InstanceIdList: 资源实例ID列表
|
1134
|
+
# @type InstanceIdList: Array
|
1135
|
+
# @param AclConfig: 端口acl策略
|
1136
|
+
# @type AclConfig: :class:`Tencentcloud::Antiddos.v20200309.models.AclConfig`
|
1137
|
+
|
1138
|
+
attr_accessor :InstanceIdList, :AclConfig
|
1139
|
+
|
1140
|
+
def initialize(instanceidlist=nil, aclconfig=nil)
|
1141
|
+
@InstanceIdList = instanceidlist
|
1142
|
+
@AclConfig = aclconfig
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
def deserialize(params)
|
1146
|
+
@InstanceIdList = params['InstanceIdList']
|
1147
|
+
unless params['AclConfig'].nil?
|
1148
|
+
@AclConfig = AclConfig.new
|
1149
|
+
@AclConfig.deserialize(params['AclConfig'])
|
1150
|
+
end
|
1151
|
+
end
|
1152
|
+
end
|
1153
|
+
|
1154
|
+
# CreatePortAclConfigList返回参数结构体
|
1155
|
+
class CreatePortAclConfigListResponse < TencentCloud::Common::AbstractModel
|
1156
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1157
|
+
# @type RequestId: String
|
1158
|
+
|
1159
|
+
attr_accessor :RequestId
|
1160
|
+
|
1161
|
+
def initialize(requestid=nil)
|
1162
|
+
@RequestId = requestid
|
1163
|
+
end
|
1164
|
+
|
1165
|
+
def deserialize(params)
|
1166
|
+
@RequestId = params['RequestId']
|
1167
|
+
end
|
1168
|
+
end
|
1169
|
+
|
1170
|
+
# CreatePortAclConfig请求参数结构体
|
1171
|
+
class CreatePortAclConfigRequest < TencentCloud::Common::AbstractModel
|
1172
|
+
# @param InstanceId: 资源实例ID
|
1173
|
+
# @type InstanceId: String
|
1174
|
+
# @param AclConfig: 端口acl策略
|
1175
|
+
# @type AclConfig: :class:`Tencentcloud::Antiddos.v20200309.models.AclConfig`
|
1176
|
+
|
1177
|
+
attr_accessor :InstanceId, :AclConfig
|
1178
|
+
|
1179
|
+
def initialize(instanceid=nil, aclconfig=nil)
|
1180
|
+
@InstanceId = instanceid
|
1181
|
+
@AclConfig = aclconfig
|
1182
|
+
end
|
1183
|
+
|
1184
|
+
def deserialize(params)
|
1185
|
+
@InstanceId = params['InstanceId']
|
1186
|
+
unless params['AclConfig'].nil?
|
1187
|
+
@AclConfig = AclConfig.new
|
1188
|
+
@AclConfig.deserialize(params['AclConfig'])
|
1189
|
+
end
|
1190
|
+
end
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
# CreatePortAclConfig返回参数结构体
|
1194
|
+
class CreatePortAclConfigResponse < TencentCloud::Common::AbstractModel
|
1195
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1196
|
+
# @type RequestId: String
|
1197
|
+
|
1198
|
+
attr_accessor :RequestId
|
1199
|
+
|
1200
|
+
def initialize(requestid=nil)
|
1201
|
+
@RequestId = requestid
|
1202
|
+
end
|
1203
|
+
|
1204
|
+
def deserialize(params)
|
1205
|
+
@RequestId = params['RequestId']
|
1206
|
+
end
|
1207
|
+
end
|
1208
|
+
|
1003
1209
|
# CreateProtocolBlockConfig请求参数结构体
|
1004
1210
|
class CreateProtocolBlockConfigRequest < TencentCloud::Common::AbstractModel
|
1005
1211
|
# @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
|