tencentcloud-sdk-waf 3.0.1140 → 3.0.1146
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/v20180125/client.rb +73 -1
- data/lib/v20180125/models.rb +639 -65
- metadata +2 -2
data/lib/v20180125/models.rb
CHANGED
@@ -592,13 +592,15 @@ module TencentCloud
|
|
592
592
|
# @type PageId: String
|
593
593
|
# @param LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
594
594
|
# @type LogicalOp: String
|
595
|
+
# @param ActionRatio: 按照动作灰度的比例,默认是100
|
596
|
+
# @type ActionRatio: Integer
|
595
597
|
|
596
|
-
attr_accessor :Name, :SortId, :Strategies, :Domain, :ActionType, :Redirect, :ExpireTime, :Edition, :Bypass, :EventId, :JobType, :JobDateTime, :Source, :Label, :Status, :PageId, :LogicalOp
|
598
|
+
attr_accessor :Name, :SortId, :Strategies, :Domain, :ActionType, :Redirect, :ExpireTime, :Edition, :Bypass, :EventId, :JobType, :JobDateTime, :Source, :Label, :Status, :PageId, :LogicalOp, :ActionRatio
|
597
599
|
extend Gem::Deprecate
|
598
600
|
deprecate :Bypass, :none, 2025, 9
|
599
601
|
deprecate :Bypass=, :none, 2025, 9
|
600
602
|
|
601
|
-
def initialize(name=nil, sortid=nil, strategies=nil, domain=nil, actiontype=nil, redirect=nil, expiretime=nil, edition=nil, bypass=nil, eventid=nil, jobtype=nil, jobdatetime=nil, source=nil, label=nil, status=nil, pageid=nil, logicalop=nil)
|
603
|
+
def initialize(name=nil, sortid=nil, strategies=nil, domain=nil, actiontype=nil, redirect=nil, expiretime=nil, edition=nil, bypass=nil, eventid=nil, jobtype=nil, jobdatetime=nil, source=nil, label=nil, status=nil, pageid=nil, logicalop=nil, actionratio=nil)
|
602
604
|
@Name = name
|
603
605
|
@SortId = sortid
|
604
606
|
@Strategies = strategies
|
@@ -616,6 +618,7 @@ module TencentCloud
|
|
616
618
|
@Status = status
|
617
619
|
@PageId = pageid
|
618
620
|
@LogicalOp = logicalop
|
621
|
+
@ActionRatio = actionratio
|
619
622
|
end
|
620
623
|
|
621
624
|
def deserialize(params)
|
@@ -646,6 +649,7 @@ module TencentCloud
|
|
646
649
|
@Status = params['Status']
|
647
650
|
@PageId = params['PageId']
|
648
651
|
@LogicalOp = params['LogicalOp']
|
652
|
+
@ActionRatio = params['ActionRatio']
|
649
653
|
end
|
650
654
|
end
|
651
655
|
|
@@ -854,6 +858,24 @@ module TencentCloud
|
|
854
858
|
# @type IsKeepAlive: String
|
855
859
|
# @param InstanceID: 必填项,域名所属实例id
|
856
860
|
# @type InstanceID: String
|
861
|
+
# @param HttpsRewrite: 必填项,是否开启HTTP强制跳转到HTTPS。
|
862
|
+
# 0:不强制跳转
|
863
|
+
# 1:开启强制跳转
|
864
|
+
# @type HttpsRewrite: Integer
|
865
|
+
# @param IsHttp2: 必填项,是否开启HTTP2,需要开启HTTPS协议支持。
|
866
|
+
# 0:关闭
|
867
|
+
# 1:开启
|
868
|
+
# @type IsHttp2: Integer
|
869
|
+
# @param ActiveCheck: 必填项,是否开启主动健康检测。
|
870
|
+
# 0:不开启
|
871
|
+
# 1:开启
|
872
|
+
# @type ActiveCheck: Integer
|
873
|
+
# @param CipherTemplate: 必填项,加密套件模板。
|
874
|
+
# 0:不支持选择,使用默认模板
|
875
|
+
# 1:通用型模板
|
876
|
+
# 2:安全型模板
|
877
|
+
# 3:自定义模板
|
878
|
+
# @type CipherTemplate: Integer
|
857
879
|
# @param Cert: CertType为1时,需要填充此参数,表示自有证书的证书链
|
858
880
|
# @type Cert: String
|
859
881
|
# @param PrivateKey: CertType为1时,需要填充此参数,表示自有证书的私钥
|
@@ -874,18 +896,10 @@ module TencentCloud
|
|
874
896
|
# @type IsGray: Integer
|
875
897
|
# @param GrayAreas: 灰度的地区
|
876
898
|
# @type GrayAreas: Array
|
877
|
-
# @param HttpsRewrite: 必填项,是否开启HTTP强制跳转到HTTPS。
|
878
|
-
# 0:不强制跳转
|
879
|
-
# 1:开启强制跳转
|
880
|
-
# @type HttpsRewrite: Integer
|
881
899
|
# @param UpstreamDomain: 域名回源时的回源域名。UpstreamType为1时,需要填充此字段
|
882
900
|
# @type UpstreamDomain: String
|
883
901
|
# @param SrcList: IP回源时的回源IP列表。UpstreamType为0时,需要填充此字段
|
884
902
|
# @type SrcList: Array
|
885
|
-
# @param IsHttp2: 必填项,是否开启HTTP2,需要开启HTTPS协议支持。
|
886
|
-
# 0:关闭
|
887
|
-
# 1:开启
|
888
|
-
# @type IsHttp2: Integer
|
889
903
|
# @param Edition: WAF实例类型。
|
890
904
|
# sparta-waf:SAAS型WAF
|
891
905
|
# clb-waf:负载均衡型WAF
|
@@ -895,20 +909,12 @@ module TencentCloud
|
|
895
909
|
# @type Anycast: Integer
|
896
910
|
# @param Weights: 回源IP列表各IP的权重,和SrcList一一对应。当且仅当UpstreamType为0,并且SrcList有多个IP,并且LoadBalance为2时需要填写,否则填 []
|
897
911
|
# @type Weights: Array
|
898
|
-
# @param ActiveCheck: 必填项,是否开启主动健康检测。
|
899
|
-
# 0:不开启
|
900
|
-
# 1:开启
|
901
|
-
# @type ActiveCheck: Integer
|
902
912
|
# @param TLSVersion: TLS版本信息
|
903
913
|
# @type TLSVersion: Integer
|
904
|
-
# @param CipherTemplate: 必填项,加密套件模板。
|
905
|
-
# 0:不支持选择,使用默认模板
|
906
|
-
# 1:通用型模板
|
907
|
-
# 2:安全型模板
|
908
|
-
# 3:自定义模板
|
909
|
-
# @type CipherTemplate: Integer
|
910
914
|
# @param Ciphers: 自定义的加密套件列表。CipherTemplate为3时需要填此字段,表示自定义的加密套件,值通过DescribeCiphersDetail接口获取。
|
911
915
|
# @type Ciphers: Array
|
916
|
+
# @param ProxyConnectTimeout: WAF与源站的连接超时,默认10s。
|
917
|
+
# @type ProxyConnectTimeout: Integer
|
912
918
|
# @param ProxyReadTimeout: WAF与源站的读超时时间,默认300s。
|
913
919
|
# @type ProxyReadTimeout: Integer
|
914
920
|
# @param ProxySendTimeout: WAF与源站的写超时时间,默认300s。
|
@@ -951,8 +957,10 @@ module TencentCloud
|
|
951
957
|
# @type UpstreamRules: Array
|
952
958
|
# @param UseCase: 业务场景。0:默认值,表示常规业务场景 1:大模型业务场景
|
953
959
|
# @type UseCase: Integer
|
960
|
+
# @param Gzip: gzip开关。0:关闭 1:默认值,打开。
|
961
|
+
# @type Gzip: Integer
|
954
962
|
|
955
|
-
attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Ports, :IsKeepAlive, :InstanceID, :Cert, :PrivateKey, :SSLId, :ResourceId, :IpHeaders, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :
|
963
|
+
attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Ports, :IsKeepAlive, :InstanceID, :HttpsRewrite, :IsHttp2, :ActiveCheck, :CipherTemplate, :Cert, :PrivateKey, :SSLId, :ResourceId, :IpHeaders, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :UpstreamDomain, :SrcList, :Edition, :Anycast, :Weights, :TLSVersion, :Ciphers, :ProxyConnectTimeout, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :XFFReset, :Note, :UpstreamHost, :ProxyBuffer, :ProbeStatus, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :UpstreamPolicy, :UpstreamRules, :UseCase, :Gzip
|
956
964
|
extend Gem::Deprecate
|
957
965
|
deprecate :ResourceId, :none, 2025, 9
|
958
966
|
deprecate :ResourceId=, :none, 2025, 9
|
@@ -965,7 +973,7 @@ module TencentCloud
|
|
965
973
|
deprecate :Anycast, :none, 2025, 9
|
966
974
|
deprecate :Anycast=, :none, 2025, 9
|
967
975
|
|
968
|
-
def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, ports=nil, iskeepalive=nil, instanceid=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, ipheaders=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil,
|
976
|
+
def initialize(domain=nil, certtype=nil, iscdn=nil, upstreamtype=nil, iswebsocket=nil, loadbalance=nil, ports=nil, iskeepalive=nil, instanceid=nil, httpsrewrite=nil, ishttp2=nil, activecheck=nil, ciphertemplate=nil, cert=nil, privatekey=nil, sslid=nil, resourceid=nil, ipheaders=nil, upstreamscheme=nil, httpsupstreamport=nil, isgray=nil, grayareas=nil, upstreamdomain=nil, srclist=nil, edition=nil, anycast=nil, weights=nil, tlsversion=nil, ciphers=nil, proxyconnecttimeout=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, xffreset=nil, note=nil, upstreamhost=nil, proxybuffer=nil, probestatus=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, upstreampolicy=nil, upstreamrules=nil, usecase=nil, gzip=nil)
|
969
977
|
@Domain = domain
|
970
978
|
@CertType = certtype
|
971
979
|
@IsCdn = iscdn
|
@@ -975,6 +983,10 @@ module TencentCloud
|
|
975
983
|
@Ports = ports
|
976
984
|
@IsKeepAlive = iskeepalive
|
977
985
|
@InstanceID = instanceid
|
986
|
+
@HttpsRewrite = httpsrewrite
|
987
|
+
@IsHttp2 = ishttp2
|
988
|
+
@ActiveCheck = activecheck
|
989
|
+
@CipherTemplate = ciphertemplate
|
978
990
|
@Cert = cert
|
979
991
|
@PrivateKey = privatekey
|
980
992
|
@SSLId = sslid
|
@@ -984,17 +996,14 @@ module TencentCloud
|
|
984
996
|
@HttpsUpstreamPort = httpsupstreamport
|
985
997
|
@IsGray = isgray
|
986
998
|
@GrayAreas = grayareas
|
987
|
-
@HttpsRewrite = httpsrewrite
|
988
999
|
@UpstreamDomain = upstreamdomain
|
989
1000
|
@SrcList = srclist
|
990
|
-
@IsHttp2 = ishttp2
|
991
1001
|
@Edition = edition
|
992
1002
|
@Anycast = anycast
|
993
1003
|
@Weights = weights
|
994
|
-
@ActiveCheck = activecheck
|
995
1004
|
@TLSVersion = tlsversion
|
996
|
-
@CipherTemplate = ciphertemplate
|
997
1005
|
@Ciphers = ciphers
|
1006
|
+
@ProxyConnectTimeout = proxyconnecttimeout
|
998
1007
|
@ProxyReadTimeout = proxyreadtimeout
|
999
1008
|
@ProxySendTimeout = proxysendtimeout
|
1000
1009
|
@SniType = snitype
|
@@ -1014,6 +1023,7 @@ module TencentCloud
|
|
1014
1023
|
@UpstreamPolicy = upstreampolicy
|
1015
1024
|
@UpstreamRules = upstreamrules
|
1016
1025
|
@UseCase = usecase
|
1026
|
+
@Gzip = gzip
|
1017
1027
|
end
|
1018
1028
|
|
1019
1029
|
def deserialize(params)
|
@@ -1033,6 +1043,10 @@ module TencentCloud
|
|
1033
1043
|
end
|
1034
1044
|
@IsKeepAlive = params['IsKeepAlive']
|
1035
1045
|
@InstanceID = params['InstanceID']
|
1046
|
+
@HttpsRewrite = params['HttpsRewrite']
|
1047
|
+
@IsHttp2 = params['IsHttp2']
|
1048
|
+
@ActiveCheck = params['ActiveCheck']
|
1049
|
+
@CipherTemplate = params['CipherTemplate']
|
1036
1050
|
@Cert = params['Cert']
|
1037
1051
|
@PrivateKey = params['PrivateKey']
|
1038
1052
|
@SSLId = params['SSLId']
|
@@ -1042,17 +1056,14 @@ module TencentCloud
|
|
1042
1056
|
@HttpsUpstreamPort = params['HttpsUpstreamPort']
|
1043
1057
|
@IsGray = params['IsGray']
|
1044
1058
|
@GrayAreas = params['GrayAreas']
|
1045
|
-
@HttpsRewrite = params['HttpsRewrite']
|
1046
1059
|
@UpstreamDomain = params['UpstreamDomain']
|
1047
1060
|
@SrcList = params['SrcList']
|
1048
|
-
@IsHttp2 = params['IsHttp2']
|
1049
1061
|
@Edition = params['Edition']
|
1050
1062
|
@Anycast = params['Anycast']
|
1051
1063
|
@Weights = params['Weights']
|
1052
|
-
@ActiveCheck = params['ActiveCheck']
|
1053
1064
|
@TLSVersion = params['TLSVersion']
|
1054
|
-
@CipherTemplate = params['CipherTemplate']
|
1055
1065
|
@Ciphers = params['Ciphers']
|
1066
|
+
@ProxyConnectTimeout = params['ProxyConnectTimeout']
|
1056
1067
|
@ProxyReadTimeout = params['ProxyReadTimeout']
|
1057
1068
|
@ProxySendTimeout = params['ProxySendTimeout']
|
1058
1069
|
@SniType = params['SniType']
|
@@ -1079,6 +1090,7 @@ module TencentCloud
|
|
1079
1090
|
end
|
1080
1091
|
end
|
1081
1092
|
@UseCase = params['UseCase']
|
1093
|
+
@Gzip = params['Gzip']
|
1082
1094
|
end
|
1083
1095
|
end
|
1084
1096
|
|
@@ -1209,19 +1221,23 @@ module TencentCloud
|
|
1209
1221
|
# @type Operator: String
|
1210
1222
|
# @param Value: 日期,手机号,邮箱等
|
1211
1223
|
# @type Value: String
|
1224
|
+
# @param ValueList: 风险等级
|
1225
|
+
# @type ValueList: Array
|
1212
1226
|
|
1213
|
-
attr_accessor :Entity, :Operator, :Value
|
1227
|
+
attr_accessor :Entity, :Operator, :Value, :ValueList
|
1214
1228
|
|
1215
|
-
def initialize(entity=nil, operator=nil, value=nil)
|
1229
|
+
def initialize(entity=nil, operator=nil, value=nil, valuelist=nil)
|
1216
1230
|
@Entity = entity
|
1217
1231
|
@Operator = operator
|
1218
1232
|
@Value = value
|
1233
|
+
@ValueList = valuelist
|
1219
1234
|
end
|
1220
1235
|
|
1221
1236
|
def deserialize(params)
|
1222
1237
|
@Entity = params['Entity']
|
1223
1238
|
@Operator = params['Operator']
|
1224
1239
|
@Value = params['Value']
|
1240
|
+
@ValueList = params['ValueList']
|
1225
1241
|
end
|
1226
1242
|
end
|
1227
1243
|
|
@@ -1511,6 +1527,26 @@ module TencentCloud
|
|
1511
1527
|
end
|
1512
1528
|
end
|
1513
1529
|
|
1530
|
+
# 批量防护失败的域名以及对应的原因。
|
1531
|
+
class BatchDomainResult < TencentCloud::Common::AbstractModel
|
1532
|
+
# @param Domain: 批量操作中失败的域名
|
1533
|
+
# @type Domain: String
|
1534
|
+
# @param Message: 操作失败的原因
|
1535
|
+
# @type Message: String
|
1536
|
+
|
1537
|
+
attr_accessor :Domain, :Message
|
1538
|
+
|
1539
|
+
def initialize(domain=nil, message=nil)
|
1540
|
+
@Domain = domain
|
1541
|
+
@Message = message
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
def deserialize(params)
|
1545
|
+
@Domain = params['Domain']
|
1546
|
+
@Message = params['Message']
|
1547
|
+
end
|
1548
|
+
end
|
1549
|
+
|
1514
1550
|
# 多域名黑白名单describe返回
|
1515
1551
|
class BatchIpAccessControlData < TencentCloud::Common::AbstractModel
|
1516
1552
|
# @param TotalCount: 总数
|
@@ -2161,10 +2197,12 @@ module TencentCloud
|
|
2161
2197
|
# @type Scene: Array
|
2162
2198
|
# @param Priority: 优先级
|
2163
2199
|
# @type Priority: Integer
|
2200
|
+
# @param TokenValidation: token有效性配置信息
|
2201
|
+
# @type TokenValidation: :class:`Tencentcloud::Waf.v20180125.models.TokenValidation`
|
2164
2202
|
|
2165
|
-
attr_accessor :Name, :Description, :Id, :Status, :Location, :Key, :Operator, :Timestamp, :Scene, :Priority
|
2203
|
+
attr_accessor :Name, :Description, :Id, :Status, :Location, :Key, :Operator, :Timestamp, :Scene, :Priority, :TokenValidation
|
2166
2204
|
|
2167
|
-
def initialize(name=nil, description=nil, id=nil, status=nil, location=nil, key=nil, operator=nil, timestamp=nil, scene=nil, priority=nil)
|
2205
|
+
def initialize(name=nil, description=nil, id=nil, status=nil, location=nil, key=nil, operator=nil, timestamp=nil, scene=nil, priority=nil, tokenvalidation=nil)
|
2168
2206
|
@Name = name
|
2169
2207
|
@Description = description
|
2170
2208
|
@Id = id
|
@@ -2175,6 +2213,7 @@ module TencentCloud
|
|
2175
2213
|
@Timestamp = timestamp
|
2176
2214
|
@Scene = scene
|
2177
2215
|
@Priority = priority
|
2216
|
+
@TokenValidation = tokenvalidation
|
2178
2217
|
end
|
2179
2218
|
|
2180
2219
|
def deserialize(params)
|
@@ -2188,6 +2227,10 @@ module TencentCloud
|
|
2188
2227
|
@Timestamp = params['Timestamp']
|
2189
2228
|
@Scene = params['Scene']
|
2190
2229
|
@Priority = params['Priority']
|
2230
|
+
unless params['TokenValidation'].nil?
|
2231
|
+
@TokenValidation = TokenValidation.new
|
2232
|
+
@TokenValidation.deserialize(params['TokenValidation'])
|
2233
|
+
end
|
2191
2234
|
end
|
2192
2235
|
end
|
2193
2236
|
|
@@ -2322,7 +2365,7 @@ module TencentCloud
|
|
2322
2365
|
# @type ValidTime: Integer
|
2323
2366
|
# @param TsVersion: 版本
|
2324
2367
|
# @type TsVersion: Integer
|
2325
|
-
# @param Options:
|
2368
|
+
# @param Options: key为匹配字段;args为base64编码后的参数,等于号前为匹配参数,等于号后为匹配内容;match为逻辑符号;encodeflag为参数内容是否编码
|
2326
2369
|
# @type Options: String
|
2327
2370
|
# @param RuleId: 规则ID
|
2328
2371
|
# @type RuleId: Integer
|
@@ -2338,10 +2381,14 @@ module TencentCloud
|
|
2338
2381
|
# @type CelRule: String
|
2339
2382
|
# @param LogicalOp: 逻辑操作符
|
2340
2383
|
# @type LogicalOp: String
|
2384
|
+
# @param PageId: 页面ID
|
2385
|
+
# @type PageId: String
|
2386
|
+
# @param ActionRatio: 动作灰度比例,默认值100
|
2387
|
+
# @type ActionRatio: Integer
|
2341
2388
|
|
2342
|
-
attr_accessor :Name, :Status, :Advance, :Limit, :Interval, :Url, :MatchFunc, :ActionType, :Priority, :ValidTime, :TsVersion, :Options, :RuleId, :EventId, :SessionApplied, :CreateTime, :LimitMethod, :CelRule, :LogicalOp
|
2389
|
+
attr_accessor :Name, :Status, :Advance, :Limit, :Interval, :Url, :MatchFunc, :ActionType, :Priority, :ValidTime, :TsVersion, :Options, :RuleId, :EventId, :SessionApplied, :CreateTime, :LimitMethod, :CelRule, :LogicalOp, :PageId, :ActionRatio
|
2343
2390
|
|
2344
|
-
def initialize(name=nil, status=nil, advance=nil, limit=nil, interval=nil, url=nil, matchfunc=nil, actiontype=nil, priority=nil, validtime=nil, tsversion=nil, options=nil, ruleid=nil, eventid=nil, sessionapplied=nil, createtime=nil, limitmethod=nil, celrule=nil, logicalop=nil)
|
2391
|
+
def initialize(name=nil, status=nil, advance=nil, limit=nil, interval=nil, url=nil, matchfunc=nil, actiontype=nil, priority=nil, validtime=nil, tsversion=nil, options=nil, ruleid=nil, eventid=nil, sessionapplied=nil, createtime=nil, limitmethod=nil, celrule=nil, logicalop=nil, pageid=nil, actionratio=nil)
|
2345
2392
|
@Name = name
|
2346
2393
|
@Status = status
|
2347
2394
|
@Advance = advance
|
@@ -2361,6 +2408,8 @@ module TencentCloud
|
|
2361
2408
|
@LimitMethod = limitmethod
|
2362
2409
|
@CelRule = celrule
|
2363
2410
|
@LogicalOp = logicalop
|
2411
|
+
@PageId = pageid
|
2412
|
+
@ActionRatio = actionratio
|
2364
2413
|
end
|
2365
2414
|
|
2366
2415
|
def deserialize(params)
|
@@ -2383,6 +2432,8 @@ module TencentCloud
|
|
2383
2432
|
@LimitMethod = params['LimitMethod']
|
2384
2433
|
@CelRule = params['CelRule']
|
2385
2434
|
@LogicalOp = params['LogicalOp']
|
2435
|
+
@PageId = params['PageId']
|
2436
|
+
@ActionRatio = params['ActionRatio']
|
2386
2437
|
end
|
2387
2438
|
end
|
2388
2439
|
|
@@ -2909,6 +2960,80 @@ module TencentCloud
|
|
2909
2960
|
end
|
2910
2961
|
end
|
2911
2962
|
|
2963
|
+
# CreateBatchIpAccessControl请求参数结构体
|
2964
|
+
class CreateBatchIpAccessControlRequest < TencentCloud::Common::AbstractModel
|
2965
|
+
# @param IpList: IP参数列表
|
2966
|
+
# @type IpList: Array
|
2967
|
+
# @param JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
|
2968
|
+
# @type JobType: String
|
2969
|
+
# @param JobDateTime: 定时任务配置
|
2970
|
+
# @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
|
2971
|
+
# @param ActionType: 42为黑名单,40为白名单
|
2972
|
+
# @type ActionType: Integer
|
2973
|
+
# @param GroupIds: 防护对象组ID列表,如果绑定的是防护对象组,和Domains参数二选一
|
2974
|
+
# @type GroupIds: Array
|
2975
|
+
# @param Domains: 域名列表,如果绑定的是批量域名,和GroupIds参数二选一
|
2976
|
+
# @type Domains: Array
|
2977
|
+
# @param Note: 备注
|
2978
|
+
# @type Note: String
|
2979
|
+
|
2980
|
+
attr_accessor :IpList, :JobType, :JobDateTime, :ActionType, :GroupIds, :Domains, :Note
|
2981
|
+
|
2982
|
+
def initialize(iplist=nil, jobtype=nil, jobdatetime=nil, actiontype=nil, groupids=nil, domains=nil, note=nil)
|
2983
|
+
@IpList = iplist
|
2984
|
+
@JobType = jobtype
|
2985
|
+
@JobDateTime = jobdatetime
|
2986
|
+
@ActionType = actiontype
|
2987
|
+
@GroupIds = groupids
|
2988
|
+
@Domains = domains
|
2989
|
+
@Note = note
|
2990
|
+
end
|
2991
|
+
|
2992
|
+
def deserialize(params)
|
2993
|
+
@IpList = params['IpList']
|
2994
|
+
@JobType = params['JobType']
|
2995
|
+
unless params['JobDateTime'].nil?
|
2996
|
+
@JobDateTime = JobDateTime.new
|
2997
|
+
@JobDateTime.deserialize(params['JobDateTime'])
|
2998
|
+
end
|
2999
|
+
@ActionType = params['ActionType']
|
3000
|
+
@GroupIds = params['GroupIds']
|
3001
|
+
@Domains = params['Domains']
|
3002
|
+
@Note = params['Note']
|
3003
|
+
end
|
3004
|
+
end
|
3005
|
+
|
3006
|
+
# CreateBatchIpAccessControl返回参数结构体
|
3007
|
+
class CreateBatchIpAccessControlResponse < TencentCloud::Common::AbstractModel
|
3008
|
+
# @param Failed: 添加失败的域名列表,如果非空则表示有域名添加失败,整个批量规则添加失败,否则则表示批量规则添加成功。
|
3009
|
+
# @type Failed: Array
|
3010
|
+
# @param RuleId: 添加成功的批量规则ID
|
3011
|
+
# @type RuleId: Integer
|
3012
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3013
|
+
# @type RequestId: String
|
3014
|
+
|
3015
|
+
attr_accessor :Failed, :RuleId, :RequestId
|
3016
|
+
|
3017
|
+
def initialize(failed=nil, ruleid=nil, requestid=nil)
|
3018
|
+
@Failed = failed
|
3019
|
+
@RuleId = ruleid
|
3020
|
+
@RequestId = requestid
|
3021
|
+
end
|
3022
|
+
|
3023
|
+
def deserialize(params)
|
3024
|
+
unless params['Failed'].nil?
|
3025
|
+
@Failed = []
|
3026
|
+
params['Failed'].each do |i|
|
3027
|
+
batchdomainresult_tmp = BatchDomainResult.new
|
3028
|
+
batchdomainresult_tmp.deserialize(i)
|
3029
|
+
@Failed << batchdomainresult_tmp
|
3030
|
+
end
|
3031
|
+
end
|
3032
|
+
@RuleId = params['RuleId']
|
3033
|
+
@RequestId = params['RequestId']
|
3034
|
+
end
|
3035
|
+
end
|
3036
|
+
|
2912
3037
|
# 计费下单接口出入参Goods
|
2913
3038
|
class CreateDealsGoods < TencentCloud::Common::AbstractModel
|
2914
3039
|
# @param GoodsNum: 商品数量
|
@@ -3726,6 +3851,38 @@ module TencentCloud
|
|
3726
3851
|
end
|
3727
3852
|
end
|
3728
3853
|
|
3854
|
+
# DeleteBatchIpAccessControl请求参数结构体
|
3855
|
+
class DeleteBatchIpAccessControlRequest < TencentCloud::Common::AbstractModel
|
3856
|
+
# @param Ids: 规则ID列表,支持批量删除
|
3857
|
+
# @type Ids: Array
|
3858
|
+
|
3859
|
+
attr_accessor :Ids
|
3860
|
+
|
3861
|
+
def initialize(ids=nil)
|
3862
|
+
@Ids = ids
|
3863
|
+
end
|
3864
|
+
|
3865
|
+
def deserialize(params)
|
3866
|
+
@Ids = params['Ids']
|
3867
|
+
end
|
3868
|
+
end
|
3869
|
+
|
3870
|
+
# DeleteBatchIpAccessControl返回参数结构体
|
3871
|
+
class DeleteBatchIpAccessControlResponse < TencentCloud::Common::AbstractModel
|
3872
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3873
|
+
# @type RequestId: String
|
3874
|
+
|
3875
|
+
attr_accessor :RequestId
|
3876
|
+
|
3877
|
+
def initialize(requestid=nil)
|
3878
|
+
@RequestId = requestid
|
3879
|
+
end
|
3880
|
+
|
3881
|
+
def deserialize(params)
|
3882
|
+
@RequestId = params['RequestId']
|
3883
|
+
end
|
3884
|
+
end
|
3885
|
+
|
3729
3886
|
# DeleteBotSceneUCBRule请求参数结构体
|
3730
3887
|
class DeleteBotSceneUCBRuleRequest < TencentCloud::Common::AbstractModel
|
3731
3888
|
# @param Domain: 域名
|
@@ -4273,23 +4430,23 @@ module TencentCloud
|
|
4273
4430
|
class DeleteSpartaProtectionRequest < TencentCloud::Common::AbstractModel
|
4274
4431
|
# @param Domains: 域名列表
|
4275
4432
|
# @type Domains: Array
|
4276
|
-
# @param Edition: 实例类型
|
4277
|
-
# @type Edition: String
|
4278
4433
|
# @param InstanceID: 必填项。域名所属实例ID
|
4279
4434
|
# @type InstanceID: String
|
4435
|
+
# @param Edition: 实例类型
|
4436
|
+
# @type Edition: String
|
4280
4437
|
|
4281
|
-
attr_accessor :Domains, :
|
4438
|
+
attr_accessor :Domains, :InstanceID, :Edition
|
4282
4439
|
|
4283
|
-
def initialize(domains=nil,
|
4440
|
+
def initialize(domains=nil, instanceid=nil, edition=nil)
|
4284
4441
|
@Domains = domains
|
4285
|
-
@Edition = edition
|
4286
4442
|
@InstanceID = instanceid
|
4443
|
+
@Edition = edition
|
4287
4444
|
end
|
4288
4445
|
|
4289
4446
|
def deserialize(params)
|
4290
4447
|
@Domains = params['Domains']
|
4291
|
-
@Edition = params['Edition']
|
4292
4448
|
@InstanceID = params['InstanceID']
|
4449
|
+
@Edition = params['Edition']
|
4293
4450
|
end
|
4294
4451
|
end
|
4295
4452
|
|
@@ -5593,17 +5750,20 @@ module TencentCloud
|
|
5593
5750
|
# @type CurrentGlobalScene: :class:`Tencentcloud::Waf.v20180125.models.GlobalSceneInfo`
|
5594
5751
|
# @param CustomRuleNums: 自定义规则总数,不包括BOT白名单
|
5595
5752
|
# @type CustomRuleNums: Integer
|
5753
|
+
# @param TldStatus: 图灵盾开关状态
|
5754
|
+
# @type TldStatus: Boolean
|
5596
5755
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5597
5756
|
# @type RequestId: String
|
5598
5757
|
|
5599
|
-
attr_accessor :Status, :SceneCount, :ValidSceneCount, :CurrentGlobalScene, :CustomRuleNums, :RequestId
|
5758
|
+
attr_accessor :Status, :SceneCount, :ValidSceneCount, :CurrentGlobalScene, :CustomRuleNums, :TldStatus, :RequestId
|
5600
5759
|
|
5601
|
-
def initialize(status=nil, scenecount=nil, validscenecount=nil, currentglobalscene=nil, customrulenums=nil, requestid=nil)
|
5760
|
+
def initialize(status=nil, scenecount=nil, validscenecount=nil, currentglobalscene=nil, customrulenums=nil, tldstatus=nil, requestid=nil)
|
5602
5761
|
@Status = status
|
5603
5762
|
@SceneCount = scenecount
|
5604
5763
|
@ValidSceneCount = validscenecount
|
5605
5764
|
@CurrentGlobalScene = currentglobalscene
|
5606
5765
|
@CustomRuleNums = customrulenums
|
5766
|
+
@TldStatus = tldstatus
|
5607
5767
|
@RequestId = requestid
|
5608
5768
|
end
|
5609
5769
|
|
@@ -5616,6 +5776,7 @@ module TencentCloud
|
|
5616
5776
|
@CurrentGlobalScene.deserialize(params['CurrentGlobalScene'])
|
5617
5777
|
end
|
5618
5778
|
@CustomRuleNums = params['CustomRuleNums']
|
5779
|
+
@TldStatus = params['TldStatus']
|
5619
5780
|
@RequestId = params['RequestId']
|
5620
5781
|
end
|
5621
5782
|
end
|
@@ -6141,10 +6302,12 @@ module TencentCloud
|
|
6141
6302
|
# @type Domain: String
|
6142
6303
|
# @param LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
6143
6304
|
# @type LogicalOp: String
|
6305
|
+
# @param ActionRatio: 规则灰度的比例,默认是100,不灰度
|
6306
|
+
# @type ActionRatio: Integer
|
6144
6307
|
|
6145
|
-
attr_accessor :ActionType, :Bypass, :CreateTime, :ExpireTime, :Name, :Redirect, :RuleId, :SortId, :Status, :Strategies, :EventId, :ModifyTime, :ValidStatus, :Source, :JobType, :JobDateTime, :CronType, :Label, :PageId, :Domain, :LogicalOp
|
6308
|
+
attr_accessor :ActionType, :Bypass, :CreateTime, :ExpireTime, :Name, :Redirect, :RuleId, :SortId, :Status, :Strategies, :EventId, :ModifyTime, :ValidStatus, :Source, :JobType, :JobDateTime, :CronType, :Label, :PageId, :Domain, :LogicalOp, :ActionRatio
|
6146
6309
|
|
6147
|
-
def initialize(actiontype=nil, bypass=nil, createtime=nil, expiretime=nil, name=nil, redirect=nil, ruleid=nil, sortid=nil, status=nil, strategies=nil, eventid=nil, modifytime=nil, validstatus=nil, source=nil, jobtype=nil, jobdatetime=nil, crontype=nil, label=nil, pageid=nil, domain=nil, logicalop=nil)
|
6310
|
+
def initialize(actiontype=nil, bypass=nil, createtime=nil, expiretime=nil, name=nil, redirect=nil, ruleid=nil, sortid=nil, status=nil, strategies=nil, eventid=nil, modifytime=nil, validstatus=nil, source=nil, jobtype=nil, jobdatetime=nil, crontype=nil, label=nil, pageid=nil, domain=nil, logicalop=nil, actionratio=nil)
|
6148
6311
|
@ActionType = actiontype
|
6149
6312
|
@Bypass = bypass
|
6150
6313
|
@CreateTime = createtime
|
@@ -6166,6 +6329,7 @@ module TencentCloud
|
|
6166
6329
|
@PageId = pageid
|
6167
6330
|
@Domain = domain
|
6168
6331
|
@LogicalOp = logicalop
|
6332
|
+
@ActionRatio = actionratio
|
6169
6333
|
end
|
6170
6334
|
|
6171
6335
|
def deserialize(params)
|
@@ -6200,6 +6364,7 @@ module TencentCloud
|
|
6200
6364
|
@PageId = params['PageId']
|
6201
6365
|
@Domain = params['Domain']
|
6202
6366
|
@LogicalOp = params['LogicalOp']
|
6367
|
+
@ActionRatio = params['ActionRatio']
|
6203
6368
|
end
|
6204
6369
|
end
|
6205
6370
|
|
@@ -9650,6 +9815,8 @@ module TencentCloud
|
|
9650
9815
|
# 2:安全型模板
|
9651
9816
|
# 3:自定义模板
|
9652
9817
|
# @type CipherTemplate: Integer
|
9818
|
+
# @param ProxyConnectTimeout: WAF与源站的连接超时,默认10s。
|
9819
|
+
# @type ProxyConnectTimeout: Integer
|
9653
9820
|
# @param ProxyReadTimeout: WAF与源站的读超时时间,默认300s。
|
9654
9821
|
# @type ProxyReadTimeout: Integer
|
9655
9822
|
# @param ProxySendTimeout: WAF与源站的写超时时间,默认300s。
|
@@ -9704,13 +9871,15 @@ module TencentCloud
|
|
9704
9871
|
# @type UpstreamRules: Array
|
9705
9872
|
# @param UseCase: 业务场景。0:默认值,表示常规业务场景 1:大模型业务场景
|
9706
9873
|
# @type UseCase: Integer
|
9874
|
+
# @param Gzip: gzip开关。0:关闭 1:默认值,打开。
|
9875
|
+
# @type Gzip: Integer
|
9707
9876
|
|
9708
|
-
attr_accessor :Domain, :DomainId, :InstanceId, :Edition, :InstanceName, :Cert, :CreateTime, :Engine, :HttpsRewrite, :HttpsUpstreamPort, :IsCdn, :IsGray, :IsHttp2, :IsWebsocket, :LoadBalance, :Mode, :PrivateKey, :SSLId, :UpstreamDomain, :UpstreamType, :SrcList, :Ports, :CertType, :UpstreamScheme, :Cls, :Cname, :IsKeepAlive, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :Weights, :IpHeaders, :XFFReset, :Note, :UpstreamHost, :Level, :ProxyBuffer, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :Labels, :ProbeStatus, :UpstreamPolicy, :UpstreamRules, :UseCase
|
9877
|
+
attr_accessor :Domain, :DomainId, :InstanceId, :Edition, :InstanceName, :Cert, :CreateTime, :Engine, :HttpsRewrite, :HttpsUpstreamPort, :IsCdn, :IsGray, :IsHttp2, :IsWebsocket, :LoadBalance, :Mode, :PrivateKey, :SSLId, :UpstreamDomain, :UpstreamType, :SrcList, :Ports, :CertType, :UpstreamScheme, :Cls, :Cname, :IsKeepAlive, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyConnectTimeout, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :Weights, :IpHeaders, :XFFReset, :Note, :UpstreamHost, :Level, :ProxyBuffer, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :Labels, :ProbeStatus, :UpstreamPolicy, :UpstreamRules, :UseCase, :Gzip
|
9709
9878
|
extend Gem::Deprecate
|
9710
9879
|
deprecate :IsGray, :none, 2025, 9
|
9711
9880
|
deprecate :IsGray=, :none, 2025, 9
|
9712
9881
|
|
9713
|
-
def initialize(domain=nil, domainid=nil, instanceid=nil, edition=nil, instancename=nil, cert=nil, createtime=nil, engine=nil, httpsrewrite=nil, httpsupstreamport=nil, iscdn=nil, isgray=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, mode=nil, privatekey=nil, sslid=nil, upstreamdomain=nil, upstreamtype=nil, srclist=nil, ports=nil, certtype=nil, upstreamscheme=nil, cls=nil, cname=nil, iskeepalive=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, weights=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil, level=nil, proxybuffer=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, labels=nil, probestatus=nil, upstreampolicy=nil, upstreamrules=nil, usecase=nil)
|
9882
|
+
def initialize(domain=nil, domainid=nil, instanceid=nil, edition=nil, instancename=nil, cert=nil, createtime=nil, engine=nil, httpsrewrite=nil, httpsupstreamport=nil, iscdn=nil, isgray=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, mode=nil, privatekey=nil, sslid=nil, upstreamdomain=nil, upstreamtype=nil, srclist=nil, ports=nil, certtype=nil, upstreamscheme=nil, cls=nil, cname=nil, iskeepalive=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyconnecttimeout=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, weights=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil, level=nil, proxybuffer=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, labels=nil, probestatus=nil, upstreampolicy=nil, upstreamrules=nil, usecase=nil, gzip=nil)
|
9714
9883
|
@Domain = domain
|
9715
9884
|
@DomainId = domainid
|
9716
9885
|
@InstanceId = instanceid
|
@@ -9742,6 +9911,7 @@ module TencentCloud
|
|
9742
9911
|
@TLSVersion = tlsversion
|
9743
9912
|
@Ciphers = ciphers
|
9744
9913
|
@CipherTemplate = ciphertemplate
|
9914
|
+
@ProxyConnectTimeout = proxyconnecttimeout
|
9745
9915
|
@ProxyReadTimeout = proxyreadtimeout
|
9746
9916
|
@ProxySendTimeout = proxysendtimeout
|
9747
9917
|
@SniType = snitype
|
@@ -9765,6 +9935,7 @@ module TencentCloud
|
|
9765
9935
|
@UpstreamPolicy = upstreampolicy
|
9766
9936
|
@UpstreamRules = upstreamrules
|
9767
9937
|
@UseCase = usecase
|
9938
|
+
@Gzip = gzip
|
9768
9939
|
end
|
9769
9940
|
|
9770
9941
|
def deserialize(params)
|
@@ -9806,6 +9977,7 @@ module TencentCloud
|
|
9806
9977
|
@TLSVersion = params['TLSVersion']
|
9807
9978
|
@Ciphers = params['Ciphers']
|
9808
9979
|
@CipherTemplate = params['CipherTemplate']
|
9980
|
+
@ProxyConnectTimeout = params['ProxyConnectTimeout']
|
9809
9981
|
@ProxyReadTimeout = params['ProxyReadTimeout']
|
9810
9982
|
@ProxySendTimeout = params['ProxySendTimeout']
|
9811
9983
|
@SniType = params['SniType']
|
@@ -9836,6 +10008,7 @@ module TencentCloud
|
|
9836
10008
|
end
|
9837
10009
|
end
|
9838
10010
|
@UseCase = params['UseCase']
|
10011
|
+
@Gzip = params['Gzip']
|
9839
10012
|
end
|
9840
10013
|
end
|
9841
10014
|
|
@@ -11372,10 +11545,19 @@ module TencentCloud
|
|
11372
11545
|
# @type BasicFlag: Integer
|
11373
11546
|
# @param NetworkConfig: 实例的网络配置
|
11374
11547
|
# @type NetworkConfig: :class:`Tencentcloud::Waf.v20180125.models.NetworkConfig`
|
11375
|
-
|
11376
|
-
|
11377
|
-
|
11378
|
-
|
11548
|
+
# @param RCEPkg: RCE设备安全信息包
|
11549
|
+
# @type RCEPkg: :class:`Tencentcloud::Waf.v20180125.models.RCEPkg`
|
11550
|
+
# @param ExceedPolicy: 超量策略。0:超量沙箱
|
11551
|
+
# 1:超量限流
|
11552
|
+
# @type ExceedPolicy: Integer
|
11553
|
+
# @param LLMPkg: 大模型安全信息包
|
11554
|
+
# @type LLMPkg: :class:`Tencentcloud::Waf.v20180125.models.LLMPkg`
|
11555
|
+
# @param ElasticResourceId: 弹性资源Id
|
11556
|
+
# @type ElasticResourceId: String
|
11557
|
+
|
11558
|
+
attr_accessor :InstanceId, :InstanceName, :ResourceIds, :Region, :PayMode, :RenewFlag, :Mode, :Level, :ValidTime, :BeginTime, :DomainCount, :SubDomainLimit, :MainDomainCount, :MainDomainLimit, :MaxQPS, :QPS, :DomainPkg, :AppId, :Edition, :FraudPkg, :BotPkg, :BotQPS, :ElasticBilling, :AttackLogPost, :MaxBandwidth, :APISecurity, :QpsStandard, :BandwidthStandard, :Status, :SandboxQps, :IsAPISecurityTrial, :MajorEventsPkg, :HybridPkg, :ApiPkg, :MiniPkg, :MiniQpsStandard, :MiniMaxQPS, :LastQpsExceedTime, :MiniExtendPkg, :BillingItem, :FreeDelayFlag, :Last3MaxQPS, :Last3MaxBandwidth, :MajorEventsProPkg, :BasicFlag, :NetworkConfig, :RCEPkg, :ExceedPolicy, :LLMPkg, :ElasticResourceId
|
11559
|
+
|
11560
|
+
def initialize(instanceid=nil, instancename=nil, resourceids=nil, region=nil, paymode=nil, renewflag=nil, mode=nil, level=nil, validtime=nil, begintime=nil, domaincount=nil, subdomainlimit=nil, maindomaincount=nil, maindomainlimit=nil, maxqps=nil, qps=nil, domainpkg=nil, appid=nil, edition=nil, fraudpkg=nil, botpkg=nil, botqps=nil, elasticbilling=nil, attacklogpost=nil, maxbandwidth=nil, apisecurity=nil, qpsstandard=nil, bandwidthstandard=nil, status=nil, sandboxqps=nil, isapisecuritytrial=nil, majoreventspkg=nil, hybridpkg=nil, apipkg=nil, minipkg=nil, miniqpsstandard=nil, minimaxqps=nil, lastqpsexceedtime=nil, miniextendpkg=nil, billingitem=nil, freedelayflag=nil, last3maxqps=nil, last3maxbandwidth=nil, majoreventspropkg=nil, basicflag=nil, networkconfig=nil, rcepkg=nil, exceedpolicy=nil, llmpkg=nil, elasticresourceid=nil)
|
11379
11561
|
@InstanceId = instanceid
|
11380
11562
|
@InstanceName = instancename
|
11381
11563
|
@ResourceIds = resourceids
|
@@ -11422,6 +11604,10 @@ module TencentCloud
|
|
11422
11604
|
@MajorEventsProPkg = majoreventspropkg
|
11423
11605
|
@BasicFlag = basicflag
|
11424
11606
|
@NetworkConfig = networkconfig
|
11607
|
+
@RCEPkg = rcepkg
|
11608
|
+
@ExceedPolicy = exceedpolicy
|
11609
|
+
@LLMPkg = llmpkg
|
11610
|
+
@ElasticResourceId = elasticresourceid
|
11425
11611
|
end
|
11426
11612
|
|
11427
11613
|
def deserialize(params)
|
@@ -11507,6 +11693,16 @@ module TencentCloud
|
|
11507
11693
|
@NetworkConfig = NetworkConfig.new
|
11508
11694
|
@NetworkConfig.deserialize(params['NetworkConfig'])
|
11509
11695
|
end
|
11696
|
+
unless params['RCEPkg'].nil?
|
11697
|
+
@RCEPkg = RCEPkg.new
|
11698
|
+
@RCEPkg.deserialize(params['RCEPkg'])
|
11699
|
+
end
|
11700
|
+
@ExceedPolicy = params['ExceedPolicy']
|
11701
|
+
unless params['LLMPkg'].nil?
|
11702
|
+
@LLMPkg = LLMPkg.new
|
11703
|
+
@LLMPkg.deserialize(params['LLMPkg'])
|
11704
|
+
end
|
11705
|
+
@ElasticResourceId = params['ElasticResourceId']
|
11510
11706
|
end
|
11511
11707
|
end
|
11512
11708
|
|
@@ -11699,6 +11895,36 @@ module TencentCloud
|
|
11699
11895
|
end
|
11700
11896
|
end
|
11701
11897
|
|
11898
|
+
# 当用户选择JWS/JWE会话管理方式的时候,上传的配置信息以及校验规则
|
11899
|
+
class JWTConfig < TencentCloud::Common::AbstractModel
|
11900
|
+
# @param SecretInfo: 密钥信息
|
11901
|
+
# @type SecretInfo: :class:`Tencentcloud::Waf.v20180125.models.SecretInfo`
|
11902
|
+
# @param PayloadRule: Payload校验规则集合
|
11903
|
+
# @type PayloadRule: Array
|
11904
|
+
|
11905
|
+
attr_accessor :SecretInfo, :PayloadRule
|
11906
|
+
|
11907
|
+
def initialize(secretinfo=nil, payloadrule=nil)
|
11908
|
+
@SecretInfo = secretinfo
|
11909
|
+
@PayloadRule = payloadrule
|
11910
|
+
end
|
11911
|
+
|
11912
|
+
def deserialize(params)
|
11913
|
+
unless params['SecretInfo'].nil?
|
11914
|
+
@SecretInfo = SecretInfo.new
|
11915
|
+
@SecretInfo.deserialize(params['SecretInfo'])
|
11916
|
+
end
|
11917
|
+
unless params['PayloadRule'].nil?
|
11918
|
+
@PayloadRule = []
|
11919
|
+
params['PayloadRule'].each do |i|
|
11920
|
+
tokenruleentry_tmp = TokenRuleEntry.new
|
11921
|
+
tokenruleentry_tmp.deserialize(i)
|
11922
|
+
@PayloadRule << tokenruleentry_tmp
|
11923
|
+
end
|
11924
|
+
end
|
11925
|
+
end
|
11926
|
+
end
|
11927
|
+
|
11702
11928
|
# 规则执行的时间结构体
|
11703
11929
|
class JobDateTime < TencentCloud::Common::AbstractModel
|
11704
11930
|
# @param Timed: 定时执行的时间参数
|
@@ -11757,6 +11983,42 @@ module TencentCloud
|
|
11757
11983
|
end
|
11758
11984
|
end
|
11759
11985
|
|
11986
|
+
# 有效大模型安全包信息
|
11987
|
+
class LLMPkg < TencentCloud::Common::AbstractModel
|
11988
|
+
# @param ResourceIds: 资源id
|
11989
|
+
# @type ResourceIds: String
|
11990
|
+
# @param Status: 状态
|
11991
|
+
# @type Status: Integer
|
11992
|
+
# @param Region: 地域
|
11993
|
+
# @type Region: Integer
|
11994
|
+
# @param BeginTime: 开始时间
|
11995
|
+
# @type BeginTime: String
|
11996
|
+
# @param EndTime: 结束时间
|
11997
|
+
# @type EndTime: String
|
11998
|
+
# @param InquireKey: 计费项
|
11999
|
+
# @type InquireKey: String
|
12000
|
+
|
12001
|
+
attr_accessor :ResourceIds, :Status, :Region, :BeginTime, :EndTime, :InquireKey
|
12002
|
+
|
12003
|
+
def initialize(resourceids=nil, status=nil, region=nil, begintime=nil, endtime=nil, inquirekey=nil)
|
12004
|
+
@ResourceIds = resourceids
|
12005
|
+
@Status = status
|
12006
|
+
@Region = region
|
12007
|
+
@BeginTime = begintime
|
12008
|
+
@EndTime = endtime
|
12009
|
+
@InquireKey = inquirekey
|
12010
|
+
end
|
12011
|
+
|
12012
|
+
def deserialize(params)
|
12013
|
+
@ResourceIds = params['ResourceIds']
|
12014
|
+
@Status = params['Status']
|
12015
|
+
@Region = params['Region']
|
12016
|
+
@BeginTime = params['BeginTime']
|
12017
|
+
@EndTime = params['EndTime']
|
12018
|
+
@InquireKey = params['InquireKey']
|
12019
|
+
end
|
12020
|
+
end
|
12021
|
+
|
11760
12022
|
# 负载均衡的监听器
|
11761
12023
|
class LoadBalancer < TencentCloud::Common::AbstractModel
|
11762
12024
|
# @param LoadBalancerId: 负载均衡LD的ID
|
@@ -11830,7 +12092,7 @@ module TencentCloud
|
|
11830
12092
|
# @param Protocol: 协议
|
11831
12093
|
# @type Protocol: String
|
11832
12094
|
# @param Region: 地区
|
11833
|
-
#
|
12095
|
+
# "多伦多": "ca",
|
11834
12096
|
# "广州": "gz",
|
11835
12097
|
# "成都": "cd",
|
11836
12098
|
# "福州": "fzec",
|
@@ -11857,7 +12119,8 @@ module TencentCloud
|
|
11857
12119
|
# "首尔": "kr",
|
11858
12120
|
# "上海": "sh",
|
11859
12121
|
# "新加坡": "sg",
|
11860
|
-
# "清远": "qy"
|
12122
|
+
# "清远": "qy",
|
12123
|
+
# "雅加达": "jkt"
|
11861
12124
|
# @type Region: String
|
11862
12125
|
# @param Vip: 接入IP
|
11863
12126
|
# @type Vip: String
|
@@ -12741,6 +13004,80 @@ module TencentCloud
|
|
12741
13004
|
end
|
12742
13005
|
end
|
12743
13006
|
|
13007
|
+
# ModifyBatchIpAccessControl请求参数结构体
|
13008
|
+
class ModifyBatchIpAccessControlRequest < TencentCloud::Common::AbstractModel
|
13009
|
+
# @param RuleId: 编辑的批量规则ID
|
13010
|
+
# @type RuleId: Integer
|
13011
|
+
# @param IpList: IP参数列表
|
13012
|
+
# @type IpList: Array
|
13013
|
+
# @param JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
|
13014
|
+
# @type JobType: String
|
13015
|
+
# @param JobDateTime: 定时任务配置
|
13016
|
+
# @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
|
13017
|
+
# @param ActionType: 42为黑名单,40为白名单
|
13018
|
+
# @type ActionType: Integer
|
13019
|
+
# @param GroupIds: 防护对象组ID列表,如果绑定的是防护对象组,和Domains参数二选一
|
13020
|
+
# @type GroupIds: Array
|
13021
|
+
# @param Domains: 域名列表,如果绑定的是批量域名,和GroupIds参数二选一
|
13022
|
+
# @type Domains: Array
|
13023
|
+
# @param Note: 备注
|
13024
|
+
# @type Note: String
|
13025
|
+
|
13026
|
+
attr_accessor :RuleId, :IpList, :JobType, :JobDateTime, :ActionType, :GroupIds, :Domains, :Note
|
13027
|
+
|
13028
|
+
def initialize(ruleid=nil, iplist=nil, jobtype=nil, jobdatetime=nil, actiontype=nil, groupids=nil, domains=nil, note=nil)
|
13029
|
+
@RuleId = ruleid
|
13030
|
+
@IpList = iplist
|
13031
|
+
@JobType = jobtype
|
13032
|
+
@JobDateTime = jobdatetime
|
13033
|
+
@ActionType = actiontype
|
13034
|
+
@GroupIds = groupids
|
13035
|
+
@Domains = domains
|
13036
|
+
@Note = note
|
13037
|
+
end
|
13038
|
+
|
13039
|
+
def deserialize(params)
|
13040
|
+
@RuleId = params['RuleId']
|
13041
|
+
@IpList = params['IpList']
|
13042
|
+
@JobType = params['JobType']
|
13043
|
+
unless params['JobDateTime'].nil?
|
13044
|
+
@JobDateTime = JobDateTime.new
|
13045
|
+
@JobDateTime.deserialize(params['JobDateTime'])
|
13046
|
+
end
|
13047
|
+
@ActionType = params['ActionType']
|
13048
|
+
@GroupIds = params['GroupIds']
|
13049
|
+
@Domains = params['Domains']
|
13050
|
+
@Note = params['Note']
|
13051
|
+
end
|
13052
|
+
end
|
13053
|
+
|
13054
|
+
# ModifyBatchIpAccessControl返回参数结构体
|
13055
|
+
class ModifyBatchIpAccessControlResponse < TencentCloud::Common::AbstractModel
|
13056
|
+
# @param Failed: 编辑失败的域名列表,如果非空则表示有域名编辑失败,整个批量规则编辑失败,否则则表示批量规则编辑成功。
|
13057
|
+
# @type Failed: Array
|
13058
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
13059
|
+
# @type RequestId: String
|
13060
|
+
|
13061
|
+
attr_accessor :Failed, :RequestId
|
13062
|
+
|
13063
|
+
def initialize(failed=nil, requestid=nil)
|
13064
|
+
@Failed = failed
|
13065
|
+
@RequestId = requestid
|
13066
|
+
end
|
13067
|
+
|
13068
|
+
def deserialize(params)
|
13069
|
+
unless params['Failed'].nil?
|
13070
|
+
@Failed = []
|
13071
|
+
params['Failed'].each do |i|
|
13072
|
+
batchdomainresult_tmp = BatchDomainResult.new
|
13073
|
+
batchdomainresult_tmp.deserialize(i)
|
13074
|
+
@Failed << batchdomainresult_tmp
|
13075
|
+
end
|
13076
|
+
end
|
13077
|
+
@RequestId = params['RequestId']
|
13078
|
+
end
|
13079
|
+
end
|
13080
|
+
|
12744
13081
|
# ModifyBotSceneStatus请求参数结构体
|
12745
13082
|
class ModifyBotSceneStatusRequest < TencentCloud::Common::AbstractModel
|
12746
13083
|
# @param Domain: 域名
|
@@ -12952,13 +13289,15 @@ module TencentCloud
|
|
12952
13289
|
# @type PageId: String
|
12953
13290
|
# @param LogicalOp: 匹配条件的逻辑关系,支持and、or,分别表示多个逻辑匹配条件是与、或的关系
|
12954
13291
|
# @type LogicalOp: String
|
13292
|
+
# @param ActionRatio: 规则生效比例
|
13293
|
+
# @type ActionRatio: Integer
|
12955
13294
|
|
12956
|
-
attr_accessor :Domain, :RuleId, :RuleName, :RuleAction, :Strategies, :Edition, :Redirect, :Bypass, :SortId, :ExpireTime, :JobType, :JobDateTime, :Source, :Status, :PageId, :LogicalOp
|
13295
|
+
attr_accessor :Domain, :RuleId, :RuleName, :RuleAction, :Strategies, :Edition, :Redirect, :Bypass, :SortId, :ExpireTime, :JobType, :JobDateTime, :Source, :Status, :PageId, :LogicalOp, :ActionRatio
|
12957
13296
|
extend Gem::Deprecate
|
12958
13297
|
deprecate :Bypass, :none, 2025, 9
|
12959
13298
|
deprecate :Bypass=, :none, 2025, 9
|
12960
13299
|
|
12961
|
-
def initialize(domain=nil, ruleid=nil, rulename=nil, ruleaction=nil, strategies=nil, edition=nil, redirect=nil, bypass=nil, sortid=nil, expiretime=nil, jobtype=nil, jobdatetime=nil, source=nil, status=nil, pageid=nil, logicalop=nil)
|
13300
|
+
def initialize(domain=nil, ruleid=nil, rulename=nil, ruleaction=nil, strategies=nil, edition=nil, redirect=nil, bypass=nil, sortid=nil, expiretime=nil, jobtype=nil, jobdatetime=nil, source=nil, status=nil, pageid=nil, logicalop=nil, actionratio=nil)
|
12962
13301
|
@Domain = domain
|
12963
13302
|
@RuleId = ruleid
|
12964
13303
|
@RuleName = rulename
|
@@ -12975,6 +13314,7 @@ module TencentCloud
|
|
12975
13314
|
@Status = status
|
12976
13315
|
@PageId = pageid
|
12977
13316
|
@LogicalOp = logicalop
|
13317
|
+
@ActionRatio = actionratio
|
12978
13318
|
end
|
12979
13319
|
|
12980
13320
|
def deserialize(params)
|
@@ -13004,6 +13344,7 @@ module TencentCloud
|
|
13004
13344
|
@Status = params['Status']
|
13005
13345
|
@PageId = params['PageId']
|
13006
13346
|
@LogicalOp = params['LogicalOp']
|
13347
|
+
@ActionRatio = params['ActionRatio']
|
13007
13348
|
end
|
13008
13349
|
end
|
13009
13350
|
|
@@ -14477,6 +14818,8 @@ module TencentCloud
|
|
14477
14818
|
# @type Ciphers: Array
|
14478
14819
|
# @param CipherTemplate: 加密套件模板。0:不支持选择,使用默认模板 1:通用型模板 2:安全型模板3:自定义模板
|
14479
14820
|
# @type CipherTemplate: Integer
|
14821
|
+
# @param ProxyConnectTimeout: WAF与源站的连接超时时间,默认10s。
|
14822
|
+
# @type ProxyConnectTimeout: Integer
|
14480
14823
|
# @param ProxyReadTimeout: WAF与源站的读超时时间,默认300s。
|
14481
14824
|
# @type ProxyReadTimeout: Integer
|
14482
14825
|
# @param ProxySendTimeout: WAF与源站的写超时时间,默认300s。
|
@@ -14521,15 +14864,17 @@ module TencentCloud
|
|
14521
14864
|
# @type UpstreamRules: Array
|
14522
14865
|
# @param UseCase: 业务场景。0:默认值,表示常规业务场景 1:大模型业务场景
|
14523
14866
|
# @type UseCase: Integer
|
14867
|
+
# @param Gzip: gzip开关。0:关闭 1:默认值,打开
|
14868
|
+
# @type Gzip: Integer
|
14524
14869
|
|
14525
|
-
attr_accessor :Domain, :DomainId, :InstanceID, :CertType, :Cert, :PrivateKey, :SSLId, :IsCdn, :UpstreamScheme, :HttpsUpstreamPort, :HttpsRewrite, :UpstreamType, :UpstreamDomain, :SrcList, :IsHttp2, :IsWebsocket, :LoadBalance, :IsGray, :Edition, :Ports, :IsKeepAlive, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :IpHeaders, :XFFReset, :Note, :UpstreamHost, :ProxyBuffer, :ProbeStatus, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :UpstreamPolicy, :UpstreamRules, :UseCase
|
14870
|
+
attr_accessor :Domain, :DomainId, :InstanceID, :CertType, :Cert, :PrivateKey, :SSLId, :IsCdn, :UpstreamScheme, :HttpsUpstreamPort, :HttpsRewrite, :UpstreamType, :UpstreamDomain, :SrcList, :IsHttp2, :IsWebsocket, :LoadBalance, :IsGray, :Edition, :Ports, :IsKeepAlive, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :Ciphers, :CipherTemplate, :ProxyConnectTimeout, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :IpHeaders, :XFFReset, :Note, :UpstreamHost, :ProxyBuffer, :ProbeStatus, :GmType, :GmCertType, :GmCert, :GmPrivateKey, :GmEncCert, :GmEncPrivateKey, :GmSSLId, :UpstreamPolicy, :UpstreamRules, :UseCase, :Gzip
|
14526
14871
|
extend Gem::Deprecate
|
14527
14872
|
deprecate :IsGray, :none, 2025, 9
|
14528
14873
|
deprecate :IsGray=, :none, 2025, 9
|
14529
14874
|
deprecate :Anycast, :none, 2025, 9
|
14530
14875
|
deprecate :Anycast=, :none, 2025, 9
|
14531
14876
|
|
14532
|
-
def initialize(domain=nil, domainid=nil, instanceid=nil, certtype=nil, cert=nil, privatekey=nil, sslid=nil, iscdn=nil, upstreamscheme=nil, httpsupstreamport=nil, httpsrewrite=nil, upstreamtype=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, isgray=nil, edition=nil, ports=nil, iskeepalive=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil, proxybuffer=nil, probestatus=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, upstreampolicy=nil, upstreamrules=nil, usecase=nil)
|
14877
|
+
def initialize(domain=nil, domainid=nil, instanceid=nil, certtype=nil, cert=nil, privatekey=nil, sslid=nil, iscdn=nil, upstreamscheme=nil, httpsupstreamport=nil, httpsrewrite=nil, upstreamtype=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, iswebsocket=nil, loadbalance=nil, isgray=nil, edition=nil, ports=nil, iskeepalive=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphers=nil, ciphertemplate=nil, proxyconnecttimeout=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, ipheaders=nil, xffreset=nil, note=nil, upstreamhost=nil, proxybuffer=nil, probestatus=nil, gmtype=nil, gmcerttype=nil, gmcert=nil, gmprivatekey=nil, gmenccert=nil, gmencprivatekey=nil, gmsslid=nil, upstreampolicy=nil, upstreamrules=nil, usecase=nil, gzip=nil)
|
14533
14878
|
@Domain = domain
|
14534
14879
|
@DomainId = domainid
|
14535
14880
|
@InstanceID = instanceid
|
@@ -14557,6 +14902,7 @@ module TencentCloud
|
|
14557
14902
|
@TLSVersion = tlsversion
|
14558
14903
|
@Ciphers = ciphers
|
14559
14904
|
@CipherTemplate = ciphertemplate
|
14905
|
+
@ProxyConnectTimeout = proxyconnecttimeout
|
14560
14906
|
@ProxyReadTimeout = proxyreadtimeout
|
14561
14907
|
@ProxySendTimeout = proxysendtimeout
|
14562
14908
|
@SniType = snitype
|
@@ -14577,6 +14923,7 @@ module TencentCloud
|
|
14577
14923
|
@UpstreamPolicy = upstreampolicy
|
14578
14924
|
@UpstreamRules = upstreamrules
|
14579
14925
|
@UseCase = usecase
|
14926
|
+
@Gzip = gzip
|
14580
14927
|
end
|
14581
14928
|
|
14582
14929
|
def deserialize(params)
|
@@ -14614,6 +14961,7 @@ module TencentCloud
|
|
14614
14961
|
@TLSVersion = params['TLSVersion']
|
14615
14962
|
@Ciphers = params['Ciphers']
|
14616
14963
|
@CipherTemplate = params['CipherTemplate']
|
14964
|
+
@ProxyConnectTimeout = params['ProxyConnectTimeout']
|
14617
14965
|
@ProxyReadTimeout = params['ProxyReadTimeout']
|
14618
14966
|
@ProxySendTimeout = params['ProxySendTimeout']
|
14619
14967
|
@SniType = params['SniType']
|
@@ -14641,6 +14989,7 @@ module TencentCloud
|
|
14641
14989
|
end
|
14642
14990
|
end
|
14643
14991
|
@UseCase = params['UseCase']
|
14992
|
+
@Gzip = params['Gzip']
|
14644
14993
|
end
|
14645
14994
|
end
|
14646
14995
|
|
@@ -15663,6 +16012,54 @@ module TencentCloud
|
|
15663
16012
|
end
|
15664
16013
|
end
|
15665
16014
|
|
16015
|
+
# 有效REC设备安全包信息
|
16016
|
+
class RCEPkg < TencentCloud::Common::AbstractModel
|
16017
|
+
# @param ResourceIds: 资源id
|
16018
|
+
# @type ResourceIds: String
|
16019
|
+
# @param Status: 状态
|
16020
|
+
# @type Status: Integer
|
16021
|
+
# @param Region: 地域
|
16022
|
+
# @type Region: Integer
|
16023
|
+
# @param BeginTime: 开始时间
|
16024
|
+
# @type BeginTime: String
|
16025
|
+
# @param EndTime: 结束时间
|
16026
|
+
# @type EndTime: String
|
16027
|
+
# @param InquireNum: 申请数量
|
16028
|
+
# @type InquireNum: Integer
|
16029
|
+
# @param UsedNum: 使用数量
|
16030
|
+
# @type UsedNum: Integer
|
16031
|
+
# @param RenewFlag: 续费标志
|
16032
|
+
# @type RenewFlag: Integer
|
16033
|
+
# @param BillingItem: 计费项
|
16034
|
+
# @type BillingItem: String
|
16035
|
+
|
16036
|
+
attr_accessor :ResourceIds, :Status, :Region, :BeginTime, :EndTime, :InquireNum, :UsedNum, :RenewFlag, :BillingItem
|
16037
|
+
|
16038
|
+
def initialize(resourceids=nil, status=nil, region=nil, begintime=nil, endtime=nil, inquirenum=nil, usednum=nil, renewflag=nil, billingitem=nil)
|
16039
|
+
@ResourceIds = resourceids
|
16040
|
+
@Status = status
|
16041
|
+
@Region = region
|
16042
|
+
@BeginTime = begintime
|
16043
|
+
@EndTime = endtime
|
16044
|
+
@InquireNum = inquirenum
|
16045
|
+
@UsedNum = usednum
|
16046
|
+
@RenewFlag = renewflag
|
16047
|
+
@BillingItem = billingitem
|
16048
|
+
end
|
16049
|
+
|
16050
|
+
def deserialize(params)
|
16051
|
+
@ResourceIds = params['ResourceIds']
|
16052
|
+
@Status = params['Status']
|
16053
|
+
@Region = params['Region']
|
16054
|
+
@BeginTime = params['BeginTime']
|
16055
|
+
@EndTime = params['EndTime']
|
16056
|
+
@InquireNum = params['InquireNum']
|
16057
|
+
@UsedNum = params['UsedNum']
|
16058
|
+
@RenewFlag = params['RenewFlag']
|
16059
|
+
@BillingItem = params['BillingItem']
|
16060
|
+
end
|
16061
|
+
end
|
16062
|
+
|
15666
16063
|
# RefreshAccessCheckResult请求参数结构体
|
15667
16064
|
class RefreshAccessCheckResultRequest < TencentCloud::Common::AbstractModel
|
15668
16065
|
# @param Domain: 域名
|
@@ -16288,6 +16685,30 @@ module TencentCloud
|
|
16288
16685
|
end
|
16289
16686
|
end
|
16290
16687
|
|
16688
|
+
# 用于JWT验签的密钥信息
|
16689
|
+
class SecretInfo < TencentCloud::Common::AbstractModel
|
16690
|
+
# @param SecretSource: 密钥上传方式,可选值:manual、upload
|
16691
|
+
# @type SecretSource: String
|
16692
|
+
# @param SecretKey: 密钥内容(用户手动输入/前端从密钥文件提取出的密钥内容)
|
16693
|
+
# @type SecretKey: String
|
16694
|
+
# @param FileName: 上传的密钥文件文件名
|
16695
|
+
# @type FileName: String
|
16696
|
+
|
16697
|
+
attr_accessor :SecretSource, :SecretKey, :FileName
|
16698
|
+
|
16699
|
+
def initialize(secretsource=nil, secretkey=nil, filename=nil)
|
16700
|
+
@SecretSource = secretsource
|
16701
|
+
@SecretKey = secretkey
|
16702
|
+
@FileName = filename
|
16703
|
+
end
|
16704
|
+
|
16705
|
+
def deserialize(params)
|
16706
|
+
@SecretSource = params['SecretSource']
|
16707
|
+
@SecretKey = params['SecretKey']
|
16708
|
+
@FileName = params['FileName']
|
16709
|
+
end
|
16710
|
+
end
|
16711
|
+
|
16291
16712
|
# 参数包装
|
16292
16713
|
class SessionData < TencentCloud::Common::AbstractModel
|
16293
16714
|
# @param Res: session定义
|
@@ -16335,10 +16756,12 @@ module TencentCloud
|
|
16335
16756
|
# @type SessionInUsed: Boolean
|
16336
16757
|
# @param RelatedRuleID: Session关联的CC规则ID
|
16337
16758
|
# @type RelatedRuleID: Array
|
16759
|
+
# @param Key: 精准匹配时,配置的key
|
16760
|
+
# @type Key: String
|
16338
16761
|
|
16339
|
-
attr_accessor :Category, :KeyOrStartMat, :EndMat, :StartOffset, :EndOffset, :Source, :TsVersion, :SessionId, :SessionName, :SessionInUsed, :RelatedRuleID
|
16762
|
+
attr_accessor :Category, :KeyOrStartMat, :EndMat, :StartOffset, :EndOffset, :Source, :TsVersion, :SessionId, :SessionName, :SessionInUsed, :RelatedRuleID, :Key
|
16340
16763
|
|
16341
|
-
def initialize(category=nil, keyorstartmat=nil, endmat=nil, startoffset=nil, endoffset=nil, source=nil, tsversion=nil, sessionid=nil, sessionname=nil, sessioninused=nil, relatedruleid=nil)
|
16764
|
+
def initialize(category=nil, keyorstartmat=nil, endmat=nil, startoffset=nil, endoffset=nil, source=nil, tsversion=nil, sessionid=nil, sessionname=nil, sessioninused=nil, relatedruleid=nil, key=nil)
|
16342
16765
|
@Category = category
|
16343
16766
|
@KeyOrStartMat = keyorstartmat
|
16344
16767
|
@EndMat = endmat
|
@@ -16350,6 +16773,7 @@ module TencentCloud
|
|
16350
16773
|
@SessionName = sessionname
|
16351
16774
|
@SessionInUsed = sessioninused
|
16352
16775
|
@RelatedRuleID = relatedruleid
|
16776
|
+
@Key = key
|
16353
16777
|
end
|
16354
16778
|
|
16355
16779
|
def deserialize(params)
|
@@ -16364,6 +16788,7 @@ module TencentCloud
|
|
16364
16788
|
@SessionName = params['SessionName']
|
16365
16789
|
@SessionInUsed = params['SessionInUsed']
|
16366
16790
|
@RelatedRuleID = params['RelatedRuleID']
|
16791
|
+
@Key = params['Key']
|
16367
16792
|
end
|
16368
16793
|
end
|
16369
16794
|
|
@@ -16703,6 +17128,143 @@ module TencentCloud
|
|
16703
17128
|
end
|
16704
17129
|
end
|
16705
17130
|
|
17131
|
+
# JWT显示设置(只有当校验方式为JWS/JWE的时候才会有该配置信息)
|
17132
|
+
class TokenDisplaySetting < TencentCloud::Common::AbstractModel
|
17133
|
+
# @param DisplayWithPayloadEnable: 是否使用payload字段作为显示token
|
17134
|
+
# @type DisplayWithPayloadEnable: Boolean
|
17135
|
+
# @param FieldName: 用于显示的payload字段名
|
17136
|
+
# @type FieldName: String
|
17137
|
+
|
17138
|
+
attr_accessor :DisplayWithPayloadEnable, :FieldName
|
17139
|
+
|
17140
|
+
def initialize(displaywithpayloadenable=nil, fieldname=nil)
|
17141
|
+
@DisplayWithPayloadEnable = displaywithpayloadenable
|
17142
|
+
@FieldName = fieldname
|
17143
|
+
end
|
17144
|
+
|
17145
|
+
def deserialize(params)
|
17146
|
+
@DisplayWithPayloadEnable = params['DisplayWithPayloadEnable']
|
17147
|
+
@FieldName = params['FieldName']
|
17148
|
+
end
|
17149
|
+
end
|
17150
|
+
|
17151
|
+
# Token有效性校验规则
|
17152
|
+
class TokenRuleEntry < TencentCloud::Common::AbstractModel
|
17153
|
+
# @param Type: 校验方式,可选值:验签校验、字段校验
|
17154
|
+
# @type Type: String
|
17155
|
+
# @param Key: 键
|
17156
|
+
# @type Key: String
|
17157
|
+
# @param Op: 操作符
|
17158
|
+
# @type Op: String
|
17159
|
+
# @param Value: 值
|
17160
|
+
# @type Value: :class:`Tencentcloud::Waf.v20180125.models.TokenRuleEntryValue`
|
17161
|
+
|
17162
|
+
attr_accessor :Type, :Key, :Op, :Value
|
17163
|
+
|
17164
|
+
def initialize(type=nil, key=nil, op=nil, value=nil)
|
17165
|
+
@Type = type
|
17166
|
+
@Key = key
|
17167
|
+
@Op = op
|
17168
|
+
@Value = value
|
17169
|
+
end
|
17170
|
+
|
17171
|
+
def deserialize(params)
|
17172
|
+
@Type = params['Type']
|
17173
|
+
@Key = params['Key']
|
17174
|
+
@Op = params['Op']
|
17175
|
+
unless params['Value'].nil?
|
17176
|
+
@Value = TokenRuleEntryValue.new
|
17177
|
+
@Value.deserialize(params['Value'])
|
17178
|
+
end
|
17179
|
+
end
|
17180
|
+
end
|
17181
|
+
|
17182
|
+
# 通过复杂类型识别传入的不同类型参数值
|
17183
|
+
class TokenRuleEntryValue < TencentCloud::Common::AbstractModel
|
17184
|
+
# @param LogicValue: 布尔类型值
|
17185
|
+
# @type LogicValue: Boolean
|
17186
|
+
# @param MultiValue: 数组类型值
|
17187
|
+
# 可以存储字符串/数值
|
17188
|
+
# 如果只有一个元素,则为长度为1的数组
|
17189
|
+
# @type MultiValue: Array
|
17190
|
+
# @param ValidKey: 指示有效的字段
|
17191
|
+
# @type ValidKey: String
|
17192
|
+
|
17193
|
+
attr_accessor :LogicValue, :MultiValue, :ValidKey
|
17194
|
+
|
17195
|
+
def initialize(logicvalue=nil, multivalue=nil, validkey=nil)
|
17196
|
+
@LogicValue = logicvalue
|
17197
|
+
@MultiValue = multivalue
|
17198
|
+
@ValidKey = validkey
|
17199
|
+
end
|
17200
|
+
|
17201
|
+
def deserialize(params)
|
17202
|
+
@LogicValue = params['LogicValue']
|
17203
|
+
@MultiValue = params['MultiValue']
|
17204
|
+
@ValidKey = params['ValidKey']
|
17205
|
+
end
|
17206
|
+
end
|
17207
|
+
|
17208
|
+
# token有效性配置信息
|
17209
|
+
class TokenValidation < TencentCloud::Common::AbstractModel
|
17210
|
+
# @param Enable: 是否开启token有效性校验
|
17211
|
+
# @type Enable: Boolean
|
17212
|
+
# @param VerifyType: token有效性的校验方式,可选值为:jws、jwe、contains、len、regex
|
17213
|
+
# @type VerifyType: String
|
17214
|
+
# @param VerifyRule: 有效性校验配置和规则
|
17215
|
+
# @type VerifyRule: :class:`Tencentcloud::Waf.v20180125.models.TokenVerifyRule`
|
17216
|
+
# @param DisplaySetting: Token显示设置(只有当校验方式为jws/jwe的时候才会有该配置信息)
|
17217
|
+
# @type DisplaySetting: :class:`Tencentcloud::Waf.v20180125.models.TokenDisplaySetting`
|
17218
|
+
|
17219
|
+
attr_accessor :Enable, :VerifyType, :VerifyRule, :DisplaySetting
|
17220
|
+
|
17221
|
+
def initialize(enable=nil, verifytype=nil, verifyrule=nil, displaysetting=nil)
|
17222
|
+
@Enable = enable
|
17223
|
+
@VerifyType = verifytype
|
17224
|
+
@VerifyRule = verifyrule
|
17225
|
+
@DisplaySetting = displaysetting
|
17226
|
+
end
|
17227
|
+
|
17228
|
+
def deserialize(params)
|
17229
|
+
@Enable = params['Enable']
|
17230
|
+
@VerifyType = params['VerifyType']
|
17231
|
+
unless params['VerifyRule'].nil?
|
17232
|
+
@VerifyRule = TokenVerifyRule.new
|
17233
|
+
@VerifyRule.deserialize(params['VerifyRule'])
|
17234
|
+
end
|
17235
|
+
unless params['DisplaySetting'].nil?
|
17236
|
+
@DisplaySetting = TokenDisplaySetting.new
|
17237
|
+
@DisplaySetting.deserialize(params['DisplaySetting'])
|
17238
|
+
end
|
17239
|
+
end
|
17240
|
+
end
|
17241
|
+
|
17242
|
+
# Token有效性校验规则
|
17243
|
+
class TokenVerifyRule < TencentCloud::Common::AbstractModel
|
17244
|
+
# @param JWTRule: JWS、JWE专用校验规则
|
17245
|
+
# @type JWTRule: :class:`Tencentcloud::Waf.v20180125.models.JWTConfig`
|
17246
|
+
# @param GeneralRule: 其他会话有效性校验方式(contains、length、regex)的校验规则
|
17247
|
+
# @type GeneralRule: :class:`Tencentcloud::Waf.v20180125.models.TokenRuleEntry`
|
17248
|
+
|
17249
|
+
attr_accessor :JWTRule, :GeneralRule
|
17250
|
+
|
17251
|
+
def initialize(jwtrule=nil, generalrule=nil)
|
17252
|
+
@JWTRule = jwtrule
|
17253
|
+
@GeneralRule = generalrule
|
17254
|
+
end
|
17255
|
+
|
17256
|
+
def deserialize(params)
|
17257
|
+
unless params['JWTRule'].nil?
|
17258
|
+
@JWTRule = JWTConfig.new
|
17259
|
+
@JWTRule.deserialize(params['JWTRule'])
|
17260
|
+
end
|
17261
|
+
unless params['GeneralRule'].nil?
|
17262
|
+
@GeneralRule = TokenRuleEntry.new
|
17263
|
+
@GeneralRule.deserialize(params['GeneralRule'])
|
17264
|
+
end
|
17265
|
+
end
|
17266
|
+
end
|
17267
|
+
|
16706
17268
|
# 日志主题扩展信息
|
16707
17269
|
class TopicExtendInfo < TencentCloud::Common::AbstractModel
|
16708
17270
|
# @param AnonymousAccess: 日志主题免鉴权配置信息
|
@@ -17048,10 +17610,14 @@ module TencentCloud
|
|
17048
17610
|
# @type CelRule: String
|
17049
17611
|
# @param LogicalOp: 配置方式的逻辑操作符,and或者or
|
17050
17612
|
# @type LogicalOp: String
|
17613
|
+
# @param PageId: 页面ID
|
17614
|
+
# @type PageId: String
|
17615
|
+
# @param ActionRatio: 动作灰度比例,默认值100
|
17616
|
+
# @type ActionRatio: Integer
|
17051
17617
|
|
17052
|
-
attr_accessor :Domain, :Name, :Status, :Advance, :Limit, :Interval, :ActionType, :Priority, :ValidTime, :Url, :MatchFunc, :OptionsArr, :Edition, :Type, :EventId, :SessionApplied, :RuleId, :CreateTime, :Length, :LimitMethod, :CelRule, :LogicalOp
|
17618
|
+
attr_accessor :Domain, :Name, :Status, :Advance, :Limit, :Interval, :ActionType, :Priority, :ValidTime, :Url, :MatchFunc, :OptionsArr, :Edition, :Type, :EventId, :SessionApplied, :RuleId, :CreateTime, :Length, :LimitMethod, :CelRule, :LogicalOp, :PageId, :ActionRatio
|
17053
17619
|
|
17054
|
-
def initialize(domain=nil, name=nil, status=nil, advance=nil, limit=nil, interval=nil, actiontype=nil, priority=nil, validtime=nil, url=nil, matchfunc=nil, optionsarr=nil, edition=nil, type=nil, eventid=nil, sessionapplied=nil, ruleid=nil, createtime=nil, length=nil, limitmethod=nil, celrule=nil, logicalop=nil)
|
17620
|
+
def initialize(domain=nil, name=nil, status=nil, advance=nil, limit=nil, interval=nil, actiontype=nil, priority=nil, validtime=nil, url=nil, matchfunc=nil, optionsarr=nil, edition=nil, type=nil, eventid=nil, sessionapplied=nil, ruleid=nil, createtime=nil, length=nil, limitmethod=nil, celrule=nil, logicalop=nil, pageid=nil, actionratio=nil)
|
17055
17621
|
@Domain = domain
|
17056
17622
|
@Name = name
|
17057
17623
|
@Status = status
|
@@ -17074,6 +17640,8 @@ module TencentCloud
|
|
17074
17640
|
@LimitMethod = limitmethod
|
17075
17641
|
@CelRule = celrule
|
17076
17642
|
@LogicalOp = logicalop
|
17643
|
+
@PageId = pageid
|
17644
|
+
@ActionRatio = actionratio
|
17077
17645
|
end
|
17078
17646
|
|
17079
17647
|
def deserialize(params)
|
@@ -17099,6 +17667,8 @@ module TencentCloud
|
|
17099
17667
|
@LimitMethod = params['LimitMethod']
|
17100
17668
|
@CelRule = params['CelRule']
|
17101
17669
|
@LogicalOp = params['LogicalOp']
|
17670
|
+
@PageId = params['PageId']
|
17671
|
+
@ActionRatio = params['ActionRatio']
|
17102
17672
|
end
|
17103
17673
|
end
|
17104
17674
|
|
@@ -17209,10 +17779,12 @@ module TencentCloud
|
|
17209
17779
|
# @type SessionName: String
|
17210
17780
|
# @param SessionID: Session对应ID
|
17211
17781
|
# @type SessionID: Integer
|
17782
|
+
# @param Key: 精准匹配时配置的key
|
17783
|
+
# @type Key: String
|
17212
17784
|
|
17213
|
-
attr_accessor :Domain, :Source, :Category, :KeyOrStartMat, :EndMat, :StartOffset, :EndOffset, :Edition, :SessionName, :SessionID
|
17785
|
+
attr_accessor :Domain, :Source, :Category, :KeyOrStartMat, :EndMat, :StartOffset, :EndOffset, :Edition, :SessionName, :SessionID, :Key
|
17214
17786
|
|
17215
|
-
def initialize(domain=nil, source=nil, category=nil, keyorstartmat=nil, endmat=nil, startoffset=nil, endoffset=nil, edition=nil, sessionname=nil, sessionid=nil)
|
17787
|
+
def initialize(domain=nil, source=nil, category=nil, keyorstartmat=nil, endmat=nil, startoffset=nil, endoffset=nil, edition=nil, sessionname=nil, sessionid=nil, key=nil)
|
17216
17788
|
@Domain = domain
|
17217
17789
|
@Source = source
|
17218
17790
|
@Category = category
|
@@ -17223,6 +17795,7 @@ module TencentCloud
|
|
17223
17795
|
@Edition = edition
|
17224
17796
|
@SessionName = sessionname
|
17225
17797
|
@SessionID = sessionid
|
17798
|
+
@Key = key
|
17226
17799
|
end
|
17227
17800
|
|
17228
17801
|
def deserialize(params)
|
@@ -17236,6 +17809,7 @@ module TencentCloud
|
|
17236
17809
|
@Edition = params['Edition']
|
17237
17810
|
@SessionName = params['SessionName']
|
17238
17811
|
@SessionID = params['SessionID']
|
17812
|
+
@Key = params['Key']
|
17239
17813
|
end
|
17240
17814
|
end
|
17241
17815
|
|