Class: Google::Apis::ContaineranalysisV1::Finding

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Finding

Returns a new instance of Finding.



4398
4399
4400
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4398

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

Instance Attribute Details

#categoryString

Category of the finding. Corresponds to the JSON property category

Returns:

  • (String)


4381
4382
4383
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4381

def category
  @category
end

#locationGoogle::Apis::ContaineranalysisV1::FindingLocation

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



4386
4387
4388
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4386

def location
  @location
end

#scannerString

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

Returns:

  • (String)


4391
4392
4393
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4391

def scanner
  @scanner
end

#severityString

Severity of the finding. Corresponds to the JSON property severity

Returns:

  • (String)


4396
4397
4398
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4396

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4403
4404
4405
4406
4407
4408
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 4403

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