Class: Google::Apis::ContaineranalysisV1beta1::VulnerabilityOccurrencesSummary

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

Overview

A summary of how many vulnerability occurrences there are per resource and severity type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VulnerabilityOccurrencesSummary

Returns a new instance of VulnerabilityOccurrencesSummary.



3246
3247
3248
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 3246

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

Instance Attribute Details

#countsArray<Google::Apis::ContaineranalysisV1beta1::FixableTotalByDigest>

A listing by resource of the number of fixable and total vulnerabilities. Corresponds to the JSON property counts



3244
3245
3246
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 3244

def counts
  @counts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3251
3252
3253
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 3251

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