{-# 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.ModifyAttachments
(
CoursesCourseWorkStudentSubmissionsModifyAttachmentsResource
, coursesCourseWorkStudentSubmissionsModifyAttachments
, CoursesCourseWorkStudentSubmissionsModifyAttachments
, ccwssmaXgafv
, ccwssmaUploadProtocol
, ccwssmaCourseId
, ccwssmaAccessToken
, ccwssmaUploadType
, ccwssmaPayload
, ccwssmaId
, ccwssmaCallback
, ccwssmaCourseWorkId
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type CoursesCourseWorkStudentSubmissionsModifyAttachmentsResource
=
"v1" :>
"courses" :>
Capture "courseId" Text :>
"courseWork" :>
Capture "courseWorkId" Text :>
"studentSubmissions" :>
CaptureMode "id" "modifyAttachments" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ModifyAttachmentsRequest :>
Post '[JSON] StudentSubmission
data CoursesCourseWorkStudentSubmissionsModifyAttachments = CoursesCourseWorkStudentSubmissionsModifyAttachments'
{ _ccwssmaXgafv :: !(Maybe Xgafv)
, _ccwssmaUploadProtocol :: !(Maybe Text)
, _ccwssmaCourseId :: !Text
, _ccwssmaAccessToken :: !(Maybe Text)
, _ccwssmaUploadType :: !(Maybe Text)
, _ccwssmaPayload :: !ModifyAttachmentsRequest
, _ccwssmaId :: !Text
, _ccwssmaCallback :: !(Maybe Text)
, _ccwssmaCourseWorkId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
coursesCourseWorkStudentSubmissionsModifyAttachments
:: Text
-> ModifyAttachmentsRequest
-> Text
-> Text
-> CoursesCourseWorkStudentSubmissionsModifyAttachments
coursesCourseWorkStudentSubmissionsModifyAttachments pCcwssmaCourseId_ pCcwssmaPayload_ pCcwssmaId_ pCcwssmaCourseWorkId_ =
CoursesCourseWorkStudentSubmissionsModifyAttachments'
{ _ccwssmaXgafv = Nothing
, _ccwssmaUploadProtocol = Nothing
, _ccwssmaCourseId = pCcwssmaCourseId_
, _ccwssmaAccessToken = Nothing
, _ccwssmaUploadType = Nothing
, _ccwssmaPayload = pCcwssmaPayload_
, _ccwssmaId = pCcwssmaId_
, _ccwssmaCallback = Nothing
, _ccwssmaCourseWorkId = pCcwssmaCourseWorkId_
}
ccwssmaXgafv :: Lens' CoursesCourseWorkStudentSubmissionsModifyAttachments (Maybe Xgafv)
ccwssmaXgafv
= lens _ccwssmaXgafv (\ s a -> s{_ccwssmaXgafv = a})
ccwssmaUploadProtocol :: Lens' CoursesCourseWorkStudentSubmissionsModifyAttachments (Maybe Text)
ccwssmaUploadProtocol
= lens _ccwssmaUploadProtocol
(\ s a -> s{_ccwssmaUploadProtocol = a})
ccwssmaCourseId :: Lens' CoursesCourseWorkStudentSubmissionsModifyAttachments Text
ccwssmaCourseId
= lens _ccwssmaCourseId
(\ s a -> s{_ccwssmaCourseId = a})
ccwssmaAccessToken :: Lens' CoursesCourseWorkStudentSubmissionsModifyAttachments (Maybe Text)
ccwssmaAccessToken
= lens _ccwssmaAccessToken
(\ s a -> s{_ccwssmaAccessToken = a})
ccwssmaUploadType :: Lens' CoursesCourseWorkStudentSubmissionsModifyAttachments (Maybe Text)
ccwssmaUploadType
= lens _ccwssmaUploadType
(\ s a -> s{_ccwssmaUploadType = a})
ccwssmaPayload :: Lens' CoursesCourseWorkStudentSubmissionsModifyAttachments ModifyAttachmentsRequest
ccwssmaPayload
= lens _ccwssmaPayload
(\ s a -> s{_ccwssmaPayload = a})
ccwssmaId :: Lens' CoursesCourseWorkStudentSubmissionsModifyAttachments Text
ccwssmaId
= lens _ccwssmaId (\ s a -> s{_ccwssmaId = a})
ccwssmaCallback :: Lens' CoursesCourseWorkStudentSubmissionsModifyAttachments (Maybe Text)
ccwssmaCallback
= lens _ccwssmaCallback
(\ s a -> s{_ccwssmaCallback = a})
ccwssmaCourseWorkId :: Lens' CoursesCourseWorkStudentSubmissionsModifyAttachments Text
ccwssmaCourseWorkId
= lens _ccwssmaCourseWorkId
(\ s a -> s{_ccwssmaCourseWorkId = a})
instance GoogleRequest
CoursesCourseWorkStudentSubmissionsModifyAttachments
where
type Rs
CoursesCourseWorkStudentSubmissionsModifyAttachments
= StudentSubmission
type Scopes
CoursesCourseWorkStudentSubmissionsModifyAttachments
=
'["https://www.googleapis.com/auth/classroom.coursework.me",
"https://www.googleapis.com/auth/classroom.coursework.students"]
requestClient
CoursesCourseWorkStudentSubmissionsModifyAttachments'{..}
= go _ccwssmaCourseId _ccwssmaCourseWorkId _ccwssmaId
_ccwssmaXgafv
_ccwssmaUploadProtocol
_ccwssmaAccessToken
_ccwssmaUploadType
_ccwssmaCallback
(Just AltJSON)
_ccwssmaPayload
classroomService
where go
= buildClient
(Proxy ::
Proxy
CoursesCourseWorkStudentSubmissionsModifyAttachmentsResource)
mempty