{-# 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.ManagedConfigurationsforUser.Delete
(
ManagedConfigurationsforUserDeleteResource
, managedConfigurationsforUserDelete
, ManagedConfigurationsforUserDelete
, mcudEnterpriseId
, mcudUserId
, mcudManagedConfigurationForUserId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type ManagedConfigurationsforUserDeleteResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
"managedConfigurationsForUser" :>
Capture "managedConfigurationForUserId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ManagedConfigurationsforUserDelete = ManagedConfigurationsforUserDelete'
{ _mcudEnterpriseId :: !Text
, _mcudUserId :: !Text
, _mcudManagedConfigurationForUserId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managedConfigurationsforUserDelete
:: Text
-> Text
-> Text
-> ManagedConfigurationsforUserDelete
managedConfigurationsforUserDelete pMcudEnterpriseId_ pMcudUserId_ pMcudManagedConfigurationForUserId_ =
ManagedConfigurationsforUserDelete'
{ _mcudEnterpriseId = pMcudEnterpriseId_
, _mcudUserId = pMcudUserId_
, _mcudManagedConfigurationForUserId = pMcudManagedConfigurationForUserId_
}
mcudEnterpriseId :: Lens' ManagedConfigurationsforUserDelete Text
mcudEnterpriseId
= lens _mcudEnterpriseId
(\ s a -> s{_mcudEnterpriseId = a})
mcudUserId :: Lens' ManagedConfigurationsforUserDelete Text
mcudUserId
= lens _mcudUserId (\ s a -> s{_mcudUserId = a})
mcudManagedConfigurationForUserId :: Lens' ManagedConfigurationsforUserDelete Text
mcudManagedConfigurationForUserId
= lens _mcudManagedConfigurationForUserId
(\ s a -> s{_mcudManagedConfigurationForUserId = a})
instance GoogleRequest
ManagedConfigurationsforUserDelete where
type Rs ManagedConfigurationsforUserDelete = ()
type Scopes ManagedConfigurationsforUserDelete =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient ManagedConfigurationsforUserDelete'{..}
= go _mcudEnterpriseId _mcudUserId
_mcudManagedConfigurationForUserId
(Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy ::
Proxy ManagedConfigurationsforUserDeleteResource)
mempty