{-# 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.CreativeFieldValues.Delete
(
CreativeFieldValuesDeleteResource
, creativeFieldValuesDelete
, CreativeFieldValuesDelete
, cfvdCreativeFieldId
, cfvdProFileId
, cfvdId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type CreativeFieldValuesDeleteResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"creativeFields" :>
Capture "creativeFieldId" (Textual Int64) :>
"creativeFieldValues" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data CreativeFieldValuesDelete = CreativeFieldValuesDelete'
{ _cfvdCreativeFieldId :: !(Textual Int64)
, _cfvdProFileId :: !(Textual Int64)
, _cfvdId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
creativeFieldValuesDelete
:: Int64
-> Int64
-> Int64
-> CreativeFieldValuesDelete
creativeFieldValuesDelete pCfvdCreativeFieldId_ pCfvdProFileId_ pCfvdId_ =
CreativeFieldValuesDelete'
{ _cfvdCreativeFieldId = _Coerce # pCfvdCreativeFieldId_
, _cfvdProFileId = _Coerce # pCfvdProFileId_
, _cfvdId = _Coerce # pCfvdId_
}
cfvdCreativeFieldId :: Lens' CreativeFieldValuesDelete Int64
cfvdCreativeFieldId
= lens _cfvdCreativeFieldId
(\ s a -> s{_cfvdCreativeFieldId = a})
. _Coerce
cfvdProFileId :: Lens' CreativeFieldValuesDelete Int64
cfvdProFileId
= lens _cfvdProFileId
(\ s a -> s{_cfvdProFileId = a})
. _Coerce
cfvdId :: Lens' CreativeFieldValuesDelete Int64
cfvdId
= lens _cfvdId (\ s a -> s{_cfvdId = a}) . _Coerce
instance GoogleRequest CreativeFieldValuesDelete
where
type Rs CreativeFieldValuesDelete = ()
type Scopes CreativeFieldValuesDelete =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient CreativeFieldValuesDelete'{..}
= go _cfvdProFileId _cfvdCreativeFieldId _cfvdId
(Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy CreativeFieldValuesDeleteResource)
mempty