Class: Google::Apis::ContaineranalysisV1alpha1::Threat
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::Threat
- 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
Contains the vulnerability kinetic information. This information can change as the vulnerability ages and new information becomes available.
Instance Attribute Summary collapse
-
#details ⇒ String
Represents a thorough human-readable discussion of the threat.
-
#threat_type ⇒ String
The type of threat.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Threat
constructor
A new instance of Threat.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Threat
Returns a new instance of Threat.
6238 6239 6240 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6238 def initialize(**args) update!(**args) end |
Instance Attribute Details
#details ⇒ String
Represents a thorough human-readable discussion of the threat.
Corresponds to the JSON property details
6231 6232 6233 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6231 def details @details end |
#threat_type ⇒ String
The type of threat.
Corresponds to the JSON property threatType
6236 6237 6238 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6236 def threat_type @threat_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6243 6244 6245 6246 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6243 def update!(**args) @details = args[:details] if args.key?(:details) @threat_type = args[:threat_type] if args.key?(:threat_type) end |