Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deletes a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID.
See: Google Classroom API Reference for classroom.courses.delete
.
Synopsis
- type CoursesDeleteResource = "v1" :> ("courses" :> (Capture "id" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))))
- coursesDelete :: Text -> CoursesDelete
- data CoursesDelete
- cdXgafv :: Lens' CoursesDelete (Maybe Xgafv)
- cdUploadProtocol :: Lens' CoursesDelete (Maybe Text)
- cdAccessToken :: Lens' CoursesDelete (Maybe Text)
- cdUploadType :: Lens' CoursesDelete (Maybe Text)
- cdId :: Lens' CoursesDelete Text
- cdCallback :: Lens' CoursesDelete (Maybe Text)
REST Resource
type CoursesDeleteResource = "v1" :> ("courses" :> (Capture "id" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty)))))))) Source #
A resource alias for classroom.courses.delete
method which the
CoursesDelete
request conforms to.
Creating a Request
:: Text | |
-> CoursesDelete |
Creates a value of CoursesDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesDelete Source #
Deletes a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to delete the requested course or for access errors. * `NOT_FOUND` if no course exists with the requested ID.
See: coursesDelete
smart constructor.
Instances
Request Lenses
cdUploadProtocol :: Lens' CoursesDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
cdAccessToken :: Lens' CoursesDelete (Maybe Text) Source #
OAuth access token.
cdUploadType :: Lens' CoursesDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
cdId :: Lens' CoursesDelete Text Source #
Identifier of the course to delete. This identifier can be either the Classroom-assigned identifier or an alias.
cdCallback :: Lens' CoursesDelete (Maybe Text) Source #
JSONP