tencentcloud-sdk-bsca 3.0.677 → 3.0.678

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: 440439b0ed35f5f7196aa0ad43fa1f89252f4d45
4
- data.tar.gz: ec2f1067b7bf1d5a903a517bdff1e4046c246885
3
+ metadata.gz: 79dec0de578dc7e3e8ec40fb66823bbcece92aab
4
+ data.tar.gz: 46c782b5c5d444ff47ee0010dd911dcd3592302b
5
5
  SHA512:
6
- metadata.gz: 242011b249409e70049059470a66b1cd82cc30b1105c9d32e9dff3f9ca38c2169dc00db3e8bfc93dbb2ef4a0da137435b64863bf7c38bc8b430737330543dde3
7
- data.tar.gz: 3f10c340d371222f9a4452a3e5aab03341f567076bfff390b5cae2f94bbf7c575a288171a554e63d74c7b9a1773cbad5b8a9905f92c334bc97c8825142ee88c0
6
+ metadata.gz: d29223515fc74469566548598750b94b2dd29da2b98408a35bedef6973796f07a034a981c16daab943ecf942a05a9656f6142e7fc6f6bc00c60ff9c61237cafa
7
+ data.tar.gz: fa9ca98141fc5b55b593986eebd2bea3fe319d7480eeb97099ed1215824c47d357c96d21d87b46a0a547e3ca3e2f6194e248150bd1fd388317a0675f55674f4c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.677
1
+ 3.0.678
@@ -53,6 +53,30 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 查询特定组件的版本列表
57
+
58
+ # @param request: Request instance for DescribeKBComponentVersionList.
59
+ # @type request: :class:`Tencentcloud::bsca::V20210811::DescribeKBComponentVersionListRequest`
60
+ # @rtype: :class:`Tencentcloud::bsca::V20210811::DescribeKBComponentVersionListResponse`
61
+ def DescribeKBComponentVersionList(request)
62
+ body = send_request('DescribeKBComponentVersionList', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeKBComponentVersionListResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
56
80
  # 本接口(DescribeKBComponentVulnerability)用于在知识库中查询开源组件的漏洞信息。
57
81
 
58
82
  # @param request: Request instance for DescribeKBComponentVulnerability.
@@ -149,6 +173,30 @@ module TencentCloud
149
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
174
  end
151
175
 
176
+ # 根据输入的组件名、组件类型搜索相应的组件,返回符合条件的组件列表
177
+
178
+ # @param request: Request instance for SearchKBComponent.
179
+ # @type request: :class:`Tencentcloud::bsca::V20210811::SearchKBComponentRequest`
180
+ # @rtype: :class:`Tencentcloud::bsca::V20210811::SearchKBComponentResponse`
181
+ def SearchKBComponent(request)
182
+ body = send_request('SearchKBComponent', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = SearchKBComponentResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
152
200
 
153
201
  end
154
202
  end
@@ -200,6 +200,31 @@ module TencentCloud
200
200
  end
201
201
  end
202
202
 
203
+ # 描述组件的一条版本信息。
204
+ class ComponentVersion < TencentCloud::Common::AbstractModel
205
+ # @param PURL: 该组件的PURL
206
+ # 注意:此字段可能返回 null,表示取不到有效值。
207
+ # @type PURL: :class:`Tencentcloud::Bsca.v20210811.models.PURL`
208
+ # @param LicenseExpression: 该组件版本的许可证表达式
209
+ # 注意:此字段可能返回 null,表示取不到有效值。
210
+ # @type LicenseExpression: String
211
+
212
+ attr_accessor :PURL, :LicenseExpression
213
+
214
+ def initialize(purl=nil, licenseexpression=nil)
215
+ @PURL = purl
216
+ @LicenseExpression = licenseexpression
217
+ end
218
+
219
+ def deserialize(params)
220
+ unless params['PURL'].nil?
221
+ @PURL = PURL.new
222
+ @PURL.deserialize(params['PURL'])
223
+ end
224
+ @LicenseExpression = params['LicenseExpression']
225
+ end
226
+ end
227
+
203
228
  # 与输入组件相关的漏洞信息摘要信息。
204
229
  class ComponentVulnerabilitySummary < TencentCloud::Common::AbstractModel
205
230
  # @param PURL: 用于匹配漏洞的PURL
@@ -312,6 +337,52 @@ module TencentCloud
312
337
  end
313
338
  end
314
339
 
340
+ # DescribeKBComponentVersionList请求参数结构体
341
+ class DescribeKBComponentVersionListRequest < TencentCloud::Common::AbstractModel
342
+ # @param PURL: 要查询的组件 PURL
343
+ # @type PURL: :class:`Tencentcloud::Bsca.v20210811.models.PURL`
344
+
345
+ attr_accessor :PURL
346
+
347
+ def initialize(purl=nil)
348
+ @PURL = purl
349
+ end
350
+
351
+ def deserialize(params)
352
+ unless params['PURL'].nil?
353
+ @PURL = PURL.new
354
+ @PURL.deserialize(params['PURL'])
355
+ end
356
+ end
357
+ end
358
+
359
+ # DescribeKBComponentVersionList返回参数结构体
360
+ class DescribeKBComponentVersionListResponse < TencentCloud::Common::AbstractModel
361
+ # @param VersionList: 该组件的版本列表信息
362
+ # @type VersionList: Array
363
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
364
+ # @type RequestId: String
365
+
366
+ attr_accessor :VersionList, :RequestId
367
+
368
+ def initialize(versionlist=nil, requestid=nil)
369
+ @VersionList = versionlist
370
+ @RequestId = requestid
371
+ end
372
+
373
+ def deserialize(params)
374
+ unless params['VersionList'].nil?
375
+ @VersionList = []
376
+ params['VersionList'].each do |i|
377
+ componentversion_tmp = ComponentVersion.new
378
+ componentversion_tmp.deserialize(i)
379
+ @VersionList << componentversion_tmp
380
+ end
381
+ end
382
+ @RequestId = params['RequestId']
383
+ end
384
+ end
385
+
315
386
  # DescribeKBComponentVulnerability请求参数结构体
316
387
  class DescribeKBComponentVulnerabilityRequest < TencentCloud::Common::AbstractModel
317
388
  # @param PURL: 组件的PURL,其中Name和Version为必填字段
@@ -701,6 +772,65 @@ module TencentCloud
701
772
  end
702
773
  end
703
774
 
775
+ # SearchKBComponent请求参数结构体
776
+ class SearchKBComponentRequest < TencentCloud::Common::AbstractModel
777
+ # @param Query: 需要搜索的组件名
778
+ # @type Query: String
779
+ # @param Protocol: 需要搜索的组件类型
780
+ # @type Protocol: String
781
+ # @param PageNumber: 分页参数,从 0 开始
782
+ # @type PageNumber: Integer
783
+ # @param PageSize: 分页参数,设置每页返回的结果数量
784
+ # @type PageSize: Integer
785
+
786
+ attr_accessor :Query, :Protocol, :PageNumber, :PageSize
787
+
788
+ def initialize(query=nil, protocol=nil, pagenumber=nil, pagesize=nil)
789
+ @Query = query
790
+ @Protocol = protocol
791
+ @PageNumber = pagenumber
792
+ @PageSize = pagesize
793
+ end
794
+
795
+ def deserialize(params)
796
+ @Query = params['Query']
797
+ @Protocol = params['Protocol']
798
+ @PageNumber = params['PageNumber']
799
+ @PageSize = params['PageSize']
800
+ end
801
+ end
802
+
803
+ # SearchKBComponent返回参数结构体
804
+ class SearchKBComponentResponse < TencentCloud::Common::AbstractModel
805
+ # @param ComponentList: 满足搜索条件的组件列表
806
+ # @type ComponentList: Array
807
+ # @param Total: 满足搜索条件的总个数
808
+ # @type Total: Integer
809
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
810
+ # @type RequestId: String
811
+
812
+ attr_accessor :ComponentList, :Total, :RequestId
813
+
814
+ def initialize(componentlist=nil, total=nil, requestid=nil)
815
+ @ComponentList = componentlist
816
+ @Total = total
817
+ @RequestId = requestid
818
+ end
819
+
820
+ def deserialize(params)
821
+ unless params['ComponentList'].nil?
822
+ @ComponentList = []
823
+ params['ComponentList'].each do |i|
824
+ component_tmp = Component.new
825
+ component_tmp.deserialize(i)
826
+ @ComponentList << component_tmp
827
+ end
828
+ end
829
+ @Total = params['Total']
830
+ @RequestId = params['RequestId']
831
+ end
832
+ end
833
+
704
834
  # 描述漏洞详细信息。
705
835
  class VulnerabilityDetail < TencentCloud::Common::AbstractModel
706
836
  # @param Category: 漏洞类别
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.677
4
+ version: 3.0.678
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-10-16 00:00:00.000000000 Z
11
+ date: 2023-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -34,8 +34,8 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - lib/tencentcloud-sdk-bsca.rb
37
- - lib/v20210811/client.rb
38
37
  - lib/v20210811/models.rb
38
+ - lib/v20210811/client.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: