tencentcloud-sdk-cwp 3.0.582 → 3.0.584

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: 7933a29d48d05e0eced251fb702ac963df0a3f01
4
- data.tar.gz: 63354da4eb9f667cd204b96fb23e250644b48f40
3
+ metadata.gz: 58905d0f334a653068b017b3b448445dfbac02a6
4
+ data.tar.gz: d9ac91811180cea5030a8264b505b01844d6b236
5
5
  SHA512:
6
- metadata.gz: 527cfc013af66c0b8d21be0bdb39978794b51afbe9b2afb7a65437cadb8b105a645e07ac46512168659916b635b2d5a72b4ef63d177e34523f1ce8c3269b746d
7
- data.tar.gz: e5f199d2213a34e688f2b4490536d205fd2fe57e7c4958a09d0ce93e032bb6cf6bdc79992d29f66bf21c818798ab57bfa87b0e050f31d731a3dae460e25fc437
6
+ metadata.gz: be1bff8855bd8ba4e4b2a05ba4a8831e9e8514dcc201b8e9f2914e1d612c3d04d339d2e86285254186adda6c71b19ce31358ac6c84918224f9989187d46c96e7
7
+ data.tar.gz: 7b0b9f6fcb82705f52e45e28d04644592839369e1a71e280b5cbea2ba8aa6b338e6b1fbb7097fa94e8c1c3e1f434f5f0ef3f9f6ca5899fdef881a409fe3c0094
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.582
1
+ 3.0.584
@@ -4064,32 +4064,6 @@ module TencentCloud
4064
4064
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4065
4065
  end
4066
4066
 
4067
- # 下线
4068
-
4069
- # 更新或者插入用户告警设置(该接口废弃,请调用 ModifyWarningSetting )
4070
-
4071
- # @param request: Request instance for DescribeSaveOrUpdateWarnings.
4072
- # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeSaveOrUpdateWarningsRequest`
4073
- # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeSaveOrUpdateWarningsResponse`
4074
- def DescribeSaveOrUpdateWarnings(request)
4075
- body = send_request('DescribeSaveOrUpdateWarnings', request.serialize)
4076
- response = JSON.parse(body)
4077
- if response['Response'].key?('Error') == false
4078
- model = DescribeSaveOrUpdateWarningsResponse.new
4079
- model.deserialize(response['Response'])
4080
- model
4081
- else
4082
- code = response['Response']['Error']['Code']
4083
- message = response['Response']['Error']['Message']
4084
- reqid = response['Response']['RequestId']
4085
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4086
- end
4087
- rescue TencentCloud::Common::TencentCloudSDKException => e
4088
- raise e
4089
- rescue StandardError => e
4090
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4091
- end
4092
-
4093
4067
  # 查询木马扫描进度
4094
4068
 
4095
4069
  # @param request: Request instance for DescribeScanMalwareSchedule.
@@ -4788,6 +4762,30 @@ module TencentCloud
4788
4762
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4789
4763
  end
4790
4764
 
4765
+ # 获取漏洞库列表
4766
+
4767
+ # @param request: Request instance for DescribeVulStoreList.
4768
+ # @type request: :class:`Tencentcloud::cwp::V20180228::DescribeVulStoreListRequest`
4769
+ # @rtype: :class:`Tencentcloud::cwp::V20180228::DescribeVulStoreListResponse`
4770
+ def DescribeVulStoreList(request)
4771
+ body = send_request('DescribeVulStoreList', request.serialize)
4772
+ response = JSON.parse(body)
4773
+ if response['Response'].key?('Error') == false
4774
+ model = DescribeVulStoreListResponse.new
4775
+ model.deserialize(response['Response'])
4776
+ model
4777
+ else
4778
+ code = response['Response']['Error']['Code']
4779
+ message = response['Response']['Error']['Message']
4780
+ reqid = response['Response']['RequestId']
4781
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4782
+ end
4783
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4784
+ raise e
4785
+ rescue StandardError => e
4786
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4787
+ end
4788
+
4791
4789
  # 漏洞top统计
4792
4790
 
4793
4791
  # @param request: Request instance for DescribeVulTop.
