{-# 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.PlacementStrategies.Delete
(
PlacementStrategiesDeleteResource
, placementStrategiesDelete
, PlacementStrategiesDelete
, psdProFileId
, psdId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type PlacementStrategiesDeleteResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"placementStrategies" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data PlacementStrategiesDelete = PlacementStrategiesDelete'
{ _psdProFileId :: !(Textual Int64)
, _psdId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
placementStrategiesDelete
:: Int64
-> Int64
-> PlacementStrategiesDelete
placementStrategiesDelete pPsdProFileId_ pPsdId_ =
PlacementStrategiesDelete'
{ _psdProFileId = _Coerce # pPsdProFileId_
, _psdId = _Coerce # pPsdId_
}
psdProFileId :: Lens' PlacementStrategiesDelete Int64
psdProFileId
= lens _psdProFileId (\ s a -> s{_psdProFileId = a})
. _Coerce
psdId :: Lens' PlacementStrategiesDelete Int64
psdId
= lens _psdId (\ s a -> s{_psdId = a}) . _Coerce
instance GoogleRequest PlacementStrategiesDelete
where
type Rs PlacementStrategiesDelete = ()
type Scopes PlacementStrategiesDelete =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient PlacementStrategiesDelete'{..}
= go _psdProFileId _psdId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy PlacementStrategiesDeleteResource)
mempty