{-# 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.Zones.Revert
(
AccountsContainersWorkspacesZonesRevertResource
, accountsContainersWorkspacesZonesRevert
, AccountsContainersWorkspacesZonesRevert
, acwzrPath
, acwzrFingerprint
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesZonesRevertResource
=
"tagmanager" :>
"v2" :>
CaptureMode "path" "revert" Text :>
QueryParam "fingerprint" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON] RevertZoneResponse
data AccountsContainersWorkspacesZonesRevert =
AccountsContainersWorkspacesZonesRevert'
{ _acwzrPath :: !Text
, _acwzrFingerprint :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
accountsContainersWorkspacesZonesRevert
:: Text
-> AccountsContainersWorkspacesZonesRevert
accountsContainersWorkspacesZonesRevert pAcwzrPath_ =
AccountsContainersWorkspacesZonesRevert'
{_acwzrPath = pAcwzrPath_, _acwzrFingerprint = Nothing}
acwzrPath :: Lens' AccountsContainersWorkspacesZonesRevert Text
acwzrPath
= lens _acwzrPath (\ s a -> s{_acwzrPath = a})
acwzrFingerprint :: Lens' AccountsContainersWorkspacesZonesRevert (Maybe Text)
acwzrFingerprint
= lens _acwzrFingerprint
(\ s a -> s{_acwzrFingerprint = a})
instance GoogleRequest
AccountsContainersWorkspacesZonesRevert
where
type Rs AccountsContainersWorkspacesZonesRevert =
RevertZoneResponse
type Scopes AccountsContainersWorkspacesZonesRevert =
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesZonesRevert'{..}
= go _acwzrPath _acwzrFingerprint (Just AltJSON)
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesZonesRevertResource)
mempty