@@ -2208,7 +2208,6 @@ module TencentCloud
2208
2208
  # @param MachineName: 主机名称
2209
2209
  # @type MachineName: String
2210
2210
  # @param UpdateTime: 数据更新时间
2211
- # 注意:此字段可能返回 null,表示取不到有效值。
2212
2211
  # @type UpdateTime: String
2213
2212
  # @param FirstTime: 首次采集时间
2214
2213
  # @type FirstTime: String
@@ -2217,10 +2216,12 @@ module TencentCloud
2217
2216
  # @param MachineExtraInfo: 附加信息
2218
2217
  # 注意:此字段可能返回 null,表示取不到有效值。
2219
2218
  # @type MachineExtraInfo: :class:`Tencentcloud::Cwp.v20180228.models.MachineExtraInfo`
2219
+ # @param Path: 应用路径
2220
+ # @type Path: String
2220
2221
 
2221
- attr_accessor :MachineIp, :MachineWanIp, :Quuid, :Uuid, :OsInfo, :ProjectId, :Tag, :Name, :Version, :Lang, :ServiceType, :MachineName, :UpdateTime, :FirstTime, :IsNew, :MachineExtraInfo
2222
+ attr_accessor :MachineIp, :MachineWanIp, :Quuid, :Uuid, :OsInfo, :ProjectId, :Tag, :Name, :Version, :Lang, :ServiceType, :MachineName, :UpdateTime, :FirstTime, :IsNew, :MachineExtraInfo, :Path
2222
2223
 
2223
- def initialize(machineip=nil, machinewanip=nil, quuid=nil, uuid=nil, osinfo=nil, projectid=nil, tag=nil, name=nil, version=nil, lang=nil, servicetype=nil, machinename=nil, updatetime=nil, firsttime=nil, isnew=nil, machineextrainfo=nil)
2224
+ def initialize(machineip=nil, machinewanip=nil, quuid=nil, uuid=nil, osinfo=nil, projectid=nil, tag=nil, name=nil, version=nil, lang=nil, servicetype=nil, machinename=nil, updatetime=nil, firsttime=nil, isnew=nil, machineextrainfo=nil, path=nil)
2224
2225
  @MachineIp = machineip
2225
2226
  @MachineWanIp = machinewanip
2226
2227
  @Quuid = quuid
@@ -2237,6 +2238,7 @@ module TencentCloud
2237
2238
  @FirstTime = firsttime
2238
2239
  @IsNew = isnew
2239
2240
  @MachineExtraInfo = machineextrainfo
2241
+ @Path = path
2240
2242
  end
2241
2243
 
2242
2244
  def deserialize(params)
@@ -2266,6 +2268,7 @@ module TencentCloud
2266
2268
  @MachineExtraInfo = MachineExtraInfo.new
2267
2269
  @MachineExtraInfo.deserialize(params['MachineExtraInfo'])
2268
2270
  end
2271
+ @Path = params['Path']
2269
2272
  end
2270
2273
  end
2271
2274
 
@@ -14489,45 +14492,6 @@ module TencentCloud
14489
14492
  end
14490
14493
  end
14491
14494
 
14492
- # DescribeSaveOrUpdateWarnings请求参数结构体
14493
- class DescribeSaveOrUpdateWarningsRequest < TencentCloud::Common::AbstractModel
14494
- # @param WarningObjects: 告警设置的修改内容
14495
- # @type WarningObjects: Array
14496
-
14497
- attr_accessor :WarningObjects
14498
-
14499
- def initialize(warningobjects=nil)
14500
- @WarningObjects = warningobjects
14501
- end
14502
-
14503
- def deserialize(params)
14504
- unless params['WarningObjects'].nil?
14505
- @WarningObjects = []
14506
- params['WarningObjects'].each do |i|
14507
- warningobject_tmp = WarningObject.new
14508
- warningobject_tmp.deserialize(i)
14509
- @WarningObjects << warningobject_tmp
14510
- end
14511
- end
14512
- end
14513
- end
14514
-
14515
- # DescribeSaveOrUpdateWarnings返回参数结构体
14516
- class DescribeSaveOrUpdateWarningsResponse < TencentCloud::Common::AbstractModel
14517
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
14518
- # @type RequestId: String
14519
-
14520
- attr_accessor :RequestId
14521
-
14522
- def initialize(requestid=nil)
14523
- @RequestId = requestid
14524
- end
14525
-
14526
- def deserialize(params)
14527
- @RequestId = params['RequestId']
14528
- end
14529
- end
14530
-
14531
14495
  # DescribeScanMalwareSchedule请求参数结构体
