Class: Google::Apis::OndemandscanningV1::Finding

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/ondemandscanning_v1/classes.rb,
lib/google/apis/ondemandscanning_v1/representations.rb,
lib/google/apis/ondemandscanning_v1/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.



1376
1377
1378
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1376

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

Instance Attribute Details

#categoryString

Category of the finding. Corresponds to the JSON property category

Returns:

  • (String)


1354
1355
1356
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1354

def category
  @category
end

#detailsString

Description of the finding category. Corresponds to the JSON property details

Returns:

  • (String)


1359
1360
1361
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1359

def details
  @details
end

#locationGoogle::Apis::OndemandscanningV1::FindingLocation

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



1364
1365
1366
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1364

def location
  @location
end

#scannerString

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

Returns:

  • (String)


1369
1370
1371
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1369

def scanner
  @scanner
end

#severityString

Severity of the finding. Corresponds to the JSON property severity

Returns:

  • (String)


1374
1375
1376
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1374

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1381
1382
1383
1384
1385
1386
1387
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1381

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