{-# 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.DoubleClickSearch.Conversion.Update
(
ConversionUpdateResource
, conversionUpdate
, ConversionUpdate
, cuPayload
) where
import Network.Google.DoubleClickSearch.Types
import Network.Google.Prelude
type ConversionUpdateResource =
"doubleclicksearch" :>
"v2" :>
"conversion" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ConversionList :>
Put '[JSON] ConversionList
newtype ConversionUpdate = ConversionUpdate'
{ _cuPayload :: ConversionList
} deriving (Eq,Show,Data,Typeable,Generic)
conversionUpdate
:: ConversionList
-> ConversionUpdate
conversionUpdate pCuPayload_ =
ConversionUpdate'
{ _cuPayload = pCuPayload_
}
cuPayload :: Lens' ConversionUpdate ConversionList
cuPayload
= lens _cuPayload (\ s a -> s{_cuPayload = a})
instance GoogleRequest ConversionUpdate where
type Rs ConversionUpdate = ConversionList
type Scopes ConversionUpdate =
'["https://www.googleapis.com/auth/doubleclicksearch"]
requestClient ConversionUpdate'{..}
= go (Just AltJSON) _cuPayload
doubleClickSearchService
where go
= buildClient
(Proxy :: Proxy ConversionUpdateResource)
mempty