Class: Google::Apis::DriveactivityV2::KnownUser

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

A known 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) ⇒ KnownUser

Returns a new instance of KnownUser



759
760
761
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 759

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

Instance Attribute Details

#is_current_userBoolean Also known as: is_current_user?

True if this is the user making the request. Corresponds to the JSON property isCurrentUser

Returns:

  • (Boolean)


749
750
751
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 749

def is_current_user
  @is_current_user
end

#person_nameString

The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". See https://developers.google.com/people/. Corresponds to the JSON property personName

Returns:

  • (String)


757
758
759
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 757

def person_name
  @person_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



764
765
766
767
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 764

def update!(**args)
  @is_current_user = args[:is_current_user] if args.key?(:is_current_user)
  @person_name = args[:person_name] if args.key?(:person_name)
end