gogol-blogger-0.1.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.Patch

Contents

Description

Update a post. This method supports patch semantics.

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

Synopsis

REST Resource

type PostsPatchResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("posts" :> (Capture "postId" Text :> (QueryParam "fetchBody" Bool :> (QueryParam "fetchImages" Bool :> (QueryParam "maxComments" (Textual Word32) :> (QueryParam "revert" Bool :> (QueryParam "publish" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Post' :> Patch '[JSON] Post')))))))))))) Source #

A resource alias for blogger.posts.patch method which the PostsPatch request conforms to.

Creating a Request

postsPatch Source #

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

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

data PostsPatch Source #

Update a post. This method supports patch semantics.

See: postsPatch smart constructor.

Instances

Eq PostsPatch Source # 
Data PostsPatch Source # 

Methods

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

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

toConstr :: PostsPatch -> Constr #

dataTypeOf :: PostsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PostsPatch Source # 
Generic PostsPatch Source # 

Associated Types

type Rep PostsPatch :: * -> * #

GoogleRequest PostsPatch Source # 

Associated Types

type Rs PostsPatch :: * #

type Scopes PostsPatch :: [Symbol] #

type Rep PostsPatch Source # 
type Scopes PostsPatch Source # 
type Scopes PostsPatch = (:) Symbol "https://www.googleapis.com/auth/blogger" ([] Symbol)
type Rs PostsPatch Source # 

Request Lenses

posoFetchBody :: Lens' PostsPatch Bool Source #

Whether the body content of the post is included with the result (default: true).

posoFetchImages :: Lens' PostsPatch (Maybe Bool) Source #

Whether image URL metadata for each post is included in the returned result (default: false).

posoBlogId :: Lens' PostsPatch Text Source #

The ID of the Blog.

posoPayload :: Lens' PostsPatch Post' Source #

Multipart request metadata.

posoMaxComments :: Lens' PostsPatch (Maybe Word32) Source #

Maximum number of comments to retrieve with the returned post.

posoRevert :: Lens' PostsPatch (Maybe Bool) Source #

Whether a revert action should be performed when the post is updated (default: false).

posoPostId :: Lens' PostsPatch Text Source #

The ID of the Post.

posoPublish :: Lens' PostsPatch (Maybe Bool) Source #

Whether a publish action should be performed when the post is updated (default: false).