tencentcloud-sdk-waf 3.0.1123 → 3.0.1131
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 +171 -0
- data/lib/v20180125/models.rb +981 -16
- 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: e4df52d3bf225fd0da5943f159dfc80f54c23db1
|
4
|
+
data.tar.gz: 2873bbb04f842a4f2f78b5134cc7af1ce7ec3f5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3de869df2397fa55f5ae98db1d683d52356ebd020c057a52cf797e4edaa2c790a8f5da6a41bcefdaadf2ecafca771545e2b4bb246c52c9015729c4f964c53216
|
7
|
+
data.tar.gz: 2977f01489afe605f96c7586d1fc11c2bb38fa8e7adc4beefc18e78292cd79ad2d3655258369e842db12c84cee22b72183f91903aa6b775235e3dc70dc007e3f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1131
|
data/lib/v20180125/client.rb
CHANGED
@@ -317,6 +317,30 @@ module TencentCloud
|
|
317
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
318
|
end
|
319
319
|
|
320
|
+
# 本接口仅创建下载任务,任务返回的下载地址,请用户调用DescribeExports查看任务列表。其中有下载地址CosPath参数。参考文档https://cloud.tencent.com/document/product/614/56449
|
321
|
+
|
322
|
+
# @param request: Request instance for CreateExport.
|
323
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::CreateExportRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::CreateExportResponse`
|
325
|
+
def CreateExport(request)
|
326
|
+
body = send_request('CreateExport', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = CreateExportResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
320
344
|
# clb-waf中添加防护域名
|
321
345
|
|
322
346
|
# @param request: Request instance for CreateHost.
|
@@ -677,6 +701,30 @@ module TencentCloud
|
|
677
701
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
702
|
end
|
679
703
|
|
704
|
+
# 本接口用于删除日志下载任务
|
705
|
+
|
706
|
+
# @param request: Request instance for DeleteExport.
|
707
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DeleteExportRequest`
|
708
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DeleteExportResponse`
|
709
|
+
def DeleteExport(request)
|
710
|
+
body = send_request('DeleteExport', request.serialize)
|
711
|
+
response = JSON.parse(body)
|
712
|
+
if response['Response'].key?('Error') == false
|
713
|
+
model = DeleteExportResponse.new
|
714
|
+
model.deserialize(response['Response'])
|
715
|
+
model
|
716
|
+
else
|
717
|
+
code = response['Response']['Error']['Code']
|
718
|
+
message = response['Response']['Error']['Message']
|
719
|
+
reqid = response['Response']['RequestId']
|
720
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
721
|
+
end
|
722
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
723
|
+
raise e
|
724
|
+
rescue StandardError => e
|
725
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
|
+
end
|
727
|
+
|
680
728
|
# 删除负载均衡型域名,支持批量操作。
|
681
729
|
|
682
730
|
# @param request: Request instance for DeleteHost.
|
@@ -1637,6 +1685,30 @@ module TencentCloud
|
|
1637
1685
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
1686
|
end
|
1639
1687
|
|
1688
|
+
# 本接口用于获取日志下载任务列表
|
1689
|
+
|
1690
|
+
# @param request: Request instance for DescribeExports.
|
1691
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeExportsRequest`
|
1692
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeExportsResponse`
|
1693
|
+
def DescribeExports(request)
|
1694
|
+
body = send_request('DescribeExports', request.serialize)
|
1695
|
+
response = JSON.parse(body)
|
1696
|
+
if response['Response'].key?('Error') == false
|
1697
|
+
model = DescribeExportsResponse.new
|
1698
|
+
model.deserialize(response['Response'])
|
1699
|
+
model
|
1700
|
+
else
|
1701
|
+
code = response['Response']['Error']['Code']
|
1702
|
+
message = response['Response']['Error']['Message']
|
1703
|
+
reqid = response['Response']['RequestId']
|
1704
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1705
|
+
end
|
1706
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1707
|
+
raise e
|
1708
|
+
rescue StandardError => e
|
1709
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1710
|
+
end
|
1711
|
+
|
1640
1712
|
# 获取发现域名列表接口
|
1641
1713
|
|
1642
1714
|
# @param request: Request instance for DescribeFindDomainList.
|
@@ -1853,6 +1925,30 @@ module TencentCloud
|
|
1853
1925
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1854
1926
|
end
|
1855
1927
|
|
1928
|
+
# 本接口用于构建日志数量直方图
|
1929
|
+
|
1930
|
+
# @param request: Request instance for DescribeLogHistogram.
|
1931
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeLogHistogramRequest`
|
1932
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeLogHistogramResponse`
|
1933
|
+
def DescribeLogHistogram(request)
|
1934
|
+
body = send_request('DescribeLogHistogram', request.serialize)
|
1935
|
+
response = JSON.parse(body)
|
1936
|
+
if response['Response'].key?('Error') == false
|
1937
|
+
model = DescribeLogHistogramResponse.new
|
1938
|
+
model.deserialize(response['Response'])
|
1939
|
+
model
|
1940
|
+
else
|
1941
|
+
code = response['Response']['Error']['Code']
|
1942
|
+
message = response['Response']['Error']['Message']
|
1943
|
+
reqid = response['Response']['RequestId']
|
1944
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1945
|
+
end
|
1946
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1947
|
+
raise e
|
1948
|
+
rescue StandardError => e
|
1949
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1950
|
+
end
|
1951
|
+
|
1856
1952
|
# 查询各个waf基础安全模块的开关状态,看每个模块是否开启
|
1857
1953
|
|
1858
1954
|
# @param request: Request instance for DescribeModuleStatus.
|
@@ -2285,6 +2381,30 @@ module TencentCloud
|
|
2285
2381
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2286
2382
|
end
|
2287
2383
|
|
2384
|
+
# 本接口用于获取日志主题列表,支持分页
|
2385
|
+
|
2386
|
+
# @param request: Request instance for DescribeTopics.
|
2387
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribeTopicsRequest`
|
2388
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribeTopicsResponse`
|
2389
|
+
def DescribeTopics(request)
|
2390
|
+
body = send_request('DescribeTopics', request.serialize)
|
2391
|
+
response = JSON.parse(body)
|
2392
|
+
if response['Response'].key?('Error') == false
|
2393
|
+
model = DescribeTopicsResponse.new
|
2394
|
+
model.deserialize(response['Response'])
|
2395
|
+
model
|
2396
|
+
else
|
2397
|
+
code = response['Response']['Error']['Code']
|
2398
|
+
message = response['Response']['Error']['Message']
|
2399
|
+
reqid = response['Response']['RequestId']
|
2400
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2401
|
+
end
|
2402
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2403
|
+
raise e
|
2404
|
+
rescue StandardError => e
|
2405
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2406
|
+
end
|
2407
|
+
|
2288
2408
|
# 在CDC场景下,负载均衡型WAF的添加、编辑域名配置的时候,需要展示CDC负载均衡型WAF(cdc-clb-waf)支持的地域列表,通过DescribeUserCdcClbWafRegions既可以获得当前对客户已经开放的地域列表
|
2289
2409
|
|
2290
2410
|
# @param request: Request instance for DescribeUserCdcClbWafRegions.
|
@@ -3728,6 +3848,30 @@ module TencentCloud
|
|
3728
3848
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3729
3849
|
end
|
3730
3850
|
|
3851
|
+
# 更改防护等级
|
3852
|
+
|
3853
|
+
# @param request: Request instance for ModifyProtectionLevel.
|
3854
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::ModifyProtectionLevelRequest`
|
3855
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::ModifyProtectionLevelResponse`
|
3856
|
+
def ModifyProtectionLevel(request)
|
3857
|
+
body = send_request('ModifyProtectionLevel', request.serialize)
|
3858
|
+
response = JSON.parse(body)
|
3859
|
+
if response['Response'].key?('Error') == false
|
3860
|
+
model = ModifyProtectionLevelResponse.new
|
3861
|
+
model.deserialize(response['Response'])
|
3862
|
+
model
|
3863
|
+
else
|
3864
|
+
code = response['Response']['Error']['Code']
|
3865
|
+
message = response['Response']['Error']['Message']
|
3866
|
+
reqid = response['Response']['RequestId']
|
3867
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3868
|
+
end
|
3869
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3870
|
+
raise e
|
3871
|
+
rescue StandardError => e
|
3872
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3873
|
+
end
|
3874
|
+
|
3731
3875
|
# 开启、关闭WAF开关
|
3732
3876
|
|
3733
3877
|
# @param request: Request instance for ModifyProtectionStatus.
|
@@ -4064,6 +4208,33 @@ module TencentCloud
|
|
4064
4208
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4065
4209
|
end
|
4066
4210
|
|
4211
|
+
# 本接口用于检索分析日志,使用该接口时请注意如下事项:
|
4212
|
+
# 1. 该接口除受默认接口请求频率限制外,针对单个日志主题,查询并发数不能超过15。
|
4213
|
+
# 2. 检索语法建议使用CQL语法规则,请使用SyntaxRule参数,将值设置为1。
|
4214
|
+
# 3. API返回数据包最大49MB,建议启用 gzip 压缩(HTTP Request Header Accept-Encoding:gzip)。
|
4215
|
+
|
4216
|
+
# @param request: Request instance for SearchLog.
|
4217
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::SearchLogRequest`
|
4218
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::SearchLogResponse`
|
4219
|
+
def SearchLog(request)
|
4220
|
+
body = send_request('SearchLog', request.serialize)
|
4221
|
+
response = JSON.parse(body)
|
4222
|
+
if response['Response'].key?('Error') == false
|
4223
|
+
model = SearchLogResponse.new
|
4224
|
+
model.deserialize(response['Response'])
|
4225
|
+
model
|
4226
|
+
else
|
4227
|
+
code = response['Response']['Error']['Code']
|
4228
|
+
message = response['Response']['Error']['Message']
|
4229
|
+
reqid = response['Response']['RequestId']
|
4230
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
4231
|
+
end
|
4232
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
4233
|
+
raise e
|
4234
|
+
rescue StandardError => e
|
4235
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
4236
|
+
end
|
4237
|
+
|
4067
4238
|
# 切换域名的规则开关
|
4068
4239
|
|
4069
4240
|
# @param request: Request instance for SwitchDomainRules.
|