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.
-
#is_me ⇒ Boolean
(also: #is_me?)
Whether the user is the authenticated user.
-
#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
400 401 402 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 400 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 |
#is_me ⇒ Boolean Also known as: is_me?
Whether the user is the authenticated user.
Corresponds to the JSON property isMe
380 381 382 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 380 def is_me @is_me end |
#name ⇒ String
The displayable name of the user.
Corresponds to the JSON property name
386 387 388 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 386 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
393 394 395 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 393 def @permission_id end |
#photo ⇒ Google::Apis::AppsactivityV1::Photo
Photo information for a user.
Corresponds to the JSON property photo
398 399 400 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 398 def photo @photo end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
405 406 407 408 409 410 411 |
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 405 def update!(**args) @is_deleted = args[:is_deleted] if args.key?(:is_deleted) @is_me = args[:is_me] if args.key?(:is_me) @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 |