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 |
- Service Configuration
- ListUpdateRequestThreatType
- ListUpdateResponsePlatformType
- ThreatEntryMetadata
- UserInfo
- ThreatMatchThreatEntryType
- ThreatMatchPlatformType
- Checksum
- FindThreatMatchesResponse
- ThreatListDescriptorThreatEntryType
- Empty
- ListUpdateRequestPlatformType
- ThreatListDescriptorPlatformType
- ThreatInfo
- ListUpdateResponseResponseType
- ThreatSourceType
- ThreatHit
- FetchThreatListUpdatesRequest
- FindFullHashesRequest
- ThreatMatchThreatType
- ThreatEntrySetCompressionType
- Constraints
- RiceDeltaEncoding
- ListThreatListsResponse
- ThreatListDescriptorThreatType
- ThreatHitPlatformType
- ThreatListDescriptor
- ClientInfo
- FindThreatMatchesRequest
- Xgafv
- ListUpdateRequest
- ListUpdateResponseThreatEntryType
- ThreatEntry
- ThreatMatch
- ThreatHitThreatType
- ListUpdateRequestThreatEntryType
- RawHashes
- ListUpdateResponse
- ThreatEntrySet
- RawIndices
- ThreatSource
- ListUpdateResponseThreatType
- FindFullHashesResponse
- MetadataEntry
- FetchThreatListUpdatesResponse
Synopsis
- safeBrowsingService :: ServiceConfig
- data ListUpdateRequestThreatType
- data ListUpdateResponsePlatformType
- data ThreatEntryMetadata
- threatEntryMetadata :: ThreatEntryMetadata
- temEntries :: Lens' ThreatEntryMetadata [MetadataEntry]
- data UserInfo
- userInfo :: UserInfo
- uiRegionCode :: Lens' UserInfo (Maybe Text)
- uiUserId :: Lens' UserInfo (Maybe ByteString)
- data ThreatMatchThreatEntryType
- data ThreatMatchPlatformType
- data Checksum
- checksum :: Checksum
- cSha256 :: Lens' Checksum (Maybe ByteString)
- data FindThreatMatchesResponse
- findThreatMatchesResponse :: FindThreatMatchesResponse
- ftmrMatches :: Lens' FindThreatMatchesResponse [ThreatMatch]
- data ThreatListDescriptorThreatEntryType
- data Empty
- empty :: Empty
- data ListUpdateRequestPlatformType
- data ThreatListDescriptorPlatformType
- data ThreatInfo
- threatInfo :: ThreatInfo
- tiThreatEntries :: Lens' ThreatInfo [ThreatEntry]
- tiThreatTypes :: Lens' ThreatInfo [Text]
- tiPlatformTypes :: Lens' ThreatInfo [Text]
- tiThreatEntryTypes :: Lens' ThreatInfo [Text]
- data ListUpdateResponseResponseType
- data ThreatSourceType
- data ThreatHit
- threatHit :: ThreatHit
- thUserInfo :: Lens' ThreatHit (Maybe UserInfo)
- thThreatType :: Lens' ThreatHit (Maybe ThreatHitThreatType)
- thResources :: Lens' ThreatHit [ThreatSource]
- thEntry :: Lens' ThreatHit (Maybe ThreatEntry)
- thClientInfo :: Lens' ThreatHit (Maybe ClientInfo)
- thPlatformType :: Lens' ThreatHit (Maybe ThreatHitPlatformType)
- data FetchThreatListUpdatesRequest
- fetchThreatListUpdatesRequest :: FetchThreatListUpdatesRequest
- ftlurListUpdateRequests :: Lens' FetchThreatListUpdatesRequest [ListUpdateRequest]
- ftlurClient :: Lens' FetchThreatListUpdatesRequest (Maybe ClientInfo)
- data FindFullHashesRequest
- findFullHashesRequest :: FindFullHashesRequest
- ffhrThreatInfo :: Lens' FindFullHashesRequest (Maybe ThreatInfo)
- ffhrAPIClient :: Lens' FindFullHashesRequest (Maybe ClientInfo)
- ffhrClientStates :: Lens' FindFullHashesRequest [ByteString]
- ffhrClient :: Lens' FindFullHashesRequest (Maybe ClientInfo)
- data ThreatMatchThreatType
- = TMTTThreatTypeUnspecified
- | TMTTMalware
- | TMTTSocialEngineering
- | TMTTUnwantedSoftware
- | TMTTPotentiallyHarmfulApplication
- | TMTTSocialEngineeringInternal
- | TMTTAPIAbuse
- | TMTTMaliciousBinary
- | TMTTCsdWhiteList
- | TMTTCsdDownloadWhiteList
- | TMTTClientIncident
- | TMTTClientIncidentWhiteList
- | TMTTAPKMalwareOffline
- | TMTTSubResourceFilter
- | TMTTSuspicious
- | TMTTTrickToBill
- data ThreatEntrySetCompressionType
- data Constraints
- constraints :: Constraints
- cMaxUpdateEntries :: Lens' Constraints (Maybe Int32)
- cDeviceLocation :: Lens' Constraints (Maybe Text)
- cLanguage :: Lens' Constraints (Maybe Text)
- cRegion :: Lens' Constraints (Maybe Text)
- cSupportedCompressions :: Lens' Constraints [Text]
- cMaxDatabaseEntries :: Lens' Constraints (Maybe Int32)
- data RiceDeltaEncoding
- riceDeltaEncoding :: RiceDeltaEncoding
- rdeFirstValue :: Lens' RiceDeltaEncoding (Maybe Int64)
- rdeRiceParameter :: Lens' RiceDeltaEncoding (Maybe Int32)
- rdeNumEntries :: Lens' RiceDeltaEncoding (Maybe Int32)
- rdeEncodedData :: Lens' RiceDeltaEncoding (Maybe ByteString)
- data ListThreatListsResponse
- listThreatListsResponse :: ListThreatListsResponse
- ltlrThreatLists :: Lens' ListThreatListsResponse [ThreatListDescriptor]
- data ThreatListDescriptorThreatType
- = TLDTTThreatTypeUnspecified
- | TLDTTMalware
- | TLDTTSocialEngineering
- | TLDTTUnwantedSoftware
- | TLDTTPotentiallyHarmfulApplication
- | TLDTTSocialEngineeringInternal
- | TLDTTAPIAbuse
- | TLDTTMaliciousBinary
- | TLDTTCsdWhiteList
- | TLDTTCsdDownloadWhiteList
- | TLDTTClientIncident
- | TLDTTClientIncidentWhiteList
- | TLDTTAPKMalwareOffline
- | TLDTTSubResourceFilter
- | TLDTTSuspicious
- | TLDTTTrickToBill
- data ThreatHitPlatformType
- data ThreatListDescriptor
- threatListDescriptor :: ThreatListDescriptor
- tldThreatEntryType :: Lens' ThreatListDescriptor (Maybe ThreatListDescriptorThreatEntryType)
- tldThreatType :: Lens' ThreatListDescriptor (Maybe ThreatListDescriptorThreatType)
- tldPlatformType :: Lens' ThreatListDescriptor (Maybe ThreatListDescriptorPlatformType)
- data ClientInfo
- clientInfo :: ClientInfo
- ciClientId :: Lens' ClientInfo (Maybe Text)
- ciClientVersion :: Lens' ClientInfo (Maybe Text)
- data FindThreatMatchesRequest
- findThreatMatchesRequest :: FindThreatMatchesRequest
- ftmrThreatInfo :: Lens' FindThreatMatchesRequest (Maybe ThreatInfo)
- ftmrClient :: Lens' FindThreatMatchesRequest (Maybe ClientInfo)
- data Xgafv
- data ListUpdateRequest
- listUpdateRequest :: ListUpdateRequest
- lurState :: Lens' ListUpdateRequest (Maybe ByteString)
- lurThreatEntryType :: Lens' ListUpdateRequest (Maybe ListUpdateRequestThreatEntryType)
- lurConstraints :: Lens' ListUpdateRequest (Maybe Constraints)
- lurThreatType :: Lens' ListUpdateRequest (Maybe ListUpdateRequestThreatType)
- lurPlatformType :: Lens' ListUpdateRequest (Maybe ListUpdateRequestPlatformType)
- data ListUpdateResponseThreatEntryType
- data ThreatEntry
- threatEntry :: ThreatEntry
- teHash :: Lens' ThreatEntry (Maybe ByteString)
- teURL :: Lens' ThreatEntry (Maybe Text)
- teDigest :: Lens' ThreatEntry (Maybe ByteString)
- data ThreatMatch
- threatMatch :: ThreatMatch
- tmThreatEntryMetadata :: Lens' ThreatMatch (Maybe ThreatEntryMetadata)
- tmThreatEntryType :: Lens' ThreatMatch (Maybe ThreatMatchThreatEntryType)
- tmThreatType :: Lens' ThreatMatch (Maybe ThreatMatchThreatType)
- tmPlatformType :: Lens' ThreatMatch (Maybe ThreatMatchPlatformType)
- tmCacheDuration :: Lens' ThreatMatch (Maybe Scientific)
- tmThreat :: Lens' ThreatMatch (Maybe ThreatEntry)
- data ThreatHitThreatType
- = THTTThreatTypeUnspecified
- | THTTMalware
- | THTTSocialEngineering
- | THTTUnwantedSoftware
- | THTTPotentiallyHarmfulApplication
- | THTTSocialEngineeringInternal
- | THTTAPIAbuse
- | THTTMaliciousBinary
- | THTTCsdWhiteList
- | THTTCsdDownloadWhiteList
- | THTTClientIncident
- | THTTClientIncidentWhiteList
- | THTTAPKMalwareOffline
- | THTTSubResourceFilter
- | THTTSuspicious
- | THTTTrickToBill
- data ListUpdateRequestThreatEntryType
- data RawHashes
- rawHashes :: RawHashes
- rhPrefixSize :: Lens' RawHashes (Maybe Int32)
- rhRawHashes :: Lens' RawHashes (Maybe ByteString)
- data ListUpdateResponse
- listUpdateResponse :: ListUpdateResponse
- lAdditions :: Lens' ListUpdateResponse [ThreatEntrySet]
- lThreatEntryType :: Lens' ListUpdateResponse (Maybe ListUpdateResponseThreatEntryType)
- lChecksum :: Lens' ListUpdateResponse (Maybe Checksum)
- lThreatType :: Lens' ListUpdateResponse (Maybe ListUpdateResponseThreatType)
- lPlatformType :: Lens' ListUpdateResponse (Maybe ListUpdateResponsePlatformType)
- lNewClientState :: Lens' ListUpdateResponse (Maybe ByteString)
- lRemovals :: Lens' ListUpdateResponse [ThreatEntrySet]
- lResponseType :: Lens' ListUpdateResponse (Maybe ListUpdateResponseResponseType)
- data ThreatEntrySet
- threatEntrySet :: ThreatEntrySet
- tesRiceHashes :: Lens' ThreatEntrySet (Maybe RiceDeltaEncoding)
- tesRiceIndices :: Lens' ThreatEntrySet (Maybe RiceDeltaEncoding)
- tesRawHashes :: Lens' ThreatEntrySet (Maybe RawHashes)
- tesRawIndices :: Lens' ThreatEntrySet (Maybe RawIndices)
- tesCompressionType :: Lens' ThreatEntrySet (Maybe ThreatEntrySetCompressionType)
- data RawIndices
- rawIndices :: RawIndices
- riIndices :: Lens' RawIndices [Int32]
- data ThreatSource
- threatSource :: ThreatSource
- tsRemoteIP :: Lens' ThreatSource (Maybe Text)
- tsURL :: Lens' ThreatSource (Maybe Text)
- tsReferrer :: Lens' ThreatSource (Maybe Text)
- tsType :: Lens' ThreatSource (Maybe ThreatSourceType)
- data ListUpdateResponseThreatType
- = LURTTThreatTypeUnspecified
- | LURTTMalware
- | LURTTSocialEngineering
- | LURTTUnwantedSoftware
- | LURTTPotentiallyHarmfulApplication
- | LURTTSocialEngineeringInternal
- | LURTTAPIAbuse
- | LURTTMaliciousBinary
- | LURTTCsdWhiteList
- | LURTTCsdDownloadWhiteList
- | LURTTClientIncident
- | LURTTClientIncidentWhiteList
- | LURTTAPKMalwareOffline
- | LURTTSubResourceFilter
- | LURTTSuspicious
- | LURTTTrickToBill
- data FindFullHashesResponse
- findFullHashesResponse :: FindFullHashesResponse
- ffhrMatches :: Lens' FindFullHashesResponse [ThreatMatch]
- ffhrNegativeCacheDuration :: Lens' FindFullHashesResponse (Maybe Scientific)
- ffhrMinimumWaitDuration :: Lens' FindFullHashesResponse (Maybe Scientific)
- data MetadataEntry
- metadataEntry :: MetadataEntry
- meValue :: Lens' MetadataEntry (Maybe ByteString)
- meKey :: Lens' MetadataEntry (Maybe ByteString)
- data FetchThreatListUpdatesResponse
- fetchThreatListUpdatesResponse :: FetchThreatListUpdatesResponse
- ftlurListUpdateResponses :: Lens' FetchThreatListUpdatesResponse [ListUpdateResponse]
- ftlurMinimumWaitDuration :: Lens' FetchThreatListUpdatesResponse (Maybe Scientific)
Service Configuration
safeBrowsingService :: ServiceConfig Source #
Default request referring to version v4
of the Safe Browsing API. This contains the host and root path used as a starting point for constructing service requests.
ListUpdateRequestThreatType
data ListUpdateRequestThreatType Source #
The type of threat posed by entries present in the list.
ThreatTypeUnspecified |
|
Malware |
|
SocialEngineering |
|
UnwantedSoftware |
|
PotentiallyHarmfulApplication |
|
SocialEngineeringInternal |
|
APIAbuse |
|
MaliciousBinary |
|
CsdWhiteList |
|
CsdDownloadWhiteList |
|
ClientIncident |
|
ClientIncidentWhiteList |
|
APKMalwareOffline |
|
SubResourceFilter |
|
Suspicious |
|
TrickToBill |
|
Instances
ListUpdateResponsePlatformType
data ListUpdateResponsePlatformType Source #
The platform type for which data is returned.
PlatformTypeUnspecified |
|
Windows |
|
Linux |
|
Android |
|
OSx |
|
Ios |
|
AnyPlatform |
|
AllPlatforms |
|
Chrome |
|
Instances
ThreatEntryMetadata
data ThreatEntryMetadata Source #
The metadata associated with a specific threat entry. The client is expected to know the metadata key/value pairs associated with each threat type.
See: threatEntryMetadata
smart constructor.
Instances
threatEntryMetadata :: ThreatEntryMetadata Source #
Creates a value of ThreatEntryMetadata
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
temEntries :: Lens' ThreatEntryMetadata [MetadataEntry] Source #
The metadata entries.
UserInfo
Details about the user that encountered the threat.
See: userInfo
smart constructor.
Instances
Eq UserInfo Source # | |
Data UserInfo Source # | |
Defined in Network.Google.SafeBrowsing.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UserInfo -> c UserInfo # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UserInfo # toConstr :: UserInfo -> Constr # dataTypeOf :: UserInfo -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UserInfo) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UserInfo) # gmapT :: (forall b. Data b => b -> b) -> UserInfo -> UserInfo # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UserInfo -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UserInfo -> r # gmapQ :: (forall d. Data d => d -> u) -> UserInfo -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> UserInfo -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> UserInfo -> m UserInfo # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UserInfo -> m UserInfo # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UserInfo -> m UserInfo # | |
Show UserInfo Source # | |
Generic UserInfo Source # | |
ToJSON UserInfo Source # | |
Defined in Network.Google.SafeBrowsing.Types.Product | |
FromJSON UserInfo Source # | |
type Rep UserInfo Source # | |
Defined in Network.Google.SafeBrowsing.Types.Product type Rep UserInfo = D1 (MetaData "UserInfo" "Network.Google.SafeBrowsing.Types.Product" "gogol-safebrowsing-0.4.0-Be8G46BxPxoBbY0T3ixw2y" False) (C1 (MetaCons "UserInfo'" PrefixI True) (S1 (MetaSel (Just "_uiRegionCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_uiUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bytes)))) |
Creates a value of UserInfo
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uiRegionCode :: Lens' UserInfo (Maybe Text) Source #
The UN M.49 region code associated with the user's location.
ThreatMatchThreatEntryType
data ThreatMatchThreatEntryType Source #
The threat entry type matching this threat.
ThreatEntryTypeUnspecified |
|
URL |
|
Executable |
|
IPRange |
|
ChromeExtension |
|
Filename |
|
Cert |
|
Instances
ThreatMatchPlatformType
data ThreatMatchPlatformType Source #
The platform type matching this threat.
TMPTPlatformTypeUnspecified |
|
TMPTWindows |
|
TMPTLinux |
|
TMPTAndroid |
|
TMPTOSx |
|
TMPTIos |
|
TMPTAnyPlatform |
|
TMPTAllPlatforms |
|
TMPTChrome |
|
Instances
Checksum
The expected state of a client's local database.
See: checksum
smart constructor.
Instances
Eq Checksum Source # | |
Data Checksum Source # | |
Defined in Network.Google.SafeBrowsing.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Checksum -> c Checksum # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Checksum # toConstr :: Checksum -> Constr # dataTypeOf :: Checksum -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Checksum) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Checksum) # gmapT :: (forall b. Data b => b -> b) -> Checksum -> Checksum # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Checksum -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Checksum -> r # gmapQ :: (forall d. Data d => d -> u) -> Checksum -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Checksum -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Checksum -> m Checksum # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Checksum -> m Checksum # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Checksum -> m Checksum # | |
Show Checksum Source # | |
Generic Checksum Source # | |
ToJSON Checksum Source # | |
Defined in Network.Google.SafeBrowsing.Types.Product | |
FromJSON Checksum Source # | |
type Rep Checksum Source # | |
Defined in Network.Google.SafeBrowsing.Types.Product |
cSha256 :: Lens' Checksum (Maybe ByteString) Source #
The SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database.
FindThreatMatchesResponse
data FindThreatMatchesResponse Source #
Instances
findThreatMatchesResponse :: FindThreatMatchesResponse Source #
Creates a value of FindThreatMatchesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ftmrMatches :: Lens' FindThreatMatchesResponse [ThreatMatch] Source #
The threat list matches.
ThreatListDescriptorThreatEntryType
data ThreatListDescriptorThreatEntryType Source #
The entry types contained in the list.
TLDTETThreatEntryTypeUnspecified |
|
TLDTETURL |
|
TLDTETExecutable |
|
TLDTETIPRange |
|
TLDTETChromeExtension |
|
TLDTETFilename |
|
TLDTETCert |
|
Instances
Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
See: empty
smart constructor.
Instances
Eq Empty Source # | |
Data Empty Source # | |
Defined in Network.Google.SafeBrowsing.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Empty -> c Empty # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Empty # dataTypeOf :: Empty -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Empty) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Empty) # gmapT :: (forall b. Data b => b -> b) -> Empty -> Empty # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Empty -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Empty -> r # gmapQ :: (forall d. Data d => d -> u) -> Empty -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Empty -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Empty -> m Empty # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Empty -> m Empty # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Empty -> m Empty # | |
Show Empty Source # | |
Generic Empty Source # | |
ToJSON Empty Source # | |
Defined in Network.Google.SafeBrowsing.Types.Product | |
FromJSON Empty Source # | |
type Rep Empty Source # | |
ListUpdateRequestPlatformType
data ListUpdateRequestPlatformType Source #
The type of platform at risk by entries present in the list.
LURPTPlatformTypeUnspecified |
|
LURPTWindows |
|
LURPTLinux |
|
LURPTAndroid |
|
LURPTOSx |
|
LURPTIos |
|
LURPTAnyPlatform |
|
LURPTAllPlatforms |
|
LURPTChrome |
|
Instances
ThreatListDescriptorPlatformType
data ThreatListDescriptorPlatformType Source #
The platform type targeted by the list's entries.
TLDPTPlatformTypeUnspecified |
|
TLDPTWindows |
|
TLDPTLinux |
|
TLDPTAndroid |
|
TLDPTOSx |
|
TLDPTIos |
|
TLDPTAnyPlatform |
|
TLDPTAllPlatforms |
|
TLDPTChrome |
|
Instances
ThreatInfo
data ThreatInfo Source #
The information regarding one or more threats that a client submits when checking for matches in threat lists.
See: threatInfo
smart constructor.
Instances
threatInfo :: ThreatInfo Source #
Creates a value of ThreatInfo
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tiThreatEntries :: Lens' ThreatInfo [ThreatEntry] Source #
The threat entries to be checked.
tiThreatTypes :: Lens' ThreatInfo [Text] Source #
The threat types to be checked.
tiPlatformTypes :: Lens' ThreatInfo [Text] Source #
The platform types to be checked.
tiThreatEntryTypes :: Lens' ThreatInfo [Text] Source #
The entry types to be checked.
ListUpdateResponseResponseType
data ListUpdateResponseResponseType Source #
The type of response. This may indicate that an action is required by the client when the response is received.
ResponseTypeUnspecified |
|
PartialUpdate |
|
FullUpdate |
|
Instances
ThreatSourceType
data ThreatSourceType Source #
The type of source reported.
ThreatSourceTypeUnspecified |
|
MatchingURL |
|
TabURL |
|
TabRedirect |
|
TabResource |
|
Instances
ThreatHit
Instances
threatHit :: ThreatHit Source #
Creates a value of ThreatHit
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
thUserInfo :: Lens' ThreatHit (Maybe UserInfo) Source #
Details about the user that encountered the threat.
thThreatType :: Lens' ThreatHit (Maybe ThreatHitThreatType) Source #
The threat type reported.
thResources :: Lens' ThreatHit [ThreatSource] Source #
The resources related to the threat hit.
thEntry :: Lens' ThreatHit (Maybe ThreatEntry) Source #
The threat entry responsible for the hit. Full hash should be reported for hash-based hits.
thClientInfo :: Lens' ThreatHit (Maybe ClientInfo) Source #
Client-reported identification.
thPlatformType :: Lens' ThreatHit (Maybe ThreatHitPlatformType) Source #
The platform type reported.
FetchThreatListUpdatesRequest
data FetchThreatListUpdatesRequest Source #
Describes a Safe Browsing API update request. Clients can request updates for multiple lists in a single request. NOTE: Field index 2 is unused. NEXT: 5
See: fetchThreatListUpdatesRequest
smart constructor.
Instances
fetchThreatListUpdatesRequest :: FetchThreatListUpdatesRequest Source #
Creates a value of FetchThreatListUpdatesRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ftlurListUpdateRequests :: Lens' FetchThreatListUpdatesRequest [ListUpdateRequest] Source #
The requested threat list updates.
ftlurClient :: Lens' FetchThreatListUpdatesRequest (Maybe ClientInfo) Source #
The client metadata.
FindFullHashesRequest
data FindFullHashesRequest Source #
Request to return full hashes matched by the provided hash prefixes.
See: findFullHashesRequest
smart constructor.
Instances
findFullHashesRequest :: FindFullHashesRequest Source #
Creates a value of FindFullHashesRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ffhrThreatInfo :: Lens' FindFullHashesRequest (Maybe ThreatInfo) Source #
The lists and hashes to be checked.
ffhrAPIClient :: Lens' FindFullHashesRequest (Maybe ClientInfo) Source #
Client metadata associated with callers of higher-level APIs built on top of the client's implementation.
ffhrClientStates :: Lens' FindFullHashesRequest [ByteString] Source #
The current client states for each of the client's local threat lists.
ffhrClient :: Lens' FindFullHashesRequest (Maybe ClientInfo) Source #
The client metadata.
ThreatMatchThreatType
data ThreatMatchThreatType Source #
The threat type matching this threat.
TMTTThreatTypeUnspecified |
|
TMTTMalware |
|
TMTTSocialEngineering |
|
TMTTUnwantedSoftware |
|
TMTTPotentiallyHarmfulApplication |
|
TMTTSocialEngineeringInternal |
|
TMTTAPIAbuse |
|
TMTTMaliciousBinary |
|
TMTTCsdWhiteList |
|
TMTTCsdDownloadWhiteList |
|
TMTTClientIncident |
|
TMTTClientIncidentWhiteList |
|
TMTTAPKMalwareOffline |
|
TMTTSubResourceFilter |
|
TMTTSuspicious |
|
TMTTTrickToBill |
|
Instances
ThreatEntrySetCompressionType
data ThreatEntrySetCompressionType Source #
The compression type for the entries in this set.
CompressionTypeUnspecified |
|
Raw |
|
Rice |
|
Instances
Constraints
data Constraints Source #
The constraints for this update.
See: constraints
smart constructor.
Instances
constraints :: Constraints Source #
Creates a value of Constraints
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cMaxUpdateEntries :: Lens' Constraints (Maybe Int32) Source #
The maximum size in number of entries. The update will not contain more entries than this value. This should be a power of 2 between 2**10 and 2**20. If zero, no update size limit is set.
cDeviceLocation :: Lens' Constraints (Maybe Text) Source #
A client's physical location, expressed as a ISO 31166-1 alpha-2 region code.
cLanguage :: Lens' Constraints (Maybe Text) Source #
Requests the lists for a specific language. Expects ISO 639 alpha-2 format.
cRegion :: Lens' Constraints (Maybe Text) Source #
Requests the list for a specific geographic location. If not set the server may pick that value based on the user's IP address. Expects ISO 3166-1 alpha-2 format.
cSupportedCompressions :: Lens' Constraints [Text] Source #
The compression types supported by the client.
cMaxDatabaseEntries :: Lens' Constraints (Maybe Int32) Source #
Sets the maximum number of entries that the client is willing to have in the local database. This should be a power of 2 between 2**10 and 2**20. If zero, no database size limit is set.
RiceDeltaEncoding
data RiceDeltaEncoding Source #
The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or compressed removal indices.
See: riceDeltaEncoding
smart constructor.
Instances
riceDeltaEncoding :: RiceDeltaEncoding Source #
Creates a value of RiceDeltaEncoding
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rdeFirstValue :: Lens' RiceDeltaEncoding (Maybe Int64) Source #
The offset of the first entry in the encoded data, or, if only a single integer was encoded, that single integer's value. If the field is empty or missing, assume zero.
rdeRiceParameter :: Lens' RiceDeltaEncoding (Maybe Int32) Source #
The Golomb-Rice parameter, which is a number between 2 and 28. This field is missing (that is, zero) if `num_entries` is zero.
rdeNumEntries :: Lens' RiceDeltaEncoding (Maybe Int32) Source #
The number of entries that are delta encoded in the encoded data. If only a single integer was encoded, this will be zero and the single value will be stored in `first_value`.
rdeEncodedData :: Lens' RiceDeltaEncoding (Maybe ByteString) Source #
The encoded deltas that are encoded using the Golomb-Rice coder.
ListThreatListsResponse
data ListThreatListsResponse Source #
Instances
listThreatListsResponse :: ListThreatListsResponse Source #
Creates a value of ListThreatListsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltlrThreatLists :: Lens' ListThreatListsResponse [ThreatListDescriptor] Source #
The lists available for download by the client.
ThreatListDescriptorThreatType
data ThreatListDescriptorThreatType Source #
The threat type posed by the list's entries.
TLDTTThreatTypeUnspecified |
|
TLDTTMalware |
|
TLDTTSocialEngineering |
|
TLDTTUnwantedSoftware |
|
TLDTTPotentiallyHarmfulApplication |
|
TLDTTSocialEngineeringInternal |
|
TLDTTAPIAbuse |
|
TLDTTMaliciousBinary |
|
TLDTTCsdWhiteList |
|
TLDTTCsdDownloadWhiteList |
|
TLDTTClientIncident |
|
TLDTTClientIncidentWhiteList |
|
TLDTTAPKMalwareOffline |
|
TLDTTSubResourceFilter |
|
TLDTTSuspicious |
|
TLDTTTrickToBill |
|
Instances
ThreatHitPlatformType
data ThreatHitPlatformType Source #
The platform type reported.
THPTPlatformTypeUnspecified |
|
THPTWindows |
|
THPTLinux |
|
THPTAndroid |
|
THPTOSx |
|
THPTIos |
|
THPTAnyPlatform |
|
THPTAllPlatforms |
|
THPTChrome |
|
Instances
ThreatListDescriptor
data ThreatListDescriptor Source #
Describes an individual threat list. A list is defined by three parameters: the type of threat posed, the type of platform targeted by the threat, and the type of entries in the list.
See: threatListDescriptor
smart constructor.
Instances
threatListDescriptor :: ThreatListDescriptor Source #
Creates a value of ThreatListDescriptor
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tldThreatEntryType :: Lens' ThreatListDescriptor (Maybe ThreatListDescriptorThreatEntryType) Source #
The entry types contained in the list.
tldThreatType :: Lens' ThreatListDescriptor (Maybe ThreatListDescriptorThreatType) Source #
The threat type posed by the list's entries.
tldPlatformType :: Lens' ThreatListDescriptor (Maybe ThreatListDescriptorPlatformType) Source #
The platform type targeted by the list's entries.
ClientInfo
data ClientInfo Source #
The client metadata associated with Safe Browsing API requests.
See: clientInfo
smart constructor.
Instances
clientInfo :: ClientInfo Source #
Creates a value of ClientInfo
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ciClientId :: Lens' ClientInfo (Maybe Text) Source #
A client ID that (hopefully) uniquely identifies the client implementation of the Safe Browsing API.
ciClientVersion :: Lens' ClientInfo (Maybe Text) Source #
The version of the client implementation.
FindThreatMatchesRequest
data FindThreatMatchesRequest Source #
Request to check entries against lists.
See: findThreatMatchesRequest
smart constructor.
Instances
findThreatMatchesRequest :: FindThreatMatchesRequest Source #
Creates a value of FindThreatMatchesRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ftmrThreatInfo :: Lens' FindThreatMatchesRequest (Maybe ThreatInfo) Source #
The lists and entries to be checked for matches.
ftmrClient :: Lens' FindThreatMatchesRequest (Maybe ClientInfo) Source #
The client metadata.
Xgafv
V1 error format.
Instances
ListUpdateRequest
data ListUpdateRequest Source #
A single list update request.
See: listUpdateRequest
smart constructor.
Instances
listUpdateRequest :: ListUpdateRequest Source #
Creates a value of ListUpdateRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lurState :: Lens' ListUpdateRequest (Maybe ByteString) Source #
The current state of the client for the requested list (the encrypted client state that was received from the last successful list update).
lurThreatEntryType :: Lens' ListUpdateRequest (Maybe ListUpdateRequestThreatEntryType) Source #
The types of entries present in the list.
lurConstraints :: Lens' ListUpdateRequest (Maybe Constraints) Source #
The constraints associated with this request.
lurThreatType :: Lens' ListUpdateRequest (Maybe ListUpdateRequestThreatType) Source #
The type of threat posed by entries present in the list.
lurPlatformType :: Lens' ListUpdateRequest (Maybe ListUpdateRequestPlatformType) Source #
The type of platform at risk by entries present in the list.
ListUpdateResponseThreatEntryType
data ListUpdateResponseThreatEntryType Source #
The format of the threats.
LURTETThreatEntryTypeUnspecified |
|
LURTETURL |
|
LURTETExecutable |
|
LURTETIPRange |
|
LURTETChromeExtension |
|
LURTETFilename |
|
LURTETCert |
|
Instances
ThreatEntry
data ThreatEntry Source #
An individual threat; for example, a malicious URL or its hash representation. Only one of these fields should be set.
See: threatEntry
smart constructor.
Instances
threatEntry :: ThreatEntry Source #
Creates a value of ThreatEntry
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
teHash :: Lens' ThreatEntry (Maybe ByteString) Source #
A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.
teDigest :: Lens' ThreatEntry (Maybe ByteString) Source #
The digest of an executable in SHA256 format. The API supports both binary and hex digests. For JSON requests, digests are base64-encoded.
ThreatMatch
data ThreatMatch Source #
A match when checking a threat entry in the Safe Browsing threat lists.
See: threatMatch
smart constructor.
Instances
threatMatch :: ThreatMatch Source #
Creates a value of ThreatMatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tmThreatEntryMetadata :: Lens' ThreatMatch (Maybe ThreatEntryMetadata) Source #
Optional metadata associated with this threat.
tmThreatEntryType :: Lens' ThreatMatch (Maybe ThreatMatchThreatEntryType) Source #
The threat entry type matching this threat.
tmThreatType :: Lens' ThreatMatch (Maybe ThreatMatchThreatType) Source #
The threat type matching this threat.
tmPlatformType :: Lens' ThreatMatch (Maybe ThreatMatchPlatformType) Source #
The platform type matching this threat.
tmCacheDuration :: Lens' ThreatMatch (Maybe Scientific) Source #
The cache lifetime for the returned match. Clients must not cache this response for more than this duration to avoid false positives.
tmThreat :: Lens' ThreatMatch (Maybe ThreatEntry) Source #
The threat matching this threat.
ThreatHitThreatType
data ThreatHitThreatType Source #
The threat type reported.
THTTThreatTypeUnspecified |
|
THTTMalware |
|
THTTSocialEngineering |
|
THTTUnwantedSoftware |
|
THTTPotentiallyHarmfulApplication |
|
THTTSocialEngineeringInternal |
|
THTTAPIAbuse |
|
THTTMaliciousBinary |
|
THTTCsdWhiteList |
|
THTTCsdDownloadWhiteList |
|
THTTClientIncident |
|
THTTClientIncidentWhiteList |
|
THTTAPKMalwareOffline |
|
THTTSubResourceFilter |
|
THTTSuspicious |
|
THTTTrickToBill |
|
Instances
ListUpdateRequestThreatEntryType
data ListUpdateRequestThreatEntryType Source #
The types of entries present in the list.
LThreatEntryTypeUnspecified |
|
LURL |
|
LExecutable |
|
LIPRange |
|
LChromeExtension |
|
LFilename |
|
LCert |
|
Instances
RawHashes
The uncompressed threat entries in hash format of a particular prefix length. Hashes can be anywhere from 4 to 32 bytes in size. A large majority are 4 bytes, but some hashes are lengthened if they collide with the hash of a popular URL. Used for sending ThreatEntrySet to clients that do not support compression, or when sending non-4-byte hashes to clients that do support compression.
See: rawHashes
smart constructor.
Instances
Eq RawHashes Source # | |
Data RawHashes Source # | |
Defined in Network.Google.SafeBrowsing.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RawHashes -> c RawHashes # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RawHashes # toConstr :: RawHashes -> Constr # dataTypeOf :: RawHashes -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RawHashes) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RawHashes) # gmapT :: (forall b. Data b => b -> b) -> RawHashes -> RawHashes # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RawHashes -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RawHashes -> r # gmapQ :: (forall d. Data d => d -> u) -> RawHashes -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> RawHashes -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> RawHashes -> m RawHashes # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RawHashes -> m RawHashes # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RawHashes -> m RawHashes # | |
Show RawHashes Source # | |
Generic RawHashes Source # | |
ToJSON RawHashes Source # | |
Defined in Network.Google.SafeBrowsing.Types.Product | |
FromJSON RawHashes Source # | |
type Rep RawHashes Source # | |
Defined in Network.Google.SafeBrowsing.Types.Product type Rep RawHashes = D1 (MetaData "RawHashes" "Network.Google.SafeBrowsing.Types.Product" "gogol-safebrowsing-0.4.0-Be8G46BxPxoBbY0T3ixw2y" False) (C1 (MetaCons "RawHashes'" PrefixI True) (S1 (MetaSel (Just "_rhPrefixSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_rhRawHashes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bytes)))) |
rawHashes :: RawHashes Source #
Creates a value of RawHashes
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rhPrefixSize :: Lens' RawHashes (Maybe Int32) Source #
The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash).
rhRawHashes :: Lens' RawHashes (Maybe ByteString) Source #
The hashes, in binary format, concatenated into one long string. Hashes are sorted in lexicographic order. For JSON API users, hashes are base64-encoded.
ListUpdateResponse
data ListUpdateResponse Source #
An update to an individual list.
See: listUpdateResponse
smart constructor.
Instances
listUpdateResponse :: ListUpdateResponse Source #
Creates a value of ListUpdateResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lAdditions :: Lens' ListUpdateResponse [ThreatEntrySet] Source #
A set of entries to add to a local threat type's list. Repeated to allow for a combination of compressed and raw data to be sent in a single response.
lThreatEntryType :: Lens' ListUpdateResponse (Maybe ListUpdateResponseThreatEntryType) Source #
The format of the threats.
lChecksum :: Lens' ListUpdateResponse (Maybe Checksum) Source #
The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided update. If the client state doesn't match the expected state, the client must disregard this update and retry later.
lThreatType :: Lens' ListUpdateResponse (Maybe ListUpdateResponseThreatType) Source #
The threat type for which data is returned.
lPlatformType :: Lens' ListUpdateResponse (Maybe ListUpdateResponsePlatformType) Source #
The platform type for which data is returned.
lNewClientState :: Lens' ListUpdateResponse (Maybe ByteString) Source #
The new client state, in encrypted format. Opaque to clients.
lRemovals :: Lens' ListUpdateResponse [ThreatEntrySet] Source #
A set of entries to remove from a local threat type's list. In practice, this field is empty or contains exactly one ThreatEntrySet.
lResponseType :: Lens' ListUpdateResponse (Maybe ListUpdateResponseResponseType) Source #
The type of response. This may indicate that an action is required by the client when the response is received.
ThreatEntrySet
data ThreatEntrySet Source #
A set of threats that should be added or removed from a client's local database.
See: threatEntrySet
smart constructor.
Instances
threatEntrySet :: ThreatEntrySet Source #
Creates a value of ThreatEntrySet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tesRiceHashes :: Lens' ThreatEntrySet (Maybe RiceDeltaEncoding) Source #
The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.
tesRiceIndices :: Lens' ThreatEntrySet (Maybe RiceDeltaEncoding) Source #
The encoded local, lexicographically-sorted list indices, using a Golomb-Rice encoding. Used for sending compressed removal indices. The removal indices (uint32) are sorted in ascending order, then delta encoded and stored as encoded_data.
tesRawHashes :: Lens' ThreatEntrySet (Maybe RawHashes) Source #
The raw SHA256-formatted entries.
tesRawIndices :: Lens' ThreatEntrySet (Maybe RawIndices) Source #
The raw removal indices for a local list.
tesCompressionType :: Lens' ThreatEntrySet (Maybe ThreatEntrySetCompressionType) Source #
The compression type for the entries in this set.
RawIndices
data RawIndices Source #
A set of raw indices to remove from a local list.
See: rawIndices
smart constructor.
Instances
rawIndices :: RawIndices Source #
Creates a value of RawIndices
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
riIndices :: Lens' RawIndices [Int32] Source #
The indices to remove from a lexicographically-sorted local list.
ThreatSource
data ThreatSource Source #
A single resource related to a threat hit.
See: threatSource
smart constructor.
Instances
threatSource :: ThreatSource Source #
Creates a value of ThreatSource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tsRemoteIP :: Lens' ThreatSource (Maybe Text) Source #
The remote IP of the resource in ASCII format. Either IPv4 or IPv6.
tsReferrer :: Lens' ThreatSource (Maybe Text) Source #
Referrer of the resource. Only set if the referrer is available.
tsType :: Lens' ThreatSource (Maybe ThreatSourceType) Source #
The type of source reported.
ListUpdateResponseThreatType
data ListUpdateResponseThreatType Source #
The threat type for which data is returned.
LURTTThreatTypeUnspecified |
|
LURTTMalware |
|
LURTTSocialEngineering |
|
LURTTUnwantedSoftware |
|
LURTTPotentiallyHarmfulApplication |
|
LURTTSocialEngineeringInternal |
|
LURTTAPIAbuse |
|
LURTTMaliciousBinary |
|
LURTTCsdWhiteList |
|
LURTTCsdDownloadWhiteList |
|
LURTTClientIncident |
|
LURTTClientIncidentWhiteList |
|
LURTTAPKMalwareOffline |
|
LURTTSubResourceFilter |
|
LURTTSuspicious |
|
LURTTTrickToBill |
|
Instances
FindFullHashesResponse
data FindFullHashesResponse Source #
Instances
findFullHashesResponse :: FindFullHashesResponse Source #
Creates a value of FindFullHashesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ffhrMatches :: Lens' FindFullHashesResponse [ThreatMatch] Source #
The full hashes that matched the requested prefixes.
ffhrNegativeCacheDuration :: Lens' FindFullHashesResponse (Maybe Scientific) Source #
For requested entities that did not match the threat list, how long to cache the response.
ffhrMinimumWaitDuration :: Lens' FindFullHashesResponse (Maybe Scientific) Source #
The minimum duration the client must wait before issuing any find hashes request. If this field is not set, clients can issue a request as soon as they want.
MetadataEntry
data MetadataEntry Source #
A single metadata entry.
See: metadataEntry
smart constructor.
Instances
metadataEntry :: MetadataEntry Source #
Creates a value of MetadataEntry
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
meValue :: Lens' MetadataEntry (Maybe ByteString) Source #
The metadata entry value. For JSON requests, the value is base64-encoded.
meKey :: Lens' MetadataEntry (Maybe ByteString) Source #
The metadata entry key. For JSON requests, the key is base64-encoded.
FetchThreatListUpdatesResponse
data FetchThreatListUpdatesResponse Source #
Instances
fetchThreatListUpdatesResponse :: FetchThreatListUpdatesResponse Source #
Creates a value of FetchThreatListUpdatesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ftlurListUpdateResponses :: Lens' FetchThreatListUpdatesResponse [ListUpdateResponse] Source #
The list updates requested by the clients.
ftlurMinimumWaitDuration :: Lens' FetchThreatListUpdatesResponse (Maybe Scientific) Source #
The minimum duration the client must wait before issuing any update request. If this field is not set clients may update as soon as they want.