{-# 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.Delete
(
AccountsContainersWorkspacesFoldersDeleteResource
, accountsContainersWorkspacesFoldersDelete
, AccountsContainersWorkspacesFoldersDelete
, acwfdPath
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesFoldersDeleteResource
=
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype AccountsContainersWorkspacesFoldersDelete = AccountsContainersWorkspacesFoldersDelete'
{ _acwfdPath :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesFoldersDelete
:: Text
-> AccountsContainersWorkspacesFoldersDelete
accountsContainersWorkspacesFoldersDelete pAcwfdPath_ =
AccountsContainersWorkspacesFoldersDelete'
{ _acwfdPath = pAcwfdPath_
}
acwfdPath :: Lens' AccountsContainersWorkspacesFoldersDelete Text
acwfdPath
= lens _acwfdPath (\ s a -> s{_acwfdPath = a})
instance GoogleRequest
AccountsContainersWorkspacesFoldersDelete where
type Rs AccountsContainersWorkspacesFoldersDelete =
()
type Scopes AccountsContainersWorkspacesFoldersDelete
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesFoldersDelete'{..}
= go _acwfdPath (Just AltJSON) tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesFoldersDeleteResource)
mempty