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.



1073
1074
1075
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1073

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)


1041
1042
1043
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1041

def change_status
  @change_status
end

#clientGoogle::Apis::TagmanagerV2::Client

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



1046
1047
1048
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1046

def client
  @client
end

#folderGoogle::Apis::TagmanagerV2::Folder

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



1051
1052
1053
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1051

def folder
  @folder
end

#tagGoogle::Apis::TagmanagerV2::Tag

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



1056
1057
1058
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1056

def tag
  @tag
end

#transformationGoogle::Apis::TagmanagerV2::Transformation

Represents a Google Tag Manager Transformation. Corresponds to the JSON property transformation



1061
1062
1063
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1061

def transformation
  @transformation
end

#triggerGoogle::Apis::TagmanagerV2::Trigger

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



1066
1067
1068
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1066

def trigger
  @trigger
end

#variableGoogle::Apis::TagmanagerV2::Variable

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



1071
1072
1073
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1071

def variable
  @variable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1078
1079
1080
1081
1082
1083
1084
1085
1086
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1078

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)
  @transformation = args[:transformation] if args.key?(:transformation)
  @trigger = args[:trigger] if args.key?(:trigger)
  @variable = args[:variable] if args.key?(:variable)
end