tencentcloud-sdk-bsca 3.0.930 → 3.0.932

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20210811/models.rb +142 -13
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d9e6556dc35a3c41361134cc8553cca3f13d3f0
4
- data.tar.gz: 28e72c734672bbae038d981a9712d5b950969654
3
+ metadata.gz: 3adc4a17c01acff6620e778d362d7c3643dc240b
4
+ data.tar.gz: a02ed9503c12afc0816bcfbbb83d2a2f89de298b
5
5
  SHA512:
6
- metadata.gz: 2c4eac005686dcb2379ce93b0c44dcc7e577f02dc1666ee02cd0c7c7ccf0cb7d49f8b88df894d8236555159093041233a1ce93f0b78c5fdc9f76db15af97b31e
7
- data.tar.gz: a5c5cd31cfe266c152b32f7a1808eafe0755374a969d949fa2ec203810738ac293e7d65860e330c9e1ab434d469b505f046c7e22f4574178679306708b8f75cc
6
+ metadata.gz: 8fd3b2b05cd506619d1a827ef8d6394983ed7e8fd395d882ad896418433c115d256836d8bfba83700f34256734b8a6c3462119797dc0f9ce59dac150db7cbe33
7
+ data.tar.gz: 5251f4cae7c12c23910aa7446d278ea7d03f3521240b56027602a472446c2fe5f2fe55a9c9265fedbf406f764b33c5bff962266bb905b0d42ebc0cdc58278f22
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.930
1
+ 3.0.932
@@ -202,16 +202,28 @@ module TencentCloud
202
202
  # @type CodeLocationList: Array
203
203
  # @param LicenseExpression: 第三方组件的许可证表达式
204
204
  # @type LicenseExpression: String
205
+ # @param VersionInfo: 第三方组件的版本信息(如果匹配到版本)
206
+ # 注意:此字段可能返回 null,表示取不到有效值。
207
+ # @type VersionInfo: :class:`Tencentcloud::Bsca.v20210811.models.ComponentVersionInfo`
208
+ # @param LastUpdateTime: 第三方组件的最后更新时间
209
+ # 注意:此字段可能返回 null,表示取不到有效值。
210
+ # @type LastUpdateTime: String
211
+ # @param TagList: 第三方组件的类型标签
212
+ # 注意:此字段可能返回 null,表示取不到有效值。
213
+ # @type TagList: Array
205
214
 
206
- attr_accessor :PURL, :Homepage, :Summary, :NicknameList, :CodeLocationList, :LicenseExpression
215
+ attr_accessor :PURL, :Homepage, :Summary, :NicknameList, :CodeLocationList, :LicenseExpression, :VersionInfo, :LastUpdateTime, :TagList
207
216
 
208
- def initialize(purl=nil, homepage=nil, summary=nil, nicknamelist=nil, codelocationlist=nil, licenseexpression=nil)
217
+ def initialize(purl=nil, homepage=nil, summary=nil, nicknamelist=nil, codelocationlist=nil, licenseexpression=nil, versioninfo=nil, lastupdatetime=nil, taglist=nil)
209
218
  @PURL = purl
210
219
  @Homepage = homepage
211
220
  @Summary = summary
212
221
  @NicknameList = nicknamelist
213
222
  @CodeLocationList = codelocationlist
214
223
  @LicenseExpression = licenseexpression
224
+ @VersionInfo = versioninfo
225
+ @LastUpdateTime = lastupdatetime
226
+ @TagList = taglist
215
227
  end
216
228
 
217
229
  def deserialize(params)
@@ -224,10 +236,36 @@ module TencentCloud
224
236
  @NicknameList = params['NicknameList']
225
237
  @CodeLocationList = params['CodeLocationList']
226
238
  @LicenseExpression = params['LicenseExpression']
239
+ unless params['VersionInfo'].nil?
240
+ @VersionInfo = ComponentVersionInfo.new
241
+ @VersionInfo.deserialize(params['VersionInfo'])
242
+ end
243
+ @LastUpdateTime = params['LastUpdateTime']
244
+ @TagList = params['TagList']
245
+ end
246
+ end
247
+
248
+ # 筛选条件,同一个Tag不能同时出现在IncludeTags和ExcludeTags,可能的Tag包括:"CopyrightUpdated", "LicenseUpdated", "ContainsVulnerability"
249
+ class ComponentTagFilter < TencentCloud::Common::AbstractModel
250
+ # @param IncludeTags: 包括的Tag
251
+ # @type IncludeTags: Array
252
+ # @param ExcludeTags: 排除的Tag
253
+ # @type ExcludeTags: Array
254
+
255
+ attr_accessor :IncludeTags, :ExcludeTags
256
+
257
+ def initialize(includetags=nil, excludetags=nil)
258
+ @IncludeTags = includetags
259
+ @ExcludeTags = excludetags
260
+ end
261
+
262
+ def deserialize(params)
263
+ @IncludeTags = params['IncludeTags']
264
+ @ExcludeTags = params['ExcludeTags']
227
265
  end
