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