{-# 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.Folders.Logs.List
(
FoldersLogsListResource
, foldersLogsList
, FoldersLogsList
, fllParent
, fllXgafv
, fllUploadProtocol
, fllAccessToken
, fllUploadType
, fllPageToken
, fllPageSize
, fllCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type FoldersLogsListResource =
"v2" :>
Capture "parent" Text :>
"logs" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListLogsResponse
data FoldersLogsList = FoldersLogsList'
{ _fllParent :: !Text
, _fllXgafv :: !(Maybe Xgafv)
, _fllUploadProtocol :: !(Maybe Text)
, _fllAccessToken :: !(Maybe Text)
, _fllUploadType :: !(Maybe Text)
, _fllPageToken :: !(Maybe Text)
, _fllPageSize :: !(Maybe (Textual Int32))
, _fllCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
foldersLogsList
:: Text
-> FoldersLogsList
foldersLogsList pFllParent_ =
FoldersLogsList'
{ _fllParent = pFllParent_
, _fllXgafv = Nothing
, _fllUploadProtocol = Nothing
, _fllAccessToken = Nothing
, _fllUploadType = Nothing
, _fllPageToken = Nothing
, _fllPageSize = Nothing
, _fllCallback = Nothing
}
fllParent :: Lens' FoldersLogsList Text
fllParent
= lens _fllParent (\ s a -> s{_fllParent = a})
fllXgafv :: Lens' FoldersLogsList (Maybe Xgafv)
fllXgafv = lens _fllXgafv (\ s a -> s{_fllXgafv = a})
fllUploadProtocol :: Lens' FoldersLogsList (Maybe Text)
fllUploadProtocol
= lens _fllUploadProtocol
(\ s a -> s{_fllUploadProtocol = a})
fllAccessToken :: Lens' FoldersLogsList (Maybe Text)
fllAccessToken
= lens _fllAccessToken
(\ s a -> s{_fllAccessToken = a})
fllUploadType :: Lens' FoldersLogsList (Maybe Text)
fllUploadType
= lens _fllUploadType
(\ s a -> s{_fllUploadType = a})
fllPageToken :: Lens' FoldersLogsList (Maybe Text)
fllPageToken
= lens _fllPageToken (\ s a -> s{_fllPageToken = a})
fllPageSize :: Lens' FoldersLogsList (Maybe Int32)
fllPageSize
= lens _fllPageSize (\ s a -> s{_fllPageSize = a}) .
mapping _Coerce
fllCallback :: Lens' FoldersLogsList (Maybe Text)
fllCallback
= lens _fllCallback (\ s a -> s{_fllCallback = a})
instance GoogleRequest FoldersLogsList where
type Rs FoldersLogsList = ListLogsResponse
type Scopes FoldersLogsList =
'["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 FoldersLogsList'{..}
= go _fllParent _fllXgafv _fllUploadProtocol
_fllAccessToken
_fllUploadType
_fllPageToken
_fllPageSize
_fllCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy FoldersLogsListResource)
mempty