228
266
  end
229
267
 
230
- # 描述组件的一条版本信息。
268
+ # 描述一个组件版本。
231
269
  class ComponentVersion < TencentCloud::Common::AbstractModel
232
270
  # @param PURL: 该组件的PURL
233
271
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -235,12 +273,16 @@ module TencentCloud
235
273
  # @param LicenseExpression: 该组件版本的许可证表达式
236
274
  # 注意:此字段可能返回 null,表示取不到有效值。
237
275
  # @type LicenseExpression: String
276
+ # @param VersionInfo: 组件的版本信息
277
+ # 注意:此字段可能返回 null,表示取不到有效值。
278
+ # @type VersionInfo: :class:`Tencentcloud::Bsca.v20210811.models.ComponentVersionInfo`
238
279
 
239
- attr_accessor :PURL, :LicenseExpression
280
+ attr_accessor :PURL, :LicenseExpression, :VersionInfo
240
281
 
241
- def initialize(purl=nil, licenseexpression=nil)
282
+ def initialize(purl=nil, licenseexpression=nil, versioninfo=nil)
242
283
  @PURL = purl
243
284
  @LicenseExpression = licenseexpression
285
+ @VersionInfo = versioninfo
244
286
  end
245
287
 
246
288
  def deserialize(params)
@@ -249,6 +291,37 @@ module TencentCloud
249
291
  @PURL.deserialize(params['PURL'])
250
292
  end
251
293
  @LicenseExpression = params['LicenseExpression']
294
+ unless params['VersionInfo'].nil?
295
+ @VersionInfo = ComponentVersionInfo.new
296
+ @VersionInfo.deserialize(params['VersionInfo'])
297
+ end
298
+ end
299
+ end
300
+
301
+ # 描述组件版本的详情,包含组件发布时间、Copyright列表、组件描述Tag。
302
+ class ComponentVersionInfo < TencentCloud::Common::AbstractModel
303
+ # @param PublishTime: 版本发布时间
304
+ # 注意:此字段可能返回 null,表示取不到有效值。
305
+ # @type PublishTime: String
306
+ # @param CopyrightList: 当前版本的所有copyright
307
+ # 注意:此字段可能返回 null,表示取不到有效值。
308
+ # @type CopyrightList: Array
309
+ # @param TagList: 版本标签
310
+ # 注意:此字段可能返回 null,表示取不到有效值。
311
+ # @type TagList: Array
312
+
313
+ attr_accessor :PublishTime, :CopyrightList, :TagList
314
+
315
+ def initialize(publishtime=nil, copyrightlist=nil, taglist=nil)
316
+ @PublishTime = publishtime
317
+ @CopyrightList = copyrightlist
318
+ @TagList = taglist
319
+ end
320
+
321
+ def deserialize(params)
322
+ @PublishTime = params['PublishTime']
323
+ @CopyrightList = params['CopyrightList']
324
+ @TagList = params['TagList']
252
325
  end
253
326
  end
254
327
 
@@ -368,11 +441,26 @@ module TencentCloud
368
441
  class DescribeKBComponentVersionListRequest < TencentCloud::Common::AbstractModel
369
442
  # @param PURL: 要查询的组件 PURL
370
443
  # @type PURL: :class:`Tencentcloud::Bsca.v20210811.models.PURL`
444
+ # @param PageNumber: 页号
445
+ # @type PageNumber: Integer
446
+ # @param PageSize: 页大小
447
+ # @type PageSize: Integer
448
+ # @param Order: 排序方式,可以是"ASC"或"DESC",默认"DESC"
449
+ # @type Order: String
450
+ # @param OrderBy: 排序字段,可能的字段包括“Version”、"PublishTime"
451
+ # @type OrderBy: Array
452
+ # @param Filter: Tag筛选
453
+ # @type Filter: :class:`Tencentcloud::Bsca.v20210811.models.ComponentTagFilter`
371
454
 
