gogol-classroom-0.1.1: Google Classroom SDK.

Copyright(c) 2015-2016 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.Aliases.Delete

Contents

Description

Deletes an alias of a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to remove the alias or for access errors. * `NOT_FOUND` if the alias does not exist.

See: Google Classroom API Reference for classroom.courses.aliases.delete.

Synopsis

REST Resource

type CoursesAliasesDeleteResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("aliases" :> (Capture "alias" 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 :> Delete '[JSON] Empty)))))))))))) Source #

A resource alias for classroom.courses.aliases.delete method which the CoursesAliasesDelete request conforms to.

Creating a Request

coursesAliasesDelete Source #

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

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

data CoursesAliasesDelete Source #

Deletes an alias of a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to remove the alias or for access errors. * `NOT_FOUND` if the alias does not exist.

See: coursesAliasesDelete smart constructor.

Instances

Eq CoursesAliasesDelete Source # 
Data CoursesAliasesDelete Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CoursesAliasesDelete -> c CoursesAliasesDelete #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CoursesAliasesDelete #

toConstr :: CoursesAliasesDelete -> Constr #

dataTypeOf :: CoursesAliasesDelete -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CoursesAliasesDelete) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CoursesAliasesDelete) #

gmapT :: (forall b. Data b => b -> b) -> CoursesAliasesDelete -> CoursesAliasesDelete #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CoursesAliasesDelete -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CoursesAliasesDelete -> r #

gmapQ :: (forall d. Data d => d -> u) -> CoursesAliasesDelete -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CoursesAliasesDelete -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CoursesAliasesDelete -> m CoursesAliasesDelete #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CoursesAliasesDelete -> m CoursesAliasesDelete #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CoursesAliasesDelete -> m CoursesAliasesDelete #

Show CoursesAliasesDelete Source # 
Generic CoursesAliasesDelete Source # 
GoogleRequest CoursesAliasesDelete Source # 
type Rep CoursesAliasesDelete Source # 
type Scopes CoursesAliasesDelete Source # 
type Scopes CoursesAliasesDelete = (:) Symbol "https://www.googleapis.com/auth/classroom.courses" ([] Symbol)
type Rs CoursesAliasesDelete Source # 

Request Lenses

cadUploadProtocol :: Lens' CoursesAliasesDelete (Maybe Text) Source #

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

cadPp :: Lens' CoursesAliasesDelete Bool Source #

Pretty-print response.

cadCourseId :: Lens' CoursesAliasesDelete Text Source #

Identifier of the course whose alias should be deleted. This identifier can be either the Classroom-assigned identifier or an alias.

cadUploadType :: Lens' CoursesAliasesDelete (Maybe Text) Source #

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

cadAlias :: Lens' CoursesAliasesDelete Text Source #

Alias to delete. This may not be the Classroom-assigned identifier.