{-# 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.AndroidEnterprise.Users.Delete
(
UsersDeleteResource
, usersDelete
, UsersDelete
, udEnterpriseId
, udUserId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type UsersDeleteResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data UsersDelete = UsersDelete'
{ _udEnterpriseId :: !Text
, _udUserId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
usersDelete
:: Text
-> Text
-> UsersDelete
usersDelete pUdEnterpriseId_ pUdUserId_ =
UsersDelete'
{ _udEnterpriseId = pUdEnterpriseId_
, _udUserId = pUdUserId_
}
udEnterpriseId :: Lens' UsersDelete Text
udEnterpriseId
= lens _udEnterpriseId
(\ s a -> s{_udEnterpriseId = a})
udUserId :: Lens' UsersDelete Text
udUserId = lens _udUserId (\ s a -> s{_udUserId = a})
instance GoogleRequest UsersDelete where
type Rs UsersDelete = ()
type Scopes UsersDelete =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient UsersDelete'{..}
= go _udEnterpriseId _udUserId (Just AltJSON)
androidEnterpriseService
where go
= buildClient (Proxy :: Proxy UsersDeleteResource)
mempty