{-# 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.AndroidManagement.Enterprises.Policies.Delete
(
EnterprisesPoliciesDeleteResource
, enterprisesPoliciesDelete
, EnterprisesPoliciesDelete
, epdXgafv
, epdUploadProtocol
, epdAccessToken
, epdUploadType
, epdName
, epdCallback
) where
import Network.Google.AndroidManagement.Types
import Network.Google.Prelude
type EnterprisesPoliciesDeleteResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data EnterprisesPoliciesDelete = EnterprisesPoliciesDelete'
{ _epdXgafv :: !(Maybe Xgafv)
, _epdUploadProtocol :: !(Maybe Text)
, _epdAccessToken :: !(Maybe Text)
, _epdUploadType :: !(Maybe Text)
, _epdName :: !Text
, _epdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
enterprisesPoliciesDelete
:: Text
-> EnterprisesPoliciesDelete
enterprisesPoliciesDelete pEpdName_ =
EnterprisesPoliciesDelete'
{ _epdXgafv = Nothing
, _epdUploadProtocol = Nothing
, _epdAccessToken = Nothing
, _epdUploadType = Nothing
, _epdName = pEpdName_
, _epdCallback = Nothing
}
epdXgafv :: Lens' EnterprisesPoliciesDelete (Maybe Xgafv)
epdXgafv = lens _epdXgafv (\ s a -> s{_epdXgafv = a})
epdUploadProtocol :: Lens' EnterprisesPoliciesDelete (Maybe Text)
epdUploadProtocol
= lens _epdUploadProtocol
(\ s a -> s{_epdUploadProtocol = a})
epdAccessToken :: Lens' EnterprisesPoliciesDelete (Maybe Text)
epdAccessToken
= lens _epdAccessToken
(\ s a -> s{_epdAccessToken = a})
epdUploadType :: Lens' EnterprisesPoliciesDelete (Maybe Text)
epdUploadType
= lens _epdUploadType
(\ s a -> s{_epdUploadType = a})
epdName :: Lens' EnterprisesPoliciesDelete Text
epdName = lens _epdName (\ s a -> s{_epdName = a})
epdCallback :: Lens' EnterprisesPoliciesDelete (Maybe Text)
epdCallback
= lens _epdCallback (\ s a -> s{_epdCallback = a})
instance GoogleRequest EnterprisesPoliciesDelete
where
type Rs EnterprisesPoliciesDelete = Empty
type Scopes EnterprisesPoliciesDelete =
'["https://www.googleapis.com/auth/androidmanagement"]
requestClient EnterprisesPoliciesDelete'{..}
= go _epdName _epdXgafv _epdUploadProtocol
_epdAccessToken
_epdUploadType
_epdCallback
(Just AltJSON)
androidManagementService
where go
= buildClient
(Proxy :: Proxy EnterprisesPoliciesDeleteResource)
mempty