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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/tagmanager_v2/classes.rb,
lib/google/apis/tagmanager_v2/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ UserPermission

Returns a new instance of UserPermission.



2931
2932
2933
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2931

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



2908
2909
2910
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2908

def 
  @account_access
end

#account_idString

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

Returns:

  • (String)


2913
2914
2915
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2913

def 
  @account_id
end

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

GTM Container access permissions. @mutable tagmanager.accounts.permissions. create @mutable tagmanager.accounts.permissions.update Corresponds to the JSON property containerAccess



2919
2920
2921
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2919

def container_access
  @container_access
end

#email_addressString

User's email address. @mutable tagmanager.accounts.permissions.create Corresponds to the JSON property emailAddress

Returns:

  • (String)


2924
2925
2926
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2924

def email_address
  @email_address
end

#pathString

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

Returns:

  • (String)


2929
2930
2931
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2929

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2936
2937
2938
2939
2940
2941
2942
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2936

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