{-# 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.DFAReporting.Reports.Delete
(
ReportsDeleteResource
, reportsDelete
, ReportsDelete
, rdReportId
, rdProFileId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type ReportsDeleteResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"reports" :>
Capture "reportId" (Textual Int64) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ReportsDelete = ReportsDelete'
{ _rdReportId :: !(Textual Int64)
, _rdProFileId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
reportsDelete
:: Int64
-> Int64
-> ReportsDelete
reportsDelete pRdReportId_ pRdProFileId_ =
ReportsDelete'
{ _rdReportId = _Coerce # pRdReportId_
, _rdProFileId = _Coerce # pRdProFileId_
}
rdReportId :: Lens' ReportsDelete Int64
rdReportId
= lens _rdReportId (\ s a -> s{_rdReportId = a}) .
_Coerce
rdProFileId :: Lens' ReportsDelete Int64
rdProFileId
= lens _rdProFileId (\ s a -> s{_rdProFileId = a}) .
_Coerce
instance GoogleRequest ReportsDelete where
type Rs ReportsDelete = ()
type Scopes ReportsDelete =
'["https://www.googleapis.com/auth/dfareporting"]
requestClient ReportsDelete'{..}
= go _rdProFileId _rdReportId (Just AltJSON)
dFAReportingService
where go
= buildClient (Proxy :: Proxy ReportsDeleteResource)
mempty