{-# 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.Revert
(
PagesRevertResource
, pagesRevert
, PagesRevert
, pagBlogId
, pagPageId
) where
import Network.Google.Blogger.Types
import Network.Google.Prelude
type PagesRevertResource =
"blogger" :>
"v3" :>
"blogs" :>
Capture "blogId" Text :>
"pages" :>
Capture "pageId" Text :>
"revert" :>
QueryParam "alt" AltJSON :> Post '[JSON] Page
data PagesRevert = PagesRevert'
{ _pagBlogId :: !Text
, _pagPageId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
pagesRevert
:: Text
-> Text
-> PagesRevert
pagesRevert pPagBlogId_ pPagPageId_ =
PagesRevert'
{ _pagBlogId = pPagBlogId_
, _pagPageId = pPagPageId_
}
pagBlogId :: Lens' PagesRevert Text
pagBlogId
= lens _pagBlogId (\ s a -> s{_pagBlogId = a})
pagPageId :: Lens' PagesRevert Text
pagPageId
= lens _pagPageId (\ s a -> s{_pagPageId = a})
instance GoogleRequest PagesRevert where
type Rs PagesRevert = Page
type Scopes PagesRevert =
'["https://www.googleapis.com/auth/blogger"]
requestClient PagesRevert'{..}
= go _pagBlogId _pagPageId (Just AltJSON)
bloggerService
where go
= buildClient (Proxy :: Proxy PagesRevertResource)
mempty