{-# 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.Drive.Changes.GetStartPageToken
(
ChangesGetStartPageTokenResource
, changesGetStartPageToken
, ChangesGetStartPageToken
, cgsptTeamDriveId
, cgsptSupportsTeamDrives
) where
import Network.Google.Drive.Types
import Network.Google.Prelude
type ChangesGetStartPageTokenResource =
"drive" :>
"v3" :>
"changes" :>
"startPageToken" :>
QueryParam "teamDriveId" Text :>
QueryParam "supportsTeamDrives" Bool :>
QueryParam "alt" AltJSON :>
Get '[JSON] StartPageToken
data ChangesGetStartPageToken = ChangesGetStartPageToken'
{ _cgsptTeamDriveId :: !(Maybe Text)
, _cgsptSupportsTeamDrives :: !Bool
} deriving (Eq,Show,Data,Typeable,Generic)
changesGetStartPageToken
:: ChangesGetStartPageToken
changesGetStartPageToken =
ChangesGetStartPageToken'
{ _cgsptTeamDriveId = Nothing
, _cgsptSupportsTeamDrives = False
}
cgsptTeamDriveId :: Lens' ChangesGetStartPageToken (Maybe Text)
cgsptTeamDriveId
= lens _cgsptTeamDriveId
(\ s a -> s{_cgsptTeamDriveId = a})
cgsptSupportsTeamDrives :: Lens' ChangesGetStartPageToken Bool
cgsptSupportsTeamDrives
= lens _cgsptSupportsTeamDrives
(\ s a -> s{_cgsptSupportsTeamDrives = a})
instance GoogleRequest ChangesGetStartPageToken where
type Rs ChangesGetStartPageToken = StartPageToken
type Scopes ChangesGetStartPageToken =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.metadata",
"https://www.googleapis.com/auth/drive.metadata.readonly",
"https://www.googleapis.com/auth/drive.photos.readonly",
"https://www.googleapis.com/auth/drive.readonly"]
requestClient ChangesGetStartPageToken'{..}
= go _cgsptTeamDriveId
(Just _cgsptSupportsTeamDrives)
(Just AltJSON)
driveService
where go
= buildClient
(Proxy :: Proxy ChangesGetStartPageTokenResource)
mempty