View Source GoogleApi.DriveActivity.V2.Model.Create (google_api_drive_activity v0.8.0)

An object was created.

Attributes

  • copy (type: GoogleApi.DriveActivity.V2.Model.Copy.t, default: nil) - If present, indicates the object was created by copying an existing Drive object.
  • new (type: GoogleApi.DriveActivity.V2.Model.New.t, default: nil) - If present, indicates the object was newly created (e.g. as a blank document), not derived from a Drive object or external object.
  • upload (type: GoogleApi.DriveActivity.V2.Model.Upload.t, default: nil) - If present, indicates the object originated externally and was uploaded to Drive.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.DriveActivity.V2.Model.Create{
  copy: GoogleApi.DriveActivity.V2.Model.Copy.t() | nil,
  new: GoogleApi.DriveActivity.V2.Model.New.t() | nil,
  upload: GoogleApi.DriveActivity.V2.Model.Upload.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.