Class: Google::Apis::ContaineranalysisV1alpha1::SeverityCount

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

Overview

The number of occurrences created for a specific severity.

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

Returns a new instance of SeverityCount.



2339
2340
2341
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2339

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

Instance Attribute Details

#countFixnum

The number of occurrences with the severity. Corresponds to the JSON property count

Returns:

  • (Fixnum)


2332
2333
2334
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2332

def count
  @count
end

#severityString

The severity of the occurrences. Corresponds to the JSON property severity

Returns:

  • (String)


2337
2338
2339
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2337

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2344
2345
2346
2347
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 2344

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