PatchCodeAssignmentData

class PatchCodeAssignmentData[source]

PatchCodeAssignmentData(*, name: ‘Maybe[str]’ = Nothing, max_grade: ‘Maybe[t.Optional[float]]’ = Nothing, group_set_id: ‘Maybe[t.Optional[int]]’ = Nothing, ignore: ‘Maybe[t.Union[SubmissionValidatorInputData, str]]’ = Nothing, ignore_version: “Maybe[t.Literal[‘EmptySubmissionFilter’, ‘IgnoreFilterManager’, ‘SubmissionValidator’]]” = Nothing, anonymized_grading: ‘Maybe[t.Optional[AssignmentAnonymizationAlgo]]’ = Nothing, grading: ‘Maybe[t.Union[AssignmentPointsGradingSettings, AssignmentPercentageGradingSettings]]’ = Nothing, grade_availability: ‘Maybe[FixedGradeAvailability]’ = Nothing, type: “t.Literal[‘code’]” = ‘code’, done_type: ‘Maybe[t.Optional[AssignmentDoneType]]’ = Nothing, reminder_time: ‘Maybe[t.Optional[datetime.datetime]]’ = Nothing, done_email: ‘Maybe[t.Optional[str]]’ = Nothing, max_submissions: ‘Maybe[t.Optional[int]]’ = Nothing, cool_off_period: ‘Maybe[float]’ = Nothing, amount_in_cool_off_period: ‘Maybe[int]’ = Nothing, file_to_load_first: ‘Maybe[t.Optional[str]]’ = Nothing, default_submission_tab: “Maybe[t.Optional[t.Literal[‘auto-test’, ‘code’, ‘feedback-overview’, ‘peer-feedback’]]]” = Nothing, submission_mode: ‘Maybe[AssignmentSubmissionMode]’ = Nothing, terminal_settings: ‘Maybe[t.Union[AssignmentTerminalSettingsEnabledAsJSON, AssignmentTerminalSettingsDisabledAsJSON]]’ = Nothing)

name: Just[str] | _Nothing[str] = Nothing

The new name of the assignment

max_grade: Just[float | None] | _Nothing[float | None] = Nothing

The maximum possible grade for this assignment. You can reset this by passing null as value

group_set_id: Just[int | None] | _Nothing[int | None] = Nothing

The group set id for this assignment. Set to null to make this assignment not a group assignment

ignore: Just[SubmissionValidatorInputData | str] | _Nothing[SubmissionValidatorInputData | str] = Nothing

The ignore file to use

ignore_version: Just[Literal['EmptySubmissionFilter', 'IgnoreFilterManager', 'SubmissionValidator']] | _Nothing[Literal['EmptySubmissionFilter', 'IgnoreFilterManager', 'SubmissionValidator']] = Nothing

The ignore version to use, defaults to “IgnoreFilterManager”.

anonymized_grading: Just[AssignmentAnonymizationAlgo | None] | _Nothing[AssignmentAnonymizationAlgo | None] = Nothing

Should anonymized grading be enabled for this assignment.

grading: Just[AssignmentPointsGradingSettings | AssignmentPercentageGradingSettings] | _Nothing[AssignmentPointsGradingSettings | AssignmentPercentageGradingSettings] = Nothing

Grading settings of this assignment.

grade_availability: Just[FixedGradeAvailability] | _Nothing[FixedGradeAvailability] = Nothing

The grade availability of this assignment.

type: Literal['code'] = 'code'

The type of the assignment this changes. A body without a type changes a code assignment.

done_type: Just[AssignmentDoneType | None] | _Nothing[AssignmentDoneType | None] = Nothing

How to determine grading is done for this assignment, this value is not used when reminder_time is null.

reminder_time: Just[datetime | None] | _Nothing[datetime | None] = Nothing

At what time should we send the reminder emails to the graders. This value is not used when done_type is null.

done_email: Just[str | None] | _Nothing[str | None] = Nothing

A list of emails that should receive an email when grading is done. This value has no effect when done_type is set to null.

max_submissions: Just[int | None] | _Nothing[int | None] = Nothing

The maximum amount of submissions a user may create.

cool_off_period: Just[float] | _Nothing[float] = Nothing

The amount of time in seconds there should be between amount_in_cool_off_period + 1 submissions.

amount_in_cool_off_period: Just[int] | _Nothing[int] = Nothing

The maximum amount of submissions that can be made within cool_off_period seconds. This should be higher than or equal to 1.

file_to_load_first: Just[str | None] | _Nothing[str | None] = Nothing

The file we should load first in an assignment

default_submission_tab: Just[Literal['auto-test', 'code', 'feedback-overview', 'peer-feedback'] | None] | _Nothing[Literal['auto-test', 'code', 'feedback-overview', 'peer-feedback'] | None] = Nothing

The tab the submission page opens on. Set to null to leave it to the tenant default.

submission_mode: Just[AssignmentSubmissionMode] | _Nothing[AssignmentSubmissionMode] = Nothing

The submission mode of this assignment

terminal_settings: Just[AssignmentTerminalSettingsEnabledAsJSON | AssignmentTerminalSettingsDisabledAsJSON] | _Nothing[AssignmentTerminalSettingsEnabledAsJSON | AssignmentTerminalSettingsDisabledAsJSON] = Nothing

The terminal settings of this assignment’s code editor. The disabled tag disables the terminal, the enabled tag enables it with the given options.