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 |
Fetches the most recent threat list updates. A client can request updates for multiple lists at once.
See: Safe Browsing API Reference for safebrowsing.threatListUpdates.fetch
.
Synopsis
- type ThreatListUpdatesFetchResource = "v4" :> ("threatListUpdates:fetch" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] FetchThreatListUpdatesRequest :> Post '[JSON] FetchThreatListUpdatesResponse))))))))
- threatListUpdatesFetch :: FetchThreatListUpdatesRequest -> ThreatListUpdatesFetch
- data ThreatListUpdatesFetch
- tlufXgafv :: Lens' ThreatListUpdatesFetch (Maybe Xgafv)
- tlufUploadProtocol :: Lens' ThreatListUpdatesFetch (Maybe Text)
- tlufAccessToken :: Lens' ThreatListUpdatesFetch (Maybe Text)
- tlufUploadType :: Lens' ThreatListUpdatesFetch (Maybe Text)
- tlufPayload :: Lens' ThreatListUpdatesFetch FetchThreatListUpdatesRequest
- tlufCallback :: Lens' ThreatListUpdatesFetch (Maybe Text)
REST Resource
type ThreatListUpdatesFetchResource = "v4" :> ("threatListUpdates:fetch" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] FetchThreatListUpdatesRequest :> Post '[JSON] FetchThreatListUpdatesResponse)))))))) Source #
A resource alias for safebrowsing.threatListUpdates.fetch
method which the
ThreatListUpdatesFetch
request conforms to.
Creating a Request
threatListUpdatesFetch Source #
Creates a value of ThreatListUpdatesFetch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ThreatListUpdatesFetch Source #
Fetches the most recent threat list updates. A client can request updates for multiple lists at once.
See: threatListUpdatesFetch
smart constructor.
Instances
Request Lenses
tlufUploadProtocol :: Lens' ThreatListUpdatesFetch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
tlufAccessToken :: Lens' ThreatListUpdatesFetch (Maybe Text) Source #
OAuth access token.
tlufUploadType :: Lens' ThreatListUpdatesFetch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
tlufPayload :: Lens' ThreatListUpdatesFetch FetchThreatListUpdatesRequest Source #
Multipart request metadata.
tlufCallback :: Lens' ThreatListUpdatesFetch (Maybe Text) Source #
JSONP