Skip to content

New GClassroomCourseWorkObj

Spencer Varney edited this page Dec 14, 2016 · 3 revisions

New-GClassroomCourseWorkObj

SYNOPSIS

Creates a new Classroom API CourseWork object.

SYNTAX

New-GClassroomCourseWorkObj [[-AlternateLink] <String>] [[-Assignment] <Assignment>]
 [[-AssociatedWithDeveloper] <Boolean>] [[-CourseId] <String>] [[-CreationTime] <String>]
 [[-Description] <String>] [[-DueDate] <Date>] [[-DueTime] <TimeOfDay>] [[-Id] <String>]
 [[-Materials] <Material[]>] [[-MaxPoints] <Double>] [[-MultipleChoiceQuestion] <MultipleChoiceQuestion>]
 [[-State] <String>] [[-SubmissionModificationMode] <String>] [[-Title] <String>] [[-UpdateTime] <String>]
 [[-WorkType] <String>] [-WhatIf] [-Confirm]

DESCRIPTION

This provides a Cmdlet-Based approach to creating a CourseWork object which may be required as a parameter for some other Cmdlets in the Classroom API category.

You could alternately create this object by calling New-Object -TypeName Google.Apis.Classroom.v1.Data.CourseWork

EXAMPLES

---------- EXAMPLE 1 ----------

PS C:\> New-GClassroomCourseWorkObj

This automatically generated example serves to show the bare minimum required to call this Cmdlet.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

PARAMETERS

-AlternateLink

Absolute link to this course work in the Classroom web UI. This is only populated if `state` is `PUBLISHED`. Read-only.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 0
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Assignment

Assignment details. This is populated only when `work_type` is `ASSIGNMENT`.

Type: Assignment
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-AssociatedWithDeveloper

Whether this course work item is associated with the Developer Console project making the request. See google.classroom.Work.CreateCourseWork for more details. Read-only.

Type: Boolean
Parameter Sets: (All)
Aliases: 

Required: False
Position: 2
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-CourseId

Identifier of the course. Read-only.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 3
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-CreationTime

Timestamp when this course work was created. Read-only.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 4
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Description

Optional description of this course work. If set, the description must be a valid UTF-8 string containing no more than 30,000 characters.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 5
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-DueDate

Optional date, in UTC, that submissions for this this course work are due. This must be specified if `due_time` is specified.

Type: Date
Parameter Sets: (All)
Aliases: 

Required: False
Position: 6
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-DueTime

Optional time of day, in UTC, that submissions for this this course work are due. This must be specified if `due_date` is specified.

Type: TimeOfDay
Parameter Sets: (All)
Aliases: 

Required: False
Position: 7
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Id

Classroom-assigned identifier of this course work, unique per course. Read-only.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 8
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Materials

Additional materials. CourseWork must have no more than 20 material items.

Type: Material[]
Parameter Sets: (All)
Aliases: 

Required: False
Position: 9
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MaxPoints

Maximum grade for this course work. If zero or unspecified, this assignment is considered ungraded. This must be a non-negative integer value.

Type: Double
Parameter Sets: (All)
Aliases: 

Required: False
Position: 10
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MultipleChoiceQuestion

Multiple choice question details. This is populated only when `work_type` is `MULTIPLE_CHOICE_QUESTION`.

Type: MultipleChoiceQuestion
Parameter Sets: (All)
Aliases: 

Required: False
Position: 11
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-State

Status of this course work. If unspecified, the default state is `DRAFT`.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 12
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-SubmissionModificationMode

Setting to determine when students are allowed to modify submissions. If unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 13
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Title

Title of this course work. The title must be a valid UTF-8 string containing between 1 and 3000 characters.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 14
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-UpdateTime

Timestamp of the most recent change to this course work. Read-only.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 15
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-WorkType

Type of this course work. The type is set when the course work is created and cannot be changed. When creating course work, this must be `ASSIGNMENT`.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 16
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

INPUTS

System.String

Absolute link to this course work in the Classroom web UI. This is only populated if `state` is `PUBLISHED`. Read-only.

Google.Apis.Classroom.v1.Data.Assignment

Assignment details. This is populated only when `work_type` is `ASSIGNMENT`.

System.Boolean

Whether this course work item is associated with the Developer Console project making the request. See google.classroom.Work.CreateCourseWork for more details. Read-only.

System.String

Identifier of the course. Read-only.

System.String

Timestamp when this course work was created. Read-only.

System.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.

Google.Apis.Classroom.v1.Data.Date

Optional date, in UTC, that submissions for this this course work are due. This must be specified if `due_time` is specified.

Google.Apis.Classroom.v1.Data.TimeOfDay

Optional time of day, in UTC, that submissions for this this course work are due. This must be specified if `due_date` is specified.

System.String

Classroom-assigned identifier of this course work, unique per course. Read-only.

Google.Apis.Classroom.v1.Data.Material[]

Additional materials. CourseWork must have no more than 20 material items.

System.Double

Maximum grade for this course work. If zero or unspecified, this assignment is considered ungraded. This must be a non-negative integer value.

Google.Apis.Classroom.v1.Data.MultipleChoiceQuestion

Multiple choice question details. This is populated only when `work_type` is `MULTIPLE_CHOICE_QUESTION`.

System.String

Status of this course work. If unspecified, the default state is `DRAFT`.

System.String

Setting to determine when students are allowed to modify submissions. If unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`.

System.String

Title of this course work. The title must be a valid UTF-8 string containing between 1 and 3000 characters.

System.String

Timestamp of the most recent change to this course work. Read-only.

System.String

Type of this course work. The type is set when the course work is created and cannot be changed. When creating course work, this must be `ASSIGNMENT`.

OUTPUTS

Google.Apis.Classroom.v1.Data.CourseWork

NOTES

Part of the gShell Project, relating to the Google Classroom API; see Related Links or use the -Online parameter.

RELATED LINKS

[Wiki page for this Cmdlet]

[Getting started with gShell]

Clone this wiki locally