{-# 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.Directory.Users.Delete
(
UsersDeleteResource
, usersDelete
, UsersDelete
, udUserKey
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type UsersDeleteResource =
"admin" :>
"directory" :>
"v1" :>
"users" :>
Capture "userKey" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype UsersDelete = UsersDelete'
{ _udUserKey :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
usersDelete
:: Text
-> UsersDelete
usersDelete pUdUserKey_ =
UsersDelete'
{ _udUserKey = pUdUserKey_
}
udUserKey :: Lens' UsersDelete Text
udUserKey
= lens _udUserKey (\ s a -> s{_udUserKey = a})
instance GoogleRequest UsersDelete where
type Rs UsersDelete = ()
type Scopes UsersDelete =
'["https://www.googleapis.com/auth/admin.directory.user"]
requestClient UsersDelete'{..}
= go _udUserKey (Just AltJSON) directoryService
where go
= buildClient (Proxy :: Proxy UsersDeleteResource)
mempty