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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[null,null,["Last updated 2024-09-03 UTC."],[[["`TargetReference` provides a lightweight way to reference the target of an activity."],["The target can be a Drive item, a shared drive, or a deprecated Team Drive."],["`TargetReference` uses a union field \"object\" to specify the type of target, which can be `driveItem`, `drive`, or the deprecated `teamDrive`."],["When referencing a shared drive, the `drive` field should be used instead of the deprecated `teamDrive` field."]]],[]]