{-# 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.List
(
RepliesListResource
, repliesList
, RepliesList
, rlPageToken
, rlFileId
, rlCommentId
, rlPageSize
, rlIncludeDeleted
) where
import Network.Google.Drive.Types
import Network.Google.Prelude
type RepliesListResource =
"drive" :>
"v3" :>
"files" :>
Capture "fileId" Text :>
"comments" :>
Capture "commentId" Text :>
"replies" :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "includeDeleted" Bool :>
QueryParam "alt" AltJSON :> Get '[JSON] ReplyList
data RepliesList = RepliesList'
{ _rlPageToken :: !(Maybe Text)
, _rlFileId :: !Text
, _rlCommentId :: !Text
, _rlPageSize :: !(Textual Int32)
, _rlIncludeDeleted :: !Bool
} deriving (Eq,Show,Data,Typeable,Generic)
repliesList
:: Text
-> Text
-> RepliesList
repliesList pRlFileId_ pRlCommentId_ =
RepliesList'
{ _rlPageToken = Nothing
, _rlFileId = pRlFileId_
, _rlCommentId = pRlCommentId_
, _rlPageSize = 20
, _rlIncludeDeleted = False
}
rlPageToken :: Lens' RepliesList (Maybe Text)
rlPageToken
= lens _rlPageToken (\ s a -> s{_rlPageToken = a})
rlFileId :: Lens' RepliesList Text
rlFileId = lens _rlFileId (\ s a -> s{_rlFileId = a})
rlCommentId :: Lens' RepliesList Text
rlCommentId
= lens _rlCommentId (\ s a -> s{_rlCommentId = a})
rlPageSize :: Lens' RepliesList Int32
rlPageSize
= lens _rlPageSize (\ s a -> s{_rlPageSize = a}) .
_Coerce
rlIncludeDeleted :: Lens' RepliesList Bool
rlIncludeDeleted
= lens _rlIncludeDeleted
(\ s a -> s{_rlIncludeDeleted = a})
instance GoogleRequest RepliesList where
type Rs RepliesList = ReplyList
type Scopes RepliesList =
'["https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly"]
requestClient RepliesList'{..}
= go _rlFileId _rlCommentId _rlPageToken
(Just _rlPageSize)
(Just _rlIncludeDeleted)
(Just AltJSON)
driveService
where go
= buildClient (Proxy :: Proxy RepliesListResource)
mempty