{-# 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.Creatives.Get
(
CreativesGetResource
, creativesGet
, CreativesGet
, ccProFileId
, ccId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type CreativesGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"creatives" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :> Get '[JSON] Creative
data CreativesGet = CreativesGet'
{ _ccProFileId :: !(Textual Int64)
, _ccId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
creativesGet
:: Int64
-> Int64
-> CreativesGet
creativesGet pCcProFileId_ pCcId_ =
CreativesGet'
{ _ccProFileId = _Coerce # pCcProFileId_
, _ccId = _Coerce # pCcId_
}
ccProFileId :: Lens' CreativesGet Int64
ccProFileId
= lens _ccProFileId (\ s a -> s{_ccProFileId = a}) .
_Coerce
ccId :: Lens' CreativesGet Int64
ccId = lens _ccId (\ s a -> s{_ccId = a}) . _Coerce
instance GoogleRequest CreativesGet where
type Rs CreativesGet = Creative
type Scopes CreativesGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient CreativesGet'{..}
= go _ccProFileId _ccId (Just AltJSON)
dFAReportingService
where go
= buildClient (Proxy :: Proxy CreativesGetResource)
mempty