tencentcloud-sdk-waf 3.0.1166 → 3.0.1172
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 +168 -0
- data/lib/v20180125/models.rb +1679 -62
- 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: 1420bd68bc064cd9b84d809af3b3e511a7a0a7f0
|
|
4
|
+
data.tar.gz: e8817ea7d42b0f1d433ee75a6ccf9c36a8ade451
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6a72a0dc672743e5665a37a8076011228a74bc8f5be8b5e58db630e3a890994b8ea6f3ff3dd4138dd172b474942df2fbe72ce9c3d02781f7d14ce53143fedd3
|
|
7
|
+
data.tar.gz: 6fadf971c751bff378acc5cf5c20ad2a27e501435eefb56ee7a023546df0e175c9cc4f3295467b833ab1e183186f97463ac609bd55d378d9fec4639256a6e3fa
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1172
|
data/lib/v20180125/client.rb
CHANGED
|
@@ -485,6 +485,30 @@ module TencentCloud
|
|
|
485
485
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
486
486
|
end
|
|
487
487
|
|
|
488
|
+
# 创建限流规则
|
|
489
|
+
|
|
490
|
+
# @param request: Request instance for CreateRateLimitV2.
|
|
491
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::CreateRateLimitV2Request`
|
|
492
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::CreateRateLimitV2Response`
|
|
493
|
+
def CreateRateLimitV2(request)
|
|
494
|
+
body = send_request('CreateRateLimitV2', request.serialize)
|
|
495
|
+
response = JSON.parse(body)
|
|
496
|
+
if response['Response'].key?('Error') == false
|
|
497
|
+
model = CreateRateLimitV2Response.new
|
|
498
|
+
model.deserialize(response['Response'])
|
|
499
|
+
model
|
|
500
|
+
else
|
|
501
|
+
code = response['Response']['Error']['Code']
|
|
502
|
+
message = response['Response']['Error']['Message']
|
|
503
|
+
reqid = response['Response']['RequestId']
|
|
504
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
505
|
+
end
|
|
506
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
507
|
+
raise e
|
|
508
|
+
rescue StandardError => e
|
|
509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
510
|
+
end
|
|
511
|
+
|
|
488
512
|
# 本接口用于删除访问日志导出
|
|
489
513
|
|
|
490
514
|
# @param request: Request instance for DeleteAccessExport.
|
|
@@ -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 DeleteRateLimitsV2.
|
|
923
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DeleteRateLimitsV2Request`
|
|
924
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DeleteRateLimitsV2Response`
|
|
925
|
+
def DeleteRateLimitsV2(request)
|
|
926
|
+
body = send_request('DeleteRateLimitsV2', request.serialize)
|
|
927
|
+
response = JSON.parse(body)
|
|
928
|
+
if response['Response'].key?('Error') == false
|
|
929
|
+
model = DeleteRateLimitsV2Response.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
|
# 删除CC攻击的session设置
|
|
897
945
|
|
|
898
946
|
# @param request: Request instance for DeleteSession.
|
|
@@ -2285,6 +2333,30 @@ module TencentCloud
|
|
|
2285
2333
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2286
2334
|
end
|
|
2287
2335
|
|
|
2336
|
+
# 查询限流规则列表接口
|
|
2337
|
+
|
|
2338
|
+
# @param request: Request instance for DescribeRateLimitsV2.
|
|
2339
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeRateLimitsV2Request`
|
|
2340
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeRateLimitsV2Response`
|
|
2341
|
+
def DescribeRateLimitsV2(request)
|
|
2342
|
+
body = send_request('DescribeRateLimitsV2', request.serialize)
|
|
2343
|
+
response = JSON.parse(body)
|
|
2344
|
+
if response['Response'].key?('Error') == false
|
|
2345
|
+
model = DescribeRateLimitsV2Response.new
|
|
2346
|
+
model.deserialize(response['Response'])
|
|
2347
|
+
model
|
|
2348
|
+
else
|
|
2349
|
+
code = response['Response']['Error']['Code']
|
|
2350
|
+
message = response['Response']['Error']['Message']
|
|
2351
|
+
reqid = response['Response']['RequestId']
|
|
2352
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
2353
|
+
end
|
|
2354
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
2355
|
+
raise e
|
|
2356
|
+
rescue StandardError => e
|
|
2357
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2358
|
+
end
|
|
2359
|
+
|
|
2288
2360
|
# 获取各个模块具体的规格限制
|
|
2289
2361
|
|
|
2290
2362
|
# @param request: Request instance for DescribeRuleLimit.
|
|
@@ -2791,6 +2863,30 @@ module TencentCloud
|
|
|
2791
2863
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2792
2864
|
end
|
|
2793
2865
|
|
|
2866
|
+
# 批量更改自研版限流规则开关
|
|
2867
|
+
|
|
2868
|
+
# @param request: Request instance for EnableRateLimitsV2.
|
|
2869
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::EnableRateLimitsV2Request`
|
|
2870
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::EnableRateLimitsV2Response`
|
|
2871
|
+
def EnableRateLimitsV2(request)
|
|
2872
|
+
body = send_request('EnableRateLimitsV2', request.serialize)
|
|
2873
|
+
response = JSON.parse(body)
|
|
2874
|
+
if response['Response'].key?('Error') == false
|
|
2875
|
+
model = EnableRateLimitsV2Response.new
|
|
2876
|
+
model.deserialize(response['Response'])
|
|
2877
|
+
model
|
|
2878
|
+
else
|
|
2879
|
+
code = response['Response']['Error']['Code']
|
|
2880
|
+
message = response['Response']['Error']['Message']
|
|
2881
|
+
reqid = response['Response']['RequestId']
|
|
2882
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
2883
|
+
end
|
|
2884
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
2885
|
+
raise e
|
|
2886
|
+
rescue StandardError => e
|
|
2887
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2888
|
+
end
|
|
2889
|
+
|
|
2794
2890
|
# 刷新防篡改url
|
|
2795
2891
|
|
|
2796
2892
|
# @param request: Request instance for FreshAntiFakeUrl.
|
|
@@ -3103,6 +3199,30 @@ module TencentCloud
|
|
|
3103
3199
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3104
3200
|
end
|
|
3105
3201
|
|
|
3202
|
+
# 修改api安全敏感检测规则
|
|
3203
|
+
|
|
3204
|
+
# @param request: Request instance for ModifyApiSecSensitiveRule.
|
|
3205
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyApiSecSensitiveRuleRequest`
|
|
3206
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyApiSecSensitiveRuleResponse`
|
|
3207
|
+
def ModifyApiSecSensitiveRule(request)
|
|
3208
|
+
body = send_request('ModifyApiSecSensitiveRule', request.serialize)
|
|
3209
|
+
response = JSON.parse(body)
|
|
3210
|
+
if response['Response'].key?('Error') == false
|
|
3211
|
+
model = ModifyApiSecSensitiveRuleResponse.new
|
|
3212
|
+
model.deserialize(response['Response'])
|
|
3213
|
+
model
|
|
3214
|
+
else
|
|
3215
|
+
code = response['Response']['Error']['Code']
|
|
3216
|
+
message = response['Response']['Error']['Message']
|
|
3217
|
+
reqid = response['Response']['RequestId']
|
|
3218
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
3219
|
+
end
|
|
3220
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
3221
|
+
raise e
|
|
3222
|
+
rescue StandardError => e
|
|
3223
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3224
|
+
end
|
|
3225
|
+
|
|
3106
3226
|
# 修改地域封禁中的地域信息
|
|
3107
3227
|
|
|
3108
3228
|
# @param request: Request instance for ModifyAreaBanAreas.
|
|
@@ -3223,6 +3343,30 @@ module TencentCloud
|
|
|
3223
3343
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3224
3344
|
end
|
|
3225
3345
|
|
|
3346
|
+
# 修改Bot-ID规则配置1
|
|
3347
|
+
|
|
3348
|
+
# @param request: Request instance for ModifyBotIdRule.
|
|
3349
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyBotIdRuleRequest`
|
|
3350
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyBotIdRuleResponse`
|
|
3351
|
+
def ModifyBotIdRule(request)
|
|
3352
|
+
body = send_request('ModifyBotIdRule', request.serialize)
|
|
3353
|
+
response = JSON.parse(body)
|
|
3354
|
+
if response['Response'].key?('Error') == false
|
|
3355
|
+
model = ModifyBotIdRuleResponse.new
|
|
3356
|
+
model.deserialize(response['Response'])
|
|
3357
|
+
model
|
|
3358
|
+
else
|
|
3359
|
+
code = response['Response']['Error']['Code']
|
|
3360
|
+
message = response['Response']['Error']['Message']
|
|
3361
|
+
reqid = response['Response']['RequestId']
|
|
3362
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
3363
|
+
end
|
|
3364
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
3365
|
+
raise e
|
|
3366
|
+
rescue StandardError => e
|
|
3367
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3368
|
+
end
|
|
3369
|
+
|
|
3226
3370
|
# bot子场景开关
|
|
3227
3371
|
|
|
3228
3372
|
# @param request: Request instance for ModifyBotSceneStatus.
|
|
@@ -4379,6 +4523,30 @@ module TencentCloud
|
|
|
4379
4523
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4380
4524
|
end
|
|
4381
4525
|
|
|
4526
|
+
# 更新自研版限流规则
|
|
4527
|
+
|
|
4528
|
+
# @param request: Request instance for UpdateRateLimitV2.
|
|
4529
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::UpdateRateLimitV2Request`
|
|
4530
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::UpdateRateLimitV2Response`
|
|
4531
|
+
def UpdateRateLimitV2(request)
|
|
4532
|
+
body = send_request('UpdateRateLimitV2', request.serialize)
|
|
4533
|
+
response = JSON.parse(body)
|
|
4534
|
+
if response['Response'].key?('Error') == false
|
|
4535
|
+
model = UpdateRateLimitV2Response.new
|
|
4536
|
+
model.deserialize(response['Response'])
|
|
4537
|
+
model
|
|
4538
|
+
else
|
|
4539
|
+
code = response['Response']['Error']['Code']
|
|
4540
|
+
message = response['Response']['Error']['Message']
|
|
4541
|
+
reqid = response['Response']['RequestId']
|
|
4542
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
4543
|
+
end
|
|
4544
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
4545
|
+
raise e
|
|
4546
|
+
rescue StandardError => e
|
|
4547
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
4548
|
+
end
|
|
4549
|
+
|
|
4382
4550
|
# 编辑SAAS型接入的紧急CC防护状态
|
|
4383
4551
|
|
|
4384
4552
|
# @param request: Request instance for UpsertCCAutoStatus.
|