{-# 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.List
(
VideoFormatsListResource
, videoFormatsList
, VideoFormatsList
, vflProFileId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type VideoFormatsListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"videoFormats" :>
QueryParam "alt" AltJSON :>
Get '[JSON] VideoFormatsListResponse
newtype VideoFormatsList = VideoFormatsList'
{ _vflProFileId :: Textual Int64
} deriving (Eq,Show,Data,Typeable,Generic)
videoFormatsList
:: Int64
-> VideoFormatsList
videoFormatsList pVflProFileId_ =
VideoFormatsList'
{ _vflProFileId = _Coerce # pVflProFileId_
}
vflProFileId :: Lens' VideoFormatsList Int64
vflProFileId
= lens _vflProFileId (\ s a -> s{_vflProFileId = a})
. _Coerce
instance GoogleRequest VideoFormatsList where
type Rs VideoFormatsList = VideoFormatsListResponse
type Scopes VideoFormatsList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient VideoFormatsList'{..}
= go _vflProFileId (Just AltJSON) dFAReportingService
where go
= buildClient
(Proxy :: Proxy VideoFormatsListResource)
mempty