Class: Google::Apis::TagmanagerV1::Account

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

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

Returns a new instance of Account.



55
56
57
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 55

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

Instance Attribute Details

#account_idString

The Account ID uniquely identifies the GTM Account. Corresponds to the JSON property accountId

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 32

def 
  @account_id
end

#fingerprintString

The fingerprint of the GTM Account as computed at storage time. This value is recomputed whenever the account is modified. Corresponds to the JSON property fingerprint

Returns:

  • (String)


38
39
40
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 38

def fingerprint
  @fingerprint
end

#nameString

Account display name. Corresponds to the JSON property name

Returns:

  • (String)


45
46
47
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 45

def name
  @name
end

#share_dataBoolean Also known as: share_data?

Whether the account shares data anonymously with Google and others. Corresponds to the JSON property shareData

Returns:

  • (Boolean)


52
53
54
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 52

def share_data
  @share_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



60
61
62
63
64
65
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 60

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @name = args[:name] if args.key?(:name)
  @share_data = args[:share_data] if args.key?(:share_data)
end