{-# 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.FloodlightActivities.Delete
(
FloodlightActivitiesDeleteResource
, floodlightActivitiesDelete
, FloodlightActivitiesDelete
, fadProFileId
, fadId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type FloodlightActivitiesDeleteResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"floodlightActivities" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data FloodlightActivitiesDelete = FloodlightActivitiesDelete'
{ _fadProFileId :: !(Textual Int64)
, _fadId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
floodlightActivitiesDelete
:: Int64
-> Int64
-> FloodlightActivitiesDelete
floodlightActivitiesDelete pFadProFileId_ pFadId_ =
FloodlightActivitiesDelete'
{ _fadProFileId = _Coerce # pFadProFileId_
, _fadId = _Coerce # pFadId_
}
fadProFileId :: Lens' FloodlightActivitiesDelete Int64
fadProFileId
= lens _fadProFileId (\ s a -> s{_fadProFileId = a})
. _Coerce
fadId :: Lens' FloodlightActivitiesDelete Int64
fadId
= lens _fadId (\ s a -> s{_fadId = a}) . _Coerce
instance GoogleRequest FloodlightActivitiesDelete
where
type Rs FloodlightActivitiesDelete = ()
type Scopes FloodlightActivitiesDelete =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient FloodlightActivitiesDelete'{..}
= go _fadProFileId _fadId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy FloodlightActivitiesDeleteResource)
mempty