tencentcloud-sdk-antiddos 3.0.1184 → 3.0.1185

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b50a6e6832dfb6c6ef04193685bd95d6bb8dbe3
4
- data.tar.gz: 52488826c6cf3a5d8d9a4e2560773b0374493835
3
+ metadata.gz: 21105aeefa4939395fefd7e939e4090ecad61d94
4
+ data.tar.gz: 7828313496b5187cb732fc4fea27e92fff549f28
5
5
  SHA512:
6
- metadata.gz: 29d0cb1b7648612d8759b0acfceef93e5d8b827856a662d3da8fadcf7fb0a3c5599f55312a3e6508f15a7c237d4006c3a2fd0a50a5e6d8ca03c3fe8ca019797a
7
- data.tar.gz: 92cf455343baa2db3b702755e51a3704e756a770a833a89de0f70020581866ef782635fef19ae0c199b20fccef07304fabb4f2d10e1ca87a538dafd83f21c41f
6
+ metadata.gz: a59a39da90b39c9df8dadd6329fc22523c339eb9ed30059d8de5d59c87159b7c286a8ae5e0456670c41e475c7c59bb963d0a554eb0984cf99e4e6758b56a4772
7
+ data.tar.gz: 5b7ebaee96f4b157c84572f5bf98a28fa9f1511f57127e567c1e0360fe628b4b214b07b3c7642729a84d27cbe5695138ddddb09489abd83b6b0846fb3d908682
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1184
1
+ 3.0.1185
@@ -1685,6 +1685,30 @@ module TencentCloud
1685
1685
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1686
1686
  end
1687
1687
 
1688
+ # 获取防护阈值配置列表,包括DDoS的AI、等级、CC阈值开关等等
1689
+
1690
+ # @param request: Request instance for DescribeListProtectThresholdConfigNew.
1691
+ # @type request: :class:`Tencentcloud::antiddos::V20200309::DescribeListProtectThresholdConfigNewRequest`
1692
+ # @rtype: :class:`Tencentcloud::antiddos::V20200309::DescribeListProtectThresholdConfigNewResponse`
1693
+ def DescribeListProtectThresholdConfigNew(request)
1694
+ body = send_request('DescribeListProtectThresholdConfigNew', request.serialize)
1695
+ response = JSON.parse(body)
1696
+ if response['Response'].key?('Error') == false
1697
+ model = DescribeListProtectThresholdConfigNewResponse.new
1698
+ model.deserialize(response['Response'])
1699
+ model
1700
+ else
1701
+ code = response['Response']['Error']['Code']
1702
+ message = response['Response']['Error']['Message']
1703
+ reqid = response['Response']['RequestId']
1704
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1705
+ end
1706
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1707
+ raise e
1708
+ rescue StandardError => e
1709
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1710
+ end
1711
+
1688
1712
  # 获取DDoS防护的协议封禁配置列表
1689
1713
 
1690
1714
  # @param request: Request instance for DescribeListProtocolBlockConfig.
@@ -5438,6 +5438,73 @@ module TencentCloud
5438
5438
  end
5439
5439
  end
5440
5440
 