14532
14496
  class DescribeScanMalwareScheduleRequest < TencentCloud::Common::AbstractModel
14533
14497
 
@@ -16486,6 +16450,90 @@ module TencentCloud
16486
16450
  end
16487
16451
  end
16488
16452
 
16453
+ # DescribeVulStoreList请求参数结构体
16454
+ class DescribeVulStoreListRequest < TencentCloud::Common::AbstractModel
16455
+ # @param Filters: <li>VulName- string - 是否必填:否 - 漏洞名称</li>
16456
+ # <li>CveId- string - 是否必填:否 - cveid</li>
16457
+ # <li>VulCategory- string - 是否必填:否 - 漏洞分类 1 Web-CMS漏洞 ,2 应用漏洞 ,4 Linux软件漏洞,5 Windows系统漏洞</li>
16458
+ # <li>Method- string - 是否必填:否 - 检测方法 0版本对比,1 poc检测 </li>
16459
+ # <li>SupportDefense- string - 是否必填:否 - 是否支持防御 0不支持,1支持</li>
16460
+ # <li>FixSwitch- string - 是否必填:否 - 是否支持自动修复 0不支持,1支持</li>
16461
+ # @type Filters: Array
16462
+ # @param Limit: 限制条数,默认10,最大100
16463
+ # @type Limit: Integer
16464
+ # @param Offset: 偏移量,默认0
16465
+ # @type Offset: Integer
16466
+ # @param Order: 排序方式: [ASC:升序|DESC:降序]
16467
+ # @type Order: String
16468
+ # @param By: 可选排序列: [PublishDate]
16469
+ # @type By: String
16470
+
16471
+ attr_accessor :Filters, :Limit, :Offset, :Order, :By
16472
+
16473
+ def initialize(filters=nil, limit=nil, offset=nil, order=nil, by=nil)
16474
+ @Filters = filters
16475
+ @Limit = limit
16476
+ @Offset = offset
16477
+ @Order = order
16478
+ @By = by
16479
+ end
16480
+
16481
+ def deserialize(params)
16482
+ unless params['Filters'].nil?
16483
+ @Filters = []
16484
+ params['Filters'].each do |i|
16485
+ filter_tmp = Filter.new
16486
+ filter_tmp.deserialize(i)
16487
+ @Filters << filter_tmp
16488
+ end
16489
+ end
16490
+ @Limit = params['Limit']
16491
+ @Offset = params['Offset']
16492
+ @Order = params['Order']
16493
+ @By = params['By']
16494
+ end
16495
+ end
16496
+
16497
+ # DescribeVulStoreList返回参数结构体
16498
+ class DescribeVulStoreListResponse < TencentCloud::Common::AbstractModel
16499
+ # @param List: 漏洞信息
16500
+ # 注意:此字段可能返回 null,表示取不到有效值。
16501
+ # @type List: Array
16502
+ # @param TotalCount: 总数
16503
+ # @type TotalCount: Integer
16504
+ # @param Remaining: 今日剩余搜索此时
16505
+ # @type Remaining: Integer
16506
+ # @param FreeSearchTimes: 免费搜索次数
16507
+ # @type FreeSearchTimes: Integer
16508
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
16509
+ # @type RequestId: String
16510
+
16511
+ attr_accessor :List, :TotalCount, :Remaining, :FreeSearchTimes, :RequestId
16512
+
16513
+ def initialize(list=nil, totalcount=nil, remaining=nil, freesearchtimes=nil, requestid=nil)
16514
+ @List = list
16515
+ @TotalCount = totalcount
16516
+ @Remaining = remaining
16517
+ @FreeSearchTimes = freesearchtimes
16518
+ @RequestId = requestid
16519
+ end
16520
+
16521
+ def deserialize(params)
16522
+ unless params['List'].nil?
16523
+ @List = []
16524
+ params['List'].each do |i|
16525
+ vulstorelistinfo_tmp = VulStoreListInfo.new
16526
+ vulstorelistinfo_tmp.deserialize(i)
16527
+ @List << vulstorelistinfo_tmp
16528
+ end
16529
+ end
16530
+ @TotalCount = params['TotalCount']
16531
+ @Remaining = params['Remaining']
16532
+ @FreeSearchTimes = params['FreeSearchTimes']
16533
+ @RequestId = params['RequestId']
16534
+ end
16535
+ end
16536
+
16489
16537
  # DescribeVulTop请求参数结构体
