Class: Google::Apis::AnalyticsV3::EntityUserLink
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsV3::EntityUserLink
- 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
-
#entity ⇒ Google::Apis::AnalyticsV3::EntityUserLink::Entity
Entity for this link.
-
#id ⇒ String
Entity user link ID Corresponds to the JSON property
id
. -
#kind ⇒ String
Resource type for entity user link.
-
#permissions ⇒ Google::Apis::AnalyticsV3::EntityUserLink::Permissions
Permissions the user has for this entity.
-
#self_link ⇒ String
Self link for this resource.
-
#user_ref ⇒ Google::Apis::AnalyticsV3::UserRef
JSON template for a user reference.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EntityUserLink
constructor
A new instance of EntityUserLink.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EntityUserLink
Returns a new instance of EntityUserLink
1506 1507 1508 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1506 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entity ⇒ Google::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
1479 1480 1481 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1479 def entity @entity end |
#id ⇒ String
Entity user link ID
Corresponds to the JSON property id
1484 1485 1486 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1484 def id @id end |
#kind ⇒ String
Resource type for entity user link.
Corresponds to the JSON property kind
1489 1490 1491 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1489 def kind @kind end |
#permissions ⇒ Google::Apis::AnalyticsV3::EntityUserLink::Permissions
Permissions the user has for this entity.
Corresponds to the JSON property permissions
1494 1495 1496 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1494 def @permissions end |
#self_link ⇒ String
Self link for this resource.
Corresponds to the JSON property selfLink
1499 1500 1501 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1499 def self_link @self_link end |
#user_ref ⇒ Google::Apis::AnalyticsV3::UserRef
JSON template for a user reference.
Corresponds to the JSON property userRef
1504 1505 1506 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1504 def user_ref @user_ref end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1511 1512 1513 1514 1515 1516 1517 1518 |
# File 'generated/google/apis/analytics_v3/classes.rb', line 1511 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 |