Class: Google::Apis::TagmanagerV1::Container

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/tagmanager_v1/classes.rb,
generated/google/apis/tagmanager_v1/representations.rb,
generated/google/apis/tagmanager_v1/representations.rb

Overview

Represents a Google Tag Manager Container.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Container

Returns a new instance of Container.



214
215
216
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 214

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#account_idString

GTM Account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


140
141
142
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 140

def 
  @account_id
end

#container_idString

The Container ID uniquely identifies the GTM Container. Corresponds to the JSON property containerId

Returns:

  • (String)


145
146
147
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 145

def container_id
  @container_id
end

#domain_nameArray<String>

Optional list of domain names associated with the Container. Corresponds to the JSON property domainName

Returns:

  • (Array<String>)


152
153
154
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 152

def domain_name
  @domain_name
end

#enabled_built_in_variableArray<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. Corresponds to the JSON property enabledBuiltInVariable

Returns:

  • (Array<String>)


165
166
167
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 165

def enabled_built_in_variable
  @enabled_built_in_variable
end

#fingerprintString

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

Returns:

  • (String)


171
172
173
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 171

def fingerprint
  @fingerprint
end

#nameString

Container display name. Corresponds to the JSON property name

Returns:

  • (String)


178
179
180
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 178

def name
  @name
end

#notesString

Container Notes. Corresponds to the JSON property notes

Returns:

  • (String)


185
186
187
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 185

def notes
  @notes
end

#public_idString

Container Public ID. Corresponds to the JSON property publicId

Returns:

  • (String)


190
191
192
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 190

def public_id
  @public_id
end

#time_zone_country_idString

Container Country ID. Corresponds to the JSON property timeZoneCountryId

Returns:

  • (String)


197
198
199
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 197

def time_zone_country_id
  @time_zone_country_id
end

#time_zone_idString

Container Time Zone ID. Corresponds to the JSON property timeZoneId

Returns:

  • (String)


204
205
206
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 204

def time_zone_id
  @time_zone_id
end

#usage_contextArray<String>

List of Usage Contexts for the Container. Valid values include: web, android, ios. Corresponds to the JSON property usageContext

Returns:

  • (Array<String>)


212
213
214
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 212

def usage_context
  @usage_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



219
220
221
222
223
224
225
226
227
228
229
230
231
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 219

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