Drive Activity API v1 has reached the end of its deprecation period and is shutting down as announced in December 2018. Migrate to API v2 as soon as possible to avoid disruptions to your application.

TargetReference

TargetReference

A lightweight reference to the target of activity.

JSON representation
{
  "teamDrive": {
    object (TeamDriveReference)
  },

  // Union field object can be only one of the following:
  "driveItem": {
    object (DriveItemReference)
  },
  "drive": {
    object (DriveReference)
  }
  // End of list of possible types for union field object.
}
Fields
teamDrive
(deprecated)

object ( TeamDriveReference )

This field is deprecated; please use the drive field instead.

Union field object . The type of target object. object can be only one of the following:
driveItem

object ( DriveItemReference )

The target is a Drive item.

drive

object ( DriveReference )

The target is a shared drive.