class Google::Apis::DriveactivityV2::DriveItem
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 MIME type of the Drive
item. See developers.google.com/drive/v3/ web/mime-types. Corresponds to the JSON property `mimeType` @return [String]
The target Drive
item. The format is `items/ITEM_ID`. Corresponds to the JSON property `name` @return [String]
Information about the owner of a Drive
item. Corresponds to the JSON property `owner` @return [Google::Apis::DriveactivityV2::Owner]
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 636 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/driveactivity_v2/classes.rb, line 641 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) @mime_type = args[:mime_type] if args.key?(:mime_type) @name = args[:name] if args.key?(:name) @owner = args[:owner] if args.key?(:owner) @title = args[:title] if args.key?(:title) end