372
- attr_accessor :PURL
455
+ attr_accessor :PURL, :PageNumber, :PageSize, :Order, :OrderBy, :Filter
373
456
 
374
- def initialize(purl=nil)
457
+ def initialize(purl=nil, pagenumber=nil, pagesize=nil, order=nil, orderby=nil, filter=nil)
375
458
  @PURL = purl
459
+ @PageNumber = pagenumber
460
+ @PageSize = pagesize
461
+ @Order = order
462
+ @OrderBy = orderby
463
+ @Filter = filter
376
464
  end
377
465
 
378
466
  def deserialize(params)
@@ -380,6 +468,14 @@ module TencentCloud
380
468
  @PURL = PURL.new
381
469
  @PURL.deserialize(params['PURL'])
382
470
  end
471
+ @PageNumber = params['PageNumber']
472
+ @PageSize = params['PageSize']
473
+ @Order = params['Order']
474
+ @OrderBy = params['OrderBy']
475
+ unless params['Filter'].nil?
476
+ @Filter = ComponentTagFilter.new
477
+ @Filter.deserialize(params['Filter'])
478
+ end
383
479
  end
384
480
  end
385
481
 
@@ -438,13 +534,19 @@ module TencentCloud
438
534
  # @param VulnerabilityList: 漏洞信息列表
439
535
  # 注意:此字段可能返回 null,表示取不到有效值。
440
536
  # @type VulnerabilityList: Array
537
+ # @param PURL: 组件purl
538
+ # @type PURL: :class:`Tencentcloud::Bsca.v20210811.models.PURL`
539
+ # @param RecommendedVersion: 推荐版本,当前版本中的所有漏洞都修复了的版本
540
+ # @type RecommendedVersion: String
441
541
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
442
542
  # @type RequestId: String
443
543
 
444
- attr_accessor :VulnerabilityList, :RequestId
544
+ attr_accessor :VulnerabilityList, :PURL, :RecommendedVersion, :RequestId
445
545
 
446
- def initialize(vulnerabilitylist=nil, requestid=nil)
546
+ def initialize(vulnerabilitylist=nil, purl=nil, recommendedversion=nil, requestid=nil)
447
547
  @VulnerabilityList = vulnerabilitylist
548
+ @PURL = purl
549
+ @RecommendedVersion = recommendedversion
448
550
  @RequestId = requestid
449
551
  end
450
552
 
@@ -457,6 +559,11 @@ module TencentCloud
457
559
  @VulnerabilityList << componentvulnerabilityunion_tmp
458
560
  end
459
561
  end
562
+ unless params['PURL'].nil?
563
+ @PURL = PURL.new
564
+ @PURL.deserialize(params['PURL'])
565
+ end
566
+ @RecommendedVersion = params['RecommendedVersion']
460
567
  @RequestId = params['RequestId']
461
568
  end
462
569
  end
@@ -896,6 +1003,8 @@ module TencentCloud
896
1003
  # @type CVSSv3Info: :class:`Tencentcloud::Bsca.v20210811.models.CVSSV3Info`
897
1004
  # @param SubmitTime: 漏洞提交时间
898
1005
  # @type SubmitTime: String
1006
+ # @param UpdateTime: 漏洞更新时间
1007
+ # @type UpdateTime: String
899
1008
  # @param CWEID: CWE编号
900
1009
  # @type CWEID: String
901
1010
  # @param CVSSv2Vector: 漏洞CVSSv2向量
@@ -905,9 +1014,9 @@ module TencentCloud
905
1014
  # @param AffectedComponentList: 漏洞影响的组件列表,仅当查询单个漏洞时有效
906
1015
  # @type AffectedComponentList: Array
907
1016
 
908
- attr_accessor :Category, :CategoryType, :Description, :OfficialSolution, :ReferenceList, :DefenseSolution, :CVSSv2Info, :CVSSv3Info, :SubmitTime, :CWEID, :CVSSv2Vector, :CVSSv3Vector, :AffectedComponentList
1017
+ attr_accessor :Category, :CategoryType, :Description, :OfficialSolution, :ReferenceList, :DefenseSolution, :CVSSv2Info, :CVSSv3Info, :SubmitTime, :UpdateTime, :CWEID, :CVSSv2Vector, :CVSSv3Vector, :AffectedComponentList
909
1018
 
