class Google::Apis::DriveV2::User

Information about a Drive user.

Attributes

display_name[RW]

A plain text displayable name for this user. Corresponds to the JSON property `displayName` @return [String]

email_address[RW]

The email address of the user. Corresponds to the JSON property `emailAddress` @return [String]

is_authenticated_user[RW]

Whether this user is the same as the authenticated user for whom the request was made. Corresponds to the JSON property `isAuthenticatedUser` @return [Boolean]

is_authenticated_user?[RW]

Whether this user is the same as the authenticated user for whom the request was made. Corresponds to the JSON property `isAuthenticatedUser` @return [Boolean]

kind[RW]

This is always drive#user. Corresponds to the JSON property `kind` @return [String]

permission_id[RW]

The user's ID as visible in the permissions collection. Corresponds to the JSON property `permissionId` @return [String]

picture[RW]

The user's profile picture. Corresponds to the JSON property `picture` @return [Google::Apis::DriveV2::User::Picture]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/drive_v2/classes.rb, line 2545
def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @email_address = args[:email_address] if args.key?(:email_address)
  @is_authenticated_user = args[:is_authenticated_user] if args.key?(:is_authenticated_user)
  @kind = args[:kind] if args.key?(:kind)
  @permission_id = args[:permission_id] if args.key?(:permission_id)
  @picture = args[:picture] if args.key?(:picture)
end