Class: Google::Apis::MigrationcenterV1alpha1::AggregateAssetsValuesRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AggregateAssetsValuesRequest

Returns a new instance of AggregateAssetsValuesRequest.



91
92
93
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 91

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

Instance Attribute Details

#aggregationsArray<Google::Apis::MigrationcenterV1alpha1::Aggregation>

Array of aggregations to perform. Up to 25 aggregations can be defined. Corresponds to the JSON property aggregations



76
77
78
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 76

def aggregations
  @aggregations
end

#filterString

Optional. The aggregation will be performed on assets that match the provided filter. Corresponds to the JSON property filter

Returns:

  • (String)


82
83
84
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 82

def filter
  @filter
end

#show_hiddenBoolean Also known as: show_hidden?

Optional. When this value is set to 'true' the response will include all assets, including those that are hidden. Corresponds to the JSON property showHidden

Returns:

  • (Boolean)


88
89
90
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 88

def show_hidden
  @show_hidden
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



96
97
98
99
100
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 96

def update!(**args)
  @aggregations = args[:aggregations] if args.key?(:aggregations)
  @filter = args[:filter] if args.key?(:filter)
  @show_hidden = args[:show_hidden] if args.key?(:show_hidden)
end