tencentcloud-sdk-teo 3.0.529 → 3.0.530

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 +143 -3
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 602b69636779984f213b2e90377bbe7961d37df6
4
- data.tar.gz: 9df96a87432572ae4f01c2b83a1552243886681e
3
+ metadata.gz: d15cea4c97c75779e8221ebb0b92d6afe5bfcbb9
4
+ data.tar.gz: 0bb712ed5ae3a83ceaca21ac3b97422fdc48e9d5
5
5
  SHA512:
6
- metadata.gz: 65488f67c2ea0caea8994ee0838dcf13756f3a0b027ceaaa207bfae8c6ba9a5060710868783e476767e22e50d9ac2e9594d6c65952550784c6141d80d611dde5
7
- data.tar.gz: 806155ca22789beed4a45b370cd7a7bbf39180129a7e6fca1d2a1be77fc14a95b739e48de69e3b00630fade83924afb4cc5b62e59c59dd1bbe0a793ffd98b1e8
6
+ metadata.gz: 00b8bfc5d1291869f111216b5feba47732b63f00913e7276ff8ac6755956c64b5dad8ec18c33d3ce04a0656948d0e2262474e35e0cda232597e08723684c5250
7
+ data.tar.gz: 0fa4d62c55ea4e65a97cc482fa08954896db34f24c8e6c67c8ff55c525edcf1f3f58b6c0bb9156b8ef55e7ad9523cf45ab96c56cd34a31ee3875b9f8ee9d695b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.529
1
+ 3.0.530
@@ -103,7 +103,12 @@ module TencentCloud
103
103
  # <li>method:请求方式;</li>
104
104
  # <li>header:请求头部;</li>
105
105
  # <li>app_proto:应用层协议;</li>
106
- # <li>sip_proto:网络层协议。</li>
106
+ # <li>sip_proto:网络层协议;</li>
107
+ # <li>uabot:UA 特征规则,仅bot自定义规则可用;</li>
108
+ # <li>idcid:IDC 规则,仅bot自定义规则可用;</li>
109
+ # <li>sipbot:搜索引擎规则,仅bot自定义规则可用;</li>
110
+ # <li>portrait:画像分析,仅bot自定义规则可用;</li>
111
+ # <li>header_seq:请求头顺序,仅bot自定义规则可用。</li>
107
112
  # @type MatchFrom: String
108
113
  # @param MatchParam: 匹配字符串。当 MatchFrom 为 header 时,可以填入 header 的 key 作为参数。
109
114
  # @type MatchParam: String
@@ -689,14 +694,21 @@ module TencentCloud
689
694
  # @param IntelligenceRule: Bot智能分析。如果为null,默认使用历史配置。
690
695
  # 注意:此字段可能返回 null,表示取不到有效值。
691
696
  # @type IntelligenceRule: :class:`Tencentcloud::Teo.v20220901.models.IntelligenceRule`
697
+ # @param BotUserRules: Bot自定义规则。如果为null,默认使用历史配置。
698
+ # @type BotUserRules: Array
699
+ # @param Customizes: Bot托管定制策略,入参可不填,仅出参使用。
700
+ # 注意:此字段可能返回 null,表示取不到有效值。
701
+ # @type Customizes: Array
692
702
 
693
- attr_accessor :Switch, :BotManagedRule, :BotPortraitRule, :IntelligenceRule
703
+ attr_accessor :Switch, :BotManagedRule, :BotPortraitRule, :IntelligenceRule, :BotUserRules, :Customizes
694
704
 
695
- def initialize(switch=nil, botmanagedrule=nil, botportraitrule=nil, intelligencerule=nil)
705
+ def initialize(switch=nil, botmanagedrule=nil, botportraitrule=nil, intelligencerule=nil, botuserrules=nil, customizes=nil)
696
706
  @Switch = switch
697
707
  @BotManagedRule = botmanagedrule
698
708
  @BotPortraitRule = botportraitrule
699
709
  @IntelligenceRule = intelligencerule
710
+ @BotUserRules = botuserrules
711
+ @Customizes = customizes
700
712
  end
701
713
 
702
714
  def deserialize(params)
@@ -713,6 +725,51 @@ module TencentCloud
713
725
  @IntelligenceRule = IntelligenceRule.new
714
726
  @IntelligenceRule.deserialize(params['IntelligenceRule'])
715
727
  end
728
+ unless params['BotUserRules'].nil?
729
+ @BotUserRules = []
730
+ params['BotUserRules'].each do |i|
731
+ botuserrule_tmp = BotUserRule.new
732
+ botuserrule_tmp.deserialize(i)
733
+ @BotUserRules << botuserrule_tmp
734
+ end
735
+ end
736
+ unless params['Customizes'].nil?
737
+ @Customizes = []
738
+ params['Customizes'].each do |i|
739
+ botuserrule_tmp = BotUserRule.new
740
+ botuserrule_tmp.deserialize(i)
741
+ @Customizes << botuserrule_tmp
742
+ end
743
+ end
744
+ end
745
+ end
746
+
747
+ # Bot扩展处置方式,多处置动作组合。
748
+ class BotExtendAction < TencentCloud::Common::AbstractModel
749
+ # @param Action: 处置动作,取值有:
750
+ # <li>monitor:观察;</li>
751
+ # <li>trans:放行;</li>
752
+ # <li>alg:JavaScript挑战;</li>
753
+ # <li>captcha:托管挑战;</li>
754
+ # <li>random:随机,按照ExtendActions分配处置动作和比例;</li>
755
+ # <li>silence:静默;</li>
756
+ # <li>shortdelay:短时响应;</li>
757
+ # <li>longdelay:长时响应。</li>
758
+ # @type Action: String
759
+ # @param Percent: 处置方式的触发概率,范围0-100。
760
+ # 注意:此字段可能返回 null,表示取不到有效值。
761
+ # @type Percent: Integer
762
+
763
+ attr_accessor :Action, :Percent
764
+
765
+ def initialize(action=nil, percent=nil)
766
+ @Action = action
767
+ @Percent = percent
768
+ end
769
+
770
+ def deserialize(params)
771
+ @Action = params['Action']
772
+ @Percent = params['Percent']
716
773
  end
