Class: Google::Apis::AppsactivityV1::User
- Inherits:
-
Object
- Object
- Google::Apis::AppsactivityV1::User
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/appsactivity_v1/classes.rb,
generated/google/apis/appsactivity_v1/representations.rb,
generated/google/apis/appsactivity_v1/representations.rb
Overview
A representation of a user.
Instance Attribute Summary collapse
-
#is_deleted ⇒ Boolean
(also: #is_deleted?)
A boolean which indicates whether the specified User was deleted.
-
#name ⇒ String
The displayable name of the user.
-
#permission_id ⇒ String
The permission ID associated with this user.
-
#photo ⇒ Google::Apis::AppsactivityV1::Photo
Photo information for a user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ User
constructor
A new instance of User.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ User
Returns a new instance of User.
394 395 396 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 394 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_deleted ⇒ Boolean Also known as: is_deleted?
A boolean which indicates whether the specified User was deleted. If true,
name, photo and permission_id will be omitted.
Corresponds to the JSON property isDeleted
374 375 376 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 374 def is_deleted @is_deleted end |
#name ⇒ String
The displayable name of the user.
Corresponds to the JSON property name
380 381 382 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 380 def name @name end |
#permission_id ⇒ String
The permission ID associated with this user. Equivalent to the Drive API's
permission ID for this user, returned as part of the Drive Permissions
resource.
Corresponds to the JSON property permissionId
387 388 389 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 387 def @permission_id end |
#photo ⇒ Google::Apis::AppsactivityV1::Photo
Photo information for a user.
Corresponds to the JSON property photo
392 393 394 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 392 def photo @photo end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
399 400 401 402 403 404 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 399 def update!(**args) @is_deleted = args[:is_deleted] if args.key?(:is_deleted) @name = args[:name] if args.key?(:name) @permission_id = args[:permission_id] if args.key?(:permission_id) @photo = args[:photo] if args.key?(:photo) end |