16490
16538
  class DescribeVulTopRequest < TencentCloud::Common::AbstractModel
16491
16539
  # @param Top: 漏洞风险服务器top,1-100
@@ -24438,6 +24486,60 @@ module TencentCloud
24438
24486
  end
24439
24487
  end
24440
24488
 
24489
+ # 漏洞仓库列表信息
24490
+ class VulStoreListInfo < TencentCloud::Common::AbstractModel
24491
+ # @param VulId: 漏洞ID
24492
+ # @type VulId: Integer
24493
+ # @param Level: 漏洞级别
24494
+ # @type Level: Integer
24495
+ # @param Name: 漏洞名称
24496
+ # @type Name: String
24497
+ # @param CveId: cve编号
24498
+ # @type CveId: String
24499
+ # @param VulCategory: 1: web-cms漏洞 2:应用漏洞 4: Linux软件漏洞 5: Windows系统漏洞 0= 应急漏洞
24500
+ # @type VulCategory: Integer
24501
+ # @param PublishDate: 发布时间
24502
+ # @type PublishDate: String
24503
+ # @param Method: 漏洞检测方法 0 - 版本比对, 1 - POC验证
24504
+ # @type Method: Integer
24505
+ # @param AttackLevel: 漏洞攻击热度
24506
+ # @type AttackLevel: Integer
24507
+ # @param FixSwitch: 漏洞是否支持自动修复
24508
+ # 0-windows/linux均关闭; 1-windows/linux均打开; 2-仅linux; 3-仅windows
24509
+ # @type FixSwitch: Integer
24510
+ # @param SupportDefense: 漏洞是否支持防御
24511
+ # 0:不支持 1:支持
24512
+ # @type SupportDefense: Integer
24513
+
24514
+ attr_accessor :VulId, :Level, :Name, :CveId, :VulCategory, :PublishDate, :Method, :AttackLevel, :FixSwitch, :SupportDefense
24515
+
24516
+ def initialize(vulid=nil, level=nil, name=nil, cveid=nil, vulcategory=nil, publishdate=nil, method=nil, attacklevel=nil, fixswitch=nil, supportdefense=nil)
24517
+ @VulId = vulid
24518
+ @Level = level
24519
+ @Name = name
24520
+ @CveId = cveid
24521
+ @VulCategory = vulcategory
24522
+ @PublishDate = publishdate
24523
+ @Method = method
24524
+ @AttackLevel = attacklevel
24525
+ @FixSwitch = fixswitch
24526
+ @SupportDefense = supportdefense
24527
+ end
24528
+
24529
+ def deserialize(params)
24530
+ @VulId = params['VulId']
24531
+ @Level = params['Level']
24532
+ @Name = params['Name']
24533
+ @CveId = params['CveId']
24534
+ @VulCategory = params['VulCategory']
24535
+ @PublishDate = params['PublishDate']
24536
+ @Method = params['Method']
24537
+ @AttackLevel = params['AttackLevel']
24538
+ @FixSwitch = params['FixSwitch']
24539
+ @SupportDefense = params['SupportDefense']
24540
+ end
24541
+ end
24542
+
24441
24543
  # 漏洞top统计实体
24442
24544
  class VulTopInfo < TencentCloud::Common::AbstractModel
24443
24545
  # @param VulName: 漏洞 名
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.582
4
+ version: 3.0.584
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-01 00:00:00.000000000 Z
11
+ date: 2023-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common