class Google::Apis::DriveactivityV2::DriveItemReference

A lightweight reference to a Drive item, such as a file or folder.

Attributes

drive_file[RW]

A Drive item which is a file. Corresponds to the JSON property `driveFile` @return [Google::Apis::DriveactivityV2::DriveFile]

drive_folder[RW]

A Drive item which is a folder. Corresponds to the JSON property `driveFolder` @return [Google::Apis::DriveactivityV2::DriveFolder]

file[RW]

This item is deprecated; please see `DriveFile` instead. Corresponds to the JSON property `file` @return [Google::Apis::DriveactivityV2::File]

folder[RW]

This item is deprecated; please see `DriveFolder` instead. Corresponds to the JSON property `folder` @return [Google::Apis::DriveactivityV2::Folder]

name[RW]

The target Drive item. The format is `items/ITEM_ID`. Corresponds to the JSON property `name` @return [String]

title[RW]

The title of the Drive item. Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/driveactivity_v2/classes.rb, line 687
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 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