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.Update

Contents

Description

Update a post.

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

Synopsis

REST Resource

type PostsUpdateResource = "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' :> Put '[JSON] Post')))))))))))) Source #

A resource alias for blogger.posts.update method which the PostsUpdate request conforms to.

Creating a Request

postsUpdate Source #

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

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

data PostsUpdate Source #

Update a post.

See: postsUpdate smart constructor.

Instances
Eq PostsUpdate Source # 
Instance details

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

Data PostsUpdate Source # 
Instance details

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

Methods

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

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

toConstr :: PostsUpdate -> Constr #

dataTypeOf :: PostsUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PostsUpdate Source # 
Instance details

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

Generic PostsUpdate Source # 
Instance details

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

Associated Types

type Rep PostsUpdate :: Type -> Type #

GoogleRequest PostsUpdate Source # 
Instance details

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

Associated Types

type Rs PostsUpdate :: Type #

type Scopes PostsUpdate :: [Symbol] #

type Rep PostsUpdate Source # 
Instance details

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

type Scopes PostsUpdate Source # 
Instance details

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

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

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

Request Lenses

puFetchBody :: Lens' PostsUpdate Bool Source #

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

puFetchImages :: Lens' PostsUpdate (Maybe Bool) Source #

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

puBlogId :: Lens' PostsUpdate Text Source #

The ID of the Blog.

puPayload :: Lens' PostsUpdate Post' Source #

Multipart request metadata.

puMaxComments :: Lens' PostsUpdate (Maybe Word32) Source #

Maximum number of comments to retrieve with the returned post.

puRevert :: Lens' PostsUpdate (Maybe Bool) Source #

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

puPostId :: Lens' PostsUpdate Text Source #

The ID of the Post.

puPublish :: Lens' PostsUpdate (Maybe Bool) Source #

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