{-# 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.TagManager.Accounts.Containers.Workspaces.Triggers.Revert
(
AccountsContainersWorkspacesTriggersRevertResource
, accountsContainersWorkspacesTriggersRevert
, AccountsContainersWorkspacesTriggersRevert
, acwtrPath
, acwtrFingerprint
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesTriggersRevertResource
=
"tagmanager" :>
"v2" :>
CaptureMode "path" "revert" Text :>
QueryParam "fingerprint" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON] RevertTriggerResponse
data AccountsContainersWorkspacesTriggersRevert = AccountsContainersWorkspacesTriggersRevert'
{ _acwtrPath :: !Text
, _acwtrFingerprint :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesTriggersRevert
:: Text
-> AccountsContainersWorkspacesTriggersRevert
accountsContainersWorkspacesTriggersRevert pAcwtrPath_ =
AccountsContainersWorkspacesTriggersRevert'
{ _acwtrPath = pAcwtrPath_
, _acwtrFingerprint = Nothing
}
acwtrPath :: Lens' AccountsContainersWorkspacesTriggersRevert Text
acwtrPath
= lens _acwtrPath (\ s a -> s{_acwtrPath = a})
acwtrFingerprint :: Lens' AccountsContainersWorkspacesTriggersRevert (Maybe Text)
acwtrFingerprint
= lens _acwtrFingerprint
(\ s a -> s{_acwtrFingerprint = a})
instance GoogleRequest
AccountsContainersWorkspacesTriggersRevert where
type Rs AccountsContainersWorkspacesTriggersRevert =
RevertTriggerResponse
type Scopes
AccountsContainersWorkspacesTriggersRevert
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesTriggersRevert'{..}
= go _acwtrPath _acwtrFingerprint (Just AltJSON)
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesTriggersRevertResource)
mempty