{-# 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.Pages.Delete
(
PagesDeleteResource
, pagesDelete
, PagesDelete
, pddBlogId
, pddPageId
) where
import Network.Google.Blogger.Types
import Network.Google.Prelude
type PagesDeleteResource =
"blogger" :>
"v3" :>
"blogs" :>
Capture "blogId" Text :>
"pages" :>
Capture "pageId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data PagesDelete = PagesDelete'
{ _pddBlogId :: !Text
, _pddPageId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
pagesDelete
:: Text
-> Text
-> PagesDelete
pagesDelete pPddBlogId_ pPddPageId_ =
PagesDelete'
{ _pddBlogId = pPddBlogId_
, _pddPageId = pPddPageId_
}
pddBlogId :: Lens' PagesDelete Text
pddBlogId
= lens _pddBlogId (\ s a -> s{_pddBlogId = a})
pddPageId :: Lens' PagesDelete Text
pddPageId
= lens _pddPageId (\ s a -> s{_pddPageId = a})
instance GoogleRequest PagesDelete where
type Rs PagesDelete = ()
type Scopes PagesDelete =
'["https://www.googleapis.com/auth/blogger"]
requestClient PagesDelete'{..}
= go _pddBlogId _pddPageId (Just AltJSON)
bloggerService
where go
= buildClient (Proxy :: Proxy PagesDeleteResource)
mempty