Class: Google::Apis::TagmanagerV2::Entity
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV2::Entity
- 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
-
#built_in_variable ⇒ Google::Apis::TagmanagerV2::BuiltInVariable
Built-in variables are a special category of variables that are pre-created and non-customizable.
-
#change_status ⇒ String
Represents how the entity has been changed in the workspace.
-
#client ⇒ Google::Apis::TagmanagerV2::Client
The client being represented by the entity.
-
#custom_template ⇒ Google::Apis::TagmanagerV2::CustomTemplate
Represents a Google Tag Manager Custom Template's contents.
-
#folder ⇒ Google::Apis::TagmanagerV2::Folder
Represents a Google Tag Manager Folder.
-
#gtag_config ⇒ Google::Apis::TagmanagerV2::GtagConfig
Represents a Google tag configuration.
-
#tag ⇒ Google::Apis::TagmanagerV2::Tag
Represents a Google Tag Manager Tag.
-
#transformation ⇒ Google::Apis::TagmanagerV2::Transformation
Represents a Google Tag Manager Transformation.
-
#trigger ⇒ Google::Apis::TagmanagerV2::Trigger
Represents a Google Tag Manager Trigger Corresponds to the JSON property
trigger
. -
#variable ⇒ Google::Apis::TagmanagerV2::Variable
Represents a Google Tag Manager Variable.
-
#zone ⇒ Google::Apis::TagmanagerV2::Zone
Represents a Google Tag Manager Zone's contents.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Entity
constructor
A new instance of Entity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Entity
Returns a new instance of Entity.
1096 1097 1098 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1096 def initialize(**args) update!(**args) end |
Instance Attribute Details
#built_in_variable ⇒ Google::Apis::TagmanagerV2::BuiltInVariable
Built-in variables are a special category of variables that are pre-created
and non-customizable. They provide common functionality like accessing
properties of the gtm data layer, monitoring clicks, or accessing elements of
a page URL.
Corresponds to the JSON property builtInVariable
1044 1045 1046 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1044 def built_in_variable @built_in_variable end |
#change_status ⇒ String
Represents how the entity has been changed in the workspace.
Corresponds to the JSON property changeStatus
1049 1050 1051 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1049 def change_status @change_status end |
#client ⇒ Google::Apis::TagmanagerV2::Client
The client being represented by the entity.
Corresponds to the JSON property client
1054 1055 1056 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1054 def client @client end |
#custom_template ⇒ Google::Apis::TagmanagerV2::CustomTemplate
Represents a Google Tag Manager Custom Template's contents.
Corresponds to the JSON property customTemplate
1059 1060 1061 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1059 def custom_template @custom_template end |
#folder ⇒ Google::Apis::TagmanagerV2::Folder
Represents a Google Tag Manager Folder.
Corresponds to the JSON property folder
1064 1065 1066 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1064 def folder @folder end |
#gtag_config ⇒ Google::Apis::TagmanagerV2::GtagConfig
Represents a Google tag configuration.
Corresponds to the JSON property gtagConfig
1069 1070 1071 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1069 def gtag_config @gtag_config end |
#tag ⇒ Google::Apis::TagmanagerV2::Tag
Represents a Google Tag Manager Tag.
Corresponds to the JSON property tag
1074 1075 1076 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1074 def tag @tag end |
#transformation ⇒ Google::Apis::TagmanagerV2::Transformation
Represents a Google Tag Manager Transformation.
Corresponds to the JSON property transformation
1079 1080 1081 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1079 def transformation @transformation end |
#trigger ⇒ Google::Apis::TagmanagerV2::Trigger
Represents a Google Tag Manager Trigger
Corresponds to the JSON property trigger
1084 1085 1086 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1084 def trigger @trigger end |
#variable ⇒ Google::Apis::TagmanagerV2::Variable
Represents a Google Tag Manager Variable.
Corresponds to the JSON property variable
1089 1090 1091 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1089 def variable @variable end |
#zone ⇒ Google::Apis::TagmanagerV2::Zone
Represents a Google Tag Manager Zone's contents.
Corresponds to the JSON property zone
1094 1095 1096 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1094 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1101 def update!(**args) @built_in_variable = args[:built_in_variable] if args.key?(:built_in_variable) @change_status = args[:change_status] if args.key?(:change_status) @client = args[:client] if args.key?(:client) @custom_template = args[:custom_template] if args.key?(:custom_template) @folder = args[:folder] if args.key?(:folder) @gtag_config = args[:gtag_config] if args.key?(:gtag_config) @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) @zone = args[:zone] if args.key?(:zone) end |