tencentcloud-sdk-teo 3.0.529 → 3.0.531
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220901/models.rb +143 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b6698245f9074e75dc0d2e90a40b092fd1743b2
|
4
|
+
data.tar.gz: 418424cf2e0a62ab48c29c6a5b3f5781e5897d2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8afd78797100e8885a811ec3d85a5d1f0976aa4387e92f405223828232c2d227cb40be1ad544556428ad6088a04367185fbf0557d14399ed01f30b765cbb023
|
7
|
+
data.tar.gz: 9807bddf3bbca87c5bf79e1440d9c7e674c816b2d821e4890c913f00503ff6b3407e3d2c66a9ef23d2f8a07afb2eae17d80598bcc06036fbaef05780c3d0a27a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.531
|
data/lib/v20220901/models.rb
CHANGED
@@ -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
|
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.
|
4
|
+
version: 3.0.531
|
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-
|
11
|
+
date: 2023-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|