{-# 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.AdSenseHost.CustomChannels.Delete
(
CustomChannelsDeleteResource
, customChannelsDelete
, CustomChannelsDelete
, ccdCustomChannelId
, ccdAdClientId
) where
import Network.Google.AdSenseHost.Types
import Network.Google.Prelude
type CustomChannelsDeleteResource =
"adsensehost" :>
"v4.1" :>
"adclients" :>
Capture "adClientId" Text :>
"customchannels" :>
Capture "customChannelId" Text :>
QueryParam "alt" AltJSON :>
Delete '[JSON] CustomChannel
data CustomChannelsDelete = CustomChannelsDelete'
{ _ccdCustomChannelId :: !Text
, _ccdAdClientId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
customChannelsDelete
:: Text
-> Text
-> CustomChannelsDelete
customChannelsDelete pCcdCustomChannelId_ pCcdAdClientId_ =
CustomChannelsDelete'
{ _ccdCustomChannelId = pCcdCustomChannelId_
, _ccdAdClientId = pCcdAdClientId_
}
ccdCustomChannelId :: Lens' CustomChannelsDelete Text
ccdCustomChannelId
= lens _ccdCustomChannelId
(\ s a -> s{_ccdCustomChannelId = a})
ccdAdClientId :: Lens' CustomChannelsDelete Text
ccdAdClientId
= lens _ccdAdClientId
(\ s a -> s{_ccdAdClientId = a})
instance GoogleRequest CustomChannelsDelete where
type Rs CustomChannelsDelete = CustomChannel
type Scopes CustomChannelsDelete =
'["https://www.googleapis.com/auth/adsensehost"]
requestClient CustomChannelsDelete'{..}
= go _ccdAdClientId _ccdCustomChannelId
(Just AltJSON)
adSenseHostService
where go
= buildClient
(Proxy :: Proxy CustomChannelsDeleteResource)
mempty