gogol-classroom-0.0.1: Google Classroom SDK.

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

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.