Class: Google::Apis::DriveactivityV2::Owner
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::Owner
- 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 the owner of a Drive item.
Instance Attribute Summary collapse
-
#domain ⇒ Google::Apis::DriveactivityV2::Domain
Information about a domain.
-
#team_drive ⇒ Google::Apis::DriveactivityV2::TeamDriveReference
A lightweight reference to a Team Drive.
-
#user ⇒ Google::Apis::DriveactivityV2::User
Information about an end user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Owner
constructor
A new instance of Owner.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Owner
Returns a new instance of Owner
857 858 859 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 857 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain ⇒ Google::Apis::DriveactivityV2::Domain
Information about a domain.
Corresponds to the JSON property domain
845 846 847 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 845 def domain @domain end |
#team_drive ⇒ Google::Apis::DriveactivityV2::TeamDriveReference
A lightweight reference to a Team Drive.
Corresponds to the JSON property teamDrive
850 851 852 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 850 def team_drive @team_drive end |
#user ⇒ Google::Apis::DriveactivityV2::User
Information about an end user.
Corresponds to the JSON property user
855 856 857 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 855 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
862 863 864 865 866 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 862 def update!(**args) @domain = args[:domain] if args.key?(:domain) @team_drive = args[:team_drive] if args.key?(:team_drive) @user = args[:user] if args.key?(:user) end |