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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_user ⇒ Boolean Also known as: is_current_user?
True if this is the user making the request.
Corresponds to the JSON property isCurrentUser
749 750 751 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 749 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
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 |