tencentcloud-sdk-waf 1.0.356 → 1.0.359

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: 8869f6e4bdb294a71c29a2d08c0ecb60dcb8f7c8
4
- data.tar.gz: e3b5f99b1910f9f60c4ea501f22a0233666c24da
3
+ metadata.gz: 30536166aaae150a7e99517cf1b07e0159c5abfe
4
+ data.tar.gz: c0b68a5361b161c4bb7f42273761f1bba25adc31
5
5
  SHA512:
6
- metadata.gz: 2401eaa27eae5bffcf98097a2fe719a998f73b7d330c6d4189184b08542051111ac0c4d27f6fce96a5394d0d6633f8121c72bb7a5ce0a7ff9badd8796e51feb0
7
- data.tar.gz: 3a6345466d1af1435cb540d1eb3c3b1ee8cf12201d37ccfbfe3d977be7f903ab4786552a6dd6ced189c361b5eba11fc389c5b68e101538ac8fdf8944befbe445
6
+ metadata.gz: bb31ca52f8880fe9136c1a7d8aa2756752c728db1121898f6d196b5e047013cbd18f01ec417dc5cb1938abf1893d51bb818fea1374a3df50c0ab55e8031a3aa6
7
+ data.tar.gz: 623178e50d83458f5ba2570b1a2633272719ed608e2ae04c3ed30d3fcaf63fd9f7ae9c566d027990b37b6d4c5012ed607f8cb161217fbb48285c627ac33f594e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.356
1
+ 1.0.359
@@ -631,6 +631,30 @@ module TencentCloud
631
631
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
632
632
  end
633
633
 
634
+ # 查询下载攻击日志任务记录列表
635
+
636
+ # @param request: Request instance for GetAttackDownloadRecords.
637
+ # @type request: :class:`Tencentcloud::waf::V20180125::GetAttackDownloadRecordsRequest`
638
+ # @rtype: :class:`Tencentcloud::waf::V20180125::GetAttackDownloadRecordsResponse`
639
+ def GetAttackDownloadRecords(request)
640
+ body = send_request('GetAttackDownloadRecords', request.serialize)
641
+ response = JSON.parse(body)
642
+ if response['Response'].key?('Error') == false
643
+ model = GetAttackDownloadRecordsResponse.new
644
+ model.deserialize(response['Response'])
645
+ model
646
+ else
647
+ code = response['Response']['Error']['Code']
648
+ message = response['Response']['Error']['Message']
649
+ reqid = response['Response']['RequestId']
650
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
651
+ end
652
+ rescue TencentCloud::Common::TencentCloudSDKException => e
653
+ raise e
654
+ rescue StandardError => e
655
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
656
+ end
657
+
634
658
  # 本接口用于修改访问日志保存期限
635
659
 
636
660
  # @param request: Request instance for ModifyAccessPeriod.
@@ -775,6 +799,30 @@ module TencentCloud
775
799
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
776
800
  end
777
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
+
778
826
  # 本接口用于搜索WAF访问日志
779
827
 
780
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
@@ -2006,6 +2062,44 @@ module TencentCloud
2006
2062
  end
2007
2063
  end
2008
2064
 
2065
+ # GetAttackDownloadRecords请求参数结构体
2066
+ class GetAttackDownloadRecordsRequest < TencentCloud::Common::AbstractModel
2067
+
2068
+
2069
+ def initialize()
2070
+ end
2071
+
2072
+ def deserialize(params)
2073
+ end
2074
+ end
2075
+
2076
+ # GetAttackDownloadRecords返回参数结构体
2077
+ class GetAttackDownloadRecordsResponse < TencentCloud::Common::AbstractModel
2078
+ # @param Records: 下载攻击日志记录数组
2079
+ # @type Records: Array
2080
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2081
+ # @type RequestId: String
2082
+
2083
+ attr_accessor :Records, :RequestId
2084
+
2085
+ def initialize(records=nil, requestid=nil)
2086
+ @Records = records
2087
+ @RequestId = requestid
2088
+ end
2089
+
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
2099
+ @RequestId = params['RequestId']
2100
+ end
2101
+ end
2102
+
2009
2103
  # 一个实例的详细信息
2010
2104
  class InstanceInfo < TencentCloud::Common::AbstractModel
2011
2105
  # @param InstanceId: id
@@ -2554,6 +2648,62 @@ module TencentCloud
2554
2648
  end
2555
2649
  end
2556
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
+
2557
2707
  # clb-waf QPS套餐 New
2558
2708
  class QPSPackageNew < TencentCloud::Common::AbstractModel
2559
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.356
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-14 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