class Google::Apis::DriveV3::Change

A change to a file.

Attributes

file[RW]

The metadata for a file. Corresponds to the JSON property `file` @return [Google::Apis::DriveV3::File]

file_id[RW]

The ID of the file which has changed. Corresponds to the JSON property `fileId` @return [String]

kind[RW]

This is always drive#change. Corresponds to the JSON property `kind` @return [String]

removed[RW]

Whether the file has been removed from the view of the changes list, for example by deletion or lost access. Corresponds to the JSON property `removed` @return [Boolean]

removed?[RW]

Whether the file has been removed from the view of the changes list, for example by deletion or lost access. Corresponds to the JSON property `removed` @return [Boolean]

time[RW]

The time of this change (RFC 3339 date-time). Corresponds to the JSON property `time` @return [DateTime]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/drive_v3/classes.rb, line 162
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/drive_v3/classes.rb, line 167
def update!(**args)
  @file = args[:file] if args.key?(:file)
  @file_id = args[:file_id] if args.key?(:file_id)
  @kind = args[:kind] if args.key?(:kind)
  @removed = args[:removed] if args.key?(:removed)
  @time = args[:time] if args.key?(:time)
end