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.SafeBrowsing.Types
Contents
- 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
Description
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.
Constructors
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.
Constructors
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 Methods 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.
Constructors
ThreatEntryTypeUnspecified |
|
URL |
|
Executable |
|
IPRange |
|
ChromeExtension |
|
Filename |
|
Cert |
|
Instances
ThreatMatchPlatformType
data ThreatMatchPlatformType Source #
The platform type matching this threat.
Constructors
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 Methods 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.
Constructors
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 Methods 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.
Constructors
LURPTPlatformTypeUnspecified |
|
LURPTWindows |
|
LURPTLinux |
|
LURPTAndroid |
|
LURPTOSx |
|
LURPTIos |
|
LURPTAnyPlatform |
|
LURPTAllPlatforms |
|
LURPTChrome |
|
Instances
ThreatListDescriptorPlatformType
data ThreatListDescriptorPlatformType Source #
The platform type targeted by the list's entries.
Constructors
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.
Constructors
ResponseTypeUnspecified |
|
PartialUpdate |
|
FullUpdate |
|
Instances
ThreatSourceType
data ThreatSourceType Source #
The type of source reported.
Constructors
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.
Constructors
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.
Constructors
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.
Constructors
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.
Constructors
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.