{-# 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.Courses.CourseWork.StudentSubmissions.Return
(
CoursesCourseWorkStudentSubmissionsReturnResource
, coursesCourseWorkStudentSubmissionsReturn
, CoursesCourseWorkStudentSubmissionsReturn
, ccwssrXgafv
, ccwssrUploadProtocol
, ccwssrCourseId
, ccwssrAccessToken
, ccwssrUploadType
, ccwssrPayload
, ccwssrId
, ccwssrCallback
, ccwssrCourseWorkId
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type CoursesCourseWorkStudentSubmissionsReturnResource
=
"v1" :>
"courses" :>
Capture "courseId" Text :>
"courseWork" :>
Capture "courseWorkId" Text :>
"studentSubmissions" :>
CaptureMode "id" "return" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ReturnStudentSubmissionRequest :>
Post '[JSON] Empty
data CoursesCourseWorkStudentSubmissionsReturn = CoursesCourseWorkStudentSubmissionsReturn'
{ _ccwssrXgafv :: !(Maybe Xgafv)
, _ccwssrUploadProtocol :: !(Maybe Text)
, _ccwssrCourseId :: !Text
, _ccwssrAccessToken :: !(Maybe Text)
, _ccwssrUploadType :: !(Maybe Text)
, _ccwssrPayload :: !ReturnStudentSubmissionRequest
, _ccwssrId :: !Text
, _ccwssrCallback :: !(Maybe Text)
, _ccwssrCourseWorkId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
coursesCourseWorkStudentSubmissionsReturn
:: Text
-> ReturnStudentSubmissionRequest
-> Text
-> Text
-> CoursesCourseWorkStudentSubmissionsReturn
coursesCourseWorkStudentSubmissionsReturn pCcwssrCourseId_ pCcwssrPayload_ pCcwssrId_ pCcwssrCourseWorkId_ =
CoursesCourseWorkStudentSubmissionsReturn'
{ _ccwssrXgafv = Nothing
, _ccwssrUploadProtocol = Nothing
, _ccwssrCourseId = pCcwssrCourseId_
, _ccwssrAccessToken = Nothing
, _ccwssrUploadType = Nothing
, _ccwssrPayload = pCcwssrPayload_
, _ccwssrId = pCcwssrId_
, _ccwssrCallback = Nothing
, _ccwssrCourseWorkId = pCcwssrCourseWorkId_
}
ccwssrXgafv :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Xgafv)
ccwssrXgafv
= lens _ccwssrXgafv (\ s a -> s{_ccwssrXgafv = a})
ccwssrUploadProtocol :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Text)
ccwssrUploadProtocol
= lens _ccwssrUploadProtocol
(\ s a -> s{_ccwssrUploadProtocol = a})
ccwssrCourseId :: Lens' CoursesCourseWorkStudentSubmissionsReturn Text
ccwssrCourseId
= lens _ccwssrCourseId
(\ s a -> s{_ccwssrCourseId = a})
ccwssrAccessToken :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Text)
ccwssrAccessToken
= lens _ccwssrAccessToken
(\ s a -> s{_ccwssrAccessToken = a})
ccwssrUploadType :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Text)
ccwssrUploadType
= lens _ccwssrUploadType
(\ s a -> s{_ccwssrUploadType = a})
ccwssrPayload :: Lens' CoursesCourseWorkStudentSubmissionsReturn ReturnStudentSubmissionRequest
ccwssrPayload
= lens _ccwssrPayload
(\ s a -> s{_ccwssrPayload = a})
ccwssrId :: Lens' CoursesCourseWorkStudentSubmissionsReturn Text
ccwssrId = lens _ccwssrId (\ s a -> s{_ccwssrId = a})
ccwssrCallback :: Lens' CoursesCourseWorkStudentSubmissionsReturn (Maybe Text)
ccwssrCallback
= lens _ccwssrCallback
(\ s a -> s{_ccwssrCallback = a})
ccwssrCourseWorkId :: Lens' CoursesCourseWorkStudentSubmissionsReturn Text
ccwssrCourseWorkId
= lens _ccwssrCourseWorkId
(\ s a -> s{_ccwssrCourseWorkId = a})
instance GoogleRequest
CoursesCourseWorkStudentSubmissionsReturn where
type Rs CoursesCourseWorkStudentSubmissionsReturn =
Empty
type Scopes CoursesCourseWorkStudentSubmissionsReturn
=
'["https://www.googleapis.com/auth/classroom.coursework.students"]
requestClient
CoursesCourseWorkStudentSubmissionsReturn'{..}
= go _ccwssrCourseId _ccwssrCourseWorkId _ccwssrId
_ccwssrXgafv
_ccwssrUploadProtocol
_ccwssrAccessToken
_ccwssrUploadType
_ccwssrCallback
(Just AltJSON)
_ccwssrPayload
classroomService
where go
= buildClient
(Proxy ::
Proxy
CoursesCourseWorkStudentSubmissionsReturnResource)
mempty