{-# 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.ChannelSections.Delete
(
ChannelSectionsDeleteResource
, channelSectionsDelete
, ChannelSectionsDelete
, csdOnBehalfOfContentOwner
, csdId
) where
import Network.Google.Prelude
import Network.Google.YouTube.Types
type ChannelSectionsDeleteResource =
"youtube" :>
"v3" :>
"channelSections" :>
QueryParam "id" Text :>
QueryParam "onBehalfOfContentOwner" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ChannelSectionsDelete = ChannelSectionsDelete'
{ _csdOnBehalfOfContentOwner :: !(Maybe Text)
, _csdId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
channelSectionsDelete
:: Text
-> ChannelSectionsDelete
channelSectionsDelete pCsdId_ =
ChannelSectionsDelete'
{ _csdOnBehalfOfContentOwner = Nothing
, _csdId = pCsdId_
}
csdOnBehalfOfContentOwner :: Lens' ChannelSectionsDelete (Maybe Text)
csdOnBehalfOfContentOwner
= lens _csdOnBehalfOfContentOwner
(\ s a -> s{_csdOnBehalfOfContentOwner = a})
csdId :: Lens' ChannelSectionsDelete Text
csdId = lens _csdId (\ s a -> s{_csdId = a})
instance GoogleRequest ChannelSectionsDelete where
type Rs ChannelSectionsDelete = ()
type Scopes ChannelSectionsDelete =
'["https://www.googleapis.com/auth/youtube",
"https://www.googleapis.com/auth/youtube.force-ssl",
"https://www.googleapis.com/auth/youtubepartner"]
requestClient ChannelSectionsDelete'{..}
= go (Just _csdId) _csdOnBehalfOfContentOwner
(Just AltJSON)
youTubeService
where go
= buildClient
(Proxy :: Proxy ChannelSectionsDeleteResource)
mempty