tencentcloud-sdk-teo 3.0.544 → 3.0.545

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20220901/models.rb +209 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 036cacd201bbeb390870329cc7724d6bc1edcea5
4
- data.tar.gz: d68b1967e94314689faa47bfca4d8ef565e96b82
3
+ metadata.gz: ffe318e57886491b4533b04ae64a8da1c66fb1ed
4
+ data.tar.gz: ca56fa902da7f914e7d11110734d9038ab3939f6
5
5
  SHA512:
6
- metadata.gz: 391e383fb1614c1c47e1c54bac6c356e4e5d634e00220ef6cdafdd7d30419605a5a35a043dbd0d23a248169899703ca30f1e33022fb0f1180a2d7de5b6097471
7
- data.tar.gz: 987fe7628e1d771c2d5377d6c6e74097bdf278e2dc4cca534c8395b43554ffc1adc705d4946268bf4bed110e47a6fc85a29ecf3014939383a1ae6f91b8dbeb02
6
+ metadata.gz: 0252dc113e4b2940e28f0cc3a63bcd0c715a05b6bdd17804f3458f6dc28dff933f95febdb338e1201896075491203b51bc5e2201eff5b53a04eae43379f326f3
7
+ data.tar.gz: c4a08e09d6ef53faa39ad0adf3f100baa5d9e6ac46a0f471427fd4901b6f21a37690a6852656686f52d1a398e040a6448f6deb07ace8cec512d9320cc635fba5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.544
1
+ 3.0.545
@@ -392,6 +392,202 @@ module TencentCloud
392
392
  end
393
393
  end
394
394
 
