Class: Google::Apis::TagmanagerV2::Container

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

Overview

Represents a Google Tag Manager Container, which specifies the platform tags will run on, manages workspaces, and retains container versions.

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.



355
356
357
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 355

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

Instance Attribute Details

#account_idString

GTM Account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


298
299
300
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 298

def 
  @account_id
end

#container_idString

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

Returns:

  • (String)


303
304
305
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 303

def container_id
  @container_id
end

#domain_nameArray<String>

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

Returns:

  • (Array<String>)


310
311
312
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 310

def domain_name
  @domain_name
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)


316
317
318
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 316

def fingerprint
  @fingerprint
end

#nameString

Container display name. Corresponds to the JSON property name

Returns:

  • (String)


323
324
325
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 323

def name
  @name
end

#notesString

Container Notes. Corresponds to the JSON property notes

Returns:

  • (String)


330
331
332
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 330

def notes
  @notes
end

#pathString

GTM Container's API relative path. Corresponds to the JSON property path

Returns:

  • (String)


335
336
337
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 335

def path
  @path
end

#public_idString

Container Public ID. Corresponds to the JSON property publicId

Returns:

  • (String)


340
341
342
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 340

def public_id
  @public_id
end

#tag_manager_urlString

Auto generated link to the tag manager UI Corresponds to the JSON property tagManagerUrl

Returns:

  • (String)


345
346
347
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 345

def tag_manager_url
  @tag_manager_url
end

#usage_contextArray<String>

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

Returns:

  • (Array<String>)


353
354
355
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 353

def usage_context
  @usage_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



360
361
362
363
364
365
366
367
368
369
370
371
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 360

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)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @name = args[:name] if args.key?(:name)
  @notes = args[:notes] if args.key?(:notes)
  @path = args[:path] if args.key?(:path)
  @public_id = args[:public_id] if args.key?(:public_id)
  @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url)
  @usage_context = args[:usage_context] if args.key?(:usage_context)
end