Class: Google::Apis::TagmanagerV2::Entity

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

A workspace entity that may represent a tag, trigger, variable, or folder in addition to its status in the workspace.

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

Returns a new instance of Entity



622
623
624
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 622

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

Instance Attribute Details

#change_statusString

Represents how the entity has been changed in the workspace. Corresponds to the JSON property changeStatus

Returns:

  • (String)


600
601
602
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 600

def change_status
  @change_status
end

#folderGoogle::Apis::TagmanagerV2::Folder

Represents a Google Tag Manager Folder. Corresponds to the JSON property folder



605
606
607
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 605

def folder
  @folder
end

#tagGoogle::Apis::TagmanagerV2::Tag

Represents a Google Tag Manager Tag. Corresponds to the JSON property tag



610
611
612
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 610

def tag
  @tag
end

#triggerGoogle::Apis::TagmanagerV2::Trigger

Represents a Google Tag Manager Trigger Corresponds to the JSON property trigger



615
616
617
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 615

def trigger
  @trigger
end

#variableGoogle::Apis::TagmanagerV2::Variable

Represents a Google Tag Manager Variable. Corresponds to the JSON property variable



620
621
622
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 620

def variable
  @variable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



627
628
629
630
631
632
633
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 627

def update!(**args)
  @change_status = args[:change_status] if args.key?(:change_status)
  @folder = args[:folder] if args.key?(:folder)
  @tag = args[:tag] if args.key?(:tag)
  @trigger = args[:trigger] if args.key?(:trigger)
  @variable = args[:variable] if args.key?(:variable)
end