Class: Google::Apis::DfareportingV2_8::DimensionValueRequest

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

Overview

Represents a DimensionValuesRequest.

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

Returns a new instance of DimensionValueRequest



4880
4881
4882
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4880

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

Instance Attribute Details

#dimension_nameString

The name of the dimension for which values should be requested. Corresponds to the JSON property dimensionName

Returns:

  • (String)


4856
4857
4858
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4856

def dimension_name
  @dimension_name
end

#end_dateDate

The end date of the date range for which to retrieve dimension values. A string of the format "yyyy-MM-dd". Corresponds to the JSON property endDate

Returns:

  • (Date)


4862
4863
4864
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4862

def end_date
  @end_date
end

#filtersArray<Google::Apis::DfareportingV2_8::DimensionFilter>

The list of filters by which to filter values. The filters are ANDed. Corresponds to the JSON property filters



4867
4868
4869
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4867

def filters
  @filters
end

#kindString

The kind of request this is, in this case dfareporting#dimensionValueRequest. Corresponds to the JSON property kind

Returns:

  • (String)


4872
4873
4874
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4872

def kind
  @kind
end

#start_dateDate

The start date of the date range for which to retrieve dimension values. A string of the format "yyyy-MM-dd". Corresponds to the JSON property startDate

Returns:

  • (Date)


4878
4879
4880
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4878

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4885
4886
4887
4888
4889
4890
4891
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4885

def update!(**args)
  @dimension_name = args[:dimension_name] if args.key?(:dimension_name)
  @end_date = args[:end_date] if args.key?(:end_date)
  @filters = args[:filters] if args.key?(:filters)
  @kind = args[:kind] if args.key?(:kind)
  @start_date = args[:start_date] if args.key?(:start_date)
end