{-# 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.Captions.Delete
(
CaptionsDeleteResource
, captionsDelete
, CaptionsDelete
, cddOnBehalfOf
, cddOnBehalfOfContentOwner
, cddId
) where
import Network.Google.Prelude
import Network.Google.YouTube.Types
type CaptionsDeleteResource =
"youtube" :>
"v3" :>
"captions" :>
QueryParam "id" Text :>
QueryParam "onBehalfOf" Text :>
QueryParam "onBehalfOfContentOwner" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data CaptionsDelete = CaptionsDelete'
{ _cddOnBehalfOf :: !(Maybe Text)
, _cddOnBehalfOfContentOwner :: !(Maybe Text)
, _cddId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
captionsDelete
:: Text
-> CaptionsDelete
captionsDelete pCddId_ =
CaptionsDelete'
{ _cddOnBehalfOf = Nothing
, _cddOnBehalfOfContentOwner = Nothing
, _cddId = pCddId_
}
cddOnBehalfOf :: Lens' CaptionsDelete (Maybe Text)
cddOnBehalfOf
= lens _cddOnBehalfOf
(\ s a -> s{_cddOnBehalfOf = a})
cddOnBehalfOfContentOwner :: Lens' CaptionsDelete (Maybe Text)
cddOnBehalfOfContentOwner
= lens _cddOnBehalfOfContentOwner
(\ s a -> s{_cddOnBehalfOfContentOwner = a})
cddId :: Lens' CaptionsDelete Text
cddId = lens _cddId (\ s a -> s{_cddId = a})
instance GoogleRequest CaptionsDelete where
type Rs CaptionsDelete = ()
type Scopes CaptionsDelete =
'["https://www.googleapis.com/auth/youtube.force-ssl",
"https://www.googleapis.com/auth/youtubepartner"]
requestClient CaptionsDelete'{..}
= go (Just _cddId) _cddOnBehalfOf
_cddOnBehalfOfContentOwner
(Just AltJSON)
youTubeService
where go
= buildClient (Proxy :: Proxy CaptionsDeleteResource)
mempty