tencentcloud-sdk-waf 3.0.519 → 3.0.521
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/v20180125/client.rb +24 -0
- data/lib/v20180125/models.rb +47 -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: d1b389beb8f35c989083e14e51e726e1bfcbd427
|
4
|
+
data.tar.gz: 17c8d08d4753d9d8f5651dd3f3d84b3ed7f66060
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c38d5e1669de05df666976c897c69f46e80b2544bdfda3490af08ad26b420d6078fbe7604b797a201bd2642567fe1a51bd568150a1dde4b4e76d4d97e7a05410
|
7
|
+
data.tar.gz: 48524ffed7025d74861ec03085b94023a50b22ddac323fa851e3a144ebf4d4fe15d94ef600f36d1ebb7585ed42ce045eccfbf3fd74434ef30193b616a6f93ec1
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.521
|
data/lib/v20180125/client.rb
CHANGED
@@ -342,6 +342,30 @@ module TencentCloud
|
|
342
342
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
343
343
|
end
|
344
344
|
|
345
|
+
# 攻击总览
|
346
|
+
|
347
|
+
# @param request: Request instance for DescribeAttackOverview.
|
348
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeAttackOverviewRequest`
|
349
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeAttackOverviewResponse`
|
350
|
+
def DescribeAttackOverview(request)
|
351
|
+
body = send_request('DescribeAttackOverview', request.serialize)
|
352
|
+
response = JSON.parse(body)
|
353
|
+
if response['Response'].key?('Error') == false
|
354
|
+
model = DescribeAttackOverviewResponse.new
|
355
|
+
model.deserialize(response['Response'])
|
356
|
+
model
|
357
|
+
else
|
358
|
+
code = response['Response']['Error']['Code']
|
359
|
+
message = response['Response']['Error']['Message']
|
360
|
+
reqid = response['Response']['RequestId']
|
361
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
362
|
+
end
|
363
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
364
|
+
raise e
|
365
|
+
rescue StandardError => e
|
366
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
367
|
+
end
|
368
|
+
|
345
369
|
# 描述WAF自动封禁IP详情,对齐自动封堵状态
|
346
370
|
|
347
371
|
# @param request: Request instance for DescribeAutoDenyIP.
|
data/lib/v20180125/models.rb
CHANGED
@@ -1262,6 +1262,53 @@ module TencentCloud
|
|
1262
1262
|
end
|
1263
1263
|
end
|
1264
1264
|
|
1265
|
+
# DescribeAttackOverview请求参数结构体
|
1266
|
+
class DescribeAttackOverviewRequest < TencentCloud::Common::AbstractModel
|
1267
|
+
|
1268
|
+
|
1269
|
+
def initialize()
|
1270
|
+
end
|
1271
|
+
|
1272
|
+
def deserialize(params)
|
1273
|
+
end
|
1274
|
+
end
|
1275
|
+
|
1276
|
+
# DescribeAttackOverview返回参数结构体
|
1277
|
+
class DescribeAttackOverviewResponse < TencentCloud::Common::AbstractModel
|
1278
|
+
# @param AccessCount: 访问请求总数
|
1279
|
+
# @type AccessCount: Integer
|
1280
|
+
# @param AttackCount: Web攻击总数
|
1281
|
+
# @type AttackCount: Integer
|
1282
|
+
# @param ACLCount: 访问控制总数
|
1283
|
+
# @type ACLCount: Integer
|
1284
|
+
# @param CCCount: CC攻击总数
|
1285
|
+
# @type CCCount: Integer
|
1286
|
+
# @param BotCount: Bot攻击总数
|
1287
|
+
# @type BotCount: Integer
|
1288
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1289
|
+
# @type RequestId: String
|
1290
|
+
|
1291
|
+
attr_accessor :AccessCount, :AttackCount, :ACLCount, :CCCount, :BotCount, :RequestId
|
1292
|
+
|
1293
|
+
def initialize(accesscount=nil, attackcount=nil, aclcount=nil, cccount=nil, botcount=nil, requestid=nil)
|
1294
|
+
@AccessCount = accesscount
|
1295
|
+
@AttackCount = attackcount
|
1296
|
+
@ACLCount = aclcount
|
1297
|
+
@CCCount = cccount
|
1298
|
+
@BotCount = botcount
|
1299
|
+
@RequestId = requestid
|
1300
|
+
end
|
1301
|
+
|
1302
|
+
def deserialize(params)
|
1303
|
+
@AccessCount = params['AccessCount']
|
1304
|
+
@AttackCount = params['AttackCount']
|
1305
|
+
@ACLCount = params['ACLCount']
|
1306
|
+
@CCCount = params['CCCount']
|
1307
|
+
@BotCount = params['BotCount']
|
1308
|
+
@RequestId = params['RequestId']
|
1309
|
+
end
|
1310
|
+
end
|
1311
|
+
|
1265
1312
|
# DescribeAutoDenyIP请求参数结构体
|
1266
1313
|
class DescribeAutoDenyIPRequest < TencentCloud::Common::AbstractModel
|
1267
1314
|
# @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.521
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|