Class: Google::Apis::DriveactivityV2::KnownUser
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::KnownUser
- 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
-
#is_current_user ⇒ Boolean
(also: #is_current_user?)
True if this is the user making the request.
-
#person_name ⇒ String
The identifier for this user that can be used with the People API to get more information.
Instance Method Summary collapse
-
#initialize(**args) ⇒ KnownUser
constructor
A new instance of KnownUser.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ KnownUser
Returns a new instance of KnownUser.
878 879 880 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 878 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_current_user ⇒ Boolean Also known as: is_current_user?
True if this is the user making the request.
Corresponds to the JSON property isCurrentUser
868 869 870 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 868 def is_current_user @is_current_user end |
#person_name ⇒ String
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
876 877 878 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 876 def person_name @person_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
883 884 885 886 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 883 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 |