Class: Google::Apis::TagmanagerV1::Container
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV1::Container
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/tagmanager_v1/classes.rb,
lib/google/apis/tagmanager_v1/representations.rb,
lib/google/apis/tagmanager_v1/representations.rb
Overview
Represents a Google Tag Manager Container.
Instance Attribute Summary collapse
-
#account_id ⇒ String
GTM Account ID.
-
#container_id ⇒ String
The Container ID uniquely identifies the GTM Container.
-
#domain_name ⇒ Array<String>
Optional list of domain names associated with the Container.
-
#enabled_built_in_variable ⇒ Array<String>
List of enabled built-in variables.
-
#fingerprint ⇒ String
The fingerprint of the GTM Container as computed at storage time.
-
#name ⇒ String
Container display name.
-
#notes ⇒ String
Container Notes.
-
#public_id ⇒ String
Container Public ID.
-
#time_zone_country_id ⇒ String
Container Country ID.
-
#time_zone_id ⇒ String
Container Time Zone ID.
-
#usage_context ⇒ Array<String>
List of Usage Contexts for the Container.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Container
constructor
A new instance of Container.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Container
Returns a new instance of Container.
196 197 198 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 196 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
GTM Account ID.
Corresponds to the JSON property accountId
129 130 131 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 129 def account_id @account_id end |
#container_id ⇒ String
The Container ID uniquely identifies the GTM Container.
Corresponds to the JSON property containerId
134 135 136 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 134 def container_id @container_id end |
#domain_name ⇒ Array<String>
Optional list of domain names associated with the Container. @mutable
tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.
update
Corresponds to the JSON property domainName
141 142 143 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 141 def domain_name @domain_name end |
#enabled_built_in_variable ⇒ Array<String>
List of enabled built-in variables. Valid values include: pageUrl,
pageHostname, pagePath, referrer, event, clickElement, clickClasses, clickId,
clickTarget, clickUrl, clickText, formElement, formClasses, formId, formTarget,
formUrl, formText, errorMessage, errorUrl, errorLine, newHistoryFragment,
oldHistoryFragment, newHistoryState, oldHistoryState, historySource,
containerVersion, debugMode, randomNumber, containerId. @mutable tagmanager.
accounts.containers.create @mutable tagmanager.accounts.containers.update
Corresponds to the JSON property enabledBuiltInVariable
152 153 154 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 152 def enabled_built_in_variable @enabled_built_in_variable end |
#fingerprint ⇒ String
The fingerprint of the GTM Container as computed at storage time. This value
is recomputed whenever the account is modified.
Corresponds to the JSON property fingerprint
158 159 160 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 158 def fingerprint @fingerprint end |
#name ⇒ String
Container display name. @mutable tagmanager.accounts.containers.create @
mutable tagmanager.accounts.containers.update
Corresponds to the JSON property name
164 165 166 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 164 def name @name end |
#notes ⇒ String
Container Notes. @mutable tagmanager.accounts.containers.create @mutable
tagmanager.accounts.containers.update
Corresponds to the JSON property notes
170 171 172 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 170 def notes @notes end |
#public_id ⇒ String
Container Public ID.
Corresponds to the JSON property publicId
175 176 177 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 175 def public_id @public_id end |
#time_zone_country_id ⇒ String
Container Country ID. @mutable tagmanager.accounts.containers.create @mutable
tagmanager.accounts.containers.update
Corresponds to the JSON property timeZoneCountryId
181 182 183 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 181 def time_zone_country_id @time_zone_country_id end |
#time_zone_id ⇒ String
Container Time Zone ID. @mutable tagmanager.accounts.containers.create @
mutable tagmanager.accounts.containers.update
Corresponds to the JSON property timeZoneId
187 188 189 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 187 def time_zone_id @time_zone_id end |
#usage_context ⇒ Array<String>
List of Usage Contexts for the Container. Valid values include: web, android,
ios. @mutable tagmanager.accounts.containers.create @mutable tagmanager.
accounts.containers.update
Corresponds to the JSON property usageContext
194 195 196 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 194 def usage_context @usage_context end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/google/apis/tagmanager_v1/classes.rb', line 201 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @container_id = args[:container_id] if args.key?(:container_id) @domain_name = args[:domain_name] if args.key?(:domain_name) @enabled_built_in_variable = args[:enabled_built_in_variable] if args.key?(:enabled_built_in_variable) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @name = args[:name] if args.key?(:name) @notes = args[:notes] if args.key?(:notes) @public_id = args[:public_id] if args.key?(:public_id) @time_zone_country_id = args[:time_zone_country_id] if args.key?(:time_zone_country_id) @time_zone_id = args[:time_zone_id] if args.key?(:time_zone_id) @usage_context = args[:usage_context] if args.key?(:usage_context) end |