395
+ # Bot主动特征识别客户端行为校验。
396
+ class AlgDetectJS < TencentCloud::Common::AbstractModel
397
+ # @param Name: 操作名称。
398
+ # @type Name: String
399
+ # @param WorkLevel: 工作量证明 (proof_Of-Work)校验强度,默认low,取值有:
400
+ # <li>low:低;</li>
401
+ # <li>middle:中;</li>
402
+ # <li>high:高。</li>
403
+ # @type WorkLevel: String
404
+ # @param ExecuteMode: 执行方式,js延迟执行的时间。单位为ms,默认500,取值:0~1000。
405
+ # @type ExecuteMode: Integer
406
+ # @param InvalidStatTime: 客户端末启用JS(末完成检测)统计周期。单位为秒,默认10,取值:5~3600。
407
+ # @type InvalidStatTime: Integer
408
+ # @param InvalidThreshold: 客户端末启用JS(末完成检测)触发阈值。单位为次,默认300,取值:1~100000000。
409
+ # @type InvalidThreshold: Integer
410
+ # @param AlgDetectResults: Bot主动特征识别客户端行为校验结果。
411
+ # @type AlgDetectResults: Array
412
+
413
+ attr_accessor :Name, :WorkLevel, :ExecuteMode, :InvalidStatTime, :InvalidThreshold, :AlgDetectResults
414
+
415
+ def initialize(name=nil, worklevel=nil, executemode=nil, invalidstattime=nil, invalidthreshold=nil, algdetectresults=nil)
416
+ @Name = name
417
+ @WorkLevel = worklevel
418
+ @ExecuteMode = executemode
419
+ @InvalidStatTime = invalidstattime
420
+ @InvalidThreshold = invalidthreshold
421
+ @AlgDetectResults = algdetectresults
422
+ end
423
+
424
+ def deserialize(params)
425
+ @Name = params['Name']
426
+ @WorkLevel = params['WorkLevel']
427
+ @ExecuteMode = params['ExecuteMode']
428
+ @InvalidStatTime = params['InvalidStatTime']
429
+ @InvalidThreshold = params['InvalidThreshold']
430
+ unless params['AlgDetectResults'].nil?
431
+ @AlgDetectResults = []
432
+ params['AlgDetectResults'].each do |i|
433
+ algdetectresult_tmp = AlgDetectResult.new
434
+ algdetectresult_tmp.deserialize(i)
435
+ @AlgDetectResults << algdetectresult_tmp
436
+ end
437
+ end
438
+ end
439
+ end
440
+
441
+ # Bot主动特征识别校验结果。
442
+ class AlgDetectResult < TencentCloud::Common::AbstractModel
443
+ # @param Result: 校验结果,取值有:
444
+ # <li>invalid:不合法Cookie;</li>
445
+ # <li>cookie_empty:末携带Cookie或Cookie己过期;</li>
446
+ # <li>js_empty:客户端末启用JS(末完成检测);</li>
447
+ # <li>low:会话速率和周期特征校验低风险;</li>
448
+ # <li>middle:会话速率和周期特征校验中风险;</li>
449
+ # <li>high:会话速率和周期特征校验高风险;</li>
450
+ # <li>timeout:检测超时时长;</li>
451
+ # <li>not_browser:不合法浏览器;</li>
452
+ # <li>is_bot:Bot客户端。</li>
453
+ # @type Result: String
454
+ # @param Action: 处罚动作,取值有:
455
+ # <li>drop:拦截;</li>
456
+ # <li>monitor:观察;</li>
457
+ # <li>silence:静默;</li>
458
+ # <li>shortdelay:(短时间)等待后响应;</li>
459
+ # <li>longdelay:(长时间)等待后响应。</li>
460
+ # @type Action: String
461
+
462
+ attr_accessor :Result, :Action
463
+
464
+ def initialize(result=nil, action=nil)
465
+ @Result = result
466
+ @Action = action
467
+ end
468
+
469
+ def deserialize(params)
470
+ @Result = params['Result']
471
+ @Action = params['Action']
472
+ end
473
+ end
474
+
475
+ # Bot主动特征识别规则。
476
+ class AlgDetectRule < TencentCloud::Common::AbstractModel
477
+ # @param RuleID: 规则id。
478
+ # @type RuleID: Integer
479
+ # @param RuleName: 规则名。
480
+ # @type RuleName: String
481
+ # @param Switch: 规则开关。
482
+ # @type Switch: String
483
+ # @param AlgConditions: 自定义规则。
484
+ # @type AlgConditions: Array
485
+ # @param AlgDetectSession: Cookie校验和会话行为分析。
486
+ # 注意:此字段可能返回 null,表示取不到有效值。
487
+ # @type AlgDetectSession: :class:`Tencentcloud::Teo.v20220901.models.AlgDetectSession`
488
+ # @param AlgDetectJS: 客户端行为校验。
489
+ # @type AlgDetectJS: Array
490
+ # @param UpdateTime: 更新时间。仅出参使用。
491
+ # @type UpdateTime: String
492
+
493
+ attr_accessor :RuleID, :RuleName, :Switch, :AlgConditions, :AlgDetectSession, :AlgDetectJS, :UpdateTime
494
+
495
+ def initialize(ruleid=nil, rulename=nil, switch=nil, algconditions=nil, algdetectsession=nil, algdetectjs=nil, updatetime=nil)
496
+ @RuleID = ruleid
497
+ @RuleName = rulename
498
+ @Switch = switch
499
+ @AlgConditions = algconditions
500
+ @AlgDetectSession = algdetectsession
501
+ @AlgDetectJS = algdetectjs
502
+ @UpdateTime = updatetime
503
+ end
504
+
505
+ def deserialize(params)
506
+ @RuleID = params['RuleID']
507
+ @RuleName = params['RuleName']
508
+ @Switch = params['Switch']
509
+ unless params['AlgConditions'].nil?
510
+ @AlgConditions = []
511
+ params['AlgConditions'].each do |i|
512
+ aclcondition_tmp = AclCondition.new
513
+ aclcondition_tmp.deserialize(i)
514
+ @AlgConditions << aclcondition_tmp
515
+ end
516
+ end
517
+ unless params['AlgDetectSession'].nil?
518
+ @AlgDetectSession = AlgDetectSession.new
519
+ @AlgDetectSession.deserialize(params['AlgDetectSession'])
520
+ end
521
+ unless params['AlgDetectJS'].nil?
522
+ @AlgDetectJS = []
523
+ params['AlgDetectJS'].each do |i|
524
+ algdetectjs_tmp = AlgDetectJS.new
525
+ algdetectjs_tmp.deserialize(i)
526
+ @AlgDetectJS << algdetectjs_tmp
527
+ end
528
+ end
529
+ @UpdateTime = params['UpdateTime']
530
+ end
531
+ end
532
+
533
+ # Cookie校验与会话跟踪。
534
+ class AlgDetectSession < TencentCloud::Common::AbstractModel
535
+ # @param Name: 操作名称。
536
+ # @type Name: String
537
+ # @param DetectMode: 校验方式,默认update_detect,取值有:
538
+ # <li>detect:仅校验;</li>
539
+ # <li>update_detect:更新Cookie并校验。</li>
540
+ # @type DetectMode: String
541
+ # @param SessionAnalyzeSwitch: 会话速率和周期特征校验开关,默认off,取值有:
542
+ # <li>off:关闭;</li>
543
+ # <li>on:打开。</li>
544
+ # @type SessionAnalyzeSwitch: String
545
+ # @param InvalidStatTime: 校验结果为未携带Cookie或Cookie已过期的统计周期。单位为秒,默认10,取值:5~3600。
546
+ # @type InvalidStatTime: Integer
547
+ # @param InvalidThreshold: 校验结果为未携带Cookie或Cookie已过期的触发阈值。单位为次,默认300,取值:1~100000000。
548
+ # @type InvalidThreshold: Integer
549
+ # @param AlgDetectResults: Cookie校验校验结果。
550
+ # @type AlgDetectResults: Array
551
+ # @param SessionBehaviors: 会话速率和周期特征校验结果。
552
+ # @type SessionBehaviors: Array
553
+
554
+ attr_accessor :Name, :DetectMode, :SessionAnalyzeSwitch, :InvalidStatTime, :InvalidThreshold, :AlgDetectResults, :SessionBehaviors
555
+
556
+ def initialize(name=nil, detectmode=nil, sessionanalyzeswitch=nil, invalidstattime=nil, invalidthreshold=nil, algdetectresults=nil, sessionbehaviors=nil)
557
+ @Name = name
558
+ @DetectMode = detectmode
559
+ @SessionAnalyzeSwitch = sessionanalyzeswitch
560
+ @InvalidStatTime = invalidstattime
561
+ @InvalidThreshold = invalidthreshold
562
+ @AlgDetectResults = algdetectresults
563
+ @SessionBehaviors = sessionbehaviors
564
+ end
565
+
566
+ def deserialize(params)
567
+ @Name = params['Name']
568
+ @DetectMode = params['DetectMode']
569
+ @SessionAnalyzeSwitch = params['SessionAnalyzeSwitch']
570
+ @InvalidStatTime = params['InvalidStatTime']
571
+ @InvalidThreshold = params['InvalidThreshold']
572
+ unless params['AlgDetectResults'].nil?
573
+ @AlgDetectResults = []
574
+ params['AlgDetectResults'].each do |i|
575
+ algdetectresult_tmp = AlgDetectResult.new
576
+ algdetectresult_tmp.deserialize(i)
577
+ @AlgDetectResults << algdetectresult_tmp
578
+ end
579
+ end
580
+ unless params['SessionBehaviors'].nil?
581
+ @SessionBehaviors = []
582
+ params['SessionBehaviors'].each do |i|
583
+ algdetectresult_tmp = AlgDetectResult.new
584
+ algdetectresult_tmp.deserialize(i)
585
+ @SessionBehaviors << algdetectresult_tmp
586
+ end
587
+ end
588
+ end
589
+ end
590
+
395
591
  # 别称域名信息。
