tencentcloud-sdk-captcha 3.0.510 → 3.0.511
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/v20190722/client.rb +48 -0
- data/lib/v20190722/models.rb +54 -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: bcb0348680bc1827b1f0900e571d035fa4e66c2b
|
4
|
+
data.tar.gz: b7b9b79bcf2178da4df1efcbd5edbaf81edb53c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e26d8f80f1d853b969dfc8cde96c1edf14c0b4775b441159918dab4b81ec485793e58e8648b5134c9a34041db6b2b0033e1a7d223077ae9890f617cc937113f2
|
7
|
+
data.tar.gz: 0543dec20a00994874037e7326b109c8dfde9e25539358f68dfd552de304a0661a94b4e828bac20a8b5623d19606bdfcef634db88a609e5fc01c43f711ce69c3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.511
|
data/lib/v20190722/client.rb
CHANGED
@@ -317,6 +317,30 @@ module TencentCloud
|
|
317
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
318
|
end
|
319
319
|
|
320
|
+
# 查询单个CaptchaAppID验证的统计数据,包括:请求量、验证量、验证通过量、验证拦截量。
|
321
|
+
|
322
|
+
# @param request: Request instance for GetRequestStatistics.
|
323
|
+
# @type request: :class:`Tencentcloud::captcha::V20190722::GetRequestStatisticsRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::captcha::V20190722::GetRequestStatisticsResponse`
|
325
|
+
def GetRequestStatistics(request)
|
326
|
+
body = send_request('GetRequestStatistics', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = GetRequestStatisticsResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
320
344
|
# 查询单个CaptchaAppID票据校验数据,包括:票据校验量、票据校验通过量、票据校验拦截量。
|
321
345
|
|
322
346
|
# @param request: Request instance for GetTicketStatistics.
|
@@ -341,6 +365,30 @@ module TencentCloud
|
|
341
365
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
366
|
end
|
343
367
|
|
368
|
+
# 查询全部验证的统计数据,包括:总请求量、总验证量、总验证通过量、总验证拦截量等数据。
|
369
|
+
|
370
|
+
# @param request: Request instance for GetTotalRequestStatistics.
|
371
|
+
# @type request: :class:`Tencentcloud::captcha::V20190722::GetTotalRequestStatisticsRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::captcha::V20190722::GetTotalRequestStatisticsResponse`
|
373
|
+
def GetTotalRequestStatistics(request)
|
374
|
+
body = send_request('GetTotalRequestStatistics', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = GetTotalRequestStatisticsResponse.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
|
+
|
344
392
|
# 查询全部票据校验的统计数据,包括:总票据校验量、总票据校验通过量、总票据校验拦截量。
|
345
393
|
|
346
394
|
# @param request: Request instance for GetTotalTicketStatistics.
|
data/lib/v20190722/models.rb
CHANGED
@@ -1238,6 +1238,33 @@ module TencentCloud
|
|
1238
1238
|
end
|
1239
1239
|
end
|
1240
1240
|
|
1241
|
+
# GetRequestStatistics请求参数结构体
|
1242
|
+
class GetRequestStatisticsRequest < TencentCloud::Common::AbstractModel
|
1243
|
+
|
1244
|
+
|
1245
|
+
def initialize()
|
1246
|
+
end
|
1247
|
+
|
1248
|
+
def deserialize(params)
|
1249
|
+
end
|
1250
|
+
end
|
1251
|
+
|
1252
|
+
# GetRequestStatistics返回参数结构体
|
1253
|
+
class GetRequestStatisticsResponse < TencentCloud::Common::AbstractModel
|
1254
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1255
|
+
# @type RequestId: String
|
1256
|
+
|
1257
|
+
attr_accessor :RequestId
|
1258
|
+
|
1259
|
+
def initialize(requestid=nil)
|
1260
|
+
@RequestId = requestid
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
def deserialize(params)
|
1264
|
+
@RequestId = params['RequestId']
|
1265
|
+
end
|
1266
|
+
end
|
1267
|
+
|
1241
1268
|
# GetTicketStatistics请求参数结构体
|
1242
1269
|
class GetTicketStatisticsRequest < TencentCloud::Common::AbstractModel
|
1243
1270
|
# @param CaptchaAppId: 验证码AppId
|
@@ -1298,6 +1325,33 @@ module TencentCloud
|
|
1298
1325
|
end
|
1299
1326
|
end
|
1300
1327
|
|
1328
|
+
# GetTotalRequestStatistics请求参数结构体
|
1329
|
+
class GetTotalRequestStatisticsRequest < TencentCloud::Common::AbstractModel
|
1330
|
+
|
1331
|
+
|
1332
|
+
def initialize()
|
1333
|
+
end
|
1334
|
+
|
1335
|
+
def deserialize(params)
|
1336
|
+
end
|
1337
|
+
end
|
1338
|
+
|
1339
|
+
# GetTotalRequestStatistics返回参数结构体
|
1340
|
+
class GetTotalRequestStatisticsResponse < TencentCloud::Common::AbstractModel
|
1341
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1342
|
+
# @type RequestId: String
|
1343
|
+
|
1344
|
+
attr_accessor :RequestId
|
1345
|
+
|
1346
|
+
def initialize(requestid=nil)
|
1347
|
+
@RequestId = requestid
|
1348
|
+
end
|
1349
|
+
|
1350
|
+
def deserialize(params)
|
1351
|
+
@RequestId = params['RequestId']
|
1352
|
+
end
|
1353
|
+
end
|
1354
|
+
|
1301
1355
|
# GetTotalTicketStatistics请求参数结构体
|
1302
1356
|
class GetTotalTicketStatisticsRequest < TencentCloud::Common::AbstractModel
|
1303
1357
|
# @param StartTimeStr: 开始时间
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-captcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.511
|
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-02-
|
11
|
+
date: 2023-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|