tencentcloud-sdk-antiddos 1.0.243 → 1.0.247

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2edb99a19e6fa62b6238576abbea4616a18a3083
4
- data.tar.gz: 7dd6c54093030997f62fa7ffc14137e61940e53a
3
+ metadata.gz: d6b8d70fba7033dd18ba03fc7651f76f34a1d512
4
+ data.tar.gz: c7e92e82084a035f4ee7f9088130a88c534a73ab
5
5
  SHA512:
6
- metadata.gz: a7327d72cb1f7b5efde4b9057073158080abd7dadbe81f80b89faafaea2264e1f8581d3bb8b8aa16aee63ac908afcab96aa84af85d988b6de4c0e6e45e2d7f8a
7
- data.tar.gz: e4ecc0843cdf99fefab171741e021c2f6ac2d6bf8a8e53eac43b96cd0d930baafaf3a46f0108f8c7ee3a04ffcf24f5bf832174120da87dccc90d6e81ab755b28
6
+ metadata.gz: c5e8b2072dfdf5a3271fc1eb7257c4a2e74271f022c535d17a6365aca33e33608a2d1142eef781c68b1487aab837046488e4ccdde8be9af288386fa4e53a36ef
7
+ data.tar.gz: 905ac082411e9a3f70f342ad663e523c96edaa294c9be7ee3d5648c3ce89b0e0c226374f106dfdf2ff3ac7972d8edf7c65d836e8dcd52de72d8ba4af54abe1ea
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.243
1
+ 1.0.247
@@ -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.
@@ -749,6 +773,30 @@ module TencentCloud
749
773
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
750
774
  end
751
775
 
776
+ # 获取DDoS连接抑制配置列表
777
+
778
+ # @param request: Request instance for DescribeDDoSConnectLimitList.
779
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeDDoSConnectLimitListRequest`
780
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeDDoSConnectLimitListResponse`
781
+ def DescribeDDoSConnectLimitList(request)
782
+ body = send_request('DescribeDDoSConnectLimitList', request.serialize)
783
+ response = JSON.parse(body)
784
+ if response['Response'].key?('Error') == false
785
+ model = DescribeDDoSConnectLimitListResponse.new
786
+ model.deserialize(response['Response'])
787
+ model
788
+ else
789
+ code = response['Response']['Error']['Code']
790
+ message = response['Response']['Error']['Message']
791
+ reqid = response['Response']['RequestId']
792
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
793
+ end
794
+ rescue TencentCloud::Common::TencentCloudSDKException => e
795
+ raise e
796
+ rescue StandardError => e
797
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
798
+ end
799
+
752
800
  # 获取DDoS攻击流量带宽和攻击包速率数据
753
801
 
754
802
  # @param request: Request instance for DescribeDDoSTrend.
@@ -1037,6 +1085,30 @@ module TencentCloud
1037
1085
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1038
1086
  end
1039
1087
 
1088
+ # 获取DDoS防护的端口acl策略列表
1089
+
1090
+ # @param request: Request instance for DescribeListPortAclList.
1091
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeListPortAclListRequest`
1092
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeListPortAclListResponse`
1093
+ def DescribeListPortAclList(request)
1094
+ body = send_request('DescribeListPortAclList', request.serialize)
1095
+ response = JSON.parse(body)
1096
+ if response['Response'].key?('Error') == false
1097
+ model = DescribeListPortAclListResponse.new
1098
+ model.deserialize(response['Response'])
1099
+ model
1100
+ else
1101
+ code = response['Response']['Error']['Code']
1102
+ message = response['Response']['Error']['Message']
1103
+ reqid = response['Response']['RequestId']
1104
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1105
+ end
1106
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1107
+ raise e
1108
+ rescue StandardError => e
1109
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1110
+ end
1111
+
1040
1112
  # 获取防护阈值配置列表,包括DDoS的AI、等级、CC阈值开关等
1041
1113
 
1042
1114
  # @param request: Request instance for DescribeListProtectThresholdConfig.
@@ -58,6 +58,36 @@ module TencentCloud
58
58
  end
59
59
  end
60
60
 
