gogol-blogger-0.4.0: Google Blogger SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Blogger.Posts.Revert

Contents

Description

Revert a published or scheduled post to draft state.

See: Blogger API Reference for blogger.posts.revert.

Synopsis

REST Resource

type PostsRevertResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (Capture "postId" Text :> ("revert" :> (QueryParam "alt" AltJSON :> Post '[JSON] Post'))))))) Source #

A resource alias for blogger.posts.revert method which the PostsRevert request conforms to.

Creating a Request

postsRevert Source #

Creates a value of PostsRevert with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PostsRevert Source #

Revert a published or scheduled post to draft state.

See: postsRevert smart constructor.

Instances
Eq PostsRevert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Revert

Data PostsRevert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Revert

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PostsRevert -> c PostsRevert #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PostsRevert #

toConstr :: PostsRevert -> Constr #

dataTypeOf :: PostsRevert -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PostsRevert) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PostsRevert) #

gmapT :: (forall b. Data b => b -> b) -> PostsRevert -> PostsRevert #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PostsRevert -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PostsRevert -> r #

gmapQ :: (forall d. Data d => d -> u) -> PostsRevert -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PostsRevert -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PostsRevert -> m PostsRevert #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PostsRevert -> m PostsRevert #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PostsRevert -> m PostsRevert #

Show PostsRevert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Revert

Generic PostsRevert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Revert

Associated Types

type Rep PostsRevert :: Type -> Type #

GoogleRequest PostsRevert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Revert

Associated Types

type Rs PostsRevert :: Type #

type Scopes PostsRevert :: [Symbol] #

type Rep PostsRevert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Revert

type Rep PostsRevert = D1 (MetaData "PostsRevert" "Network.Google.Resource.Blogger.Posts.Revert" "gogol-blogger-0.4.0-J2l0mOXVNniBwK88dTMLog" False) (C1 (MetaCons "PostsRevert'" PrefixI True) (S1 (MetaSel (Just "_prBlogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_prPostId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes PostsRevert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Revert

type Scopes PostsRevert = "https://www.googleapis.com/auth/blogger" ': ([] :: [Symbol])
type Rs PostsRevert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Posts.Revert

Request Lenses

prBlogId :: Lens' PostsRevert Text Source #

The ID of the Blog.

prPostId :: Lens' PostsRevert Text Source #

The ID of the Post.