tencentcloud-sdk-waf 3.0.1020 → 3.0.1021
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 +72 -0
- data/lib/v20180125/models.rb +163 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f2e2fb2f2c35c2c6f1c02c71ac97f92523c8a9a
|
4
|
+
data.tar.gz: a3e478b840e8f1561fbe9e99ce2efbf0d35852da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38743e342b5083eac634da0bbfaa998cd8e9ba32b46b6a1d6dc8bedda17250b8087e0f785b3c461fb372672964f37fe5f1eee937c3d12bc15e9b81b0168b582e
|
7
|
+
data.tar.gz: d228bc3d35b4319c1d84c6ccb6c1873e94c4c37bd54dd4773e9e96e6672ced66d1bab11bdb1409ad6895dc35ac7a7e2a2999851918e07a6a186eedab830a8c0b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1021
|
data/lib/v20180125/client.rb
CHANGED
@@ -365,6 +365,30 @@ module TencentCloud
|
|
365
365
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
366
|
end
|
367
367
|
|
368
|
+
# 创建CLS投递流任务
|
369
|
+
|
370
|
+
# @param request: Request instance for CreatePostCLSFlow.
|
371
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::CreatePostCLSFlowRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::CreatePostCLSFlowResponse`
|
373
|
+
def CreatePostCLSFlow(request)
|
374
|
+
body = send_request('CreatePostCLSFlow', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = CreatePostCLSFlowResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
368
392
|
# 本接口用于删除访问日志导出
|
369
393
|
|
370
394
|
# @param request: Request instance for DeleteAccessExport.
|
@@ -1781,6 +1805,30 @@ module TencentCloud
|
|
1781
1805
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1782
1806
|
end
|
1783
1807
|
|
1808
|
+
# 获取CLS投递流任务列表
|
1809
|
+
|
1810
|
+
# @param request: Request instance for DescribePostCLSFlows.
|
1811
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DescribePostCLSFlowsRequest`
|
1812
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DescribePostCLSFlowsResponse`
|
1813
|
+
def DescribePostCLSFlows(request)
|
1814
|
+
body = send_request('DescribePostCLSFlows', request.serialize)
|
1815
|
+
response = JSON.parse(body)
|
1816
|
+
if response['Response'].key?('Error') == false
|
1817
|
+
model = DescribePostCLSFlowsResponse.new
|
1818
|
+
model.deserialize(response['Response'])
|
1819
|
+
model
|
1820
|
+
else
|
1821
|
+
code = response['Response']['Error']['Code']
|
1822
|
+
message = response['Response']['Error']['Message']
|
1823
|
+
reqid = response['Response']['RequestId']
|
1824
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1825
|
+
end
|
1826
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1827
|
+
raise e
|
1828
|
+
rescue StandardError => e
|
1829
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1830
|
+
end
|
1831
|
+
|
1784
1832
|
# 查询Tiga引擎大类规则及其防护模式
|
1785
1833
|
|
1786
1834
|
# @param request: Request instance for DescribeProtectionModes.
|
@@ -2239,6 +2287,30 @@ module TencentCloud
|
|
2239
2287
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2240
2288
|
end
|
2241
2289
|
|
2290
|
+
# 销毁CLS投递流任务
|
2291
|
+
|
2292
|
+
# @param request: Request instance for DestroyPostCLSFlow.
|
2293
|
+
# @type request: :class:`Tencentcloud::waf::V20180125::DestroyPostCLSFlowRequest`
|
2294
|
+
# @rtype: :class:`Tencentcloud::waf::V20180125::DestroyPostCLSFlowResponse`
|
2295
|
+
def DestroyPostCLSFlow(request)
|
2296
|
+
body = send_request('DestroyPostCLSFlow', request.serialize)
|
2297
|
+
response = JSON.parse(body)
|
2298
|
+
if response['Response'].key?('Error') == false
|
2299
|
+
model = DestroyPostCLSFlowResponse.new
|
2300
|
+
model.deserialize(response['Response'])
|
2301
|
+
model
|
2302
|
+
else
|
2303
|
+
code = response['Response']['Error']['Code']
|
2304
|
+
message = response['Response']['Error']['Message']
|
2305
|
+
reqid = response['Response']['RequestId']
|
2306
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2307
|
+
end
|
2308
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2309
|
+
raise e
|
2310
|
+
rescue StandardError => e
|
2311
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2312
|
+
end
|
2313
|
+
|
2242
2314
|
# 刷新防篡改url
|
2243
2315
|
|
2244
2316
|
# @param request: Request instance for FreshAntiFakeUrl.
|
data/lib/v20180125/models.rb
CHANGED
@@ -2735,6 +2735,46 @@ module TencentCloud
|
|
2735
2735
|
end
|
2736
2736
|
end
|
2737
2737
|
|
2738
|
+
# CreatePostCLSFlow请求参数结构体
|
2739
|
+
class CreatePostCLSFlowRequest < TencentCloud::Common::AbstractModel
|
2740
|
+
# @param CLSRegion: 投递的CLS所在区域,默认为ap-shanghai
|
2741
|
+
# @type CLSRegion: String
|
2742
|
+
# @param LogsetName: 投递的CLS所在日志集合名称,默认为 waf_post_logset
|
2743
|
+
# @type LogsetName: String
|
2744
|
+
# @param LogType: 1-访问日志,2-攻击日志,默认为访问日志。
|
2745
|
+
# @type LogType: Integer
|
2746
|
+
|
2747
|
+
attr_accessor :CLSRegion, :LogsetName, :LogType
|
2748
|
+
|
2749
|
+
def initialize(clsregion=nil, logsetname=nil, logtype=nil)
|
2750
|
+
@CLSRegion = clsregion
|
2751
|
+
@LogsetName = logsetname
|
2752
|
+
@LogType = logtype
|
2753
|
+
end
|
2754
|
+
|
2755
|
+
def deserialize(params)
|
2756
|
+
@CLSRegion = params['CLSRegion']
|
2757
|
+
@LogsetName = params['LogsetName']
|
2758
|
+
@LogType = params['LogType']
|
2759
|
+
end
|
2760
|
+
end
|
2761
|
+
|
2762
|
+
# CreatePostCLSFlow返回参数结构体
|
2763
|
+
class CreatePostCLSFlowResponse < TencentCloud::Common::AbstractModel
|
2764
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2765
|
+
# @type RequestId: String
|
2766
|
+
|
2767
|
+
attr_accessor :RequestId
|
2768
|
+
|
2769
|
+
def initialize(requestid=nil)
|
2770
|
+
@RequestId = requestid
|
2771
|
+
end
|
2772
|
+
|
2773
|
+
def deserialize(params)
|
2774
|
+
@RequestId = params['RequestId']
|
2775
|
+
end
|
2776
|
+
end
|
2777
|
+
|
2738
2778
|
# 规则周期执行的数据结构
|
2739
2779
|
class CronJob < TencentCloud::Common::AbstractModel
|
2740
2780
|
# @param Days: 每个月的几号执行
|
@@ -6449,6 +6489,49 @@ module TencentCloud
|
|
6449
6489
|
end
|
6450
6490
|
end
|
6451
6491
|
|
6492
|
+
# DescribePostCLSFlows请求参数结构体
|
6493
|
+
class DescribePostCLSFlowsRequest < TencentCloud::Common::AbstractModel
|
6494
|
+
# @param LogType: 1-访问日志,2-攻击日志,默认为访问日志。
|
6495
|
+
# @type LogType: Integer
|
6496
|
+
|
6497
|
+
attr_accessor :LogType
|
6498
|
+
|
6499
|
+
def initialize(logtype=nil)
|
6500
|
+
@LogType = logtype
|
6501
|
+
end
|
6502
|
+
|
6503
|
+
def deserialize(params)
|
6504
|
+
@LogType = params['LogType']
|
6505
|
+
end
|
6506
|
+
end
|
6507
|
+
|
6508
|
+
# DescribePostCLSFlows返回参数结构体
|
6509
|
+
class DescribePostCLSFlowsResponse < TencentCloud::Common::AbstractModel
|
6510
|
+
# @param PostCLSFlows: 客户的投递流列表
|
6511
|
+
# @type PostCLSFlows: Array
|
6512
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6513
|
+
# @type RequestId: String
|
6514
|
+
|
6515
|
+
attr_accessor :PostCLSFlows, :RequestId
|
6516
|
+
|
6517
|
+
def initialize(postclsflows=nil, requestid=nil)
|
6518
|
+
@PostCLSFlows = postclsflows
|
6519
|
+
@RequestId = requestid
|
6520
|
+
end
|
6521
|
+
|
6522
|
+
def deserialize(params)
|
6523
|
+
unless params['PostCLSFlows'].nil?
|
6524
|
+
@PostCLSFlows = []
|
6525
|
+
params['PostCLSFlows'].each do |i|
|
6526
|
+
postclsflowinfo_tmp = PostCLSFlowInfo.new
|
6527
|
+
postclsflowinfo_tmp.deserialize(i)
|
6528
|
+
@PostCLSFlows << postclsflowinfo_tmp
|
6529
|
+
end
|
6530
|
+
end
|
6531
|
+
@RequestId = params['RequestId']
|
6532
|
+
end
|
6533
|
+
end
|
6534
|
+
|
6452
6535
|
# DescribeProtectionModes请求参数结构体
|
6453
6536
|
class DescribeProtectionModesRequest < TencentCloud::Common::AbstractModel
|
6454
6537
|
# @param Edition: sparta-waf或clb
|
@@ -7489,6 +7572,42 @@ module TencentCloud
|
|
7489
7572
|
end
|
7490
7573
|
end
|
7491
7574
|
|
7575
|
+
# DestroyPostCLSFlow请求参数结构体
|
7576
|
+
class DestroyPostCLSFlowRequest < TencentCloud::Common::AbstractModel
|
7577
|
+
# @param FlowId: 投递流的流ID
|
7578
|
+
# @type FlowId: Integer
|
7579
|
+
# @param LogType: 1-访问日志,2-攻击日志,默认为访问日志。
|
7580
|
+
# @type LogType: Integer
|
7581
|
+
|
7582
|
+
attr_accessor :FlowId, :LogType
|
7583
|
+
|
7584
|
+
def initialize(flowid=nil, logtype=nil)
|
7585
|
+
@FlowId = flowid
|
7586
|
+
@LogType = logtype
|
7587
|
+
end
|
7588
|
+
|
7589
|
+
def deserialize(params)
|
7590
|
+
@FlowId = params['FlowId']
|
7591
|
+
@LogType = params['LogType']
|
7592
|
+
end
|
7593
|
+
end
|
7594
|
+
|
7595
|
+
# DestroyPostCLSFlow返回参数结构体
|
7596
|
+
class DestroyPostCLSFlowResponse < TencentCloud::Common::AbstractModel
|
7597
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7598
|
+
# @type RequestId: String
|
7599
|
+
|
7600
|
+
attr_accessor :RequestId
|
7601
|
+
|
7602
|
+
def initialize(requestid=nil)
|
7603
|
+
@RequestId = requestid
|
7604
|
+
end
|
7605
|
+
|
7606
|
+
def deserialize(params)
|
7607
|
+
@RequestId = params['RequestId']
|
7608
|
+
end
|
7609
|
+
end
|
7610
|
+
|
7492
7611
|
# domain列表
|
7493
7612
|
class DomainInfo < TencentCloud::Common::AbstractModel
|
7494
7613
|
# @param Domain: 域名
|
@@ -12521,6 +12640,50 @@ module TencentCloud
|
|
12521
12640
|
end
|
12522
12641
|
end
|
12523
12642
|
|
12643
|
+
# CKafka投递流
|
12644
|
+
class PostCLSFlowInfo < TencentCloud::Common::AbstractModel
|
12645
|
+
# @param FlowId: 投递流唯一ID
|
12646
|
+
# @type FlowId: Integer
|
12647
|
+
# @param LogType: 1-访问日志 2-攻击日志
|
12648
|
+
# @type LogType: Integer
|
12649
|
+
# @param Status: 状态 0-为关闭 1-为启用
|
12650
|
+
# @type Status: Integer
|
12651
|
+
# @param CLSRegion: CLS所在区域
|
12652
|
+
# @type CLSRegion: String
|
12653
|
+
# @param LogsetName: CLS日志集合名称
|
12654
|
+
# @type LogsetName: String
|
12655
|
+
# @param LogsetID: CLS日志集合ID
|
12656
|
+
# @type LogsetID: String
|
12657
|
+
# @param LogTopicName: CLS日志主题名称
|
12658
|
+
# @type LogTopicName: String
|
12659
|
+
# @param LogTopicID: CLS日志集合ID
|
12660
|
+
# @type LogTopicID: String
|
12661
|
+
|
12662
|
+
attr_accessor :FlowId, :LogType, :Status, :CLSRegion, :LogsetName, :LogsetID, :LogTopicName, :LogTopicID
|
12663
|
+
|
12664
|
+
def initialize(flowid=nil, logtype=nil, status=nil, clsregion=nil, logsetname=nil, logsetid=nil, logtopicname=nil, logtopicid=nil)
|
12665
|
+
@FlowId = flowid
|
12666
|
+
@LogType = logtype
|
12667
|
+
@Status = status
|
12668
|
+
@CLSRegion = clsregion
|
12669
|
+
@LogsetName = logsetname
|
12670
|
+
@LogsetID = logsetid
|
12671
|
+
@LogTopicName = logtopicname
|
12672
|
+
@LogTopicID = logtopicid
|
12673
|
+
end
|
12674
|
+
|
12675
|
+
def deserialize(params)
|
12676
|
+
@FlowId = params['FlowId']
|
12677
|
+
@LogType = params['LogType']
|
12678
|
+
@Status = params['Status']
|
12679
|
+
@CLSRegion = params['CLSRegion']
|
12680
|
+
@LogsetName = params['LogsetName']
|
12681
|
+
@LogsetID = params['LogsetID']
|
12682
|
+
@LogTopicName = params['LogTopicName']
|
12683
|
+
@LogTopicID = params['LogTopicID']
|
12684
|
+
end
|
12685
|
+
end
|
12686
|
+
|
12524
12687
|
# waf产品
|
12525
12688
|
class ProductInfo < TencentCloud::Common::AbstractModel
|
12526
12689
|
# @param Name: 产品名称
|