gogol-classroom-0.4.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.List

Contents

Description

Returns a list of invitations that the requesting user is permitted to view, restricted to those that match the list request. *Note:* At least one of `user_id` or `course_id` must be supplied. Both fields can be supplied. This method returns the following error codes: * `PERMISSION_DENIED` for access errors.

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

Synopsis

REST Resource

type InvitationsListResource = "v1" :> ("invitations" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "courseId" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "userId" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListInvitationsResponse))))))))))) Source #

A resource alias for classroom.invitations.list method which the InvitationsList request conforms to.

Creating a Request

invitationsList :: InvitationsList Source #

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

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

data InvitationsList Source #

Returns a list of invitations that the requesting user is permitted to view, restricted to those that match the list request. *Note:* At least one of `user_id` or `course_id` must be supplied. Both fields can be supplied. This method returns the following error codes: * `PERMISSION_DENIED` for access errors.

See: invitationsList smart constructor.

Instances
Eq InvitationsList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Invitations.List

Data InvitationsList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Invitations.List

Methods

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

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

toConstr :: InvitationsList -> Constr #

dataTypeOf :: InvitationsList -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InvitationsList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Invitations.List

Generic InvitationsList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Invitations.List

Associated Types

type Rep InvitationsList :: Type -> Type #

GoogleRequest InvitationsList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Invitations.List

Associated Types

type Rs InvitationsList :: Type #

type Scopes InvitationsList :: [Symbol] #

type Rep InvitationsList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Invitations.List

type Scopes InvitationsList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Invitations.List

type Scopes InvitationsList = "https://www.googleapis.com/auth/classroom.rosters" ': ("https://www.googleapis.com/auth/classroom.rosters.readonly" ': ([] :: [Symbol]))
type Rs InvitationsList Source # 
Instance details

Defined in Network.Google.Resource.Classroom.Invitations.List

Request Lenses

ilUploadProtocol :: Lens' InvitationsList (Maybe Text) Source #

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

ilCourseId :: Lens' InvitationsList (Maybe Text) Source #

Restricts returned invitations to those for a course with the specified identifier.

ilUploadType :: Lens' InvitationsList (Maybe Text) Source #

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

ilUserId :: Lens' InvitationsList (Maybe Text) Source #

Restricts returned invitations to those for a specific user. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `"me"`, indicating the requesting user

ilPageToken :: Lens' InvitationsList (Maybe Text) Source #

nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token.

ilPageSize :: Lens' InvitationsList (Maybe Int32) Source #

Maximum number of items to return. Zero means no maximum. The server may return fewer than the specified number of results.