class Google::Apis::DriveactivityV2::TargetReference

A lightweight reference to the target of activity.

Attributes

drive[RW]

A lightweight reference to a shared drive. Corresponds to the JSON property `drive` @return [Google::Apis::DriveactivityV2::DriveReference]

drive_item[RW]

A lightweight reference to a Drive item, such as a file or folder. Corresponds to the JSON property `driveItem` @return [Google::Apis::DriveactivityV2::DriveItemReference]

team_drive[RW]

This item is deprecated; please see `DriveReference` instead. Corresponds to the JSON property `teamDrive` @return [Google::Apis::DriveactivityV2::TeamDriveReference]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/driveactivity_v2/classes.rb, line 1367
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 1372
def update!(**args)
  @drive = args[:drive] if args.key?(:drive)
  @drive_item = args[:drive_item] if args.key?(:drive_item)
  @team_drive = args[:team_drive] if args.key?(:team_drive)
end