| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.Blogger.Pages.Update
Description
Update a page.
See: Blogger API Reference for blogger.pages.update.
Synopsis
- type PagesUpdateResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("pages" :> (Capture "pageId" Text :> (QueryParam "revert" Bool :> (QueryParam "publish" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Page :> Put '[JSON] Page)))))))))
- pagesUpdate :: Text -> Text -> Page -> PagesUpdate
- data PagesUpdate
- puuBlogId :: Lens' PagesUpdate Text
- puuPageId :: Lens' PagesUpdate Text
- puuPayload :: Lens' PagesUpdate Page
- puuRevert :: Lens' PagesUpdate (Maybe Bool)
- puuPublish :: Lens' PagesUpdate (Maybe Bool)
REST Resource
type PagesUpdateResource = "blogger" :> ("v3" :> ("blogs" :> (Capture "blogId" Text :> ("pages" :> (Capture "pageId" Text :> (QueryParam "revert" Bool :> (QueryParam "publish" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Page :> Put '[JSON] Page))))))))) Source #
A resource alias for blogger.pages.update method which the
PagesUpdate request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> Page | |
| -> PagesUpdate |
Creates a value of PagesUpdate with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PagesUpdate Source #
Update a page.
See: pagesUpdate smart constructor.
Instances
Request Lenses
puuPayload :: Lens' PagesUpdate Page Source #
Multipart request metadata.
puuRevert :: Lens' PagesUpdate (Maybe Bool) Source #
Whether a revert action should be performed when the page is updated (default: false).
puuPublish :: Lens' PagesUpdate (Maybe Bool) Source #
Whether a publish action should be performed when the page is updated (default: false).