{-# 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.Installs.Delete
(
InstallsDeleteResource
, installsDelete
, InstallsDelete
, idEnterpriseId
, idUserId
, idInstallId
, idDeviceId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type InstallsDeleteResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
"devices" :>
Capture "deviceId" Text :>
"installs" :>
Capture "installId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data InstallsDelete = InstallsDelete'
{ _idEnterpriseId :: !Text
, _idUserId :: !Text
, _idInstallId :: !Text
, _idDeviceId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
installsDelete
:: Text
-> Text
-> Text
-> Text
-> InstallsDelete
installsDelete pIdEnterpriseId_ pIdUserId_ pIdInstallId_ pIdDeviceId_ =
InstallsDelete'
{ _idEnterpriseId = pIdEnterpriseId_
, _idUserId = pIdUserId_
, _idInstallId = pIdInstallId_
, _idDeviceId = pIdDeviceId_
}
idEnterpriseId :: Lens' InstallsDelete Text
idEnterpriseId
= lens _idEnterpriseId
(\ s a -> s{_idEnterpriseId = a})
idUserId :: Lens' InstallsDelete Text
idUserId = lens _idUserId (\ s a -> s{_idUserId = a})
idInstallId :: Lens' InstallsDelete Text
idInstallId
= lens _idInstallId (\ s a -> s{_idInstallId = a})
idDeviceId :: Lens' InstallsDelete Text
idDeviceId
= lens _idDeviceId (\ s a -> s{_idDeviceId = a})
instance GoogleRequest InstallsDelete where
type Rs InstallsDelete = ()
type Scopes InstallsDelete =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient InstallsDelete'{..}
= go _idEnterpriseId _idUserId _idDeviceId
_idInstallId
(Just AltJSON)
androidEnterpriseService
where go
= buildClient (Proxy :: Proxy InstallsDeleteResource)
mempty