Class: Google::Apis::TagmanagerV2::Parameter

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

Overview

Represents a Google Tag Manager Parameter.

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

Returns a new instance of Parameter



1347
1348
1349
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1347

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

Instance Attribute Details

#keyString

The named key that uniquely identifies a parameter. Required for top-level parameters, as well as map values. Ignored for list values. Corresponds to the JSON property key

Returns:

  • (String)


1318
1319
1320
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1318

def key
  @key
end

#listArray<Google::Apis::TagmanagerV2::Parameter>

This list parameter's parameters (keys will be ignored). Corresponds to the JSON property list



1323
1324
1325
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1323

def list
  @list
end

#mapArray<Google::Apis::TagmanagerV2::Parameter>

This map parameter's parameters (must have keys; keys must be unique). Corresponds to the JSON property map



1328
1329
1330
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1328

def map
  @map
end

#typeString

The parameter type. Valid values are:

  • boolean: The value represents a boolean, represented as 'true' or 'false'
  • integer: The value represents a 64-bit signed integer value, in base 10
  • list: A list of parameters should be specified
  • map: A map of parameters should be specified
  • template: The value represents any text; this can include variable references (even variable references that might return non-string types) Corresponds to the JSON property type

Returns:

  • (String)


1339
1340
1341
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1339

def type
  @type
end

#valueString

A parameter's value (may contain variable references such as "myVariable") as appropriate to the specified type. Corresponds to the JSON property value

Returns:

  • (String)


1345
1346
1347
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1345

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1352
1353
1354
1355
1356
1357
1358
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1352

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @list = args[:list] if args.key?(:list)
  @map = args[:map] if args.key?(:map)
  @type = args[:type] if args.key?(:type)
  @value = args[:value] if args.key?(:value)
end