tencentcloud-sdk-captcha 3.0.429 → 3.0.431
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/v20190722/client.rb +24 -0
- data/lib/v20190722/models.rb +223 -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: 469a2c307087b16e1a2ad7509b4f8f06ff699f69
|
4
|
+
data.tar.gz: 841ad779a8a1304c212ac31ed58f387e903a97f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c1f287b45a75b50b523b419abcf2ddf6c5e99089a6f2875fa3f14ed2d9cc85acc3b9ae72cffdc42fb4dc4684681e48ee934a2e0de8422449fb1ad87408633de
|
7
|
+
data.tar.gz: d39ba27f00d70fea78689544e97473c0709ff2dad9b6fb2fcc1639081763f3960802b57c14025aaabe7bdbcaa5dc81e1e59e966f7cd50974f2862cb534457653
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.431
|
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
|
+
# 查询所有验证的统计数据,包括:总票据校验量、总票据校验通过量、总票据校验拦截量。
|
321
|
+
|
322
|
+
# @param request: Request instance for GetTotalTicketStatistics.
|
323
|
+
# @type request: :class:`Tencentcloud::captcha::V20190722::GetTotalTicketStatisticsRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::captcha::V20190722::GetTotalTicketStatisticsResponse`
|
325
|
+
def GetTotalTicketStatistics(request)
|
326
|
+
body = send_request('GetTotalTicketStatistics', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = GetTotalTicketStatisticsResponse.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
|
# 更新验证码应用APPId信息
|
321
345
|
|
322
346
|
# @param request: Request instance for UpdateCaptchaAppIdInfo.
|
data/lib/v20190722/models.rb
CHANGED
@@ -193,6 +193,82 @@ module TencentCloud
|
|
193
193
|
end
|
194
194
|
end
|
195
195
|
|
196
|
+
# 验证码统计图Obj
|
197
|
+
class CaptchaStatisticObj < TencentCloud::Common::AbstractModel
|
198
|
+
# @param ActionTotal: 请求总量
|
199
|
+
# @type ActionTotal: Integer
|
200
|
+
# @param VerifyTotal: 验证总量
|
201
|
+
# @type VerifyTotal: Integer
|
202
|
+
# @param VerifyThroughTotal: 验证通过总量
|
203
|
+
# @type VerifyThroughTotal: Integer
|
204
|
+
# @param VerifyInterceptTotal: 验证拦截总量
|
205
|
+
# @type VerifyInterceptTotal: Integer
|
206
|
+
# @param TicketTotal: 票据校验总量
|
207
|
+
# @type TicketTotal: Integer
|
208
|
+
# @param TicketThroughTotal: 票据通过总量
|
209
|
+
# @type TicketThroughTotal: Integer
|
210
|
+
# @param TicketInterceptTotal: 票据拦截总量
|
211
|
+
# @type TicketInterceptTotal: Integer
|
212
|
+
# @param RequestTrend: 请求趋势图
|
213
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
214
|
+
# @type RequestTrend: Array
|
215
|
+
# @param InterceptPerTrend: 拦截率趋势图
|
216
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
217
|
+
# @type InterceptPerTrend: Array
|
218
|
+
# @param TicketCheckTrend: 票据校验趋势图
|
219
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
220
|
+
# @type TicketCheckTrend: Array
|
221
|
+
|
222
|
+
attr_accessor :ActionTotal, :VerifyTotal, :VerifyThroughTotal, :VerifyInterceptTotal, :TicketTotal, :TicketThroughTotal, :TicketInterceptTotal, :RequestTrend, :InterceptPerTrend, :TicketCheckTrend
|
223
|
+
|
224
|
+
def initialize(actiontotal=nil, verifytotal=nil, verifythroughtotal=nil, verifyintercepttotal=nil, tickettotal=nil, ticketthroughtotal=nil, ticketintercepttotal=nil, requesttrend=nil, interceptpertrend=nil, ticketchecktrend=nil)
|
225
|
+
@ActionTotal = actiontotal
|
226
|
+
@VerifyTotal = verifytotal
|
227
|
+
@VerifyThroughTotal = verifythroughtotal
|
228
|
+
@VerifyInterceptTotal = verifyintercepttotal
|
229
|
+
@TicketTotal = tickettotal
|
230
|
+
@TicketThroughTotal = ticketthroughtotal
|
231
|
+
@TicketInterceptTotal = ticketintercepttotal
|
232
|
+
@RequestTrend = requesttrend
|
233
|
+
@InterceptPerTrend = interceptpertrend
|
234
|
+
@TicketCheckTrend = ticketchecktrend
|
235
|
+
end
|
236
|
+
|
237
|
+
def deserialize(params)
|
238
|
+
@ActionTotal = params['ActionTotal']
|
239
|
+
@VerifyTotal = params['VerifyTotal']
|
240
|
+
@VerifyThroughTotal = params['VerifyThroughTotal']
|
241
|
+
@VerifyInterceptTotal = params['VerifyInterceptTotal']
|
242
|
+
@TicketTotal = params['TicketTotal']
|
243
|
+
@TicketThroughTotal = params['TicketThroughTotal']
|
244
|
+
@TicketInterceptTotal = params['TicketInterceptTotal']
|
245
|
+
unless params['RequestTrend'].nil?
|
246
|
+
@RequestTrend = []
|
247
|
+
params['RequestTrend'].each do |i|
|
248
|
+
requesttrendobj_tmp = RequestTrendObj.new
|
249
|
+
requesttrendobj_tmp.deserialize(i)
|
250
|
+
@RequestTrend << requesttrendobj_tmp
|
251
|
+
end
|
252
|
+
end
|
253
|
+
unless params['InterceptPerTrend'].nil?
|
254
|
+
@InterceptPerTrend = []
|
255
|
+
params['InterceptPerTrend'].each do |i|
|
256
|
+
interceptpertrendobj_tmp = InterceptPerTrendObj.new
|
257
|
+
interceptpertrendobj_tmp.deserialize(i)
|
258
|
+
@InterceptPerTrend << interceptpertrendobj_tmp
|
259
|
+
end
|
260
|
+
end
|
261
|
+
unless params['TicketCheckTrend'].nil?
|
262
|
+
@TicketCheckTrend = []
|
263
|
+
params['TicketCheckTrend'].each do |i|
|
264
|
+
ticketchecktrendobj_tmp = TicketCheckTrendObj.new
|
265
|
+
ticketchecktrendobj_tmp.deserialize(i)
|
266
|
+
@TicketCheckTrend << ticketchecktrendobj_tmp
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
196
272
|
# DescribeCaptchaTicketData 接口 返回数据类型集合
|
197
273
|
class CaptchaTicketDataRes < TencentCloud::Common::AbstractModel
|
198
274
|
# @param TicketAmountArray: 票据验证总量返回
|
@@ -1161,6 +1237,93 @@ module TencentCloud
|
|
1161
1237
|
end
|
1162
1238
|
end
|
1163
1239
|
|
1240
|
+
# GetTotalTicketStatistics请求参数结构体
|
1241
|
+
class GetTotalTicketStatisticsRequest < TencentCloud::Common::AbstractModel
|
1242
|
+
# @param StartTimeStr: 开始时间
|
1243
|
+
# @type StartTimeStr: String
|
1244
|
+
# @param EndTimeStr: 结束时间
|
1245
|
+
# @type EndTimeStr: String
|
1246
|
+
# @param Dimension: 查询粒度
|
1247
|
+
# 分钟:“1”
|
1248
|
+
# 小时:“2”
|
1249
|
+
# 天:“3”
|
1250
|
+
# @type Dimension: String
|
1251
|
+
|
1252
|
+
attr_accessor :StartTimeStr, :EndTimeStr, :Dimension
|
1253
|
+
|
1254
|
+
def initialize(starttimestr=nil, endtimestr=nil, dimension=nil)
|
1255
|
+
@StartTimeStr = starttimestr
|
1256
|
+
@EndTimeStr = endtimestr
|
1257
|
+
@Dimension = dimension
|
1258
|
+
end
|
1259
|
+
|
1260
|
+
def deserialize(params)
|
1261
|
+
@StartTimeStr = params['StartTimeStr']
|
1262
|
+
@EndTimeStr = params['EndTimeStr']
|
1263
|
+
@Dimension = params['Dimension']
|
1264
|
+
end
|
1265
|
+
end
|
1266
|
+
|
1267
|
+
# GetTotalTicketStatistics返回参数结构体
|
1268
|
+
class GetTotalTicketStatisticsResponse < TencentCloud::Common::AbstractModel
|
1269
|
+
# @param Data: 返回数据
|
1270
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1271
|
+
# @type Data: :class:`Tencentcloud::Captcha.v20190722.models.CaptchaStatisticObj`
|
1272
|
+
# @param CaptchaCode: 返回码
|
1273
|
+
# @type CaptchaCode: Integer
|
1274
|
+
# @param CaptchaMsg: 返回信息
|
1275
|
+
# @type CaptchaMsg: String
|
1276
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1277
|
+
# @type RequestId: String
|
1278
|
+
|
1279
|
+
attr_accessor :Data, :CaptchaCode, :CaptchaMsg, :RequestId
|
1280
|
+
|
1281
|
+
def initialize(data=nil, captchacode=nil, captchamsg=nil, requestid=nil)
|
1282
|
+
@Data = data
|
1283
|
+
@CaptchaCode = captchacode
|
1284
|
+
@CaptchaMsg = captchamsg
|
1285
|
+
@RequestId = requestid
|
1286
|
+
end
|
1287
|
+
|
1288
|
+
def deserialize(params)
|
1289
|
+
unless params['Data'].nil?
|
1290
|
+
@Data = CaptchaStatisticObj.new
|
1291
|
+
@Data.deserialize(params['Data'])
|
1292
|
+
end
|
1293
|
+
@CaptchaCode = params['CaptchaCode']
|
1294
|
+
@CaptchaMsg = params['CaptchaMsg']
|
1295
|
+
@RequestId = params['RequestId']
|
1296
|
+
end
|
1297
|
+
end
|
1298
|
+
|
1299
|
+
# 拦截率趋势obj
|
1300
|
+
class InterceptPerTrendObj < TencentCloud::Common::AbstractModel
|
1301
|
+
# @param Ftime: 时间参数
|
1302
|
+
# @type Ftime: String
|
1303
|
+
# @param RequestInterceptPer: 拦截率
|
1304
|
+
# @type RequestInterceptPer: Float
|
1305
|
+
# @param AnswerInterceptPer: 答案拦截率
|
1306
|
+
# @type AnswerInterceptPer: Float
|
1307
|
+
# @param PolicyInterceptPer: 策略拦截率
|
1308
|
+
# @type PolicyInterceptPer: Float
|
1309
|
+
|
1310
|
+
attr_accessor :Ftime, :RequestInterceptPer, :AnswerInterceptPer, :PolicyInterceptPer
|
1311
|
+
|
1312
|
+
def initialize(ftime=nil, requestinterceptper=nil, answerinterceptper=nil, policyinterceptper=nil)
|
1313
|
+
@Ftime = ftime
|
1314
|
+
@RequestInterceptPer = requestinterceptper
|
1315
|
+
@AnswerInterceptPer = answerinterceptper
|
1316
|
+
@PolicyInterceptPer = policyinterceptper
|
1317
|
+
end
|
1318
|
+
|
1319
|
+
def deserialize(params)
|
1320
|
+
@Ftime = params['Ftime']
|
1321
|
+
@RequestInterceptPer = params['RequestInterceptPer']
|
1322
|
+
@AnswerInterceptPer = params['AnswerInterceptPer']
|
1323
|
+
@PolicyInterceptPer = params['PolicyInterceptPer']
|
1324
|
+
end
|
1325
|
+
end
|
1326
|
+
|
1164
1327
|
# 拦截策略返回信息
|
1165
1328
|
class OutputManageMarketingRiskValue < TencentCloud::Common::AbstractModel
|
1166
1329
|
# @param UserId: 账号 ID。对应输入参数: AccountType 是 1 时,对应 QQ 的 OpenID。
|
@@ -1234,6 +1397,38 @@ module TencentCloud
|
|
1234
1397
|
end
|
1235
1398
|
end
|
1236
1399
|
|
1400
|
+
# 验证码请求趋势图obj
|
1401
|
+
class RequestTrendObj < TencentCloud::Common::AbstractModel
|
1402
|
+
# @param Ftime: 时间参数
|
1403
|
+
# @type Ftime: String
|
1404
|
+
# @param RequestAction: 请求量
|
1405
|
+
# @type RequestAction: Integer
|
1406
|
+
# @param RequestVerify: 验证量
|
1407
|
+
# @type RequestVerify: Integer
|
1408
|
+
# @param RequestThroughput: 通过量
|
1409
|
+
# @type RequestThroughput: Integer
|
1410
|
+
# @param RequestIntercept: 拦截量
|
1411
|
+
# @type RequestIntercept: Integer
|
1412
|
+
|
1413
|
+
attr_accessor :Ftime, :RequestAction, :RequestVerify, :RequestThroughput, :RequestIntercept
|
1414
|
+
|
1415
|
+
def initialize(ftime=nil, requestaction=nil, requestverify=nil, requestthroughput=nil, requestintercept=nil)
|
1416
|
+
@Ftime = ftime
|
1417
|
+
@RequestAction = requestaction
|
1418
|
+
@RequestVerify = requestverify
|
1419
|
+
@RequestThroughput = requestthroughput
|
1420
|
+
@RequestIntercept = requestintercept
|
1421
|
+
end
|
1422
|
+
|
1423
|
+
def deserialize(params)
|
1424
|
+
@Ftime = params['Ftime']
|
1425
|
+
@RequestAction = params['RequestAction']
|
1426
|
+
@RequestVerify = params['RequestVerify']
|
1427
|
+
@RequestThroughput = params['RequestThroughput']
|
1428
|
+
@RequestIntercept = params['RequestIntercept']
|
1429
|
+
end
|
1430
|
+
end
|
1431
|
+
|
1237
1432
|
# DescribeCaptchaTicketData 返回的数据结构
|
1238
1433
|
class TicketAmountUnit < TencentCloud::Common::AbstractModel
|
1239
1434
|
# @param DateKey: 时间
|
@@ -1254,6 +1449,34 @@ module TencentCloud
|
|
1254
1449
|
end
|
1255
1450
|
end
|
1256
1451
|
|
1452
|
+
# 验证码票据校验趋势obj
|
1453
|
+
class TicketCheckTrendObj < TencentCloud::Common::AbstractModel
|
1454
|
+
# @param Ftime: 时间参数
|
1455
|
+
# @type Ftime: String
|
1456
|
+
# @param TicketCount: 票据校验量
|
1457
|
+
# @type TicketCount: Integer
|
1458
|
+
# @param TicketThroughput: 票据通过量
|
1459
|
+
# @type TicketThroughput: Integer
|
1460
|
+
# @param TicketIntercept: 票据拦截量
|
1461
|
+
# @type TicketIntercept: Integer
|
1462
|
+
|
1463
|
+
attr_accessor :Ftime, :TicketCount, :TicketThroughput, :TicketIntercept
|
1464
|
+
|
1465
|
+
def initialize(ftime=nil, ticketcount=nil, ticketthroughput=nil, ticketintercept=nil)
|
1466
|
+
@Ftime = ftime
|
1467
|
+
@TicketCount = ticketcount
|
1468
|
+
@TicketThroughput = ticketthroughput
|
1469
|
+
@TicketIntercept = ticketintercept
|
1470
|
+
end
|
1471
|
+
|
1472
|
+
def deserialize(params)
|
1473
|
+
@Ftime = params['Ftime']
|
1474
|
+
@TicketCount = params['TicketCount']
|
1475
|
+
@TicketThroughput = params['TicketThroughput']
|
1476
|
+
@TicketIntercept = params['TicketIntercept']
|
1477
|
+
end
|
1478
|
+
end
|
1479
|
+
|
1257
1480
|
# DescribeCaptchaTicketData 返回的数据结构
|
1258
1481
|
class TicketInterceptUnit < TencentCloud::Common::AbstractModel
|
1259
1482
|
# @param DateKey: 时间
|
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.431
|
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-10-
|
11
|
+
date: 2022-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|