class Google::Apis::DriveV3::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. This may not be present in certain contexts if the user has not made their email address visible to the requester. Corresponds to the JSON property `emailAddress` @return [String]

kind[RW]

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

me[RW]

Whether this user is the requesting user. Corresponds to the JSON property `me` @return [Boolean]

me?[RW]

Whether this user is the requesting user. Corresponds to the JSON property `me` @return [Boolean]

permission_id[RW]

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

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/drive_v3/classes.rb, line 1532
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_v3/classes.rb, line 1537
def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @email_address = args[:email_address] if args.key?(:email_address)
  @kind = args[:kind] if args.key?(:kind)
  @me = args[:me] if args.key?(:me)
  @permission_id = args[:permission_id] if args.key?(:permission_id)
  @photo_link = args[:photo_link] if args.key?(:photo_link)
end