{-# 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.Logging.Entries.List
(
EntriesListResource
, entriesList
, EntriesList
, elXgafv
, elUploadProtocol
, elAccessToken
, elUploadType
, elPayload
, elCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type EntriesListResource =
"v2" :>
"entries:list" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ListLogEntriesRequest :>
Post '[JSON] ListLogEntriesResponse
data EntriesList = EntriesList'
{ _elXgafv :: !(Maybe Xgafv)
, _elUploadProtocol :: !(Maybe Text)
, _elAccessToken :: !(Maybe Text)
, _elUploadType :: !(Maybe Text)
, _elPayload :: !ListLogEntriesRequest
, _elCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
entriesList
:: ListLogEntriesRequest
-> EntriesList
entriesList pElPayload_ =
EntriesList'
{ _elXgafv = Nothing
, _elUploadProtocol = Nothing
, _elAccessToken = Nothing
, _elUploadType = Nothing
, _elPayload = pElPayload_
, _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})
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})
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 _elAccessToken
_elUploadType
_elCallback
(Just AltJSON)
_elPayload
loggingService
where go
= buildClient (Proxy :: Proxy EntriesListResource)
mempty