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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/tagmanager_v2/classes.rb,
lib/google/apis/tagmanager_v2/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ Entity

Returns a new instance of Entity.



818
819
820
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 818

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)


791
792
793
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 791

def change_status
  @change_status
end

#clientGoogle::Apis::TagmanagerV2::Client

The client being represented by the entity. Corresponds to the JSON property client



796
797
798
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 796

def client
  @client
end

#folderGoogle::Apis::TagmanagerV2::Folder

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



801
802
803
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 801

def folder
  @folder
end

#tagGoogle::Apis::TagmanagerV2::Tag

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



806
807
808
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 806

def tag
  @tag
end

#triggerGoogle::Apis::TagmanagerV2::Trigger

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



811
812
813
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 811

def trigger
  @trigger
end

#variableGoogle::Apis::TagmanagerV2::Variable

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



816
817
818
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 816

def variable
  @variable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



823
824
825
826
827
828
829
830
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 823

def update!(**args)
  @change_status = args[:change_status] if args.key?(:change_status)
  @client = args[:client] if args.key?(:client)
  @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