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

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

JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.

Defined Under Namespace

Classes: Entity, Permissions

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

Returns a new instance of EntityUserLink



1534
1535
1536
# File 'generated/google/apis/analytics_v3/classes.rb', line 1534

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

Instance Attribute Details

#entityGoogle::Apis::AnalyticsV3::EntityUserLink::Entity

Entity for this link. It can be an account, a web property, or a view (profile) . Corresponds to the JSON property entity



1507
1508
1509
# File 'generated/google/apis/analytics_v3/classes.rb', line 1507

def entity
  @entity
end

#idString

Entity user link ID Corresponds to the JSON property id

Returns:

  • (String)


1512
1513
1514
# File 'generated/google/apis/analytics_v3/classes.rb', line 1512

def id
  @id
end

#kindString

Resource type for entity user link. Corresponds to the JSON property kind

Returns:

  • (String)


1517
1518
1519
# File 'generated/google/apis/analytics_v3/classes.rb', line 1517

def kind
  @kind
end

#permissionsGoogle::Apis::AnalyticsV3::EntityUserLink::Permissions

Permissions the user has for this entity. Corresponds to the JSON property permissions



1522
1523
1524
# File 'generated/google/apis/analytics_v3/classes.rb', line 1522

def permissions
  @permissions
end

Self link for this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


1527
1528
1529
# File 'generated/google/apis/analytics_v3/classes.rb', line 1527

def self_link
  @self_link
end

#user_refGoogle::Apis::AnalyticsV3::UserRef

JSON template for a user reference. Corresponds to the JSON property userRef



1532
1533
1534
# File 'generated/google/apis/analytics_v3/classes.rb', line 1532

def user_ref
  @user_ref
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1539
1540
1541
1542
1543
1544
1545
1546
# File 'generated/google/apis/analytics_v3/classes.rb', line 1539

def update!(**args)
  @entity = args[:entity] if args.key?(:entity)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @permissions = args[:permissions] if args.key?(:permissions)
  @self_link = args[:self_link] if args.key?(:self_link)
  @user_ref = args[:user_ref] if args.key?(:user_ref)
end