Class: Google::Apis::DfareportingV3_1::DimensionValue

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

Overview

Represents a DimensionValue resource.

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

Returns a new instance of DimensionValue



4946
4947
4948
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 4946

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

Instance Attribute Details

#dimension_nameString

The name of the dimension. Corresponds to the JSON property dimensionName

Returns:

  • (String)


4915
4916
4917
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 4915

def dimension_name
  @dimension_name
end

#etagString

The eTag of this response for caching purposes. Corresponds to the JSON property etag

Returns:

  • (String)


4920
4921
4922
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 4920

def etag
  @etag
end

#idString

The ID associated with the value if available. Corresponds to the JSON property id

Returns:

  • (String)


4925
4926
4927
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 4925

def id
  @id
end

#kindString

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

Returns:

  • (String)


4930
4931
4932
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 4930

def kind
  @kind
end

#match_typeString

Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch') allow a matchType other than EXACT. Corresponds to the JSON property matchType

Returns:

  • (String)


4939
4940
4941
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 4939

def match_type
  @match_type
end

#valueString

The value of the dimension. Corresponds to the JSON property value

Returns:

  • (String)


4944
4945
4946
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 4944

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4951
4952
4953
4954
4955
4956
4957
4958
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 4951

def update!(**args)
  @dimension_name = args[:dimension_name] if args.key?(:dimension_name)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @match_type = args[:match_type] if args.key?(:match_type)
  @value = args[:value] if args.key?(:value)
end