class Google::Apis::DriveactivityV2::DriveItemReference
A lightweight reference to a Drive
item, such as a file or folder.
Attributes
A Drive
item which is a file. Corresponds to the JSON property `driveFile` @return [Google::Apis::DriveactivityV2::DriveFile]
A Drive
item which is a folder. Corresponds to the JSON property `driveFolder` @return [Google::Apis::DriveactivityV2::DriveFolder]
This item is deprecated; please see `DriveFile` instead. Corresponds to the JSON property `file` @return [Google::Apis::DriveactivityV2::File]
This item is deprecated; please see `DriveFolder` instead. Corresponds to the JSON property `folder` @return [Google::Apis::DriveactivityV2::Folder]
The target Drive
item. The format is `items/ITEM_ID`. Corresponds to the JSON property `name` @return [String]
The title of the Drive
item. Corresponds to the JSON property `title` @return [String]
Public Class Methods
# File lib/google/apis/driveactivity_v2/classes.rb, line 687 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/driveactivity_v2/classes.rb, line 692 def update!(**args) @drive_file = args[:drive_file] if args.key?(:drive_file) @drive_folder = args[:drive_folder] if args.key?(:drive_folder) @file = args[:file] if args.key?(:file) @folder = args[:folder] if args.key?(:folder) @name = args[:name] if args.key?(:name) @title = args[:title] if args.key?(:title) end