{-# 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.Logs.List
(
LogsListResource
, logsList
, LogsList
, llParent
, llXgafv
, llUploadProtocol
, llAccessToken
, llUploadType
, llPageToken
, llPageSize
, llCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type LogsListResource =
"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 LogsList = LogsList'
{ _llParent :: !Text
, _llXgafv :: !(Maybe Xgafv)
, _llUploadProtocol :: !(Maybe Text)
, _llAccessToken :: !(Maybe Text)
, _llUploadType :: !(Maybe Text)
, _llPageToken :: !(Maybe Text)
, _llPageSize :: !(Maybe (Textual Int32))
, _llCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
logsList
:: Text
-> LogsList
logsList pLlParent_ =
LogsList'
{ _llParent = pLlParent_
, _llXgafv = Nothing
, _llUploadProtocol = Nothing
, _llAccessToken = Nothing
, _llUploadType = Nothing
, _llPageToken = Nothing
, _llPageSize = Nothing
, _llCallback = Nothing
}
llParent :: Lens' LogsList Text
llParent = lens _llParent (\ s a -> s{_llParent = a})
llXgafv :: Lens' LogsList (Maybe Xgafv)
llXgafv = lens _llXgafv (\ s a -> s{_llXgafv = a})
llUploadProtocol :: Lens' LogsList (Maybe Text)
llUploadProtocol
= lens _llUploadProtocol
(\ s a -> s{_llUploadProtocol = a})
llAccessToken :: Lens' LogsList (Maybe Text)
llAccessToken
= lens _llAccessToken
(\ s a -> s{_llAccessToken = a})
llUploadType :: Lens' LogsList (Maybe Text)
llUploadType
= lens _llUploadType (\ s a -> s{_llUploadType = a})
llPageToken :: Lens' LogsList (Maybe Text)
llPageToken
= lens _llPageToken (\ s a -> s{_llPageToken = a})
llPageSize :: Lens' LogsList (Maybe Int32)
llPageSize
= lens _llPageSize (\ s a -> s{_llPageSize = a}) .
mapping _Coerce
llCallback :: Lens' LogsList (Maybe Text)
llCallback
= lens _llCallback (\ s a -> s{_llCallback = a})
instance GoogleRequest LogsList where
type Rs LogsList = ListLogsResponse
type Scopes LogsList =
'["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 LogsList'{..}
= go _llParent _llXgafv _llUploadProtocol
_llAccessToken
_llUploadType
_llPageToken
_llPageSize
_llCallback
(Just AltJSON)
loggingService
where go
= buildClient (Proxy :: Proxy LogsListResource)
mempty