class Google::Apis::DriveactivityV2::Target
Information about the target of activity.
Attributes
drive[RW]
Information about a shared drive. Corresponds to the JSON property `drive` @return [Google::Apis::DriveactivityV2::Drive]
drive_item[RW]
A Drive
item, such as a file or folder. Corresponds to the JSON property `driveItem` @return [Google::Apis::DriveactivityV2::DriveItem]
file_comment[RW]
A comment on a file. Corresponds to the JSON property `fileComment` @return [Google::Apis::DriveactivityV2::FileComment]
team_drive[RW]
This item is deprecated; please see `Drive` instead. Corresponds to the JSON property `teamDrive` @return [Google::Apis::DriveactivityV2::TeamDrive]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/driveactivity_v2/classes.rb, line 1335 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/driveactivity_v2/classes.rb, line 1340 def update!(**args) @drive = args[:drive] if args.key?(:drive) @drive_item = args[:drive_item] if args.key?(:drive_item) @file_comment = args[:file_comment] if args.key?(:file_comment) @team_drive = args[:team_drive] if args.key?(:team_drive) end