{-# 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.Comments.Delete
(
CommentsDeleteResource
, commentsDelete
, CommentsDelete
, cdFileId
, cdCommentId
) where
import Network.Google.Drive.Types
import Network.Google.Prelude
type CommentsDeleteResource =
"drive" :>
"v3" :>
"files" :>
Capture "fileId" Text :>
"comments" :>
Capture "commentId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data CommentsDelete = CommentsDelete'
{ _cdFileId :: !Text
, _cdCommentId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
commentsDelete
:: Text
-> Text
-> CommentsDelete
commentsDelete pCdFileId_ pCdCommentId_ =
CommentsDelete'
{ _cdFileId = pCdFileId_
, _cdCommentId = pCdCommentId_
}
cdFileId :: Lens' CommentsDelete Text
cdFileId = lens _cdFileId (\ s a -> s{_cdFileId = a})
cdCommentId :: Lens' CommentsDelete Text
cdCommentId
= lens _cdCommentId (\ s a -> s{_cdCommentId = a})
instance GoogleRequest CommentsDelete where
type Rs CommentsDelete = ()
type Scopes CommentsDelete =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file"]
requestClient CommentsDelete'{..}
= go _cdFileId _cdCommentId (Just AltJSON)
driveService
where go
= buildClient (Proxy :: Proxy CommentsDeleteResource)
mempty