tencentcloud-sdk-waf 1.0.358 → 1.0.359

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ccd621b0194dc1dbbb796f2ccf2eb70e3a1a9cbe
4
- data.tar.gz: bafe7e40148105327d1a0fa900f0580c3ac95d7c
3
+ metadata.gz: 30536166aaae150a7e99517cf1b07e0159c5abfe
4
+ data.tar.gz: c0b68a5361b161c4bb7f42273761f1bba25adc31
5
5
  SHA512:
6
- metadata.gz: d9664d629d356c54fb10156cab319e0bf3ac6005ebfecf9b98f6405861581df23c16a728204fd31f93486b7de032f27421a892ae7f393909b91852573f87d5e1
7
- data.tar.gz: e983f62ac625669b17868f820a923802479a2606a9b34edf912a10a70346a007aa35bece41528bfb26bf6eab9080f4b6123f805aa7ddab45846ea0d44ff8ac54
6
+ metadata.gz: bb31ca52f8880fe9136c1a7d8aa2756752c728db1121898f6d196b5e047013cbd18f01ec417dc5cb1938abf1893d51bb818fea1374a3df50c0ab55e8031a3aa6
7
+ data.tar.gz: 623178e50d83458f5ba2570b1a2633272719ed608e2ae04c3ed30d3fcaf63fd9f7ae9c566d027990b37b6d4c5012ed607f8cb161217fbb48285c627ac33f594e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.358
1
+ 1.0.359
@@ -799,6 +799,30 @@ module TencentCloud
799
799
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
800
800
  end
801
801
 
802
+ # 创建搜索下载攻击日志任务,使用CLS新版本的搜索下载getlog接口
803
+
804
+ # @param request: Request instance for PostAttackDownloadTask.
805
+ # @type request: :class:`Tencentcloud::waf::V20180125::PostAttackDownloadTaskRequest`
806
+ # @rtype: :class:`Tencentcloud::waf::V20180125::PostAttackDownloadTaskResponse`
807
+ def PostAttackDownloadTask(request)
808
+ body = send_request('PostAttackDownloadTask', request.serialize)
809
+ response = JSON.parse(body)
810
+ if response['Response'].key?('Error') == false
811
+ model = PostAttackDownloadTaskResponse.new
812
+ model.deserialize(response['Response'])
813
+ model
814
+ else
815
+ code = response['Response']['Error']['Code']
816
+ message = response['Response']['Error']['Message']
817
+ reqid = response['Response']['RequestId']
818
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
819
+ end
820
+ rescue TencentCloud::Common::TencentCloudSDKException => e
821
+ raise e
822
+ rescue StandardError => e
823
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
824
+ end
825
+
802
826
  # 本接口用于搜索WAF访问日志
803
827
 
804
828
  # @param request: Request instance for SearchAccessLog.
@@ -1869,6 +1869,62 @@ module TencentCloud
1869
1869
  end
1870
1870
  end
1871
1871
 
1872
+ # 下载攻击日志记录数据项
1873
+ class DownloadAttackRecordInfo < TencentCloud::Common::AbstractModel
1874
+ # @param Id: 记录ID
1875
+ # @type Id: Integer
1876
+ # @param TaskName: 下载任务名
1877
+ # @type TaskName: String
1878
+ # @param TaskId: 任务ID
1879
+ # @type TaskId: String
1880
+ # @param Host: 域名
1881
+ # @type Host: String
1882
+ # @param Count: 当前下载任务的日志条数
1883
+ # @type Count: Integer
1884
+ # @param Status: 下载任务运行状态:-1-下载超时,0-下载等待,1-下载完成,2-下载失败,4-正在下载
1885
+ # @type Status: Integer
1886
+ # @param Url: 下载文件URL
1887
+ # @type Url: String
1888
+ # @param CreateTime: 创建时间
1889
+ # @type CreateTime: String
1890
+ # @param ModifyTime: 最后更新修改时间
1891
+ # @type ModifyTime: String
1892
+ # @param ExpireTime: 过期时间
1893
+ # @type ExpireTime: String
1894
+ # @param TotalCount: 下载任务需下载的日志总条数
1895
+ # @type TotalCount: Integer
1896
+
1897
+ attr_accessor :Id, :TaskName, :TaskId, :Host, :Count, :Status, :Url, :CreateTime, :ModifyTime, :ExpireTime, :TotalCount
1898
+
1899
+ def initialize(id=nil, taskname=nil, taskid=nil, host=nil, count=nil, status=nil, url=nil, createtime=nil, modifytime=nil, expiretime=nil, totalcount=nil)
1900
+ @Id = id
1901
+ @TaskName = taskname
1902
+ @TaskId = taskid
1903
+ @Host = host
1904
+ @Count = count
1905
+ @Status = status
1906
+ @Url = url
1907
+ @CreateTime = createtime
1908
+ @ModifyTime = modifytime
1909
+ @ExpireTime = expiretime
1910
+ @TotalCount = totalcount
1911
+ end
1912
+
1913
+ def deserialize(params)
1914
+ @Id = params['Id']
1915
+ @TaskName = params['TaskName']
1916
+ @TaskId = params['TaskId']
1917
+ @Host = params['Host']
1918
+ @Count = params['Count']
1919
+ @Status = params['Status']
1920
+ @Url = params['Url']
1921
+ @CreateTime = params['CreateTime']
1922
+ @ModifyTime = params['ModifyTime']
1923
+ @ExpireTime = params['ExpireTime']
1924
+ @TotalCount = params['TotalCount']
1925
+ end
1926
+ end
1927
+
1872
1928
  # DescribeAccessExports接口
