{-# 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.CreativeFields.Delete
(
CreativeFieldsDeleteResource
, creativeFieldsDelete
, CreativeFieldsDelete
, cfdProFileId
, cfdId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type CreativeFieldsDeleteResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"creativeFields" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data CreativeFieldsDelete = CreativeFieldsDelete'
{ _cfdProFileId :: !(Textual Int64)
, _cfdId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
creativeFieldsDelete
:: Int64
-> Int64
-> CreativeFieldsDelete
creativeFieldsDelete pCfdProFileId_ pCfdId_ =
CreativeFieldsDelete'
{ _cfdProFileId = _Coerce # pCfdProFileId_
, _cfdId = _Coerce # pCfdId_
}
cfdProFileId :: Lens' CreativeFieldsDelete Int64
cfdProFileId
= lens _cfdProFileId (\ s a -> s{_cfdProFileId = a})
. _Coerce
cfdId :: Lens' CreativeFieldsDelete Int64
cfdId
= lens _cfdId (\ s a -> s{_cfdId = a}) . _Coerce
instance GoogleRequest CreativeFieldsDelete where
type Rs CreativeFieldsDelete = ()
type Scopes CreativeFieldsDelete =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient CreativeFieldsDelete'{..}
= go _cfdProFileId _cfdId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy CreativeFieldsDeleteResource)
mempty