{-# 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.Projects.Exclusions.Get
(
ProjectsExclusionsGetResource
, projectsExclusionsGet
, ProjectsExclusionsGet
, pegXgafv
, pegUploadProtocol
, pegAccessToken
, pegUploadType
, pegName
, pegCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type ProjectsExclusionsGetResource =
"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 ProjectsExclusionsGet = ProjectsExclusionsGet'
{ _pegXgafv :: !(Maybe Xgafv)
, _pegUploadProtocol :: !(Maybe Text)
, _pegAccessToken :: !(Maybe Text)
, _pegUploadType :: !(Maybe Text)
, _pegName :: !Text
, _pegCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsExclusionsGet
:: Text
-> ProjectsExclusionsGet
projectsExclusionsGet pPegName_ =
ProjectsExclusionsGet'
{ _pegXgafv = Nothing
, _pegUploadProtocol = Nothing
, _pegAccessToken = Nothing
, _pegUploadType = Nothing
, _pegName = pPegName_
, _pegCallback = Nothing
}
pegXgafv :: Lens' ProjectsExclusionsGet (Maybe Xgafv)
pegXgafv = lens _pegXgafv (\ s a -> s{_pegXgafv = a})
pegUploadProtocol :: Lens' ProjectsExclusionsGet (Maybe Text)
pegUploadProtocol
= lens _pegUploadProtocol
(\ s a -> s{_pegUploadProtocol = a})
pegAccessToken :: Lens' ProjectsExclusionsGet (Maybe Text)
pegAccessToken
= lens _pegAccessToken
(\ s a -> s{_pegAccessToken = a})
pegUploadType :: Lens' ProjectsExclusionsGet (Maybe Text)
pegUploadType
= lens _pegUploadType
(\ s a -> s{_pegUploadType = a})
pegName :: Lens' ProjectsExclusionsGet Text
pegName = lens _pegName (\ s a -> s{_pegName = a})
pegCallback :: Lens' ProjectsExclusionsGet (Maybe Text)
pegCallback
= lens _pegCallback (\ s a -> s{_pegCallback = a})
instance GoogleRequest ProjectsExclusionsGet where
type Rs ProjectsExclusionsGet = LogExclusion
type Scopes ProjectsExclusionsGet =
'["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 ProjectsExclusionsGet'{..}
= go _pegName _pegXgafv _pegUploadProtocol
_pegAccessToken
_pegUploadType
_pegCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy ProjectsExclusionsGetResource)
mempty