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.Pages.Insert

Contents

Description

Add a page.

See: Blogger API Reference for blogger.pages.insert.

Synopsis

REST Resource

type PagesInsertResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("pages" :> (QueryParam "isDraft" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Page :> Post '[JSON] Page))))))) Source #

A resource alias for blogger.pages.insert method which the PagesInsert request conforms to.

Creating a Request

pagesInsert Source #

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

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

data PagesInsert Source #

Add a page.

See: pagesInsert smart constructor.

Instances
Eq PagesInsert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Pages.Insert

Data PagesInsert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Pages.Insert

Methods

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

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

toConstr :: PagesInsert -> Constr #

dataTypeOf :: PagesInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PagesInsert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Pages.Insert

Generic PagesInsert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Pages.Insert

Associated Types

type Rep PagesInsert :: Type -> Type #

GoogleRequest PagesInsert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Pages.Insert

Associated Types

type Rs PagesInsert :: Type #

type Scopes PagesInsert :: [Symbol] #

type Rep PagesInsert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Pages.Insert

type Rep PagesInsert = D1 (MetaData "PagesInsert" "Network.Google.Resource.Blogger.Pages.Insert" "gogol-blogger-0.4.0-J2l0mOXVNniBwK88dTMLog" False) (C1 (MetaCons "PagesInsert'" PrefixI True) (S1 (MetaSel (Just "_piIsDraft") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_piBlogId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_piPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Page))))
type Scopes PagesInsert Source # 
Instance details

Defined in Network.Google.Resource.Blogger.Pages.Insert

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

Defined in Network.Google.Resource.Blogger.Pages.Insert

Request Lenses

piIsDraft :: Lens' PagesInsert (Maybe Bool) Source #

Whether to create the page as a draft (default: false).

piBlogId :: Lens' PagesInsert Text Source #

ID of the blog to add the page to.

piPayload :: Lens' PagesInsert Page Source #

Multipart request metadata.