{-# 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.Announcements.ModifyAssignees
(
CoursesAnnouncementsModifyAssigneesResource
, coursesAnnouncementsModifyAssignees
, CoursesAnnouncementsModifyAssignees
, camaXgafv
, camaUploadProtocol
, camaCourseId
, camaAccessToken
, camaUploadType
, camaPayload
, camaId
, camaCallback
) where
import Network.Google.Classroom.Types
import Network.Google.Prelude
type CoursesAnnouncementsModifyAssigneesResource =
"v1" :>
"courses" :>
Capture "courseId" Text :>
"announcements" :>
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] ModifyAnnouncementAssigneesRequest :>
Post '[JSON] Announcement
data CoursesAnnouncementsModifyAssignees = CoursesAnnouncementsModifyAssignees'
{ _camaXgafv :: !(Maybe Xgafv)
, _camaUploadProtocol :: !(Maybe Text)
, _camaCourseId :: !Text
, _camaAccessToken :: !(Maybe Text)
, _camaUploadType :: !(Maybe Text)
, _camaPayload :: !ModifyAnnouncementAssigneesRequest
, _camaId :: !Text
, _camaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
coursesAnnouncementsModifyAssignees
:: Text
-> ModifyAnnouncementAssigneesRequest
-> Text
-> CoursesAnnouncementsModifyAssignees
coursesAnnouncementsModifyAssignees pCamaCourseId_ pCamaPayload_ pCamaId_ =
CoursesAnnouncementsModifyAssignees'
{ _camaXgafv = Nothing
, _camaUploadProtocol = Nothing
, _camaCourseId = pCamaCourseId_
, _camaAccessToken = Nothing
, _camaUploadType = Nothing
, _camaPayload = pCamaPayload_
, _camaId = pCamaId_
, _camaCallback = Nothing
}
camaXgafv :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Xgafv)
camaXgafv
= lens _camaXgafv (\ s a -> s{_camaXgafv = a})
camaUploadProtocol :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Text)
camaUploadProtocol
= lens _camaUploadProtocol
(\ s a -> s{_camaUploadProtocol = a})
camaCourseId :: Lens' CoursesAnnouncementsModifyAssignees Text
camaCourseId
= lens _camaCourseId (\ s a -> s{_camaCourseId = a})
camaAccessToken :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Text)
camaAccessToken
= lens _camaAccessToken
(\ s a -> s{_camaAccessToken = a})
camaUploadType :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Text)
camaUploadType
= lens _camaUploadType
(\ s a -> s{_camaUploadType = a})
camaPayload :: Lens' CoursesAnnouncementsModifyAssignees ModifyAnnouncementAssigneesRequest
camaPayload
= lens _camaPayload (\ s a -> s{_camaPayload = a})
camaId :: Lens' CoursesAnnouncementsModifyAssignees Text
camaId = lens _camaId (\ s a -> s{_camaId = a})
camaCallback :: Lens' CoursesAnnouncementsModifyAssignees (Maybe Text)
camaCallback
= lens _camaCallback (\ s a -> s{_camaCallback = a})
instance GoogleRequest
CoursesAnnouncementsModifyAssignees where
type Rs CoursesAnnouncementsModifyAssignees =
Announcement
type Scopes CoursesAnnouncementsModifyAssignees =
'["https://www.googleapis.com/auth/classroom.announcements"]
requestClient
CoursesAnnouncementsModifyAssignees'{..}
= go _camaCourseId _camaId _camaXgafv
_camaUploadProtocol
_camaAccessToken
_camaUploadType
_camaCallback
(Just AltJSON)
_camaPayload
classroomService
where go
= buildClient
(Proxy ::
Proxy CoursesAnnouncementsModifyAssigneesResource)
mempty