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 topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not allowed to delete the requested topic or for access errors. * `FAILED_PRECONDITION` if the requested topic has already been deleted. * `NOT_FOUND` if no course or topic exists with the requested ID.
See: Google Classroom API Reference for classroom.courses.topics.delete
.
Synopsis
- type CoursesTopicsDeleteResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("topics" :> (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))))))))))
- coursesTopicsDelete :: Text -> Text -> CoursesTopicsDelete
- data CoursesTopicsDelete
- ctdXgafv :: Lens' CoursesTopicsDelete (Maybe Xgafv)
- ctdUploadProtocol :: Lens' CoursesTopicsDelete (Maybe Text)
- ctdCourseId :: Lens' CoursesTopicsDelete Text
- ctdAccessToken :: Lens' CoursesTopicsDelete (Maybe Text)
- ctdUploadType :: Lens' CoursesTopicsDelete (Maybe Text)
- ctdId :: Lens' CoursesTopicsDelete Text
- ctdCallback :: Lens' CoursesTopicsDelete (Maybe Text)
REST Resource
type CoursesTopicsDeleteResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("topics" :> (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.topics.delete
method which the
CoursesTopicsDelete
request conforms to.
Creating a Request
Creates a value of CoursesTopicsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesTopicsDelete Source #
Deletes a topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not allowed to delete the requested topic or for access errors. * `FAILED_PRECONDITION` if the requested topic has already been deleted. * `NOT_FOUND` if no course or topic exists with the requested ID.
See: coursesTopicsDelete
smart constructor.
Instances
Request Lenses
ctdUploadProtocol :: Lens' CoursesTopicsDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ctdCourseId :: Lens' CoursesTopicsDelete Text Source #
Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.
ctdAccessToken :: Lens' CoursesTopicsDelete (Maybe Text) Source #
OAuth access token.
ctdUploadType :: Lens' CoursesTopicsDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ctdCallback :: Lens' CoursesTopicsDelete (Maybe Text) Source #
JSONP