Class: Google::Apis::OndemandscanningV1beta1::Finding
- Inherits:
-
Object
- Object
- Google::Apis::OndemandscanningV1beta1::Finding
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ondemandscanning_v1beta1/classes.rb,
lib/google/apis/ondemandscanning_v1beta1/representations.rb,
lib/google/apis/ondemandscanning_v1beta1/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::OndemandscanningV1beta1::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.
1362 1363 1364 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1362 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category ⇒ String
Category of the finding.
Corresponds to the JSON property category
1340 1341 1342 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1340 def category @category end |
#details ⇒ String
Description of the finding category.
Corresponds to the JSON property details
1345 1346 1347 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1345 def details @details end |
#location ⇒ Google::Apis::OndemandscanningV1beta1::FindingLocation
Location details with file path and line number.
Corresponds to the JSON property location
1350 1351 1352 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1350 def location @location end |
#scanner ⇒ String
Scanner determines which engine (e.g. static, llm) emitted the finding.
Corresponds to the JSON property scanner
1355 1356 1357 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1355 def scanner @scanner end |
#severity ⇒ String
Severity of the finding.
Corresponds to the JSON property severity
1360 1361 1362 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1360 def severity @severity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1367 1368 1369 1370 1371 1372 1373 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1367 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 |