{-# 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.WebApps.Delete
(
WebAppsDeleteResource
, webAppsDelete
, WebAppsDelete
, wadWebAppId
, wadEnterpriseId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type WebAppsDeleteResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"webApps" :>
Capture "webAppId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data WebAppsDelete = WebAppsDelete'
{ _wadWebAppId :: !Text
, _wadEnterpriseId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
webAppsDelete
:: Text
-> Text
-> WebAppsDelete
webAppsDelete pWadWebAppId_ pWadEnterpriseId_ =
WebAppsDelete'
{ _wadWebAppId = pWadWebAppId_
, _wadEnterpriseId = pWadEnterpriseId_
}
wadWebAppId :: Lens' WebAppsDelete Text
wadWebAppId
= lens _wadWebAppId (\ s a -> s{_wadWebAppId = a})
wadEnterpriseId :: Lens' WebAppsDelete Text
wadEnterpriseId
= lens _wadEnterpriseId
(\ s a -> s{_wadEnterpriseId = a})
instance GoogleRequest WebAppsDelete where
type Rs WebAppsDelete = ()
type Scopes WebAppsDelete =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient WebAppsDelete'{..}
= go _wadEnterpriseId _wadWebAppId (Just AltJSON)
androidEnterpriseService
where go
= buildClient (Proxy :: Proxy WebAppsDeleteResource)
mempty