tencentcloud-sdk-captcha 3.0.510 → 3.0.512

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: d354af2b495f5659ffb33e2dffe9e2aa651cfaf8
4
- data.tar.gz: 4760ddeadb8a3a8eba2ef839372ff44ed61832c1
3
+ metadata.gz: c46371728fc062d8e6bee79ed96036811f03bbd7
4
+ data.tar.gz: 88b6eb450ab9bf117e047fa4b000e47a4733eb2b
5
5
  SHA512:
6
- metadata.gz: 12619b03dee0e0b73dd4a8a6fa6817aef85889610d5c227a65f1cb791e43ea5837b3b7c5600fb8bf58c6ba28b88b612bd03aa133b6a4bb3b0df332d6282e4b89
7
- data.tar.gz: 8fa6544106226db5d6acdab7ac6dec2e64279b0c391636821f29a718347959be8dbda2eddb4e0e983e878a32ff14c68fce400e85dd983457722e063c739c1df3
6
+ metadata.gz: 981d2fad1b05643e099a9e912aff0526b91f83ca01ceba60c6c8fca49f354ace68f188f492a2616fb264661cef6879d86080df248ad281c820b8e26d2e70dc4d
7
+ data.tar.gz: 4176896c64225c47ab6a51b715a285c5dededa414802b4069e5bd970c51d147c9d5cf586cccd91a2448f4616c9e5ad070e5efd7d718c403f0da240975dbb2b26
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.510
1
+ 3.0.512
@@ -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.
@@ -1238,6 +1238,66 @@ module TencentCloud
1238
1238
  end
1239
1239
  end
1240
1240
 
1241
+ # GetRequestStatistics请求参数结构体
1242
+ class GetRequestStatisticsRequest < 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
+ # GetRequestStatistics返回参数结构体
1270
+ class GetRequestStatisticsResponse < 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
  # GetTicketStatistics请求参数结构体
1242
1302
  class GetTicketStatisticsRequest < TencentCloud::Common::AbstractModel
1243
1303
  # @param CaptchaAppId: 验证码AppId
@@ -1298,6 +1358,62 @@ module TencentCloud
1298
1358
  end
1299
1359
  end
1300
1360
 
1361
+ # GetTotalRequestStatistics请求参数结构体
1362
+ class GetTotalRequestStatisticsRequest < TencentCloud::Common::AbstractModel
1363
+ # @param StartTimeStr: 开始时间字符串
1364
+ # @type StartTimeStr: String
1365
+ # @param EndTimeStr: 结束时间字符串
1366
+ # @type EndTimeStr: String
1367
+ # @param Dimension: 查询粒度
1368
+ # @type Dimension: String
1369
+
1370
+ attr_accessor :StartTimeStr, :EndTimeStr, :Dimension
1371
+
1372
+ def initialize(starttimestr=nil, endtimestr=nil, dimension=nil)
1373
+ @StartTimeStr = starttimestr
1374
+ @EndTimeStr = endtimestr
1375
+ @Dimension = dimension
1376
+ end
1377
+
1378
+ def deserialize(params)
1379
+ @StartTimeStr = params['StartTimeStr']
1380
+ @EndTimeStr = params['EndTimeStr']
1381
+ @Dimension = params['Dimension']
1382
+ end
1383
+ end
1384
+
1385
+ # GetTotalRequestStatistics返回参数结构体
1386
+ class GetTotalRequestStatisticsResponse < TencentCloud::Common::AbstractModel
1387
+ # @param Data: 查询后数据块
1388
+ # 注意:此字段可能返回 null,表示取不到有效值。
1389
+ # @type Data: :class:`Tencentcloud::Captcha.v20190722.models.CaptchaStatisticObj`
1390
+ # @param CaptchaCode: 验证码返回码
1391
+ # @type CaptchaCode: Integer
1392
+ # @param CaptchaMsg: 验证码返回信息
1393
+ # @type CaptchaMsg: String
1394
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1395
+ # @type RequestId: String
1396
+
1397
+ attr_accessor :Data, :CaptchaCode, :CaptchaMsg, :RequestId
1398
+
1399
+ def initialize(data=nil, captchacode=nil, captchamsg=nil, requestid=nil)
1400
+ @Data = data
1401
+ @CaptchaCode = captchacode
1402
+ @CaptchaMsg = captchamsg
1403
+ @RequestId = requestid
1404
+ end
1405
+
1406
+ def deserialize(params)
1407
+ unless params['Data'].nil?
1408
+ @Data = CaptchaStatisticObj.new
1409
+ @Data.deserialize(params['Data'])
1410
+ end
1411
+ @CaptchaCode = params['CaptchaCode']
1412
+ @CaptchaMsg = params['CaptchaMsg']
1413
+ @RequestId = params['RequestId']
1414
+ end
1415
+ end
1416
+
1301
1417
  # GetTotalTicketStatistics请求参数结构体
1302
1418
  class GetTotalTicketStatisticsRequest < TencentCloud::Common::AbstractModel
1303
1419
  # @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.510
4
+ version: 3.0.512
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-16 00:00:00.000000000 Z
11
+ date: 2023-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common