{-# 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.Patch
(
CoursesCourseWorkStudentSubmissionsPatchResource
, coursesCourseWorkStudentSubmissionsPatch
, CoursesCourseWorkStudentSubmissionsPatch
, ccwsspXgafv
, ccwsspUploadProtocol
, ccwsspUpdateMask
, ccwsspCourseId
, ccwsspAccessToken
, ccwsspUploadType
, ccwsspPayload
, ccwsspId
, ccwsspCallback
, ccwsspCourseWorkId
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type CoursesCourseWorkStudentSubmissionsPatchResource
=
"v1" :>
"courses" :>
Capture "courseId" Text :>
"courseWork" :>
Capture "courseWorkId" Text :>
"studentSubmissions" :>
Capture "id" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "updateMask" GFieldMask :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] StudentSubmission :>
Patch '[JSON] StudentSubmission
data CoursesCourseWorkStudentSubmissionsPatch = CoursesCourseWorkStudentSubmissionsPatch'
{ _ccwsspXgafv :: !(Maybe Xgafv)
, _ccwsspUploadProtocol :: !(Maybe Text)
, _ccwsspUpdateMask :: !(Maybe GFieldMask)
, _ccwsspCourseId :: !Text
, _ccwsspAccessToken :: !(Maybe Text)
, _ccwsspUploadType :: !(Maybe Text)
, _ccwsspPayload :: !StudentSubmission
, _ccwsspId :: !Text
, _ccwsspCallback :: !(Maybe Text)
, _ccwsspCourseWorkId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
coursesCourseWorkStudentSubmissionsPatch
:: Text
-> StudentSubmission
-> Text
-> Text
-> CoursesCourseWorkStudentSubmissionsPatch
coursesCourseWorkStudentSubmissionsPatch pCcwsspCourseId_ pCcwsspPayload_ pCcwsspId_ pCcwsspCourseWorkId_ =
CoursesCourseWorkStudentSubmissionsPatch'
{ _ccwsspXgafv = Nothing
, _ccwsspUploadProtocol = Nothing
, _ccwsspUpdateMask = Nothing
, _ccwsspCourseId = pCcwsspCourseId_
, _ccwsspAccessToken = Nothing
, _ccwsspUploadType = Nothing
, _ccwsspPayload = pCcwsspPayload_
, _ccwsspId = pCcwsspId_
, _ccwsspCallback = Nothing
, _ccwsspCourseWorkId = pCcwsspCourseWorkId_
}
ccwsspXgafv :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Xgafv)
ccwsspXgafv
= lens _ccwsspXgafv (\ s a -> s{_ccwsspXgafv = a})
ccwsspUploadProtocol :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text)
ccwsspUploadProtocol
= lens _ccwsspUploadProtocol
(\ s a -> s{_ccwsspUploadProtocol = a})
ccwsspUpdateMask :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe GFieldMask)
ccwsspUpdateMask
= lens _ccwsspUpdateMask
(\ s a -> s{_ccwsspUpdateMask = a})
ccwsspCourseId :: Lens' CoursesCourseWorkStudentSubmissionsPatch Text
ccwsspCourseId
= lens _ccwsspCourseId
(\ s a -> s{_ccwsspCourseId = a})
ccwsspAccessToken :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text)
ccwsspAccessToken
= lens _ccwsspAccessToken
(\ s a -> s{_ccwsspAccessToken = a})
ccwsspUploadType :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text)
ccwsspUploadType
= lens _ccwsspUploadType
(\ s a -> s{_ccwsspUploadType = a})
ccwsspPayload :: Lens' CoursesCourseWorkStudentSubmissionsPatch StudentSubmission
ccwsspPayload
= lens _ccwsspPayload
(\ s a -> s{_ccwsspPayload = a})
ccwsspId :: Lens' CoursesCourseWorkStudentSubmissionsPatch Text
ccwsspId = lens _ccwsspId (\ s a -> s{_ccwsspId = a})
ccwsspCallback :: Lens' CoursesCourseWorkStudentSubmissionsPatch (Maybe Text)
ccwsspCallback
= lens _ccwsspCallback
(\ s a -> s{_ccwsspCallback = a})
ccwsspCourseWorkId :: Lens' CoursesCourseWorkStudentSubmissionsPatch Text
ccwsspCourseWorkId
= lens _ccwsspCourseWorkId
(\ s a -> s{_ccwsspCourseWorkId = a})
instance GoogleRequest
CoursesCourseWorkStudentSubmissionsPatch where
type Rs CoursesCourseWorkStudentSubmissionsPatch =
StudentSubmission
type Scopes CoursesCourseWorkStudentSubmissionsPatch
=
'["https://www.googleapis.com/auth/classroom.coursework.me",
"https://www.googleapis.com/auth/classroom.coursework.students"]
requestClient
CoursesCourseWorkStudentSubmissionsPatch'{..}
= go _ccwsspCourseId _ccwsspCourseWorkId _ccwsspId
_ccwsspXgafv
_ccwsspUploadProtocol
_ccwsspUpdateMask
_ccwsspAccessToken
_ccwsspUploadType
_ccwsspCallback
(Just AltJSON)
_ccwsspPayload
classroomService
where go
= buildClient
(Proxy ::
Proxy
CoursesCourseWorkStudentSubmissionsPatchResource)
mempty