{-# 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.Get
(
CreativeFieldValuesGetResource
, creativeFieldValuesGet
, CreativeFieldValuesGet
, cfvgCreativeFieldId
, cfvgProFileId
, cfvgId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type CreativeFieldValuesGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"creativeFields" :>
Capture "creativeFieldId" (Textual Int64) :>
"creativeFieldValues" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] CreativeFieldValue
data CreativeFieldValuesGet = CreativeFieldValuesGet'
{ _cfvgCreativeFieldId :: !(Textual Int64)
, _cfvgProFileId :: !(Textual Int64)
, _cfvgId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
creativeFieldValuesGet
:: Int64
-> Int64
-> Int64
-> CreativeFieldValuesGet
creativeFieldValuesGet pCfvgCreativeFieldId_ pCfvgProFileId_ pCfvgId_ =
CreativeFieldValuesGet'
{ _cfvgCreativeFieldId = _Coerce # pCfvgCreativeFieldId_
, _cfvgProFileId = _Coerce # pCfvgProFileId_
, _cfvgId = _Coerce # pCfvgId_
}
cfvgCreativeFieldId :: Lens' CreativeFieldValuesGet Int64
cfvgCreativeFieldId
= lens _cfvgCreativeFieldId
(\ s a -> s{_cfvgCreativeFieldId = a})
. _Coerce
cfvgProFileId :: Lens' CreativeFieldValuesGet Int64
cfvgProFileId
= lens _cfvgProFileId
(\ s a -> s{_cfvgProFileId = a})
. _Coerce
cfvgId :: Lens' CreativeFieldValuesGet Int64
cfvgId
= lens _cfvgId (\ s a -> s{_cfvgId = a}) . _Coerce
instance GoogleRequest CreativeFieldValuesGet where
type Rs CreativeFieldValuesGet = CreativeFieldValue
type Scopes CreativeFieldValuesGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient CreativeFieldValuesGet'{..}
= go _cfvgProFileId _cfvgCreativeFieldId _cfvgId
(Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy CreativeFieldValuesGetResource)
mempty