{-# 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.Storelayoutpages.Delete
(
StorelayoutpagesDeleteResource
, storelayoutpagesDelete
, StorelayoutpagesDelete
, sdEnterpriseId
, sdPageId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type StorelayoutpagesDeleteResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"storeLayout" :>
"pages" :>
Capture "pageId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data StorelayoutpagesDelete = StorelayoutpagesDelete'
{ _sdEnterpriseId :: !Text
, _sdPageId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
storelayoutpagesDelete
:: Text
-> Text
-> StorelayoutpagesDelete
storelayoutpagesDelete pSdEnterpriseId_ pSdPageId_ =
StorelayoutpagesDelete'
{ _sdEnterpriseId = pSdEnterpriseId_
, _sdPageId = pSdPageId_
}
sdEnterpriseId :: Lens' StorelayoutpagesDelete Text
sdEnterpriseId
= lens _sdEnterpriseId
(\ s a -> s{_sdEnterpriseId = a})
sdPageId :: Lens' StorelayoutpagesDelete Text
sdPageId = lens _sdPageId (\ s a -> s{_sdPageId = a})
instance GoogleRequest StorelayoutpagesDelete where
type Rs StorelayoutpagesDelete = ()
type Scopes StorelayoutpagesDelete =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient StorelayoutpagesDelete'{..}
= go _sdEnterpriseId _sdPageId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy StorelayoutpagesDeleteResource)
mempty