{-# 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.Variables.Revert
(
AccountsContainersWorkspacesVariablesRevertResource
, accountsContainersWorkspacesVariablesRevert
, AccountsContainersWorkspacesVariablesRevert
, acwvrPath
, acwvrFingerprint
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesVariablesRevertResource
=
"tagmanager" :>
"v2" :>
CaptureMode "path" "revert" Text :>
QueryParam "fingerprint" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON] RevertVariableResponse
data AccountsContainersWorkspacesVariablesRevert = AccountsContainersWorkspacesVariablesRevert'
{ _acwvrPath :: !Text
, _acwvrFingerprint :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesVariablesRevert
:: Text
-> AccountsContainersWorkspacesVariablesRevert
accountsContainersWorkspacesVariablesRevert pAcwvrPath_ =
AccountsContainersWorkspacesVariablesRevert'
{ _acwvrPath = pAcwvrPath_
, _acwvrFingerprint = Nothing
}
acwvrPath :: Lens' AccountsContainersWorkspacesVariablesRevert Text
acwvrPath
= lens _acwvrPath (\ s a -> s{_acwvrPath = a})
acwvrFingerprint :: Lens' AccountsContainersWorkspacesVariablesRevert (Maybe Text)
acwvrFingerprint
= lens _acwvrFingerprint
(\ s a -> s{_acwvrFingerprint = a})
instance GoogleRequest
AccountsContainersWorkspacesVariablesRevert where
type Rs AccountsContainersWorkspacesVariablesRevert =
RevertVariableResponse
type Scopes
AccountsContainersWorkspacesVariablesRevert
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesVariablesRevert'{..}
= go _acwvrPath _acwvrFingerprint (Just AltJSON)
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesVariablesRevertResource)
mempty