class Google::Apis::AppsactivityV1::User

A representation of a user.

Attributes

is_deleted[RW]

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` @return [Boolean]

is_deleted?[RW]

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` @return [Boolean]

name[RW]

The displayable name of the user. Corresponds to the JSON property `name` @return [String]

permission_id[RW]

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` @return [String]

photo[RW]

Photo information for a user. Corresponds to the JSON property `photo` @return [Google::Apis::AppsactivityV1::Photo]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/appsactivity_v1/classes.rb, line 394
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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