{-# 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.Enterprises.Unenroll
(
EnterprisesUnenrollResource
, enterprisesUnenroll
, EnterprisesUnenroll
, entEnterpriseId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type EnterprisesUnenrollResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"unenroll" :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
newtype EnterprisesUnenroll = EnterprisesUnenroll'
{ _entEnterpriseId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
enterprisesUnenroll
:: Text
-> EnterprisesUnenroll
enterprisesUnenroll pEntEnterpriseId_ =
EnterprisesUnenroll'
{ _entEnterpriseId = pEntEnterpriseId_
}
entEnterpriseId :: Lens' EnterprisesUnenroll Text
entEnterpriseId
= lens _entEnterpriseId
(\ s a -> s{_entEnterpriseId = a})
instance GoogleRequest EnterprisesUnenroll where
type Rs EnterprisesUnenroll = ()
type Scopes EnterprisesUnenroll =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient EnterprisesUnenroll'{..}
= go _entEnterpriseId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy EnterprisesUnenrollResource)
mempty