Class: Google::Apis::ContaineranalysisV1alpha1::Threat

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

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.



6238
6239
6240
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6238

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)


6231
6232
6233
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 6231

def details
  @details
end

#threat_typeString

The type of threat. Corresponds to the JSON property threatType

Returns:

  • (String)


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