61
+ # 端口acl策略配置与高防资源关联
62
+ class AclConfigRelation < TencentCloud::Common::AbstractModel
63
+ # @param AclConfig: acl策略
64
+ # @type AclConfig: :class:`Tencentcloud::Antiddos.v20200309.models.AclConfig`
65
+ # @param InstanceDetailList: 实例列表
66
+ # @type InstanceDetailList: Array
67
+
68
+ attr_accessor :AclConfig, :InstanceDetailList
69
+
70
+ def initialize(aclconfig=nil, instancedetaillist=nil)
71
+ @AclConfig = aclconfig
72
+ @InstanceDetailList = instancedetaillist
73
+ end
74
+
75
+ def deserialize(params)
76
+ unless params['AclConfig'].nil?
77
+ @AclConfig = AclConfig.new
78
+ @AclConfig.deserialize(params['AclConfig'])
79
+ end
80
+ unless params['InstanceDetailList'].nil?
81
+ @InstanceDetailList = []
82
+ params['InstanceDetailList'].each do |i|
83
+ instancerelation_tmp = InstanceRelation.new
84
+ instancerelation_tmp.deserialize(i)
85
+ @InstanceDetailList << instancerelation_tmp
86
+ end
87
+ end
88
+ end
89
+ end
90
+
61
91
  # AssociateDDoSEipAddress请求参数结构体
62
92
  class AssociateDDoSEipAddressRequest < TencentCloud::Common::AbstractModel
63
93
  # @param InstanceId: 资源实例ID,实例ID形如:bgpip-0000011x。只能填写高防IP实例。
@@ -598,6 +628,84 @@ module TencentCloud
598
628
  end
599
629
  end
600
630
 
631
+ # 连接抑制相关配置
632
+ class ConnectLimitConfig < TencentCloud::Common::AbstractModel
633
+ # @param SdNewLimit: 基于源IP+目的IP的每秒新建数限制
634
+ # @type SdNewLimit: Integer
635
+ # @param DstNewLimit: 基于目的IP的每秒新建数限制
636
+ # @type DstNewLimit: Integer
637
+ # @param SdConnLimit: 基于源IP+目的IP的并发连接控制
638
+ # @type SdConnLimit: Integer
639
+ # @param DstConnLimit: 基于目的IP+目的端口的并发连接控制
640
+ # @type DstConnLimit: Integer
641
+ # @param BadConnThreshold: 基于连接抑制触发阈值,取值范围[0,4294967295]
642
+ # @type BadConnThreshold: Integer
643
+ # @param NullConnEnable: 异常连接检测条件,空连接防护开关,,取值范围[0,1]
644
+ # @type NullConnEnable: Integer
645
+ # @param ConnTimeout: 异常连接检测条件,连接超时,,取值范围[0,65535]
646
+ # @type ConnTimeout: Integer
647
+ # @param SynRate: 异常连接检测条件,syn占比ack百分比,,取值范围[0,100]
648
+ # @type SynRate: Integer
649
+ # @param SynLimit: 异常连接检测条件,syn阈值,取值范围[0,100]
650
+ # @type SynLimit: Integer
651
+
652
+ attr_accessor :SdNewLimit, :DstNewLimit, :SdConnLimit, :DstConnLimit, :BadConnThreshold, :NullConnEnable, :ConnTimeout, :SynRate, :SynLimit
653
+
654
+ def initialize(sdnewlimit=nil, dstnewlimit=nil, sdconnlimit=nil, dstconnlimit=nil, badconnthreshold=nil, nullconnenable=nil, conntimeout=nil, synrate=nil, synlimit=nil)
655
+ @SdNewLimit = sdnewlimit
656
+ @DstNewLimit = dstnewlimit
657
+ @SdConnLimit = sdconnlimit
658
+ @DstConnLimit = dstconnlimit
659
+ @BadConnThreshold = badconnthreshold
660
+ @NullConnEnable = nullconnenable
661
+ @ConnTimeout = conntimeout
662
+ @SynRate = synrate
663
+ @SynLimit = synlimit
664
+ end
665
+
666
+ def deserialize(params)
667
+ @SdNewLimit = params['SdNewLimit']
668
+ @DstNewLimit = params['DstNewLimit']
669
+ @SdConnLimit = params['SdConnLimit']
670
+ @DstConnLimit = params['DstConnLimit']
671
+ @BadConnThreshold = params['BadConnThreshold']
672
+ @NullConnEnable = params['NullConnEnable']
673
+ @ConnTimeout = params['ConnTimeout']
674
+ @SynRate = params['SynRate']
675
+ @SynLimit = params['SynLimit']
676
+ end
677
+ end
678
+
679
+ # 连接抑制列表
680
+ class ConnectLimitRelation < TencentCloud::Common::AbstractModel
681
+ # @param ConnectLimitConfig: 连接抑制配置
682
+ # @type ConnectLimitConfig: :class:`Tencentcloud::Antiddos.v20200309.models.ConnectLimitConfig`
683
+ # @param InstanceDetailList: 连接抑制关联的实例信息
684
+ # @type InstanceDetailList: Array
685
+
686
+ attr_accessor :ConnectLimitConfig, :InstanceDetailList
687
+
688
+ def initialize(connectlimitconfig=nil, instancedetaillist=nil)
689
+ @ConnectLimitConfig = connectlimitconfig
690
+ @InstanceDetailList = instancedetaillist
691
+ end
692
+
693
+ def deserialize(params)
694
+ unless params['ConnectLimitConfig'].nil?
695
+ @ConnectLimitConfig = ConnectLimitConfig.new
696
+ @ConnectLimitConfig.deserialize(params['ConnectLimitConfig'])
697
+ end
698
+ unless params['InstanceDetailList'].nil?
699
+ @InstanceDetailList = []
700
+ params['InstanceDetailList'].each do |i|
701
+ instancerelation_tmp = InstanceRelation.new
702
+ instancerelation_tmp.deserialize(i)
703
+ @InstanceDetailList << instancerelation_tmp
704
+ end
705
+ end
706
+ end
707
+ end
708
+
601
709
  # CreateBlackWhiteIpList请求参数结构体
