Class: Google::Apis::DriveV2::User

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v2/classes.rb,
lib/google/apis/drive_v2/representations.rb,
lib/google/apis/drive_v2/representations.rb
more...

Overview

Information about a Drive user.

Defined Under Namespace

Classes: Picture

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ User

Returns a new instance of User.

[View source]

4653
4654
4655
# File 'lib/google/apis/drive_v2/classes.rb', line 4653

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#display_nameString

Output only. A plain text displayable name for this user. Corresponds to the JSON property displayName

Returns:

  • (String)

4624
4625
4626
# File 'lib/google/apis/drive_v2/classes.rb', line 4624

def display_name
  @display_name
end

#email_addressString

Output only. The email address of the user. Corresponds to the JSON property emailAddress

Returns:

  • (String)

4629
4630
4631
# File 'lib/google/apis/drive_v2/classes.rb', line 4629

def email_address
  @email_address
end

#is_authenticated_userBoolean Also known as: is_authenticated_user?

Output only. Whether this user is the same as the authenticated user for whom the request was made. Corresponds to the JSON property isAuthenticatedUser

Returns:

  • (Boolean)

4635
4636
4637
# File 'lib/google/apis/drive_v2/classes.rb', line 4635

def is_authenticated_user
  @is_authenticated_user
end

#kindString

Output only. This is always drive#user. Corresponds to the JSON property kind

Returns:

  • (String)

4641
4642
4643
# File 'lib/google/apis/drive_v2/classes.rb', line 4641

def kind
  @kind
end

#permission_idString

Output only. The user's ID as visible in the permissions collection. Corresponds to the JSON property permissionId

Returns:

  • (String)

4646
4647
4648
# File 'lib/google/apis/drive_v2/classes.rb', line 4646

def permission_id
  @permission_id
end

#pictureGoogle::Apis::DriveV2::User::Picture

Output only. The user's profile picture. Corresponds to the JSON property picture


4651
4652
4653
# File 'lib/google/apis/drive_v2/classes.rb', line 4651

def picture
  @picture
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

4658
4659
4660
4661
4662
4663
4664
4665
# File 'lib/google/apis/drive_v2/classes.rb', line 4658

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