Class: Google::Apis::TagmanagerV2::Variable

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 Variable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Variable

Returns a new instance of Variable.



3055
3056
3057
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 3055

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

Instance Attribute Details

#account_idString

GTM Account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


2952
2953
2954
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2952

def 
  @account_id
end

#container_idString

GTM Container ID. Corresponds to the JSON property containerId

Returns:

  • (String)


2957
2958
2959
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2957

def container_id
  @container_id
end

#disabling_trigger_idArray<String>

For mobile containers only: A list of trigger IDs for disabling conditional variables; the variable is enabled if one of the enabling trigger is true while all the disabling trigger are false. Treated as an unordered set. @ mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update Corresponds to the JSON property disablingTriggerId

Returns:

  • (Array<String>)


2966
2967
2968
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2966

def disabling_trigger_id
  @disabling_trigger_id
end

#enabling_trigger_idArray<String>

For mobile containers only: A list of trigger IDs for enabling conditional variables; the variable is enabled if one of the enabling triggers is true while all the disabling triggers are false. Treated as an unordered set. @ mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager.accounts.containers.workspaces.variables.update Corresponds to the JSON property enablingTriggerId

Returns:

  • (Array<String>)


2975
2976
2977
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2975

def enabling_trigger_id
  @enabling_trigger_id
end

#fingerprintString

The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified. Corresponds to the JSON property fingerprint

Returns:

  • (String)


2981
2982
2983
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2981

def fingerprint
  @fingerprint
end

#format_valueGoogle::Apis::TagmanagerV2::VariableFormatValue

Option to convert a variable value to other value. Corresponds to the JSON property formatValue



2986
2987
2988
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2986

def format_value
  @format_value
end

#nameString

Variable display name. @mutable tagmanager.accounts.containers.workspaces. variables.create @mutable tagmanager.accounts.containers.workspaces.variables. update Corresponds to the JSON property name

Returns:

  • (String)


2993
2994
2995
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2993

def name
  @name
end

#notesString

User notes on how to apply this variable in the container. @mutable tagmanager. accounts.containers.workspaces.variables.create @mutable tagmanager.accounts. containers.workspaces.variables.update Corresponds to the JSON property notes

Returns:

  • (String)


3000
3001
3002
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 3000

def notes
  @notes
end

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

The variable's parameters. @mutable tagmanager.accounts.containers.workspaces. variables.create @mutable tagmanager.accounts.containers.workspaces.variables. update Corresponds to the JSON property parameter



3007
3008
3009
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 3007

def parameter
  @parameter
end

#parent_folder_idString

Parent folder id. Corresponds to the JSON property parentFolderId

Returns:

  • (String)


3012
3013
3014
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 3012

def parent_folder_id
  @parent_folder_id
end

#pathString

GTM Variable's API relative path. Corresponds to the JSON property path

Returns:

  • (String)


3017
3018
3019
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 3017

def path
  @path
end

#schedule_end_msFixnum

The end timestamp in milliseconds to schedule a variable. @mutable tagmanager. accounts.containers.workspaces.variables.create @mutable tagmanager.accounts. containers.workspaces.variables.update Corresponds to the JSON property scheduleEndMs

Returns:

  • (Fixnum)


3024
3025
3026
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 3024

def schedule_end_ms
  @schedule_end_ms
end

#schedule_start_msFixnum

The start timestamp in milliseconds to schedule a variable. @mutable tagmanager.accounts.containers.workspaces.variables.create @mutable tagmanager. accounts.containers.workspaces.variables.update Corresponds to the JSON property scheduleStartMs

Returns:

  • (Fixnum)


3031
3032
3033
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 3031

def schedule_start_ms
  @schedule_start_ms
end

#tag_manager_urlString

Auto generated link to the tag manager UI Corresponds to the JSON property tagManagerUrl

Returns:

  • (String)


3036
3037
3038
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 3036

def tag_manager_url
  @tag_manager_url
end

#typeString

GTM Variable Type. @mutable tagmanager.accounts.containers.workspaces. variables.create @mutable tagmanager.accounts.containers.workspaces.variables. update Corresponds to the JSON property type

Returns:

  • (String)


3043
3044
3045
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 3043

def type
  @type
end

#variable_idString

The Variable ID uniquely identifies the GTM Variable. Corresponds to the JSON property variableId

Returns:

  • (String)


3048
3049
3050
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 3048

def variable_id
  @variable_id
end

#workspace_idString

GTM Workspace ID. Corresponds to the JSON property workspaceId

Returns:

  • (String)


3053
3054
3055
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 3053

def workspace_id
  @workspace_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 3060

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @container_id = args[:container_id] if args.key?(:container_id)
  @disabling_trigger_id = args[:disabling_trigger_id] if args.key?(:disabling_trigger_id)
  @enabling_trigger_id = args[:enabling_trigger_id] if args.key?(:enabling_trigger_id)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @format_value = args[:format_value] if args.key?(:format_value)
  @name = args[:name] if args.key?(:name)
  @notes = args[:notes] if args.key?(:notes)
  @parameter = args[:parameter] if args.key?(:parameter)
  @parent_folder_id = args[:parent_folder_id] if args.key?(:parent_folder_id)
  @path = args[:path] if args.key?(:path)
  @schedule_end_ms = args[:schedule_end_ms] if args.key?(:schedule_end_ms)
  @schedule_start_ms = args[:schedule_start_ms] if args.key?(:schedule_start_ms)
  @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url)
  @type = args[:type] if args.key?(:type)
  @variable_id = args[:variable_id] if args.key?(:variable_id)
  @workspace_id = args[:workspace_id] if args.key?(:workspace_id)
end