tencentcloud-sdk-waf 3.0.833 → 3.0.834
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180125/client.rb +2 -2
- data/lib/v20180125/models.rb +438 -49
- 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: 06cab6def399d63a147bd9cb42e359201e75506c
|
4
|
+
data.tar.gz: c7c10966f780d7f32577c7700f9d872365869880
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d78ab9afef1dbd765a603195e8aec60d23640e85d748440585c81be1215e66edd96cf063a98f94139c42ac420d4b434b5a6d327a267d2cba4e038fa10c722647
|
7
|
+
data.tar.gz: ecb5ebd572e2a99ec294b03100916bbc6031e752d20e1c86a842ea75152d90e901bd07cc092b71369f8ea2269ce205a1112c070c0a54d26d67210231c5493aee
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.834
|
data/lib/v20180125/client.rb
CHANGED
@@ -559,7 +559,7 @@ module TencentCloud
|
|
559
559
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
560
560
|
end
|
561
561
|
|
562
|
-
# Waf IP黑白名单Delete
|
562
|
+
# Waf IP黑白名单Delete接口(建议使用DeleteIpAccessControlV2来替换当前接口)
|
563
563
|
|
564
564
|
# @param request: Request instance for DeleteIpAccessControl.
|
565
565
|
# @type request: :class:`Tencentcloud::waf::V20180125::DeleteIpAccessControlRequest`
|
@@ -3276,7 +3276,7 @@ module TencentCloud
|
|
3276
3276
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3277
3277
|
end
|
3278
3278
|
|
3279
|
-
# Waf IP黑白名单Upsert
|
3279
|
+
# Waf IP黑白名单Upsert接口(建议使用CreateIpAccessControl、ModifyIpAccessControl来替换当前接口)
|
3280
3280
|
|
3281
3281
|
# @param request: Request instance for UpsertIpAccessControl.
|
3282
3282
|
# @type request: :class:`Tencentcloud::waf::V20180125::UpsertIpAccessControlRequest`
|
data/lib/v20180125/models.rb
CHANGED
@@ -502,8 +502,6 @@ module TencentCloud
|
|
502
502
|
# @type Name: String
|
503
503
|
# @param SortId: 优先级
|
504
504
|
# @type SortId: String
|
505
|
-
# @param ExpireTime: 过期时间,单位为秒级时间戳,例如1677254399表示过期时间为2023-02-24 23:59:59. 0表示永不过期
|
506
|
-
# @type ExpireTime: String
|
507
505
|
# @param Strategies: 策略详情
|
508
506
|
# @type Strategies: Array
|
509
507
|
# @param Domain: 需要添加策略的域名
|
@@ -512,32 +510,51 @@ module TencentCloud
|
|
512
510
|
# @type ActionType: String
|
513
511
|
# @param Redirect: 如果动作是重定向,则表示重定向的地址;其他情况可以为空
|
514
512
|
# @type Redirect: String
|
513
|
+
# @param ExpireTime: 过期时间,单位为秒级时间戳,例如1677254399表示过期时间为2023-02-24 23:59:59. 0表示永不过期
|
514
|
+
# @type ExpireTime: String
|
515
515
|
# @param Edition: WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
|
516
516
|
# @type Edition: String
|
517
517
|
# @param Bypass: 放行的详情
|
518
518
|
# @type Bypass: String
|
519
519
|
# @param EventId: 添加规则的来源,默认为空
|
520
520
|
# @type EventId: String
|
521
|
+
# @param JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
|
522
|
+
# @type JobType: String
|
523
|
+
# @param JobDateTime: 规则执行的时间
|
524
|
+
# @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
|
525
|
+
# @param Source: 规则来源,判断是不是小程序的
|
526
|
+
# @type Source: String
|
527
|
+
# @param Label: 规则标签,小程序规则用,标识是内置规则还是自定义规则
|
528
|
+
# @type Label: String
|
529
|
+
# @param Status: 开关状态,小程序风控规则的时候传该值
|
530
|
+
# @type Status: Integer
|
531
|
+
# @param PageId: 拦截页面id
|
532
|
+
# @type PageId: String
|
521
533
|
|
522
|
-
attr_accessor :Name, :SortId, :
|
534
|
+
attr_accessor :Name, :SortId, :Strategies, :Domain, :ActionType, :Redirect, :ExpireTime, :Edition, :Bypass, :EventId, :JobType, :JobDateTime, :Source, :Label, :Status, :PageId
|
523
535
|
|
524
|
-
def initialize(name=nil, sortid=nil,
|
536
|
+
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)
|
525
537
|
@Name = name
|
526
538
|
@SortId = sortid
|
527
|
-
@ExpireTime = expiretime
|
528
539
|
@Strategies = strategies
|
529
540
|
@Domain = domain
|
530
541
|
@ActionType = actiontype
|
531
542
|
@Redirect = redirect
|
543
|
+
@ExpireTime = expiretime
|
532
544
|
@Edition = edition
|
533
545
|
@Bypass = bypass
|
534
546
|
@EventId = eventid
|
547
|
+
@JobType = jobtype
|
548
|
+
@JobDateTime = jobdatetime
|
549
|
+
@Source = source
|
550
|
+
@Label = label
|
551
|
+
@Status = status
|
552
|
+
@PageId = pageid
|
535
553
|
end
|
536
554
|
|
537
555
|
def deserialize(params)
|
538
556
|
@Name = params['Name']
|
539
557
|
@SortId = params['SortId']
|
540
|
-
@ExpireTime = params['ExpireTime']
|
541
558
|
unless params['Strategies'].nil?
|
542
559
|
@Strategies = []
|
543
560
|
params['Strategies'].each do |i|
|
@@ -549,9 +566,19 @@ module TencentCloud
|
|
549
566
|
@Domain = params['Domain']
|
550
567
|
@ActionType = params['ActionType']
|
551
568
|
@Redirect = params['Redirect']
|
569
|
+
@ExpireTime = params['ExpireTime']
|
552
570
|
@Edition = params['Edition']
|
553
571
|
@Bypass = params['Bypass']
|
554
572
|
@EventId = params['EventId']
|
573
|
+
@JobType = params['JobType']
|
574
|
+
unless params['JobDateTime'].nil?
|
575
|
+
@JobDateTime = JobDateTime.new
|
576
|
+
@JobDateTime.deserialize(params['JobDateTime'])
|
577
|
+
end
|
578
|
+
@Source = params['Source']
|
579
|
+
@Label = params['Label']
|
580
|
+
@Status = params['Status']
|
581
|
+
@PageId = params['PageId']
|
555
582
|
end
|
556
583
|
end
|
557
584
|
|
@@ -597,16 +624,22 @@ module TencentCloud
|
|
597
624
|
# @type Domain: String
|
598
625
|
# @param Bypass: 放行的详情
|
599
626
|
# @type Bypass: String
|
627
|
+
# @param JobType: 定时任务类型
|
628
|
+
# @type JobType: String
|
629
|
+
# @param JobDateTime: 定时任务配置
|
630
|
+
# @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
|
600
631
|
|
601
|
-
attr_accessor :Name, :SortId, :ExpireTime, :Strategies, :Domain, :Bypass
|
632
|
+
attr_accessor :Name, :SortId, :ExpireTime, :Strategies, :Domain, :Bypass, :JobType, :JobDateTime
|
602
633
|
|
603
|
-
def initialize(name=nil, sortid=nil, expiretime=nil, strategies=nil, domain=nil, bypass=nil)
|
634
|
+
def initialize(name=nil, sortid=nil, expiretime=nil, strategies=nil, domain=nil, bypass=nil, jobtype=nil, jobdatetime=nil)
|
604
635
|
@Name = name
|
605
636
|
@SortId = sortid
|
606
637
|
@ExpireTime = expiretime
|
607
638
|
@Strategies = strategies
|
608
639
|
@Domain = domain
|
609
640
|
@Bypass = bypass
|
641
|
+
@JobType = jobtype
|
642
|
+
@JobDateTime = jobdatetime
|
610
643
|
end
|
611
644
|
|
612
645
|
def deserialize(params)
|
@@ -623,6 +656,11 @@ module TencentCloud
|
|
623
656
|
end
|
624
657
|
@Domain = params['Domain']
|
625
658
|
@Bypass = params['Bypass']
|
659
|
+
@JobType = params['JobType']
|
660
|
+
unless params['JobDateTime'].nil?
|
661
|
+
@JobDateTime = JobDateTime.new
|
662
|
+
@JobDateTime.deserialize(params['JobDateTime'])
|
663
|
+
end
|
626
664
|
end
|
627
665
|
end
|
628
666
|
|
@@ -824,10 +862,12 @@ module TencentCloud
|
|
824
862
|
# @type UpstreamHost: String
|
825
863
|
# @param ProxyBuffer: 是否开启缓存 0-关闭 1-开启
|
826
864
|
# @type ProxyBuffer: Integer
|
865
|
+
# @param ProbeStatus: 0: 禁用拨测, 1: 启用拨测。默认启用拨测
|
866
|
+
# @type ProbeStatus: Integer
|
827
867
|
|
828
|
-
attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Ports, :IsKeepAlive, :InstanceID, :Cert, :PrivateKey, :SSLId, :ResourceId, :IpHeaders, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :HttpsRewrite, :UpstreamDomain, :SrcList, :IsHttp2, :Edition, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :CipherTemplate, :Ciphers, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :XFFReset, :Note, :UpstreamHost, :ProxyBuffer
|
868
|
+
attr_accessor :Domain, :CertType, :IsCdn, :UpstreamType, :IsWebsocket, :LoadBalance, :Ports, :IsKeepAlive, :InstanceID, :Cert, :PrivateKey, :SSLId, :ResourceId, :IpHeaders, :UpstreamScheme, :HttpsUpstreamPort, :IsGray, :GrayAreas, :HttpsRewrite, :UpstreamDomain, :SrcList, :IsHttp2, :Edition, :Anycast, :Weights, :ActiveCheck, :TLSVersion, :CipherTemplate, :Ciphers, :ProxyReadTimeout, :ProxySendTimeout, :SniType, :SniHost, :XFFReset, :Note, :UpstreamHost, :ProxyBuffer, :ProbeStatus
|
829
869
|
|
830
|
-
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, httpsrewrite=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, edition=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphertemplate=nil, ciphers=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, xffreset=nil, note=nil, upstreamhost=nil, proxybuffer=nil)
|
870
|
+
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, httpsrewrite=nil, upstreamdomain=nil, srclist=nil, ishttp2=nil, edition=nil, anycast=nil, weights=nil, activecheck=nil, tlsversion=nil, ciphertemplate=nil, ciphers=nil, proxyreadtimeout=nil, proxysendtimeout=nil, snitype=nil, snihost=nil, xffreset=nil, note=nil, upstreamhost=nil, proxybuffer=nil, probestatus=nil)
|
831
871
|
@Domain = domain
|
832
872
|
@CertType = certtype
|
833
873
|
@IsCdn = iscdn
|
@@ -865,6 +905,7 @@ module TencentCloud
|
|
865
905
|
@Note = note
|
866
906
|
@UpstreamHost = upstreamhost
|
867
907
|
@ProxyBuffer = proxybuffer
|
908
|
+
@ProbeStatus = probestatus
|
868
909
|
end
|
869
910
|
|
870
911
|
def deserialize(params)
|
@@ -912,6 +953,7 @@ module TencentCloud
|
|
912
953
|
@Note = params['Note']
|
913
954
|
@UpstreamHost = params['UpstreamHost']
|
914
955
|
@ProxyBuffer = params['ProxyBuffer']
|
956
|
+
@ProbeStatus = params['ProbeStatus']
|
915
957
|
end
|
916
958
|
end
|
917
959
|
|
@@ -1109,10 +1151,13 @@ module TencentCloud
|
|
1109
1151
|
# @param IpList: IP列表
|
1110
1152
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1111
1153
|
# @type IpList: Array
|
1154
|
+
# @param CreateTime: 创建时间
|
1155
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1156
|
+
# @type CreateTime: Integer
|
1112
1157
|
|
1113
|
-
attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :Hosts, :RuleId, :IpList
|
1158
|
+
attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :Hosts, :RuleId, :IpList, :CreateTime
|
1114
1159
|
|
1115
|
-
def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, hosts=nil, ruleid=nil, iplist=nil)
|
1160
|
+
def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, hosts=nil, ruleid=nil, iplist=nil, createtime=nil)
|
1116
1161
|
@Id = id
|
1117
1162
|
@ActionType = actiontype
|
1118
1163
|
@Ip = ip
|
@@ -1123,6 +1168,7 @@ module TencentCloud
|
|
1123
1168
|
@Hosts = hosts
|
1124
1169
|
@RuleId = ruleid
|
1125
1170
|
@IpList = iplist
|
1171
|
+
@CreateTime = createtime
|
1126
1172
|
end
|
1127
1173
|
|
1128
1174
|
def deserialize(params)
|
@@ -1136,6 +1182,7 @@ module TencentCloud
|
|
1136
1182
|
@Hosts = params['Hosts']
|
1137
1183
|
@RuleId = params['RuleId']
|
1138
1184
|
@IpList = params['IpList']
|
1185
|
+
@CreateTime = params['CreateTime']
|
1139
1186
|
end
|
1140
1187
|
end
|
1141
1188
|
|
@@ -1398,10 +1445,13 @@ module TencentCloud
|
|
1398
1445
|
# @param SessionApplied: 关联的Session规则
|
1399
1446
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1400
1447
|
# @type SessionApplied: Array
|
1448
|
+
# @param CreateTime: 创建时间
|
1449
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1450
|
+
# @type CreateTime: Integer
|
1401
1451
|
|
1402
|
-
attr_accessor :Name, :Status, :Advance, :Limit, :Interval, :Url, :MatchFunc, :ActionType, :Priority, :ValidTime, :TsVersion, :Options, :RuleId, :EventId, :SessionApplied
|
1452
|
+
attr_accessor :Name, :Status, :Advance, :Limit, :Interval, :Url, :MatchFunc, :ActionType, :Priority, :ValidTime, :TsVersion, :Options, :RuleId, :EventId, :SessionApplied, :CreateTime
|
1403
1453
|
|
1404
|
-
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)
|
1454
|
+
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)
|
1405
1455
|
@Name = name
|
1406
1456
|
@Status = status
|
1407
1457
|
@Advance = advance
|
@@ -1417,6 +1467,7 @@ module TencentCloud
|
|
1417
1467
|
@RuleId = ruleid
|
1418
1468
|
@EventId = eventid
|
1419
1469
|
@SessionApplied = sessionapplied
|
1470
|
+
@CreateTime = createtime
|
1420
1471
|
end
|
1421
1472
|
|
1422
1473
|
def deserialize(params)
|
@@ -1435,6 +1486,7 @@ module TencentCloud
|
|
1435
1486
|
@RuleId = params['RuleId']
|
1436
1487
|
@EventId = params['EventId']
|
1437
1488
|
@SessionApplied = params['SessionApplied']
|
1489
|
+
@CreateTime = params['CreateTime']
|
1438
1490
|
end
|
1439
1491
|
end
|
1440
1492
|
|
@@ -1516,16 +1568,24 @@ module TencentCloud
|
|
1516
1568
|
# @type Protocol: String
|
1517
1569
|
# @param Status: 状态
|
1518
1570
|
# @type Status: Integer
|
1571
|
+
# @param ModifyTime: 修改时间
|
1572
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1573
|
+
# @type ModifyTime: String
|
1574
|
+
# @param CreateTime: 创建时间
|
1575
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1576
|
+
# @type CreateTime: String
|
1519
1577
|
|
1520
|
-
attr_accessor :Id, :Name, :Domain, :Uri, :Protocol, :Status
|
1578
|
+
attr_accessor :Id, :Name, :Domain, :Uri, :Protocol, :Status, :ModifyTime, :CreateTime
|
1521
1579
|
|
1522
|
-
def initialize(id=nil, name=nil, domain=nil, uri=nil, protocol=nil, status=nil)
|
1580
|
+
def initialize(id=nil, name=nil, domain=nil, uri=nil, protocol=nil, status=nil, modifytime=nil, createtime=nil)
|
1523
1581
|
@Id = id
|
1524
1582
|
@Name = name
|
1525
1583
|
@Domain = domain
|
1526
1584
|
@Uri = uri
|
1527
1585
|
@Protocol = protocol
|
1528
1586
|
@Status = status
|
1587
|
+
@ModifyTime = modifytime
|
1588
|
+
@CreateTime = createtime
|
1529
1589
|
end
|
1530
1590
|
|
1531
1591
|
def deserialize(params)
|
@@ -1535,6 +1595,8 @@ module TencentCloud
|
|
1535
1595
|
@Uri = params['Uri']
|
1536
1596
|
@Protocol = params['Protocol']
|
1537
1597
|
@Status = params['Status']
|
1598
|
+
@ModifyTime = params['ModifyTime']
|
1599
|
+
@CreateTime = params['CreateTime']
|
1538
1600
|
end
|
1539
1601
|
end
|
1540
1602
|
|
@@ -2117,7 +2179,7 @@ module TencentCloud
|
|
2117
2179
|
# @type InstanceId: String
|
2118
2180
|
# @param Edition: WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
|
2119
2181
|
# @type Edition: String
|
2120
|
-
# @param SourceType:
|
2182
|
+
# @param SourceType: 可选值为:batch(批量添加)、bot、cc、custom(非批量添加时的默认值)
|
2121
2183
|
# @type SourceType: String
|
2122
2184
|
# @param Note: 备注
|
2123
2185
|
# @type Note: String
|
@@ -2168,6 +2230,38 @@ module TencentCloud
|
|
2168
2230
|
end
|
2169
2231
|
end
|
2170
2232
|
|
2233
|
+
# 规则周期执行的数据结构
|
2234
|
+
class CronJob < TencentCloud::Common::AbstractModel
|
2235
|
+
# @param Days: 每个月的几号执行
|
2236
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2237
|
+
# @type Days: Array
|
2238
|
+
# @param WDays: 每个星期的星期几执行
|
2239
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2240
|
+
# @type WDays: Array
|
2241
|
+
# @param StartTime: 开始时间
|
2242
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2243
|
+
# @type StartTime: String
|
2244
|
+
# @param EndTime: 结束时间
|
2245
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2246
|
+
# @type EndTime: String
|
2247
|
+
|
2248
|
+
attr_accessor :Days, :WDays, :StartTime, :EndTime
|
2249
|
+
|
2250
|
+
def initialize(days=nil, wdays=nil, starttime=nil, endtime=nil)
|
2251
|
+
@Days = days
|
2252
|
+
@WDays = wdays
|
2253
|
+
@StartTime = starttime
|
2254
|
+
@EndTime = endtime
|
2255
|
+
end
|
2256
|
+
|
2257
|
+
def deserialize(params)
|
2258
|
+
@Days = params['Days']
|
2259
|
+
@WDays = params['WDays']
|
2260
|
+
@StartTime = params['StartTime']
|
2261
|
+
@EndTime = params['EndTime']
|
2262
|
+
end
|
2263
|
+
end
|
2264
|
+
|
2171
2265
|
# 计费下单响应实体
|
2172
2266
|
class DealData < TencentCloud::Common::AbstractModel
|
2173
2267
|
# @param DealNames: 订单号列表,元素个数与请求包的goods数组的元素个数一致,商品详情与订单按顺序对应
|
@@ -2430,34 +2524,52 @@ module TencentCloud
|
|
2430
2524
|
# @type RuleId: String
|
2431
2525
|
# @param Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
|
2432
2526
|
# @type Edition: String
|
2527
|
+
# @param DomainRuleIdList: 批量删除的规则列表
|
2528
|
+
# @type DomainRuleIdList: Array
|
2433
2529
|
|
2434
|
-
attr_accessor :Domain, :RuleId, :Edition
|
2530
|
+
attr_accessor :Domain, :RuleId, :Edition, :DomainRuleIdList
|
2435
2531
|
|
2436
|
-
def initialize(domain=nil, ruleid=nil, edition=nil)
|
2532
|
+
def initialize(domain=nil, ruleid=nil, edition=nil, domainruleidlist=nil)
|
2437
2533
|
@Domain = domain
|
2438
2534
|
@RuleId = ruleid
|
2439
2535
|
@Edition = edition
|
2536
|
+
@DomainRuleIdList = domainruleidlist
|
2440
2537
|
end
|
2441
2538
|
|
2442
2539
|
def deserialize(params)
|
2443
2540
|
@Domain = params['Domain']
|
2444
2541
|
@RuleId = params['RuleId']
|
2445
2542
|
@Edition = params['Edition']
|
2543
|
+
unless params['DomainRuleIdList'].nil?
|
2544
|
+
@DomainRuleIdList = []
|
2545
|
+
params['DomainRuleIdList'].each do |i|
|
2546
|
+
domainruleid_tmp = DomainRuleId.new
|
2547
|
+
domainruleid_tmp.deserialize(i)
|
2548
|
+
@DomainRuleIdList << domainruleid_tmp
|
2549
|
+
end
|
2550
|
+
end
|
2446
2551
|
end
|
2447
2552
|
end
|
2448
2553
|
|
2449
2554
|
# DeleteCustomRule返回参数结构体
|
2450
2555
|
class DeleteCustomRuleResponse < TencentCloud::Common::AbstractModel
|
2556
|
+
# @param Success: 操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败
|
2557
|
+
# @type Success: :class:`Tencentcloud::Waf.v20180125.models.ResponseCode`
|
2451
2558
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2452
2559
|
# @type RequestId: String
|
2453
2560
|
|
2454
|
-
attr_accessor :RequestId
|
2561
|
+
attr_accessor :Success, :RequestId
|
2455
2562
|
|
2456
|
-
def initialize(requestid=nil)
|
2563
|
+
def initialize(success=nil, requestid=nil)
|
2564
|
+
@Success = success
|
2457
2565
|
@RequestId = requestid
|
2458
2566
|
end
|
2459
2567
|
|
2460
2568
|
def deserialize(params)
|
2569
|
+
unless params['Success'].nil?
|
2570
|
+
@Success = ResponseCode.new
|
2571
|
+
@Success.deserialize(params['Success'])
|
2572
|
+
end
|
2461
2573
|
@RequestId = params['RequestId']
|
2462
2574
|
end
|
2463
2575
|
end
|
@@ -3386,10 +3498,13 @@ module TencentCloud
|
|
3386
3498
|
# @param Uri: 匹配的URL
|
3387
3499
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
3388
3500
|
# @type Uri: String
|
3501
|
+
# @param ModifyTime: 修改时间
|
3502
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3503
|
+
# @type ModifyTime: String
|
3389
3504
|
|
3390
|
-
attr_accessor :RuleId, :Name, :Status, :Action, :CreateTime, :Strategies, :Uri
|
3505
|
+
attr_accessor :RuleId, :Name, :Status, :Action, :CreateTime, :Strategies, :Uri, :ModifyTime
|
3391
3506
|
|
3392
|
-
def initialize(ruleid=nil, name=nil, status=nil, action=nil, createtime=nil, strategies=nil, uri=nil)
|
3507
|
+
def initialize(ruleid=nil, name=nil, status=nil, action=nil, createtime=nil, strategies=nil, uri=nil, modifytime=nil)
|
3393
3508
|
@RuleId = ruleid
|
3394
3509
|
@Name = name
|
3395
3510
|
@Status = status
|
@@ -3397,6 +3512,7 @@ module TencentCloud
|
|
3397
3512
|
@CreateTime = createtime
|
3398
3513
|
@Strategies = strategies
|
3399
3514
|
@Uri = uri
|
3515
|
+
@ModifyTime = modifytime
|
3400
3516
|
end
|
3401
3517
|
|
3402
3518
|
def deserialize(params)
|
@@ -3414,6 +3530,7 @@ module TencentCloud
|
|
3414
3530
|
end
|
3415
3531
|
end
|
3416
3532
|
@Uri = params['Uri']
|
3533
|
+
@ModifyTime = params['ModifyTime']
|
3417
3534
|
end
|
3418
3535
|
end
|
3419
3536
|
|
@@ -4085,16 +4202,19 @@ module TencentCloud
|
|
4085
4202
|
# @type Order: String
|
4086
4203
|
# @param By: exp_ts或者mod_ts
|
4087
4204
|
# @type By: String
|
4205
|
+
# @param DomainList: 查询的域名列表,访问控制页面不用传
|
4206
|
+
# @type DomainList: Array
|
4088
4207
|
|
4089
|
-
attr_accessor :Domain, :Offset, :Limit, :Filters, :Order, :By
|
4208
|
+
attr_accessor :Domain, :Offset, :Limit, :Filters, :Order, :By, :DomainList
|
4090
4209
|
|
4091
|
-
def initialize(domain=nil, offset=nil, limit=nil, filters=nil, order=nil, by=nil)
|
4210
|
+
def initialize(domain=nil, offset=nil, limit=nil, filters=nil, order=nil, by=nil, domainlist=nil)
|
4092
4211
|
@Domain = domain
|
4093
4212
|
@Offset = offset
|
4094
4213
|
@Limit = limit
|
4095
4214
|
@Filters = filters
|
4096
4215
|
@Order = order
|
4097
4216
|
@By = by
|
4217
|
+
@DomainList = domainlist
|
4098
4218
|
end
|
4099
4219
|
|
4100
4220
|
def deserialize(params)
|
@@ -4111,6 +4231,7 @@ module TencentCloud
|
|
4111
4231
|
end
|
4112
4232
|
@Order = params['Order']
|
4113
4233
|
@By = params['By']
|
4234
|
+
@DomainList = params['DomainList']
|
4114
4235
|
end
|
4115
4236
|
end
|
4116
4237
|
|
@@ -4179,10 +4300,28 @@ module TencentCloud
|
|
4179
4300
|
# @param Source: 来源
|
4180
4301
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
4181
4302
|
# @type Source: String
|
4303
|
+
# @param JobType: 定时任务类型
|
4304
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4305
|
+
# @type JobType: String
|
4306
|
+
# @param JobDateTime: 定时任务配置信息
|
4307
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4308
|
+
# @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
|
4309
|
+
# @param CronType: 周期任务粒度
|
4310
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4311
|
+
# @type CronType: String
|
4312
|
+
# @param Label: 自定义标签,风控规则用,用来表示是内置规则还是用户自定义的
|
4313
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4314
|
+
# @type Label: String
|
4315
|
+
# @param PageId: 拦截页面id
|
4316
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4317
|
+
# @type PageId: String
|
4318
|
+
# @param Domain: 域名
|
4319
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4320
|
+
# @type Domain: String
|
4182
4321
|
|
4183
|
-
attr_accessor :ActionType, :Bypass, :CreateTime, :ExpireTime, :Name, :Redirect, :RuleId, :SortId, :Status, :Strategies, :EventId, :ModifyTime, :ValidStatus, :Source
|
4322
|
+
attr_accessor :ActionType, :Bypass, :CreateTime, :ExpireTime, :Name, :Redirect, :RuleId, :SortId, :Status, :Strategies, :EventId, :ModifyTime, :ValidStatus, :Source, :JobType, :JobDateTime, :CronType, :Label, :PageId, :Domain
|
4184
4323
|
|
4185
|
-
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)
|
4324
|
+
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)
|
4186
4325
|
@ActionType = actiontype
|
4187
4326
|
@Bypass = bypass
|
4188
4327
|
@CreateTime = createtime
|
@@ -4197,6 +4336,12 @@ module TencentCloud
|
|
4197
4336
|
@ModifyTime = modifytime
|
4198
4337
|
@ValidStatus = validstatus
|
4199
4338
|
@Source = source
|
4339
|
+
@JobType = jobtype
|
4340
|
+
@JobDateTime = jobdatetime
|
4341
|
+
@CronType = crontype
|
4342
|
+
@Label = label
|
4343
|
+
@PageId = pageid
|
4344
|
+
@Domain = domain
|
4200
4345
|
end
|
4201
4346
|
|
4202
4347
|
def deserialize(params)
|
@@ -4221,6 +4366,15 @@ module TencentCloud
|
|
4221
4366
|
@ModifyTime = params['ModifyTime']
|
4222
4367
|
@ValidStatus = params['ValidStatus']
|
4223
4368
|
@Source = params['Source']
|
4369
|
+
@JobType = params['JobType']
|
4370
|
+
unless params['JobDateTime'].nil?
|
4371
|
+
@JobDateTime = JobDateTime.new
|
4372
|
+
@JobDateTime.deserialize(params['JobDateTime'])
|
4373
|
+
end
|
4374
|
+
@CronType = params['CronType']
|
4375
|
+
@Label = params['Label']
|
4376
|
+
@PageId = params['PageId']
|
4377
|
+
@Domain = params['Domain']
|
4224
4378
|
end
|
4225
4379
|
end
|
4226
4380
|
|
@@ -6708,6 +6862,28 @@ module TencentCloud
|
|
6708
6862
|
end
|
6709
6863
|
end
|
6710
6864
|
|
6865
|
+
# 域名-规则id结构体
|
6866
|
+
class DomainRuleId < TencentCloud::Common::AbstractModel
|
6867
|
+
# @param Domain: 域名
|
6868
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6869
|
+
# @type Domain: String
|
6870
|
+
# @param RuleId: 规则id
|
6871
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6872
|
+
# @type RuleId: String
|
6873
|
+
|
6874
|
+
attr_accessor :Domain, :RuleId
|
6875
|
+
|
6876
|
+
def initialize(domain=nil, ruleid=nil)
|
6877
|
+
@Domain = domain
|
6878
|
+
@RuleId = ruleid
|
6879
|
+
end
|
6880
|
+
|
6881
|
+
def deserialize(params)
|
6882
|
+
@Domain = params['Domain']
|
6883
|
+
@RuleId = params['RuleId']
|
6884
|
+
end
|
6885
|
+
end
|
6886
|
+
|
6711
6887
|
# 唯一定位Domain
|
6712
6888
|
class DomainURI < TencentCloud::Common::AbstractModel
|
6713
6889
|
# @param Domain: 域名
|
@@ -8214,10 +8390,16 @@ module TencentCloud
|
|
8214
8390
|
# @param LastQpsExceedTime: 最近一次超量时间
|
8215
8391
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
8216
8392
|
# @type LastQpsExceedTime: String
|
8393
|
+
# @param MiniExtendPkg: 小程序安全接入ID数量扩张包
|
8394
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8395
|
+
# @type MiniExtendPkg: :class:`Tencentcloud::Waf.v20180125.models.MiniExtendPkg`
|
8396
|
+
# @param BillingItem: 计费项
|
8397
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8398
|
+
# @type BillingItem: String
|
8217
8399
|
|
8218
|
-
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
|
8400
|
+
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
|
8219
8401
|
|
8220
|
-
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)
|
8402
|
+
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)
|
8221
8403
|
@InstanceId = instanceid
|
8222
8404
|
@InstanceName = instancename
|
8223
8405
|
@ResourceIds = resourceids
|
@@ -8256,6 +8438,8 @@ module TencentCloud
|
|
8256
8438
|
@MiniQpsStandard = miniqpsstandard
|
8257
8439
|
@MiniMaxQPS = minimaxqps
|
8258
8440
|
@LastQpsExceedTime = lastqpsexceedtime
|
8441
|
+
@MiniExtendPkg = miniextendpkg
|
8442
|
+
@BillingItem = billingitem
|
8259
8443
|
end
|
8260
8444
|
|
8261
8445
|
def deserialize(params)
|
@@ -8324,6 +8508,11 @@ module TencentCloud
|
|
8324
8508
|
@MiniQpsStandard = params['MiniQpsStandard']
|
8325
8509
|
@MiniMaxQPS = params['MiniMaxQPS']
|
8326
8510
|
@LastQpsExceedTime = params['LastQpsExceedTime']
|
8511
|
+
unless params['MiniExtendPkg'].nil?
|
8512
|
+
@MiniExtendPkg = MiniExtendPkg.new
|
8513
|
+
@MiniExtendPkg.deserialize(params['MiniExtendPkg'])
|
8514
|
+
end
|
8515
|
+
@BillingItem = params['BillingItem']
|
8327
8516
|
end
|
8328
8517
|
end
|
8329
8518
|
|
@@ -8382,10 +8571,13 @@ module TencentCloud
|
|
8382
8571
|
# @param IpList: IP列表
|
8383
8572
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
8384
8573
|
# @type IpList: Array
|
8574
|
+
# @param CreateTime: 规则创建时间
|
8575
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8576
|
+
# @type CreateTime: Integer
|
8385
8577
|
|
8386
|
-
attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :ValidStatus, :RuleId, :IpList
|
8578
|
+
attr_accessor :Id, :ActionType, :Ip, :Note, :Source, :TsVersion, :ValidTs, :ValidStatus, :RuleId, :IpList, :CreateTime
|
8387
8579
|
|
8388
|
-
def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, validstatus=nil, ruleid=nil, iplist=nil)
|
8580
|
+
def initialize(id=nil, actiontype=nil, ip=nil, note=nil, source=nil, tsversion=nil, validts=nil, validstatus=nil, ruleid=nil, iplist=nil, createtime=nil)
|
8389
8581
|
@Id = id
|
8390
8582
|
@ActionType = actiontype
|
8391
8583
|
@Ip = ip
|
@@ -8396,6 +8588,7 @@ module TencentCloud
|
|
8396
8588
|
@ValidStatus = validstatus
|
8397
8589
|
@RuleId = ruleid
|
8398
8590
|
@IpList = iplist
|
8591
|
+
@CreateTime = createtime
|
8399
8592
|
end
|
8400
8593
|
|
8401
8594
|
def deserialize(params)
|
@@ -8409,6 +8602,7 @@ module TencentCloud
|
|
8409
8602
|
@ValidStatus = params['ValidStatus']
|
8410
8603
|
@RuleId = params['RuleId']
|
8411
8604
|
@IpList = params['IpList']
|
8605
|
+
@CreateTime = params['CreateTime']
|
8412
8606
|
end
|
8413
8607
|
end
|
8414
8608
|
|
@@ -8503,6 +8697,47 @@ module TencentCloud
|
|
8503
8697
|
end
|
8504
8698
|
end
|
8505
8699
|
|
8700
|
+
# 规则执行的时间结构体
|
8701
|
+
class JobDateTime < TencentCloud::Common::AbstractModel
|
8702
|
+
# @param Timed: 定时执行的时间参数
|
8703
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8704
|
+
# @type Timed: Array
|
8705
|
+
# @param Cron: 周期执行的时间参数
|
8706
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8707
|
+
# @type Cron: Array
|
8708
|
+
# @param TimeTZone: 时区
|
8709
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8710
|
+
# @type TimeTZone: String
|
8711
|
+
|
8712
|
+
attr_accessor :Timed, :Cron, :TimeTZone
|
8713
|
+
|
8714
|
+
def initialize(timed=nil, cron=nil, timetzone=nil)
|
8715
|
+
@Timed = timed
|
8716
|
+
@Cron = cron
|
8717
|
+
@TimeTZone = timetzone
|
8718
|
+
end
|
8719
|
+
|
8720
|
+
def deserialize(params)
|
8721
|
+
unless params['Timed'].nil?
|
8722
|
+
@Timed = []
|
8723
|
+
params['Timed'].each do |i|
|
8724
|
+
timedjob_tmp = TimedJob.new
|
8725
|
+
timedjob_tmp.deserialize(i)
|
8726
|
+
@Timed << timedjob_tmp
|
8727
|
+
end
|
8728
|
+
end
|
8729
|
+
unless params['Cron'].nil?
|
8730
|
+
@Cron = []
|
8731
|
+
params['Cron'].each do |i|
|
8732
|
+
cronjob_tmp = CronJob.new
|
8733
|
+
cronjob_tmp.deserialize(i)
|
8734
|
+
@Cron << cronjob_tmp
|
8735
|
+
end
|
8736
|
+
end
|
8737
|
+
@TimeTZone = params['TimeTZone']
|
8738
|
+
end
|
8739
|
+
end
|
8740
|
+
|
8506
8741
|
# Key-Value的形式,Value为Int
|
8507
8742
|
class KVInt < TencentCloud::Common::AbstractModel
|
8508
8743
|
# @param Key: Key
|
@@ -8768,6 +9003,58 @@ module TencentCloud
|
|
8768
9003
|
end
|
8769
9004
|
end
|
8770
9005
|
|
9006
|
+
# 小程序安全接入ID扩展资源信息
|
9007
|
+
class MiniExtendPkg < TencentCloud::Common::AbstractModel
|
9008
|
+
# @param ResourceIds: 资源id
|
9009
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9010
|
+
# @type ResourceIds: String
|
9011
|
+
# @param Status: 状态
|
9012
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9013
|
+
# @type Status: Integer
|
9014
|
+
# @param Region: 地域
|
9015
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9016
|
+
# @type Region: Integer
|
9017
|
+
# @param BeginTime: 开始时间
|
9018
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9019
|
+
# @type BeginTime: String
|
9020
|
+
# @param EndTime: 结束时间
|
9021
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9022
|
+
# @type EndTime: String
|
9023
|
+
# @param Count: 购买数量
|
9024
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9025
|
+
# @type Count: Integer
|
9026
|
+
# @param RenewFlag: 续费标志
|
9027
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9028
|
+
# @type RenewFlag: Integer
|
9029
|
+
# @param BillingItem: 计费项
|
9030
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9031
|
+
# @type BillingItem: String
|
9032
|
+
|
9033
|
+
attr_accessor :ResourceIds, :Status, :Region, :BeginTime, :EndTime, :Count, :RenewFlag, :BillingItem
|
9034
|
+
|
9035
|
+
def initialize(resourceids=nil, status=nil, region=nil, begintime=nil, endtime=nil, count=nil, renewflag=nil, billingitem=nil)
|
9036
|
+
@ResourceIds = resourceids
|
9037
|
+
@Status = status
|
9038
|
+
@Region = region
|
9039
|
+
@BeginTime = begintime
|
9040
|
+
@EndTime = endtime
|
9041
|
+
@Count = count
|
9042
|
+
@RenewFlag = renewflag
|
9043
|
+
@BillingItem = billingitem
|
9044
|
+
end
|
9045
|
+
|
9046
|
+
def deserialize(params)
|
9047
|
+
@ResourceIds = params['ResourceIds']
|
9048
|
+
@Status = params['Status']
|
9049
|
+
@Region = params['Region']
|
9050
|
+
@BeginTime = params['BeginTime']
|
9051
|
+
@EndTime = params['EndTime']
|
9052
|
+
@Count = params['Count']
|
9053
|
+
@RenewFlag = params['RenewFlag']
|
9054
|
+
@BillingItem = params['BillingItem']
|
9055
|
+
end
|
9056
|
+
end
|
9057
|
+
|
8771
9058
|
# API安全资源信息
|
8772
9059
|
class MiniPkg < TencentCloud::Common::AbstractModel
|
8773
9060
|
# @param ResourceIds: 资源id
|
@@ -9307,10 +9594,20 @@ module TencentCloud
|
|
9307
9594
|
# @param ExpireTime: 规则生效截止时间,0:永久生效,其它值为对应时间的时间戳。
|
9308
9595
|
# 默认是0
|
9309
9596
|
# @type ExpireTime: Integer
|
9597
|
+
# @param JobType: 定时任务类型
|
9598
|
+
# @type JobType: String
|
9599
|
+
# @param JobDateTime: 定时任务配置
|
9600
|
+
# @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
|
9601
|
+
# @param Source: 规则来源,判断是不是小程序的
|
9602
|
+
# @type Source: String
|
9603
|
+
# @param Status: 开关状态,小程序风控规则的时候传该值
|
9604
|
+
# @type Status: Integer
|
9605
|
+
# @param PageId: 拦截页面id
|
9606
|
+
# @type PageId: String
|
9310
9607
|
|
9311
|
-
attr_accessor :Domain, :RuleId, :RuleName, :RuleAction, :Strategies, :Edition, :Redirect, :Bypass, :SortId, :ExpireTime
|
9608
|
+
attr_accessor :Domain, :RuleId, :RuleName, :RuleAction, :Strategies, :Edition, :Redirect, :Bypass, :SortId, :ExpireTime, :JobType, :JobDateTime, :Source, :Status, :PageId
|
9312
9609
|
|
9313
|
-
def initialize(domain=nil, ruleid=nil, rulename=nil, ruleaction=nil, strategies=nil, edition=nil, redirect=nil, bypass=nil, sortid=nil, expiretime=nil)
|
9610
|
+
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)
|
9314
9611
|
@Domain = domain
|
9315
9612
|
@RuleId = ruleid
|
9316
9613
|
@RuleName = rulename
|
@@ -9321,6 +9618,11 @@ module TencentCloud
|
|
9321
9618
|
@Bypass = bypass
|
9322
9619
|
@SortId = sortid
|
9323
9620
|
@ExpireTime = expiretime
|
9621
|
+
@JobType = jobtype
|
9622
|
+
@JobDateTime = jobdatetime
|
9623
|
+
@Source = source
|
9624
|
+
@Status = status
|
9625
|
+
@PageId = pageid
|
9324
9626
|
end
|
9325
9627
|
|
9326
9628
|
def deserialize(params)
|
@@ -9341,21 +9643,36 @@ module TencentCloud
|
|
9341
9643
|
@Bypass = params['Bypass']
|
9342
9644
|
@SortId = params['SortId']
|
9343
9645
|
@ExpireTime = params['ExpireTime']
|
9646
|
+
@JobType = params['JobType']
|
9647
|
+
unless params['JobDateTime'].nil?
|
9648
|
+
@JobDateTime = JobDateTime.new
|
9649
|
+
@JobDateTime.deserialize(params['JobDateTime'])
|
9650
|
+
end
|
9651
|
+
@Source = params['Source']
|
9652
|
+
@Status = params['Status']
|
9653
|
+
@PageId = params['PageId']
|
9344
9654
|
end
|
9345
9655
|
end
|
9346
9656
|
|
9347
9657
|
# ModifyCustomRule返回参数结构体
|
9348
9658
|
class ModifyCustomRuleResponse < TencentCloud::Common::AbstractModel
|
9659
|
+
# @param Success: 操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败
|
9660
|
+
# @type Success: :class:`Tencentcloud::Waf.v20180125.models.ResponseCode`
|
9349
9661
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9350
9662
|
# @type RequestId: String
|
9351
9663
|
|
9352
|
-
attr_accessor :RequestId
|
9664
|
+
attr_accessor :Success, :RequestId
|
9353
9665
|
|
9354
|
-
def initialize(requestid=nil)
|
9666
|
+
def initialize(success=nil, requestid=nil)
|
9667
|
+
@Success = success
|
9355
9668
|
@RequestId = requestid
|
9356
9669
|
end
|
9357
9670
|
|
9358
9671
|
def deserialize(params)
|
9672
|
+
unless params['Success'].nil?
|
9673
|
+
@Success = ResponseCode.new
|
9674
|
+
@Success.deserialize(params['Success'])
|
9675
|
+
end
|
9359
9676
|
@RequestId = params['RequestId']
|
9360
9677
|
end
|
9361
9678
|
end
|
@@ -9370,14 +9687,17 @@ module TencentCloud
|
|
9370
9687
|
# @type Status: Integer
|
9371
9688
|
# @param Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
|
9372
9689
|
# @type Edition: String
|
9690
|
+
# @param DomainRuleIdList: 规则id
|
9691
|
+
# @type DomainRuleIdList: Array
|
9373
9692
|
|
9374
|
-
attr_accessor :Domain, :RuleId, :Status, :Edition
|
9693
|
+
attr_accessor :Domain, :RuleId, :Status, :Edition, :DomainRuleIdList
|
9375
9694
|
|
9376
|
-
def initialize(domain=nil, ruleid=nil, status=nil, edition=nil)
|
9695
|
+
def initialize(domain=nil, ruleid=nil, status=nil, edition=nil, domainruleidlist=nil)
|
9377
9696
|
@Domain = domain
|
9378
9697
|
@RuleId = ruleid
|
9379
9698
|
@Status = status
|
9380
9699
|
@Edition = edition
|
9700
|
+
@DomainRuleIdList = domainruleidlist
|
9381
9701
|
end
|
9382
9702
|
|
9383
9703
|
def deserialize(params)
|
@@ -9385,6 +9705,14 @@ module TencentCloud
|
|
9385
9705
|
@RuleId = params['RuleId']
|
9386
9706
|
@Status = params['Status']
|
9387
9707
|
@Edition = params['Edition']
|
9708
|
+
unless params['DomainRuleIdList'].nil?
|
9709
|
+
@DomainRuleIdList = []
|
9710
|
+
params['DomainRuleIdList'].each do |i|
|
9711
|
+
domainruleid_tmp = DomainRuleId.new
|
9712
|
+
domainruleid_tmp.deserialize(i)
|
9713
|
+
@DomainRuleIdList << domainruleid_tmp
|
9714
|
+
end
|
9715
|
+
end
|
9388
9716
|
end
|
9389
9717
|
end
|
9390
9718
|
|
@@ -9427,10 +9755,14 @@ module TencentCloud
|
|
9427
9755
|
# @type ExpireTime: Integer
|
9428
9756
|
# @param Strategies: 匹配条件数组
|
9429
9757
|
# @type Strategies: Array
|
9758
|
+
# @param JobType: 定时任务类型
|
9759
|
+
# @type JobType: String
|
9760
|
+
# @param JobDateTime: 定时任务配置
|
9761
|
+
# @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
|
9430
9762
|
|
9431
|
-
attr_accessor :Domain, :RuleId, :RuleName, :Bypass, :SortId, :ExpireTime, :Strategies
|
9763
|
+
attr_accessor :Domain, :RuleId, :RuleName, :Bypass, :SortId, :ExpireTime, :Strategies, :JobType, :JobDateTime
|
9432
9764
|
|
9433
|
-
def initialize(domain=nil, ruleid=nil, rulename=nil, bypass=nil, sortid=nil, expiretime=nil, strategies=nil)
|
9765
|
+
def initialize(domain=nil, ruleid=nil, rulename=nil, bypass=nil, sortid=nil, expiretime=nil, strategies=nil, jobtype=nil, jobdatetime=nil)
|
9434
9766
|
@Domain = domain
|
9435
9767
|
@RuleId = ruleid
|
9436
9768
|
@RuleName = rulename
|
@@ -9438,6 +9770,8 @@ module TencentCloud
|
|
9438
9770
|
@SortId = sortid
|
9439
9771
|
@ExpireTime = expiretime
|
9440
9772
|
@Strategies = strategies
|
9773
|
+
@JobType = jobtype
|
9774
|
+
@JobDateTime = jobdatetime
|
9441
9775
|
end
|
9442
9776
|
|
9443
9777
|
def deserialize(params)
|
@@ -9455,6 +9789,11 @@ module TencentCloud
|
|
9455
9789
|
@Strategies << strategy_tmp
|
9456
9790
|
end
|
9457
9791
|
end
|
9792
|
+
@JobType = params['JobType']
|
9793
|
+
unless params['JobDateTime'].nil?
|
9794
|
+
@JobDateTime = JobDateTime.new
|
9795
|
+
@JobDateTime.deserialize(params['JobDateTime'])
|
9796
|
+
end
|
9458
9797
|
end
|
9459
9798
|
end
|
9460
9799
|
|
@@ -10494,10 +10833,12 @@ module TencentCloud
|
|
10494
10833
|
# @type UpstreamHost: String
|
10495
10834
|
# @param ProxyBuffer: 是否开启缓存 0-关闭 1-开启
|
10496
10835
|
# @type ProxyBuffer: Integer
|
10836
|
+
# @param ProbeStatus: 0: 禁用拨测, 1: 启用拨测。默认启用拨测
|
10837
|
+
# @type ProbeStatus: Integer
|
10497
10838
|
|
10498
|
-
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
|
10839
|
+
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
|
10499
10840
|
|
10500
|
-
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)
|
10841
|
+
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)
|
10501
10842
|
@Domain = domain
|
10502
10843
|
@DomainId = domainid
|
10503
10844
|
@InstanceID = instanceid
|
@@ -10534,6 +10875,7 @@ module TencentCloud
|
|
10534
10875
|
@Note = note
|
10535
10876
|
@UpstreamHost = upstreamhost
|
10536
10877
|
@ProxyBuffer = proxybuffer
|
10878
|
+
@ProbeStatus = probestatus
|
10537
10879
|
end
|
10538
10880
|
|
10539
10881
|
def deserialize(params)
|
@@ -10580,6 +10922,7 @@ module TencentCloud
|
|
10580
10922
|
@Note = params['Note']
|
10581
10923
|
@UpstreamHost = params['UpstreamHost']
|
10582
10924
|
@ProxyBuffer = params['ProxyBuffer']
|
10925
|
+
@ProbeStatus = params['ProbeStatus']
|
10583
10926
|
end
|
10584
10927
|
end
|
10585
10928
|
|
@@ -11351,16 +11694,20 @@ module TencentCloud
|
|
11351
11694
|
# @type Time: String
|
11352
11695
|
# @param Status: 开关状态
|
11353
11696
|
# @type Status: Integer
|
11697
|
+
# @param CreateTime: 创建时间
|
11698
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11699
|
+
# @type CreateTime: String
|
11354
11700
|
|
11355
|
-
attr_accessor :Id, :Rules, :Url, :Function, :Time, :Status
|
11701
|
+
attr_accessor :Id, :Rules, :Url, :Function, :Time, :Status, :CreateTime
|
11356
11702
|
|
11357
|
-
def initialize(id=nil, rules=nil, url=nil, function=nil, time=nil, status=nil)
|
11703
|
+
def initialize(id=nil, rules=nil, url=nil, function=nil, time=nil, status=nil, createtime=nil)
|
11358
11704
|
@Id = id
|
11359
11705
|
@Rules = rules
|
11360
11706
|
@Url = url
|
11361
11707
|
@Function = function
|
11362
11708
|
@Time = time
|
11363
11709
|
@Status = status
|
11710
|
+
@CreateTime = createtime
|
11364
11711
|
end
|
11365
11712
|
|
11366
11713
|
def deserialize(params)
|
@@ -11370,6 +11717,7 @@ module TencentCloud
|
|
11370
11717
|
@Function = params['Function']
|
11371
11718
|
@Time = params['Time']
|
11372
11719
|
@Status = params['Status']
|
11720
|
+
@CreateTime = params['CreateTime']
|
11373
11721
|
end
|
11374
11722
|
end
|
11375
11723
|
|
@@ -11954,6 +12302,28 @@ module TencentCloud
|
|
11954
12302
|
end
|
11955
12303
|
end
|
11956
12304
|
|
12305
|
+
# 规则定时任务数据结构
|
12306
|
+
class TimedJob < TencentCloud::Common::AbstractModel
|
12307
|
+
# @param StartDateTime: 开始时间戳,单位为秒
|
12308
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
12309
|
+
# @type StartDateTime: Integer
|
12310
|
+
# @param EndDateTime: 结束时间戳,单位为秒
|
12311
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
12312
|
+
# @type EndDateTime: Integer
|
12313
|
+
|
12314
|
+
attr_accessor :StartDateTime, :EndDateTime
|
12315
|
+
|
12316
|
+
def initialize(startdatetime=nil, enddatetime=nil)
|
12317
|
+
@StartDateTime = startdatetime
|
12318
|
+
@EndDateTime = enddatetime
|
12319
|
+
end
|
12320
|
+
|
12321
|
+
def deserialize(params)
|
12322
|
+
@StartDateTime = params['StartDateTime']
|
12323
|
+
@EndDateTime = params['EndDateTime']
|
12324
|
+
end
|
12325
|
+
end
|
12326
|
+
|
11957
12327
|
# UpsertCCAutoStatus请求参数结构体
|
11958
12328
|
class UpsertCCAutoStatusRequest < TencentCloud::Common::AbstractModel
|
11959
12329
|
# @param Domain: 域名
|
@@ -12035,10 +12405,12 @@ module TencentCloud
|
|
12035
12405
|
# @type SessionApplied: Array
|
12036
12406
|
# @param RuleId: 规则ID,新增时填0
|
12037
12407
|
# @type RuleId: Integer
|
12408
|
+
# @param CreateTime: 规则创建时间
|
12409
|
+
# @type CreateTime: Integer
|
12038
12410
|
|
12039
|
-
attr_accessor :Domain, :Name, :Status, :Advance, :Limit, :Interval, :Url, :MatchFunc, :ActionType, :Priority, :ValidTime, :OptionsArr, :Edition, :Type, :EventId, :SessionApplied, :RuleId
|
12411
|
+
attr_accessor :Domain, :Name, :Status, :Advance, :Limit, :Interval, :Url, :MatchFunc, :ActionType, :Priority, :ValidTime, :OptionsArr, :Edition, :Type, :EventId, :SessionApplied, :RuleId, :CreateTime
|
12040
12412
|
|
12041
|
-
def initialize(domain=nil, name=nil, status=nil, advance=nil, limit=nil, interval=nil, url=nil, matchfunc=nil, actiontype=nil, priority=nil, validtime=nil, optionsarr=nil, edition=nil, type=nil, eventid=nil, sessionapplied=nil, ruleid=nil)
|
12413
|
+
def initialize(domain=nil, name=nil, status=nil, advance=nil, limit=nil, interval=nil, url=nil, matchfunc=nil, actiontype=nil, priority=nil, validtime=nil, optionsarr=nil, edition=nil, type=nil, eventid=nil, sessionapplied=nil, ruleid=nil, createtime=nil)
|
12042
12414
|
@Domain = domain
|
12043
12415
|
@Name = name
|
12044
12416
|
@Status = status
|
@@ -12056,6 +12428,7 @@ module TencentCloud
|
|
12056
12428
|
@EventId = eventid
|
12057
12429
|
@SessionApplied = sessionapplied
|
12058
12430
|
@RuleId = ruleid
|
12431
|
+
@CreateTime = createtime
|
12059
12432
|
end
|
12060
12433
|
|
12061
12434
|
def deserialize(params)
|
@@ -12076,6 +12449,7 @@ module TencentCloud
|
|
12076
12449
|
@EventId = params['EventId']
|
12077
12450
|
@SessionApplied = params['SessionApplied']
|
12078
12451
|
@RuleId = params['RuleId']
|
12452
|
+
@CreateTime = params['CreateTime']
|
12079
12453
|
end
|
12080
12454
|
end
|
12081
12455
|
|
@@ -12109,13 +12483,13 @@ module TencentCloud
|
|
12109
12483
|
# @param Domain: 具体域名如:test.qcloudwaf.com
|
12110
12484
|
# 全局域名为:global
|
12111
12485
|
# @type Domain: String
|
12112
|
-
# @param Items:
|
12486
|
+
# @param Items: IP 参数列表,json数组由IP,source,note,action,valid_ts组成。IP对应配置的IP地址,source固定为custom值,note为注释,action值42为黑名单,40为白名单,valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))
|
12113
12487
|
# @type Items: Array
|
12114
12488
|
# @param InstanceId: 实例Id
|
12115
12489
|
# @type InstanceId: String
|
12116
12490
|
# @param Edition: WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF
|
12117
12491
|
# @type Edition: String
|
12118
|
-
# @param SourceType:
|
12492
|
+
# @param SourceType: 可选值为:batch(批量添加)、bot、cc、custom(非批量添加时的默认值)
|
12119
12493
|
# @type SourceType: String
|
12120
12494
|
|
12121
12495
|
attr_accessor :Domain, :Items, :InstanceId, :Edition, :SourceType
|
@@ -12272,10 +12646,19 @@ module TencentCloud
|
|
12272
12646
|
# @param CloudType: 标记是否是混合云接入。hybrid表示混合云接入域名
|
12273
12647
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
12274
12648
|
# @type CloudType: String
|
12649
|
+
# @param AlbType: 标记clbwaf类型
|
12650
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
12651
|
+
# @type AlbType: String
|
12652
|
+
# @param BotStatus: BOT开关状态
|
12653
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
12654
|
+
# @type BotStatus: Integer
|
12655
|
+
# @param ApiStatus: API开关状态
|
12656
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
12657
|
+
# @type ApiStatus: Integer
|
12275
12658
|
|
12276
|
-
attr_accessor :Appid, :Domain, :DomainId, :InstanceId, :InstanceName, :Edition, :Level, :WriteConfig, :Cls, :CloudType
|
12659
|
+
attr_accessor :Appid, :Domain, :DomainId, :InstanceId, :InstanceName, :Edition, :Level, :WriteConfig, :Cls, :CloudType, :AlbType, :BotStatus, :ApiStatus
|
12277
12660
|
|
12278
|
-
def initialize(appid=nil, domain=nil, domainid=nil, instanceid=nil, instancename=nil, edition=nil, level=nil, writeconfig=nil, cls=nil, cloudtype=nil)
|
12661
|
+
def initialize(appid=nil, domain=nil, domainid=nil, instanceid=nil, instancename=nil, edition=nil, level=nil, writeconfig=nil, cls=nil, cloudtype=nil, albtype=nil, botstatus=nil, apistatus=nil)
|
12279
12662
|
@Appid = appid
|
12280
12663
|
@Domain = domain
|
12281
12664
|
@DomainId = domainid
|
@@ -12286,6 +12669,9 @@ module TencentCloud
|
|
12286
12669
|
@WriteConfig = writeconfig
|
12287
12670
|
@Cls = cls
|
12288
12671
|
@CloudType = cloudtype
|
12672
|
+
@AlbType = albtype
|
12673
|
+
@BotStatus = botstatus
|
12674
|
+
@ApiStatus = apistatus
|
12289
12675
|
end
|
12290
12676
|
|
12291
12677
|
def deserialize(params)
|
@@ -12299,6 +12685,9 @@ module TencentCloud
|
|
12299
12685
|
@WriteConfig = params['WriteConfig']
|
12300
12686
|
@Cls = params['Cls']
|
12301
12687
|
@CloudType = params['CloudType']
|
12688
|
+
@AlbType = params['AlbType']
|
12689
|
+
@BotStatus = params['BotStatus']
|
12690
|
+
@ApiStatus = params['ApiStatus']
|
12302
12691
|
end
|
12303
12692
|
end
|
12304
12693
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-waf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.834
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|