Class: Google::Apis::TagmanagerV1::Variable

Inherits:
Object
  • Object
show all
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 Variable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Variable

Returns a new instance of Variable.



1640
1641
1642
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1640

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

Instance Attribute Details

#account_idString

GTM Account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


1560
1561
1562
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1560

def 
  @account_id
end

#container_idString

GTM Container ID. Corresponds to the JSON property containerId

Returns:

  • (String)


1565
1566
1567
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1565

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

Returns:

  • (Array<String>)


1574
1575
1576
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1574

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

Returns:

  • (Array<String>)


1583
1584
1585
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1583

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)


1589
1590
1591
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1589

def fingerprint
  @fingerprint
end

#nameString

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

Returns:

  • (String)


1595
1596
1597
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1595

def name
  @name
end

#notesString

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

Returns:

  • (String)


1602
1603
1604
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1602

def notes
  @notes
end

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

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



1608
1609
1610
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1608

def parameter
  @parameter
end

#parent_folder_idString

Parent folder id. Corresponds to the JSON property parentFolderId

Returns:

  • (String)


1613
1614
1615
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1613

def parent_folder_id
  @parent_folder_id
end

#schedule_end_msFixnum

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

Returns:

  • (Fixnum)


1620
1621
1622
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1620

def schedule_end_ms
  @schedule_end_ms
end

#schedule_start_msFixnum

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

Returns:

  • (Fixnum)


1627
1628
1629
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1627

def schedule_start_ms
  @schedule_start_ms
end

#typeString

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

Returns:

  • (String)


1633
1634
1635
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1633

def type
  @type
end

#variable_idString

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

Returns:

  • (String)


1638
1639
1640
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1638

def variable_id
  @variable_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 1645

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)
  @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)
  @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)
  @type = args[:type] if args.key?(:type)
  @variable_id = args[:variable_id] if args.key?(:variable_id)
end