{-# 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.PlayLists.Delete
(
PlayListsDeleteResource
, playListsDelete
, PlayListsDelete
, pldOnBehalfOfContentOwner
, pldId
) where
import Network.Google.Prelude
import Network.Google.YouTube.Types
type PlayListsDeleteResource =
"youtube" :>
"v3" :>
"playlists" :>
QueryParam "id" Text :>
QueryParam "onBehalfOfContentOwner" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data PlayListsDelete = PlayListsDelete'
{ _pldOnBehalfOfContentOwner :: !(Maybe Text)
, _pldId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
playListsDelete
:: Text
-> PlayListsDelete
playListsDelete pPldId_ =
PlayListsDelete'
{ _pldOnBehalfOfContentOwner = Nothing
, _pldId = pPldId_
}
pldOnBehalfOfContentOwner :: Lens' PlayListsDelete (Maybe Text)
pldOnBehalfOfContentOwner
= lens _pldOnBehalfOfContentOwner
(\ s a -> s{_pldOnBehalfOfContentOwner = a})
pldId :: Lens' PlayListsDelete Text
pldId = lens _pldId (\ s a -> s{_pldId = a})
instance GoogleRequest PlayListsDelete where
type Rs PlayListsDelete = ()
type Scopes PlayListsDelete =
'["https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.force-ssl",
"https://www.googleapis.com/auth/youtubepartner"]
requestClient PlayListsDelete'{..}
= go (Just _pldId) _pldOnBehalfOfContentOwner
(Just AltJSON)
youTubeService
where go
= buildClient
(Proxy :: Proxy PlayListsDeleteResource)
mempty