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 |
Reports a Safe Browsing threat list hit to Google. Only projects with TRUSTED_REPORTER visibility can use this method.
See: Safe Browsing API Reference for safebrowsing.threatHits.create
.
Synopsis
- type ThreatHitsCreateResource = "v4" :> ("threatHits" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ThreatHit :> Post '[JSON] Empty))))))))
- threatHitsCreate :: ThreatHit -> ThreatHitsCreate
- data ThreatHitsCreate
- thcXgafv :: Lens' ThreatHitsCreate (Maybe Xgafv)
- thcUploadProtocol :: Lens' ThreatHitsCreate (Maybe Text)
- thcAccessToken :: Lens' ThreatHitsCreate (Maybe Text)
- thcUploadType :: Lens' ThreatHitsCreate (Maybe Text)
- thcPayload :: Lens' ThreatHitsCreate ThreatHit
- thcCallback :: Lens' ThreatHitsCreate (Maybe Text)
REST Resource
type ThreatHitsCreateResource = "v4" :> ("threatHits" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ThreatHit :> Post '[JSON] Empty)))))))) Source #
A resource alias for safebrowsing.threatHits.create
method which the
ThreatHitsCreate
request conforms to.
Creating a Request
Creates a value of ThreatHitsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ThreatHitsCreate Source #
Reports a Safe Browsing threat list hit to Google. Only projects with TRUSTED_REPORTER visibility can use this method.
See: threatHitsCreate
smart constructor.
Instances
Request Lenses
thcUploadProtocol :: Lens' ThreatHitsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
thcAccessToken :: Lens' ThreatHitsCreate (Maybe Text) Source #
OAuth access token.
thcUploadType :: Lens' ThreatHitsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
thcPayload :: Lens' ThreatHitsCreate ThreatHit Source #
Multipart request metadata.
thcCallback :: Lens' ThreatHitsCreate (Maybe Text) Source #
JSONP