{-# 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.Devices.Delete
(
EnterprisesDevicesDeleteResource
, enterprisesDevicesDelete
, EnterprisesDevicesDelete
, eddXgafv
, eddWipeDataFlags
, eddUploadProtocol
, eddAccessToken
, eddUploadType
, eddName
, eddCallback
) where
import Network.Google.AndroidManagement.Types
import Network.Google.Prelude
type EnterprisesDevicesDeleteResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParams "wipeDataFlags" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data EnterprisesDevicesDelete = EnterprisesDevicesDelete'
{ _eddXgafv :: !(Maybe Xgafv)
, _eddWipeDataFlags :: !(Maybe [Text])
, _eddUploadProtocol :: !(Maybe Text)
, _eddAccessToken :: !(Maybe Text)
, _eddUploadType :: !(Maybe Text)
, _eddName :: !Text
, _eddCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
enterprisesDevicesDelete
:: Text
-> EnterprisesDevicesDelete
enterprisesDevicesDelete pEddName_ =
EnterprisesDevicesDelete'
{ _eddXgafv = Nothing
, _eddWipeDataFlags = Nothing
, _eddUploadProtocol = Nothing
, _eddAccessToken = Nothing
, _eddUploadType = Nothing
, _eddName = pEddName_
, _eddCallback = Nothing
}
eddXgafv :: Lens' EnterprisesDevicesDelete (Maybe Xgafv)
eddXgafv = lens _eddXgafv (\ s a -> s{_eddXgafv = a})
eddWipeDataFlags :: Lens' EnterprisesDevicesDelete [Text]
eddWipeDataFlags
= lens _eddWipeDataFlags
(\ s a -> s{_eddWipeDataFlags = a})
. _Default
. _Coerce
eddUploadProtocol :: Lens' EnterprisesDevicesDelete (Maybe Text)
eddUploadProtocol
= lens _eddUploadProtocol
(\ s a -> s{_eddUploadProtocol = a})
eddAccessToken :: Lens' EnterprisesDevicesDelete (Maybe Text)
eddAccessToken
= lens _eddAccessToken
(\ s a -> s{_eddAccessToken = a})
eddUploadType :: Lens' EnterprisesDevicesDelete (Maybe Text)
eddUploadType
= lens _eddUploadType
(\ s a -> s{_eddUploadType = a})
eddName :: Lens' EnterprisesDevicesDelete Text
eddName = lens _eddName (\ s a -> s{_eddName = a})
eddCallback :: Lens' EnterprisesDevicesDelete (Maybe Text)
eddCallback
= lens _eddCallback (\ s a -> s{_eddCallback = a})
instance GoogleRequest EnterprisesDevicesDelete where
type Rs EnterprisesDevicesDelete = Empty
type Scopes EnterprisesDevicesDelete =
'["https://www.googleapis.com/auth/androidmanagement"]
requestClient EnterprisesDevicesDelete'{..}
= go _eddName _eddXgafv
(_eddWipeDataFlags ^. _Default)
_eddUploadProtocol
_eddAccessToken
_eddUploadType
_eddCallback
(Just AltJSON)
androidManagementService
where go
= buildClient
(Proxy :: Proxy EnterprisesDevicesDeleteResource)
mempty