Class: Google::Apis::SecuritycenterV1::VulnerabilityCountBySeverity

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

Overview

Vulnerability count by severity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VulnerabilityCountBySeverity

Returns a new instance of VulnerabilityCountBySeverity.



10850
10851
10852
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10850

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

Instance Attribute Details

#severity_to_finding_countHash<String,Fixnum>

Key is the Severity enum. Corresponds to the JSON property severityToFindingCount

Returns:

  • (Hash<String,Fixnum>)


10848
10849
10850
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10848

def severity_to_finding_count
  @severity_to_finding_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10855
10856
10857
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10855

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