gogol-classroom
Copyright(c) 2015-2025 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <[email protected]> Toni Cebrián <[email protected]>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageGHC2021

Gogol.Classroom.Courses.Topics.Delete

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

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

Instances details
Generic ClassroomCoursesTopicsDelete Source # 
Instance details

Defined in Gogol.Classroom.Courses.Topics.Delete

Associated Types

type Rep ClassroomCoursesTopicsDelete 
Instance details

Defined in Gogol.Classroom.Courses.Topics.Delete

type Rep ClassroomCoursesTopicsDelete = D1 ('MetaData "ClassroomCoursesTopicsDelete" "Gogol.Classroom.Courses.Topics.Delete" "gogol-classroom-1.0.0-E0l1a33tlucKcuM1xSJBzt" 'False) (C1 ('MetaCons "ClassroomCoursesTopicsDelete" 'PrefixI 'True) ((S1 ('MetaSel ('Just "xgafv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 ('MetaSel ('Just "accessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "callback") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "courseId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "uploadType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "uploadProtocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))
Show ClassroomCoursesTopicsDelete Source # 
Instance details

Defined in Gogol.Classroom.Courses.Topics.Delete

Eq ClassroomCoursesTopicsDelete Source # 
Instance details

Defined in Gogol.Classroom.Courses.Topics.Delete

GoogleRequest ClassroomCoursesTopicsDelete Source # 
Instance details

Defined in Gogol.Classroom.Courses.Topics.Delete

type Rep ClassroomCoursesTopicsDelete Source # 
Instance details

Defined in Gogol.Classroom.Courses.Topics.Delete

type Rep ClassroomCoursesTopicsDelete = D1 ('MetaData "ClassroomCoursesTopicsDelete" "Gogol.Classroom.Courses.Topics.Delete" "gogol-classroom-1.0.0-E0l1a33tlucKcuM1xSJBzt" 'False) (C1 ('MetaCons "ClassroomCoursesTopicsDelete" 'PrefixI 'True) ((S1 ('MetaSel ('Just "xgafv") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 ('MetaSel ('Just "accessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "callback") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "courseId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "uploadType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "uploadProtocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))
type Rs ClassroomCoursesTopicsDelete Source # 
Instance details

Defined in Gogol.Classroom.Courses.Topics.Delete

type Scopes ClassroomCoursesTopicsDelete Source # 
Instance details

Defined in Gogol.Classroom.Courses.Topics.Delete

newClassroomCoursesTopicsDelete Source #

Arguments

:: Text

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

-> Text

Identifier of the topic to delete. See id.

-> ClassroomCoursesTopicsDelete 

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