Class: Google::Apis::TagmanagerV1::Parameter
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV1::Parameter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/tagmanager_v1/classes.rb,
lib/google/apis/tagmanager_v1/representations.rb,
lib/google/apis/tagmanager_v1/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::TagmanagerV1::Parameter>
This list parameter's parameters (keys will be ignored).
-
#map ⇒ Array<Google::Apis::TagmanagerV1::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.
Constructor Details
#initialize(**args) ⇒ Parameter
Returns a new instance of Parameter.
997 998 999 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 997 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. @mutable
tagmanager.accounts.containers.variables.create @mutable tagmanager.accounts.
containers.variables.update @mutable tagmanager.accounts.containers.triggers.
create @mutable tagmanager.accounts.containers.triggers.update @mutable
tagmanager.accounts.containers.tags.create @mutable tagmanager.accounts.
containers.tags.update
Corresponds to the JSON property key
949 950 951 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 949 def key @key end |
#list ⇒ Array<Google::Apis::TagmanagerV1::Parameter>
This list parameter's parameters (keys will be ignored). @mutable tagmanager.
accounts.containers.variables.create @mutable tagmanager.accounts.containers.
variables.update @mutable tagmanager.accounts.containers.triggers.create @
mutable tagmanager.accounts.containers.triggers.update @mutable tagmanager.
accounts.containers.tags.create @mutable tagmanager.accounts.containers.tags.
update
Corresponds to the JSON property list
959 960 961 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 959 def list @list end |
#map ⇒ Array<Google::Apis::TagmanagerV1::Parameter>
This map parameter's parameters (must have keys; keys must be unique). @
mutable tagmanager.accounts.containers.variables.create @mutable tagmanager.
accounts.containers.variables.update @mutable tagmanager.accounts.containers.
triggers.create @mutable tagmanager.accounts.containers.triggers.update @
mutable tagmanager.accounts.containers.tags.create @mutable tagmanager.
accounts.containers.tags.update
Corresponds to the JSON property map
969 970 971 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 969 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 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) - trigger_reference: The value
represents a trigger, represented as the trigger id - tag_reference: The value
represents a tag, represented as the tag name @mutable tagmanager.accounts.
containers.variables.create @mutable tagmanager.accounts.containers.variables.
update @mutable tagmanager.accounts.containers.triggers.create @mutable
tagmanager.accounts.containers.triggers.update @mutable tagmanager.accounts.
containers.tags.create @mutable tagmanager.accounts.containers.tags.update
Corresponds to the JSON property type
985 986 987 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 985 def type @type end |
#value ⇒ String
A parameter's value (may contain variable references such as "myVariable
")
as appropriate to the specified type. @mutable tagmanager.accounts.containers.
variables.create @mutable tagmanager.accounts.containers.variables.update @
mutable tagmanager.accounts.containers.triggers.create @mutable tagmanager.
accounts.containers.triggers.update @mutable tagmanager.accounts.containers.
tags.create @mutable tagmanager.accounts.containers.tags.update
Corresponds to the JSON property value
995 996 997 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 995 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1002 1003 1004 1005 1006 1007 1008 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1002 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 |