Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/analyticsadmin_v1alpha/classes.rb,
generated/google/apis/analyticsadmin_v1alpha/representations.rb,
generated/google/apis/analyticsadmin_v1alpha/representations.rb
Overview
A resource message representing a user's permissions on an Account or Property resource.
Instance Attribute Summary collapse
-
#direct_roles ⇒ Array<String>
Roles directly assigned to this user for this account or property.
-
#email_address ⇒ String
Email address of the user to link Corresponds to the JSON property
emailAddress
. -
#name ⇒ String
Example format: properties/1234/userLinks/5678 Corresponds to the JSON property
name
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaUserLink
constructor
A new instance of GoogleAnalyticsAdminV1alphaUserLink.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaUserLink
Returns a new instance of GoogleAnalyticsAdminV1alphaUserLink.
1279 1280 1281 |
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 1279 def initialize(**args) update!(**args) end |
Instance Attribute Details
#direct_roles ⇒ Array<String>
Roles directly assigned to this user for this account or property. Valid
values: predefinedRoles/read predefinedRoles/collaborate predefinedRoles/edit
predefinedRoles/manage-users Excludes roles that are inherited from a higher-
level entity, group, or organization admin role. A UserLink that is updated to
have an empty list of direct_roles will be deleted.
Corresponds to the JSON property directRoles
1267 1268 1269 |
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 1267 def direct_roles @direct_roles end |
#email_address ⇒ String
Email address of the user to link
Corresponds to the JSON property emailAddress
1272 1273 1274 |
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 1272 def email_address @email_address end |
#name ⇒ String
Example format: properties/1234/userLinks/5678
Corresponds to the JSON property name
1277 1278 1279 |
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 1277 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1284 1285 1286 1287 1288 |
# File 'generated/google/apis/analyticsadmin_v1alpha/classes.rb', line 1284 def update!(**args) @direct_roles = args[:direct_roles] if args.key?(:direct_roles) @email_address = args[:email_address] if args.key?(:email_address) @name = args[:name] if args.key?(:name) end |