5441
+ # DescribeListProtectThresholdConfigNew请求参数结构体
5442
+ class DescribeListProtectThresholdConfigNewRequest < TencentCloud::Common::AbstractModel
5443
+ # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
5444
+ # @type Offset: Integer
5445
+ # @param Limit: 一页条数,当Limit=0时,默认一页条数为100;最大取值为100
5446
+ # @type Limit: Integer
5447
+ # @param FilterInstanceId: 资源实例ID搜索, 支持资源实例前缀通配搜索,例如bgp-*表示获取高防包类型的资源实例
5448
+ # @type FilterInstanceId: String
5449
+ # @param FilterIp: IP搜索
5450
+ # @type FilterIp: String
5451
+ # @param FilterDomain: 域名搜索(查询域名与协议的CC防护阈值时使用)
5452
+ # @type FilterDomain: String
5453
+ # @param FilterProtocol: 协议搜索(查询域名与协议的CC防护阈值时使用)
5454
+ # @type FilterProtocol: String
5455
+
5456
+ attr_accessor :Offset, :Limit, :FilterInstanceId, :FilterIp, :FilterDomain, :FilterProtocol
5457
+
5458
+ def initialize(offset=nil, limit=nil, filterinstanceid=nil, filterip=nil, filterdomain=nil, filterprotocol=nil)
5459
+ @Offset = offset
5460
+ @Limit = limit
5461
+ @FilterInstanceId = filterinstanceid
5462
+ @FilterIp = filterip
5463
+ @FilterDomain = filterdomain
5464
+ @FilterProtocol = filterprotocol
5465
+ end
5466
+
5467
+ def deserialize(params)
5468
+ @Offset = params['Offset']
5469
+ @Limit = params['Limit']
5470
+ @FilterInstanceId = params['FilterInstanceId']
5471
+ @FilterIp = params['FilterIp']
5472
+ @FilterDomain = params['FilterDomain']
5473
+ @FilterProtocol = params['FilterProtocol']
5474
+ end
5475
+ end
5476
+
5477
+ # DescribeListProtectThresholdConfigNew返回参数结构体
5478
+ class DescribeListProtectThresholdConfigNewResponse < TencentCloud::Common::AbstractModel
5479
+ # @param Total: 总记录数
5480
+ # @type Total: Integer
5481
+ # @param ConfigList: 防护阈值配置列表
5482
+ # @type ConfigList: Array
5483
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5484
+ # @type RequestId: String
5485
+
5486
+ attr_accessor :Total, :ConfigList, :RequestId
5487
+
5488
+ def initialize(total=nil, configlist=nil, requestid=nil)
5489
+ @Total = total
5490
+ @ConfigList = configlist
5491
+ @RequestId = requestid
5492
+ end
5493
+
5494
+ def deserialize(params)
5495
+ @Total = params['Total']
5496
+ unless params['ConfigList'].nil?
5497
+ @ConfigList = []
5498
+ params['ConfigList'].each do |i|
5499
+ protectthresholdrelationnew_tmp = ProtectThresholdRelationNew.new
5500
+ protectthresholdrelationnew_tmp.deserialize(i)
5501
+ @ConfigList << protectthresholdrelationnew_tmp
5502
+ end
5503
+ end
5504
+ @RequestId = params['RequestId']
5505
+ end
5506
+ end
5507
+
5441
5508
  # DescribeListProtocolBlockConfig请求参数结构体
5442
5509
  class DescribeListProtocolBlockConfigRequest < TencentCloud::Common::AbstractModel
5443
5510
  # @param Offset: 页起始偏移,取值为(页码-1)*一页条数
@@ -6977,6 +7044,34 @@ module TencentCloud
6977
7044
  end
6978
7045
  end
6979
7046
 
7047
+ # 域名与协议纬度的CC防护阈值
7048
+ class ListenerCcThresholdConfig < TencentCloud::Common::AbstractModel
7049
+ # @param Domain: 域名
7050
+ # @type Domain: String
7051
+ # @param Protocol: 协议(可取值https)
7052
+ # @type Protocol: String
7053
+ # @param CCEnable: 开关状态(0:关闭,1:开启)
7054
+ # @type CCEnable: Integer
7055
+ # @param CCThreshold: cc防护阈值
7056
+ # @type CCThreshold: Integer
7057
+
7058
+ attr_accessor :Domain, :Protocol, :CCEnable, :CCThreshold
7059
+
7060
+ def initialize(domain=nil, protocol=nil, ccenable=nil, ccthreshold=nil)
7061
+ @Domain = domain
7062
+ @Protocol = protocol
7063
+ @CCEnable = ccenable
7064
+ @CCThreshold = ccthreshold
7065
+ end
7066
+
7067
+ def deserialize(params)
7068
+ @Domain = params['Domain']
7069
+ @Protocol = params['Protocol']
7070
+ @CCEnable = params['CCEnable']
7071
+ @CCThreshold = params['CCThreshold']
7072
+ end
7073
+ end
7074
+
6980
7075
  # ModifyCCLevelPolicy请求参数结构体
6981
7076
  class ModifyCCLevelPolicyRequest < TencentCloud::Common::AbstractModel
6982
7077
  # @param InstanceId: 实例Id
@@ -8056,6 +8151,120 @@ module TencentCloud
8056
8151
  end
