class Google::Apis::TagmanagerV1::Variable

Represents a Google Tag Manager Variable.

Attributes

account_id[RW]

GTM Account ID. Corresponds to the JSON property `accountId` @return [String]

container_id[RW]

GTM Container ID. Corresponds to the JSON property `containerId` @return [String]

disabling_trigger_id[RW]

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. Corresponds to the JSON property `disablingTriggerId` @return [Array<String>]

enabling_trigger_id[RW]

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. Corresponds to the JSON property `enablingTriggerId` @return [Array<String>]

fingerprint[RW]

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` @return [String]

name[RW]

Variable display name. Corresponds to the JSON property `name` @return [String]

notes[RW]

User notes on how to apply this variable in the container. Corresponds to the JSON property `notes` @return [String]

parameter[RW]

The variable's parameters. Corresponds to the JSON property `parameter` @return [Array<Google::Apis::TagmanagerV1::Parameter>]

parent_folder_id[RW]

Parent folder id. Corresponds to the JSON property `parentFolderId` @return [String]

schedule_end_ms[RW]

The end timestamp in milliseconds to schedule a variable. Corresponds to the JSON property `scheduleEndMs` @return [String]

schedule_start_ms[RW]

The start timestamp in milliseconds to schedule a variable. Corresponds to the JSON property `scheduleStartMs` @return [String]

type[RW]

GTM Variable Type. Corresponds to the JSON property `type` @return [String]

variable_id[RW]

The Variable ID uniquely identifies the GTM Variable. Corresponds to the JSON property `variableId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/tagmanager_v1/classes.rb, line 1471
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/tagmanager_v1/classes.rb, line 1476
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