View Source GoogleApi.Classroom.V1.Model.Material (google_api_classroom v0.21.2)

Material attached to course work. When creating attachments, setting the form field is not supported.

Attributes

  • driveFile (type: GoogleApi.Classroom.V1.Model.SharedDriveFile.t, default: nil) - Google Drive file material.
  • form (type: GoogleApi.Classroom.V1.Model.Form.t, default: nil) - Google Forms material.
  • link (type: GoogleApi.Classroom.V1.Model.Link.t, default: nil) - Link material. On creation, this is upgraded to a more appropriate type if possible, and this is reflected in the response.
  • youtubeVideo (type: GoogleApi.Classroom.V1.Model.YouTubeVideo.t, default: nil) - YouTube video material.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Classroom.V1.Model.Material{
  driveFile: GoogleApi.Classroom.V1.Model.SharedDriveFile.t() | nil,
  form: GoogleApi.Classroom.V1.Model.Form.t() | nil,
  link: GoogleApi.Classroom.V1.Model.Link.t() | nil,
  youtubeVideo: GoogleApi.Classroom.V1.Model.YouTubeVideo.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.