{-# 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.BuiltInVariables.Delete
(
AccountsContainersWorkspacesBuiltInVariablesDeleteResource
, accountsContainersWorkspacesBuiltInVariablesDelete
, AccountsContainersWorkspacesBuiltInVariablesDelete
, acwbivdPath
, acwbivdType
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesBuiltInVariablesDeleteResource
=
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParams "type"
AccountsContainersWorkspacesBuilt_in_variablesDeleteType
:> QueryParam "alt" AltJSON :> Delete '[JSON] ()
data AccountsContainersWorkspacesBuiltInVariablesDelete = AccountsContainersWorkspacesBuiltInVariablesDelete'
{ _acwbivdPath :: !Text
, _acwbivdType :: !(Maybe [AccountsContainersWorkspacesBuilt_in_variablesDeleteType])
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesBuiltInVariablesDelete
:: Text
-> AccountsContainersWorkspacesBuiltInVariablesDelete
accountsContainersWorkspacesBuiltInVariablesDelete pAcwbivdPath_ =
AccountsContainersWorkspacesBuiltInVariablesDelete'
{ _acwbivdPath = pAcwbivdPath_
, _acwbivdType = Nothing
}
acwbivdPath :: Lens' AccountsContainersWorkspacesBuiltInVariablesDelete Text
acwbivdPath
= lens _acwbivdPath (\ s a -> s{_acwbivdPath = a})
acwbivdType :: Lens' AccountsContainersWorkspacesBuiltInVariablesDelete [AccountsContainersWorkspacesBuilt_in_variablesDeleteType]
acwbivdType
= lens _acwbivdType (\ s a -> s{_acwbivdType = a}) .
_Default
. _Coerce
instance GoogleRequest
AccountsContainersWorkspacesBuiltInVariablesDelete
where
type Rs
AccountsContainersWorkspacesBuiltInVariablesDelete
= ()
type Scopes
AccountsContainersWorkspacesBuiltInVariablesDelete
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesBuiltInVariablesDelete'{..}
= go _acwbivdPath (_acwbivdType ^. _Default)
(Just AltJSON)
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesBuiltInVariablesDeleteResource)
mempty