{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Classroom.Invitations.List
(
InvitationsListResource
, invitationsList
, InvitationsList
, ilXgafv
, ilUploadProtocol
, ilCourseId
, ilAccessToken
, ilUploadType
, ilUserId
, ilPageToken
, ilPageSize
, ilCallback
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
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
data InvitationsList = InvitationsList'
{ _ilXgafv :: !(Maybe Xgafv)
, _ilUploadProtocol :: !(Maybe Text)
, _ilCourseId :: !(Maybe Text)
, _ilAccessToken :: !(Maybe Text)
, _ilUploadType :: !(Maybe Text)
, _ilUserId :: !(Maybe Text)
, _ilPageToken :: !(Maybe Text)
, _ilPageSize :: !(Maybe (Textual Int32))
, _ilCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
invitationsList
:: InvitationsList
invitationsList =
InvitationsList'
{ _ilXgafv = Nothing
, _ilUploadProtocol = Nothing
, _ilCourseId = Nothing
, _ilAccessToken = Nothing
, _ilUploadType = Nothing
, _ilUserId = Nothing
, _ilPageToken = Nothing
, _ilPageSize = Nothing
, _ilCallback = Nothing
}
ilXgafv :: Lens' InvitationsList (Maybe Xgafv)
ilXgafv = lens _ilXgafv (\ s a -> s{_ilXgafv = a})
ilUploadProtocol :: Lens' InvitationsList (Maybe Text)
ilUploadProtocol
= lens _ilUploadProtocol
(\ s a -> s{_ilUploadProtocol = a})
ilCourseId :: Lens' InvitationsList (Maybe Text)
ilCourseId
= lens _ilCourseId (\ s a -> s{_ilCourseId = a})
ilAccessToken :: Lens' InvitationsList (Maybe Text)
ilAccessToken
= lens _ilAccessToken
(\ s a -> s{_ilAccessToken = a})
ilUploadType :: Lens' InvitationsList (Maybe Text)
ilUploadType
= lens _ilUploadType (\ s a -> s{_ilUploadType = a})
ilUserId :: Lens' InvitationsList (Maybe Text)
ilUserId = lens _ilUserId (\ s a -> s{_ilUserId = a})
ilPageToken :: Lens' InvitationsList (Maybe Text)
ilPageToken
= lens _ilPageToken (\ s a -> s{_ilPageToken = a})
ilPageSize :: Lens' InvitationsList (Maybe Int32)
ilPageSize
= lens _ilPageSize (\ s a -> s{_ilPageSize = a}) .
mapping _Coerce
ilCallback :: Lens' InvitationsList (Maybe Text)
ilCallback
= lens _ilCallback (\ s a -> s{_ilCallback = a})
instance GoogleRequest InvitationsList where
type Rs InvitationsList = ListInvitationsResponse
type Scopes InvitationsList =
'["https://www.googleapis.com/auth/classroom.rosters",
"https://www.googleapis.com/auth/classroom.rosters.readonly"]
requestClient InvitationsList'{..}
= go _ilXgafv _ilUploadProtocol _ilCourseId
_ilAccessToken
_ilUploadType
_ilUserId
_ilPageToken
_ilPageSize
_ilCallback
(Just AltJSON)
classroomService
where go
= buildClient
(Proxy :: Proxy InvitationsListResource)
mempty