gogol-safebrowsing-0.4.0: Google Safe Browsing 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.SafeBrowsing.ThreatHits.Create

Contents

Description

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

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

threatHitsCreate Source #

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
Eq ThreatHitsCreate Source # 
Instance details

Defined in Network.Google.Resource.SafeBrowsing.ThreatHits.Create

Data ThreatHitsCreate Source # 
Instance details

Defined in Network.Google.Resource.SafeBrowsing.ThreatHits.Create

Methods

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

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

toConstr :: ThreatHitsCreate -> Constr #

dataTypeOf :: ThreatHitsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ThreatHitsCreate Source # 
Instance details

Defined in Network.Google.Resource.SafeBrowsing.ThreatHits.Create

Generic ThreatHitsCreate Source # 
Instance details

Defined in Network.Google.Resource.SafeBrowsing.ThreatHits.Create

Associated Types

type Rep ThreatHitsCreate :: Type -> Type #

GoogleRequest ThreatHitsCreate Source # 
Instance details

Defined in Network.Google.Resource.SafeBrowsing.ThreatHits.Create

Associated Types

type Rs ThreatHitsCreate :: Type #

type Scopes ThreatHitsCreate :: [Symbol] #

type Rep ThreatHitsCreate Source # 
Instance details

Defined in Network.Google.Resource.SafeBrowsing.ThreatHits.Create

type Rep ThreatHitsCreate = D1 (MetaData "ThreatHitsCreate" "Network.Google.Resource.SafeBrowsing.ThreatHits.Create" "gogol-safebrowsing-0.4.0-Be8G46BxPxoBbY0T3ixw2y" False) (C1 (MetaCons "ThreatHitsCreate'" PrefixI True) ((S1 (MetaSel (Just "_thcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_thcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_thcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_thcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_thcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ThreatHit) :*: S1 (MetaSel (Just "_thcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ThreatHitsCreate Source # 
Instance details

Defined in Network.Google.Resource.SafeBrowsing.ThreatHits.Create

type Scopes ThreatHitsCreate = ([] :: [Symbol])
type Rs ThreatHitsCreate Source # 
Instance details

Defined in Network.Google.Resource.SafeBrowsing.ThreatHits.Create

Request Lenses

thcUploadProtocol :: Lens' ThreatHitsCreate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

thcUploadType :: Lens' ThreatHitsCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

thcPayload :: Lens' ThreatHitsCreate ThreatHit Source #

Multipart request metadata.