tencentcloud-sdk-captcha 3.0.441 → 3.0.442
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 +24 -0
- data/lib/v20190722/models.rb +60 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc5db4df4336d42c4c983e635d817d77e61e3041
|
4
|
+
data.tar.gz: 85b7f1f38af0aee47e2c22ea82d31362e979477a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 920864265a403c2676ae3dc08c2bb12d48dd521850b4e63e17e854fb68cc7776e534e5139f35e1cf89900618c87ae816ac4b96f52c78c364638ee97fe21406da
|
7
|
+
data.tar.gz: d0429d896ed88f0b0995e8cc3097993db6fb218e80851e8c3e7bef9ef478a4b7fb1da6e1d64dba8e9a1d9573009ded97c93c567b27e0059df1ca300068e7c23d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.442
|
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 GetTicketStatistics.
|
323
|
+
# @type request: :class:`Tencentcloud::captcha::V20190722::GetTicketStatisticsRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::captcha::V20190722::GetTicketStatisticsResponse`
|
325
|
+
def GetTicketStatistics(request)
|
326
|
+
body = send_request('GetTicketStatistics', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = GetTicketStatisticsResponse.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
|
# 查询所有验证的统计数据,包括:总票据校验量、总票据校验通过量、总票据校验拦截量。
|
321
345
|
|
322
346
|
# @param request: Request instance for GetTotalTicketStatistics.
|
data/lib/v20190722/models.rb
CHANGED
@@ -1238,6 +1238,66 @@ module TencentCloud
|
|
1238
1238
|
end
|
1239
1239
|
end
|
1240
1240
|
|
1241
|
+
# GetTicketStatistics请求参数结构体
|
1242
|
+
class GetTicketStatisticsRequest < TencentCloud::Common::AbstractModel
|
1243
|
+
# @param CaptchaAppId: 验证码appid
|
1244
|
+
# @type CaptchaAppId: String
|
1245
|
+
# @param StartTimeStr: 开始时间字符串
|
1246
|
+
# @type StartTimeStr: String
|
1247
|
+
# @param EndTimeStr: 结束时间字符串
|
1248
|
+
# @type EndTimeStr: String
|
1249
|
+
# @param Dimension: 查询粒度
|
1250
|
+
# @type Dimension: String
|
1251
|
+
|
1252
|
+
attr_accessor :CaptchaAppId, :StartTimeStr, :EndTimeStr, :Dimension
|
1253
|
+
|
1254
|
+
def initialize(captchaappid=nil, starttimestr=nil, endtimestr=nil, dimension=nil)
|
1255
|
+
@CaptchaAppId = captchaappid
|
1256
|
+
@StartTimeStr = starttimestr
|
1257
|
+
@EndTimeStr = endtimestr
|
1258
|
+
@Dimension = dimension
|
1259
|
+
end
|
1260
|
+
|
1261
|
+
def deserialize(params)
|
1262
|
+
@CaptchaAppId = params['CaptchaAppId']
|
1263
|
+
@StartTimeStr = params['StartTimeStr']
|
1264
|
+
@EndTimeStr = params['EndTimeStr']
|
1265
|
+
@Dimension = params['Dimension']
|
1266
|
+
end
|
1267
|
+
end
|
1268
|
+
|
1269
|
+
# GetTicketStatistics返回参数结构体
|
1270
|
+
class GetTicketStatisticsResponse < TencentCloud::Common::AbstractModel
|
1271
|
+
# @param Data: 查询后数据块
|
1272
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1273
|
+
# @type Data: :class:`Tencentcloud::Captcha.v20190722.models.CaptchaStatisticObj`
|
1274
|
+
# @param CaptchaCode: 验证码返回码
|
1275
|
+
# @type CaptchaCode: Integer
|
1276
|
+
# @param CaptchaMsg: 验证码返回信息
|
1277
|
+
# @type CaptchaMsg: String
|
1278
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1279
|
+
# @type RequestId: String
|
1280
|
+
|
1281
|
+
attr_accessor :Data, :CaptchaCode, :CaptchaMsg, :RequestId
|
1282
|
+
|
1283
|
+
def initialize(data=nil, captchacode=nil, captchamsg=nil, requestid=nil)
|
1284
|
+
@Data = data
|
1285
|
+
@CaptchaCode = captchacode
|
1286
|
+
@CaptchaMsg = captchamsg
|
1287
|
+
@RequestId = requestid
|
1288
|
+
end
|
1289
|
+
|
1290
|
+
def deserialize(params)
|
1291
|
+
unless params['Data'].nil?
|
1292
|
+
@Data = CaptchaStatisticObj.new
|
1293
|
+
@Data.deserialize(params['Data'])
|
1294
|
+
end
|
1295
|
+
@CaptchaCode = params['CaptchaCode']
|
1296
|
+
@CaptchaMsg = params['CaptchaMsg']
|
1297
|
+
@RequestId = params['RequestId']
|
1298
|
+
end
|
1299
|
+
end
|
1300
|
+
|
1241
1301
|
# GetTotalTicketStatistics请求参数结构体
|
1242
1302
|
class GetTotalTicketStatisticsRequest < TencentCloud::Common::AbstractModel
|
1243
1303
|
# @param StartTimeStr: 开始时间
|