{-# 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.VideoFormats.Get
(
VideoFormatsGetResource
, videoFormatsGet
, VideoFormatsGet
, vfgProFileId
, vfgId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type VideoFormatsGetResource =
"dfareporting" :>
"v3.3" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"videoFormats" :>
Capture "id" (Textual Int32) :>
QueryParam "alt" AltJSON :> Get '[JSON] VideoFormat
data VideoFormatsGet =
VideoFormatsGet'
{ _vfgProFileId :: !(Textual Int64)
, _vfgId :: !(Textual Int32)
}
deriving (Eq, Show, Data, Typeable, Generic)
videoFormatsGet
:: Int64
-> Int32
-> VideoFormatsGet
videoFormatsGet pVfgProFileId_ pVfgId_ =
VideoFormatsGet'
{_vfgProFileId = _Coerce # pVfgProFileId_, _vfgId = _Coerce # pVfgId_}
vfgProFileId :: Lens' VideoFormatsGet Int64
vfgProFileId
= lens _vfgProFileId (\ s a -> s{_vfgProFileId = a})
. _Coerce
vfgId :: Lens' VideoFormatsGet Int32
vfgId
= lens _vfgId (\ s a -> s{_vfgId = a}) . _Coerce
instance GoogleRequest VideoFormatsGet where
type Rs VideoFormatsGet = VideoFormat
type Scopes VideoFormatsGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient VideoFormatsGet'{..}
= go _vfgProFileId _vfgId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy VideoFormatsGetResource)
mempty