tencentcloud-sdk-waf 3.0.1042 → 3.0.1044
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 +144 -0
- data/lib/v20180125/models.rb +1109 -20
- 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: 74367c097cbe58046815f9f5cb7bf5ab9243e4fd
|
4
|
+
data.tar.gz: 41944c4f35bf35ac96492feb6ce3574a62221f99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 826f220af3a88d6be9e11bfc3e923b6a26c88b4f3ed1fcb73c1612460bfd36eb103f4d467899949e22cf8dee326e4c765620e0cb442faa127235b2e52aee9a20
|
7
|
+
data.tar.gz: e4afb4fb175615071d3e961377aaf30213190c4a9ae816318d290fcf15a2388da18a3d0ffb0601ef30e9b4fc64a5f911ac083a26cb5cf3d2ab7f6dc5d4ac9cfc
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1044
|
data/lib/v20180125/client.rb
CHANGED
@@ -533,6 +533,30 @@ module TencentCloud
|
|
533
533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
534
|
end
|
535
535
|
|
536
|
+
# 场景化后删除Bot的UCB自定义规则
|
537
|
+
|
538
|
+
# @param request: Request instance for DeleteBotSceneUCBRule.
|
539
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DeleteBotSceneUCBRuleRequest`
|
540
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DeleteBotSceneUCBRuleResponse`
|
541
|
+
def DeleteBotSceneUCBRule(request)
|
542
|
+
body = send_request('DeleteBotSceneUCBRule', request.serialize)
|
543
|
+
response = JSON.parse(body)
|
544
|
+
if response['Response'].key?('Error') == false
|
545
|
+
model = DeleteBotSceneUCBRuleResponse.new
|
546
|
+
model.deserialize(response['Response'])
|
547
|
+
model
|
548
|
+
else
|
549
|
+
code = response['Response']['Error']['Code']
|
550
|
+
message = response['Response']['Error']['Message']
|
551
|
+
reqid = response['Response']['RequestId']
|
552
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
553
|
+
end
|
554
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
555
|
+
raise e
|
556
|
+
rescue StandardError => e
|
557
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
|
+
end
|
559
|
+
|
536
560
|
# Waf CC V2 Delete接口
|
537
561
|
|
538
562
|
# @param request: Request instance for DeleteCCRule.
|
@@ -1133,6 +1157,78 @@ module TencentCloud
|
|
1133
1157
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1134
1158
|
end
|
1135
1159
|
|
1160
|
+
# 获取BOT场景列表与概览
|
1161
|
+
|
1162
|
+
# @param request: Request instance for DescribeBotSceneList.
|
1163
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeBotSceneListRequest`
|
1164
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeBotSceneListResponse`
|
1165
|
+
def DescribeBotSceneList(request)
|
1166
|
+
body = send_request('DescribeBotSceneList', request.serialize)
|
1167
|
+
response = JSON.parse(body)
|
1168
|
+
if response['Response'].key?('Error') == false
|
1169
|
+
model = DescribeBotSceneListResponse.new
|
1170
|
+
model.deserialize(response['Response'])
|
1171
|
+
model
|
1172
|
+
else
|
1173
|
+
code = response['Response']['Error']['Code']
|
1174
|
+
message = response['Response']['Error']['Message']
|
1175
|
+
reqid = response['Response']['RequestId']
|
1176
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1177
|
+
end
|
1178
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1179
|
+
raise e
|
1180
|
+
rescue StandardError => e
|
1181
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1182
|
+
end
|
1183
|
+
|
1184
|
+
# 获取Bot场景全局概览
|
1185
|
+
|
1186
|
+
# @param request: Request instance for DescribeBotSceneOverview.
|
1187
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeBotSceneOverviewRequest`
|
1188
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeBotSceneOverviewResponse`
|
1189
|
+
def DescribeBotSceneOverview(request)
|
1190
|
+
body = send_request('DescribeBotSceneOverview', request.serialize)
|
1191
|
+
response = JSON.parse(body)
|
1192
|
+
if response['Response'].key?('Error') == false
|
1193
|
+
model = DescribeBotSceneOverviewResponse.new
|
1194
|
+
model.deserialize(response['Response'])
|
1195
|
+
model
|
1196
|
+
else
|
1197
|
+
code = response['Response']['Error']['Code']
|
1198
|
+
message = response['Response']['Error']['Message']
|
1199
|
+
reqid = response['Response']['RequestId']
|
1200
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1201
|
+
end
|
1202
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1203
|
+
raise e
|
1204
|
+
rescue StandardError => e
|
1205
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1206
|
+
end
|
1207
|
+
|
1208
|
+
# 场景化后Bot获取UCB自定义规则策略
|
1209
|
+
|
1210
|
+
# @param request: Request instance for DescribeBotSceneUCBRule.
|
1211
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeBotSceneUCBRuleRequest`
|
1212
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeBotSceneUCBRuleResponse`
|
1213
|
+
def DescribeBotSceneUCBRule(request)
|
1214
|
+
body = send_request('DescribeBotSceneUCBRule', request.serialize)
|
1215
|
+
response = JSON.parse(body)
|
1216
|
+
if response['Response'].key?('Error') == false
|
1217
|
+
model = DescribeBotSceneUCBRuleResponse.new
|
1218
|
+
model.deserialize(response['Response'])
|
1219
|
+
model
|
1220
|
+
else
|
1221
|
+
code = response['Response']['Error']['Code']
|
1222
|
+
message = response['Response']['Error']['Message']
|
1223
|
+
reqid = response['Response']['RequestId']
|
1224
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1225
|
+
end
|
1226
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1227
|
+
raise e
|
1228
|
+
rescue StandardError => e
|
1229
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1230
|
+
end
|
1231
|
+
|
1136
1232
|
# 获取SAAS型接入的紧急CC防护状态
|
1137
1233
|
|
1138
1234
|
# @param request: Request instance for DescribeCCAutoStatus.
|
@@ -2791,6 +2887,54 @@ module TencentCloud
|
|
2791
2887
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2792
2888
|
end
|
2793
2889
|
|
2890
|
+
# bot子场景开关
|
2891
|
+
|
2892
|
+
# @param request: Request instance for ModifyBotSceneStatus.
|
2893
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyBotSceneStatusRequest`
|
2894
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyBotSceneStatusResponse`
|
2895
|
+
def ModifyBotSceneStatus(request)
|
2896
|
+
body = send_request('ModifyBotSceneStatus', request.serialize)
|
2897
|
+
response = JSON.parse(body)
|
2898
|
+
if response['Response'].key?('Error') == false
|
2899
|
+
model = ModifyBotSceneStatusResponse.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
|
+
|
2914
|
+
# 【接口复用】场景化后更新Bot的UCB自定义规则,两个调用位置:1.BOT全局白名单 2.BOT场景配置
|
2915
|
+
|
2916
|
+
# @param request: Request instance for ModifyBotSceneUCBRule.
|
2917
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyBotSceneUCBRuleRequest`
|
2918
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyBotSceneUCBRuleResponse`
|
2919
|
+
def ModifyBotSceneUCBRule(request)
|
2920
|
+
body = send_request('ModifyBotSceneUCBRule', request.serialize)
|
2921
|
+
response = JSON.parse(body)
|
2922
|
+
if response['Response'].key?('Error') == false
|
2923
|
+
model = ModifyBotSceneUCBRuleResponse.new
|
2924
|
+
model.deserialize(response['Response'])
|
2925
|
+
model
|
2926
|
+
else
|
2927
|
+
code = response['Response']['Error']['Code']
|
2928
|
+
message = response['Response']['Error']['Message']
|
2929
|
+
reqid = response['Response']['RequestId']
|
2930
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2931
|
+
end
|
2932
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2933
|
+
raise e
|
2934
|
+
rescue StandardError => e
|
2935
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2936
|
+
end
|
2937
|
+
|
2794
2938
|
# Bot_V2 bot总开关更新
|
2795
2939
|
|
2796
2940
|
# @param request: Request instance for ModifyBotStatus.
|