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

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



1375
1376
1377
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1375

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



1363
1364
1365
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1363

def deleted_user
  @deleted_user
end

#known_userGoogle::Apis::DriveactivityV2::KnownUser

A known user. Corresponds to the JSON property knownUser



1368
1369
1370
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1368

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



1373
1374
1375
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1373

def unknown_user
  @unknown_user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1380
1381
1382
1383
1384
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1380

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