{-# 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.Replies.Delete
(
RepliesDeleteResource
, repliesDelete
, RepliesDelete
, rdReplyId
, rdFileId
, rdCommentId
) where
import Network.Google.Drive.Types
import Network.Google.Prelude
type RepliesDeleteResource =
"drive" :>
"v3" :>
"files" :>
Capture "fileId" Text :>
"comments" :>
Capture "commentId" Text :>
"replies" :>
Capture "replyId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data RepliesDelete = RepliesDelete'
{ _rdReplyId :: !Text
, _rdFileId :: !Text
, _rdCommentId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
repliesDelete
:: Text
-> Text
-> Text
-> RepliesDelete
repliesDelete pRdReplyId_ pRdFileId_ pRdCommentId_ =
RepliesDelete'
{ _rdReplyId = pRdReplyId_
, _rdFileId = pRdFileId_
, _rdCommentId = pRdCommentId_
}
rdReplyId :: Lens' RepliesDelete Text
rdReplyId
= lens _rdReplyId (\ s a -> s{_rdReplyId = a})
rdFileId :: Lens' RepliesDelete Text
rdFileId = lens _rdFileId (\ s a -> s{_rdFileId = a})
rdCommentId :: Lens' RepliesDelete Text
rdCommentId
= lens _rdCommentId (\ s a -> s{_rdCommentId = a})
instance GoogleRequest RepliesDelete where
type Rs RepliesDelete = ()
type Scopes RepliesDelete =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file"]
requestClient RepliesDelete'{..}
= go _rdFileId _rdCommentId _rdReplyId (Just AltJSON)
driveService
where go
= buildClient (Proxy :: Proxy RepliesDeleteResource)
mempty