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