1873
1929
  class ExportAccessInfo < TencentCloud::Common::AbstractModel
1874
1930
  # @param ExportId: 日志导出任务ID
@@ -2019,16 +2075,27 @@ module TencentCloud
2019
2075
 
2020
2076
  # GetAttackDownloadRecords返回参数结构体
2021
2077
  class GetAttackDownloadRecordsResponse < TencentCloud::Common::AbstractModel
2078
+ # @param Records: 下载攻击日志记录数组
2079
+ # @type Records: Array
2022
2080
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2023
2081
  # @type RequestId: String
2024
2082
 
2025
- attr_accessor :RequestId
2083
+ attr_accessor :Records, :RequestId
2026
2084
 
2027
- def initialize(requestid=nil)
2085
+ def initialize(records=nil, requestid=nil)
2086
+ @Records = records
2028
2087
  @RequestId = requestid
2029
2088
  end
2030
2089
 
2031
2090
  def deserialize(params)
2091
+ unless params['Records'].nil?
2092
+ @Records = []
2093
+ params['Records'].each do |i|
2094
+ downloadattackrecordinfo_tmp = DownloadAttackRecordInfo.new
2095
+ downloadattackrecordinfo_tmp.deserialize(i)
2096
+ @Records << downloadattackrecordinfo_tmp
2097
+ end
2098
+ end
2032
2099
  @RequestId = params['RequestId']
2033
2100
  end
2034
2101
  end
@@ -2581,6 +2648,62 @@ module TencentCloud
2581
2648
  end
2582
2649
  end
2583
2650
 
2651
+ # PostAttackDownloadTask请求参数结构体
2652
+ class PostAttackDownloadTaskRequest < TencentCloud::Common::AbstractModel
2653
+ # @param Domain: 查询的域名,所有域名使用all
2654
+ # @type Domain: String
2655
+ # @param StartTime: 查询起始时间
2656
+ # @type StartTime: String
2657
+ # @param EndTime: 查询结束时间
2658
+ # @type EndTime: String
2659
+ # @param QueryString: Lucene语法
2660
+ # @type QueryString: String
2661
+ # @param TaskName: 任务名称
2662
+ # @type TaskName: String
2663
+ # @param Sort: 默认为desc,可以取值desc和asc
2664
+ # @type Sort: String
2665
+
2666
+ attr_accessor :Domain, :StartTime, :EndTime, :QueryString, :TaskName, :Sort
2667
+
2668
+ def initialize(domain=nil, starttime=nil, endtime=nil, querystring=nil, taskname=nil, sort=nil)
2669
+ @Domain = domain
2670
+ @StartTime = starttime
2671
+ @EndTime = endtime
2672
+ @QueryString = querystring
2673
+ @TaskName = taskname
2674
+ @Sort = sort
2675
+ end
2676
+
2677
+ def deserialize(params)
2678
+ @Domain = params['Domain']
2679
+ @StartTime = params['StartTime']
2680
+ @EndTime = params['EndTime']
2681
+ @QueryString = params['QueryString']
2682
+ @TaskName = params['TaskName']
2683
+ @Sort = params['Sort']
2684
+ end
2685
+ end
2686
+
2687
+ # PostAttackDownloadTask返回参数结构体
2688
+ class PostAttackDownloadTaskResponse < TencentCloud::Common::AbstractModel
2689
+ # @param Flow: 任务task id
2690
+ # @type Flow: String
2691
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2692
+ # @type RequestId: String
2693
+
2694
+ attr_accessor :Flow, :RequestId
2695
+
2696
+ def initialize(flow=nil, requestid=nil)
2697
+ @Flow = flow
2698
+ @RequestId = requestid
2699
+ end
2700
+
2701
+ def deserialize(params)
2702
+ @Flow = params['Flow']
2703
+ @RequestId = params['RequestId']
2704
+ end
2705
+ end
2706
+
2584
2707
  # clb-waf QPS套餐 New
2585
2708
  class QPSPackageNew < TencentCloud::Common::AbstractModel
2586
2709
  # @param ResourceIds: 资源ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-waf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.358
4
+ version: 1.0.359
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-18 00:00:00.000000000 Z
11
+ date: 2022-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common