{-# 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.Sizes.List
(
SizesListResource
, sizesList
, SizesList
, slHeight
, slIds
, slWidth
, slProFileId
, slIabStandard
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type SizesListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"sizes" :>
QueryParam "height" (Textual Int32) :>
QueryParams "ids" (Textual Int64) :>
QueryParam "width" (Textual Int32) :>
QueryParam "iabStandard" Bool :>
QueryParam "alt" AltJSON :>
Get '[JSON] SizesListResponse
data SizesList = SizesList'
{ _slHeight :: !(Maybe (Textual Int32))
, _slIds :: !(Maybe [Textual Int64])
, _slWidth :: !(Maybe (Textual Int32))
, _slProFileId :: !(Textual Int64)
, _slIabStandard :: !(Maybe Bool)
} deriving (Eq,Show,Data,Typeable,Generic)
sizesList
:: Int64
-> SizesList
sizesList pSlProFileId_ =
SizesList'
{ _slHeight = Nothing
, _slIds = Nothing
, _slWidth = Nothing
, _slProFileId = _Coerce # pSlProFileId_
, _slIabStandard = Nothing
}
slHeight :: Lens' SizesList (Maybe Int32)
slHeight
= lens _slHeight (\ s a -> s{_slHeight = a}) .
mapping _Coerce
slIds :: Lens' SizesList [Int64]
slIds
= lens _slIds (\ s a -> s{_slIds = a}) . _Default .
_Coerce
slWidth :: Lens' SizesList (Maybe Int32)
slWidth
= lens _slWidth (\ s a -> s{_slWidth = a}) .
mapping _Coerce
slProFileId :: Lens' SizesList Int64
slProFileId
= lens _slProFileId (\ s a -> s{_slProFileId = a}) .
_Coerce
slIabStandard :: Lens' SizesList (Maybe Bool)
slIabStandard
= lens _slIabStandard
(\ s a -> s{_slIabStandard = a})
instance GoogleRequest SizesList where
type Rs SizesList = SizesListResponse
type Scopes SizesList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient SizesList'{..}
= go _slProFileId _slHeight (_slIds ^. _Default)
_slWidth
_slIabStandard
(Just AltJSON)
dFAReportingService
where go
= buildClient (Proxy :: Proxy SizesListResource)
mempty