{-# 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.ManagedConfigurationsforDevice.Delete
(
ManagedConfigurationsforDeviceDeleteResource
, managedConfigurationsforDeviceDelete
, ManagedConfigurationsforDeviceDelete
, mcddEnterpriseId
, mcddUserId
, mcddDeviceId
, mcddManagedConfigurationForDeviceId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type ManagedConfigurationsforDeviceDeleteResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
"devices" :>
Capture "deviceId" Text :>
"managedConfigurationsForDevice" :>
Capture "managedConfigurationForDeviceId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ManagedConfigurationsforDeviceDelete = ManagedConfigurationsforDeviceDelete'
{ _mcddEnterpriseId :: !Text
, _mcddUserId :: !Text
, _mcddDeviceId :: !Text
, _mcddManagedConfigurationForDeviceId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managedConfigurationsforDeviceDelete
:: Text
-> Text
-> Text
-> Text
-> ManagedConfigurationsforDeviceDelete
managedConfigurationsforDeviceDelete pMcddEnterpriseId_ pMcddUserId_ pMcddDeviceId_ pMcddManagedConfigurationForDeviceId_ =
ManagedConfigurationsforDeviceDelete'
{ _mcddEnterpriseId = pMcddEnterpriseId_
, _mcddUserId = pMcddUserId_
, _mcddDeviceId = pMcddDeviceId_
, _mcddManagedConfigurationForDeviceId = pMcddManagedConfigurationForDeviceId_
}
mcddEnterpriseId :: Lens' ManagedConfigurationsforDeviceDelete Text
mcddEnterpriseId
= lens _mcddEnterpriseId
(\ s a -> s{_mcddEnterpriseId = a})
mcddUserId :: Lens' ManagedConfigurationsforDeviceDelete Text
mcddUserId
= lens _mcddUserId (\ s a -> s{_mcddUserId = a})
mcddDeviceId :: Lens' ManagedConfigurationsforDeviceDelete Text
mcddDeviceId
= lens _mcddDeviceId (\ s a -> s{_mcddDeviceId = a})
mcddManagedConfigurationForDeviceId :: Lens' ManagedConfigurationsforDeviceDelete Text
mcddManagedConfigurationForDeviceId
= lens _mcddManagedConfigurationForDeviceId
(\ s a ->
s{_mcddManagedConfigurationForDeviceId = a})
instance GoogleRequest
ManagedConfigurationsforDeviceDelete where
type Rs ManagedConfigurationsforDeviceDelete = ()
type Scopes ManagedConfigurationsforDeviceDelete =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient
ManagedConfigurationsforDeviceDelete'{..}
= go _mcddEnterpriseId _mcddUserId _mcddDeviceId
_mcddManagedConfigurationForDeviceId
(Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy ::
Proxy ManagedConfigurationsforDeviceDeleteResource)
mempty