Class: Google::Apis::ContaineranalysisV1beta1::Finding
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1beta1::Finding
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1beta1/classes.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb
Overview
Finding provides details for a single finding within an AISkillAnalysisOccurrence.
Instance Attribute Summary collapse
-
#category ⇒ String
Category of the finding.
-
#location ⇒ Google::Apis::ContaineranalysisV1beta1::FindingLocation
Location details with file path and line number.
-
#scanner ⇒ String
Scanner determines which engine (e.g. static, llm) emitted the finding.
-
#severity ⇒ String
Severity of the finding.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Finding
constructor
A new instance of Finding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Finding
Returns a new instance of Finding.
4394 4395 4396 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 4394 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
Category of the finding.
Corresponds to the JSON property category
4377 4378 4379 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 4377 def category @category end |
#location ⇒ Google::Apis::ContaineranalysisV1beta1::FindingLocation
Location details with file path and line number.
Corresponds to the JSON property location
4382 4383 4384 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 4382 def location @location end |
#scanner ⇒ String
Scanner determines which engine (e.g. static, llm) emitted the finding.
Corresponds to the JSON property scanner
4387 4388 4389 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 4387 def scanner @scanner end |
#severity ⇒ String
Severity of the finding.
Corresponds to the JSON property severity
4392 4393 4394 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 4392 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4399 4400 4401 4402 4403 4404 |
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 4399 def update!(**args) @category = args[:category] if args.key?(:category) @location = args[:location] if args.key?(:location) @scanner = args[:scanner] if args.key?(:scanner) @severity = args[:severity] if args.key?(:severity) end |