Class: Google::Apis::ContaineranalysisV1alpha1::MaliciousContentLlmResult

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

Result of Malicious Content LLM scan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaliciousContentLlmResult

Returns a new instance of MaliciousContentLlmResult.



5729
5730
5731
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5729

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

Instance Attribute Details

#max_severityString

Optional. Tracks max severity found. Corresponds to the JSON property maxSeverity

Returns:

  • (String)


5722
5723
5724
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5722

def max_severity
  @max_severity
end

#scan_stateString

Output only. State of the scan. Corresponds to the JSON property scanState

Returns:

  • (String)


5727
5728
5729
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5727

def scan_state
  @scan_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5734
5735
5736
5737
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5734

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