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

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

Overview

Represents a Google Tag Manager Parameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Parameter

Returns a new instance of Parameter.



2036
2037
2038
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2036

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

Instance Attribute Details

#is_weak_referenceBoolean Also known as: is_weak_reference?

Whether or not a reference type parameter is strongly or weakly referenced. Only used by Transformations. @mutable tagmanager.accounts.containers. workspaces.transformations.create @mutable tagmanager.accounts.containers. workspaces.transformations.update Corresponds to the JSON property isWeakReference

Returns:

  • (Boolean)


1973
1974
1975
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1973

def is_weak_reference
  @is_weak_reference
end

#keyString

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.workspaces.variables.create @mutable tagmanager. accounts.containers.workspaces.variables.update @mutable tagmanager.accounts. containers.workspaces.triggers.create @mutable tagmanager.accounts.containers. workspaces.triggers.update @mutable tagmanager.accounts.containers.workspaces. tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update Corresponds to the JSON property key

Returns:

  • (String)


1985
1986
1987
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1985

def key
  @key
end

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

This list parameter's parameters (keys will be ignored). @mutable tagmanager. accounts.containers.workspaces.variables.create @mutable tagmanager.accounts. containers.workspaces.variables.update @mutable tagmanager.accounts.containers. workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces. triggers.update @mutable tagmanager.accounts.containers.workspaces.tags.create Corresponds to the JSON property list



1995
1996
1997
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1995

def list
  @list
end

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

This map parameter's parameters (must have keys; keys must be unique). @ mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update @mutable tagmanager. accounts.containers.workspaces.triggers.create @mutable tagmanager.accounts. containers.workspaces.triggers.update @mutable tagmanager.accounts.containers. workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags. update Corresponds to the JSON property map



2006
2007
2008
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2006

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) - 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.workspaces.variables.create @mutable tagmanager.accounts.containers. workspaces.variables.update @mutable tagmanager.accounts.containers.workspaces. triggers.create @mutable tagmanager.accounts.containers.workspaces.triggers. update @mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update Corresponds to the JSON property type

Returns:

  • (String)


2023
2024
2025
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2023

def type
  @type
end

#valueString

A parameter's value (may contain variable references such as "myVariable") as appropriate to the specified type. @mutable tagmanager.accounts.containers. workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces. variables.update @mutable tagmanager.accounts.containers.workspaces.triggers. create @mutable tagmanager.accounts.containers.workspaces.triggers.update @ mutable tagmanager.accounts.containers.workspaces.tags.create @mutable tagmanager.accounts.containers.workspaces.tags.update Corresponds to the JSON property value

Returns:

  • (String)


2034
2035
2036
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2034

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2041
2042
2043
2044
2045
2046
2047
2048
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2041

def update!(**args)
  @is_weak_reference = args[:is_weak_reference] if args.key?(:is_weak_reference)
  @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