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

Constructor Details

#initialize(**args) ⇒ Entity

Returns a new instance of Entity.



810
811
812
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 810

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)


783
784
785
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 783

def change_status
  @change_status
end

#clientGoogle::Apis::TagmanagerV2::Client

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



788
789
790
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 788

def client
  @client
end

#folderGoogle::Apis::TagmanagerV2::Folder

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



793
794
795
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 793

def folder
  @folder
end

#tagGoogle::Apis::TagmanagerV2::Tag

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



798
799
800
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 798

def tag
  @tag
end

#triggerGoogle::Apis::TagmanagerV2::Trigger

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



803
804
805
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 803

def trigger
  @trigger
end

#variableGoogle::Apis::TagmanagerV2::Variable

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



808
809
810
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 808

def variable
  @variable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



815
816
817
818
819
820
821
822
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 815

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