Class: Google::Apis::TagmanagerV2::UserPermission

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 user's permissions to an account and its 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) ⇒ UserPermission

Returns a new instance of UserPermission



2057
2058
2059
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2057

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

Instance Attribute Details

#account_accessGoogle::Apis::TagmanagerV2::AccountAccess

Defines the Google Tag Manager Account access permissions. Corresponds to the JSON property accountAccess



2035
2036
2037
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2035

def 
  @account_access
end

#account_idString

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

Returns:

  • (String)


2040
2041
2042
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2040

def 
  @account_id
end

#container_accessArray<Google::Apis::TagmanagerV2::ContainerAccess>

GTM Container access permissions. Corresponds to the JSON property containerAccess



2045
2046
2047
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2045

def container_access
  @container_access
end

#email_addressString

User's email address. Corresponds to the JSON property emailAddress

Returns:

  • (String)


2050
2051
2052
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2050

def email_address
  @email_address
end

#pathString

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

Returns:

  • (String)


2055
2056
2057
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2055

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2062
2063
2064
2065
2066
2067
2068
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2062

def update!(**args)
  @account_access = args[:account_access] if args.key?(:account_access)
  @account_id = args[:account_id] if args.key?(:account_id)
  @container_access = args[:container_access] if args.key?(:container_access)
  @email_address = args[:email_address] if args.key?(:email_address)
  @path = args[:path] if args.key?(:path)
end