{-# 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.Revisions.Delete
(
RevisionsDeleteResource
, revisionsDelete
, RevisionsDelete
, rFileId
, rRevisionId
) where
import Network.Google.Drive.Types
import Network.Google.Prelude
type RevisionsDeleteResource =
"drive" :>
"v3" :>
"files" :>
Capture "fileId" Text :>
"revisions" :>
Capture "revisionId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data RevisionsDelete = RevisionsDelete'
{ _rFileId :: !Text
, _rRevisionId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
revisionsDelete
:: Text
-> Text
-> RevisionsDelete
revisionsDelete pRFileId_ pRRevisionId_ =
RevisionsDelete'
{ _rFileId = pRFileId_
, _rRevisionId = pRRevisionId_
}
rFileId :: Lens' RevisionsDelete Text
rFileId = lens _rFileId (\ s a -> s{_rFileId = a})
rRevisionId :: Lens' RevisionsDelete Text
rRevisionId
= lens _rRevisionId (\ s a -> s{_rRevisionId = a})
instance GoogleRequest RevisionsDelete where
type Rs RevisionsDelete = ()
type Scopes RevisionsDelete =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.appdata",
"https://www.googleapis.com/auth/drive.file"]
requestClient RevisionsDelete'{..}
= go _rFileId _rRevisionId (Just AltJSON)
driveService
where go
= buildClient
(Proxy :: Proxy RevisionsDeleteResource)
mempty