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

An add-on attachment on a post.

Attributes

  • copyHistory (type: list(GoogleApi.Classroom.V1.Model.CopyHistory.t), default: nil) - Output only. Identifiers of attachments that were previous copies of this attachment. If the attachment was previously copied by virtue of its parent post being copied, this enumerates the identifiers of attachments that were its previous copies in ascending chronological order of copy.
  • courseId (type: String.t, default: nil) - Immutable. Identifier of the course.
  • dueDate (type: GoogleApi.Classroom.V1.Model.Date.t, default: nil) - Date, in UTC, that work on this attachment is due. This must be specified if due_time is specified.
  • dueTime (type: GoogleApi.Classroom.V1.Model.TimeOfDay.t, default: nil) - Time of day, in UTC, that work on this attachment is due. This must be specified if due_date is specified.
  • id (type: String.t, default: nil) - Immutable. Classroom-assigned identifier for this attachment, unique per post.
  • itemId (type: String.t, default: nil) - Immutable. Identifier of the Announcement, CourseWork, or CourseWorkMaterial under which the attachment is attached. Unique per course.
  • maxPoints (type: float(), default: nil) - Maximum grade for this attachment. Can only be set if studentWorkReviewUri is set. Set to a non-zero value to indicate that the attachment supports grade passback. If set, this must be a non-negative integer value. When set to zero, the attachment will not support grade passback.
  • postId (type: String.t, default: nil) - Immutable. Deprecated, use item_id instead.
  • studentViewUri (type: GoogleApi.Classroom.V1.Model.EmbedUri.t, default: nil) - Required. URI to show the student view of the attachment. The URI will be opened in an iframe with the courseId, itemId, itemType, and attachmentId query parameters set.
  • studentWorkReviewUri (type: GoogleApi.Classroom.V1.Model.EmbedUri.t, default: nil) - URI for the teacher to see student work on the attachment, if applicable. The URI will be opened in an iframe with the courseId, itemId, itemType, attachmentId, and submissionId query parameters set. This is the same submissionId returned in the AddOnContext.studentContext field when a student views the attachment. If the URI is omitted or removed, max_points will also be discarded.
  • teacherViewUri (type: GoogleApi.Classroom.V1.Model.EmbedUri.t, default: nil) - Required. URI to show the teacher view of the attachment. The URI will be opened in an iframe with the courseId, itemId, itemType, and attachmentId query parameters set.
  • title (type: String.t, default: nil) - Required. Title of this attachment. The title must be between 1 and 1000 characters.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Classroom.V1.Model.AddOnAttachment{
  copyHistory: [GoogleApi.Classroom.V1.Model.CopyHistory.t()] | nil,
  courseId: String.t() | nil,
  dueDate: GoogleApi.Classroom.V1.Model.Date.t() | nil,
  dueTime: GoogleApi.Classroom.V1.Model.TimeOfDay.t() | nil,
  id: String.t() | nil,
  itemId: String.t() | nil,
  maxPoints: float() | nil,
  postId: String.t() | nil,
  studentViewUri: GoogleApi.Classroom.V1.Model.EmbedUri.t() | nil,
  studentWorkReviewUri: GoogleApi.Classroom.V1.Model.EmbedUri.t() | nil,
  teacherViewUri: GoogleApi.Classroom.V1.Model.EmbedUri.t() | nil,
  title: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.