module Network.Google.Resource.Logging.Entries.List
(
EntriesListResource
, entriesList
, EntriesList
, elXgafv
, elUploadProtocol
, elPp
, elAccessToken
, elUploadType
, elPayload
, elBearerToken
, elCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type EntriesListResource =
"v2" :>
"entries:list" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "pp" Bool :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "bearer_token" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ListLogEntriesRequest :>
Post '[JSON] ListLogEntriesResponse
data EntriesList = EntriesList'
{ _elXgafv :: !(Maybe Xgafv)
, _elUploadProtocol :: !(Maybe Text)
, _elPp :: !Bool
, _elAccessToken :: !(Maybe Text)
, _elUploadType :: !(Maybe Text)
, _elPayload :: !ListLogEntriesRequest
, _elBearerToken :: !(Maybe Text)
, _elCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
entriesList
:: ListLogEntriesRequest
-> EntriesList
entriesList pElPayload_ =
EntriesList'
{ _elXgafv = Nothing
, _elUploadProtocol = Nothing
, _elPp = True
, _elAccessToken = Nothing
, _elUploadType = Nothing
, _elPayload = pElPayload_
, _elBearerToken = Nothing
, _elCallback = Nothing
}
elXgafv :: Lens' EntriesList (Maybe Xgafv)
elXgafv = lens _elXgafv (\ s a -> s{_elXgafv = a})
elUploadProtocol :: Lens' EntriesList (Maybe Text)
elUploadProtocol
= lens _elUploadProtocol
(\ s a -> s{_elUploadProtocol = a})
elPp :: Lens' EntriesList Bool
elPp = lens _elPp (\ s a -> s{_elPp = a})
elAccessToken :: Lens' EntriesList (Maybe Text)
elAccessToken
= lens _elAccessToken
(\ s a -> s{_elAccessToken = a})
elUploadType :: Lens' EntriesList (Maybe Text)
elUploadType
= lens _elUploadType (\ s a -> s{_elUploadType = a})
elPayload :: Lens' EntriesList ListLogEntriesRequest
elPayload
= lens _elPayload (\ s a -> s{_elPayload = a})
elBearerToken :: Lens' EntriesList (Maybe Text)
elBearerToken
= lens _elBearerToken
(\ s a -> s{_elBearerToken = a})
elCallback :: Lens' EntriesList (Maybe Text)
elCallback
= lens _elCallback (\ s a -> s{_elCallback = a})
instance GoogleRequest EntriesList where
type Rs EntriesList = ListLogEntriesResponse
type Scopes EntriesList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only",
"https://www.googleapis.com/auth/logging.admin",
"https://www.googleapis.com/auth/logging.read"]
requestClient EntriesList'{..}
= go _elXgafv _elUploadProtocol (Just _elPp)
_elAccessToken
_elUploadType
_elBearerToken
_elCallback
(Just AltJSON)
_elPayload
loggingService
where go
= buildClient (Proxy :: Proxy EntriesListResource)
mempty