class Google::Apis::DriveV2::Change
Representation
of a change to a file or shared drive.
Attributes
The type of the change. Possible values are file and drive. Corresponds to the JSON property `changeType` @return [String]
Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access. Corresponds to the JSON property `deleted` @return [Boolean]
Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access. Corresponds to the JSON property `deleted` @return [Boolean]
Representation
of a shared drive. Corresponds to the JSON property `drive` @return [Google::Apis::DriveV2::Drive]
The ID of the shared drive associated with this change. Corresponds to the JSON property `driveId` @return [String]
The metadata for a file. Corresponds to the JSON property `file` @return [Google::Apis::DriveV2::File]
The ID of the file associated with this change. Corresponds to the JSON property `fileId` @return [String]
The ID of the change. Corresponds to the JSON property `id` @return [Fixnum]
This is always drive#change. Corresponds to the JSON property `kind` @return [String]
The time of this modification. Corresponds to the JSON property `modificationDate` @return [DateTime]
A link back to this change. Corresponds to the JSON property `selfLink` @return [String]
Deprecated: use the drive collection instead. Corresponds to the JSON property `teamDrive` @return [Google::Apis::DriveV2::TeamDrive]
Deprecated - use driveId instead. Corresponds to the JSON property `teamDriveId` @return [String]
Deprecated - use changeType instead. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/drive_v2/classes.rb, line 780 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/drive_v2/classes.rb, line 785 def update!(**args) @change_type = args[:change_type] if args.key?(:change_type) @deleted = args[:deleted] if args.key?(:deleted) @drive = args[:drive] if args.key?(:drive) @drive_id = args[:drive_id] if args.key?(:drive_id) @file = args[:file] if args.key?(:file) @file_id = args[:file_id] if args.key?(:file_id) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @modification_date = args[:modification_date] if args.key?(:modification_date) @self_link = args[:self_link] if args.key?(:self_link) @team_drive = args[:team_drive] if args.key?(:team_drive) @team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id) @type = args[:type] if args.key?(:type) end