{-# 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.Entitlements.Delete
(
EntitlementsDeleteResource
, entitlementsDelete
, EntitlementsDelete
, edEntitlementId
, edEnterpriseId
, edUserId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type EntitlementsDeleteResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
"entitlements" :>
Capture "entitlementId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data EntitlementsDelete = EntitlementsDelete'
{ _edEntitlementId :: !Text
, _edEnterpriseId :: !Text
, _edUserId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
entitlementsDelete
:: Text
-> Text
-> Text
-> EntitlementsDelete
entitlementsDelete pEdEntitlementId_ pEdEnterpriseId_ pEdUserId_ =
EntitlementsDelete'
{ _edEntitlementId = pEdEntitlementId_
, _edEnterpriseId = pEdEnterpriseId_
, _edUserId = pEdUserId_
}
edEntitlementId :: Lens' EntitlementsDelete Text
edEntitlementId
= lens _edEntitlementId
(\ s a -> s{_edEntitlementId = a})
edEnterpriseId :: Lens' EntitlementsDelete Text
edEnterpriseId
= lens _edEnterpriseId
(\ s a -> s{_edEnterpriseId = a})
edUserId :: Lens' EntitlementsDelete Text
edUserId = lens _edUserId (\ s a -> s{_edUserId = a})
instance GoogleRequest EntitlementsDelete where
type Rs EntitlementsDelete = ()
type Scopes EntitlementsDelete =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient EntitlementsDelete'{..}
= go _edEnterpriseId _edUserId _edEntitlementId
(Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy EntitlementsDeleteResource)
mempty