{-# 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.Sinks.List
(
FoldersSinksListResource
, foldersSinksList
, FoldersSinksList
, fslParent
, fslXgafv
, fslUploadProtocol
, fslAccessToken
, fslUploadType
, fslPageToken
, fslPageSize
, fslCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type FoldersSinksListResource =
"v2" :>
Capture "parent" Text :>
"sinks" :>
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] ListSinksResponse
data FoldersSinksList = FoldersSinksList'
{ _fslParent :: !Text
, _fslXgafv :: !(Maybe Xgafv)
, _fslUploadProtocol :: !(Maybe Text)
, _fslAccessToken :: !(Maybe Text)
, _fslUploadType :: !(Maybe Text)
, _fslPageToken :: !(Maybe Text)
, _fslPageSize :: !(Maybe (Textual Int32))
, _fslCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
foldersSinksList
:: Text
-> FoldersSinksList
foldersSinksList pFslParent_ =
FoldersSinksList'
{ _fslParent = pFslParent_
, _fslXgafv = Nothing
, _fslUploadProtocol = Nothing
, _fslAccessToken = Nothing
, _fslUploadType = Nothing
, _fslPageToken = Nothing
, _fslPageSize = Nothing
, _fslCallback = Nothing
}
fslParent :: Lens' FoldersSinksList Text
fslParent
= lens _fslParent (\ s a -> s{_fslParent = a})
fslXgafv :: Lens' FoldersSinksList (Maybe Xgafv)
fslXgafv = lens _fslXgafv (\ s a -> s{_fslXgafv = a})
fslUploadProtocol :: Lens' FoldersSinksList (Maybe Text)
fslUploadProtocol
= lens _fslUploadProtocol
(\ s a -> s{_fslUploadProtocol = a})
fslAccessToken :: Lens' FoldersSinksList (Maybe Text)
fslAccessToken
= lens _fslAccessToken
(\ s a -> s{_fslAccessToken = a})
fslUploadType :: Lens' FoldersSinksList (Maybe Text)
fslUploadType
= lens _fslUploadType
(\ s a -> s{_fslUploadType = a})
fslPageToken :: Lens' FoldersSinksList (Maybe Text)
fslPageToken
= lens _fslPageToken (\ s a -> s{_fslPageToken = a})
fslPageSize :: Lens' FoldersSinksList (Maybe Int32)
fslPageSize
= lens _fslPageSize (\ s a -> s{_fslPageSize = a}) .
mapping _Coerce
fslCallback :: Lens' FoldersSinksList (Maybe Text)
fslCallback
= lens _fslCallback (\ s a -> s{_fslCallback = a})
instance GoogleRequest FoldersSinksList where
type Rs FoldersSinksList = ListSinksResponse
type Scopes FoldersSinksList =
'["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 FoldersSinksList'{..}
= go _fslParent _fslXgafv _fslUploadProtocol
_fslAccessToken
_fslUploadType
_fslPageToken
_fslPageSize
_fslCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy FoldersSinksListResource)
mempty