{-# 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.ChangeLogs.Get
(
ChangeLogsGetResource
, changeLogsGet
, ChangeLogsGet
, clgProFileId
, clgId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type ChangeLogsGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"changeLogs" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :> Get '[JSON] ChangeLog
data ChangeLogsGet = ChangeLogsGet'
{ _clgProFileId :: !(Textual Int64)
, _clgId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
changeLogsGet
:: Int64
-> Int64
-> ChangeLogsGet
changeLogsGet pClgProFileId_ pClgId_ =
ChangeLogsGet'
{ _clgProFileId = _Coerce # pClgProFileId_
, _clgId = _Coerce # pClgId_
}
clgProFileId :: Lens' ChangeLogsGet Int64
clgProFileId
= lens _clgProFileId (\ s a -> s{_clgProFileId = a})
. _Coerce
clgId :: Lens' ChangeLogsGet Int64
clgId
= lens _clgId (\ s a -> s{_clgId = a}) . _Coerce
instance GoogleRequest ChangeLogsGet where
type Rs ChangeLogsGet = ChangeLog
type Scopes ChangeLogsGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient ChangeLogsGet'{..}
= go _clgProFileId _clgId (Just AltJSON)
dFAReportingService
where go
= buildClient (Proxy :: Proxy ChangeLogsGetResource)
mempty