tencentcloud-sdk-cwp 3.0.425 → 3.0.426
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180228/client.rb +96 -0
- data/lib/v20180228/models.rb +456 -0
- 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: c73ac6899b2abc58feaa2c1ebc1dbfb0edff5f78
|
4
|
+
data.tar.gz: 1a8b3626b97fe96b1246248373d17e5a275108fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 008c4e516363c952ebc92f0096389b6974b46a397d507fb8e11f41017fba8fb125dd81232243f6d2bba23b78e888a0891fbf368898ad0d0f2b0c71cbd7e88320
|
7
|
+
data.tar.gz: efd131ae131558e7f916f995d1a58d15ae4e2864ee04171bd7528e504d54a23e2430ce6438e4bb13a5037ae8acc0156bf42437273c4e8080958c3623376ae509
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.426
|
data/lib/v20180228/client.rb
CHANGED
@@ -1784,6 +1784,54 @@ module TencentCloud
|
|
1784
1784
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1785
1785
|
end
|
1786
1786
|
|
1787
|
+
# 获取基线检测项的列表
|
1788
|
+
|
1789
|
+
# @param request: Request instance for DescribeBaselineItemDetectList.
|
1790
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemDetectListRequest`
|
1791
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemDetectListResponse`
|
1792
|
+
def DescribeBaselineItemDetectList(request)
|
1793
|
+
body = send_request('DescribeBaselineItemDetectList', request.serialize)
|
1794
|
+
response = JSON.parse(body)
|
1795
|
+
if response['Response'].key?('Error') == false
|
1796
|
+
model = DescribeBaselineItemDetectListResponse.new
|
1797
|
+
model.deserialize(response['Response'])
|
1798
|
+
model
|
1799
|
+
else
|
1800
|
+
code = response['Response']['Error']['Code']
|
1801
|
+
message = response['Response']['Error']['Message']
|
1802
|
+
reqid = response['Response']['RequestId']
|
1803
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1804
|
+
end
|
1805
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1806
|
+
raise e
|
1807
|
+
rescue StandardError => e
|
1808
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1809
|
+
end
|
1810
|
+
|
1811
|
+
# 获取基线项检测结果列表
|
1812
|
+
|
1813
|
+
# @param request: Request instance for DescribeBaselineItemList.
|
1814
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemListRequest`
|
1815
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeBaselineItemListResponse`
|
1816
|
+
def DescribeBaselineItemList(request)
|
1817
|
+
body = send_request('DescribeBaselineItemList', request.serialize)
|
1818
|
+
response = JSON.parse(body)
|
1819
|
+
if response['Response'].key?('Error') == false
|
1820
|
+
model = DescribeBaselineItemListResponse.new
|
1821
|
+
model.deserialize(response['Response'])
|
1822
|
+
model
|
1823
|
+
else
|
1824
|
+
code = response['Response']['Error']['Code']
|
1825
|
+
message = response['Response']['Error']['Message']
|
1826
|
+
reqid = response['Response']['RequestId']
|
1827
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1828
|
+
end
|
1829
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1830
|
+
raise e
|
1831
|
+
rescue StandardError => e
|
1832
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1833
|
+
end
|
1834
|
+
|
1787
1835
|
# 查询基线列表信息
|
1788
1836
|
|
1789
1837
|
# @param request: Request instance for DescribeBaselineList.
|
@@ -5120,6 +5168,30 @@ module TencentCloud
|
|
5120
5168
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
5121
5169
|
end
|
5122
5170
|
|
5171
|
+
# 检测基线
|
5172
|
+
|
5173
|
+
# @param request: Request instance for StartBaselineDetect.
|
5174
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::StartBaselineDetectRequest`
|
5175
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::StartBaselineDetectResponse`
|
5176
|
+
def StartBaselineDetect(request)
|
5177
|
+
body = send_request('StartBaselineDetect', request.serialize)
|
5178
|
+
response = JSON.parse(body)
|
5179
|
+
if response['Response'].key?('Error') == false
|
5180
|
+
model = StartBaselineDetectResponse.new
|
5181
|
+
model.deserialize(response['Response'])
|
5182
|
+
model
|
5183
|
+
else
|
5184
|
+
code = response['Response']['Error']['Code']
|
5185
|
+
message = response['Response']['Error']['Message']
|
5186
|
+
reqid = response['Response']['RequestId']
|
5187
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
5188
|
+
end
|
5189
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
5190
|
+
raise e
|
5191
|
+
rescue StandardError => e
|
5192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
5193
|
+
end
|
5194
|
+
|
5123
5195
|
# 不再提醒爆破阻断提示弹窗
|
5124
5196
|
|
5125
5197
|
# @param request: Request instance for StopNoticeBanTips.
|
@@ -5192,6 +5264,30 @@ module TencentCloud
|
|
5192
5264
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
5193
5265
|
end
|
5194
5266
|
|
5267
|
+
# 同步基线检测进度概要
|
5268
|
+
|
5269
|
+
# @param request: Request instance for SyncBaselineDetectSummary.
|
5270
|
+
# @type request: :class:`Tencentcloud::cwp::V20180228::SyncBaselineDetectSummaryRequest`
|
5271
|
+
# @rtype: :class:`Tencentcloud::cwp::V20180228::SyncBaselineDetectSummaryResponse`
|
5272
|
+
def SyncBaselineDetectSummary(request)
|
5273
|
+
body = send_request('SyncBaselineDetectSummary', request.serialize)
|
5274
|
+
response = JSON.parse(body)
|
5275
|
+
if response['Response'].key?('Error') == false
|
5276
|
+
model = SyncBaselineDetectSummaryResponse.new
|
5277
|
+
model.deserialize(response['Response'])
|
5278
|
+
model
|
5279
|
+
else
|
5280
|
+
code = response['Response']['Error']['Code']
|
5281
|
+
message = response['Response']['Error']['Message']
|
5282
|
+
reqid = response['Response']['RequestId']
|
5283
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
5284
|
+
end
|
5285
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
5286
|
+
raise e
|
5287
|
+
rescue StandardError => e
|
5288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
5289
|
+
end
|
5290
|
+
|
5195
5291
|
# 本接口(TrustMalwares)将被识别木马文件设为信任。
|
5196
5292
|
|
5197
5293
|
# @param request: Request instance for TrustMalwares.
|
data/lib/v20180228/models.rb
CHANGED
@@ -2493,6 +2493,34 @@ module TencentCloud
|
|
2493
2493
|
end
|
2494
2494
|
end
|
2495
2495
|
|
2496
|
+
# 基线扫描参数
|
2497
|
+
class BaselineDetectParam < TencentCloud::Common::AbstractModel
|
2498
|
+
# @param PolicyIds: 检测的策略集合
|
2499
|
+
# @type PolicyIds: Array
|
2500
|
+
# @param RuleIds: 检测的规则集合
|
2501
|
+
# @type RuleIds: Array
|
2502
|
+
# @param ItemIds: 检测项集合
|
2503
|
+
# @type ItemIds: Array
|
2504
|
+
# @param HostIds: 检测的主机ID集合
|
2505
|
+
# @type HostIds: Array
|
2506
|
+
|
2507
|
+
attr_accessor :PolicyIds, :RuleIds, :ItemIds, :HostIds
|
2508
|
+
|
2509
|
+
def initialize(policyids=nil, ruleids=nil, itemids=nil, hostids=nil)
|
2510
|
+
@PolicyIds = policyids
|
2511
|
+
@RuleIds = ruleids
|
2512
|
+
@ItemIds = itemids
|
2513
|
+
@HostIds = hostids
|
2514
|
+
end
|
2515
|
+
|
2516
|
+
def deserialize(params)
|
2517
|
+
@PolicyIds = params['PolicyIds']
|
2518
|
+
@RuleIds = params['RuleIds']
|
2519
|
+
@ItemIds = params['ItemIds']
|
2520
|
+
@HostIds = params['HostIds']
|
2521
|
+
end
|
2522
|
+
end
|
2523
|
+
|
2496
2524
|
# 基线影响主机信息
|
2497
2525
|
class BaselineEffectHost < TencentCloud::Common::AbstractModel
|
2498
2526
|
# @param PassCount: 通过项
|
@@ -2673,6 +2701,179 @@ module TencentCloud
|
|
2673
2701
|
end
|
2674
2702
|
end
|
2675
2703
|
|
2704
|
+
# 基线项
|
2705
|
+
class BaselineItem < TencentCloud::Common::AbstractModel
|
2706
|
+
# @param ItemId: 项Id
|
2707
|
+
# @type ItemId: Integer
|
2708
|
+
# @param ItemName: 项名称
|
2709
|
+
# @type ItemName: String
|
2710
|
+
# @param CategoryId: 检测项分类
|
2711
|
+
# @type CategoryId: Integer
|
2712
|
+
# @param ItemDesc: 项描述
|
2713
|
+
# @type ItemDesc: String
|
2714
|
+
# @param FixMethod: 修复方法
|
2715
|
+
# @type FixMethod: String
|
2716
|
+
# @param RuleName: 所属规则
|
2717
|
+
# @type RuleName: String
|
2718
|
+
# @param DetectResultDesc: 检测结果描述
|
2719
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2720
|
+
# @type DetectResultDesc: String
|
2721
|
+
# @param Level: 危险等级
|
2722
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2723
|
+
# @type Level: Integer
|
2724
|
+
# @param DetectStatus: 检测状态:0 未通过,1:忽略,3:通过,5:检测中
|
2725
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2726
|
+
# @type DetectStatus: Integer
|
2727
|
+
# @param HostId: 主机ID
|
2728
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2729
|
+
# @type HostId: String
|
2730
|
+
# @param HostName: 主机名
|
2731
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2732
|
+
# @type HostName: String
|
2733
|
+
# @param HostIp: 主机IP
|
2734
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2735
|
+
# @type HostIp: String
|
2736
|
+
# @param WanIp: 外网IP
|
2737
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2738
|
+
# @type WanIp: String
|
2739
|
+
# @param FirstTime: 第一次出现时间
|
2740
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2741
|
+
# @type FirstTime: String
|
2742
|
+
# @param LastTime: 最近出现时间
|
2743
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2744
|
+
# @type LastTime: String
|
2745
|
+
# @param CanBeFixed: 是否可以修复
|
2746
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2747
|
+
# @type CanBeFixed: Integer
|
2748
|
+
# @param Uuid: 主机安全uuid
|
2749
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2750
|
+
# @type Uuid: String
|
2751
|
+
|
2752
|
+
attr_accessor :ItemId, :ItemName, :CategoryId, :ItemDesc, :FixMethod, :RuleName, :DetectResultDesc, :Level, :DetectStatus, :HostId, :HostName, :HostIp, :WanIp, :FirstTime, :LastTime, :CanBeFixed, :Uuid
|
2753
|
+
|
2754
|
+
def initialize(itemid=nil, itemname=nil, categoryid=nil, itemdesc=nil, fixmethod=nil, rulename=nil, detectresultdesc=nil, level=nil, detectstatus=nil, hostid=nil, hostname=nil, hostip=nil, wanip=nil, firsttime=nil, lasttime=nil, canbefixed=nil, uuid=nil)
|
2755
|
+
@ItemId = itemid
|
2756
|
+
@ItemName = itemname
|
2757
|
+
@CategoryId = categoryid
|
2758
|
+
@ItemDesc = itemdesc
|
2759
|
+
@FixMethod = fixmethod
|
2760
|
+
@RuleName = rulename
|
2761
|
+
@DetectResultDesc = detectresultdesc
|
2762
|
+
@Level = level
|
2763
|
+
@DetectStatus = detectstatus
|
2764
|
+
@HostId = hostid
|
2765
|
+
@HostName = hostname
|
2766
|
+
@HostIp = hostip
|
2767
|
+
@WanIp = wanip
|
2768
|
+
@FirstTime = firsttime
|
2769
|
+
@LastTime = lasttime
|
2770
|
+
@CanBeFixed = canbefixed
|
2771
|
+
@Uuid = uuid
|
2772
|
+
end
|
2773
|
+
|
2774
|
+
def deserialize(params)
|
2775
|
+
@ItemId = params['ItemId']
|
2776
|
+
@ItemName = params['ItemName']
|
2777
|
+
@CategoryId = params['CategoryId']
|
2778
|
+
@ItemDesc = params['ItemDesc']
|
2779
|
+
@FixMethod = params['FixMethod']
|
2780
|
+
@RuleName = params['RuleName']
|
2781
|
+
@DetectResultDesc = params['DetectResultDesc']
|
2782
|
+
@Level = params['Level']
|
2783
|
+
@DetectStatus = params['DetectStatus']
|
2784
|
+
@HostId = params['HostId']
|
2785
|
+
@HostName = params['HostName']
|
2786
|
+
@HostIp = params['HostIp']
|
2787
|
+
@WanIp = params['WanIp']
|
2788
|
+
@FirstTime = params['FirstTime']
|
2789
|
+
@LastTime = params['LastTime']
|
2790
|
+
@CanBeFixed = params['CanBeFixed']
|
2791
|
+
@Uuid = params['Uuid']
|
2792
|
+
end
|
2793
|
+
end
|
2794
|
+
|
2795
|
+
# 基线检测项
|
2796
|
+
class BaselineItemDetect < TencentCloud::Common::AbstractModel
|
2797
|
+
# @param ItemId: 项Id
|
2798
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2799
|
+
# @type ItemId: Integer
|
2800
|
+
# @param ItemName: 项名称
|
2801
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2802
|
+
# @type ItemName: String
|
2803
|
+
# @param ItemDesc: 项描述
|
2804
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2805
|
+
# @type ItemDesc: String
|
2806
|
+
# @param FixMethod: 修复方法
|
2807
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2808
|
+
# @type FixMethod: String
|
2809
|
+
# @param RuleName: 所属规则
|
2810
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2811
|
+
# @type RuleName: String
|
2812
|
+
# @param DetectStatus: 0:未通过 1:忽略 3:通过 5:检测中
|
2813
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2814
|
+
# @type DetectStatus: Integer
|
2815
|
+
# @param Level: 风险等级
|
2816
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2817
|
+
# @type Level: Integer
|
2818
|
+
# @param HostCount: 影响服务器数
|
2819
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2820
|
+
# @type HostCount: Integer
|
2821
|
+
# @param FirstTime: 首次检测时间
|
2822
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2823
|
+
# @type FirstTime: String
|
2824
|
+
# @param LastTime: 最后检测时间
|
2825
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2826
|
+
# @type LastTime: String
|
2827
|
+
# @param DetectResult: 检测结果,Json字符串
|
2828
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2829
|
+
# @type DetectResult: String
|
2830
|
+
# @param RuleId: 所属规则ID
|
2831
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2832
|
+
# @type RuleId: Integer
|
2833
|
+
# @param PassedHostCount: 通过的服务器数
|
2834
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2835
|
+
# @type PassedHostCount: Integer
|
2836
|
+
# @param NotPassedHostCount: 未通过的服务器数
|
2837
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2838
|
+
# @type NotPassedHostCount: Integer
|
2839
|
+
|
2840
|
+
attr_accessor :ItemId, :ItemName, :ItemDesc, :FixMethod, :RuleName, :DetectStatus, :Level, :HostCount, :FirstTime, :LastTime, :DetectResult, :RuleId, :PassedHostCount, :NotPassedHostCount
|
2841
|
+
|
2842
|
+
def initialize(itemid=nil, itemname=nil, itemdesc=nil, fixmethod=nil, rulename=nil, detectstatus=nil, level=nil, hostcount=nil, firsttime=nil, lasttime=nil, detectresult=nil, ruleid=nil, passedhostcount=nil, notpassedhostcount=nil)
|
2843
|
+
@ItemId = itemid
|
2844
|
+
@ItemName = itemname
|
2845
|
+
@ItemDesc = itemdesc
|
2846
|
+
@FixMethod = fixmethod
|
2847
|
+
@RuleName = rulename
|
2848
|
+
@DetectStatus = detectstatus
|
2849
|
+
@Level = level
|
2850
|
+
@HostCount = hostcount
|
2851
|
+
@FirstTime = firsttime
|
2852
|
+
@LastTime = lasttime
|
2853
|
+
@DetectResult = detectresult
|
2854
|
+
@RuleId = ruleid
|
2855
|
+
@PassedHostCount = passedhostcount
|
2856
|
+
@NotPassedHostCount = notpassedhostcount
|
2857
|
+
end
|
2858
|
+
|
2859
|
+
def deserialize(params)
|
2860
|
+
@ItemId = params['ItemId']
|
2861
|
+
@ItemName = params['ItemName']
|
2862
|
+
@ItemDesc = params['ItemDesc']
|
2863
|
+
@FixMethod = params['FixMethod']
|
2864
|
+
@RuleName = params['RuleName']
|
2865
|
+
@DetectStatus = params['DetectStatus']
|
2866
|
+
@Level = params['Level']
|
2867
|
+
@HostCount = params['HostCount']
|
2868
|
+
@FirstTime = params['FirstTime']
|
2869
|
+
@LastTime = params['LastTime']
|
2870
|
+
@DetectResult = params['DetectResult']
|
2871
|
+
@RuleId = params['RuleId']
|
2872
|
+
@PassedHostCount = params['PassedHostCount']
|
2873
|
+
@NotPassedHostCount = params['NotPassedHostCount']
|
2874
|
+
end
|
2875
|
+
end
|
2876
|
+
|
2676
2877
|
# 基线检测信息
|
2677
2878
|
class BaselineRuleInfo < TencentCloud::Common::AbstractModel
|
2678
2879
|
# @param RuleName: 检测项名称
|
@@ -7290,6 +7491,163 @@ module TencentCloud
|
|
7290
7491
|
end
|
7291
7492
|
end
|
7292
7493
|
|
7494
|
+
# DescribeBaselineItemDetectList请求参数结构体
|
7495
|
+
class DescribeBaselineItemDetectListRequest < TencentCloud::Common::AbstractModel
|
7496
|
+
# @param Filters: <li>HostId - string - 是否必填:否 - 主机Id</li>
|
7497
|
+
# <li>RuleId - int64 - 是否必填:否 - 规则Id</li>
|
7498
|
+
# <li>PolicyId - int64 - 是否必填:否 - 规则Id</li>
|
7499
|
+
# <li>ItemName - string - 是否必填:否 - 项名称</li>
|
7500
|
+
# <li>DetectStatus - int - 是否必填:否 - 检测状态</li>
|
7501
|
+
# <li>Level - int - 是否必填:否 - 风险等级</li>
|
7502
|
+
# <li>StartTime - string - 是否必填:否 - 开时时间</li>
|
7503
|
+
# <li>EndTime - string - 是否必填:否 - 结束时间</li>
|
7504
|
+
# @type Filters: Array
|
7505
|
+
# @param Limit: 限制条数,默认10,最大100
|
7506
|
+
# @type Limit: Integer
|
7507
|
+
# @param Offset: 偏移量,默认0
|
7508
|
+
# @type Offset: Integer
|
7509
|
+
# @param Order: 排序方式: [ASC:升序|DESC:降序]
|
7510
|
+
# @type Order: String
|
7511
|
+
# @param By: 可选排序列: [HostCount|FirstTime|LastTime]
|
7512
|
+
# @type By: String
|
7513
|
+
|
7514
|
+
attr_accessor :Filters, :Limit, :Offset, :Order, :By
|
7515
|
+
|
7516
|
+
def initialize(filters=nil, limit=nil, offset=nil, order=nil, by=nil)
|
7517
|
+
@Filters = filters
|
7518
|
+
@Limit = limit
|
7519
|
+
@Offset = offset
|
7520
|
+
@Order = order
|
7521
|
+
@By = by
|
7522
|
+
end
|
7523
|
+
|
7524
|
+
def deserialize(params)
|
7525
|
+
unless params['Filters'].nil?
|
7526
|
+
@Filters = []
|
7527
|
+
params['Filters'].each do |i|
|
7528
|
+
filter_tmp = Filter.new
|
7529
|
+
filter_tmp.deserialize(i)
|
7530
|
+
@Filters << filter_tmp
|
7531
|
+
end
|
7532
|
+
end
|
7533
|
+
@Limit = params['Limit']
|
7534
|
+
@Offset = params['Offset']
|
7535
|
+
@Order = params['Order']
|
7536
|
+
@By = params['By']
|
7537
|
+
end
|
7538
|
+
end
|
7539
|
+
|
7540
|
+
# DescribeBaselineItemDetectList返回参数结构体
|
7541
|
+
class DescribeBaselineItemDetectListResponse < TencentCloud::Common::AbstractModel
|
7542
|
+
# @param Total: 总数
|
7543
|
+
# @type Total: Integer
|
7544
|
+
# @param List: 无
|
7545
|
+
# @type List: Array
|
7546
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7547
|
+
# @type RequestId: String
|
7548
|
+
|
7549
|
+
attr_accessor :Total, :List, :RequestId
|
7550
|
+
|
7551
|
+
def initialize(total=nil, list=nil, requestid=nil)
|
7552
|
+
@Total = total
|
7553
|
+
@List = list
|
7554
|
+
@RequestId = requestid
|
7555
|
+
end
|
7556
|
+
|
7557
|
+
def deserialize(params)
|
7558
|
+
@Total = params['Total']
|
7559
|
+
unless params['List'].nil?
|
7560
|
+
@List = []
|
7561
|
+
params['List'].each do |i|
|
7562
|
+
baselineitemdetect_tmp = BaselineItemDetect.new
|
7563
|
+
baselineitemdetect_tmp.deserialize(i)
|
7564
|
+
@List << baselineitemdetect_tmp
|
7565
|
+
end
|
7566
|
+
end
|
7567
|
+
@RequestId = params['RequestId']
|
7568
|
+
end
|
7569
|
+
end
|
7570
|
+
|
7571
|
+
# DescribeBaselineItemList请求参数结构体
|
7572
|
+
class DescribeBaselineItemListRequest < TencentCloud::Common::AbstractModel
|
7573
|
+
# @param Filters: <li>PolicyId - int64 - 是否必填:否 - 策略Id</li>
|
7574
|
+
# <li>RuleId - int64 - 是否必填:否 - 规则Id</li>
|
7575
|
+
# <li>HostId - string - 是否必填:否 - 主机Id</li>
|
7576
|
+
# <li>HostName - string - 是否必填:否 - 主机名</li>
|
7577
|
+
# <li>HostIp - string - 是否必填:否 - 主机IP</li>
|
7578
|
+
# <li>ItemId - String - 是否必填:否 - 检测项Id</li>
|
7579
|
+
# <li>ItemName - String - 是否必填:否 - 项名称</li>
|
7580
|
+
# <li>DetectStatus - int - 是否必填:否 - 检测状态[0:未通过|3:通过|5:检测中]</li>
|
7581
|
+
# <li>Level - int - 是否必填:否 - 风险等级</li>
|
7582
|
+
# <li>StartTime - string - 是否必填:否 - 开时时间</li>
|
7583
|
+
# <li>EndTime - string - 是否必填:否 - 结束时间</li>
|
7584
|
+
# @type Filters: Array
|
7585
|
+
# @param Limit: 限制条数,默认10,最大100
|
7586
|
+
# @type Limit: Integer
|
7587
|
+
# @param Offset: 偏移量,默认0
|
7588
|
+
# @type Offset: Integer
|
7589
|
+
# @param Order: 排序方式: [ASC:升序|DESC:降序]
|
7590
|
+
# @type Order: String
|
7591
|
+
# @param By: 可选排序列
|
7592
|
+
# @type By: String
|
7593
|
+
|
7594
|
+
attr_accessor :Filters, :Limit, :Offset, :Order, :By
|
7595
|
+
|
7596
|
+
def initialize(filters=nil, limit=nil, offset=nil, order=nil, by=nil)
|
7597
|
+
@Filters = filters
|
7598
|
+
@Limit = limit
|
7599
|
+
@Offset = offset
|
7600
|
+
@Order = order
|
7601
|
+
@By = by
|
7602
|
+
end
|
7603
|
+
|
7604
|
+
def deserialize(params)
|
7605
|
+
unless params['Filters'].nil?
|
7606
|
+
@Filters = []
|
7607
|
+
params['Filters'].each do |i|
|
7608
|
+
filter_tmp = Filter.new
|
7609
|
+
filter_tmp.deserialize(i)
|
7610
|
+
@Filters << filter_tmp
|
7611
|
+
end
|
7612
|
+
end
|
7613
|
+
@Limit = params['Limit']
|
7614
|
+
@Offset = params['Offset']
|
7615
|
+
@Order = params['Order']
|
7616
|
+
@By = params['By']
|
7617
|
+
end
|
7618
|
+
end
|
7619
|
+
|
7620
|
+
# DescribeBaselineItemList返回参数结构体
|
7621
|
+
class DescribeBaselineItemListResponse < TencentCloud::Common::AbstractModel
|
7622
|
+
# @param List: 无
|
7623
|
+
# @type List: Array
|
7624
|
+
# @param Total: 总数
|
7625
|
+
# @type Total: Integer
|
7626
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7627
|
+
# @type RequestId: String
|
7628
|
+
|
7629
|
+
attr_accessor :List, :Total, :RequestId
|
7630
|
+
|
7631
|
+
def initialize(list=nil, total=nil, requestid=nil)
|
7632
|
+
@List = list
|
7633
|
+
@Total = total
|
7634
|
+
@RequestId = requestid
|
7635
|
+
end
|
7636
|
+
|
7637
|
+
def deserialize(params)
|
7638
|
+
unless params['List'].nil?
|
7639
|
+
@List = []
|
7640
|
+
params['List'].each do |i|
|
7641
|
+
baselineitem_tmp = BaselineItem.new
|
7642
|
+
baselineitem_tmp.deserialize(i)
|
7643
|
+
@List << baselineitem_tmp
|
7644
|
+
end
|
7645
|
+
end
|
7646
|
+
@Total = params['Total']
|
7647
|
+
@RequestId = params['RequestId']
|
7648
|
+
end
|
7649
|
+
end
|
7650
|
+
|
7293
7651
|
# DescribeBaselineList请求参数结构体
|
7294
7652
|
class DescribeBaselineListRequest < TencentCloud::Common::AbstractModel
|
7295
7653
|
# @param Limit: 分页参数 最大100条
|
@@ -18055,6 +18413,45 @@ module TencentCloud
|
|
18055
18413
|
end
|
18056
18414
|
end
|
18057
18415
|
|
18416
|
+
# StartBaselineDetect请求参数结构体
|
18417
|
+
class StartBaselineDetectRequest < TencentCloud::Common::AbstractModel
|
18418
|
+
# @param Param: 基线检测参数
|
18419
|
+
# @type Param: :class:`Tencentcloud::Cwp.v20180228.models.BaselineDetectParam`
|
18420
|
+
|
18421
|
+
attr_accessor :Param
|
18422
|
+
|
18423
|
+
def initialize(param=nil)
|
18424
|
+
@Param = param
|
18425
|
+
end
|
18426
|
+
|
18427
|
+
def deserialize(params)
|
18428
|
+
unless params['Param'].nil?
|
18429
|
+
@Param = BaselineDetectParam.new
|
18430
|
+
@Param.deserialize(params['Param'])
|
18431
|
+
end
|
18432
|
+
end
|
18433
|
+
end
|
18434
|
+
|
18435
|
+
# StartBaselineDetect返回参数结构体
|
18436
|
+
class StartBaselineDetectResponse < TencentCloud::Common::AbstractModel
|
18437
|
+
# @param TaskId: 扫描任务ID
|
18438
|
+
# @type TaskId: Integer
|
18439
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
18440
|
+
# @type RequestId: String
|
18441
|
+
|
18442
|
+
attr_accessor :TaskId, :RequestId
|
18443
|
+
|
18444
|
+
def initialize(taskid=nil, requestid=nil)
|
18445
|
+
@TaskId = taskid
|
18446
|
+
@RequestId = requestid
|
18447
|
+
end
|
18448
|
+
|
18449
|
+
def deserialize(params)
|
18450
|
+
@TaskId = params['TaskId']
|
18451
|
+
@RequestId = params['RequestId']
|
18452
|
+
end
|
18453
|
+
end
|
18454
|
+
|
18058
18455
|
# StopNoticeBanTips请求参数结构体
|
18059
18456
|
class StopNoticeBanTipsRequest < TencentCloud::Common::AbstractModel
|
18060
18457
|
|
@@ -18229,6 +18626,65 @@ module TencentCloud
|
|
18229
18626
|
end
|
18230
18627
|
end
|
18231
18628
|
|
18629
|
+
# SyncBaselineDetectSummary请求参数结构体
|
18630
|
+
class SyncBaselineDetectSummaryRequest < TencentCloud::Common::AbstractModel
|
18631
|
+
|
18632
|
+
|
18633
|
+
def initialize()
|
18634
|
+
end
|
18635
|
+
|
18636
|
+
def deserialize(params)
|
18637
|
+
end
|
18638
|
+
end
|
18639
|
+
|
18640
|
+
# SyncBaselineDetectSummary返回参数结构体
|
18641
|
+
class SyncBaselineDetectSummaryResponse < TencentCloud::Common::AbstractModel
|
18642
|
+
# @param ProgressRate: 处理进度
|
18643
|
+
# @type ProgressRate: Integer
|
18644
|
+
# @param NotPassPolicyCount: 未通过策略总数
|
18645
|
+
# @type NotPassPolicyCount: Integer
|
18646
|
+
# @param HostCount: 主机总数
|
18647
|
+
# @type HostCount: Integer
|
18648
|
+
# @param StartTime: 开始时间
|
18649
|
+
# @type StartTime: String
|
18650
|
+
# @param EndTime: 结束时间
|
18651
|
+
# @type EndTime: String
|
18652
|
+
# @param WillFirstScan: 1:即将进行首次扫描 0:已经扫描过了
|
18653
|
+
# @type WillFirstScan: Integer
|
18654
|
+
# @param DetectingTaskIds: 正在检测的任务ID
|
18655
|
+
# @type DetectingTaskIds: Array
|
18656
|
+
# @param LeftMins: 扫描中剩余时间(分钟)
|
18657
|
+
# @type LeftMins: Integer
|
18658
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
18659
|
+
# @type RequestId: String
|
18660
|
+
|
18661
|
+
attr_accessor :ProgressRate, :NotPassPolicyCount, :HostCount, :StartTime, :EndTime, :WillFirstScan, :DetectingTaskIds, :LeftMins, :RequestId
|
18662
|
+
|
18663
|
+
def initialize(progressrate=nil, notpasspolicycount=nil, hostcount=nil, starttime=nil, endtime=nil, willfirstscan=nil, detectingtaskids=nil, leftmins=nil, requestid=nil)
|
18664
|
+
@ProgressRate = progressrate
|
18665
|
+
@NotPassPolicyCount = notpasspolicycount
|
18666
|
+
@HostCount = hostcount
|
18667
|
+
@StartTime = starttime
|
18668
|
+
@EndTime = endtime
|
18669
|
+
@WillFirstScan = willfirstscan
|
18670
|
+
@DetectingTaskIds = detectingtaskids
|
18671
|
+
@LeftMins = leftmins
|
18672
|
+
@RequestId = requestid
|
18673
|
+
end
|
18674
|
+
|
18675
|
+
def deserialize(params)
|
18676
|
+
@ProgressRate = params['ProgressRate']
|
18677
|
+
@NotPassPolicyCount = params['NotPassPolicyCount']
|
18678
|
+
@HostCount = params['HostCount']
|
18679
|
+
@StartTime = params['StartTime']
|
18680
|
+
@EndTime = params['EndTime']
|
18681
|
+
@WillFirstScan = params['WillFirstScan']
|
18682
|
+
@DetectingTaskIds = params['DetectingTaskIds']
|
18683
|
+
@LeftMins = params['LeftMins']
|
18684
|
+
@RequestId = params['RequestId']
|
18685
|
+
end
|
18686
|
+
end
|
18687
|
+
|
18232
18688
|
# 标签信息
|
18233
18689
|
class Tag < TencentCloud::Common::AbstractModel
|
18234
18690
|
# @param Id: 标签ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cwp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.426
|
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-10-
|
11
|
+
date: 2022-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|