{-# 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.Reclaim
(
CoursesCourseWorkStudentSubmissionsReclaimResource
, coursesCourseWorkStudentSubmissionsReclaim
, CoursesCourseWorkStudentSubmissionsReclaim
, ccwssrcXgafv
, ccwssrcUploadProtocol
, ccwssrcCourseId
, ccwssrcAccessToken
, ccwssrcUploadType
, ccwssrcPayload
, ccwssrcId
, ccwssrcCallback
, ccwssrcCourseWorkId
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type CoursesCourseWorkStudentSubmissionsReclaimResource
=
"v1" :>
"courses" :>
Capture "courseId" Text :>
"courseWork" :>
Capture "courseWorkId" Text :>
"studentSubmissions" :>
CaptureMode "id" "reclaim" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ReclaimStudentSubmissionRequest
:> Post '[JSON] Empty
data CoursesCourseWorkStudentSubmissionsReclaim = CoursesCourseWorkStudentSubmissionsReclaim'
{ _ccwssrcXgafv :: !(Maybe Xgafv)
, _ccwssrcUploadProtocol :: !(Maybe Text)
, _ccwssrcCourseId :: !Text
, _ccwssrcAccessToken :: !(Maybe Text)
, _ccwssrcUploadType :: !(Maybe Text)
, _ccwssrcPayload :: !ReclaimStudentSubmissionRequest
, _ccwssrcId :: !Text
, _ccwssrcCallback :: !(Maybe Text)
, _ccwssrcCourseWorkId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
coursesCourseWorkStudentSubmissionsReclaim
:: Text
-> ReclaimStudentSubmissionRequest
-> Text
-> Text
-> CoursesCourseWorkStudentSubmissionsReclaim
coursesCourseWorkStudentSubmissionsReclaim pCcwssrcCourseId_ pCcwssrcPayload_ pCcwssrcId_ pCcwssrcCourseWorkId_ =
CoursesCourseWorkStudentSubmissionsReclaim'
{ _ccwssrcXgafv = Nothing
, _ccwssrcUploadProtocol = Nothing
, _ccwssrcCourseId = pCcwssrcCourseId_
, _ccwssrcAccessToken = Nothing
, _ccwssrcUploadType = Nothing
, _ccwssrcPayload = pCcwssrcPayload_
, _ccwssrcId = pCcwssrcId_
, _ccwssrcCallback = Nothing
, _ccwssrcCourseWorkId = pCcwssrcCourseWorkId_
}
ccwssrcXgafv :: Lens' CoursesCourseWorkStudentSubmissionsReclaim (Maybe Xgafv)
ccwssrcXgafv
= lens _ccwssrcXgafv (\ s a -> s{_ccwssrcXgafv = a})
ccwssrcUploadProtocol :: Lens' CoursesCourseWorkStudentSubmissionsReclaim (Maybe Text)
ccwssrcUploadProtocol
= lens _ccwssrcUploadProtocol
(\ s a -> s{_ccwssrcUploadProtocol = a})
ccwssrcCourseId :: Lens' CoursesCourseWorkStudentSubmissionsReclaim Text
ccwssrcCourseId
= lens _ccwssrcCourseId
(\ s a -> s{_ccwssrcCourseId = a})
ccwssrcAccessToken :: Lens' CoursesCourseWorkStudentSubmissionsReclaim (Maybe Text)
ccwssrcAccessToken
= lens _ccwssrcAccessToken
(\ s a -> s{_ccwssrcAccessToken = a})
ccwssrcUploadType :: Lens' CoursesCourseWorkStudentSubmissionsReclaim (Maybe Text)
ccwssrcUploadType
= lens _ccwssrcUploadType
(\ s a -> s{_ccwssrcUploadType = a})
ccwssrcPayload :: Lens' CoursesCourseWorkStudentSubmissionsReclaim ReclaimStudentSubmissionRequest
ccwssrcPayload
= lens _ccwssrcPayload
(\ s a -> s{_ccwssrcPayload = a})
ccwssrcId :: Lens' CoursesCourseWorkStudentSubmissionsReclaim Text
ccwssrcId
= lens _ccwssrcId (\ s a -> s{_ccwssrcId = a})
ccwssrcCallback :: Lens' CoursesCourseWorkStudentSubmissionsReclaim (Maybe Text)
ccwssrcCallback
= lens _ccwssrcCallback
(\ s a -> s{_ccwssrcCallback = a})
ccwssrcCourseWorkId :: Lens' CoursesCourseWorkStudentSubmissionsReclaim Text
ccwssrcCourseWorkId
= lens _ccwssrcCourseWorkId
(\ s a -> s{_ccwssrcCourseWorkId = a})
instance GoogleRequest
CoursesCourseWorkStudentSubmissionsReclaim where
type Rs CoursesCourseWorkStudentSubmissionsReclaim =
Empty
type Scopes
CoursesCourseWorkStudentSubmissionsReclaim
=
'["https://www.googleapis.com/auth/classroom.coursework.me"]
requestClient
CoursesCourseWorkStudentSubmissionsReclaim'{..}
= go _ccwssrcCourseId _ccwssrcCourseWorkId _ccwssrcId
_ccwssrcXgafv
_ccwssrcUploadProtocol
_ccwssrcAccessToken
_ccwssrcUploadType
_ccwssrcCallback
(Just AltJSON)
_ccwssrcPayload
classroomService
where go
= buildClient
(Proxy ::
Proxy
CoursesCourseWorkStudentSubmissionsReclaimResource)
mempty