class Google::Apis::DriveV3::Change

A change to a file or shared drive.

Attributes

change_type[RW]

The type of the change. Possible values are file and drive. Corresponds to the JSON property `changeType` @return [String]

drive[RW]

Representation of a shared drive. Corresponds to the JSON property `drive` @return [Google::Apis::DriveV3::Drive]

drive_id[RW]

The ID of the shared drive associated with this change. Corresponds to the JSON property `driveId` @return [String]

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]

Identifies what kind of resource this is. Value: the fixed string “drive# change”. Corresponds to the JSON property `kind` @return [String]

removed[RW]

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 `removed` @return [Boolean]

removed?[RW]

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 `removed` @return [Boolean]

team_drive[RW]

Deprecated: use the drive collection instead. Corresponds to the JSON property `teamDrive` @return [Google::Apis::DriveV3::TeamDrive]

team_drive_id[RW]

Deprecated - use driveId instead. Corresponds to the JSON property `teamDriveId` @return [String]

time[RW]

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

type[RW]

Deprecated - use changeType instead. Corresponds to the JSON property `type` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/drive_v3/classes.rb, line 287
def update!(**args)
  @change_type = args[:change_type] if args.key?(:change_type)
  @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)
  @kind = args[:kind] if args.key?(:kind)
  @removed = args[:removed] if args.key?(:removed)
  @team_drive = args[:team_drive] if args.key?(:team_drive)
  @team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id)
  @time = args[:time] if args.key?(:time)
  @type = args[:type] if args.key?(:type)
end