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

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

Overview

Represents a Google Tag Manager Variable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Variable

Returns a new instance of Variable.



2457
2458
2459
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2457

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

Instance Attribute Details

#account_idString

GTM Account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


2354
2355
2356
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2354

def 
  @account_id
end

#container_idString

GTM Container ID. Corresponds to the JSON property containerId

Returns:

  • (String)


2359
2360
2361
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2359

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. Corresponds to the JSON property disablingTriggerId

Returns:

  • (Array<String>)


2368
2369
2370
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2368

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. Corresponds to the JSON property enablingTriggerId

Returns:

  • (Array<String>)


2377
2378
2379
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2377

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)


2383
2384
2385
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2383

def fingerprint
  @fingerprint
end

#format_valueGoogle::Apis::TagmanagerV2::VariableFormatValue

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



2388
2389
2390
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2388

def format_value
  @format_value
end

#nameString

Variable display name. Corresponds to the JSON property name

Returns:

  • (String)


2395
2396
2397
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2395

def name
  @name
end

#notesString

User notes on how to apply this variable in the container. Corresponds to the JSON property notes

Returns:

  • (String)


2402
2403
2404
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2402

def notes
  @notes
end

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

The variable's parameters. Corresponds to the JSON property parameter



2409
2410
2411
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2409

def parameter
  @parameter
end

#parent_folder_idString

Parent folder id. Corresponds to the JSON property parentFolderId

Returns:

  • (String)


2414
2415
2416
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2414

def parent_folder_id
  @parent_folder_id
end

#pathString

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

Returns:

  • (String)


2419
2420
2421
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2419

def path
  @path
end

#schedule_end_msFixnum

The end timestamp in milliseconds to schedule a variable. Corresponds to the JSON property scheduleEndMs

Returns:

  • (Fixnum)


2426
2427
2428
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2426

def schedule_end_ms
  @schedule_end_ms
end

#schedule_start_msFixnum

The start timestamp in milliseconds to schedule a variable. Corresponds to the JSON property scheduleStartMs

Returns:

  • (Fixnum)


2433
2434
2435
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2433

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)


2438
2439
2440
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2438

def tag_manager_url
  @tag_manager_url
end

#typeString

GTM Variable Type. Corresponds to the JSON property type

Returns:

  • (String)


2445
2446
2447
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2445

def type
  @type
end

#variable_idString

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

Returns:

  • (String)


2450
2451
2452
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2450

def variable_id
  @variable_id
end

#workspace_idString

GTM Workspace ID. Corresponds to the JSON property workspaceId

Returns:

  • (String)


2455
2456
2457
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2455

def workspace_id
  @workspace_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2462

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