{-# 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.Organizations.Logs.List
(
OrganizationsLogsListResource
, organizationsLogsList
, OrganizationsLogsList
, ollParent
, ollXgafv
, ollUploadProtocol
, ollAccessToken
, ollUploadType
, ollPageToken
, ollPageSize
, ollCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type OrganizationsLogsListResource =
"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 OrganizationsLogsList = OrganizationsLogsList'
{ _ollParent :: !Text
, _ollXgafv :: !(Maybe Xgafv)
, _ollUploadProtocol :: !(Maybe Text)
, _ollAccessToken :: !(Maybe Text)
, _ollUploadType :: !(Maybe Text)
, _ollPageToken :: !(Maybe Text)
, _ollPageSize :: !(Maybe (Textual Int32))
, _ollCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsLogsList
:: Text
-> OrganizationsLogsList
organizationsLogsList pOllParent_ =
OrganizationsLogsList'
{ _ollParent = pOllParent_
, _ollXgafv = Nothing
, _ollUploadProtocol = Nothing
, _ollAccessToken = Nothing
, _ollUploadType = Nothing
, _ollPageToken = Nothing
, _ollPageSize = Nothing
, _ollCallback = Nothing
}
ollParent :: Lens' OrganizationsLogsList Text
ollParent
= lens _ollParent (\ s a -> s{_ollParent = a})
ollXgafv :: Lens' OrganizationsLogsList (Maybe Xgafv)
ollXgafv = lens _ollXgafv (\ s a -> s{_ollXgafv = a})
ollUploadProtocol :: Lens' OrganizationsLogsList (Maybe Text)
ollUploadProtocol
= lens _ollUploadProtocol
(\ s a -> s{_ollUploadProtocol = a})
ollAccessToken :: Lens' OrganizationsLogsList (Maybe Text)
ollAccessToken
= lens _ollAccessToken
(\ s a -> s{_ollAccessToken = a})
ollUploadType :: Lens' OrganizationsLogsList (Maybe Text)
ollUploadType
= lens _ollUploadType
(\ s a -> s{_ollUploadType = a})
ollPageToken :: Lens' OrganizationsLogsList (Maybe Text)
ollPageToken
= lens _ollPageToken (\ s a -> s{_ollPageToken = a})
ollPageSize :: Lens' OrganizationsLogsList (Maybe Int32)
ollPageSize
= lens _ollPageSize (\ s a -> s{_ollPageSize = a}) .
mapping _Coerce
ollCallback :: Lens' OrganizationsLogsList (Maybe Text)
ollCallback
= lens _ollCallback (\ s a -> s{_ollCallback = a})
instance GoogleRequest OrganizationsLogsList where
type Rs OrganizationsLogsList = ListLogsResponse
type Scopes OrganizationsLogsList =
'["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 OrganizationsLogsList'{..}
= go _ollParent _ollXgafv _ollUploadProtocol
_ollAccessToken
_ollUploadType
_ollPageToken
_ollPageSize
_ollCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy OrganizationsLogsListResource)
mempty