910
- def initialize(category=nil, categorytype=nil, description=nil, officialsolution=nil, referencelist=nil, defensesolution=nil, cvssv2info=nil, cvssv3info=nil, submittime=nil, cweid=nil, cvssv2vector=nil, cvssv3vector=nil, affectedcomponentlist=nil)
1019
+ def initialize(category=nil, categorytype=nil, description=nil, officialsolution=nil, referencelist=nil, defensesolution=nil, cvssv2info=nil, cvssv3info=nil, submittime=nil, updatetime=nil, cweid=nil, cvssv2vector=nil, cvssv3vector=nil, affectedcomponentlist=nil)
911
1020
  @Category = category
912
1021
  @CategoryType = categorytype
913
1022
  @Description = description
@@ -917,6 +1026,7 @@ module TencentCloud
917
1026
  @CVSSv2Info = cvssv2info
918
1027
  @CVSSv3Info = cvssv3info
919
1028
  @SubmitTime = submittime
1029
+ @UpdateTime = updatetime
920
1030
  @CWEID = cweid
921
1031
  @CVSSv2Vector = cvssv2vector
922
1032
  @CVSSv3Vector = cvssv3vector
@@ -939,6 +1049,7 @@ module TencentCloud
939
1049
  @CVSSv3Info.deserialize(params['CVSSv3Info'])
940
1050
  end
941
1051
  @SubmitTime = params['SubmitTime']
1052
+ @UpdateTime = params['UpdateTime']
942
1053
  @CWEID = params['CWEID']
943
1054
  @CVSSv2Vector = params['CVSSv2Vector']
944
1055
  @CVSSv3Vector = params['CVSSv3Vector']
@@ -973,10 +1084,22 @@ module TencentCloud
973
1084
  # <li>Medium</li>
974
1085
  # <li>Low</li>
975
1086
  # @type Severity: String
1087
+ # @param Architecture: 架构信息,如x86、ARM等,废弃,请使用ArchitectureList
1088
+ # 注意:此字段可能返回 null,表示取不到有效值。
1089
+ # @type Architecture: Array
1090
+ # @param ArchitectureList: 架构信息,如x86、ARM等
1091
+ # 注意:此字段可能返回 null,表示取不到有效值。
1092
+ # @type ArchitectureList: Array
1093
+ # @param PatchUrlList: patch链接
1094
+ # 注意:此字段可能返回 null,表示取不到有效值。
1095
+ # @type PatchUrlList: Array
976
1096
 
977
- attr_accessor :VulID, :CVEID, :CNVDID, :CNNVDID, :Name, :IsSuggest, :Severity
1097
+ attr_accessor :VulID, :CVEID, :CNVDID, :CNNVDID, :Name, :IsSuggest, :Severity, :Architecture, :ArchitectureList, :PatchUrlList
1098
+ extend Gem::Deprecate
1099
+ deprecate :Architecture, :none, 2024, 10
1100
+ deprecate :Architecture=, :none, 2024, 10
978
1101
 
979
- def initialize(vulid=nil, cveid=nil, cnvdid=nil, cnnvdid=nil, name=nil, issuggest=nil, severity=nil)
1102
+ def initialize(vulid=nil, cveid=nil, cnvdid=nil, cnnvdid=nil, name=nil, issuggest=nil, severity=nil, architecture=nil, architecturelist=nil, patchurllist=nil)
980
1103
  @VulID = vulid
981
1104
  @CVEID = cveid
982
1105
  @CNVDID = cnvdid
@@ -984,6 +1107,9 @@ module TencentCloud
984
1107
  @Name = name
985
1108
  @IsSuggest = issuggest
986
1109
  @Severity = severity
1110
+ @Architecture = architecture
1111
+ @ArchitectureList = architecturelist
1112
+ @PatchUrlList = patchurllist
987
1113
  end
988
1114
 
989
1115
  def deserialize(params)
@@ -994,6 +1120,9 @@ module TencentCloud
994
1120
  @Name = params['Name']
995
1121
  @IsSuggest = params['IsSuggest']
996
1122
  @Severity = params['Severity']
1123
+ @Architecture = params['Architecture']
1124
+ @ArchitectureList = params['ArchitectureList']
1125
+ @PatchUrlList = params['PatchUrlList']
997
1126
  end
998
1127
  end
999
1128
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-bsca
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.930
4
+ version: 3.0.932
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-22 00:00:00.000000000 Z
11
+ date: 2024-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common