class Google::Apis::TagmanagerV1::Container

Represents a Google Tag Manager Container.

Attributes

account_id[RW]

GTM Account ID. Corresponds to the JSON property `accountId` @return [String]

container_id[RW]

The Container ID uniquely identifies the GTM Container. Corresponds to the JSON property `containerId` @return [String]

domain_name[RW]

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` @return [Array<String>]

enabled_built_in_variable[RW]

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` @return [Array<String>]

fingerprint[RW]

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` @return [String]

name[RW]

Container display name. @mutable tagmanager.accounts.containers.create @ mutable tagmanager.accounts.containers.update Corresponds to the JSON property `name` @return [String]

notes[RW]

Container Notes. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update Corresponds to the JSON property `notes` @return [String]

public_id[RW]

Container Public ID. Corresponds to the JSON property `publicId` @return [String]

time_zone_country_id[RW]

Container Country ID. @mutable tagmanager.accounts.containers.create @mutable tagmanager.accounts.containers.update Corresponds to the JSON property `timeZoneCountryId` @return [String]

time_zone_id[RW]

Container Time Zone ID. @mutable tagmanager.accounts.containers.create @ mutable tagmanager.accounts.containers.update Corresponds to the JSON property `timeZoneId` @return [String]

usage_context[RW]

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` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/tagmanager_v1/classes.rb, line 196
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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