Class: Google::Apis::MigrationcenterV1alpha1::AggregateAssetsValuesRequest
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::AggregateAssetsValuesRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb
Overview
A request to aggregate one or more values.
Instance Attribute Summary collapse
-
#aggregations ⇒ Array<Google::Apis::MigrationcenterV1alpha1::Aggregation>
Array of aggregations to perform.
-
#filter ⇒ String
The aggregation will be performed on assets that match the provided filter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AggregateAssetsValuesRequest
constructor
A new instance of AggregateAssetsValuesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AggregateAssetsValuesRequest
Returns a new instance of AggregateAssetsValuesRequest.
39 40 41 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 39 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aggregations ⇒ Array<Google::Apis::MigrationcenterV1alpha1::Aggregation>
Array of aggregations to perform. Up to 25 aggregations can be defined.
Corresponds to the JSON property aggregations
32 33 34 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 32 def aggregations @aggregations end |
#filter ⇒ String
The aggregation will be performed on assets that match the provided filter.
Corresponds to the JSON property filter
37 38 39 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 37 def filter @filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
44 45 46 47 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 44 def update!(**args) @aggregations = args[:aggregations] if args.key?(:aggregations) @filter = args[:filter] if args.key?(:filter) end |