{-# 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.Delete
(
CommentsDeleteResource
, commentsDelete
, CommentsDelete
, cdBlogId
, cdPostId
, cdCommentId
) where
import Network.Google.Blogger.Types
import Network.Google.Prelude
type CommentsDeleteResource =
"blogger" :>
"v3" :>
"blogs" :>
Capture "blogId" Text :>
"posts" :>
Capture "postId" Text :>
"comments" :>
Capture "commentId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data CommentsDelete = CommentsDelete'
{ _cdBlogId :: !Text
, _cdPostId :: !Text
, _cdCommentId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
commentsDelete
:: Text
-> Text
-> Text
-> CommentsDelete
commentsDelete pCdBlogId_ pCdPostId_ pCdCommentId_ =
CommentsDelete'
{ _cdBlogId = pCdBlogId_
, _cdPostId = pCdPostId_
, _cdCommentId = pCdCommentId_
}
cdBlogId :: Lens' CommentsDelete Text
cdBlogId = lens _cdBlogId (\ s a -> s{_cdBlogId = a})
cdPostId :: Lens' CommentsDelete Text
cdPostId = lens _cdPostId (\ s a -> s{_cdPostId = 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/blogger"]
requestClient CommentsDelete'{..}
= go _cdBlogId _cdPostId _cdCommentId (Just AltJSON)
bloggerService
where go
= buildClient (Proxy :: Proxy CommentsDeleteResource)
mempty