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