tencentcloud-sdk-waf 3.0.1169 → 3.0.1174
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 +240 -0
- data/lib/v20180125/models.rb +1565 -28
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52ac58b4056377e41bc7a18a5173a0f96d2a833e
|
|
4
|
+
data.tar.gz: 49bdd55d43699a05c6efcba609b014c08e05c100
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f88e01b99aae3a6541f07ffb425e65696500a9a711fbe49ef49605191400a6004e81c2733f343b8034641440360117a83cfe560bd66675149ad7fb0d966d9f1d
|
|
7
|
+
data.tar.gz: 34b7b60fcaeb420e363288daf17fdd22b6417de524198650596476312000c3ad558e869814e793bddcbbe367fabbe31845fd3b6391c76b776332a895f53bbd95
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1174
|
data/lib/v20180125/client.rb
CHANGED
|
@@ -125,6 +125,30 @@ module TencentCloud
|
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
+
# 添加一键bypass能力支持,直接添加APPID
|
|
129
|
+
|
|
130
|
+
# @param request: Request instance for AddBypassAllRule.
|
|
131
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::AddBypassAllRuleRequest`
|
|
132
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::AddBypassAllRuleResponse`
|
|
133
|
+
def AddBypassAllRule(request)
|
|
134
|
+
body = send_request('AddBypassAllRule', request.serialize)
|
|
135
|
+
response = JSON.parse(body)
|
|
136
|
+
if response['Response'].key?('Error') == false
|
|
137
|
+
model = AddBypassAllRuleResponse.new
|
|
138
|
+
model.deserialize(response['Response'])
|
|
139
|
+
model
|
|
140
|
+
else
|
|
141
|
+
code = response['Response']['Error']['Code']
|
|
142
|
+
message = response['Response']['Error']['Message']
|
|
143
|
+
reqid = response['Response']['RequestId']
|
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
145
|
+
end
|
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
147
|
+
raise e
|
|
148
|
+
rescue StandardError => e
|
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
150
|
+
end
|
|
151
|
+
|
|
128
152
|
# 增加访问控制(自定义策略)
|
|
129
153
|
|
|
130
154
|
# @param request: Request instance for AddCustomRule.
|
|
@@ -485,6 +509,30 @@ module TencentCloud
|
|
|
485
509
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
486
510
|
end
|
|
487
511
|
|
|
512
|
+
# 创建限流规则
|
|
513
|
+
|
|
514
|
+
# @param request: Request instance for CreateRateLimitV2.
|
|
515
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::CreateRateLimitV2Request`
|
|
516
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::CreateRateLimitV2Response`
|
|
517
|
+
def CreateRateLimitV2(request)
|
|
518
|
+
body = send_request('CreateRateLimitV2', request.serialize)
|
|
519
|
+
response = JSON.parse(body)
|
|
520
|
+
if response['Response'].key?('Error') == false
|
|
521
|
+
model = CreateRateLimitV2Response.new
|
|
522
|
+
model.deserialize(response['Response'])
|
|
523
|
+
model
|
|
524
|
+
else
|
|
525
|
+
code = response['Response']['Error']['Code']
|
|
526
|
+
message = response['Response']['Error']['Message']
|
|
527
|
+
reqid = response['Response']['RequestId']
|
|
528
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
529
|
+
end
|
|
530
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
531
|
+
raise e
|
|
532
|
+
rescue StandardError => e
|
|
533
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
534
|
+
end
|
|
535
|
+
|
|
488
536
|
# 本接口用于删除访问日志导出
|
|
489
537
|
|
|
490
538
|
# @param request: Request instance for DeleteAccessExport.
|
|
@@ -893,6 +941,30 @@ module TencentCloud
|
|
|
893
941
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
894
942
|
end
|
|
895
943
|
|
|
944
|
+
# 删除自研版限流规则
|
|
945
|
+
|
|
946
|
+
# @param request: Request instance for DeleteRateLimitsV2.
|
|
947
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DeleteRateLimitsV2Request`
|
|
948
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DeleteRateLimitsV2Response`
|
|
949
|
+
def DeleteRateLimitsV2(request)
|
|
950
|
+
body = send_request('DeleteRateLimitsV2', request.serialize)
|
|
951
|
+
response = JSON.parse(body)
|
|
952
|
+
if response['Response'].key?('Error') == false
|
|
953
|
+
model = DeleteRateLimitsV2Response.new
|
|
954
|
+
model.deserialize(response['Response'])
|
|
955
|
+
model
|
|
956
|
+
else
|
|
957
|
+
code = response['Response']['Error']['Code']
|
|
958
|
+
message = response['Response']['Error']['Message']
|
|
959
|
+
reqid = response['Response']['RequestId']
|
|
960
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
961
|
+
end
|
|
962
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
963
|
+
raise e
|
|
964
|
+
rescue StandardError => e
|
|
965
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
966
|
+
end
|
|
967
|
+
|
|
896
968
|
# 删除CC攻击的session设置
|
|
897
969
|
|
|
898
970
|
# @param request: Request instance for DeleteSession.
|
|
@@ -2285,6 +2357,30 @@ module TencentCloud
|
|
|
2285
2357
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2286
2358
|
end
|
|
2287
2359
|
|
|
2360
|
+
# 查询限流规则列表接口
|
|
2361
|
+
|
|
2362
|
+
# @param request: Request instance for DescribeRateLimitsV2.
|
|
2363
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeRateLimitsV2Request`
|
|
2364
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeRateLimitsV2Response`
|
|
2365
|
+
def DescribeRateLimitsV2(request)
|
|
2366
|
+
body = send_request('DescribeRateLimitsV2', request.serialize)
|
|
2367
|
+
response = JSON.parse(body)
|
|
2368
|
+
if response['Response'].key?('Error') == false
|
|
2369
|
+
model = DescribeRateLimitsV2Response.new
|
|
2370
|
+
model.deserialize(response['Response'])
|
|
2371
|
+
model
|
|
2372
|
+
else
|
|
2373
|
+
code = response['Response']['Error']['Code']
|
|
2374
|
+
message = response['Response']['Error']['Message']
|
|
2375
|
+
reqid = response['Response']['RequestId']
|
|
2376
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
2377
|
+
end
|
|
2378
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
2379
|
+
raise e
|
|
2380
|
+
rescue StandardError => e
|
|
2381
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2382
|
+
end
|
|
2383
|
+
|
|
2288
2384
|
# 获取各个模块具体的规格限制
|
|
2289
2385
|
|
|
2290
2386
|
# @param request: Request instance for DescribeRuleLimit.
|
|
@@ -2791,6 +2887,30 @@ module TencentCloud
|
|
|
2791
2887
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2792
2888
|
end
|
|
2793
2889
|
|
|
2890
|
+
# 批量更改自研版限流规则开关
|
|
2891
|
+
|
|
2892
|
+
# @param request: Request instance for EnableRateLimitsV2.
|
|
2893
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::EnableRateLimitsV2Request`
|
|
2894
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::EnableRateLimitsV2Response`
|
|
2895
|
+
def EnableRateLimitsV2(request)
|
|
2896
|
+
body = send_request('EnableRateLimitsV2', request.serialize)
|
|
2897
|
+
response = JSON.parse(body)
|
|
2898
|
+
if response['Response'].key?('Error') == false
|
|
2899
|
+
model = EnableRateLimitsV2Response.new
|
|
2900
|
+
model.deserialize(response['Response'])
|
|
2901
|
+
model
|
|
2902
|
+
else
|
|
2903
|
+
code = response['Response']['Error']['Code']
|
|
2904
|
+
message = response['Response']['Error']['Message']
|
|
2905
|
+
reqid = response['Response']['RequestId']
|
|
2906
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
2907
|
+
end
|
|
2908
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
2909
|
+
raise e
|
|
2910
|
+
rescue StandardError => e
|
|
2911
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2912
|
+
end
|
|
2913
|
+
|
|
2794
2914
|
# 刷新防篡改url
|
|
2795
2915
|
|
|
2796
2916
|
# @param request: Request instance for FreshAntiFakeUrl.
|
|
@@ -3103,6 +3223,30 @@ module TencentCloud
|
|
|
3103
3223
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3104
3224
|
end
|
|
3105
3225
|
|
|
3226
|
+
# 修改api安全敏感检测规则
|
|
3227
|
+
|
|
3228
|
+
# @param request: Request instance for ModifyApiSecSensitiveRule.
|
|
3229
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyApiSecSensitiveRuleRequest`
|
|
3230
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyApiSecSensitiveRuleResponse`
|
|
3231
|
+
def ModifyApiSecSensitiveRule(request)
|
|
3232
|
+
body = send_request('ModifyApiSecSensitiveRule', request.serialize)
|
|
3233
|
+
response = JSON.parse(body)
|
|
3234
|
+
if response['Response'].key?('Error') == false
|
|
3235
|
+
model = ModifyApiSecSensitiveRuleResponse.new
|
|
3236
|
+
model.deserialize(response['Response'])
|
|
3237
|
+
model
|
|
3238
|
+
else
|
|
3239
|
+
code = response['Response']['Error']['Code']
|
|
3240
|
+
message = response['Response']['Error']['Message']
|
|
3241
|
+
reqid = response['Response']['RequestId']
|
|
3242
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
3243
|
+
end
|
|
3244
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
3245
|
+
raise e
|
|
3246
|
+
rescue StandardError => e
|
|
3247
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3248
|
+
end
|
|
3249
|
+
|
|
3106
3250
|
# 修改地域封禁中的地域信息
|
|
3107
3251
|
|
|
3108
3252
|
# @param request: Request instance for ModifyAreaBanAreas.
|
|
@@ -3223,6 +3367,30 @@ module TencentCloud
|
|
|
3223
3367
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3224
3368
|
end
|
|
3225
3369
|
|
|
3370
|
+
# 修改Bot-ID规则配置1
|
|
3371
|
+
|
|
3372
|
+
# @param request: Request instance for ModifyBotIdRule.
|
|
3373
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyBotIdRuleRequest`
|
|
3374
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyBotIdRuleResponse`
|
|
3375
|
+
def ModifyBotIdRule(request)
|
|
3376
|
+
body = send_request('ModifyBotIdRule', request.serialize)
|
|
3377
|
+
response = JSON.parse(body)
|
|
3378
|
+
if response['Response'].key?('Error') == false
|
|
3379
|
+
model = ModifyBotIdRuleResponse.new
|
|
3380
|
+
model.deserialize(response['Response'])
|
|
3381
|
+
model
|
|
3382
|
+
else
|
|
3383
|
+
code = response['Response']['Error']['Code']
|
|
3384
|
+
message = response['Response']['Error']['Message']
|
|
3385
|
+
reqid = response['Response']['RequestId']
|
|
3386
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
3387
|
+
end
|
|
3388
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
3389
|
+
raise e
|
|
3390
|
+
rescue StandardError => e
|
|
3391
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3392
|
+
end
|
|
3393
|
+
|
|
3226
3394
|
# bot子场景开关
|
|
3227
3395
|
|
|
3228
3396
|
# @param request: Request instance for ModifyBotSceneStatus.
|
|
@@ -4208,6 +4376,30 @@ module TencentCloud
|
|
|
4208
4376
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4209
4377
|
end
|
|
4210
4378
|
|
|
4379
|
+
# 查询该用户是否被加入了全局的bypass列表
|
|
4380
|
+
|
|
4381
|
+
# @param request: Request instance for QueryBypassAllStatus.
|
|
4382
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::QueryBypassAllStatusRequest`
|
|
4383
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::QueryBypassAllStatusResponse`
|
|
4384
|
+
def QueryBypassAllStatus(request)
|
|
4385
|
+
body = send_request('QueryBypassAllStatus', request.serialize)
|
|
4386
|
+
response = JSON.parse(body)
|
|
4387
|
+
if response['Response'].key?('Error') == false
|
|
4388
|
+
model = QueryBypassAllStatusResponse.new
|
|
4389
|
+
model.deserialize(response['Response'])
|
|
4390
|
+
model
|
|
4391
|
+
else
|
|
4392
|
+
code = response['Response']['Error']['Code']
|
|
4393
|
+
message = response['Response']['Error']['Message']
|
|
4394
|
+
reqid = response['Response']['RequestId']
|
|
4395
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
4396
|
+
end
|
|
4397
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
4398
|
+
raise e
|
|
4399
|
+
rescue StandardError => e
|
|
4400
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4401
|
+
end
|
|
4402
|
+
|
|
4211
4403
|
# 刷新接入检查的结果,后台会生成接入检查任务
|
|
4212
4404
|
|
|
4213
4405
|
# @param request: Request instance for RefreshAccessCheckResult.
|
|
@@ -4232,6 +4424,30 @@ module TencentCloud
|
|
|
4232
4424
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4233
4425
|
end
|
|
4234
4426
|
|
|
4427
|
+
# 删除一键bypass规则
|
|
4428
|
+
|
|
4429
|
+
# @param request: Request instance for RemoveBypassAllRule.
|
|
4430
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::RemoveBypassAllRuleRequest`
|
|
4431
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::RemoveBypassAllRuleResponse`
|
|
4432
|
+
def RemoveBypassAllRule(request)
|
|
4433
|
+
body = send_request('RemoveBypassAllRule', request.serialize)
|
|
4434
|
+
response = JSON.parse(body)
|
|
4435
|
+
if response['Response'].key?('Error') == false
|
|
4436
|
+
model = RemoveBypassAllRuleResponse.new
|
|
4437
|
+
model.deserialize(response['Response'])
|
|
4438
|
+
model
|
|
4439
|
+
else
|
|
4440
|
+
code = response['Response']['Error']['Code']
|
|
4441
|
+
message = response['Response']['Error']['Message']
|
|
4442
|
+
reqid = response['Response']['RequestId']
|
|
4443
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
4444
|
+
end
|
|
4445
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
4446
|
+
raise e
|
|
4447
|
+
rescue StandardError => e
|
|
4448
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4449
|
+
end
|
|
4450
|
+
|
|
4235
4451
|
# 本接口用于搜索WAF访问日志
|
|
4236
4452
|
|
|
4237
4453
|
# @param request: Request instance for SearchAccessLog.
|
|
@@ -4379,6 +4595,30 @@ module TencentCloud
|
|
|
4379
4595
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4380
4596
|
end
|
|
4381
4597
|
|
|
4598
|
+
# 更新自研版限流规则
|
|
4599
|
+
|
|
4600
|
+
# @param request: Request instance for UpdateRateLimitV2.
|
|
4601
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::UpdateRateLimitV2Request`
|
|
4602
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::UpdateRateLimitV2Response`
|
|
4603
|
+
def UpdateRateLimitV2(request)
|
|
4604
|
+
body = send_request('UpdateRateLimitV2', request.serialize)
|
|
4605
|
+
response = JSON.parse(body)
|
|
4606
|
+
if response['Response'].key?('Error') == false
|
|
4607
|
+
model = UpdateRateLimitV2Response.new
|
|
4608
|
+
model.deserialize(response['Response'])
|
|
4609
|
+
model
|
|
4610
|
+
else
|
|
4611
|
+
code = response['Response']['Error']['Code']
|
|
4612
|
+
message = response['Response']['Error']['Message']
|
|
4613
|
+
reqid = response['Response']['RequestId']
|
|
4614
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
4615
|
+
end
|
|
4616
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
4617
|
+
raise e
|
|
4618
|
+
rescue StandardError => e
|
|
4619
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4620
|
+
end
|
|
4621
|
+
|
|
4382
4622
|
# 编辑SAAS型接入的紧急CC防护状态
|
|
4383
4623
|
|
|
4384
4624
|
# @param request: Request instance for UpsertCCAutoStatus.
|