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

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

Overview

Information about a Drive user.

Defined Under Namespace

Classes: Picture

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ User



2598
2599
2600
# File 'generated/google/apis/drive_v2/classes.rb', line 2598

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

Instance Attribute Details

#display_nameString

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



2569
2570
2571
# File 'generated/google/apis/drive_v2/classes.rb', line 2569

def display_name
  @display_name
end

#email_addressString

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



2574
2575
2576
# File 'generated/google/apis/drive_v2/classes.rb', line 2574

def email_address
  @email_address
end

#is_authenticated_userBoolean Also known as: is_authenticated_user?

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



2580
2581
2582
# File 'generated/google/apis/drive_v2/classes.rb', line 2580

def is_authenticated_user
  @is_authenticated_user
end

#kindString

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



2586
2587
2588
# File 'generated/google/apis/drive_v2/classes.rb', line 2586

def kind
  @kind
end

#permission_idString

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



2591
2592
2593
# File 'generated/google/apis/drive_v2/classes.rb', line 2591

def permission_id
  @permission_id
end

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

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



2596
2597
2598
# File 'generated/google/apis/drive_v2/classes.rb', line 2596

def picture
  @picture
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2603
2604
2605
2606
2607
2608
2609
2610
# File 'generated/google/apis/drive_v2/classes.rb', line 2603

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