{-# 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.YouTubeReporting.Jobs.Delete
(
JobsDeleteResource
, jobsDelete
, JobsDelete
, jdXgafv
, jdJobId
, jdUploadProtocol
, jdAccessToken
, jdUploadType
, jdOnBehalfOfContentOwner
, jdCallback
) where
import Network.Google.Prelude
import Network.Google.YouTubeReporting.Types
type JobsDeleteResource =
"v1" :>
"jobs" :>
Capture "jobId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "onBehalfOfContentOwner" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data JobsDelete = JobsDelete'
{ _jdXgafv :: !(Maybe Xgafv)
, _jdJobId :: !Text
, _jdUploadProtocol :: !(Maybe Text)
, _jdAccessToken :: !(Maybe Text)
, _jdUploadType :: !(Maybe Text)
, _jdOnBehalfOfContentOwner :: !(Maybe Text)
, _jdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
jobsDelete
:: Text
-> JobsDelete
jobsDelete pJdJobId_ =
JobsDelete'
{ _jdXgafv = Nothing
, _jdJobId = pJdJobId_
, _jdUploadProtocol = Nothing
, _jdAccessToken = Nothing
, _jdUploadType = Nothing
, _jdOnBehalfOfContentOwner = Nothing
, _jdCallback = Nothing
}
jdXgafv :: Lens' JobsDelete (Maybe Xgafv)
jdXgafv = lens _jdXgafv (\ s a -> s{_jdXgafv = a})
jdJobId :: Lens' JobsDelete Text
jdJobId = lens _jdJobId (\ s a -> s{_jdJobId = a})
jdUploadProtocol :: Lens' JobsDelete (Maybe Text)
jdUploadProtocol
= lens _jdUploadProtocol
(\ s a -> s{_jdUploadProtocol = a})
jdAccessToken :: Lens' JobsDelete (Maybe Text)
jdAccessToken
= lens _jdAccessToken
(\ s a -> s{_jdAccessToken = a})
jdUploadType :: Lens' JobsDelete (Maybe Text)
jdUploadType
= lens _jdUploadType (\ s a -> s{_jdUploadType = a})
jdOnBehalfOfContentOwner :: Lens' JobsDelete (Maybe Text)
jdOnBehalfOfContentOwner
= lens _jdOnBehalfOfContentOwner
(\ s a -> s{_jdOnBehalfOfContentOwner = a})
jdCallback :: Lens' JobsDelete (Maybe Text)
jdCallback
= lens _jdCallback (\ s a -> s{_jdCallback = a})
instance GoogleRequest JobsDelete where
type Rs JobsDelete = Empty
type Scopes JobsDelete =
'["https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
"https://www.googleapis.com/auth/yt-analytics.readonly"]
requestClient JobsDelete'{..}
= go _jdJobId _jdXgafv _jdUploadProtocol
_jdAccessToken
_jdUploadType
_jdOnBehalfOfContentOwner
_jdCallback
(Just AltJSON)
youTubeReportingService
where go
= buildClient (Proxy :: Proxy JobsDeleteResource)
mempty