602
710
  class CreateBlackWhiteIpListRequest < TencentCloud::Common::AbstractModel
603
711
  # @param InstanceId: 资源实例ID
@@ -793,6 +901,45 @@ module TencentCloud
793
901
  end
794
902
  end
795
903
 
904
+ # CreateDDoSConnectLimit请求参数结构体
905
+ class CreateDDoSConnectLimitRequest < TencentCloud::Common::AbstractModel
906
+ # @param InstanceId: 资源实例Id
907
+ # @type InstanceId: String
908
+ # @param ConnectLimitConfig: 连接抑制配置
909
+ # @type ConnectLimitConfig: :class:`Tencentcloud::Antiddos.v20200309.models.ConnectLimitConfig`
910
+
911
+ attr_accessor :InstanceId, :ConnectLimitConfig
912
+
913
+ def initialize(instanceid=nil, connectlimitconfig=nil)
914
+ @InstanceId = instanceid
915
+ @ConnectLimitConfig = connectlimitconfig
916
+ end
917
+
918
+ def deserialize(params)
919
+ @InstanceId = params['InstanceId']
920
+ unless params['ConnectLimitConfig'].nil?
921
+ @ConnectLimitConfig = ConnectLimitConfig.new
922
+ @ConnectLimitConfig.deserialize(params['ConnectLimitConfig'])
923
+ end
924
+ end
925
+ end
926
+
927
+ # CreateDDoSConnectLimit返回参数结构体
928
+ class CreateDDoSConnectLimitResponse < TencentCloud::Common::AbstractModel
929
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
930
+ # @type RequestId: String
931
+
932
+ attr_accessor :RequestId
933
+
934
+ def initialize(requestid=nil)
935
+ @RequestId = requestid
936
+ end
937
+
938
+ def deserialize(params)
939
+ @RequestId = params['RequestId']
940
+ end
941
+ end
942
+
796
943
  # CreateDDoSGeoIPBlockConfig请求参数结构体
797
944
  class CreateDDoSGeoIPBlockConfigRequest < TencentCloud::Common::AbstractModel
798
945
  # @param InstanceId: 资源实例ID
@@ -2056,6 +2203,65 @@ module TencentCloud
2056
2203
  end
2057
2204
  end
2058
2205
 
