{-# 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.Pages.GetThumbnail
(
PresentationsPagesGetThumbnailResource
, presentationsPagesGetThumbnail
, PresentationsPagesGetThumbnail
, ppgtXgafv
, ppgtThumbnailPropertiesMimeType
, ppgtThumbnailPropertiesThumbnailSize
, ppgtUploadProtocol
, ppgtAccessToken
, ppgtPageObjectId
, ppgtUploadType
, ppgtPresentationId
, ppgtCallback
) where
import Network.Google.Prelude
import Network.Google.Slides.Types
type PresentationsPagesGetThumbnailResource =
"v1" :>
"presentations" :>
Capture "presentationId" Text :>
"pages" :>
Capture "pageObjectId" Text :>
"thumbnail" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "thumbnailProperties.mimeType" Text :>
QueryParam "thumbnailProperties.thumbnailSize" Text
:>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Thumbnail
data PresentationsPagesGetThumbnail = PresentationsPagesGetThumbnail'
{ _ppgtXgafv :: !(Maybe Xgafv)
, _ppgtThumbnailPropertiesMimeType :: !(Maybe Text)
, _ppgtThumbnailPropertiesThumbnailSize :: !(Maybe Text)
, _ppgtUploadProtocol :: !(Maybe Text)
, _ppgtAccessToken :: !(Maybe Text)
, _ppgtPageObjectId :: !Text
, _ppgtUploadType :: !(Maybe Text)
, _ppgtPresentationId :: !Text
, _ppgtCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
presentationsPagesGetThumbnail
:: Text
-> Text
-> PresentationsPagesGetThumbnail
presentationsPagesGetThumbnail pPpgtPageObjectId_ pPpgtPresentationId_ =
PresentationsPagesGetThumbnail'
{ _ppgtXgafv = Nothing
, _ppgtThumbnailPropertiesMimeType = Nothing
, _ppgtThumbnailPropertiesThumbnailSize = Nothing
, _ppgtUploadProtocol = Nothing
, _ppgtAccessToken = Nothing
, _ppgtPageObjectId = pPpgtPageObjectId_
, _ppgtUploadType = Nothing
, _ppgtPresentationId = pPpgtPresentationId_
, _ppgtCallback = Nothing
}
ppgtXgafv :: Lens' PresentationsPagesGetThumbnail (Maybe Xgafv)
ppgtXgafv
= lens _ppgtXgafv (\ s a -> s{_ppgtXgafv = a})
ppgtThumbnailPropertiesMimeType :: Lens' PresentationsPagesGetThumbnail (Maybe Text)
ppgtThumbnailPropertiesMimeType
= lens _ppgtThumbnailPropertiesMimeType
(\ s a -> s{_ppgtThumbnailPropertiesMimeType = a})
ppgtThumbnailPropertiesThumbnailSize :: Lens' PresentationsPagesGetThumbnail (Maybe Text)
ppgtThumbnailPropertiesThumbnailSize
= lens _ppgtThumbnailPropertiesThumbnailSize
(\ s a ->
s{_ppgtThumbnailPropertiesThumbnailSize = a})
ppgtUploadProtocol :: Lens' PresentationsPagesGetThumbnail (Maybe Text)
ppgtUploadProtocol
= lens _ppgtUploadProtocol
(\ s a -> s{_ppgtUploadProtocol = a})
ppgtAccessToken :: Lens' PresentationsPagesGetThumbnail (Maybe Text)
ppgtAccessToken
= lens _ppgtAccessToken
(\ s a -> s{_ppgtAccessToken = a})
ppgtPageObjectId :: Lens' PresentationsPagesGetThumbnail Text
ppgtPageObjectId
= lens _ppgtPageObjectId
(\ s a -> s{_ppgtPageObjectId = a})
ppgtUploadType :: Lens' PresentationsPagesGetThumbnail (Maybe Text)
ppgtUploadType
= lens _ppgtUploadType
(\ s a -> s{_ppgtUploadType = a})
ppgtPresentationId :: Lens' PresentationsPagesGetThumbnail Text
ppgtPresentationId
= lens _ppgtPresentationId
(\ s a -> s{_ppgtPresentationId = a})
ppgtCallback :: Lens' PresentationsPagesGetThumbnail (Maybe Text)
ppgtCallback
= lens _ppgtCallback (\ s a -> s{_ppgtCallback = a})
instance GoogleRequest PresentationsPagesGetThumbnail
where
type Rs PresentationsPagesGetThumbnail = Thumbnail
type Scopes PresentationsPagesGetThumbnail =
'["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/presentations.readonly"]
requestClient PresentationsPagesGetThumbnail'{..}
= go _ppgtPresentationId _ppgtPageObjectId _ppgtXgafv
_ppgtThumbnailPropertiesMimeType
_ppgtThumbnailPropertiesThumbnailSize
_ppgtUploadProtocol
_ppgtAccessToken
_ppgtUploadType
_ppgtCallback
(Just AltJSON)
slidesService
where go
= buildClient
(Proxy ::
Proxy PresentationsPagesGetThumbnailResource)
mempty