Class: Google::Apis::SecuritycenterV1::GroupResult
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::GroupResult
- 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
-
#count ⇒ Fixnum
Total count of resources for the given properties.
-
#properties ⇒ Hash<String,Object>
Properties matching the groupBy fields in the request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GroupResult
constructor
A new instance of GroupResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GroupResult
Returns a new instance of GroupResult.
8386 8387 8388 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8386 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
Total count of resources for the given properties.
Corresponds to the JSON property count
8379 8380 8381 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8379 def count @count end |
#properties ⇒ Hash<String,Object>
Properties matching the groupBy fields in the request.
Corresponds to the JSON property properties
8384 8385 8386 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8384 def properties @properties end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8391 8392 8393 8394 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 8391 def update!(**args) @count = args[:count] if args.key?(:count) @properties = args[:properties] if args.key?(:properties) end |