{-# 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.Blogger.Comments.RemoveContent
(
CommentsRemoveContentResource
, commentsRemoveContent
, CommentsRemoveContent
, crcBlogId
, crcPostId
, crcCommentId
) where
import Network.Google.Blogger.Types
import Network.Google.Prelude
type CommentsRemoveContentResource =
"blogger" :>
"v3" :>
"blogs" :>
Capture "blogId" Text :>
"posts" :>
Capture "postId" Text :>
"comments" :>
Capture "commentId" Text :>
"removecontent" :>
QueryParam "alt" AltJSON :> Post '[JSON] Comment
data CommentsRemoveContent = CommentsRemoveContent'
{ _crcBlogId :: !Text
, _crcPostId :: !Text
, _crcCommentId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
commentsRemoveContent
:: Text
-> Text
-> Text
-> CommentsRemoveContent
commentsRemoveContent pCrcBlogId_ pCrcPostId_ pCrcCommentId_ =
CommentsRemoveContent'
{ _crcBlogId = pCrcBlogId_
, _crcPostId = pCrcPostId_
, _crcCommentId = pCrcCommentId_
}
crcBlogId :: Lens' CommentsRemoveContent Text
crcBlogId
= lens _crcBlogId (\ s a -> s{_crcBlogId = a})
crcPostId :: Lens' CommentsRemoveContent Text
crcPostId
= lens _crcPostId (\ s a -> s{_crcPostId = a})
crcCommentId :: Lens' CommentsRemoveContent Text
crcCommentId
= lens _crcCommentId (\ s a -> s{_crcCommentId = a})
instance GoogleRequest CommentsRemoveContent where
type Rs CommentsRemoveContent = Comment
type Scopes CommentsRemoveContent =
'["https://www.googleapis.com/auth/blogger"]
requestClient CommentsRemoveContent'{..}
= go _crcBlogId _crcPostId _crcCommentId
(Just AltJSON)
bloggerService
where go
= buildClient
(Proxy :: Proxy CommentsRemoveContentResource)
mempty