Class: Google::Apis::ContaineranalysisV1::Finding
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1::Finding
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1/classes.rb,
lib/google/apis/containeranalysis_v1/representations.rb,
lib/google/apis/containeranalysis_v1/representations.rb
Overview
Finding provides details for a single finding within an AISkillAnalysisOccurrence.
Instance Attribute Summary collapse
-
#category ⇒ String
Category of the finding.
-
#details ⇒ String
Description of the finding category.
-
#location ⇒ Google::Apis::ContaineranalysisV1::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.
4456 4457 4458 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4456 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
Category of the finding.
Corresponds to the JSON property category
4434 4435 4436 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4434 def category @category end |
#details ⇒ String
Description of the finding category.
Corresponds to the JSON property details
4439 4440 4441 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4439 def details @details end |
#location ⇒ Google::Apis::ContaineranalysisV1::FindingLocation
Location details with file path and line number.
Corresponds to the JSON property location
4444 4445 4446 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4444 def location @location end |
#scanner ⇒ String
Scanner determines which engine (e.g. static, llm) emitted the finding.
Corresponds to the JSON property scanner
4449 4450 4451 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4449 def scanner @scanner end |
#severity ⇒ String
Severity of the finding.
Corresponds to the JSON property severity
4454 4455 4456 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4454 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4461 4462 4463 4464 4465 4466 4467 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4461 def update!(**args) @category = args[:category] if args.key?(:category) @details = args[:details] if args.key?(:details) @location = args[:location] if args.key?(:location) @scanner = args[:scanner] if args.key?(:scanner) @severity = args[:severity] if args.key?(:severity) end |