gogol-classroom-0.0.1: Google Classroom SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Classroom.Courses.Aliases.Create

Contents

Description

Creates an alias for a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create the alias or for access errors. * `NOT_FOUND` if the course does not exist. * `ALREADY_EXISTS` if the alias already exists.

See: Google Classroom API Reference for classroom.courses.aliases.create.

Synopsis

REST Resource

type CoursesAliasesCreateResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("aliases" :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` CourseAlias :> Post `[JSON]` CourseAlias)))))))))))) Source

A resource alias for classroom.courses.aliases.create method which the CoursesAliasesCreate request conforms to.

Creating a Request

coursesAliasesCreate Source

Creates a value of CoursesAliasesCreate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CoursesAliasesCreate Source

Creates an alias for a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create the alias or for access errors. * `NOT_FOUND` if the course does not exist. * `ALREADY_EXISTS` if the alias already exists.

See: coursesAliasesCreate smart constructor.

Request Lenses

cacUploadProtocol :: Lens' CoursesAliasesCreate (Maybe Text) Source

Upload protocol for media (e.g. "raw", "multipart").

cacPp :: Lens' CoursesAliasesCreate Bool Source

Pretty-print response.

cacCourseId :: Lens' CoursesAliasesCreate Text Source

Identifier of the course to alias. This identifier can be either the Classroom-assigned identifier or an alias.

cacUploadType :: Lens' CoursesAliasesCreate (Maybe Text) Source

Legacy upload protocol for media (e.g. "media", "multipart").