Class: Google::Apis::DfareportingV2_3::UserDefinedVariableConfiguration

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

Overview

User Defined Variable configuration.

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

Returns a new instance of UserDefinedVariableConfiguration.


10503
10504
10505
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10503

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)

10489
10490
10491
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10489

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)

10496
10497
10498
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10496

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)

10501
10502
10503
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10501

def variable_type
  @variable_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


10508
10509
10510
10511
10512
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10508

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