{-# 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.ThreatLists.List
(
ThreatListsListResource
, threatListsList
, ThreatListsList
, tllXgafv
, tllUploadProtocol
, tllAccessToken
, tllUploadType
, tllCallback
) where
import Network.Google.Prelude
import Network.Google.SafeBrowsing.Types
type ThreatListsListResource =
"v4" :>
"threatLists" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListThreatListsResponse
data ThreatListsList = ThreatListsList'
{ _tllXgafv :: !(Maybe Xgafv)
, _tllUploadProtocol :: !(Maybe Text)
, _tllAccessToken :: !(Maybe Text)
, _tllUploadType :: !(Maybe Text)
, _tllCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
threatListsList
:: ThreatListsList
threatListsList =
ThreatListsList'
{ _tllXgafv = Nothing
, _tllUploadProtocol = Nothing
, _tllAccessToken = Nothing
, _tllUploadType = Nothing
, _tllCallback = Nothing
}
tllXgafv :: Lens' ThreatListsList (Maybe Xgafv)
tllXgafv = lens _tllXgafv (\ s a -> s{_tllXgafv = a})
tllUploadProtocol :: Lens' ThreatListsList (Maybe Text)
tllUploadProtocol
= lens _tllUploadProtocol
(\ s a -> s{_tllUploadProtocol = a})
tllAccessToken :: Lens' ThreatListsList (Maybe Text)
tllAccessToken
= lens _tllAccessToken
(\ s a -> s{_tllAccessToken = a})
tllUploadType :: Lens' ThreatListsList (Maybe Text)
tllUploadType
= lens _tllUploadType
(\ s a -> s{_tllUploadType = a})
tllCallback :: Lens' ThreatListsList (Maybe Text)
tllCallback
= lens _tllCallback (\ s a -> s{_tllCallback = a})
instance GoogleRequest ThreatListsList where
type Rs ThreatListsList = ListThreatListsResponse
type Scopes ThreatListsList = '[]
requestClient ThreatListsList'{..}
= go _tllXgafv _tllUploadProtocol _tllAccessToken
_tllUploadType
_tllCallback
(Just AltJSON)
safeBrowsingService
where go
= buildClient
(Proxy :: Proxy ThreatListsListResource)
mempty