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

Contents

Description

Updates a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable

See: Google Classroom API Reference for classroom.courses.update.

Synopsis

REST Resource

type CoursesUpdateResource = "v1" :> ("courses" :> (Capture "id" Text :> (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]` Course :> Put `[JSON]` Course))))))))))) Source

A resource alias for classroom.courses.update method which the CoursesUpdate request conforms to.

Creating a Request

coursesUpdate Source

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

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

data CoursesUpdate Source

Updates a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to modify the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID. * `FAILED_PRECONDITION` for the following request errors: * CourseNotModifiable

See: coursesUpdate smart constructor.

Request Lenses

cuUploadProtocol :: Lens' CoursesUpdate (Maybe Text) Source

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

cuPp :: Lens' CoursesUpdate Bool Source

Pretty-print response.

cuUploadType :: Lens' CoursesUpdate (Maybe Text) Source

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

cuPayload :: Lens' CoursesUpdate Course Source

Multipart request metadata.

cuId :: Lens' CoursesUpdate Text Source

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