396
592
  class AliasDomain < TencentCloud::Common::AbstractModel
397
593
  # @param AliasName: 别称域名名称。
@@ -696,18 +892,21 @@ module TencentCloud
696
892
  # @type IntelligenceRule: :class:`Tencentcloud::Teo.v20220901.models.IntelligenceRule`
697
893
  # @param BotUserRules: Bot自定义规则。如果为null,默认使用历史配置。
698
894
  # @type BotUserRules: Array
895
+ # @param AlgDetectRule: Bot主动特征识别规则。
896
+ # @type AlgDetectRule: Array
699
897
  # @param Customizes: Bot托管定制策略,入参可不填,仅出参使用。
700
898
  # 注意:此字段可能返回 null,表示取不到有效值。
701
899
  # @type Customizes: Array
702
900
 
703
- attr_accessor :Switch, :BotManagedRule, :BotPortraitRule, :IntelligenceRule, :BotUserRules, :Customizes
901
+ attr_accessor :Switch, :BotManagedRule, :BotPortraitRule, :IntelligenceRule, :BotUserRules, :AlgDetectRule, :Customizes
704
902
 
705
- def initialize(switch=nil, botmanagedrule=nil, botportraitrule=nil, intelligencerule=nil, botuserrules=nil, customizes=nil)
903
+ def initialize(switch=nil, botmanagedrule=nil, botportraitrule=nil, intelligencerule=nil, botuserrules=nil, algdetectrule=nil, customizes=nil)
706
904
  @Switch = switch
707
905
  @BotManagedRule = botmanagedrule
708
906
  @BotPortraitRule = botportraitrule
709
907
  @IntelligenceRule = intelligencerule
710
908
  @BotUserRules = botuserrules
909
+ @AlgDetectRule = algdetectrule
711
910
  @Customizes = customizes
712
911
  end
713
912
 
@@ -733,6 +932,14 @@ module TencentCloud
733
932
  @BotUserRules << botuserrule_tmp
734
933
  end
735
934
  end
935
+ unless params['AlgDetectRule'].nil?
936
+ @AlgDetectRule = []
937
+ params['AlgDetectRule'].each do |i|
938
+ algdetectrule_tmp = AlgDetectRule.new
939
+ algdetectrule_tmp.deserialize(i)
940
+ @AlgDetectRule << algdetectrule_tmp
941
+ end
942
+ end
736
943
  unless params['Customizes'].nil?
737
944
  @Customizes = []
738
945
  params['Customizes'].each do |i|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-teo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.544
4
+ version: 3.0.545
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-04-04 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common