Class: Google::Apis::DriveV2::User
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DriveV2::User
 
- 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
- 
  
    
      #display_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A plain text displayable name for this user. 
- 
  
    
      #email_address  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The email address of the user. 
- 
  
    
      #is_authenticated_user  ⇒ Boolean 
    
    
      (also: #is_authenticated_user?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether this user is the same as the authenticated user for whom the request was made. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is always drive#user. 
- 
  
    
      #permission_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The user's ID as visible in the permissions collection. 
- 
  
    
      #picture  ⇒ Google::Apis::DriveV2::User::Picture 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The user's profile picture. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ User 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of User. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ User
Returns a new instance of User
| 3262 3263 3264 | # File 'generated/google/apis/drive_v2/classes.rb', line 3262 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#display_name ⇒ String
A plain text displayable name for this user.
Corresponds to the JSON property displayName
| 3233 3234 3235 | # File 'generated/google/apis/drive_v2/classes.rb', line 3233 def display_name @display_name end | 
#email_address ⇒ String
The email address of the user.
Corresponds to the JSON property emailAddress
| 3238 3239 3240 | # File 'generated/google/apis/drive_v2/classes.rb', line 3238 def email_address @email_address end | 
#is_authenticated_user ⇒ Boolean 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
| 3244 3245 3246 | # File 'generated/google/apis/drive_v2/classes.rb', line 3244 def is_authenticated_user @is_authenticated_user end | 
#kind ⇒ String
This is always drive#user.
Corresponds to the JSON property kind
| 3250 3251 3252 | # File 'generated/google/apis/drive_v2/classes.rb', line 3250 def kind @kind end | 
#permission_id ⇒ String
The user's ID as visible in the permissions collection.
Corresponds to the JSON property permissionId
| 3255 3256 3257 | # File 'generated/google/apis/drive_v2/classes.rb', line 3255 def @permission_id end | 
#picture ⇒ Google::Apis::DriveV2::User::Picture
The user's profile picture.
Corresponds to the JSON property picture
| 3260 3261 3262 | # File 'generated/google/apis/drive_v2/classes.rb', line 3260 def picture @picture end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3267 3268 3269 3270 3271 3272 3273 3274 | # File 'generated/google/apis/drive_v2/classes.rb', line 3267 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 |