Class: Google::Apis::TagmanagerV2::SetupTag

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 reference to atag that fires before another tag in order to set up dependencies.

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) ⇒ SetupTag

Returns a new instance of SetupTag



1437
1438
1439
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1437

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

Instance Attribute Details

#stop_on_setup_failureBoolean Also known as: stop_on_setup_failure?

If true, fire the main tag if and only if the setup tag fires successfully. If false, fire the main tag regardless of setup tag firing status. Corresponds to the JSON property stopOnSetupFailure

Returns:

  • (Boolean)


1429
1430
1431
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1429

def stop_on_setup_failure
  @stop_on_setup_failure
end

#tag_nameString

The name of the setup tag. Corresponds to the JSON property tagName

Returns:

  • (String)


1435
1436
1437
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1435

def tag_name
  @tag_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1442
1443
1444
1445
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1442

def update!(**args)
  @stop_on_setup_failure = args[:stop_on_setup_failure] if args.key?(:stop_on_setup_failure)
  @tag_name = args[:tag_name] if args.key?(:tag_name)
end