Class: Google::Apis::ContaineranalysisV1beta1::FixableTotalByDigest

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

Per resource and severity counts of fixable and total vulnerabilities.

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) ⇒ FixableTotalByDigest

Returns a new instance of FixableTotalByDigest.



1190
1191
1192
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1190

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)


1172
1173
1174
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1172

def fixable_count
  @fixable_count
end

#resourceGoogle::Apis::ContaineranalysisV1beta1::Resource

An entity that can have metadata. For example, a Docker image. Corresponds to the JSON property resource



1177
1178
1179
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1177

def resource
  @resource
end

#severityString

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

Returns:

  • (String)


1183
1184
1185
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1183

def severity
  @severity
end

#total_countFixnum

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

Returns:

  • (Fixnum)


1188
1189
1190
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1188

def total_count
  @total_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1195
1196
1197
1198
1199
1200
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 1195

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