tencentcloud-sdk-captcha 3.0.441 → 3.0.442

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: c7d93b57c85f101f27b4952c840c7bd5501e218e
4
- data.tar.gz: ba0fc03d7d117df41b63826c80e9cca4c5037a0b
3
+ metadata.gz: fc5db4df4336d42c4c983e635d817d77e61e3041
4
+ data.tar.gz: 85b7f1f38af0aee47e2c22ea82d31362e979477a
5
5
  SHA512:
6
- metadata.gz: c65983737fa5e888b9b2845e2eb6c39a61c8674600a63bc12242a548bbf52f12b30371defb50f394a7fd81410094d97f4c73f4fbed04aaea503e906832202a3b
7
- data.tar.gz: 4a1f06c147e3c3d26fcf5986eb769329d22f9ba47d916acadc72ed83c98fc5fe811da286bb7360ea3a2bf9f3b08a3e81ae35a8dc2f14376dd2a5f7a57abf7557
6
+ metadata.gz: 920864265a403c2676ae3dc08c2bb12d48dd521850b4e63e17e854fb68cc7776e534e5139f35e1cf89900618c87ae816ac4b96f52c78c364638ee97fe21406da
7
+ data.tar.gz: d0429d896ed88f0b0995e8cc3097993db6fb218e80851e8c3e7bef9ef478a4b7fb1da6e1d64dba8e9a1d9573009ded97c93c567b27e0059df1ca300068e7c23d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.441
1
+ 3.0.442
@@ -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.
@@ -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: 开始时间
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-captcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.441
4
+ version: 3.0.442
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud