{-# 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.Posts.Delete
(
PostsDeleteResource
, postsDelete
, PostsDelete
, pdBlogId
, pdPostId
) where
import Network.Google.Blogger.Types
import Network.Google.Prelude
type PostsDeleteResource =
"blogger" :>
"v3" :>
"blogs" :>
Capture "blogId" Text :>
"posts" :>
Capture "postId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data PostsDelete = PostsDelete'
{ _pdBlogId :: !Text
, _pdPostId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
postsDelete
:: Text
-> Text
-> PostsDelete
postsDelete pPdBlogId_ pPdPostId_ =
PostsDelete'
{ _pdBlogId = pPdBlogId_
, _pdPostId = pPdPostId_
}
pdBlogId :: Lens' PostsDelete Text
pdBlogId = lens _pdBlogId (\ s a -> s{_pdBlogId = a})
pdPostId :: Lens' PostsDelete Text
pdPostId = lens _pdPostId (\ s a -> s{_pdPostId = a})
instance GoogleRequest PostsDelete where
type Rs PostsDelete = ()
type Scopes PostsDelete =
'["https://www.googleapis.com/auth/blogger"]
requestClient PostsDelete'{..}
= go _pdBlogId _pdPostId (Just AltJSON)
bloggerService
where go
= buildClient (Proxy :: Proxy PostsDeleteResource)
mempty