{-# 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.YouTube.LiveChatBans.Delete
(
LiveChatBansDeleteResource
, liveChatBansDelete
, LiveChatBansDelete
, lcbdId
) where
import Network.Google.Prelude
import Network.Google.YouTube.Types
type LiveChatBansDeleteResource =
"youtube" :>
"v3" :>
"liveChat" :>
"bans" :>
QueryParam "id" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype LiveChatBansDelete = LiveChatBansDelete'
{ _lcbdId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
liveChatBansDelete
:: Text
-> LiveChatBansDelete
liveChatBansDelete pLcbdId_ =
LiveChatBansDelete'
{ _lcbdId = pLcbdId_
}
lcbdId :: Lens' LiveChatBansDelete Text
lcbdId = lens _lcbdId (\ s a -> s{_lcbdId = a})
instance GoogleRequest LiveChatBansDelete where
type Rs LiveChatBansDelete = ()
type Scopes LiveChatBansDelete =
'["https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.force-ssl"]
requestClient LiveChatBansDelete'{..}
= go (Just _lcbdId) (Just AltJSON) youTubeService
where go
= buildClient
(Proxy :: Proxy LiveChatBansDeleteResource)
mempty