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.



4848
4849
4850
# File 'lib/google/apis/apihub_v1/classes.rb', line 4848

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)


4841
4842
4843
# File 'lib/google/apis/apihub_v1/classes.rb', line 4841

def count
  @count
end

#severityString

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

Returns:

  • (String)


4846
4847
4848
# File 'lib/google/apis/apihub_v1/classes.rb', line 4846

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4853
4854
4855
4856
# File 'lib/google/apis/apihub_v1/classes.rb', line 4853

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