Class: Google::Apis::SecuritycenterV1beta1::GroupResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/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.



2386
2387
2388
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2386

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)


2379
2380
2381
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2379

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


2384
2385
2386
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2384

def properties
  @properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2391
2392
2393
2394
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2391

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