{-# 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.RevokeDeviceAccess
(
UsersRevokeDeviceAccessResource
, usersRevokeDeviceAccess
, UsersRevokeDeviceAccess
, urdaEnterpriseId
, urdaUserId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type UsersRevokeDeviceAccessResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
"deviceAccess" :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data UsersRevokeDeviceAccess = UsersRevokeDeviceAccess'
{ _urdaEnterpriseId :: !Text
, _urdaUserId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
usersRevokeDeviceAccess
:: Text
-> Text
-> UsersRevokeDeviceAccess
usersRevokeDeviceAccess pUrdaEnterpriseId_ pUrdaUserId_ =
UsersRevokeDeviceAccess'
{ _urdaEnterpriseId = pUrdaEnterpriseId_
, _urdaUserId = pUrdaUserId_
}
urdaEnterpriseId :: Lens' UsersRevokeDeviceAccess Text
urdaEnterpriseId
= lens _urdaEnterpriseId
(\ s a -> s{_urdaEnterpriseId = a})
urdaUserId :: Lens' UsersRevokeDeviceAccess Text
urdaUserId
= lens _urdaUserId (\ s a -> s{_urdaUserId = a})
instance GoogleRequest UsersRevokeDeviceAccess where
type Rs UsersRevokeDeviceAccess = ()
type Scopes UsersRevokeDeviceAccess =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient UsersRevokeDeviceAccess'{..}
= go _urdaEnterpriseId _urdaUserId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy UsersRevokeDeviceAccessResource)
mempty