Class: Google::Apis::AnalyticsV3::EntityUserLink::Permissions

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

Overview

Permissions the user has for this entity.

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

Returns a new instance of Permissions.


1476
1477
1478
# File 'generated/google/apis/analytics_v3/classes.rb', line 1476

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

Instance Attribute Details

#effectiveArray<String>

Effective permissions represent all the permissions that a user has for this entity. These include any implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent entity. Effective permissions are read- only. Corresponds to the JSON property effective

Returns:

  • (Array<String>)

1468
1469
1470
# File 'generated/google/apis/analytics_v3/classes.rb', line 1468

def effective
  @effective
end

#localArray<String>

Permissions that a user has been assigned at this very level. Does not include any implied or inherited permissions. Local permissions are modifiable. Corresponds to the JSON property local

Returns:

  • (Array<String>)

1474
1475
1476
# File 'generated/google/apis/analytics_v3/classes.rb', line 1474

def local
  @local
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1481
1482
1483
1484
# File 'generated/google/apis/analytics_v3/classes.rb', line 1481

def update!(**args)
  @effective = args[:effective] if args.key?(:effective)
  @local = args[:local] if args.key?(:local)
end