Class: Google::Apis::ContaineranalysisV1alpha1::MalwareScanResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MalwareScanResult

Returns a new instance of MalwareScanResult.



5779
5780
5781
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5779

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

Instance Attribute Details

#scan_stateString

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

Returns:

  • (String)


5772
5773
5774
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5772

def scan_state
  @scan_state
end

#verdictString

Optional. Verdict of the scan. Corresponds to the JSON property verdict

Returns:

  • (String)


5777
5778
5779
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5777

def verdict
  @verdict
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5784
5785
5786
5787
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 5784

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