Class: Google::Apis::ContaineranalysisV1alpha1::AiSkillAnalysisOccurrence

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

AISkillAnalysisOccurrence provides the results of an AI-based skill analysis.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AiSkillAnalysisOccurrence

Returns a new instance of AiSkillAnalysisOccurrence.



57
58
59
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 57

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

Instance Attribute Details

#findingsArray<Google::Apis::ContaineranalysisV1alpha1::Finding>

Optional. Findings produced by the analysis. Corresponds to the JSON property findings



45
46
47
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 45

def findings
  @findings
end

#max_severityString

Optional. Maximum severity found among findings. Corresponds to the JSON property maxSeverity

Returns:

  • (String)


50
51
52
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 50

def max_severity
  @max_severity
end

#skill_nameString

Optional. Name of the skill that produced this analysis. Corresponds to the JSON property skillName

Returns:

  • (String)


55
56
57
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 55

def skill_name
  @skill_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



62
63
64
65
66
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 62

def update!(**args)
  @findings = args[:findings] if args.key?(:findings)
  @max_severity = args[:max_severity] if args.key?(:max_severity)
  @skill_name = args[:skill_name] if args.key?(:skill_name)
end