Class: Google::Apis::SecuritycenterV1::GroupResult

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

Overview

Result containing the properties and count of a groupBy request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GroupResult

Returns a new instance of GroupResult.



1862
1863
1864
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1862

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

Instance Attribute Details

#countFixnum

Total count of resources for the given properties. Corresponds to the JSON property count

Returns:

  • (Fixnum)


1855
1856
1857
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1855

def count
  @count
end

#propertiesHash<String,Object>

Properties matching the groupBy fields in the request. Corresponds to the JSON property properties

Returns:

  • (Hash<String,Object>)


1860
1861
1862
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1860

def properties
  @properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1867
1868
1869
1870
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1867

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