{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.SafeBrowsing.FullHashes.Find
(
FullHashesFindResource
, fullHashesFind
, FullHashesFind
, fhfXgafv
, fhfUploadProtocol
, fhfAccessToken
, fhfUploadType
, fhfPayload
, fhfCallback
) where
import Network.Google.Prelude
import Network.Google.SafeBrowsing.Types
type FullHashesFindResource =
"v4" :>
"fullHashes:find" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] FindFullHashesRequest :>
Post '[JSON] FindFullHashesResponse
data FullHashesFind = FullHashesFind'
{ _fhfXgafv :: !(Maybe Xgafv)
, _fhfUploadProtocol :: !(Maybe Text)
, _fhfAccessToken :: !(Maybe Text)
, _fhfUploadType :: !(Maybe Text)
, _fhfPayload :: !FindFullHashesRequest
, _fhfCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
fullHashesFind
:: FindFullHashesRequest
-> FullHashesFind
fullHashesFind pFhfPayload_ =
FullHashesFind'
{ _fhfXgafv = Nothing
, _fhfUploadProtocol = Nothing
, _fhfAccessToken = Nothing
, _fhfUploadType = Nothing
, _fhfPayload = pFhfPayload_
, _fhfCallback = Nothing
}
fhfXgafv :: Lens' FullHashesFind (Maybe Xgafv)
fhfXgafv = lens _fhfXgafv (\ s a -> s{_fhfXgafv = a})
fhfUploadProtocol :: Lens' FullHashesFind (Maybe Text)
fhfUploadProtocol
= lens _fhfUploadProtocol
(\ s a -> s{_fhfUploadProtocol = a})
fhfAccessToken :: Lens' FullHashesFind (Maybe Text)
fhfAccessToken
= lens _fhfAccessToken
(\ s a -> s{_fhfAccessToken = a})
fhfUploadType :: Lens' FullHashesFind (Maybe Text)
fhfUploadType
= lens _fhfUploadType
(\ s a -> s{_fhfUploadType = a})
fhfPayload :: Lens' FullHashesFind FindFullHashesRequest
fhfPayload
= lens _fhfPayload (\ s a -> s{_fhfPayload = a})
fhfCallback :: Lens' FullHashesFind (Maybe Text)
fhfCallback
= lens _fhfCallback (\ s a -> s{_fhfCallback = a})
instance GoogleRequest FullHashesFind where
type Rs FullHashesFind = FindFullHashesResponse
type Scopes FullHashesFind = '[]
requestClient FullHashesFind'{..}
= go _fhfXgafv _fhfUploadProtocol _fhfAccessToken
_fhfUploadType
_fhfCallback
(Just AltJSON)
_fhfPayload
safeBrowsingService
where go
= buildClient (Proxy :: Proxy FullHashesFindResource)
mempty