Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLink

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

Overview

Read-only resource used to summarize a principal's effective roles.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaAuditUserLink

Returns a new instance of GoogleAnalyticsAdminV1alphaAuditUserLink.



1410
1411
1412
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1410

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

Instance Attribute Details

#direct_rolesArray<String>

Roles directly assigned to this user for this entity. Format: predefinedRoles/ viewer Excludes roles that are inherited from an account (if this is for a property), group, or organization admin role. Corresponds to the JSON property directRoles

Returns:

  • (Array<String>)


1391
1392
1393
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1391

def direct_roles
  @direct_roles
end

#effective_rolesArray<String>

Union of all permissions a user has at this account or property (includes direct permissions, group-inherited permissions, etc.). Format: predefinedRoles/viewer Corresponds to the JSON property effectiveRoles

Returns:

  • (Array<String>)


1398
1399
1400
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1398

def effective_roles
  @effective_roles
end

#email_addressString

Email address of the linked user Corresponds to the JSON property emailAddress

Returns:

  • (String)


1403
1404
1405
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1403

def email_address
  @email_address
end

#nameString

Example format: properties/1234/userLinks/5678 Corresponds to the JSON property name

Returns:

  • (String)


1408
1409
1410
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1408

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1415
1416
1417
1418
1419
1420
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1415

def update!(**args)
  @direct_roles = args[:direct_roles] if args.key?(:direct_roles)
  @effective_roles = args[:effective_roles] if args.key?(:effective_roles)
  @email_address = args[:email_address] if args.key?(:email_address)
  @name = args[:name] if args.key?(:name)
end