Class: Google::Apis::TagmanagerV1::ContainerVersion

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 Version.

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) ⇒ ContainerVersion

Returns a new instance of ContainerVersion.



344
345
346
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 344

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

Instance Attribute Details

#account_idString

GTM Account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


271
272
273
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 271

def 
  @account_id
end

#containerGoogle::Apis::TagmanagerV1::Container

Represents a Google Tag Manager Container. Corresponds to the JSON property container



276
277
278
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 276

def container
  @container
end

#container_idString

GTM Container ID. Corresponds to the JSON property containerId

Returns:

  • (String)


281
282
283
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 281

def container_id
  @container_id
end

#container_version_idString

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

Returns:

  • (String)


286
287
288
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 286

def container_version_id
  @container_version_id
end

#deletedBoolean Also known as: deleted?

A value of true indicates this container version has been deleted. Corresponds to the JSON property deleted

Returns:

  • (Boolean)


291
292
293
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 291

def deleted
  @deleted
end

#fingerprintString

The fingerprint of the GTM Container Version as computed at storage time. This value is recomputed whenever the container version is modified. Corresponds to the JSON property fingerprint

Returns:

  • (String)


299
300
301
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 299

def fingerprint
  @fingerprint
end

#folderArray<Google::Apis::TagmanagerV1::Folder>

The folders in the container that this version was taken from. Corresponds to the JSON property folder



304
305
306
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 304

def folder
  @folder
end

#macroArray<Google::Apis::TagmanagerV1::Macro>

The macros in the container that this version was taken from. Corresponds to the JSON property macro



309
310
311
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 309

def macro
  @macro
end

#nameString

Container version display name. Corresponds to the JSON property name

Returns:

  • (String)


315
316
317
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 315

def name
  @name
end

#notesString

User notes on how to apply this container version in the container. Corresponds to the JSON property notes

Returns:

  • (String)


322
323
324
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 322

def notes
  @notes
end

#ruleArray<Google::Apis::TagmanagerV1::Rule>

The rules in the container that this version was taken from. Corresponds to the JSON property rule



327
328
329
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 327

def rule
  @rule
end

#tagArray<Google::Apis::TagmanagerV1::Tag>

The tags in the container that this version was taken from. Corresponds to the JSON property tag



332
333
334
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 332

def tag
  @tag
end

#triggerArray<Google::Apis::TagmanagerV1::Trigger>

The triggers in the container that this version was taken from. Corresponds to the JSON property trigger



337
338
339
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 337

def trigger
  @trigger
end

#variableArray<Google::Apis::TagmanagerV1::Variable>

The variables in the container that this version was taken from. Corresponds to the JSON property variable



342
343
344
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 342

def variable
  @variable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 349

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @container = args[:container] if args.key?(:container)
  @container_id = args[:container_id] if args.key?(:container_id)
  @container_version_id = args[:container_version_id] if args.key?(:container_version_id)
  @deleted = args[:deleted] if args.key?(:deleted)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @folder = args[:folder] if args.key?(:folder)
  @macro = args[:macro] if args.key?(:macro)
  @name = args[:name] if args.key?(:name)
  @notes = args[:notes] if args.key?(:notes)
  @rule = args[:rule] if args.key?(:rule)
  @tag = args[:tag] if args.key?(:tag)
  @trigger = args[:trigger] if args.key?(:trigger)
  @variable = args[:variable] if args.key?(:variable)
end