{-# 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.Get
(
CoursesCourseWorkStudentSubmissionsGetResource
, coursesCourseWorkStudentSubmissionsGet
, CoursesCourseWorkStudentSubmissionsGet
, ccwssgXgafv
, ccwssgUploadProtocol
, ccwssgCourseId
, ccwssgAccessToken
, ccwssgUploadType
, ccwssgId
, ccwssgCallback
, ccwssgCourseWorkId
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type CoursesCourseWorkStudentSubmissionsGetResource =
"v1" :>
"courses" :>
Capture "courseId" Text :>
"courseWork" :>
Capture "courseWorkId" Text :>
"studentSubmissions" :>
Capture "id" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] StudentSubmission
data CoursesCourseWorkStudentSubmissionsGet = CoursesCourseWorkStudentSubmissionsGet'
{ _ccwssgXgafv :: !(Maybe Xgafv)
, _ccwssgUploadProtocol :: !(Maybe Text)
, _ccwssgCourseId :: !Text
, _ccwssgAccessToken :: !(Maybe Text)
, _ccwssgUploadType :: !(Maybe Text)
, _ccwssgId :: !Text
, _ccwssgCallback :: !(Maybe Text)
, _ccwssgCourseWorkId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
coursesCourseWorkStudentSubmissionsGet
:: Text
-> Text
-> Text
-> CoursesCourseWorkStudentSubmissionsGet
coursesCourseWorkStudentSubmissionsGet pCcwssgCourseId_ pCcwssgId_ pCcwssgCourseWorkId_ =
CoursesCourseWorkStudentSubmissionsGet'
{ _ccwssgXgafv = Nothing
, _ccwssgUploadProtocol = Nothing
, _ccwssgCourseId = pCcwssgCourseId_
, _ccwssgAccessToken = Nothing
, _ccwssgUploadType = Nothing
, _ccwssgId = pCcwssgId_
, _ccwssgCallback = Nothing
, _ccwssgCourseWorkId = pCcwssgCourseWorkId_
}
ccwssgXgafv :: Lens' CoursesCourseWorkStudentSubmissionsGet (Maybe Xgafv)
ccwssgXgafv
= lens _ccwssgXgafv (\ s a -> s{_ccwssgXgafv = a})
ccwssgUploadProtocol :: Lens' CoursesCourseWorkStudentSubmissionsGet (Maybe Text)
ccwssgUploadProtocol
= lens _ccwssgUploadProtocol
(\ s a -> s{_ccwssgUploadProtocol = a})
ccwssgCourseId :: Lens' CoursesCourseWorkStudentSubmissionsGet Text
ccwssgCourseId
= lens _ccwssgCourseId
(\ s a -> s{_ccwssgCourseId = a})
ccwssgAccessToken :: Lens' CoursesCourseWorkStudentSubmissionsGet (Maybe Text)
ccwssgAccessToken
= lens _ccwssgAccessToken
(\ s a -> s{_ccwssgAccessToken = a})
ccwssgUploadType :: Lens' CoursesCourseWorkStudentSubmissionsGet (Maybe Text)
ccwssgUploadType
= lens _ccwssgUploadType
(\ s a -> s{_ccwssgUploadType = a})
ccwssgId :: Lens' CoursesCourseWorkStudentSubmissionsGet Text
ccwssgId = lens _ccwssgId (\ s a -> s{_ccwssgId = a})
ccwssgCallback :: Lens' CoursesCourseWorkStudentSubmissionsGet (Maybe Text)
ccwssgCallback
= lens _ccwssgCallback
(\ s a -> s{_ccwssgCallback = a})
ccwssgCourseWorkId :: Lens' CoursesCourseWorkStudentSubmissionsGet Text
ccwssgCourseWorkId
= lens _ccwssgCourseWorkId
(\ s a -> s{_ccwssgCourseWorkId = a})
instance GoogleRequest
CoursesCourseWorkStudentSubmissionsGet where
type Rs CoursesCourseWorkStudentSubmissionsGet =
StudentSubmission
type Scopes CoursesCourseWorkStudentSubmissionsGet =
'["https://www.googleapis.com/auth/classroom.coursework.me",
"https://www.googleapis.com/auth/classroom.coursework.me.readonly",
"https://www.googleapis.com/auth/classroom.coursework.students",
"https://www.googleapis.com/auth/classroom.coursework.students.readonly",
"https://www.googleapis.com/auth/classroom.student-submissions.me.readonly",
"https://www.googleapis.com/auth/classroom.student-submissions.students.readonly"]
requestClient
CoursesCourseWorkStudentSubmissionsGet'{..}
= go _ccwssgCourseId _ccwssgCourseWorkId _ccwssgId
_ccwssgXgafv
_ccwssgUploadProtocol
_ccwssgAccessToken
_ccwssgUploadType
_ccwssgCallback
(Just AltJSON)
classroomService
where go
= buildClient
(Proxy ::
Proxy CoursesCourseWorkStudentSubmissionsGetResource)
mempty