Class: Google::Apis::TagmanagerV2::Parameter
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV2::Parameter
- 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
-
#key ⇒ String
The named key that uniquely identifies a parameter.
-
#list ⇒ Array<Google::Apis::TagmanagerV2::Parameter>
This list parameter's parameters (keys will be ignored).
-
#map ⇒ Array<Google::Apis::TagmanagerV2::Parameter>
This map parameter's parameters (must have keys; keys must be unique).
-
#type ⇒ String
The parameter type.
-
#value ⇒ String
A parameter's value (may contain variable references such as "
myVariable
") as appropriate to the specified type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Parameter
constructor
A new instance of Parameter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Parameter
Returns a new instance of Parameter
1402 1403 1404 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1402 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
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
1342 1343 1344 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1342 def key @key end |
#list ⇒ Array<Google::Apis::TagmanagerV2::Parameter>
This list parameter's parameters (keys will be ignored).
Corresponds to the JSON property list
1353 1354 1355 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1353 def list @list end |
#map ⇒ Array<Google::Apis::TagmanagerV2::Parameter>
This map parameter's parameters (must have keys; keys must be unique).
Corresponds to the JSON property map
1364 1365 1366 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1364 def map @map end |
#type ⇒ String
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 10list
: A list of parameters should be specifiedmap
: A map of parameters should be specifiedtemplate
: The value represents any text; this can include variable references (even variable references that might return non-string types)trigger_reference
: The value represents a trigger, represented as the trigger id
type
1387 1388 1389 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1387 def type @type end |
#value ⇒ String
A parameter's value (may contain variable references such as
"myVariable
")
as appropriate to the specified type.
Corresponds to the JSON property value
1400 1401 1402 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1400 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1407 1408 1409 1410 1411 1412 1413 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1407 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 |