{-# 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.Projects.Logs.List
(
ProjectsLogsListResource
, projectsLogsList
, ProjectsLogsList
, pllParent
, pllXgafv
, pllUploadProtocol
, pllAccessToken
, pllUploadType
, pllPageToken
, pllPageSize
, pllCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type ProjectsLogsListResource =
"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 ProjectsLogsList = ProjectsLogsList'
{ _pllParent :: !Text
, _pllXgafv :: !(Maybe Xgafv)
, _pllUploadProtocol :: !(Maybe Text)
, _pllAccessToken :: !(Maybe Text)
, _pllUploadType :: !(Maybe Text)
, _pllPageToken :: !(Maybe Text)
, _pllPageSize :: !(Maybe (Textual Int32))
, _pllCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLogsList
:: Text
-> ProjectsLogsList
projectsLogsList pPllParent_ =
ProjectsLogsList'
{ _pllParent = pPllParent_
, _pllXgafv = Nothing
, _pllUploadProtocol = Nothing
, _pllAccessToken = Nothing
, _pllUploadType = Nothing
, _pllPageToken = Nothing
, _pllPageSize = Nothing
, _pllCallback = Nothing
}
pllParent :: Lens' ProjectsLogsList Text
pllParent
= lens _pllParent (\ s a -> s{_pllParent = a})
pllXgafv :: Lens' ProjectsLogsList (Maybe Xgafv)
pllXgafv = lens _pllXgafv (\ s a -> s{_pllXgafv = a})
pllUploadProtocol :: Lens' ProjectsLogsList (Maybe Text)
pllUploadProtocol
= lens _pllUploadProtocol
(\ s a -> s{_pllUploadProtocol = a})
pllAccessToken :: Lens' ProjectsLogsList (Maybe Text)
pllAccessToken
= lens _pllAccessToken
(\ s a -> s{_pllAccessToken = a})
pllUploadType :: Lens' ProjectsLogsList (Maybe Text)
pllUploadType
= lens _pllUploadType
(\ s a -> s{_pllUploadType = a})
pllPageToken :: Lens' ProjectsLogsList (Maybe Text)
pllPageToken
= lens _pllPageToken (\ s a -> s{_pllPageToken = a})
pllPageSize :: Lens' ProjectsLogsList (Maybe Int32)
pllPageSize
= lens _pllPageSize (\ s a -> s{_pllPageSize = a}) .
mapping _Coerce
pllCallback :: Lens' ProjectsLogsList (Maybe Text)
pllCallback
= lens _pllCallback (\ s a -> s{_pllCallback = a})
instance GoogleRequest ProjectsLogsList where
type Rs ProjectsLogsList = ListLogsResponse
type Scopes ProjectsLogsList =
'["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 ProjectsLogsList'{..}
= go _pllParent _pllXgafv _pllUploadProtocol
_pllAccessToken
_pllUploadType
_pllPageToken
_pllPageSize
_pllCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy ProjectsLogsListResource)
mempty