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