Class: Google::Apis::ContaineranalysisV1beta1::Threat

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/containeranalysis_v1beta1/classes.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb

Overview

Contains the vulnerability kinetic information. This information can change as the vulnerability ages and new information becomes available.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Threat

Returns a new instance of Threat.



5637
5638
5639
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 5637

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

Instance Attribute Details

#detailsString

Represents a thorough human-readable discussion of the threat. Corresponds to the JSON property details

Returns:

  • (String)


5630
5631
5632
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 5630

def details
  @details
end

#threat_typeString

The type of threat. Corresponds to the JSON property threatType

Returns:

  • (String)


5635
5636
5637
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 5635

def threat_type
  @threat_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5642
5643
5644
5645
# File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 5642

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