{-# 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.Patch
(
ProjectsExclusionsPatchResource
, projectsExclusionsPatch
, ProjectsExclusionsPatch
, pepXgafv
, pepUploadProtocol
, pepUpdateMask
, pepAccessToken
, pepUploadType
, pepPayload
, pepName
, pepCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type ProjectsExclusionsPatchResource =
"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 ProjectsExclusionsPatch = ProjectsExclusionsPatch'
{ _pepXgafv :: !(Maybe Xgafv)
, _pepUploadProtocol :: !(Maybe Text)
, _pepUpdateMask :: !(Maybe GFieldMask)
, _pepAccessToken :: !(Maybe Text)
, _pepUploadType :: !(Maybe Text)
, _pepPayload :: !LogExclusion
, _pepName :: !Text
, _pepCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsExclusionsPatch
:: LogExclusion
-> Text
-> ProjectsExclusionsPatch
projectsExclusionsPatch pPepPayload_ pPepName_ =
ProjectsExclusionsPatch'
{ _pepXgafv = Nothing
, _pepUploadProtocol = Nothing
, _pepUpdateMask = Nothing
, _pepAccessToken = Nothing
, _pepUploadType = Nothing
, _pepPayload = pPepPayload_
, _pepName = pPepName_
, _pepCallback = Nothing
}
pepXgafv :: Lens' ProjectsExclusionsPatch (Maybe Xgafv)
pepXgafv = lens _pepXgafv (\ s a -> s{_pepXgafv = a})
pepUploadProtocol :: Lens' ProjectsExclusionsPatch (Maybe Text)
pepUploadProtocol
= lens _pepUploadProtocol
(\ s a -> s{_pepUploadProtocol = a})
pepUpdateMask :: Lens' ProjectsExclusionsPatch (Maybe GFieldMask)
pepUpdateMask
= lens _pepUpdateMask
(\ s a -> s{_pepUpdateMask = a})
pepAccessToken :: Lens' ProjectsExclusionsPatch (Maybe Text)
pepAccessToken
= lens _pepAccessToken
(\ s a -> s{_pepAccessToken = a})
pepUploadType :: Lens' ProjectsExclusionsPatch (Maybe Text)
pepUploadType
= lens _pepUploadType
(\ s a -> s{_pepUploadType = a})
pepPayload :: Lens' ProjectsExclusionsPatch LogExclusion
pepPayload
= lens _pepPayload (\ s a -> s{_pepPayload = a})
pepName :: Lens' ProjectsExclusionsPatch Text
pepName = lens _pepName (\ s a -> s{_pepName = a})
pepCallback :: Lens' ProjectsExclusionsPatch (Maybe Text)
pepCallback
= lens _pepCallback (\ s a -> s{_pepCallback = a})
instance GoogleRequest ProjectsExclusionsPatch where
type Rs ProjectsExclusionsPatch = LogExclusion
type Scopes ProjectsExclusionsPatch =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/logging.admin"]
requestClient ProjectsExclusionsPatch'{..}
= go _pepName _pepXgafv _pepUploadProtocol
_pepUpdateMask
_pepAccessToken
_pepUploadType
_pepCallback
(Just AltJSON)
_pepPayload
loggingService
where go
= buildClient
(Proxy :: Proxy ProjectsExclusionsPatchResource)
mempty