{-# 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.Get
(
RepliesGetResource
, repliesGet
, RepliesGet
, rgReplyId
, rgFileId
, rgCommentId
, rgIncludeDeleted
) where
import Network.Google.Drive.Types
import Network.Google.Prelude
type RepliesGetResource =
"drive" :>
"v3" :>
"files" :>
Capture "fileId" Text :>
"comments" :>
Capture "commentId" Text :>
"replies" :>
Capture "replyId" Text :>
QueryParam "includeDeleted" Bool :>
QueryParam "alt" AltJSON :> Get '[JSON] Reply
data RepliesGet = RepliesGet'
{ _rgReplyId :: !Text
, _rgFileId :: !Text
, _rgCommentId :: !Text
, _rgIncludeDeleted :: !Bool
} deriving (Eq,Show,Data,Typeable,Generic)
repliesGet
:: Text
-> Text
-> Text
-> RepliesGet
repliesGet pRgReplyId_ pRgFileId_ pRgCommentId_ =
RepliesGet'
{ _rgReplyId = pRgReplyId_
, _rgFileId = pRgFileId_
, _rgCommentId = pRgCommentId_
, _rgIncludeDeleted = False
}
rgReplyId :: Lens' RepliesGet Text
rgReplyId
= lens _rgReplyId (\ s a -> s{_rgReplyId = a})
rgFileId :: Lens' RepliesGet Text
rgFileId = lens _rgFileId (\ s a -> s{_rgFileId = a})
rgCommentId :: Lens' RepliesGet Text
rgCommentId
= lens _rgCommentId (\ s a -> s{_rgCommentId = a})
rgIncludeDeleted :: Lens' RepliesGet Bool
rgIncludeDeleted
= lens _rgIncludeDeleted
(\ s a -> s{_rgIncludeDeleted = a})
instance GoogleRequest RepliesGet where
type Rs RepliesGet = Reply
type Scopes RepliesGet =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly"]
requestClient RepliesGet'{..}
= go _rgFileId _rgCommentId _rgReplyId
(Just _rgIncludeDeleted)
(Just AltJSON)
driveService
where go
= buildClient (Proxy :: Proxy RepliesGetResource)
mempty