{-# 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.Patch
(
FoldersExclusionsPatchResource
, foldersExclusionsPatch
, FoldersExclusionsPatch
, fepXgafv
, fepUploadProtocol
, fepUpdateMask
, fepAccessToken
, fepUploadType
, fepPayload
, fepName
, fepCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type FoldersExclusionsPatchResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "updateMask" GFieldMask :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] LogExclusion :>
Patch '[JSON] LogExclusion
data FoldersExclusionsPatch = FoldersExclusionsPatch'
{ _fepXgafv :: !(Maybe Xgafv)
, _fepUploadProtocol :: !(Maybe Text)
, _fepUpdateMask :: !(Maybe GFieldMask)
, _fepAccessToken :: !(Maybe Text)
, _fepUploadType :: !(Maybe Text)
, _fepPayload :: !LogExclusion
, _fepName :: !Text
, _fepCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
foldersExclusionsPatch
:: LogExclusion
-> Text
-> FoldersExclusionsPatch
foldersExclusionsPatch pFepPayload_ pFepName_ =
FoldersExclusionsPatch'
{ _fepXgafv = Nothing
, _fepUploadProtocol = Nothing
, _fepUpdateMask = Nothing
, _fepAccessToken = Nothing
, _fepUploadType = Nothing
, _fepPayload = pFepPayload_
, _fepName = pFepName_
, _fepCallback = Nothing
}
fepXgafv :: Lens' FoldersExclusionsPatch (Maybe Xgafv)
fepXgafv = lens _fepXgafv (\ s a -> s{_fepXgafv = a})
fepUploadProtocol :: Lens' FoldersExclusionsPatch (Maybe Text)
fepUploadProtocol
= lens _fepUploadProtocol
(\ s a -> s{_fepUploadProtocol = a})
fepUpdateMask :: Lens' FoldersExclusionsPatch (Maybe GFieldMask)
fepUpdateMask
= lens _fepUpdateMask
(\ s a -> s{_fepUpdateMask = a})
fepAccessToken :: Lens' FoldersExclusionsPatch (Maybe Text)
fepAccessToken
= lens _fepAccessToken
(\ s a -> s{_fepAccessToken = a})
fepUploadType :: Lens' FoldersExclusionsPatch (Maybe Text)
fepUploadType
= lens _fepUploadType
(\ s a -> s{_fepUploadType = a})
fepPayload :: Lens' FoldersExclusionsPatch LogExclusion
fepPayload
= lens _fepPayload (\ s a -> s{_fepPayload = a})
fepName :: Lens' FoldersExclusionsPatch Text
fepName = lens _fepName (\ s a -> s{_fepName = a})
fepCallback :: Lens' FoldersExclusionsPatch (Maybe Text)
fepCallback
= lens _fepCallback (\ s a -> s{_fepCallback = a})
instance GoogleRequest FoldersExclusionsPatch where
type Rs FoldersExclusionsPatch = LogExclusion
type Scopes FoldersExclusionsPatch =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient FoldersExclusionsPatch'{..}
= go _fepName _fepXgafv _fepUploadProtocol
_fepUpdateMask
_fepAccessToken
_fepUploadType
_fepCallback
(Just AltJSON)
_fepPayload
loggingService
where go
= buildClient
(Proxy :: Proxy FoldersExclusionsPatchResource)
mempty