{-# 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.Folders.Revert
(
AccountsContainersWorkspacesFoldersRevertResource
, accountsContainersWorkspacesFoldersRevert
, AccountsContainersWorkspacesFoldersRevert
, acwfrPath
, acwfrFingerprint
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesFoldersRevertResource
=
"tagmanager" :>
"v2" :>
CaptureMode "path" "revert" Text :>
QueryParam "fingerprint" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON] RevertFolderResponse
data AccountsContainersWorkspacesFoldersRevert = AccountsContainersWorkspacesFoldersRevert'
{ _acwfrPath :: !Text
, _acwfrFingerprint :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesFoldersRevert
:: Text
-> AccountsContainersWorkspacesFoldersRevert
accountsContainersWorkspacesFoldersRevert pAcwfrPath_ =
AccountsContainersWorkspacesFoldersRevert'
{ _acwfrPath = pAcwfrPath_
, _acwfrFingerprint = Nothing
}
acwfrPath :: Lens' AccountsContainersWorkspacesFoldersRevert Text
acwfrPath
= lens _acwfrPath (\ s a -> s{_acwfrPath = a})
acwfrFingerprint :: Lens' AccountsContainersWorkspacesFoldersRevert (Maybe Text)
acwfrFingerprint
= lens _acwfrFingerprint
(\ s a -> s{_acwfrFingerprint = a})
instance GoogleRequest
AccountsContainersWorkspacesFoldersRevert where
type Rs AccountsContainersWorkspacesFoldersRevert =
RevertFolderResponse
type Scopes AccountsContainersWorkspacesFoldersRevert
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesFoldersRevert'{..}
= go _acwfrPath _acwfrFingerprint (Just AltJSON)
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesFoldersRevertResource)
mempty