Class: Google::Apis::AppsactivityV1::User

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

Overview

A representation of a user.

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

Returns a new instance of User



400
401
402
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 400

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

Instance Attribute Details

#is_deletedBoolean Also known as: is_deleted?

A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted. Corresponds to the JSON property isDeleted

Returns:

  • (Boolean)


374
375
376
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 374

def is_deleted
  @is_deleted
end

#is_meBoolean Also known as: is_me?

Whether the user is the authenticated user. Corresponds to the JSON property isMe

Returns:

  • (Boolean)


380
381
382
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 380

def is_me
  @is_me
end

#nameString

The displayable name of the user. Corresponds to the JSON property name

Returns:

  • (String)


386
387
388
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 386

def name
  @name
end

#permission_idString

The permission ID associated with this user. Equivalent to the Drive API's permission ID for this user, returned as part of the Drive Permissions resource. Corresponds to the JSON property permissionId

Returns:

  • (String)


393
394
395
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 393

def permission_id
  @permission_id
end

#photoGoogle::Apis::AppsactivityV1::Photo

Photo information for a user. Corresponds to the JSON property photo



398
399
400
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 398

def photo
  @photo
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



405
406
407
408
409
410
411
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 405

def update!(**args)
  @is_deleted = args[:is_deleted] if args.key?(:is_deleted)
  @is_me = args[:is_me] if args.key?(:is_me)
  @name = args[:name] if args.key?(:name)
  @permission_id = args[:permission_id] if args.key?(:permission_id)
  @photo = args[:photo] if args.key?(:photo)
end