Copyright | (c) 2015-2025 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <[email protected]> Toni Cebrián <[email protected]> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | GHC2021 |
Gogol.Classroom.Courses.Topics.Delete
Contents
Description
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 ClassroomCoursesTopicsDeleteResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("topics" :> (Capture "id" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "access_token" Text :> (QueryParam "callback" Text :> (QueryParam "uploadType" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))))))
- data ClassroomCoursesTopicsDelete = ClassroomCoursesTopicsDelete {}
- newClassroomCoursesTopicsDelete :: Text -> Text -> ClassroomCoursesTopicsDelete
Resource
type ClassroomCoursesTopicsDeleteResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("topics" :> (Capture "id" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "access_token" Text :> (QueryParam "callback" Text :> (QueryParam "uploadType" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty)))))))))) Source #
A resource alias for classroom.courses.topics.delete
method which the
ClassroomCoursesTopicsDelete
request conforms to.
Constructing a Request
data ClassroomCoursesTopicsDelete 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: newClassroomCoursesTopicsDelete
smart constructor.
Constructors
ClassroomCoursesTopicsDelete | |
Fields
|
Instances
newClassroomCoursesTopicsDelete Source #
Arguments
:: Text | Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. See |
-> Text | Identifier of the topic to delete. See |
-> ClassroomCoursesTopicsDelete |
Creates a value of ClassroomCoursesTopicsDelete
with the minimum fields required to make a request.