{-# 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.ModifyAssignees
(
CoursesCourseWorkModifyAssigneesResource
, coursesCourseWorkModifyAssignees
, CoursesCourseWorkModifyAssignees
, ccwmaXgafv
, ccwmaUploadProtocol
, ccwmaCourseId
, ccwmaAccessToken
, ccwmaUploadType
, ccwmaPayload
, ccwmaId
, ccwmaCallback
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type CoursesCourseWorkModifyAssigneesResource =
"v1" :>
"courses" :>
Capture "courseId" Text :>
"courseWork" :>
CaptureMode "id" "modifyAssignees" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ModifyCourseWorkAssigneesRequest :>
Post '[JSON] CourseWork
data CoursesCourseWorkModifyAssignees = CoursesCourseWorkModifyAssignees'
{ _ccwmaXgafv :: !(Maybe Xgafv)
, _ccwmaUploadProtocol :: !(Maybe Text)
, _ccwmaCourseId :: !Text
, _ccwmaAccessToken :: !(Maybe Text)
, _ccwmaUploadType :: !(Maybe Text)
, _ccwmaPayload :: !ModifyCourseWorkAssigneesRequest
, _ccwmaId :: !Text
, _ccwmaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
coursesCourseWorkModifyAssignees
:: Text
-> ModifyCourseWorkAssigneesRequest
-> Text
-> CoursesCourseWorkModifyAssignees
coursesCourseWorkModifyAssignees pCcwmaCourseId_ pCcwmaPayload_ pCcwmaId_ =
CoursesCourseWorkModifyAssignees'
{ _ccwmaXgafv = Nothing
, _ccwmaUploadProtocol = Nothing
, _ccwmaCourseId = pCcwmaCourseId_
, _ccwmaAccessToken = Nothing
, _ccwmaUploadType = Nothing
, _ccwmaPayload = pCcwmaPayload_
, _ccwmaId = pCcwmaId_
, _ccwmaCallback = Nothing
}
ccwmaXgafv :: Lens' CoursesCourseWorkModifyAssignees (Maybe Xgafv)
ccwmaXgafv
= lens _ccwmaXgafv (\ s a -> s{_ccwmaXgafv = a})
ccwmaUploadProtocol :: Lens' CoursesCourseWorkModifyAssignees (Maybe Text)
ccwmaUploadProtocol
= lens _ccwmaUploadProtocol
(\ s a -> s{_ccwmaUploadProtocol = a})
ccwmaCourseId :: Lens' CoursesCourseWorkModifyAssignees Text
ccwmaCourseId
= lens _ccwmaCourseId
(\ s a -> s{_ccwmaCourseId = a})
ccwmaAccessToken :: Lens' CoursesCourseWorkModifyAssignees (Maybe Text)
ccwmaAccessToken
= lens _ccwmaAccessToken
(\ s a -> s{_ccwmaAccessToken = a})
ccwmaUploadType :: Lens' CoursesCourseWorkModifyAssignees (Maybe Text)
ccwmaUploadType
= lens _ccwmaUploadType
(\ s a -> s{_ccwmaUploadType = a})
ccwmaPayload :: Lens' CoursesCourseWorkModifyAssignees ModifyCourseWorkAssigneesRequest
ccwmaPayload
= lens _ccwmaPayload (\ s a -> s{_ccwmaPayload = a})
ccwmaId :: Lens' CoursesCourseWorkModifyAssignees Text
ccwmaId = lens _ccwmaId (\ s a -> s{_ccwmaId = a})
ccwmaCallback :: Lens' CoursesCourseWorkModifyAssignees (Maybe Text)
ccwmaCallback
= lens _ccwmaCallback
(\ s a -> s{_ccwmaCallback = a})
instance GoogleRequest
CoursesCourseWorkModifyAssignees where
type Rs CoursesCourseWorkModifyAssignees = CourseWork
type Scopes CoursesCourseWorkModifyAssignees =
'["https://www.googleapis.com/auth/classroom.coursework.students"]
requestClient CoursesCourseWorkModifyAssignees'{..}
= go _ccwmaCourseId _ccwmaId _ccwmaXgafv
_ccwmaUploadProtocol
_ccwmaAccessToken
_ccwmaUploadType
_ccwmaCallback
(Just AltJSON)
_ccwmaPayload
classroomService
where go
= buildClient
(Proxy ::
Proxy CoursesCourseWorkModifyAssigneesResource)
mempty