View Source GoogleApi.Drive.V3.Model.Change (google_api_drive v0.27.1)

A change to a file or shared drive.

Attributes

  • changeType (type: String.t, default: nil) - The type of the change. Possible values are file and drive.
  • drive (type: GoogleApi.Drive.V3.Model.Drive.t, default: nil) - The updated state of the shared drive. Present if the changeType is drive, the user is still a member of the shared drive, and the shared drive has not been deleted.
  • driveId (type: String.t, default: nil) - The ID of the shared drive associated with this change.
  • file (type: GoogleApi.Drive.V3.Model.File.t, default: nil) - The updated state of the file. Present if the type is file and the file has not been removed from this list of changes.
  • fileId (type: String.t, default: nil) - The ID of the file which has changed.
  • kind (type: String.t, default: drive#change) - Identifies what kind of resource this is. Value: the fixed string "drive#change".
  • removed (type: boolean(), default: nil) - Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access.
  • teamDrive (type: GoogleApi.Drive.V3.Model.TeamDrive.t, default: nil) - Deprecated: Use drive instead.
  • teamDriveId (type: String.t, default: nil) - Deprecated: Use driveId instead.
  • time (type: DateTime.t, default: nil) - The time of this change (RFC 3339 date-time).
  • type (type: String.t, default: nil) - Deprecated: Use changeType instead.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Drive.V3.Model.Change{
  changeType: String.t() | nil,
  drive: GoogleApi.Drive.V3.Model.Drive.t() | nil,
  driveId: String.t() | nil,
  file: GoogleApi.Drive.V3.Model.File.t() | nil,
  fileId: String.t() | nil,
  kind: String.t() | nil,
  removed: boolean() | nil,
  teamDrive: GoogleApi.Drive.V3.Model.TeamDrive.t() | nil,
  teamDriveId: String.t() | nil,
  time: DateTime.t() | nil,
  type: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.