Class: Google::Apis::ContaineranalysisV1::FixableTotalByDigest

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

Overview

Per resource and severity counts of fixable and total vulnerabilities.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FixableTotalByDigest

Returns a new instance of FixableTotalByDigest.



2810
2811
2812
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2810

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

Instance Attribute Details

#fixable_countFixnum

The number of fixable vulnerabilities associated with this resource. Corresponds to the JSON property fixableCount

Returns:

  • (Fixnum)


2792
2793
2794
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2792

def fixable_count
  @fixable_count
end

#resource_uriString

The affected resource. Corresponds to the JSON property resourceUri

Returns:

  • (String)


2797
2798
2799
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2797

def resource_uri
  @resource_uri
end

#severityString

The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities. Corresponds to the JSON property severity

Returns:

  • (String)


2803
2804
2805
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2803

def severity
  @severity
end

#total_countFixnum

The total number of vulnerabilities associated with this resource. Corresponds to the JSON property totalCount

Returns:

  • (Fixnum)


2808
2809
2810
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2808

def total_count
  @total_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2815
2816
2817
2818
2819
2820
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 2815

def update!(**args)
  @fixable_count = args[:fixable_count] if args.key?(:fixable_count)
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
  @severity = args[:severity] if args.key?(:severity)
  @total_count = args[:total_count] if args.key?(:total_count)
end