{-# 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.Exclusions.Get
(
FoldersExclusionsGetResource
, foldersExclusionsGet
, FoldersExclusionsGet
, fegXgafv
, fegUploadProtocol
, fegAccessToken
, fegUploadType
, fegName
, fegCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type FoldersExclusionsGetResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] LogExclusion
data FoldersExclusionsGet = FoldersExclusionsGet'
{ _fegXgafv :: !(Maybe Xgafv)
, _fegUploadProtocol :: !(Maybe Text)
, _fegAccessToken :: !(Maybe Text)
, _fegUploadType :: !(Maybe Text)
, _fegName :: !Text
, _fegCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
foldersExclusionsGet
:: Text
-> FoldersExclusionsGet
foldersExclusionsGet pFegName_ =
FoldersExclusionsGet'
{ _fegXgafv = Nothing
, _fegUploadProtocol = Nothing
, _fegAccessToken = Nothing
, _fegUploadType = Nothing
, _fegName = pFegName_
, _fegCallback = Nothing
}
fegXgafv :: Lens' FoldersExclusionsGet (Maybe Xgafv)
fegXgafv = lens _fegXgafv (\ s a -> s{_fegXgafv = a})
fegUploadProtocol :: Lens' FoldersExclusionsGet (Maybe Text)
fegUploadProtocol
= lens _fegUploadProtocol
(\ s a -> s{_fegUploadProtocol = a})
fegAccessToken :: Lens' FoldersExclusionsGet (Maybe Text)
fegAccessToken
= lens _fegAccessToken
(\ s a -> s{_fegAccessToken = a})
fegUploadType :: Lens' FoldersExclusionsGet (Maybe Text)
fegUploadType
= lens _fegUploadType
(\ s a -> s{_fegUploadType = a})
fegName :: Lens' FoldersExclusionsGet Text
fegName = lens _fegName (\ s a -> s{_fegName = a})
fegCallback :: Lens' FoldersExclusionsGet (Maybe Text)
fegCallback
= lens _fegCallback (\ s a -> s{_fegCallback = a})
instance GoogleRequest FoldersExclusionsGet where
type Rs FoldersExclusionsGet = LogExclusion
type Scopes FoldersExclusionsGet =
'["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 FoldersExclusionsGet'{..}
= go _fegName _fegXgafv _fegUploadProtocol
_fegAccessToken
_fegUploadType
_fegCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy FoldersExclusionsGetResource)
mempty