{-# 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.Exclusions.Get
(
ExclusionsGetResource
, exclusionsGet
, ExclusionsGet
, egXgafv
, egUploadProtocol
, egAccessToken
, egUploadType
, egName
, egCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type ExclusionsGetResource =
"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 ExclusionsGet = ExclusionsGet'
{ _egXgafv :: !(Maybe Xgafv)
, _egUploadProtocol :: !(Maybe Text)
, _egAccessToken :: !(Maybe Text)
, _egUploadType :: !(Maybe Text)
, _egName :: !Text
, _egCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
exclusionsGet
:: Text
-> ExclusionsGet
exclusionsGet pEgName_ =
ExclusionsGet'
{ _egXgafv = Nothing
, _egUploadProtocol = Nothing
, _egAccessToken = Nothing
, _egUploadType = Nothing
, _egName = pEgName_
, _egCallback = Nothing
}
egXgafv :: Lens' ExclusionsGet (Maybe Xgafv)
egXgafv = lens _egXgafv (\ s a -> s{_egXgafv = a})
egUploadProtocol :: Lens' ExclusionsGet (Maybe Text)
egUploadProtocol
= lens _egUploadProtocol
(\ s a -> s{_egUploadProtocol = a})
egAccessToken :: Lens' ExclusionsGet (Maybe Text)
egAccessToken
= lens _egAccessToken
(\ s a -> s{_egAccessToken = a})
egUploadType :: Lens' ExclusionsGet (Maybe Text)
egUploadType
= lens _egUploadType (\ s a -> s{_egUploadType = a})
egName :: Lens' ExclusionsGet Text
egName = lens _egName (\ s a -> s{_egName = a})
egCallback :: Lens' ExclusionsGet (Maybe Text)
egCallback
= lens _egCallback (\ s a -> s{_egCallback = a})
instance GoogleRequest ExclusionsGet where
type Rs ExclusionsGet = LogExclusion
type Scopes ExclusionsGet =
'["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 ExclusionsGet'{..}
= go _egName _egXgafv _egUploadProtocol
_egAccessToken
_egUploadType
_egCallback
(Just AltJSON)
loggingService
where go
= buildClient (Proxy :: Proxy ExclusionsGetResource)
mempty