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.



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

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

#nameString

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

Returns:

  • (String)


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

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)


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

def permission_id
  @permission_id
end

#photoGoogle::Apis::AppsactivityV1::Photo

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



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

def photo
  @photo
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @is_deleted = args[:is_deleted] if args.key?(:is_deleted)
  @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