Class: Google::Apis::TagmanagerV2::TeardownTag

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 tag that fires after another tag in order to tear down 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) ⇒ TeardownTag

Returns a new instance of TeardownTag.



2069
2070
2071
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2069

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

Instance Attribute Details

#stop_teardown_on_failureBoolean Also known as: stop_teardown_on_failure?

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

Returns:

  • (Boolean)


2061
2062
2063
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2061

def stop_teardown_on_failure
  @stop_teardown_on_failure
end

#tag_nameString

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

Returns:

  • (String)


2067
2068
2069
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2067

def tag_name
  @tag_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2074
2075
2076
2077
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2074

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