tencentcloud-sdk-waf 3.0.970 → 3.0.971
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 +73 -1
- data/lib/v20180125/models.rb +251 -22
- 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: 475d3b2d16c0f4ba9f1a8fb0b069e9f953f870b4
|
4
|
+
data.tar.gz: 16968af26bb12a7adb14af0b54a85b0bb0f937db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97f2da4593f01bbf7d3341ed4ebffcbe6a728dffdcbe2c027c41dc3130998a63ebaa0a665d678e31391a0e2cac8510ca94ef33fea17b3c3d33360b8950b649dc
|
7
|
+
data.tar.gz: 41ecf49682b249277a62548eab6a0db80c79f587ec4e859eef7de021460ea52dda2aa9807cc4abe6ed61ed6e96305fd2b29375d2caa4a8edf2b80b2d8eedc9c0
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.971
|
data/lib/v20180125/client.rb
CHANGED
@@ -269,6 +269,30 @@ module TencentCloud
|
|
269
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
270
|
end
|
271
271
|
|
272
|
+
# 添加(编辑)地域封禁中的地域信息
|
273
|
+
|
274
|
+
# @param request: Request instance for CreateAreaBanRule.
|
275
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::CreateAreaBanRuleRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::CreateAreaBanRuleResponse`
|
277
|
+
def CreateAreaBanRule(request)
|
278
|
+
body = send_request('CreateAreaBanRule', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = CreateAreaBanRuleResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
272
296
|
# 计费资源购买、续费下单接口
|
273
297
|
|
274
298
|
# @param request: Request instance for CreateDeals.
|
@@ -893,6 +917,30 @@ module TencentCloud
|
|
893
917
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
918
|
end
|
895
919
|
|
920
|
+
# 获取地域封禁规则配置
|
921
|
+
|
922
|
+
# @param request: Request instance for DescribeAreaBanRule.
|
923
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeAreaBanRuleRequest`
|
924
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeAreaBanRuleResponse`
|
925
|
+
def DescribeAreaBanRule(request)
|
926
|
+
body = send_request('DescribeAreaBanRule', request.serialize)
|
927
|
+
response = JSON.parse(body)
|
928
|
+
if response['Response'].key?('Error') == false
|
929
|
+
model = DescribeAreaBanRuleResponse.new
|
930
|
+
model.deserialize(response['Response'])
|
931
|
+
model
|
932
|
+
else
|
933
|
+
code = response['Response']['Error']['Code']
|
934
|
+
message = response['Response']['Error']['Message']
|
935
|
+
reqid = response['Response']['RequestId']
|
936
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
937
|
+
end
|
938
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
939
|
+
raise e
|
940
|
+
rescue StandardError => e
|
941
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
942
|
+
end
|
943
|
+
|
896
944
|
# 获取WAF地域封禁支持的地域列表
|
897
945
|
|
898
946
|
# @param request: Request instance for DescribeAreaBanSupportAreas.
|
@@ -2525,6 +2573,30 @@ module TencentCloud
|
|
2525
2573
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2526
2574
|
end
|
2527
2575
|
|
2576
|
+
# 添加(编辑)地域封禁中的地域信息
|
2577
|
+
|
2578
|
+
# @param request: Request instance for ModifyAreaBanRule.
|
2579
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyAreaBanRuleRequest`
|
2580
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyAreaBanRuleResponse`
|
2581
|
+
def ModifyAreaBanRule(request)
|
2582
|
+
body = send_request('ModifyAreaBanRule', request.serialize)
|
2583
|
+
response = JSON.parse(body)
|
2584
|
+
if response['Response'].key?('Error') == false
|
2585
|
+
model = ModifyAreaBanRuleResponse.new
|
2586
|
+
model.deserialize(response['Response'])
|
2587
|
+
model
|
2588
|
+
else
|
2589
|
+
code = response['Response']['Error']['Code']
|
2590
|
+
message = response['Response']['Error']['Message']
|
2591
|
+
reqid = response['Response']['RequestId']
|
2592
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2593
|
+
end
|
2594
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2595
|
+
raise e
|
2596
|
+
rescue StandardError => e
|
2597
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2598
|
+
end
|
2599
|
+
|
2528
2600
|
# 修改防护域名的地域封禁状态
|
2529
2601
|
|
2530
2602
|
# @param request: Request instance for ModifyAreaBanStatus.
|
@@ -3078,7 +3150,7 @@ module TencentCloud
|
|
3078
3150
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3079
3151
|
end
|
3080
3152
|
|
3081
|
-
#
|
3153
|
+
# 开启、关闭WAF开关
|
3082
3154
|
|
3083
3155
|
# @param request: Request instance for ModifyProtectionStatus.
|
3084
3156
|
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyProtectionStatusRequest`
|
data/lib/v20180125/models.rb
CHANGED
@@ -77,8 +77,8 @@ module TencentCloud
|
|
77
77
|
|
78
78
|
attr_accessor :BTime, :Count, :BeginTime
|
79
79
|
extend Gem::Deprecate
|
80
|
-
deprecate :BTime, :none, 2024,
|
81
|
-
deprecate :BTime=, :none, 2024,
|
80
|
+
deprecate :BTime, :none, 2024, 12
|
81
|
+
deprecate :BTime=, :none, 2024, 12
|
82
82
|
|
83
83
|
def initialize(btime=nil, count=nil, begintime=nil)
|
84
84
|
@BTime = btime
|
@@ -1305,6 +1305,80 @@ module TencentCloud
|
|
1305
1305
|
end
|
1306
1306
|
end
|
1307
1307
|
|
1308
|
+
# 地域信息
|
1309
|
+
class Area < TencentCloud::Common::AbstractModel
|
1310
|
+
# @param Country: 国家,除了标准的国家外还支持国内、国外这两个特殊的标识
|
1311
|
+
# @type Country: String
|
1312
|
+
# @param Region: 省份
|
1313
|
+
# @type Region: String
|
1314
|
+
# @param City: 城市
|
1315
|
+
# @type City: String
|
1316
|
+
|
1317
|
+
attr_accessor :Country, :Region, :City
|
1318
|
+
|
1319
|
+
def initialize(country=nil, region=nil, city=nil)
|
1320
|
+
@Country = country
|
1321
|
+
@Region = region
|
1322
|
+
@City = city
|
1323
|
+
end
|
1324
|
+
|
1325
|
+
def deserialize(params)
|
1326
|
+
@Country = params['Country']
|
1327
|
+
@Region = params['Region']
|
1328
|
+
@City = params['City']
|
1329
|
+
end
|
1330
|
+
end
|
1331
|
+
|
1332
|
+
# 地域封禁规则详情
|
1333
|
+
class AreaBanRule < TencentCloud::Common::AbstractModel
|
1334
|
+
# @param Status: 状态 0:未开启地域封禁、1:开启地域封禁
|
1335
|
+
# @type Status: Integer
|
1336
|
+
# @param Source: 数据来源 custom:自定义(默认)、batch:批量防护
|
1337
|
+
# @type Source: String
|
1338
|
+
# @param Areas: 配置的地域列表
|
1339
|
+
# @type Areas: Array
|
1340
|
+
# @param JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
|
1341
|
+
# @type JobType: String
|
1342
|
+
# @param JobDateTime: 定时任务配置
|
1343
|
+
# @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
|
1344
|
+
# @param CronType: 如果是周期任务类型,那么表示周期的类型,支持 Week:按周、Month:按月
|
1345
|
+
# @type CronType: String
|
1346
|
+
# @param Lang: 地域信息的语言,支持cn、en,默认为中文cn
|
1347
|
+
# @type Lang: String
|
1348
|
+
|
1349
|
+
attr_accessor :Status, :Source, :Areas, :JobType, :JobDateTime, :CronType, :Lang
|
1350
|
+
|
1351
|
+
def initialize(status=nil, source=nil, areas=nil, jobtype=nil, jobdatetime=nil, crontype=nil, lang=nil)
|
1352
|
+
@Status = status
|
1353
|
+
@Source = source
|
1354
|
+
@Areas = areas
|
1355
|
+
@JobType = jobtype
|
1356
|
+
@JobDateTime = jobdatetime
|
1357
|
+
@CronType = crontype
|
1358
|
+
@Lang = lang
|
1359
|
+
end
|
1360
|
+
|
1361
|
+
def deserialize(params)
|
1362
|
+
@Status = params['Status']
|
1363
|
+
@Source = params['Source']
|
1364
|
+
unless params['Areas'].nil?
|
1365
|
+
@Areas = []
|
1366
|
+
params['Areas'].each do |i|
|
1367
|
+
area_tmp = Area.new
|
1368
|
+
area_tmp.deserialize(i)
|
1369
|
+
@Areas << area_tmp
|
1370
|
+
end
|
1371
|
+
end
|
1372
|
+
@JobType = params['JobType']
|
1373
|
+
unless params['JobDateTime'].nil?
|
1374
|
+
@JobDateTime = JobDateTime.new
|
1375
|
+
@JobDateTime.deserialize(params['JobDateTime'])
|
1376
|
+
end
|
1377
|
+
@CronType = params['CronType']
|
1378
|
+
@Lang = params['Lang']
|
1379
|
+
end
|
1380
|
+
end
|
1381
|
+
|
1308
1382
|
# 攻击日志详情
|
1309
1383
|
class AttackLogInfo < TencentCloud::Common::AbstractModel
|
1310
1384
|
# @param Content: 攻击日志的详情内容
|
@@ -2253,6 +2327,64 @@ module TencentCloud
|
|
2253
2327
|
end
|
2254
2328
|
end
|
2255
2329
|
|
2330
|
+
# CreateAreaBanRule请求参数结构体
|
2331
|
+
class CreateAreaBanRuleRequest < TencentCloud::Common::AbstractModel
|
2332
|
+
# @param Domain: 需要修改的域名
|
2333
|
+
# @type Domain: String
|
2334
|
+
# @param Areas: 需要新增的封禁地域
|
2335
|
+
# @type Areas: Array
|
2336
|
+
# @param JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
|
2337
|
+
# @type JobType: String
|
2338
|
+
# @param JobDateTime: 定时任务配置
|
2339
|
+
# @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
|
2340
|
+
# @param Lang: 地域信息的语言,支持cn、en,默认为中文cn
|
2341
|
+
# @type Lang: String
|
2342
|
+
|
2343
|
+
attr_accessor :Domain, :Areas, :JobType, :JobDateTime, :Lang
|
2344
|
+
|
2345
|
+
def initialize(domain=nil, areas=nil, jobtype=nil, jobdatetime=nil, lang=nil)
|
2346
|
+
@Domain = domain
|
2347
|
+
@Areas = areas
|
2348
|
+
@JobType = jobtype
|
2349
|
+
@JobDateTime = jobdatetime
|
2350
|
+
@Lang = lang
|
2351
|
+
end
|
2352
|
+
|
2353
|
+
def deserialize(params)
|
2354
|
+
@Domain = params['Domain']
|
2355
|
+
unless params['Areas'].nil?
|
2356
|
+
@Areas = []
|
2357
|
+
params['Areas'].each do |i|
|
2358
|
+
area_tmp = Area.new
|
2359
|
+
area_tmp.deserialize(i)
|
2360
|
+
@Areas << area_tmp
|
2361
|
+
end
|
2362
|
+
end
|
2363
|
+
@JobType = params['JobType']
|
2364
|
+
unless params['JobDateTime'].nil?
|
2365
|
+
@JobDateTime = JobDateTime.new
|
2366
|
+
@JobDateTime.deserialize(params['JobDateTime'])
|
2367
|
+
end
|
2368
|
+
@Lang = params['Lang']
|
2369
|
+
end
|
2370
|
+
end
|
2371
|
+
|
2372
|
+
# CreateAreaBanRule返回参数结构体
|
2373
|
+
class CreateAreaBanRuleResponse < TencentCloud::Common::AbstractModel
|
2374
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2375
|
+
# @type RequestId: String
|
2376
|
+
|
2377
|
+
attr_accessor :RequestId
|
2378
|
+
|
2379
|
+
def initialize(requestid=nil)
|
2380
|
+
@RequestId = requestid
|
2381
|
+
end
|
2382
|
+
|
2383
|
+
def deserialize(params)
|
2384
|
+
@RequestId = params['RequestId']
|
2385
|
+
end
|
2386
|
+
end
|
2387
|
+
|
2256
2388
|
# 计费下单接口出入参Goods
|
2257
2389
|
class CreateDealsGoods < TencentCloud::Common::AbstractModel
|
2258
2390
|
# @param GoodsNum: 商品数量
|
@@ -2519,8 +2651,8 @@ module TencentCloud
|
|
2519
2651
|
|
2520
2652
|
attr_accessor :Domain, :IpList, :ActionType, :ValidTS, :InstanceId, :Edition, :SourceType, :Note, :JobType, :JobDateTime
|
2521
2653
|
extend Gem::Deprecate
|
2522
|
-
deprecate :ValidTS, :none, 2024,
|
2523
|
-
deprecate :ValidTS=, :none, 2024,
|
2654
|
+
deprecate :ValidTS, :none, 2024, 12
|
2655
|
+
deprecate :ValidTS=, :none, 2024, 12
|
2524
2656
|
|
2525
2657
|
def initialize(domain=nil, iplist=nil, actiontype=nil, validts=nil, instanceid=nil, edition=nil, sourcetype=nil, note=nil, jobtype=nil, jobdatetime=nil)
|
2526
2658
|
@Domain = domain
|
@@ -3309,8 +3441,8 @@ module TencentCloud
|
|
3309
3441
|
|
3310
3442
|
attr_accessor :From, :To, :Query, :FieldName, :TopicId, :Sort, :Count
|
3311
3443
|
extend Gem::Deprecate
|
3312
|
-
deprecate :TopicId, :none, 2024,
|
3313
|
-
deprecate :TopicId=, :none, 2024,
|
3444
|
+
deprecate :TopicId, :none, 2024, 12
|
3445
|
+
deprecate :TopicId=, :none, 2024, 12
|
3314
3446
|
|
3315
3447
|
def initialize(from=nil, to=nil, query=nil, fieldname=nil, topicid=nil, sort=nil, count=nil)
|
3316
3448
|
@From = from
|
@@ -3486,7 +3618,7 @@ module TencentCloud
|
|
3486
3618
|
# @type Filters: Array
|
3487
3619
|
# @param Order: asc或者desc
|
3488
3620
|
# @type Order: String
|
3489
|
-
# @param By: 目前支持根据
|
3621
|
+
# @param By: 目前支持根据create_time、modify_time、id排序
|
3490
3622
|
# @type By: String
|
3491
3623
|
|
3492
3624
|
attr_accessor :Domain, :Offset, :Limit, :Filters, :Order, :By
|
@@ -3968,6 +4100,45 @@ module TencentCloud
|
|
3968
4100
|
end
|
3969
4101
|
end
|
3970
4102
|
|
4103
|
+
# DescribeAreaBanRule请求参数结构体
|
4104
|
+
class DescribeAreaBanRuleRequest < TencentCloud::Common::AbstractModel
|
4105
|
+
# @param Domain: 需要查询的域名
|
4106
|
+
# @type Domain: String
|
4107
|
+
|
4108
|
+
attr_accessor :Domain
|
4109
|
+
|
4110
|
+
def initialize(domain=nil)
|
4111
|
+
@Domain = domain
|
4112
|
+
end
|
4113
|
+
|
4114
|
+
def deserialize(params)
|
4115
|
+
@Domain = params['Domain']
|
4116
|
+
end
|
4117
|
+
end
|
4118
|
+
|
4119
|
+
# DescribeAreaBanRule返回参数结构体
|
4120
|
+
class DescribeAreaBanRuleResponse < TencentCloud::Common::AbstractModel
|
4121
|
+
# @param Data: 规则内容
|
4122
|
+
# @type Data: :class:`Tencentcloud::Waf.v20180125.models.AreaBanRule`
|
4123
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4124
|
+
# @type RequestId: String
|
4125
|
+
|
4126
|
+
attr_accessor :Data, :RequestId
|
4127
|
+
|
4128
|
+
def initialize(data=nil, requestid=nil)
|
4129
|
+
@Data = data
|
4130
|
+
@RequestId = requestid
|
4131
|
+
end
|
4132
|
+
|
4133
|
+
def deserialize(params)
|
4134
|
+
unless params['Data'].nil?
|
4135
|
+
@Data = AreaBanRule.new
|
4136
|
+
@Data.deserialize(params['Data'])
|
4137
|
+
end
|
4138
|
+
@RequestId = params['RequestId']
|
4139
|
+
end
|
4140
|
+
end
|
4141
|
+
|
3971
4142
|
# DescribeAreaBanSupportAreas请求参数结构体
|
3972
4143
|
class DescribeAreaBanSupportAreasRequest < TencentCloud::Common::AbstractModel
|
3973
4144
|
|
@@ -5724,10 +5895,10 @@ module TencentCloud
|
|
5724
5895
|
|
5725
5896
|
attr_accessor :Domain, :Count, :ActionType, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :OffSet, :Limit, :Source, :Sort, :Ip, :ValidStatus, :ValidTimeStampMin, :ValidTimeStampMax, :RuleId, :TimerType
|
5726
5897
|
extend Gem::Deprecate
|
5727
|
-
deprecate :VtsMin, :none, 2024,
|
5728
|
-
deprecate :VtsMin=, :none, 2024,
|
5729
|
-
deprecate :VtsMax, :none, 2024,
|
5730
|
-
deprecate :VtsMax=, :none, 2024,
|
5898
|
+
deprecate :VtsMin, :none, 2024, 12
|
5899
|
+
deprecate :VtsMin=, :none, 2024, 12
|
5900
|
+
deprecate :VtsMax, :none, 2024, 12
|
5901
|
+
deprecate :VtsMax=, :none, 2024, 12
|
5731
5902
|
|
5732
5903
|
def initialize(domain=nil, count=nil, actiontype=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, offset=nil, limit=nil, source=nil, sort=nil, ip=nil, validstatus=nil, validtimestampmin=nil, validtimestampmax=nil, ruleid=nil, timertype=nil)
|
5733
5904
|
@Domain = domain
|
@@ -5830,10 +6001,10 @@ module TencentCloud
|
|
5830
6001
|
|
5831
6002
|
attr_accessor :Domain, :Count, :Category, :VtsMin, :VtsMax, :CtsMin, :CtsMax, :Skip, :Limit, :Name, :Sort, :Ip, :ValidTimeStampMin, :ValidTimeStampMax
|
5832
6003
|
extend Gem::Deprecate
|
5833
|
-
deprecate :VtsMin, :none, 2024,
|
5834
|
-
deprecate :VtsMin=, :none, 2024,
|
5835
|
-
deprecate :VtsMax, :none, 2024,
|
5836
|
-
deprecate :VtsMax=, :none, 2024,
|
6004
|
+
deprecate :VtsMin, :none, 2024, 12
|
6005
|
+
deprecate :VtsMin=, :none, 2024, 12
|
6006
|
+
deprecate :VtsMax, :none, 2024, 12
|
6007
|
+
deprecate :VtsMax=, :none, 2024, 12
|
5837
6008
|
|
5838
6009
|
def initialize(domain=nil, count=nil, category=nil, vtsmin=nil, vtsmax=nil, ctsmin=nil, ctsmax=nil, skip=nil, limit=nil, name=nil, sort=nil, ip=nil, validtimestampmin=nil, validtimestampmax=nil)
|
5839
6010
|
@Domain = domain
|
@@ -10070,6 +10241,64 @@ module TencentCloud
|
|
10070
10241
|
end
|
10071
10242
|
end
|
10072
10243
|
|
10244
|
+
# ModifyAreaBanRule请求参数结构体
|
10245
|
+
class ModifyAreaBanRuleRequest < TencentCloud::Common::AbstractModel
|
10246
|
+
# @param Domain: 需要修改的域名
|
10247
|
+
# @type Domain: String
|
10248
|
+
# @param Areas: 需要新增的封禁地域
|
10249
|
+
# @type Areas: Array
|
10250
|
+
# @param JobType: 规则执行的方式,TimedJob为定时执行,CronJob为周期执行
|
10251
|
+
# @type JobType: String
|
10252
|
+
# @param JobDateTime: 定时任务配置
|
10253
|
+
# @type JobDateTime: :class:`Tencentcloud::Waf.v20180125.models.JobDateTime`
|
10254
|
+
# @param Lang: 地域信息的语言,支持cn、en,默认为中文cn
|
10255
|
+
# @type Lang: String
|
10256
|
+
|
10257
|
+
attr_accessor :Domain, :Areas, :JobType, :JobDateTime, :Lang
|
10258
|
+
|
10259
|
+
def initialize(domain=nil, areas=nil, jobtype=nil, jobdatetime=nil, lang=nil)
|
10260
|
+
@Domain = domain
|
10261
|
+
@Areas = areas
|
10262
|
+
@JobType = jobtype
|
10263
|
+
@JobDateTime = jobdatetime
|
10264
|
+
@Lang = lang
|
10265
|
+
end
|
10266
|
+
|
10267
|
+
def deserialize(params)
|
10268
|
+
@Domain = params['Domain']
|
10269
|
+
unless params['Areas'].nil?
|
10270
|
+
@Areas = []
|
10271
|
+
params['Areas'].each do |i|
|
10272
|
+
area_tmp = Area.new
|
10273
|
+
area_tmp.deserialize(i)
|
10274
|
+
@Areas << area_tmp
|
10275
|
+
end
|
10276
|
+
end
|
10277
|
+
@JobType = params['JobType']
|
10278
|
+
unless params['JobDateTime'].nil?
|
10279
|
+
@JobDateTime = JobDateTime.new
|
10280
|
+
@JobDateTime.deserialize(params['JobDateTime'])
|
10281
|
+
end
|
10282
|
+
@Lang = params['Lang']
|
10283
|
+
end
|
10284
|
+
end
|
10285
|
+
|
10286
|
+
# ModifyAreaBanRule返回参数结构体
|
10287
|
+
class ModifyAreaBanRuleResponse < TencentCloud::Common::AbstractModel
|
10288
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
10289
|
+
# @type RequestId: String
|
10290
|
+
|
10291
|
+
attr_accessor :RequestId
|
10292
|
+
|
10293
|
+
def initialize(requestid=nil)
|
10294
|
+
@RequestId = requestid
|
10295
|
+
end
|
10296
|
+
|
10297
|
+
def deserialize(params)
|
10298
|
+
@RequestId = params['RequestId']
|
10299
|
+
end
|
10300
|
+
end
|
10301
|
+
|
10073
10302
|
# ModifyAreaBanStatus请求参数结构体
|
10074
10303
|
class ModifyAreaBanStatusRequest < TencentCloud::Common::AbstractModel
|
10075
10304
|
# @param Domain: 需要修改的域名
|
@@ -11171,8 +11400,8 @@ module TencentCloud
|
|
11171
11400
|
|
11172
11401
|
attr_accessor :Domain, :IpList, :ActionType, :RuleId, :ValidTS, :InstanceId, :Edition, :SourceType, :Note, :JobType, :JobDateTime
|
11173
11402
|
extend Gem::Deprecate
|
11174
|
-
deprecate :ValidTS, :none, 2024,
|
11175
|
-
deprecate :ValidTS=, :none, 2024,
|
11403
|
+
deprecate :ValidTS, :none, 2024, 12
|
11404
|
+
deprecate :ValidTS=, :none, 2024, 12
|
11176
11405
|
|
11177
11406
|
def initialize(domain=nil, iplist=nil, actiontype=nil, ruleid=nil, validts=nil, instanceid=nil, edition=nil, sourcetype=nil, note=nil, jobtype=nil, jobdatetime=nil)
|
11178
11407
|
@Domain = domain
|
@@ -11338,7 +11567,7 @@ module TencentCloud
|
|
11338
11567
|
class ModifyProtectionStatusRequest < TencentCloud::Common::AbstractModel
|
11339
11568
|
# @param Domain: 域名
|
11340
11569
|
# @type Domain: String
|
11341
|
-
# @param Status:
|
11570
|
+
# @param Status: 1:开启WAF开关,0:关闭WAF开关
|
11342
11571
|
# @type Status: Integer
|
11343
11572
|
# @param Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
|
11344
11573
|
# @type Edition: String
|
@@ -12556,10 +12785,10 @@ module TencentCloud
|
|
12556
12785
|
|
12557
12786
|
attr_accessor :Context, :ListOver, :Analysis, :ColNames, :Results, :AnalysisResults, :RequestId
|
12558
12787
|
extend Gem::Deprecate
|
12559
|
-
deprecate :ColNames, :none, 2024,
|
12560
|
-
deprecate :ColNames=, :none, 2024,
|
12561
|
-
deprecate :AnalysisResults, :none, 2024,
|
12562
|
-
deprecate :AnalysisResults=, :none, 2024,
|
12788
|
+
deprecate :ColNames, :none, 2024, 12
|
12789
|
+
deprecate :ColNames=, :none, 2024, 12
|
12790
|
+
deprecate :AnalysisResults, :none, 2024, 12
|
12791
|
+
deprecate :AnalysisResults=, :none, 2024, 12
|
12563
12792
|
|
12564
12793
|
def initialize(context=nil, listover=nil, analysis=nil, colnames=nil, results=nil, analysisresults=nil, requestid=nil)
|
12565
12794
|
@Context = context
|
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.971
|
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-12-
|
11
|
+
date: 2024-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|