{-# 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.Slides.Presentations.BatchUpdate
(
PresentationsBatchUpdateResource
, presentationsBatchUpdate
, PresentationsBatchUpdate
, pbuXgafv
, pbuUploadProtocol
, pbuAccessToken
, pbuUploadType
, pbuPresentationId
, pbuPayload
, pbuCallback
) where
import Network.Google.Prelude
import Network.Google.Slides.Types
type PresentationsBatchUpdateResource =
"v1" :>
"presentations" :>
CaptureMode "presentationId" "batchUpdate" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] BatchUpdatePresentationRequest :>
Post '[JSON] BatchUpdatePresentationResponse
data PresentationsBatchUpdate = PresentationsBatchUpdate'
{ _pbuXgafv :: !(Maybe Xgafv)
, _pbuUploadProtocol :: !(Maybe Text)
, _pbuAccessToken :: !(Maybe Text)
, _pbuUploadType :: !(Maybe Text)
, _pbuPresentationId :: !Text
, _pbuPayload :: !BatchUpdatePresentationRequest
, _pbuCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
presentationsBatchUpdate
:: Text
-> BatchUpdatePresentationRequest
-> PresentationsBatchUpdate
presentationsBatchUpdate pPbuPresentationId_ pPbuPayload_ =
PresentationsBatchUpdate'
{ _pbuXgafv = Nothing
, _pbuUploadProtocol = Nothing
, _pbuAccessToken = Nothing
, _pbuUploadType = Nothing
, _pbuPresentationId = pPbuPresentationId_
, _pbuPayload = pPbuPayload_
, _pbuCallback = Nothing
}
pbuXgafv :: Lens' PresentationsBatchUpdate (Maybe Xgafv)
pbuXgafv = lens _pbuXgafv (\ s a -> s{_pbuXgafv = a})
pbuUploadProtocol :: Lens' PresentationsBatchUpdate (Maybe Text)
pbuUploadProtocol
= lens _pbuUploadProtocol
(\ s a -> s{_pbuUploadProtocol = a})
pbuAccessToken :: Lens' PresentationsBatchUpdate (Maybe Text)
pbuAccessToken
= lens _pbuAccessToken
(\ s a -> s{_pbuAccessToken = a})
pbuUploadType :: Lens' PresentationsBatchUpdate (Maybe Text)
pbuUploadType
= lens _pbuUploadType
(\ s a -> s{_pbuUploadType = a})
pbuPresentationId :: Lens' PresentationsBatchUpdate Text
pbuPresentationId
= lens _pbuPresentationId
(\ s a -> s{_pbuPresentationId = a})
pbuPayload :: Lens' PresentationsBatchUpdate BatchUpdatePresentationRequest
pbuPayload
= lens _pbuPayload (\ s a -> s{_pbuPayload = a})
pbuCallback :: Lens' PresentationsBatchUpdate (Maybe Text)
pbuCallback
= lens _pbuCallback (\ s a -> s{_pbuCallback = a})
instance GoogleRequest PresentationsBatchUpdate where
type Rs PresentationsBatchUpdate =
BatchUpdatePresentationResponse
type Scopes PresentationsBatchUpdate =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/presentations",
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/spreadsheets.readonly"]
requestClient PresentationsBatchUpdate'{..}
= go _pbuPresentationId _pbuXgafv _pbuUploadProtocol
_pbuAccessToken
_pbuUploadType
_pbuCallback
(Just AltJSON)
_pbuPayload
slidesService
where go
= buildClient
(Proxy :: Proxy PresentationsBatchUpdateResource)
mempty