Class: Google::Apis::DfareportingV4::UserDefinedVariableConfiguration

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

Overview

User Defined Variable configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserDefinedVariableConfiguration

Returns a new instance of UserDefinedVariableConfiguration.



12827
12828
12829
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12827

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

Instance Attribute Details

#data_typeString

Data type for the variable. This is a required field. Corresponds to the JSON property dataType

Returns:

  • (String)


12813
12814
12815
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12813

def data_type
  @data_type
end

#report_nameString

User-friendly name for the variable which will appear in reports. This is a required field, must be less than 64 characters long, and cannot contain the following characters: ""<>". Corresponds to the JSON property reportName

Returns:

  • (String)


12820
12821
12822
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12820

def report_name
  @report_name
end

#variable_typeString

Variable name in the tag. This is a required field. Corresponds to the JSON property variableType

Returns:

  • (String)


12825
12826
12827
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12825

def variable_type
  @variable_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12832
12833
12834
12835
12836
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12832

def update!(**args)
  @data_type = args[:data_type] if args.key?(:data_type)
  @report_name = args[:report_name] if args.key?(:report_name)
  @variable_type = args[:variable_type] if args.key?(:variable_type)
end