Class: Google::Apis::OndemandscanningV1beta1::Finding

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Finding

Returns a new instance of Finding.



1351
1352
1353
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1351

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#categoryString

Category of the finding. Corresponds to the JSON property category

Returns:

  • (String)


1334
1335
1336
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1334

def category
  @category
end

#locationGoogle::Apis::OndemandscanningV1beta1::FindingLocation

Location details with file path and line number. Corresponds to the JSON property location



1339
1340
1341
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1339

def location
  @location
end

#scannerString

Scanner determines which engine (e.g. static, llm) emitted the finding. Corresponds to the JSON property scanner

Returns:

  • (String)


1344
1345
1346
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1344

def scanner
  @scanner
end

#severityString

Severity of the finding. Corresponds to the JSON property severity

Returns:

  • (String)


1349
1350
1351
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1349

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1356
1357
1358
1359
1360
1361
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1356

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