Class: Google::Apis::ContaineranalysisV1alpha1::Finding

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



4608
4609
4610
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4608

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

Instance Attribute Details

#categoryString

Optional. Category of the finding. Corresponds to the JSON property category

Returns:

  • (String)


4585
4586
4587
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4585

def category
  @category
end

#detailsString

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

Returns:

  • (String)


4590
4591
4592
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4590

def details
  @details
end

#locationGoogle::Apis::ContaineranalysisV1alpha1::FindingLocation

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



4595
4596
4597
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4595

def location
  @location
end

#scannerString

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

Returns:

  • (String)


4601
4602
4603
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4601

def scanner
  @scanner
end

#severityString

Optional. Severity of the finding. Corresponds to the JSON property severity

Returns:

  • (String)


4606
4607
4608
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4606

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4613
4614
4615
4616
4617
4618
4619
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4613

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