Class: Google::Apis::ApihubV1::GoogleCloudApihubV1SummaryEntry

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

Overview

Count of issues with a given severity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1SummaryEntry

Returns a new instance of GoogleCloudApihubV1SummaryEntry.



5066
5067
5068
# File 'lib/google/apis/apihub_v1/classes.rb', line 5066

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

Instance Attribute Details

#countFixnum

Required. Count of issues with the given severity. Corresponds to the JSON property count

Returns:

  • (Fixnum)


5059
5060
5061
# File 'lib/google/apis/apihub_v1/classes.rb', line 5059

def count
  @count
end

#severityString

Required. Severity of the issue. Corresponds to the JSON property severity

Returns:

  • (String)


5064
5065
5066
# File 'lib/google/apis/apihub_v1/classes.rb', line 5064

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5071
5072
5073
5074
# File 'lib/google/apis/apihub_v1/classes.rb', line 5071

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