class Google::Apis::ClassroomV1::CourseWork
Course
work created by a teacher for students of the course.
Attributes
Absolute link to this course work in the Classroom web UI. This is only populated if `state` is `PUBLISHED`. Read-only. Corresponds to the JSON property `alternateLink` @return [String]
Assignee mode of the coursework. If unspecified, the default value is ` ALL_STUDENTS`. Corresponds to the JSON property `assigneeMode` @return [String]
Additional details for assignments. Corresponds to the JSON property `assignment` @return [Google::Apis::ClassroomV1::Assignment]
Whether this course work item is associated with the Developer Console project making the request. See CreateCourseWork for more details. Read-only. Corresponds to the JSON property `associatedWithDeveloper` @return [Boolean]
Whether this course work item is associated with the Developer Console project making the request. See CreateCourseWork for more details. Read-only. Corresponds to the JSON property `associatedWithDeveloper` @return [Boolean]
Identifier of the course. Read-only. Corresponds to the JSON property `courseId` @return [String]
Timestamp when this course work was created. Read-only. Corresponds to the JSON property `creationTime` @return [String]
Identifier for the user that created the coursework. Read-only. Corresponds to the JSON property `creatorUserId` @return [String]
Optional description of this course work. If set, the description must be a valid UTF-8 string containing no more than 30,000 characters. Corresponds to the JSON property `description` @return [String]
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 value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and ` google.protobuf.Timestamp`. Corresponds to the JSON property `dueDate` @return [Google::Apis::ClassroomV1::Date]
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` @return [Google::Apis::ClassroomV1::TimeOfDay]
Classroom-assigned identifier of this course work, unique per course. Read- only. Corresponds to the JSON property `id` @return [String]
Assignee details about a coursework/announcement. This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. Corresponds to the JSON property `individualStudentsOptions` @return [Google::Apis::ClassroomV1::IndividualStudentsOptions]
Additional materials. CourseWork
must have no more than 20 material items. Corresponds to the JSON property `materials` @return [Array<Google::Apis::ClassroomV1::Material>]
Maximum grade for this course work. If zero or unspecified, this assignment is considered ungraded. This must be a non-negative integer value. Corresponds to the JSON property `maxPoints` @return [Float]
Additional details for multiple-choice questions. Corresponds to the JSON property `multipleChoiceQuestion` @return [Google::Apis::ClassroomV1::MultipleChoiceQuestion]
Optional timestamp when this course work is scheduled to be published. Corresponds to the JSON property `scheduledTime` @return [String]
Status of this course work. If unspecified, the default state is `DRAFT`. Corresponds to the JSON property `state` @return [String]
Setting to determine when students are allowed to modify submissions. If unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`. Corresponds to the JSON property `submissionModificationMode` @return [String]
Title of this course work. The title must be a valid UTF-8 string containing between 1 and 3000 characters. Corresponds to the JSON property `title` @return [String]
Identifier for the topic that this coursework is associated with. Must match an existing topic in the course. Corresponds to the JSON property `topicId` @return [String]
Timestamp of the most recent change to this course work. Read-only. Corresponds to the JSON property `updateTime` @return [String]
Type of this course work. The type is set when the course work is created and cannot be changed. Corresponds to the JSON property `workType` @return [String]
Public Class Methods
# File lib/google/apis/classroom_v1/classes.rb, line 615 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/classroom_v1/classes.rb, line 620 def update!(**args) @alternate_link = args[:alternate_link] if args.key?(:alternate_link) @assignee_mode = args[:assignee_mode] if args.key?(:assignee_mode) @assignment = args[:assignment] if args.key?(:assignment) @associated_with_developer = args[:associated_with_developer] if args.key?(:associated_with_developer) @course_id = args[:course_id] if args.key?(:course_id) @creation_time = args[:creation_time] if args.key?(:creation_time) @creator_user_id = args[:creator_user_id] if args.key?(:creator_user_id) @description = args[:description] if args.key?(:description) @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) @individual_students_options = args[:individual_students_options] if args.key?(:individual_students_options) @materials = args[:materials] if args.key?(:materials) @max_points = args[:max_points] if args.key?(:max_points) @multiple_choice_question = args[:multiple_choice_question] if args.key?(:multiple_choice_question) @scheduled_time = args[:scheduled_time] if args.key?(:scheduled_time) @state = args[:state] if args.key?(:state) @submission_modification_mode = args[:submission_modification_mode] if args.key?(:submission_modification_mode) @title = args[:title] if args.key?(:title) @topic_id = args[:topic_id] if args.key?(:topic_id) @update_time = args[:update_time] if args.key?(:update_time) @work_type = args[:work_type] if args.key?(:work_type) end