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