Class: Google::Apis::ContaineranalysisV1alpha1::MaliciousContentStaticResult

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 Static scan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaliciousContentStaticResult

Returns a new instance of MaliciousContentStaticResult.



5745
5746
5747
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5745

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

Instance Attribute Details

#max_severityString

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

Returns:

  • (String)


5738
5739
5740
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5738

def max_severity
  @max_severity
end

#scan_stateString

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

Returns:

  • (String)


5743
5744
5745
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5743

def scan_state
  @scan_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5750
5751
5752
5753
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5750

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