2206
+ # DescribeDDoSConnectLimitList请求参数结构体
2207
+ class DescribeDDoSConnectLimitListRequest < TencentCloud::Common::AbstractModel
2208
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
2209
+ # @type Offset: Integer
2210
+ # @param Limit: 一页条数
2211
+ # @type Limit: Integer
2212
+ # @param FilterIp: 可选参数,按照IP进行过滤
2213
+ # @type FilterIp: String
2214
+ # @param FilterInstanceId: 可选参数,按照实例id进行过滤
2215
+ # @type FilterInstanceId: String
2216
+
2217
+ attr_accessor :Offset, :Limit, :FilterIp, :FilterInstanceId
2218
+
2219
+ def initialize(offset=nil, limit=nil, filterip=nil, filterinstanceid=nil)
2220
+ @Offset = offset
2221
+ @Limit = limit
2222
+ @FilterIp = filterip
2223
+ @FilterInstanceId = filterinstanceid
2224
+ end
2225
+
2226
+ def deserialize(params)
2227
+ @Offset = params['Offset']
2228
+ @Limit = params['Limit']
2229
+ @FilterIp = params['FilterIp']
2230
+ @FilterInstanceId = params['FilterInstanceId']
2231
+ end
2232
+ end
2233
+
2234
+ # DescribeDDoSConnectLimitList返回参数结构体
2235
+ class DescribeDDoSConnectLimitListResponse < TencentCloud::Common::AbstractModel
2236
+ # @param Total: 连接抑制配置总数
2237
+ # @type Total: Integer
2238
+ # @param ConfigList: 连接抑制配置详情信息
2239
+ # @type ConfigList: Array
2240
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2241
+ # @type RequestId: String
2242
+
2243
+ attr_accessor :Total, :ConfigList, :RequestId
2244
+
2245
+ def initialize(total=nil, configlist=nil, requestid=nil)
2246
+ @Total = total
2247
+ @ConfigList = configlist
2248
+ @RequestId = requestid
2249
+ end
2250
+
2251
+ def deserialize(params)
2252
+ @Total = params['Total']
2253
+ unless params['ConfigList'].nil?
2254
+ @ConfigList = []
2255
+ params['ConfigList'].each do |i|
2256
+ connectlimitrelation_tmp = ConnectLimitRelation.new
2257
+ connectlimitrelation_tmp.deserialize(i)
2258
+ @ConfigList << connectlimitrelation_tmp
2259
+ end
2260
+ end
2261
+ @RequestId = params['RequestId']
2262
+ end
2263
+ end
2264
+
2059
2265
  # DescribeDDoSTrend请求参数结构体
2060
2266
  class DescribeDDoSTrendRequest < TencentCloud::Common::AbstractModel
2061
2267
  # @param Business: 大禹子产品代号(bgpip表示高防IP;bgp表示独享包;bgp-multip表示共享包;net表示高防IP专业版;basic表示DDoS基础防护)
@@ -2831,6 +3037,65 @@ module TencentCloud
2831
3037
  end
2832
3038
  end
2833
3039
 
3040
+ # DescribeListPortAclList请求参数结构体
3041
+ class DescribeListPortAclListRequest < TencentCloud::Common::AbstractModel
3042
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
3043
+ # @type Offset: Integer
3044
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为100;最大取值为100
3045
+ # @type Limit: Integer
3046
+ # @param FilterInstanceId: 资源实例ID搜索, 支持资源实例前缀通配搜索,例如bgp-*表示获取高防包类型的资源实例
3047
+ # @type FilterInstanceId: String
3048
+ # @param FilterIp: ip搜索
3049
+ # @type FilterIp: String
3050
+
3051
+ attr_accessor :Offset, :Limit, :FilterInstanceId, :FilterIp
3052
+
3053
+ def initialize(offset=nil, limit=nil, filterinstanceid=nil, filterip=nil)
3054
+ @Offset = offset
3055
+ @Limit = limit
3056
+ @FilterInstanceId = filterinstanceid
3057
+ @FilterIp = filterip
3058
+ end
3059
+
3060
+ def deserialize(params)
3061
+ @Offset = params['Offset']
3062
+ @Limit = params['Limit']
3063
+ @FilterInstanceId = params['FilterInstanceId']
3064
+ @FilterIp = params['FilterIp']
3065
+ end
3066
+ end
3067
+
3068
+ # DescribeListPortAclList返回参数结构体
3069
+ class DescribeListPortAclListResponse < TencentCloud::Common::AbstractModel
3070
+ # @param Total: 总数
3071
+ # @type Total: Integer
3072
+ # @param AclList: 端口acl策略
3073
+ # @type AclList: Array
3074
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3075
+ # @type RequestId: String
3076
+
3077
+ attr_accessor :Total, :AclList, :RequestId
3078
+
3079
+ def initialize(total=nil, acllist=nil, requestid=nil)
3080
+ @Total = total
3081
+ @AclList = acllist
3082
+ @RequestId = requestid
3083
+ end
3084
+
3085
+ def deserialize(params)
3086
+ @Total = params['Total']
3087
+ unless params['AclList'].nil?
3088
+ @AclList = []
3089
+ params['AclList'].each do |i|
3090
+ aclconfigrelation_tmp = AclConfigRelation.new
3091
+ aclconfigrelation_tmp.deserialize(i)
3092
+ @AclList << aclconfigrelation_tmp
3093
+ end
3094
+ end
3095
+ @RequestId = params['RequestId']
3096
+ end
3097
+ end
3098
+
2834
3099
  # DescribeListProtectThresholdConfig请求参数结构体
2835
3100
  class DescribeListProtectThresholdConfigRequest < TencentCloud::Common::AbstractModel
2836
3101
  # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
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.243
4
+ version: 1.0.247
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-17 00:00:00.000000000 Z
11
+ date: 2022-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common