gogol-classroom-0.1.0: 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.Invitations.Create

Contents

Description

Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create invitations for this course or for access errors. * `NOT_FOUND` if the course or the user does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled or if the user already has this role or a role with greater permissions. * `ALREADY_EXISTS` if an invitation for the specified user and course already exists.

See: Google Classroom API Reference for classroom.invitations.create.

Synopsis

REST Resource

type InvitationsCreateResource = "v1" :> ("invitations" :> (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 :> (ReqBody '[JSON] Invitation :> Post '[JSON] Invitation)))))))))) Source #

A resource alias for classroom.invitations.create method which the InvitationsCreate request conforms to.

Creating a Request

invitationsCreate Source #

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

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

data InvitationsCreate Source #

Creates an invitation. Only one invitation for a user and course may exist at a time. Delete and re-create an invitation to make changes. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to create invitations for this course or for access errors. * `NOT_FOUND` if the course or the user does not exist. * `FAILED_PRECONDITION` if the requested user's account is disabled or if the user already has this role or a role with greater permissions. * `ALREADY_EXISTS` if an invitation for the specified user and course already exists.

See: invitationsCreate smart constructor.

Instances

Eq InvitationsCreate Source # 
Data InvitationsCreate Source # 

Methods

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

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

toConstr :: InvitationsCreate -> Constr #

dataTypeOf :: InvitationsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Request Lenses

icUploadProtocol :: Lens' InvitationsCreate (Maybe Text) Source #

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

icPp :: Lens' InvitationsCreate Bool Source #

Pretty-print response.

icUploadType :: Lens' InvitationsCreate (Maybe Text) Source #

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

icPayload :: Lens' InvitationsCreate Invitation Source #

Multipart request metadata.