717
774
  end
718
775
 
@@ -807,6 +864,89 @@ module TencentCloud
807
864
  end
808
865
  end
809
866
 
867
+ # Bot自定义规则
868
+ class BotUserRule < TencentCloud::Common::AbstractModel
869
+ # @param RuleName: 规则名,只能以英文字符,数字,下划线组合,且不能以下划线开头。
870
+ # @type RuleName: String
871
+ # @param Action: 处置动作,取值有:
872
+ # <li>drop:拦截;</li>
873
+ # <li>monitor:观察;</li>
874
+ # <li>trans:放行;</li>
875
+ # <li>alg:JavaScript挑战;</li>
876
+ # <li>captcha:托管挑战;</li>
877
+ # <li>silence:静默;</li>
878
+ # <li>shortdelay:短时响应;</li>
879
+ # <li>longdelay:长时响应。</li>
880
+ # @type Action: String
881
+ # @param RuleStatus: 规则状态,取值有:
882
+ # <li>on:生效;</li>
883
+ # <li>off:不生效。</li>默认on生效。
884
+ # @type RuleStatus: String
885
+ # @param AclConditions: 规则详情。
886
+ # @type AclConditions: Array
887
+ # @param RulePriority: 规则权重,取值范围0-100。
888
+ # @type RulePriority: Integer
889
+ # @param RuleID: 规则id。仅出参使用。
890
+ # 注意:此字段可能返回 null,表示取不到有效值。
891
+ # @type RuleID: Integer
892
+ # @param ExtendActions: 随机处置的处置方式及占比,非随机处置可不填暂不支持。
893
+ # @type ExtendActions: Array
894
+ # @param FreqFields: 过滤词,取值有:
895
+ # <li>sip:客户端ip。</li>
896
+ # 注意:此字段可能返回 null,表示取不到有效值。
897
+ # @type FreqFields: Array
898
+ # @param UpdateTime: 更新时间。
899
+ # 注意:此字段可能返回 null,表示取不到有效值。
900
+ # @type UpdateTime: String
901
+ # @param FreqScope: 统计范围,字段为null时,代表source_to_eo。取值有:
902
+ # <li>source_to_eo:(响应)源站到EdgeOne。</li>
903
+ # <li>client_to_eo:(请求)客户端到EdgeOne;</li>
904
+ # 注意:此字段可能返回 null,表示取不到有效值。
905
+ # @type FreqScope: Array
906
+
907
+ attr_accessor :RuleName, :Action, :RuleStatus, :AclConditions, :RulePriority, :RuleID, :ExtendActions, :FreqFields, :UpdateTime, :FreqScope
908
+
909
+ def initialize(rulename=nil, action=nil, rulestatus=nil, aclconditions=nil, rulepriority=nil, ruleid=nil, extendactions=nil, freqfields=nil, updatetime=nil, freqscope=nil)
910
+ @RuleName = rulename
911
+ @Action = action
912
+ @RuleStatus = rulestatus
913
+ @AclConditions = aclconditions
914
+ @RulePriority = rulepriority
915
+ @RuleID = ruleid
916
+ @ExtendActions = extendactions
917
+ @FreqFields = freqfields
918
+ @UpdateTime = updatetime
919
+ @FreqScope = freqscope
920
+ end
921
+
922
+ def deserialize(params)
923
+ @RuleName = params['RuleName']
924
+ @Action = params['Action']
925
+ @RuleStatus = params['RuleStatus']
926
+ unless params['AclConditions'].nil?
927
+ @AclConditions = []
928
+ params['AclConditions'].each do |i|
929
+ aclcondition_tmp = AclCondition.new
930
+ aclcondition_tmp.deserialize(i)
931
+ @AclConditions << aclcondition_tmp
932
+ end
933
+ end
934
+ @RulePriority = params['RulePriority']
935
+ @RuleID = params['RuleID']
936
+ unless params['ExtendActions'].nil?
937
+ @ExtendActions = []
938
+ params['ExtendActions'].each do |i|
939
+ botextendaction_tmp = BotExtendAction.new
940
+ botextendaction_tmp.deserialize(i)
941
+ @ExtendActions << botextendaction_tmp
942
+ end
943
+ end
944
+ @FreqFields = params['FreqFields']
945
+ @UpdateTime = params['UpdateTime']
946
+ @FreqScope = params['FreqScope']
947
+ end
948
+ end
949
+
810
950
  # cc配置项。
811
951
  class CC < TencentCloud::Common::AbstractModel
812
952
  # @param Switch: Waf开关,取值为:
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.529
4
+ version: 3.0.530
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-03-14 00:00:00.000000000 Z
11
+ date: 2023-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common