8057
8152
  end
8058
8153
 
8154
+ # 防护阈值配置相关信息
8155
+ class ProtectThresholdRelationNew < TencentCloud::Common::AbstractModel
8156
+ # @param DDoSLevel: DDoS防护等级,取值[
8157
+ # low(宽松)
8158
+ # middle(适中)
8159
+ # high(严格)
8160
+ # ]
8161
+ # @type DDoSLevel: String
8162
+ # @param DDoSThreshold: DDoS清洗阈值,单位Mbps
8163
+ # @type DDoSThreshold: Integer
8164
+ # @param DDoSAI: DDoS的AI防护开关,取值[
8165
+ # on(开启)
8166
+ # off(关闭)
8167
+ # ]
8168
+ # @type DDoSAI: String
8169
+ # @param CCEnable: CC清洗开关,取值[
8170
+ # 0(关闭)
8171
+ # 1(开启)
8172
+ # ]
8173
+ # @type CCEnable: Integer
8174
+ # @param CCThreshold: CC清洗阈值,单位QPS
8175
+ # @type CCThreshold: Integer
8176
+ # @param InstanceDetailList: 所属的资源实例
8177
+ # @type InstanceDetailList: Array
8178
+ # @param ListenerCcThresholdList: 域名与协议纬度的防护阈值
8179
+ # @type ListenerCcThresholdList: Array
8180
+ # @param SynFloodThreshold: SYN FLOOD流量阈值
8181
+ # 注意:此字段可能返回 null,表示取不到有效值。
8182
+ # @type SynFloodThreshold: Integer
8183
+ # @param SynFloodPktThreshold: SYN FLOOD包量阈值
8184
+ # 注意:此字段可能返回 null,表示取不到有效值。
8185
+ # @type SynFloodPktThreshold: Integer
8186
+ # @param UdpFloodThreshold: UDP FLOOD流量阈值
8187
+ # 注意:此字段可能返回 null,表示取不到有效值。
8188
+ # @type UdpFloodThreshold: Integer
8189
+ # @param UdpFloodPktThreshold: UDP FLOOD包量阈值
8190
+ # 注意:此字段可能返回 null,表示取不到有效值。
8191
+ # @type UdpFloodPktThreshold: Integer
8192
+ # @param AckFloodThreshold: ACK FLOOD流量阈值
8193
+ # 注意:此字段可能返回 null,表示取不到有效值。
8194
+ # @type AckFloodThreshold: Integer
8195
+ # @param AckFloodPktThreshold: ACK FLOOD包量阈值
8196
+ # 注意:此字段可能返回 null,表示取不到有效值。
8197
+ # @type AckFloodPktThreshold: Integer
8198
+ # @param SynAckFloodThreshold: SYNACK FLOOD流量阈值
8199
+ # 注意:此字段可能返回 null,表示取不到有效值。
8200
+ # @type SynAckFloodThreshold: Integer
8201
+ # @param SynAckFloodPktThreshold: SYNACK FLOOD包量阈值
8202
+ # 注意:此字段可能返回 null,表示取不到有效值。
8203
+ # @type SynAckFloodPktThreshold: Integer
8204
+ # @param RstFloodThreshold: RST FLOOD流量阈值
8205
+ # 注意:此字段可能返回 null,表示取不到有效值。
8206
+ # @type RstFloodThreshold: Integer
8207
+ # @param RstFloodPktThreshold: RST FLOOD包量阈值
8208
+ # 注意:此字段可能返回 null,表示取不到有效值。
8209
+ # @type RstFloodPktThreshold: Integer
8210
+
8211
+ attr_accessor :DDoSLevel, :DDoSThreshold, :DDoSAI, :CCEnable, :CCThreshold, :InstanceDetailList, :ListenerCcThresholdList, :SynFloodThreshold, :SynFloodPktThreshold, :UdpFloodThreshold, :UdpFloodPktThreshold, :AckFloodThreshold, :AckFloodPktThreshold, :SynAckFloodThreshold, :SynAckFloodPktThreshold, :RstFloodThreshold, :RstFloodPktThreshold
8212
+
8213
+ def initialize(ddoslevel=nil, ddosthreshold=nil, ddosai=nil, ccenable=nil, ccthreshold=nil, instancedetaillist=nil, listenerccthresholdlist=nil, synfloodthreshold=nil, synfloodpktthreshold=nil, udpfloodthreshold=nil, udpfloodpktthreshold=nil, ackfloodthreshold=nil, ackfloodpktthreshold=nil, synackfloodthreshold=nil, synackfloodpktthreshold=nil, rstfloodthreshold=nil, rstfloodpktthreshold=nil)
8214
+ @DDoSLevel = ddoslevel
8215
+ @DDoSThreshold = ddosthreshold
8216
+ @DDoSAI = ddosai
8217
+ @CCEnable = ccenable
8218
+ @CCThreshold = ccthreshold
8219
+ @InstanceDetailList = instancedetaillist
8220
+ @ListenerCcThresholdList = listenerccthresholdlist
8221
+ @SynFloodThreshold = synfloodthreshold
8222
+ @SynFloodPktThreshold = synfloodpktthreshold
8223
+ @UdpFloodThreshold = udpfloodthreshold
8224
+ @UdpFloodPktThreshold = udpfloodpktthreshold
8225
+ @AckFloodThreshold = ackfloodthreshold
8226
+ @AckFloodPktThreshold = ackfloodpktthreshold
8227
+ @SynAckFloodThreshold = synackfloodthreshold
8228
+ @SynAckFloodPktThreshold = synackfloodpktthreshold
8229
+ @RstFloodThreshold = rstfloodthreshold
8230
+ @RstFloodPktThreshold = rstfloodpktthreshold
8231
+ end
8232
+
8233
+ def deserialize(params)
8234
+ @DDoSLevel = params['DDoSLevel']
8235
+ @DDoSThreshold = params['DDoSThreshold']
8236
+ @DDoSAI = params['DDoSAI']
8237
+ @CCEnable = params['CCEnable']
8238
+ @CCThreshold = params['CCThreshold']
8239
+ unless params['InstanceDetailList'].nil?
8240
+ @InstanceDetailList = []
8241
+ params['InstanceDetailList'].each do |i|
8242
+ instancerelation_tmp = InstanceRelation.new
8243
+ instancerelation_tmp.deserialize(i)
8244
+ @InstanceDetailList << instancerelation_tmp
8245
+ end
8246
+ end
8247
+ unless params['ListenerCcThresholdList'].nil?
8248
+ @ListenerCcThresholdList = []
8249
+ params['ListenerCcThresholdList'].each do |i|
8250
+ listenerccthresholdconfig_tmp = ListenerCcThresholdConfig.new
8251
+ listenerccthresholdconfig_tmp.deserialize(i)
8252
+ @ListenerCcThresholdList << listenerccthresholdconfig_tmp
8253
+ end
8254
+ end
8255
+ @SynFloodThreshold = params['SynFloodThreshold']
8256
+ @SynFloodPktThreshold = params['SynFloodPktThreshold']
8257
+ @UdpFloodThreshold = params['UdpFloodThreshold']
8258
+ @UdpFloodPktThreshold = params['UdpFloodPktThreshold']
8259
+ @AckFloodThreshold = params['AckFloodThreshold']
8260
+ @AckFloodPktThreshold = params['AckFloodPktThreshold']
8261
+ @SynAckFloodThreshold = params['SynAckFloodThreshold']
8262
+ @SynAckFloodPktThreshold = params['SynAckFloodPktThreshold']
8263
+ @RstFloodThreshold = params['RstFloodThreshold']
8264
+ @RstFloodPktThreshold = params['RstFloodPktThreshold']
8265
+ end
8266
+ end
8267
+
8059
8268
  # 协议封禁配置
8060
8269
  class ProtocolBlockConfig < TencentCloud::Common::AbstractModel
8061
8270
  # @param DropTcp: TCP封禁,取值[0(封禁关),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: 3.0.1184
4
+ version: 3.0.1185
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-12-18 00:00:00.000000000 Z
11
+ date: 2025-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20200309/models.rb
37
- - lib/v20200309/client.rb
38
36
  - lib/tencentcloud-sdk-antiddos.rb
37
+ - lib/v20200309/client.rb
38
+ - lib/v20200309/models.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: