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]

Identifies what kind of resource this is. Value: the fixed string “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 lib/google/apis/drive_v3/classes.rb, line 3080
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/drive_v3/classes.rb, line 3085
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