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.



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

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

#per_scanner_verdictGoogle::Apis::ContaineranalysisV1alpha1::PerScannerVerdict

Per scanner verdict details. Corresponds to the JSON property perScannerVerdict



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

def per_scanner_verdict
  @per_scanner_verdict
end

#skill_nameString

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

Returns:

  • (String)


60
61
62
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 60

def skill_name
  @skill_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



67
68
69
70
71
72
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 67

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