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.FactCheckTools.Pages.Update
Description
Update for all `ClaimReview` markup on a page Note that this is a full update. To retain the existing `ClaimReview` markup on a page, first perform a Get operation, then modify the returned markup, and finally call Update with the entire `ClaimReview` markup as the body.
See: Fact Check Tools API Reference for factchecktools.pages.update
.
Synopsis
- type PagesUpdateResource = "v1alpha1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage :> Put '[JSON] GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage))))))))
- pagesUpdate :: GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage -> Text -> PagesUpdate
- data PagesUpdate
- puXgafv :: Lens' PagesUpdate (Maybe Xgafv)
- puUploadProtocol :: Lens' PagesUpdate (Maybe Text)
- puAccessToken :: Lens' PagesUpdate (Maybe Text)
- puUploadType :: Lens' PagesUpdate (Maybe Text)
- puPayload :: Lens' PagesUpdate GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage
- puName :: Lens' PagesUpdate Text
- puCallback :: Lens' PagesUpdate (Maybe Text)
REST Resource
type PagesUpdateResource = "v1alpha1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage :> Put '[JSON] GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage)))))))) Source #
A resource alias for factchecktools.pages.update
method which the
PagesUpdate
request conforms to.
Creating a Request
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 for all `ClaimReview` markup on a page Note that this is a full update. To retain the existing `ClaimReview` markup on a page, first perform a Get operation, then modify the returned markup, and finally call Update with the entire `ClaimReview` markup as the body.
See: pagesUpdate
smart constructor.
Instances
Request Lenses
puUploadProtocol :: Lens' PagesUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
puAccessToken :: Lens' PagesUpdate (Maybe Text) Source #
OAuth access token.
puUploadType :: Lens' PagesUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
puPayload :: Lens' PagesUpdate GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage Source #
Multipart request metadata.
puName :: Lens' PagesUpdate Text Source #
The name of this `ClaimReview` markup page resource, in the form of `pages/{page_id}`. Except for update requests, this field is output-only and should not be set by the user.
puCallback :: Lens' PagesUpdate (Maybe Text) Source #
JSONP