tencentcloud-sdk-waf 1.0.357 → 1.0.360

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12f6735f9bdb9bd8bb61a23691c8816ac00cedbc
4
- data.tar.gz: 98630b33176d884340b07523a1d73b062d41559b
3
+ metadata.gz: 50864c00aee42a86dad06acc12d389b758db3a7b
4
+ data.tar.gz: e9b2388ef7d13bef53301c2fc2a5041a16b20fd6
5
5
  SHA512:
6
- metadata.gz: de5e79f7815e99e46e6f7f77f4f3a363ad4b368fc17a09310d9bfe80b38f59261c5f9e27c8c0f460117dbdcab095d227a22faaeafa999b327695432002a28adc
7
- data.tar.gz: 5416a2f718bb56b9f49f987629a510bce1053ce1ed15444068b9a335f404dbaeebf1e87f3cbffdac972ce99a9cbcdf8a98f8215af1455ef7554df3d51cf0ab0a
6
+ metadata.gz: 348defb4070ee49368df363225a8c6bfb1cc60e35bdf7a3daad73e2a12abd8efbe2e5413a68c789422292a3928947baa82db8e2fbf8ad40a2e8cd950aa4470ce
7
+ data.tar.gz: d066b6ec58cc5fb7d8e8092dae608f6745fdda3234ebf888c5ab93ed4a58651c6dcaafcd99ef702bb8ab381feec605b5dde84948a4d9f8597e2df13bfd076237
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.357
1
+ 1.0.360
@@ -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.357
4
+ version: 1.0.360
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-17 00:00:00.000000000 Z
11
+ date: 2022-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common