Class: Google::Apis::DriveactivityV2::User

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

Overview

Information about an end user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ User

Returns a new instance of User.



1504
1505
1506
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1504

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

Instance Attribute Details

#deleted_userGoogle::Apis::DriveactivityV2::DeletedUser

A user whose account has since been deleted. Corresponds to the JSON property deletedUser



1492
1493
1494
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1492

def deleted_user
  @deleted_user
end

#known_userGoogle::Apis::DriveactivityV2::KnownUser

A known user. Corresponds to the JSON property knownUser



1497
1498
1499
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1497

def known_user
  @known_user
end

#unknown_userGoogle::Apis::DriveactivityV2::UnknownUser

A user about whom nothing is currently known. Corresponds to the JSON property unknownUser



1502
1503
1504
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1502

def unknown_user
  @unknown_user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1509
1510
1511
1512
1513
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1509

def update!(**args)
  @deleted_user = args[:deleted_user] if args.key?(:deleted_user)
  @known_user = args[:known_user] if args.key?(:known_user)
  @unknown_user = args[:unknown_user] if args.key?(:unknown_user)
end