Class: Google::Apis::SecuritycenterV1p1beta1::GroupResult

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

Overview

Result containing the properties and count of a groupBy request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GroupResult

Returns a new instance of GroupResult.



1160
1161
1162
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 1160

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)


1153
1154
1155
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 1153

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


1158
1159
1160
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 1158

def properties
  @properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1165
1166
1167
1168
# File 'generated/google/apis/securitycenter_v1p1beta1/classes.rb', line 1165

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