Class: Google::Apis::ClassroomV1::AddOnAttachment
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::AddOnAttachment
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/classroom_v1/classes.rb,
lib/google/apis/classroom_v1/representations.rb,
lib/google/apis/classroom_v1/representations.rb
Overview
An add-on attachment on a post.
Instance Attribute Summary collapse
-
#copy_history ⇒ Array<Google::Apis::ClassroomV1::CopyHistory>
Output only.
-
#course_id ⇒ String
Immutable.
-
#due_date ⇒ Google::Apis::ClassroomV1::Date
Represents a whole or partial calendar date, such as a birthday.
-
#due_time ⇒ Google::Apis::ClassroomV1::TimeOfDay
Represents a time of day.
-
#id ⇒ String
Immutable.
-
#item_id ⇒ String
Immutable.
-
#max_points ⇒ Float
Maximum grade for this attachment.
-
#post_id ⇒ String
Immutable.
-
#student_view_uri ⇒ Google::Apis::ClassroomV1::EmbedUri
URI to be iframed after being populated with query parameters.
-
#student_work_review_uri ⇒ Google::Apis::ClassroomV1::EmbedUri
URI to be iframed after being populated with query parameters.
-
#teacher_view_uri ⇒ Google::Apis::ClassroomV1::EmbedUri
URI to be iframed after being populated with query parameters.
-
#title ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AddOnAttachment
constructor
A new instance of AddOnAttachment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AddOnAttachment
Returns a new instance of AddOnAttachment.
106 107 108 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 106 def initialize(**args) update!(**args) end |
Instance Attribute Details
#copy_history ⇒ Array<Google::Apis::ClassroomV1::CopyHistory>
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.
Corresponds to the JSON property copyHistory
35 36 37 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 35 def copy_history @copy_history end |
#course_id ⇒ String
Immutable. Identifier of the course.
Corresponds to the JSON property courseId
40 41 42 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 40 def course_id @course_id end |
#due_date ⇒ Google::Apis::ClassroomV1::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values. * A month
and day, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property dueDate
52 53 54 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 52 def due_date @due_date end |
#due_time ⇒ Google::Apis::ClassroomV1::TimeOfDay
Represents a time of day. The date and time zone are either not significant or
are specified elsewhere. An API may choose to allow leap seconds. Related
types are google.type.Date and google.protobuf.Timestamp
.
Corresponds to the JSON property dueTime
59 60 61 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 59 def due_time @due_time end |
#id ⇒ String
Immutable. Classroom-assigned identifier for this attachment, unique per post.
Corresponds to the JSON property id
64 65 66 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 64 def id @id end |
#item_id ⇒ String
Immutable. Identifier of the Announcement
, CourseWork
, or
CourseWorkMaterial
under which the attachment is attached. Unique per course.
Corresponds to the JSON property itemId
70 71 72 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 70 def item_id @item_id end |
#max_points ⇒ Float
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.
Corresponds to the JSON property maxPoints
78 79 80 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 78 def max_points @max_points end |
#post_id ⇒ String
Immutable. Deprecated, use item_id
instead.
Corresponds to the JSON property postId
83 84 85 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 83 def post_id @post_id end |
#student_view_uri ⇒ Google::Apis::ClassroomV1::EmbedUri
URI to be iframed after being populated with query parameters.
Corresponds to the JSON property studentViewUri
88 89 90 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 88 def student_view_uri @student_view_uri end |
#student_work_review_uri ⇒ Google::Apis::ClassroomV1::EmbedUri
URI to be iframed after being populated with query parameters.
Corresponds to the JSON property studentWorkReviewUri
93 94 95 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 93 def student_work_review_uri @student_work_review_uri end |
#teacher_view_uri ⇒ Google::Apis::ClassroomV1::EmbedUri
URI to be iframed after being populated with query parameters.
Corresponds to the JSON property teacherViewUri
98 99 100 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 98 def teacher_view_uri @teacher_view_uri end |
#title ⇒ String
Required. Title of this attachment. The title must be between 1 and 1000
characters.
Corresponds to the JSON property title
104 105 106 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 104 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 111 def update!(**args) @copy_history = args[:copy_history] if args.key?(:copy_history) @course_id = args[:course_id] if args.key?(:course_id) @due_date = args[:due_date] if args.key?(:due_date) @due_time = args[:due_time] if args.key?(:due_time) @id = args[:id] if args.key?(:id) @item_id = args[:item_id] if args.key?(:item_id) @max_points = args[:max_points] if args.key?(:max_points) @post_id = args[:post_id] if args.key?(:post_id) @student_view_uri = args[:student_view_uri] if args.key?(:student_view_uri) @student_work_review_uri = args[:student_work_review_uri] if args.key?(:student_work_review_uri) @teacher_view_uri = args[:teacher_view_uri] if args.key?(:teacher_view_uri) @title = args[:title] if args.key?(:title) end |